From bae9b8f3c2d7612a1cefabf85159133f836131f1 Mon Sep 17 00:00:00 2001 From: devleejb Date: Mon, 2 Sep 2024 06:24:50 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20yorkie-t?= =?UTF-8?q?eam/codepair@ef94119ac2e791f5c0b43bbdbc169622c912711d=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{index-CrCApdhr.js => index-DYrsZeFG.js} | 287 +++++++++--------- index.html | 2 +- 2 files changed, 144 insertions(+), 145 deletions(-) rename assets/{index-CrCApdhr.js => index-DYrsZeFG.js} (60%) diff --git a/assets/index-CrCApdhr.js b/assets/index-DYrsZeFG.js similarity index 60% rename from assets/index-CrCApdhr.js rename to assets/index-DYrsZeFG.js index 31f3e0b3..30c31ca5 100644 --- a/assets/index-CrCApdhr.js +++ b/assets/index-DYrsZeFG.js @@ -1,4 +1,4 @@ -var MEe=Object.defineProperty;var WV=e=>{throw TypeError(e)};var $Ee=(e,t,n)=>t in e?MEe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var FEe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Cs=(e,t,n)=>$Ee(e,typeof t!="symbol"?t+"":t,n),rN=(e,t,n)=>t.has(e)||WV("Cannot "+n);var Ce=(e,t,n)=>(rN(e,t,"read from private field"),n?n.call(e):t.get(e)),Un=(e,t,n)=>t.has(e)?WV("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),un=(e,t,n,r)=>(rN(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),cr=(e,t,n)=>(rN(e,t,"access private method"),n);var Uk=(e,t,n,r)=>({set _(i){un(e,t,i,n)},get _(){return Ce(e,t,r)}});var qOt=FEe((xSt,D_)=>{(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="252cd356-6da7-4ed0-9022-29576aaa9fa8",e._sentryDebugIdIdentifier="sentry-dbid-252cd356-6da7-4ed0-9022-29576aaa9fa8")}catch{}})();function wre(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var BEe=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};BEe.SENTRY_RELEASE={id:"01f57448f87768dcb09f12581d368feaedc9da47"};(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var yf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ep(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 Tre={exports:{}},q3={},xre={exports:{}},Er={};/** +var xEe=Object.defineProperty;var LV=e=>{throw TypeError(e)};var kEe=(e,t,n)=>t in e?xEe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var AEe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ls=(e,t,n)=>kEe(e,typeof t!="symbol"?t+"":t,n),Z6=(e,t,n)=>t.has(e)||LV("Cannot "+n);var Ce=(e,t,n)=>(Z6(e,t,"read from private field"),n?n.call(e):t.get(e)),Fn=(e,t,n)=>t.has(e)?LV("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),on=(e,t,n,r)=>(Z6(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),lr=(e,t,n)=>(Z6(e,t,"access private method"),n);var Uk=(e,t,n,r)=>({set _(i){on(e,t,i,n)},get _(){return Ce(e,t,r)}});var NOt=AEe((cSt,D_)=>{(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a30838d5-ab21-4532-a436-3c1c90bba3cd",e._sentryDebugIdIdentifier="sentry-dbid-a30838d5-ab21-4532-a436-3c1c90bba3cd")}catch{}})();function pre(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var _Ee=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};_Ee.SENTRY_RELEASE={id:"ef94119ac2e791f5c0b43bbdbc169622c912711d"};(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var pf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Cu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function gp(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 mre={exports:{}},WC={},gre={exports:{}},Or={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var MEe=Object.defineProperty;var WV=e=>{throw TypeError(e)};var $Ee=(e,t,n)=>t * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var aT=Symbol.for("react.element"),UEe=Symbol.for("react.portal"),zEe=Symbol.for("react.fragment"),jEe=Symbol.for("react.strict_mode"),HEe=Symbol.for("react.profiler"),QEe=Symbol.for("react.provider"),WEe=Symbol.for("react.context"),VEe=Symbol.for("react.forward_ref"),qEe=Symbol.for("react.suspense"),GEe=Symbol.for("react.memo"),YEe=Symbol.for("react.lazy"),VV=Symbol.iterator;function ZEe(e){return e===null||typeof e!="object"?null:(e=VV&&e[VV]||e["@@iterator"],typeof e=="function"?e:null)}var kre={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Are=Object.assign,_re={};function nO(e,t,n){this.props=e,this.context=t,this.refs=_re,this.updater=n||kre}nO.prototype.isReactComponent={};nO.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")};nO.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Cre(){}Cre.prototype=nO.prototype;function e9(e,t,n){this.props=e,this.context=t,this.refs=_re,this.updater=n||kre}var t9=e9.prototype=new Cre;t9.constructor=e9;Are(t9,nO.prototype);t9.isPureReactComponent=!0;var qV=Array.isArray,Rre=Object.prototype.hasOwnProperty,n9={current:null},Ire={key:!0,ref:!0,__self:!0,__source:!0};function Nre(e,t,n){var r,i={},a=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(a=""+t.key),t)Rre.call(t,r)&&!Ire.hasOwnProperty(r)&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1{throw TypeError(e)};var $Ee=(e,t,n)=>t * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var t2e=M,n2e=Symbol.for("react.element"),r2e=Symbol.for("react.fragment"),i2e=Object.prototype.hasOwnProperty,a2e=t2e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s2e={key:!0,ref:!0,__self:!0,__source:!0};function Pre(e,t,n){var r,i={},a=null,s=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)i2e.call(t,r)&&!s2e.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:n2e,type:e,key:a,ref:s,props:i,_owner:a2e.current}}q3.Fragment=r2e;q3.jsx=Pre;q3.jsxs=Pre;Tre.exports=q3;var I=Tre.exports,H7={},Lre={exports:{}},Du={},Mre={exports:{}},$re={};/** + */var QEe=M,WEe=Symbol.for("react.element"),VEe=Symbol.for("react.fragment"),qEe=Object.prototype.hasOwnProperty,GEe=QEe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,YEe={key:!0,ref:!0,__self:!0,__source:!0};function xre(e,t,n){var r,i={},a=null,s=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)qEe.call(t,r)&&!YEe.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:WEe,type:e,key:a,ref:s,props:i,_owner:GEe.current}}WC.Fragment=VEe;WC.jsx=xre;WC.jsxs=xre;mre.exports=WC;var I=mre.exports,M7={},kre={exports:{}},Ru={},Are={exports:{}},_re={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var MEe=Object.defineProperty;var WV=e=>{throw TypeError(e)};var $Ee=(e,t,n)=>t * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(G,ie){var H=G.length;G.push(ie);e:for(;0>>1,Se=G[Re];if(0>>1;Rei($e,H))aei(Je,$e)?(G[Re]=Je,G[ae]=H,Re=ae):(G[Re]=$e,G[ke]=H,Re=ke);else if(aei(Je,H))G[Re]=Je,G[ae]=H,Re=ae;else break e}}return ie}function i(G,ie){var H=G.sortIndex-ie.sortIndex;return H!==0?H:G.id-ie.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,o=s.now();e.unstable_now=function(){return s.now()-o}}var l=[],u=[],d=1,f=null,p=3,g=!1,O=!1,S=!1,T=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function k(G){for(var ie=n(u);ie!==null;){if(ie.callback===null)r(u);else if(ie.startTime<=G)r(u),ie.sortIndex=ie.expirationTime,t(l,ie);else break;ie=n(u)}}function _(G){if(S=!1,k(G),!O)if(n(l)!==null)O=!0,te(R);else{var ie=n(u);ie!==null&&K(_,ie.startTime-G)}}function R(G,ie){O=!1,S&&(S=!1,w(L),L=-1),g=!0;var H=p;try{for(k(ie),f=n(l);f!==null&&(!(f.expirationTime>ie)||G&&!V());){var Re=f.callback;if(typeof Re=="function"){f.callback=null,p=f.priorityLevel;var Se=Re(f.expirationTime<=ie);ie=e.unstable_now(),typeof Se=="function"?f.callback=Se:f===n(l)&&r(l),k(ie)}else r(l);f=n(l)}if(f!==null)var Z=!0;else{var ke=n(u);ke!==null&&K(_,ke.startTime-ie),Z=!1}return Z}finally{f=null,p=H,g=!1}}var N=!1,D=null,L=-1,j=5,B=-1;function V(){return!(e.unstable_now()-BG||125Re?(G.sortIndex=H,t(u,G),n(l)===null&&G===n(u)&&(S?(w(L),L=-1):S=!0,K(_,H-Re))):(G.sortIndex=Se,t(l,G),O||g||(O=!0,te(R))),G},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(G){var ie=p;return function(){var H=p;p=ie;try{return G.apply(this,arguments)}finally{p=H}}}})($re);Mre.exports=$re;var o2e=Mre.exports;/** + */(function(e){function t(G,ie){var H=G.length;G.push(ie);e:for(;0>>1,Se=G[Re];if(0>>1;Rei($e,H))aei(Xe,$e)?(G[Re]=Xe,G[ae]=H,Re=ae):(G[Re]=$e,G[ke]=H,Re=ke);else if(aei(Xe,H))G[Re]=Xe,G[ae]=H,Re=ae;else break e}}return ie}function i(G,ie){var H=G.sortIndex-ie.sortIndex;return H!==0?H:G.id-ie.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,o=s.now();e.unstable_now=function(){return s.now()-o}}var l=[],u=[],d=1,f=null,p=3,g=!1,O=!1,S=!1,T=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function k(G){for(var ie=n(u);ie!==null;){if(ie.callback===null)r(u);else if(ie.startTime<=G)r(u),ie.sortIndex=ie.expirationTime,t(l,ie);else break;ie=n(u)}}function _(G){if(S=!1,k(G),!O)if(n(l)!==null)O=!0,ne(R);else{var ie=n(u);ie!==null&&K(_,ie.startTime-G)}}function R(G,ie){O=!1,S&&(S=!1,w(L),L=-1),g=!0;var H=p;try{for(k(ie),f=n(l);f!==null&&(!(f.expirationTime>ie)||G&&!V());){var Re=f.callback;if(typeof Re=="function"){f.callback=null,p=f.priorityLevel;var Se=Re(f.expirationTime<=ie);ie=e.unstable_now(),typeof Se=="function"?f.callback=Se:f===n(l)&&r(l),k(ie)}else r(l);f=n(l)}if(f!==null)var Z=!0;else{var ke=n(u);ke!==null&&K(_,ke.startTime-ie),Z=!1}return Z}finally{f=null,p=H,g=!1}}var N=!1,P=null,L=-1,j=5,B=-1;function V(){return!(e.unstable_now()-BG||125Re?(G.sortIndex=H,t(u,G),n(l)===null&&G===n(u)&&(S?(w(L),L=-1):S=!0,K(_,H-Re))):(G.sortIndex=Se,t(l,G),O||g||(O=!0,ne(R))),G},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(G){var ie=p;return function(){var H=p;p=ie;try{return G.apply(this,arguments)}finally{p=H}}}})(_re);Are.exports=_re;var ZEe=Are.exports;/** * @license React * react-dom.production.min.js * @@ -30,21 +30,21 @@ var MEe=Object.defineProperty;var WV=e=>{throw TypeError(e)};var $Ee=(e,t,n)=>t * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var l2e=M,_u=o2e;function Mt(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"),Q7=Object.prototype.hasOwnProperty,u2e=/^[: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]*$/,YV={},ZV={};function c2e(e){return Q7.call(ZV,e)?!0:Q7.call(YV,e)?!1:u2e.test(e)?ZV[e]=!0:(YV[e]=!0,!1)}function d2e(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 f2e(e,t,n,r){if(t===null||typeof t>"u"||d2e(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 Jo(e,t,n,r,i,a,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=s}var js={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){js[e]=new Jo(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];js[t]=new Jo(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){js[e]=new Jo(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){js[e]=new Jo(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){js[e]=new Jo(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){js[e]=new Jo(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){js[e]=new Jo(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){js[e]=new Jo(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){js[e]=new Jo(e,5,!1,e.toLowerCase(),null,!1,!1)});var i9=/[\-:]([a-z])/g;function a9(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(i9,a9);js[t]=new Jo(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(i9,a9);js[t]=new Jo(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(i9,a9);js[t]=new Jo(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){js[e]=new Jo(e,1,!1,e.toLowerCase(),null,!1,!1)});js.xlinkHref=new Jo("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){js[e]=new Jo(e,1,!1,e.toLowerCase(),null,!0,!0)});function s9(e,t,n,r){var i=js.hasOwnProperty(t)?js[t]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$7=Object.prototype.hasOwnProperty,KEe=/^[: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]*$/,BV={},UV={};function JEe(e){return $7.call(UV,e)?!0:$7.call(BV,e)?!1:KEe.test(e)?UV[e]=!0:(BV[e]=!0,!1)}function e2e(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 t2e(e,t,n,r){if(t===null||typeof t>"u"||e2e(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 tl(e,t,n,r,i,a,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=s}var qs={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){qs[e]=new tl(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];qs[t]=new tl(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){qs[e]=new tl(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){qs[e]=new tl(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){qs[e]=new tl(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){qs[e]=new tl(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){qs[e]=new tl(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){qs[e]=new tl(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){qs[e]=new tl(e,5,!1,e.toLowerCase(),null,!1,!1)});var YM=/[\-:]([a-z])/g;function ZM(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(YM,ZM);qs[t]=new tl(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(YM,ZM);qs[t]=new tl(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(YM,ZM);qs[t]=new tl(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){qs[e]=new tl(e,1,!1,e.toLowerCase(),null,!1,!1)});qs.xlinkHref=new tl("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){qs[e]=new tl(e,1,!1,e.toLowerCase(),null,!0,!0)});function XM(e,t,n,r){var i=qs.hasOwnProperty(t)?qs[t]:null;(i!==null?i.type!==0:r||!(2o||i[s]!==a[o]){var l=` -`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=o);break}}}finally{sN=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?xE(e):""}function h2e(e){switch(e.tag){case 5:return xE(e.type);case 16:return xE("Lazy");case 13:return xE("Suspense");case 19:return xE("SuspenseList");case 0:case 2:case 15:return e=oN(e.type,!1),e;case 11:return e=oN(e.type.render,!1),e;case 1:return e=oN(e.type,!0),e;default:return""}}function G7(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 ly:return"Fragment";case oy:return"Portal";case W7:return"Profiler";case o9:return"StrictMode";case V7:return"Suspense";case q7:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ure:return(e.displayName||"Context")+".Consumer";case Bre:return(e._context.displayName||"Context")+".Provider";case l9:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case u9:return t=e.displayName||null,t!==null?t:G7(e.type)||"Memo";case p0:t=e._payload,e=e._init;try{return G7(e(t))}catch{}}return null}function p2e(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 G7(t);case 8:return t===o9?"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 lm(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function jre(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function m2e(e){var t=jre(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,a.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Hk(e){e._valueTracker||(e._valueTracker=m2e(e))}function Hre(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=jre(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function P_(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 Y7(e,t){var n=t.checked;return fa({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function KV(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=lm(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 Qre(e,t){t=t.checked,t!=null&&s9(e,"checked",t,!1)}function Z7(e,t){Qre(e,t);var n=lm(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")?X7(e,t.type,n):t.hasOwnProperty("defaultValue")&&X7(e,t.type,lm(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function JV(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 X7(e,t,n){(t!=="number"||P_(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var kE=Array.isArray;function Iy(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Qk.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function M2(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var VE={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},g2e=["Webkit","ms","Moz","O"];Object.keys(VE).forEach(function(e){g2e.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),VE[t]=VE[e]})});function Gre(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||VE.hasOwnProperty(e)&&VE[e]?(""+t).trim():t+"px"}function Yre(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Gre(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var b2e=fa({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 eP(e,t){if(t){if(b2e[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Mt(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Mt(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Mt(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Mt(62))}}function tP(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 nP=null;function c9(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var rP=null,Ny=null,Dy=null;function nq(e){if(e=lT(e)){if(typeof rP!="function")throw Error(Mt(280));var t=e.stateNode;t&&(t=K3(t),rP(e.stateNode,e.type,t))}}function Zre(e){Ny?Dy?Dy.push(e):Dy=[e]:Ny=e}function Xre(){if(Ny){var e=Ny,t=Dy;if(Dy=Ny=null,nq(e),t)for(e=0;e>>=0,e===0?32:31-(_2e(e)/C2e|0)|0}var Wk=64,Vk=4194304;function AE(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 F_(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,s=n&268435455;if(s!==0){var o=s&~i;o!==0?r=AE(o):(a&=s,a!==0&&(r=AE(a)))}else s=n&~i,s!==0?r=AE(s):a!==0&&(r=AE(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function sT(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-yd(t),e[t]=n}function D2e(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=GE),dq=" ",fq=!1;function bie(e,t){switch(e){case"keyup":return owe.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yie(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var uy=!1;function uwe(e,t){switch(e){case"compositionend":return yie(t);case"keypress":return t.which!==32?null:(fq=!0,dq);case"textInput":return e=t.data,e===dq&&fq?null:e;default:return null}}function cwe(e,t){if(uy)return e==="compositionend"||!y9&&bie(e,t)?(e=mie(),R4=m9=M0=null,uy=!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=gq(n)}}function Eie(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Eie(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wie(){for(var e=window,t=P_();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=P_(e.document)}return t}function v9(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 vwe(e){var t=wie(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Eie(n.ownerDocument.documentElement,n)){if(r!==null&&v9(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=bq(n,a);var s=bq(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,cy=null,uP=null,ZE=null,cP=!1;function yq(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;cP||cy==null||cy!==P_(r)||(r=cy,"selectionStart"in r&&v9(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}),ZE&&j2(ZE,r)||(ZE=r,r=z_(uP,"onSelect"),0hy||(e.current=gP[hy],gP[hy]=null,hy--)}function Ii(e,t){hy++,gP[hy]=e.current,e.current=t}var um={},Oo=wm(um),Al=wm(!1),l1=um;function yv(e,t){var n=e.type.contextTypes;if(!n)return um;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function _l(e){return e=e.childContextTypes,e!=null}function H_(){Ui(Al),Ui(Oo)}function xq(e,t,n){if(Oo.current!==um)throw Error(Mt(168));Ii(Oo,t),Ii(Al,n)}function Nie(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(Mt(108,p2e(e)||"Unknown",i));return fa({},n,r)}function Q_(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||um,l1=Oo.current,Ii(Oo,e),Ii(Al,Al.current),!0}function kq(e,t,n){var r=e.stateNode;if(!r)throw Error(Mt(169));n?(e=Nie(e,t,l1),r.__reactInternalMemoizedMergedChildContext=e,Ui(Al),Ui(Oo),Ii(Oo,e)):Ui(Al),Ii(Al,n)}var Fh=null,J3=!1,SN=!1;function Die(e){Fh===null?Fh=[e]:Fh.push(e)}function Iwe(e){J3=!0,Die(e)}function Tm(){if(!SN&&Fh!==null){SN=!0;var e=0,t=di;try{var n=Fh;for(di=1;e>=s,i-=s,Qh=1<<32-yd(t)+i|n<L?(j=D,D=null):j=D.sibling;var B=p(w,D,k[L],_);if(B===null){D===null&&(D=j);break}e&&D&&B.alternate===null&&t(w,D),x=a(B,x,L),N===null?R=B:N.sibling=B,N=B,D=j}if(L===k.length)return n(w,D),Ji&&vg(w,L),R;if(D===null){for(;LL?(j=D,D=null):j=D.sibling;var V=p(w,D,B.value,_);if(V===null){D===null&&(D=j);break}e&&D&&V.alternate===null&&t(w,D),x=a(V,x,L),N===null?R=V:N.sibling=V,N=V,D=j}if(B.done)return n(w,D),Ji&&vg(w,L),R;if(D===null){for(;!B.done;L++,B=k.next())B=f(w,B.value,_),B!==null&&(x=a(B,x,L),N===null?R=B:N.sibling=B,N=B);return Ji&&vg(w,L),R}for(D=r(w,D);!B.done;L++,B=k.next())B=g(D,w,L,B.value,_),B!==null&&(e&&B.alternate!==null&&D.delete(B.key===null?L:B.key),x=a(B,x,L),N===null?R=B:N.sibling=B,N=B);return e&&D.forEach(function(W){return t(w,W)}),Ji&&vg(w,L),R}function T(w,x,k,_){if(typeof k=="object"&&k!==null&&k.type===ly&&k.key===null&&(k=k.props.children),typeof k=="object"&&k!==null){switch(k.$$typeof){case jk:e:{for(var R=k.key,N=x;N!==null;){if(N.key===R){if(R=k.type,R===ly){if(N.tag===7){n(w,N.sibling),x=i(N,k.props.children),x.return=w,w=x;break e}}else if(N.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===p0&&Cq(R)===N.type){n(w,N.sibling),x=i(N,k.props),x.ref=HS(w,N,k),x.return=w,w=x;break e}n(w,N);break}else t(w,N);N=N.sibling}k.type===ly?(x=Jg(k.props.children,w.mode,_,k.key),x.return=w,w=x):(_=F4(k.type,k.key,k.props,null,w.mode,_),_.ref=HS(w,x,k),_.return=w,w=_)}return s(w);case oy:e:{for(N=k.key;x!==null;){if(x.key===N)if(x.tag===4&&x.stateNode.containerInfo===k.containerInfo&&x.stateNode.implementation===k.implementation){n(w,x.sibling),x=i(x,k.children||[]),x.return=w,w=x;break e}else{n(w,x);break}else t(w,x);x=x.sibling}x=CN(k,w.mode,_),x.return=w,w=x}return s(w);case p0:return N=k._init,T(w,x,N(k._payload),_)}if(kE(k))return O(w,x,k,_);if(FS(k))return S(w,x,k,_);Jk(w,k)}return typeof k=="string"&&k!==""||typeof k=="number"?(k=""+k,x!==null&&x.tag===6?(n(w,x.sibling),x=i(x,k),x.return=w,w=x):(n(w,x),x=_N(k,w.mode,_),x.return=w,w=x),s(w)):n(w,x)}return T}var Ov=$ie(!0),Fie=$ie(!1),q_=wm(null),G_=null,gy=null,w9=null;function T9(){w9=gy=G_=null}function x9(e){var t=q_.current;Ui(q_),e._currentValue=t}function vP(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ly(e,t){G_=e,w9=gy=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Tl=!0),e.firstContext=null)}function Tc(e){var t=e._currentValue;if(w9!==e)if(e={context:e,memoizedValue:t,next:null},gy===null){if(G_===null)throw Error(Mt(308));gy=e,G_.dependencies={lanes:0,firstContext:e}}else gy=gy.next=e;return t}var Ig=null;function k9(e){Ig===null?Ig=[e]:Ig.push(e)}function Bie(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,k9(t)):(n.next=i.next,i.next=n),t.interleaved=n,lp(e,r)}function lp(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var m0=!1;function A9(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Uie(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Xh(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Z0(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Fr&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,lp(e,n)}return i=r.interleaved,i===null?(t.next=t,k9(r)):(t.next=i.next,i.next=t),r.interleaved=t,lp(e,n)}function N4(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,f9(e,n)}}function Rq(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=s:a=a.next=s,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Y_(e,t,n,r){var i=e.updateQueue;m0=!1;var a=i.firstBaseUpdate,s=i.lastBaseUpdate,o=i.shared.pending;if(o!==null){i.shared.pending=null;var l=o,u=l.next;l.next=null,s===null?a=u:s.next=u,s=l;var d=e.alternate;d!==null&&(d=d.updateQueue,o=d.lastBaseUpdate,o!==s&&(o===null?d.firstBaseUpdate=u:o.next=u,d.lastBaseUpdate=l))}if(a!==null){var f=i.baseState;s=0,d=u=l=null,o=a;do{var p=o.lane,g=o.eventTime;if((r&p)===p){d!==null&&(d=d.next={eventTime:g,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var O=e,S=o;switch(p=t,g=n,S.tag){case 1:if(O=S.payload,typeof O=="function"){f=O.call(g,f,p);break e}f=O;break e;case 3:O.flags=O.flags&-65537|128;case 0:if(O=S.payload,p=typeof O=="function"?O.call(g,f,p):O,p==null)break e;f=fa({},f,p);break e;case 2:m0=!0}}o.callback!==null&&o.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[o]:p.push(o))}else g={eventTime:g,lane:p,tag:o.tag,payload:o.payload,callback:o.callback,next:null},d===null?(u=d=g,l=f):d=d.next=g,s|=p;if(o=o.next,o===null){if(o=i.shared.pending,o===null)break;p=o,o=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(d===null&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);d1|=s,e.lanes=s,e.memoizedState=f}}function Iq(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=wN.transition;wN.transition={};try{e(!1),t()}finally{di=n,wN.transition=r}}function rae(){return xc().memoizedState}function Lwe(e,t,n){var r=K0(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},iae(e))aae(t,n);else if(n=Bie(e,t,n,r),n!==null){var i=Vo();vd(n,e,r,i),sae(n,t,r)}}function Mwe(e,t,n){var r=K0(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(iae(e))aae(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var s=t.lastRenderedState,o=a(s,n);if(i.hasEagerState=!0,i.eagerState=o,xd(o,s)){var l=t.interleaved;l===null?(i.next=i,k9(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Bie(e,t,i,r),n!==null&&(i=Vo(),vd(n,e,r,i),sae(n,t,r))}}function iae(e){var t=e.alternate;return e===ca||t!==null&&t===ca}function aae(e,t){XE=X_=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function sae(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,f9(e,n)}}var K_={readContext:Tc,useCallback:oo,useContext:oo,useEffect:oo,useImperativeHandle:oo,useInsertionEffect:oo,useLayoutEffect:oo,useMemo:oo,useReducer:oo,useRef:oo,useState:oo,useDebugValue:oo,useDeferredValue:oo,useTransition:oo,useMutableSource:oo,useSyncExternalStore:oo,useId:oo,unstable_isNewReconciler:!1},$we={readContext:Tc,useCallback:function(e,t){return of().memoizedState=[e,t===void 0?null:t],e},useContext:Tc,useEffect:Dq,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,P4(4194308,4,Kie.bind(null,t,e),n)},useLayoutEffect:function(e,t){return P4(4194308,4,e,t)},useInsertionEffect:function(e,t){return P4(4,2,e,t)},useMemo:function(e,t){var n=of();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=of();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=Lwe.bind(null,ca,e),[r.memoizedState,e]},useRef:function(e){var t=of();return e={current:e},t.memoizedState=e},useState:Nq,useDebugValue:L9,useDeferredValue:function(e){return of().memoizedState=e},useTransition:function(){var e=Nq(!1),t=e[0];return e=Pwe.bind(null,e[1]),of().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ca,i=of();if(Ji){if(n===void 0)throw Error(Mt(407));n=n()}else{if(n=t(),Ss===null)throw Error(Mt(349));c1&30||Qie(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Dq(Vie.bind(null,r,a,e),[e]),r.flags|=2048,Z2(9,Wie.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=of(),t=Ss.identifierPrefix;if(Ji){var n=Wh,r=Qh;n=(r&~(1<<32-yd(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=G2++,0")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=o);break}}}finally{J6=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?AE(e):""}function n2e(e){switch(e.tag){case 5:return AE(e.type);case 16:return AE("Lazy");case 13:return AE("Suspense");case 19:return AE("SuspenseList");case 0:case 2:case 15:return e=eN(e.type,!1),e;case 11:return e=eN(e.type.render,!1),e;case 1:return e=eN(e.type,!0),e;default:return""}}function z7(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 ey:return"Fragment";case Jb:return"Portal";case F7:return"Profiler";case KM:return"StrictMode";case B7:return"Suspense";case U7:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ire:return(e.displayName||"Context")+".Consumer";case Rre:return(e._context.displayName||"Context")+".Provider";case JM:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case e9:return t=e.displayName||null,t!==null?t:z7(e.type)||"Memo";case o0:t=e._payload,e=e._init;try{return z7(e(t))}catch{}}return null}function r2e(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 z7(t);case 8:return t===KM?"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 tm(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Dre(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function i2e(e){var t=Dre(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,a.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Hk(e){e._valueTracker||(e._valueTracker=i2e(e))}function Pre(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Dre(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function P_(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 j7(e,t){var n=t.checked;return da({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function jV(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=tm(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 Lre(e,t){t=t.checked,t!=null&&XM(e,"checked",t,!1)}function H7(e,t){Lre(e,t);var n=tm(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")?Q7(e,t.type,n):t.hasOwnProperty("defaultValue")&&Q7(e,t.type,tm(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function HV(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 Q7(e,t,n){(t!=="number"||P_(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var _E=Array.isArray;function wy(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Qk.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function F2(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var GE={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},a2e=["Webkit","ms","Moz","O"];Object.keys(GE).forEach(function(e){a2e.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),GE[t]=GE[e]})});function Bre(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||GE.hasOwnProperty(e)&&GE[e]?(""+t).trim():t+"px"}function Ure(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Bre(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var s2e=da({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 q7(e,t){if(t){if(s2e[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Lt(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Lt(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Lt(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Lt(62))}}function G7(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 Y7=null;function t9(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Z7=null,Ty=null,xy=null;function VV(e){if(e=cT(e)){if(typeof Z7!="function")throw Error(Lt(280));var t=e.stateNode;t&&(t=ZC(t),Z7(e.stateNode,e.type,t))}}function zre(e){Ty?xy?xy.push(e):xy=[e]:Ty=e}function jre(){if(Ty){var e=Ty,t=xy;if(xy=Ty=null,VV(e),t)for(e=0;e>>=0,e===0?32:31-(b2e(e)/y2e|0)|0}var Wk=64,Vk=4194304;function CE(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 F_(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,s=n&268435455;if(s!==0){var o=s&~i;o!==0?r=CE(o):(a&=s,a!==0&&(r=CE(a)))}else s=n&~i,s!==0?r=CE(s):a!==0&&(r=CE(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function lT(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-yd(t),e[t]=n}function E2e(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=ZE),tq=" ",nq=!1;function lie(e,t){switch(e){case"keyup":return Z2e.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uie(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ty=!1;function K2e(e,t){switch(e){case"compositionend":return uie(t);case"keypress":return t.which!==32?null:(nq=!0,tq);case"textInput":return e=t.data,e===tq&&nq?null:e;default:return null}}function J2e(e,t){if(ty)return e==="compositionend"||!u9&&lie(e,t)?(e=sie(),R4=s9=_0=null,ty=!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=sq(n)}}function hie(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?hie(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function pie(){for(var e=window,t=P_();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=P_(e.document)}return t}function c9(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 lwe(e){var t=pie(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&hie(n.ownerDocument.documentElement,n)){if(r!==null&&c9(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=oq(n,a);var s=oq(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ny=null,nP=null,KE=null,rP=!1;function lq(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;rP||ny==null||ny!==P_(r)||(r=ny,"selectionStart"in r&&c9(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}),KE&&Q2(KE,r)||(KE=r,r=z_(nP,"onSelect"),0ay||(e.current=uP[ay],uP[ay]=null,ay--)}function _i(e,t){ay++,uP[ay]=e.current,e.current=t}var nm={},vo=gm(nm),kl=gm(!1),d1=nm;function cv(e,t){var n=e.type.contextTypes;if(!n)return nm;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Al(e){return e=e.childContextTypes,e!=null}function H_(){Fi(kl),Fi(vo)}function mq(e,t,n){if(vo.current!==nm)throw Error(Lt(168));_i(vo,t),_i(kl,n)}function wie(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(Lt(108,r2e(e)||"Unknown",i));return da({},n,r)}function Q_(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||nm,d1=vo.current,_i(vo,e),_i(kl,kl.current),!0}function gq(e,t,n){var r=e.stateNode;if(!r)throw Error(Lt(169));n?(e=wie(e,t,d1),r.__reactInternalMemoizedMergedChildContext=e,Fi(kl),Fi(vo),_i(vo,e)):Fi(kl),_i(kl,n)}var Nh=null,XC=!1,pN=!1;function Tie(e){Nh===null?Nh=[e]:Nh.push(e)}function Owe(e){XC=!0,Tie(e)}function bm(){if(!pN&&Nh!==null){pN=!0;var e=0,t=si;try{var n=Nh;for(si=1;e>=s,i-=s,Fh=1<<32-yd(t)+i|n<L?(j=P,P=null):j=P.sibling;var B=p(w,P,k[L],_);if(B===null){P===null&&(P=j);break}e&&P&&B.alternate===null&&t(w,P),x=a(B,x,L),N===null?R=B:N.sibling=B,N=B,P=j}if(L===k.length)return n(w,P),Ki&&Eg(w,L),R;if(P===null){for(;LL?(j=P,P=null):j=P.sibling;var V=p(w,P,B.value,_);if(V===null){P===null&&(P=j);break}e&&P&&V.alternate===null&&t(w,P),x=a(V,x,L),N===null?R=V:N.sibling=V,N=V,P=j}if(B.done)return n(w,P),Ki&&Eg(w,L),R;if(P===null){for(;!B.done;L++,B=k.next())B=f(w,B.value,_),B!==null&&(x=a(B,x,L),N===null?R=B:N.sibling=B,N=B);return Ki&&Eg(w,L),R}for(P=r(w,P);!B.done;L++,B=k.next())B=g(P,w,L,B.value,_),B!==null&&(e&&B.alternate!==null&&P.delete(B.key===null?L:B.key),x=a(B,x,L),N===null?R=B:N.sibling=B,N=B);return e&&P.forEach(function(W){return t(w,W)}),Ki&&Eg(w,L),R}function T(w,x,k,_){if(typeof k=="object"&&k!==null&&k.type===ey&&k.key===null&&(k=k.props.children),typeof k=="object"&&k!==null){switch(k.$$typeof){case jk:e:{for(var R=k.key,N=x;N!==null;){if(N.key===R){if(R=k.type,R===ey){if(N.tag===7){n(w,N.sibling),x=i(N,k.props.children),x.return=w,w=x;break e}}else if(N.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===o0&&vq(R)===N.type){n(w,N.sibling),x=i(N,k.props),x.ref=WS(w,N,k),x.return=w,w=x;break e}n(w,N);break}else t(w,N);N=N.sibling}k.type===ey?(x=n1(k.props.children,w.mode,_,k.key),x.return=w,w=x):(_=F4(k.type,k.key,k.props,null,w.mode,_),_.ref=WS(w,x,k),_.return=w,w=_)}return s(w);case Jb:e:{for(N=k.key;x!==null;){if(x.key===N)if(x.tag===4&&x.stateNode.containerInfo===k.containerInfo&&x.stateNode.implementation===k.implementation){n(w,x.sibling),x=i(x,k.children||[]),x.return=w,w=x;break e}else{n(w,x);break}else t(w,x);x=x.sibling}x=EN(k,w.mode,_),x.return=w,w=x}return s(w);case o0:return N=k._init,T(w,x,N(k._payload),_)}if(_E(k))return O(w,x,k,_);if(US(k))return S(w,x,k,_);Jk(w,k)}return typeof k=="string"&&k!==""||typeof k=="number"?(k=""+k,x!==null&&x.tag===6?(n(w,x.sibling),x=i(x,k),x.return=w,w=x):(n(w,x),x=SN(k,w.mode,_),x.return=w,w=x),s(w)):n(w,x)}return T}var fv=_ie(!0),Cie=_ie(!1),q_=gm(null),G_=null,ly=null,p9=null;function m9(){p9=ly=G_=null}function g9(e){var t=q_.current;Fi(q_),e._currentValue=t}function fP(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ay(e,t){G_=e,p9=ly=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Tl=!0),e.firstContext=null)}function Tc(e){var t=e._currentValue;if(p9!==e)if(e={context:e,memoizedValue:t,next:null},ly===null){if(G_===null)throw Error(Lt(308));ly=e,G_.dependencies={lanes:0,firstContext:e}}else ly=ly.next=e;return t}var Pg=null;function b9(e){Pg===null?Pg=[e]:Pg.push(e)}function Rie(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,b9(t)):(n.next=i.next,i.next=n),t.interleaved=n,tp(e,r)}function tp(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var l0=!1;function y9(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Iie(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Wh(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function j0(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Fr&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,tp(e,n)}return i=r.interleaved,i===null?(t.next=t,b9(r)):(t.next=i.next,i.next=t),r.interleaved=t,tp(e,n)}function N4(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,r9(e,n)}}function Oq(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=s:a=a.next=s,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Y_(e,t,n,r){var i=e.updateQueue;l0=!1;var a=i.firstBaseUpdate,s=i.lastBaseUpdate,o=i.shared.pending;if(o!==null){i.shared.pending=null;var l=o,u=l.next;l.next=null,s===null?a=u:s.next=u,s=l;var d=e.alternate;d!==null&&(d=d.updateQueue,o=d.lastBaseUpdate,o!==s&&(o===null?d.firstBaseUpdate=u:o.next=u,d.lastBaseUpdate=l))}if(a!==null){var f=i.baseState;s=0,d=u=l=null,o=a;do{var p=o.lane,g=o.eventTime;if((r&p)===p){d!==null&&(d=d.next={eventTime:g,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var O=e,S=o;switch(p=t,g=n,S.tag){case 1:if(O=S.payload,typeof O=="function"){f=O.call(g,f,p);break e}f=O;break e;case 3:O.flags=O.flags&-65537|128;case 0:if(O=S.payload,p=typeof O=="function"?O.call(g,f,p):O,p==null)break e;f=da({},f,p);break e;case 2:l0=!0}}o.callback!==null&&o.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[o]:p.push(o))}else g={eventTime:g,lane:p,tag:o.tag,payload:o.payload,callback:o.callback,next:null},d===null?(u=d=g,l=f):d=d.next=g,s|=p;if(o=o.next,o===null){if(o=i.shared.pending,o===null)break;p=o,o=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(d===null&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);p1|=s,e.lanes=s,e.memoizedState=f}}function Sq(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=gN.transition;gN.transition={};try{e(!1),t()}finally{si=n,gN.transition=r}}function Gie(){return xc().memoizedState}function Twe(e,t,n){var r=Q0(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Yie(e))Zie(t,n);else if(n=Rie(e,t,n,r),n!==null){var i=Go();vd(n,e,r,i),Xie(n,t,r)}}function xwe(e,t,n){var r=Q0(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Yie(e))Zie(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var s=t.lastRenderedState,o=a(s,n);if(i.hasEagerState=!0,i.eagerState=o,xd(o,s)){var l=t.interleaved;l===null?(i.next=i,b9(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Rie(e,t,i,r),n!==null&&(i=Go(),vd(n,e,r,i),Xie(n,t,r))}}function Yie(e){var t=e.alternate;return e===ua||t!==null&&t===ua}function Zie(e,t){JE=X_=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Xie(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,r9(e,n)}}var K_={readContext:Tc,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},kwe={readContext:Tc,useCallback:function(e,t){return nf().memoizedState=[e,t===void 0?null:t],e},useContext:Tc,useEffect:wq,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,P4(4194308,4,Hie.bind(null,t,e),n)},useLayoutEffect:function(e,t){return P4(4194308,4,e,t)},useInsertionEffect:function(e,t){return P4(4,2,e,t)},useMemo:function(e,t){var n=nf();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=nf();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=Twe.bind(null,ua,e),[r.memoizedState,e]},useRef:function(e){var t=nf();return e={current:e},t.memoizedState=e},useState:Eq,useDebugValue:k9,useDeferredValue:function(e){return nf().memoizedState=e},useTransition:function(){var e=Eq(!1),t=e[0];return e=wwe.bind(null,e[1]),nf().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ua,i=nf();if(Ki){if(n===void 0)throw Error(Lt(407));n=n()}else{if(n=t(),ws===null)throw Error(Lt(349));h1&30||Lie(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,wq($ie.bind(null,r,a,e),[e]),r.flags|=2048,K2(9,Mie.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=nf(),t=ws.identifierPrefix;if(Ki){var n=Bh,r=Fh;n=(r&~(1<<32-yd(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Z2++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[vf]=t,e[W2]=r,gae(e,t,!1,!1),t.stateNode=e;e:{switch(s=tP(n,r),n){case"dialog":$i("cancel",e),$i("close",e),i=r;break;case"iframe":case"object":case"embed":$i("load",e),i=r;break;case"video":case"audio":for(i=0;i<_E.length;i++)$i(_E[i],e);i=r;break;case"source":$i("error",e),i=r;break;case"img":case"image":case"link":$i("error",e),$i("load",e),i=r;break;case"details":$i("toggle",e),i=r;break;case"input":KV(e,r),i=Y7(e,r),$i("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=fa({},r,{value:void 0}),$i("invalid",e);break;case"textarea":eq(e,r),i=K7(e,r),$i("invalid",e);break;default:i=r}eP(n,i),o=i;for(a in o)if(o.hasOwnProperty(a)){var l=o[a];a==="style"?Yre(e,l):a==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&qre(e,l)):a==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&M2(e,l):typeof l=="number"&&M2(e,""+l):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(L2.hasOwnProperty(a)?l!=null&&a==="onScroll"&&$i("scroll",e):l!=null&&s9(e,a,l,s))}switch(n){case"input":Hk(e),JV(e,r,!1);break;case"textarea":Hk(e),tq(e);break;case"option":r.value!=null&&e.setAttribute("value",""+lm(r.value));break;case"select":e.multiple=!!r.multiple,a=r.value,a!=null?Iy(e,!!r.multiple,a,!1):r.defaultValue!=null&&Iy(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=j_)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return lo(t),null;case 6:if(e&&t.stateNode!=null)yae(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Mt(166));if(n=Ng(q2.current),Ng(If.current),Kk(t)){if(r=t.stateNode,n=t.memoizedProps,r[vf]=t,(a=r.nodeValue!==n)&&(e=xu,e!==null))switch(e.tag){case 3:Xk(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Xk(r.nodeValue,n,(e.mode&1)!==0)}a&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[vf]=t,t.stateNode=r}return lo(t),null;case 13:if(Ui(la),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ji&&Ou!==null&&t.mode&1&&!(t.flags&128))Mie(),vv(),t.flags|=98560,a=!1;else if(a=Kk(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(Mt(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(Mt(317));a[vf]=t}else vv(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;lo(t),a=!1}else fd!==null&&(LP(fd),fd=null),a=!0;if(!a)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||la.current&1?as===0&&(as=3):j9())),t.updateQueue!==null&&(t.flags|=4),lo(t),null);case 4:return Sv(),AP(e,t),e===null&&H2(t.stateNode.containerInfo),lo(t),null;case 10:return x9(t.type._context),lo(t),null;case 17:return _l(t.type)&&H_(),lo(t),null;case 19:if(Ui(la),a=t.memoizedState,a===null)return lo(t),null;if(r=(t.flags&128)!==0,s=a.rendering,s===null)if(r)QS(a,!1);else{if(as!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Z_(e),s!==null){for(t.flags|=128,QS(a,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)a=n,e=r,a.flags&=14680066,s=a.alternate,s===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=s.childLanes,a.lanes=s.lanes,a.child=s.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=s.memoizedProps,a.memoizedState=s.memoizedState,a.updateQueue=s.updateQueue,a.type=s.type,e=s.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ii(la,la.current&1|2),t.child}e=e.sibling}a.tail!==null&&Ia()>wv&&(t.flags|=128,r=!0,QS(a,!1),t.lanes=4194304)}else{if(!r)if(e=Z_(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),QS(a,!0),a.tail===null&&a.tailMode==="hidden"&&!s.alternate&&!Ji)return lo(t),null}else 2*Ia()-a.renderingStartTime>wv&&n!==1073741824&&(t.flags|=128,r=!0,QS(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(n=a.last,n!==null?n.sibling=s:t.child=s,a.last=s)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ia(),t.sibling=null,n=la.current,Ii(la,r?n&1|2:n&1),t):(lo(t),null);case 22:case 23:return z9(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ou&1073741824&&(lo(t),t.subtreeFlags&6&&(t.flags|=8192)):lo(t),null;case 24:return null;case 25:return null}throw Error(Mt(156,t.tag))}function Wwe(e,t){switch(S9(t),t.tag){case 1:return _l(t.type)&&H_(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Sv(),Ui(Al),Ui(Oo),R9(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return C9(t),null;case 13:if(Ui(la),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Mt(340));vv()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ui(la),null;case 4:return Sv(),null;case 10:return x9(t.type._context),null;case 22:case 23:return z9(),null;case 24:return null;default:return null}}var tA=!1,po=!1,Vwe=typeof WeakSet=="function"?WeakSet:Set,fn=null;function by(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){wa(e,t,r)}else n.current=null}function _P(e,t,n){try{n()}catch(r){wa(e,t,r)}}var Qq=!1;function qwe(e,t){if(dP=B_,e=wie(),v9(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var s=0,o=-1,l=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var g;f!==n||i!==0&&f.nodeType!==3||(o=s+i),f!==a||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(g=f.firstChild)!==null;)p=f,f=g;for(;;){if(f===e)break t;if(p===n&&++u===i&&(o=s),p===a&&++d===r&&(l=s),(g=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=g}n=o===-1||l===-1?null:{start:o,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(fP={focusedElem:e,selectionRange:n},B_=!1,fn=t;fn!==null;)if(t=fn,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,fn=e;else for(;fn!==null;){t=fn;try{var O=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(O!==null){var S=O.memoizedProps,T=O.memoizedState,w=t.stateNode,x=w.getSnapshotBeforeUpdate(t.elementType===t.type?S:sd(t.type,S),T);w.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var k=t.stateNode.containerInfo;k.nodeType===1?k.textContent="":k.nodeType===9&&k.documentElement&&k.removeChild(k.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Mt(163))}}catch(_){wa(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,fn=e;break}fn=t.return}return O=Qq,Qq=!1,O}function KE(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&_P(t,n,a)}i=i.next}while(i!==r)}}function n5(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 CP(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 vae(e){var t=e.alternate;t!==null&&(e.alternate=null,vae(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[vf],delete t[W2],delete t[mP],delete t[Cwe],delete t[Rwe])),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 Oae(e){return e.tag===5||e.tag===3||e.tag===4}function Wq(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Oae(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 RP(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=j_));else if(r!==4&&(e=e.child,e!==null))for(RP(e,t,n),e=e.sibling;e!==null;)RP(e,t,n),e=e.sibling}function IP(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(IP(e,t,n),e=e.sibling;e!==null;)IP(e,t,n),e=e.sibling}var Is=null,ld=!1;function r0(e,t,n){for(n=n.child;n!==null;)Sae(e,t,n),n=n.sibling}function Sae(e,t,n){if(Rf&&typeof Rf.onCommitFiberUnmount=="function")try{Rf.onCommitFiberUnmount(G3,n)}catch{}switch(n.tag){case 5:po||by(n,t);case 6:var r=Is,i=ld;Is=null,r0(e,t,n),Is=r,ld=i,Is!==null&&(ld?(e=Is,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Is.removeChild(n.stateNode));break;case 18:Is!==null&&(ld?(e=Is,n=n.stateNode,e.nodeType===8?ON(e.parentNode,n):e.nodeType===1&&ON(e,n),U2(e)):ON(Is,n.stateNode));break;case 4:r=Is,i=ld,Is=n.stateNode.containerInfo,ld=!0,r0(e,t,n),Is=r,ld=i;break;case 0:case 11:case 14:case 15:if(!po&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,s=a.destroy;a=a.tag,s!==void 0&&(a&2||a&4)&&_P(n,t,s),i=i.next}while(i!==r)}r0(e,t,n);break;case 1:if(!po&&(by(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(o){wa(n,t,o)}r0(e,t,n);break;case 21:r0(e,t,n);break;case 22:n.mode&1?(po=(r=po)||n.memoizedState!==null,r0(e,t,n),po=r):r0(e,t,n);break;default:r0(e,t,n)}}function Vq(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Vwe),t.forEach(function(r){var i=nTe.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function ad(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~a}if(r=i,r=Ia()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ywe(r/1960))-r,10e?16:e,$0===null)var r=!1;else{if(e=$0,$0=null,tC=0,Fr&6)throw Error(Mt(331));var i=Fr;for(Fr|=4,fn=e.current;fn!==null;){var a=fn,s=a.child;if(fn.flags&16){var o=a.deletions;if(o!==null){for(var l=0;lIa()-B9?Kg(e,0):F9|=n),Cl(e,t)}function Cae(e,t){t===0&&(e.mode&1?(t=Vk,Vk<<=1,!(Vk&130023424)&&(Vk=4194304)):t=1);var n=Vo();e=lp(e,t),e!==null&&(sT(e,t,n),Cl(e,n))}function tTe(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Cae(e,n)}function nTe(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(Mt(314))}r!==null&&r.delete(t),Cae(e,n)}var Rae;Rae=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Al.current)Tl=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Tl=!1,Hwe(e,t,n);Tl=!!(e.flags&131072)}else Tl=!1,Ji&&t.flags&1048576&&Pie(t,V_,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;L4(e,t),e=t.pendingProps;var i=yv(t,Oo.current);Ly(t,n),i=N9(null,t,r,e,i,n);var a=D9();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,_l(r)?(a=!0,Q_(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,A9(t),i.updater=t5,t.stateNode=i,i._reactInternals=t,SP(t,r,e,n),t=TP(null,t,r,!0,a,n)):(t.tag=0,Ji&&a&&O9(t),Bo(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(L4(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=iTe(r),e=sd(r,e),i){case 0:t=wP(null,t,r,e,n);break e;case 1:t=zq(null,t,r,e,n);break e;case 11:t=Bq(null,t,r,e,n);break e;case 14:t=Uq(null,t,r,sd(r.type,e),n);break e}throw Error(Mt(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:sd(r,i),wP(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:sd(r,i),zq(e,t,r,i,n);case 3:e:{if(hae(t),e===null)throw Error(Mt(387));r=t.pendingProps,a=t.memoizedState,i=a.element,Uie(e,t),Y_(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=Ev(Error(Mt(423)),t),t=jq(e,t,r,n,i);break e}else if(r!==i){i=Ev(Error(Mt(424)),t),t=jq(e,t,r,n,i);break e}else for(Ou=Y0(t.stateNode.containerInfo.firstChild),xu=t,Ji=!0,fd=null,n=Fie(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(vv(),r===i){t=up(e,t,n);break e}Bo(e,t,r,n)}t=t.child}return t;case 5:return zie(t),e===null&&yP(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,s=i.children,hP(r,i)?s=null:a!==null&&hP(r,a)&&(t.flags|=32),fae(e,t),Bo(e,t,s,n),t.child;case 6:return e===null&&yP(t),null;case 13:return pae(e,t,n);case 4:return _9(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ov(t,null,r,n):Bo(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:sd(r,i),Bq(e,t,r,i,n);case 7:return Bo(e,t,t.pendingProps,n),t.child;case 8:return Bo(e,t,t.pendingProps.children,n),t.child;case 12:return Bo(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,Ii(q_,r._currentValue),r._currentValue=s,a!==null)if(xd(a.value,s)){if(a.children===i.children&&!Al.current){t=up(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var o=a.dependencies;if(o!==null){s=a.child;for(var l=o.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=Xh(-1,n&-n),l.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),vP(a.return,n,t),o.lanes|=n;break}l=l.next}}else if(a.tag===10)s=a.type===t.type?null:a.child;else if(a.tag===18){if(s=a.return,s===null)throw Error(Mt(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),vP(s,n,t),s=a.sibling}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===t){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}Bo(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ly(t,n),i=Tc(i),r=r(i),t.flags|=1,Bo(e,t,r,n),t.child;case 14:return r=t.type,i=sd(r,t.pendingProps),i=sd(r.type,i),Uq(e,t,r,i,n);case 15:return cae(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:sd(r,i),L4(e,t),t.tag=1,_l(r)?(e=!0,Q_(t)):e=!1,Ly(t,n),oae(t,r,i),SP(t,r,i,n),TP(null,t,r,!0,e,n);case 19:return mae(e,t,n);case 22:return dae(e,t,n)}throw Error(Mt(156,t.tag))};function Iae(e,t){return iie(e,t)}function rTe(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 fc(e,t,n,r){return new rTe(e,t,n,r)}function H9(e){return e=e.prototype,!(!e||!e.isReactComponent)}function iTe(e){if(typeof e=="function")return H9(e)?1:0;if(e!=null){if(e=e.$$typeof,e===l9)return 11;if(e===u9)return 14}return 2}function J0(e,t){var n=e.alternate;return n===null?(n=fc(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 F4(e,t,n,r,i,a){var s=2;if(r=e,typeof e=="function")H9(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case ly:return Jg(n.children,i,a,t);case o9:s=8,i|=8;break;case W7:return e=fc(12,n,t,i|2),e.elementType=W7,e.lanes=a,e;case V7:return e=fc(13,n,t,i),e.elementType=V7,e.lanes=a,e;case q7:return e=fc(19,n,t,i),e.elementType=q7,e.lanes=a,e;case zre:return i5(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Bre:s=10;break e;case Ure:s=9;break e;case l9:s=11;break e;case u9:s=14;break e;case p0:s=16,r=null;break e}throw Error(Mt(130,e==null?e:typeof e,""))}return t=fc(s,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function Jg(e,t,n,r){return e=fc(7,e,r,t),e.lanes=n,e}function i5(e,t,n,r){return e=fc(22,e,r,t),e.elementType=zre,e.lanes=n,e.stateNode={isHidden:!1},e}function _N(e,t,n){return e=fc(6,e,null,t),e.lanes=n,e}function CN(e,t,n){return t=fc(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function aTe(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=uN(0),this.expirationTimes=uN(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=uN(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Q9(e,t,n,r,i,a,s,o,l){return e=new aTe(e,t,n,o,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=fc(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},A9(a),e}function sTe(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Lae)}catch(e){console.error(e)}}Lae(),Lre.exports=Du;var aO=Lre.exports;const CE=Nu(aO),dTe=wre({__proto__:null,default:CE},[aO]);var eG=aO;H7.createRoot=eG.createRoot,H7.hydrateRoot=eG.hydrateRoot;const K2={black:"#000",white:"#fff"},Nb={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"},Db={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"},Pb={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"},Lb={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"},Mb={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"},VS={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"},fTe={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"};function cp(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n0?Ds(sO,--Pl):0,xv--,ja===10&&(xv=1,c5--),ja}function ku(){return ja=Pl2||ew(ja)>3?"":" "}function RTe(e,t){for(;--t&&ku()&&!(ja<48||ja>102||ja>57&&ja<65||ja>70&&ja<97););return cT(e,B4()+(t<6&&Nf()==32&&ku()==32))}function $P(e){for(;ku();)switch(ja){case e:return Pl;case 34:case 39:e!==34&&e!==39&&$P(ja);break;case 40:e===41&&$P(e);break;case 92:ku();break}return Pl}function ITe(e,t){for(;ku()&&e+ja!==57;)if(e+ja===84&&Nf()===47)break;return"/*"+cT(t,Pl-1)+"*"+u5(e===47?e:ku())}function NTe(e){for(;!ew(Nf());)ku();return cT(e,Pl)}function DTe(e){return jae(z4("",null,null,null,[""],e=zae(e),0,[0],e))}function z4(e,t,n,r,i,a,s,o,l){for(var u=0,d=0,f=s,p=0,g=0,O=0,S=1,T=1,w=1,x=0,k="",_=i,R=a,N=r,D=k;T;)switch(O=x,x=ku()){case 40:if(O!=108&&Ds(D,f-1)==58){MP(D+=qr(U4(x),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:D+=U4(x);break;case 9:case 10:case 13:case 32:D+=CTe(O);break;case 92:D+=RTe(B4()-1,7);continue;case 47:switch(Nf()){case 42:case 47:iA(PTe(ITe(ku(),B4()),t,n),l);break;default:D+="/"}break;case 123*S:o[u++]=mf(D)*w;case 125*S:case 59:case 0:switch(x){case 0:case 125:T=0;case 59+d:w==-1&&(D=qr(D,/\f/g,"")),g>0&&mf(D)-f&&iA(g>32?nG(D+";",r,n,f-1):nG(qr(D," ","")+";",r,n,f-2),l);break;case 59:D+=";";default:if(iA(N=tG(D,t,n,u,d,i,o,k,_=[],R=[],f),a),x===123)if(d===0)z4(D,t,N,N,_,a,f,o,R);else switch(p===99&&Ds(D,3)===110?100:p){case 100:case 108:case 109:case 115:z4(e,N,N,r&&iA(tG(e,N,N,0,0,i,o,k,i,_=[],f),R),i,R,f,o,r?_:R);break;default:z4(D,N,N,N,[""],R,0,o,R)}}u=d=g=0,S=w=1,k=D="",f=s;break;case 58:f=1+mf(D),g=O;default:if(S<1){if(x==123)--S;else if(x==125&&S++==0&&_Te()==125)continue}switch(D+=u5(x),x*S){case 38:w=d>0?1:(D+="\f",-1);break;case 44:o[u++]=(mf(D)-1)*w,w=1;break;case 64:Nf()===45&&(D+=U4(ku())),p=Nf(),d=f=mf(k=D+=NTe(B4())),x++;break;case 45:O===45&&mf(D)==2&&(S=0)}}return a}function tG(e,t,n,r,i,a,s,o,l,u,d){for(var f=i-1,p=i===0?a:[""],g=Z9(p),O=0,S=0,T=0;O0?p[w]+" "+x:qr(x,/&\f/g,p[w])))&&(l[T++]=k);return d5(e,t,n,i===0?G9:o,l,u,d)}function PTe(e,t,n){return d5(e,t,n,$ae,u5(ATe()),J2(e,2,-2),0)}function nG(e,t,n,r){return d5(e,t,n,Y9,J2(e,0,r),J2(e,r+1,-1),r)}function $y(e,t){for(var n="",r=Z9(e),i=0;i6)switch(Ds(e,t+1)){case 109:if(Ds(e,t+4)!==45)break;case 102:return qr(e,/(.+:)(.+)-([^]+)/,"$1"+Vr+"$2-$3$1"+iC+(Ds(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~MP(e,"stretch")?Hae(qr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ds(e,t+1)!==115)break;case 6444:switch(Ds(e,mf(e)-3-(~MP(e,"!important")&&10))){case 107:return qr(e,":",":"+Vr)+e;case 101:return qr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Vr+(Ds(e,14)===45?"inline-":"")+"box$3$1"+Vr+"$2$3$1"+co+"$2box$3")+e}break;case 5936:switch(Ds(e,t+11)){case 114:return Vr+e+co+qr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Vr+e+co+qr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Vr+e+co+qr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Vr+e+co+e+e}return e}var HTe=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Y9:t.return=Hae(t.value,t.length);break;case Fae:return $y([qS(t,{value:qr(t.value,"@","@"+Vr)})],i);case G9:if(t.length)return kTe(t.props,function(a){switch(xTe(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return $y([qS(t,{props:[qr(a,/:(read-\w+)/,":"+iC+"$1")]})],i);case"::placeholder":return $y([qS(t,{props:[qr(a,/:(plac\w+)/,":"+Vr+"input-$1")]}),qS(t,{props:[qr(a,/:(plac\w+)/,":"+iC+"$1")]}),qS(t,{props:[qr(a,/:(plac\w+)/,co+"input-$1")]})],i)}return""})}},QTe=[HTe],Qae=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(S){var T=S.getAttribute("data-emotion");T.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var i=t.stylisPlugins||QTe,a={},s,o=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var T=S.getAttribute("data-emotion").split(" "),w=1;w<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[mf]=t,e[q2]=r,oae(e,t,!1,!1),t.stateNode=e;e:{switch(s=G7(n,r),n){case"dialog":Pi("cancel",e),Pi("close",e),i=r;break;case"iframe":case"object":case"embed":Pi("load",e),i=r;break;case"video":case"audio":for(i=0;imv&&(t.flags|=128,r=!0,VS(a,!1),t.lanes=4194304)}else{if(!r)if(e=Z_(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),VS(a,!0),a.tail===null&&a.tailMode==="hidden"&&!s.alternate&&!Ki)return so(t),null}else 2*Da()-a.renderingStartTime>mv&&n!==1073741824&&(t.flags|=128,r=!0,VS(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(n=a.last,n!==null?n.sibling=s:t.child=s,a.last=s)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Da(),t.sibling=null,n=oa.current,_i(oa,r?n&1|2:n&1),t):(so(t),null);case 22:case 23:return N9(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ru&1073741824&&(so(t),t.subtreeFlags&6&&(t.flags|=8192)):so(t),null;case 24:return null;case 25:return null}throw Error(Lt(156,t.tag))}function Pwe(e,t){switch(f9(t),t.tag){case 1:return Al(t.type)&&H_(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return hv(),Fi(kl),Fi(vo),S9(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return O9(t),null;case 13:if(Fi(oa),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Lt(340));dv()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Fi(oa),null;case 4:return hv(),null;case 10:return g9(t.type._context),null;case 22:case 23:return N9(),null;case 24:return null;default:return null}}var tA=!1,fo=!1,Lwe=typeof WeakSet=="function"?WeakSet:Set,cn=null;function uy(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){wa(e,t,r)}else n.current=null}function SP(e,t,n){try{n()}catch(r){wa(e,t,r)}}var Pq=!1;function Mwe(e,t){if(iP=B_,e=pie(),c9(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var s=0,o=-1,l=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var g;f!==n||i!==0&&f.nodeType!==3||(o=s+i),f!==a||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(g=f.firstChild)!==null;)p=f,f=g;for(;;){if(f===e)break t;if(p===n&&++u===i&&(o=s),p===a&&++d===r&&(l=s),(g=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=g}n=o===-1||l===-1?null:{start:o,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(aP={focusedElem:e,selectionRange:n},B_=!1,cn=t;cn!==null;)if(t=cn,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,cn=e;else for(;cn!==null;){t=cn;try{var O=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(O!==null){var S=O.memoizedProps,T=O.memoizedState,w=t.stateNode,x=w.getSnapshotBeforeUpdate(t.elementType===t.type?S:sd(t.type,S),T);w.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var k=t.stateNode.containerInfo;k.nodeType===1?k.textContent="":k.nodeType===9&&k.documentElement&&k.removeChild(k.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Lt(163))}}catch(_){wa(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,cn=e;break}cn=t.return}return O=Pq,Pq=!1,O}function e2(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&SP(t,n,a)}i=i.next}while(i!==r)}}function e5(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 EP(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 cae(e){var t=e.alternate;t!==null&&(e.alternate=null,cae(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[mf],delete t[q2],delete t[lP],delete t[ywe],delete t[vwe])),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 dae(e){return e.tag===5||e.tag===3||e.tag===4}function Lq(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||dae(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 wP(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=j_));else if(r!==4&&(e=e.child,e!==null))for(wP(e,t,n),e=e.sibling;e!==null;)wP(e,t,n),e=e.sibling}function TP(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(TP(e,t,n),e=e.sibling;e!==null;)TP(e,t,n),e=e.sibling}var $s=null,ld=!1;function Zp(e,t,n){for(n=n.child;n!==null;)fae(e,t,n),n=n.sibling}function fae(e,t,n){if(kf&&typeof kf.onCommitFiberUnmount=="function")try{kf.onCommitFiberUnmount(VC,n)}catch{}switch(n.tag){case 5:fo||uy(n,t);case 6:var r=$s,i=ld;$s=null,Zp(e,t,n),$s=r,ld=i,$s!==null&&(ld?(e=$s,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):$s.removeChild(n.stateNode));break;case 18:$s!==null&&(ld?(e=$s,n=n.stateNode,e.nodeType===8?hN(e.parentNode,n):e.nodeType===1&&hN(e,n),j2(e)):hN($s,n.stateNode));break;case 4:r=$s,i=ld,$s=n.stateNode.containerInfo,ld=!0,Zp(e,t,n),$s=r,ld=i;break;case 0:case 11:case 14:case 15:if(!fo&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,s=a.destroy;a=a.tag,s!==void 0&&(a&2||a&4)&&SP(n,t,s),i=i.next}while(i!==r)}Zp(e,t,n);break;case 1:if(!fo&&(uy(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(o){wa(n,t,o)}Zp(e,t,n);break;case 21:Zp(e,t,n);break;case 22:n.mode&1?(fo=(r=fo)||n.memoizedState!==null,Zp(e,t,n),fo=r):Zp(e,t,n);break;default:Zp(e,t,n)}}function Mq(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Lwe),t.forEach(function(r){var i=Wwe.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function ad(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~a}if(r=i,r=Da()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Fwe(r/1960))-r,10e?16:e,C0===null)var r=!1;else{if(e=C0,C0=null,t3=0,Fr&6)throw Error(Lt(331));var i=Fr;for(Fr|=4,cn=e.current;cn!==null;){var a=cn,s=a.child;if(cn.flags&16){var o=a.deletions;if(o!==null){for(var l=0;lDa()-R9?t1(e,0):C9|=n),_l(e,t)}function Oae(e,t){t===0&&(e.mode&1?(t=Vk,Vk<<=1,!(Vk&130023424)&&(Vk=4194304)):t=1);var n=Go();e=tp(e,t),e!==null&&(lT(e,t,n),_l(e,n))}function Qwe(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Oae(e,n)}function Wwe(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(Lt(314))}r!==null&&r.delete(t),Oae(e,n)}var Sae;Sae=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||kl.current)Tl=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Tl=!1,Nwe(e,t,n);Tl=!!(e.flags&131072)}else Tl=!1,Ki&&t.flags&1048576&&xie(t,V_,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;L4(e,t),e=t.pendingProps;var i=cv(t,vo.current);Ay(t,n),i=w9(null,t,r,e,i,n);var a=T9();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,Al(r)?(a=!0,Q_(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,y9(t),i.updater=JC,t.stateNode=i,i._reactInternals=t,pP(t,r,e,n),t=bP(null,t,r,!0,a,n)):(t.tag=0,Ki&&a&&d9(t),zo(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(L4(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=qwe(r),e=sd(r,e),i){case 0:t=gP(null,t,r,e,n);break e;case 1:t=Iq(null,t,r,e,n);break e;case 11:t=Cq(null,t,r,e,n);break e;case 14:t=Rq(null,t,r,sd(r.type,e),n);break e}throw Error(Lt(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:sd(r,i),gP(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:sd(r,i),Iq(e,t,r,i,n);case 3:e:{if(iae(t),e===null)throw Error(Lt(387));r=t.pendingProps,a=t.memoizedState,i=a.element,Iie(e,t),Y_(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=pv(Error(Lt(423)),t),t=Nq(e,t,r,n,i);break e}else if(r!==i){i=pv(Error(Lt(424)),t),t=Nq(e,t,r,n,i);break e}else for(bu=z0(t.stateNode.containerInfo.firstChild),Eu=t,Ki=!0,fd=null,n=Cie(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(dv(),r===i){t=np(e,t,n);break e}zo(e,t,r,n)}t=t.child}return t;case 5:return Nie(t),e===null&&dP(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,s=i.children,sP(r,i)?s=null:a!==null&&sP(r,a)&&(t.flags|=32),rae(e,t),zo(e,t,s,n),t.child;case 6:return e===null&&dP(t),null;case 13:return aae(e,t,n);case 4:return v9(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=fv(t,null,r,n):zo(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:sd(r,i),Cq(e,t,r,i,n);case 7:return zo(e,t,t.pendingProps,n),t.child;case 8:return zo(e,t,t.pendingProps.children,n),t.child;case 12:return zo(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,_i(q_,r._currentValue),r._currentValue=s,a!==null)if(xd(a.value,s)){if(a.children===i.children&&!kl.current){t=np(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var o=a.dependencies;if(o!==null){s=a.child;for(var l=o.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=Wh(-1,n&-n),l.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),fP(a.return,n,t),o.lanes|=n;break}l=l.next}}else if(a.tag===10)s=a.type===t.type?null:a.child;else if(a.tag===18){if(s=a.return,s===null)throw Error(Lt(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),fP(s,n,t),s=a.sibling}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===t){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}zo(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ay(t,n),i=Tc(i),r=r(i),t.flags|=1,zo(e,t,r,n),t.child;case 14:return r=t.type,i=sd(r,t.pendingProps),i=sd(r.type,i),Rq(e,t,r,i,n);case 15:return tae(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:sd(r,i),L4(e,t),t.tag=1,Al(r)?(e=!0,Q_(t)):e=!1,Ay(t,n),Kie(t,r,i),pP(t,r,i,n),bP(null,t,r,!0,e,n);case 19:return sae(e,t,n);case 22:return nae(e,t,n)}throw Error(Lt(156,t.tag))};function Eae(e,t){return Yre(e,t)}function Vwe(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 dc(e,t,n,r){return new Vwe(e,t,n,r)}function P9(e){return e=e.prototype,!(!e||!e.isReactComponent)}function qwe(e){if(typeof e=="function")return P9(e)?1:0;if(e!=null){if(e=e.$$typeof,e===JM)return 11;if(e===e9)return 14}return 2}function W0(e,t){var n=e.alternate;return n===null?(n=dc(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 F4(e,t,n,r,i,a){var s=2;if(r=e,typeof e=="function")P9(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case ey:return n1(n.children,i,a,t);case KM:s=8,i|=8;break;case F7:return e=dc(12,n,t,i|2),e.elementType=F7,e.lanes=a,e;case B7:return e=dc(13,n,t,i),e.elementType=B7,e.lanes=a,e;case U7:return e=dc(19,n,t,i),e.elementType=U7,e.lanes=a,e;case Nre:return n5(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Rre:s=10;break e;case Ire:s=9;break e;case JM:s=11;break e;case e9:s=14;break e;case o0:s=16,r=null;break e}throw Error(Lt(130,e==null?e:typeof e,""))}return t=dc(s,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function n1(e,t,n,r){return e=dc(7,e,r,t),e.lanes=n,e}function n5(e,t,n,r){return e=dc(22,e,r,t),e.elementType=Nre,e.lanes=n,e.stateNode={isHidden:!1},e}function SN(e,t,n){return e=dc(6,e,null,t),e.lanes=n,e}function EN(e,t,n){return t=dc(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Gwe(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=nN(0),this.expirationTimes=nN(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nN(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function L9(e,t,n,r,i,a,s,o,l){return e=new Gwe(e,t,n,o,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=dc(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},y9(a),e}function Ywe(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(kae)}catch(e){console.error(e)}}kae(),kre.exports=Ru;var Yv=kre.exports;const IE=Cu(Yv),eTe=pre({__proto__:null,default:IE},[Yv]);var Qq=Yv;M7.createRoot=Qq.createRoot,M7.hydrateRoot=Qq.hydrateRoot;const ew={black:"#000",white:"#fff"},Tb={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"},xb={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"},kb={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"},Ab={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"},_b={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"},GS={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"},tTe={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"};function rp(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n0?Bs(Zv,--Dl):0,bv--,Ha===10&&(bv=1,l5--),Ha}function wu(){return Ha=Dl2||nw(Ha)>3?"":" "}function vTe(e,t){for(;--t&&wu()&&!(Ha<48||Ha>102||Ha>57&&Ha<65||Ha>70&&Ha<97););return fT(e,B4()+(t<6&&_f()==32&&wu()==32))}function RP(e){for(;wu();)switch(Ha){case e:return Dl;case 34:case 39:e!==34&&e!==39&&RP(Ha);break;case 40:e===41&&RP(e);break;case 92:wu();break}return Dl}function OTe(e,t){for(;wu()&&e+Ha!==57;)if(e+Ha===84&&_f()===47)break;return"/*"+fT(t,Dl-1)+"*"+o5(e===47?e:wu())}function STe(e){for(;!nw(_f());)wu();return fT(e,Dl)}function ETe(e){return Dae(z4("",null,null,null,[""],e=Nae(e),0,[0],e))}function z4(e,t,n,r,i,a,s,o,l){for(var u=0,d=0,f=s,p=0,g=0,O=0,S=1,T=1,w=1,x=0,k="",_=i,R=a,N=r,P=k;T;)switch(O=x,x=wu()){case 40:if(O!=108&&Bs(P,f-1)==58){CP(P+=qr(U4(x),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:P+=U4(x);break;case 9:case 10:case 13:case 32:P+=yTe(O);break;case 92:P+=vTe(B4()-1,7);continue;case 47:switch(_f()){case 42:case 47:iA(wTe(OTe(wu(),B4()),t,n),l);break;default:P+="/"}break;case 123*S:o[u++]=df(P)*w;case 125*S:case 59:case 0:switch(x){case 0:case 125:T=0;case 59+d:w==-1&&(P=qr(P,/\f/g,"")),g>0&&df(P)-f&&iA(g>32?Vq(P+";",r,n,f-1):Vq(qr(P," ","")+";",r,n,f-2),l);break;case 59:P+=";";default:if(iA(N=Wq(P,t,n,u,d,i,o,k,_=[],R=[],f),a),x===123)if(d===0)z4(P,t,N,N,_,a,f,o,R);else switch(p===99&&Bs(P,3)===110?100:p){case 100:case 108:case 109:case 115:z4(e,N,N,r&&iA(Wq(e,N,N,0,0,i,o,k,i,_=[],f),R),i,R,f,o,r?_:R);break;default:z4(P,N,N,N,[""],R,0,o,R)}}u=d=g=0,S=w=1,k=P="",f=s;break;case 58:f=1+df(P),g=O;default:if(S<1){if(x==123)--S;else if(x==125&&S++==0&&bTe()==125)continue}switch(P+=o5(x),x*S){case 38:w=d>0?1:(P+="\f",-1);break;case 44:o[u++]=(df(P)-1)*w,w=1;break;case 64:_f()===45&&(P+=U4(wu())),p=_f(),d=f=df(k=P+=STe(B4())),x++;break;case 45:O===45&&df(P)==2&&(S=0)}}return a}function Wq(e,t,n,r,i,a,s,o,l,u,d){for(var f=i-1,p=i===0?a:[""],g=z9(p),O=0,S=0,T=0;O0?p[w]+" "+x:qr(x,/&\f/g,p[w])))&&(l[T++]=k);return u5(e,t,n,i===0?B9:o,l,u,d)}function wTe(e,t,n){return u5(e,t,n,_ae,o5(gTe()),tw(e,2,-2),0)}function Vq(e,t,n,r){return u5(e,t,n,U9,tw(e,0,r),tw(e,r+1,-1),r)}function Cy(e,t){for(var n="",r=z9(e),i=0;i6)switch(Bs(e,t+1)){case 109:if(Bs(e,t+4)!==45)break;case 102:return qr(e,/(.+:)(.+)-([^]+)/,"$1"+Vr+"$2-$3$1"+i3+(Bs(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~CP(e,"stretch")?Pae(qr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Bs(e,t+1)!==115)break;case 6444:switch(Bs(e,df(e)-3-(~CP(e,"!important")&&10))){case 107:return qr(e,":",":"+Vr)+e;case 101:return qr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Vr+(Bs(e,14)===45?"inline-":"")+"box$3$1"+Vr+"$2$3$1"+lo+"$2box$3")+e}break;case 5936:switch(Bs(e,t+11)){case 114:return Vr+e+lo+qr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Vr+e+lo+qr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Vr+e+lo+qr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Vr+e+lo+e+e}return e}var NTe=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case U9:t.return=Pae(t.value,t.length);break;case Cae:return Cy([YS(t,{value:qr(t.value,"@","@"+Vr)})],i);case B9:if(t.length)return mTe(t.props,function(a){switch(pTe(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Cy([YS(t,{props:[qr(a,/:(read-\w+)/,":"+i3+"$1")]})],i);case"::placeholder":return Cy([YS(t,{props:[qr(a,/:(plac\w+)/,":"+Vr+"input-$1")]}),YS(t,{props:[qr(a,/:(plac\w+)/,":"+i3+"$1")]}),YS(t,{props:[qr(a,/:(plac\w+)/,lo+"input-$1")]})],i)}return""})}},DTe=[NTe],Lae=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(S){var T=S.getAttribute("data-emotion");T.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var i=t.stylisPlugins||DTe,a={},s,o=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var T=S.getAttribute("data-emotion").split(" "),w=1;w=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 nxe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},rxe=!1,ixe=/[A-Z]|^ms/g,axe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Xae=function(t){return t.charCodeAt(1)===45},iG=function(t){return t!=null&&typeof t!="boolean"},RN=Mae(function(e){return Xae(e)?e:e.replace(ixe,"-$&").toLowerCase()}),aG=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(axe,function(r,i,a){return gf={name:i,styles:a,next:gf},i})}return nxe[t]!==1&&!Xae(t)&&typeof n=="number"&&n!==0?n+"px":n},sxe="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function tw(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return gf={name:i.name,styles:i.styles,next:gf},i.name;var a=n;if(a.styles!==void 0){var s=a.next;if(s!==void 0)for(;s!==void 0;)gf={name:s.name,styles:s.styles,next:gf},s=s.next;var o=a.styles+";";return o}return oxe(e,t,n)}case"function":{if(e!==void 0){var l=gf,u=n(e);return gf=l,tw(e,t,u)}break}}var d=n;if(t==null)return d;var f=t[d];return f!==void 0?f:d}function oxe(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?hxe:pxe},cG=function(t,n,r){var i;if(n){var a=n.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(s){return t.__emotion_forwardProp(s)&&a(s)}:a}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},mxe=!1,gxe=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Yae(n,r,i),uxe(function(){return Zae(n,r,i)}),null},bxe=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,a,s;n!==void 0&&(a=n.label,s=n.target);var o=cG(t,n,r),l=o||uG(i),u=!l("as");return function(){var d=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),d[0]==null||d[0].raw===void 0)f.push.apply(f,d);else{f.push(d[0][0]);for(var p=d.length,g=1;gt(xxe(i)?n:i):t;return I.jsx(fxe,{styles:r})}function t$(e,t){return FP(e,t)}const sse=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},kxe=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:ase,StyledEngineProvider:Txe,ThemeContext:dT,css:E5,default:t$,internal_processStyles:sse,keyframes:oO},Symbol.toStringTag,{value:"Module"}));function Hh(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 ose(e){if(!Hh(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=ose(e[n])}),t}function qo(e,t,n={clone:!0}){const r=n.clone?Q({},e):e;return Hh(e)&&Hh(t)&&Object.keys(t).forEach(i=>{Hh(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Hh(e[i])?r[i]=qo(e[i],t[i],n):n.clone?r[i]=Hh(t[i])?ose(t[i]):t[i]:r[i]=t[i]}),r}const Axe=Object.freeze(Object.defineProperty({__proto__:null,default:qo,isPlainObject:Hh},Symbol.toStringTag,{value:"Module"})),_xe=["values","unit","step"],Cxe=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)=>Q({},n,{[r.key]:r.val}),{})};function lse(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=kt(e,_xe),a=Cxe(t),s=Object.keys(a);function o(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function u(p,g){const O=s.indexOf(g);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(O!==-1&&typeof t[s[O]]=="number"?t[s[O]]:g)-r/100}${n})`}function d(p){return s.indexOf(p)+1`@media (min-width:${n$[e]}px)`};function Ll(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||dG;return t.reduce((s,o,l)=>(s[a.up(a.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const a=r.breakpoints||dG;return Object.keys(t).reduce((s,o)=>{if(Object.keys(a.values||n$).indexOf(o)!==-1){const l=a.up(o);s[l]=n(t[o],o)}else{const l=o;s[l]=t[l]}return s},{})}return n(t)}function use(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const a=e.up(i);return r[a]={},r},{}))||{}}function cse(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function Ixe(e,...t){const n=use(e),r=[n,...t].reduce((i,a)=>qo(i,a),{});return cse(Object.keys(n),r)}function Nxe(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((i,a)=>{a{e[i]!=null&&(n[i]=!0)}),n}function e1({values:e,breakpoints:t,base:n}){const r=n||Nxe(e,t),i=Object.keys(r);if(i.length===0)return e;let a;return i.reduce((s,o,l)=>(Array.isArray(e)?(s[o]=e[l]!=null?e[l]:e[a],a=l):typeof e=="object"?(s[o]=e[o]!=null?e[o]:e[a],a=o):s[o]=e,s),{})}function lt(e){if(typeof e!="string")throw new Error(cp(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Dxe=Object.freeze(Object.defineProperty({__proto__:null,default:lt},Symbol.toStringTag,{value:"Module"}));function w5(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function aC(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=w5(e,n)||r,t&&(i=t(i,r,e)),i}function La(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,a=s=>{if(s[t]==null)return null;const o=s[t],l=s.theme,u=w5(l,r)||{};return Ll(s,o,f=>{let p=aC(u,i,f);return f===p&&typeof f=="string"&&(p=aC(u,i,`${t}${f==="default"?"":lt(f)}`,f)),n===!1?p:{[n]:p}})};return a.propTypes={},a.filterProps=[t],a}function Pxe(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Lxe={m:"margin",p:"padding"},Mxe={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},fG={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},$xe=Pxe(e=>{if(e.length>2)if(fG[e])e=fG[e];else return[e];const[t,n]=e.split(""),r=Lxe[t],i=Mxe[n]||"";return Array.isArray(i)?i.map(a=>r+a):[r+i]}),r$=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],i$=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...r$,...i$];function fT(e,t,n,r){var i;const a=(i=w5(e,t,!1))!=null?i:n;return typeof a=="number"?s=>typeof s=="string"?s:a*s:Array.isArray(a)?s=>typeof s=="string"?s:a[s]:typeof a=="function"?a:()=>{}}function a$(e){return fT(e,"spacing",8)}function h1(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 Fxe(e,t){return n=>e.reduce((r,i)=>(r[i]=h1(t,n),r),{})}function Bxe(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=$xe(n),a=Fxe(i,r),s=e[n];return Ll(e,s,a)}function dse(e,t){const n=a$(e.theme);return Object.keys(e).map(r=>Bxe(e,t,r,n)).reduce(t2,{})}function va(e){return dse(e,r$)}va.propTypes={};va.filterProps=r$;function Oa(e){return dse(e,i$)}Oa.propTypes={};Oa.filterProps=i$;function Uxe(e=8){if(e.mui)return e;const t=a$({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(a=>{const s=t(a);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function T5(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(a=>{r[a]=i}),r),{}),n=r=>Object.keys(r).reduce((i,a)=>t[a]?t2(i,t[a](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function oc(e){return typeof e!="number"?e:`${e}px solid`}function Dc(e,t){return La({prop:e,themeKey:"borders",transform:t})}const zxe=Dc("border",oc),jxe=Dc("borderTop",oc),Hxe=Dc("borderRight",oc),Qxe=Dc("borderBottom",oc),Wxe=Dc("borderLeft",oc),Vxe=Dc("borderColor"),qxe=Dc("borderTopColor"),Gxe=Dc("borderRightColor"),Yxe=Dc("borderBottomColor"),Zxe=Dc("borderLeftColor"),Xxe=Dc("outline",oc),Kxe=Dc("outlineColor"),x5=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=fT(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:h1(t,r)});return Ll(e,e.borderRadius,n)}return null};x5.propTypes={};x5.filterProps=["borderRadius"];T5(zxe,jxe,Hxe,Qxe,Wxe,Vxe,qxe,Gxe,Yxe,Zxe,x5,Xxe,Kxe);const k5=e=>{if(e.gap!==void 0&&e.gap!==null){const t=fT(e.theme,"spacing",8),n=r=>({gap:h1(t,r)});return Ll(e,e.gap,n)}return null};k5.propTypes={};k5.filterProps=["gap"];const A5=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=fT(e.theme,"spacing",8),n=r=>({columnGap:h1(t,r)});return Ll(e,e.columnGap,n)}return null};A5.propTypes={};A5.filterProps=["columnGap"];const _5=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=fT(e.theme,"spacing",8),n=r=>({rowGap:h1(t,r)});return Ll(e,e.rowGap,n)}return null};_5.propTypes={};_5.filterProps=["rowGap"];const Jxe=La({prop:"gridColumn"}),eke=La({prop:"gridRow"}),tke=La({prop:"gridAutoFlow"}),nke=La({prop:"gridAutoColumns"}),rke=La({prop:"gridAutoRows"}),ike=La({prop:"gridTemplateColumns"}),ake=La({prop:"gridTemplateRows"}),ske=La({prop:"gridTemplateAreas"}),oke=La({prop:"gridArea"});T5(k5,A5,_5,Jxe,eke,tke,nke,rke,ike,ake,ske,oke);function Fy(e,t){return t==="grey"?t:e}const lke=La({prop:"color",themeKey:"palette",transform:Fy}),uke=La({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Fy}),cke=La({prop:"backgroundColor",themeKey:"palette",transform:Fy});T5(lke,uke,cke);function bu(e){return e<=1&&e!==0?`${e*100}%`:e}const dke=La({prop:"width",transform:bu}),s$=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i;const a=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||n$[n];return a?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:bu(n)}};return Ll(e,e.maxWidth,t)}return null};s$.filterProps=["maxWidth"];const fke=La({prop:"minWidth",transform:bu}),hke=La({prop:"height",transform:bu}),pke=La({prop:"maxHeight",transform:bu}),mke=La({prop:"minHeight",transform:bu});La({prop:"size",cssProperty:"width",transform:bu});La({prop:"size",cssProperty:"height",transform:bu});const gke=La({prop:"boxSizing"});T5(dke,s$,fke,hke,pke,mke,gke);const hT={border:{themeKey:"borders",transform:oc},borderTop:{themeKey:"borders",transform:oc},borderRight:{themeKey:"borders",transform:oc},borderBottom:{themeKey:"borders",transform:oc},borderLeft:{themeKey:"borders",transform:oc},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:oc},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:x5},color:{themeKey:"palette",transform:Fy},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Fy},backgroundColor:{themeKey:"palette",transform:Fy},p:{style:Oa},pt:{style:Oa},pr:{style:Oa},pb:{style:Oa},pl:{style:Oa},px:{style:Oa},py:{style:Oa},padding:{style:Oa},paddingTop:{style:Oa},paddingRight:{style:Oa},paddingBottom:{style:Oa},paddingLeft:{style:Oa},paddingX:{style:Oa},paddingY:{style:Oa},paddingInline:{style:Oa},paddingInlineStart:{style:Oa},paddingInlineEnd:{style:Oa},paddingBlock:{style:Oa},paddingBlockStart:{style:Oa},paddingBlockEnd:{style:Oa},m:{style:va},mt:{style:va},mr:{style:va},mb:{style:va},ml:{style:va},mx:{style:va},my:{style:va},margin:{style:va},marginTop:{style:va},marginRight:{style:va},marginBottom:{style:va},marginLeft:{style:va},marginX:{style:va},marginY:{style:va},marginInline:{style:va},marginInlineStart:{style:va},marginInlineEnd:{style:va},marginBlock:{style:va},marginBlockStart:{style:va},marginBlockEnd:{style:va},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:k5},rowGap:{style:_5},columnGap:{style:A5},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:bu},maxWidth:{style:s$},minWidth:{transform:bu},height:{transform:bu},maxHeight:{transform:bu},minHeight:{transform:bu},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function bke(...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 yke(e,t){return typeof e=="function"?e(t):e}function fse(){function e(n,r,i,a){const s={[n]:r,theme:i},o=a[n];if(!o)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:d,style:f}=o;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const p=w5(i,u)||{};return f?f(s):Ll(s,r,O=>{let S=aC(p,d,O);return O===S&&typeof O=="string"&&(S=aC(p,d,`${n}${O==="default"?"":lt(O)}`,O)),l===!1?S:{[l]:S}})}function t(n){var r;const{sx:i,theme:a={}}=n||{};if(!i)return null;const s=(r=a.unstable_sxConfig)!=null?r:hT;function o(l){let u=l;if(typeof l=="function")u=l(a);else if(typeof l!="object")return l;if(!u)return null;const d=use(a.breakpoints),f=Object.keys(d);let p=d;return Object.keys(u).forEach(g=>{const O=yke(u[g],a);if(O!=null)if(typeof O=="object")if(s[g])p=t2(p,e(g,O,a,s));else{const S=Ll({theme:a},O,T=>({[g]:T}));bke(S,O)?p[g]=t({sx:O,theme:a}):p=t2(p,S)}else p=t2(p,e(g,O,a,s))}),cse(f,p)}return Array.isArray(i)?i.map(o):o(i)}return t}const lO=fse();lO.filterProps=["sx"];function hse(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const vke=["breakpoints","palette","spacing","shape"];function uO(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:a={}}=e,s=kt(e,vke),o=lse(n),l=Uxe(i);let u=qo({breakpoints:o,direction:"ltr",components:{},palette:Q({mode:"light"},r),spacing:l,shape:Q({},Rxe,a)},s);return u.applyStyles=hse,u=t.reduce((d,f)=>qo(d,f),u),u.unstable_sxConfig=Q({},hT,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(f){return lO({sx:f,theme:this})},u}const Oke=Object.freeze(Object.defineProperty({__proto__:null,default:uO,private_createBreakpoints:lse,unstable_applyStyles:hse},Symbol.toStringTag,{value:"Module"}));function Ske(e){return Object.keys(e).length===0}function o$(e=null){const t=M.useContext(dT);return!t||Ske(t)?e:t}const Eke=uO();function C5(e=Eke){return o$(e)}function wke({styles:e,themeId:t,defaultTheme:n={}}){const r=C5(n),i=typeof e=="function"?e(t&&r[t]||r):e;return I.jsx(ase,{styles:i})}const Tke=["sx"],xke=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:hT;return Object.keys(e).forEach(a=>{i[a]?r.systemProps[a]=e[a]:r.otherProps[a]=e[a]}),r};function pT(e){const{sx:t}=e,n=kt(e,Tke),{systemProps:r,otherProps:i}=xke(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...s)=>{const o=t(...s);return Hh(o)?Q({},r,o):r}:a=Q({},r,t),Q({},i,{sx:a})}const kke=Object.freeze(Object.defineProperty({__proto__:null,default:lO,extendSxProp:pT,unstable_createStyleFunctionSx:fse,unstable_defaultSxConfig:hT},Symbol.toStringTag,{value:"Module"})),hG=e=>e,Ake=()=>{let e=hG;return{configure(t){e=t},generate(t){return e(t)},reset(){e=hG}}},l$=Ake();function pse(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;to!=="theme"&&o!=="sx"&&o!=="as"})(lO);return M.forwardRef(function(l,u){const d=C5(n),f=pT(l),{className:p,component:g="div"}=f,O=kt(f,_ke);return I.jsx(a,Q({as:g,ref:u,className:xt(p,i?i(r):r),theme:t&&d[t]||d},O))})}const Rke={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 hn(e,t,n="Mui"){const r=Rke[t];return r?`${n}-${r}`:`${l$.generate(e)}-${t}`}function pn(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=hn(e,i,n)}),r}var mse={exports:{}},hi={};/** + */var Ts=typeof Symbol=="function"&&Symbol.for,j9=Ts?Symbol.for("react.element"):60103,H9=Ts?Symbol.for("react.portal"):60106,c5=Ts?Symbol.for("react.fragment"):60107,d5=Ts?Symbol.for("react.strict_mode"):60108,f5=Ts?Symbol.for("react.profiler"):60114,h5=Ts?Symbol.for("react.provider"):60109,p5=Ts?Symbol.for("react.context"):60110,Q9=Ts?Symbol.for("react.async_mode"):60111,m5=Ts?Symbol.for("react.concurrent_mode"):60111,g5=Ts?Symbol.for("react.forward_ref"):60112,b5=Ts?Symbol.for("react.suspense"):60113,PTe=Ts?Symbol.for("react.suspense_list"):60120,y5=Ts?Symbol.for("react.memo"):60115,v5=Ts?Symbol.for("react.lazy"):60116,LTe=Ts?Symbol.for("react.block"):60121,MTe=Ts?Symbol.for("react.fundamental"):60117,$Te=Ts?Symbol.for("react.responder"):60118,FTe=Ts?Symbol.for("react.scope"):60119;function Nu(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case j9:switch(e=e.type,e){case Q9:case m5:case c5:case f5:case d5:case b5:return e;default:switch(e=e&&e.$$typeof,e){case p5:case g5:case v5:case y5:case h5:return e;default:return t}}case H9:return t}}}function $ae(e){return Nu(e)===m5}oi.AsyncMode=Q9;oi.ConcurrentMode=m5;oi.ContextConsumer=p5;oi.ContextProvider=h5;oi.Element=j9;oi.ForwardRef=g5;oi.Fragment=c5;oi.Lazy=v5;oi.Memo=y5;oi.Portal=H9;oi.Profiler=f5;oi.StrictMode=d5;oi.Suspense=b5;oi.isAsyncMode=function(e){return $ae(e)||Nu(e)===Q9};oi.isConcurrentMode=$ae;oi.isContextConsumer=function(e){return Nu(e)===p5};oi.isContextProvider=function(e){return Nu(e)===h5};oi.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===j9};oi.isForwardRef=function(e){return Nu(e)===g5};oi.isFragment=function(e){return Nu(e)===c5};oi.isLazy=function(e){return Nu(e)===v5};oi.isMemo=function(e){return Nu(e)===y5};oi.isPortal=function(e){return Nu(e)===H9};oi.isProfiler=function(e){return Nu(e)===f5};oi.isStrictMode=function(e){return Nu(e)===d5};oi.isSuspense=function(e){return Nu(e)===b5};oi.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===c5||e===m5||e===f5||e===d5||e===b5||e===PTe||typeof e=="object"&&e!==null&&(e.$$typeof===v5||e.$$typeof===y5||e.$$typeof===h5||e.$$typeof===p5||e.$$typeof===g5||e.$$typeof===MTe||e.$$typeof===$Te||e.$$typeof===FTe||e.$$typeof===LTe)};oi.typeOf=Nu;Mae.exports=oi;var BTe=Mae.exports,Fae=BTe,UTe={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},zTe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Bae={};Bae[Fae.ForwardRef]=UTe;Bae[Fae.Memo]=zTe;var jTe=!0;function HTe(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var Uae=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||jTe===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},zae=function(t,n,r){Uae(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var a=n;do t.insert(n===a?"."+i:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function QTe(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 WTe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},VTe=!1,qTe=/[A-Z]|^ms/g,GTe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,jae=function(t){return t.charCodeAt(1)===45},Gq=function(t){return t!=null&&typeof t!="boolean"},wN=Aae(function(e){return jae(e)?e:e.replace(qTe,"-$&").toLowerCase()}),Yq=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(GTe,function(r,i,a){return ff={name:i,styles:a,next:ff},i})}return WTe[t]!==1&&!jae(t)&&typeof n=="number"&&n!==0?n+"px":n},YTe="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function rw(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return ff={name:i.name,styles:i.styles,next:ff},i.name;var a=n;if(a.styles!==void 0){var s=a.next;if(s!==void 0)for(;s!==void 0;)ff={name:s.name,styles:s.styles,next:ff},s=s.next;var o=a.styles+";";return o}return ZTe(e,t,n)}case"function":{if(e!==void 0){var l=ff,u=n(e);return ff=l,rw(e,t,u)}break}}var d=n;if(t==null)return d;var f=t[d];return f!==void 0?f:d}function ZTe(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?nxe:rxe},eG=function(t,n,r){var i;if(n){var a=n.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(s){return t.__emotion_forwardProp(s)&&a(s)}:a}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},ixe=!1,axe=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Uae(n,r,i),KTe(function(){return zae(n,r,i)}),null},sxe=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,a,s;n!==void 0&&(a=n.label,s=n.target);var o=eG(t,n,r),l=o||Jq(i),u=!l("as");return function(){var d=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),d[0]==null||d[0].raw===void 0)f.push.apply(f,d);else{f.push(d[0][0]);for(var p=d.length,g=1;gt(pxe(i)?n:i):t;return I.jsx(txe,{styles:r})}function V9(e,t){return IP(e,t)}const Xae=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},mxe=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Zae,StyledEngineProvider:hxe,ThemeContext:hT,css:O5,default:V9,internal_processStyles:Xae,keyframes:Xv},Symbol.toStringTag,{value:"Module"}));function $h(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 Kae(e){if(!$h(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Kae(e[n])}),t}function Yo(e,t,n={clone:!0}){const r=n.clone?Q({},e):e;return $h(e)&&$h(t)&&Object.keys(t).forEach(i=>{$h(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&$h(e[i])?r[i]=Yo(e[i],t[i],n):n.clone?r[i]=$h(t[i])?Kae(t[i]):t[i]:r[i]=t[i]}),r}const gxe=Object.freeze(Object.defineProperty({__proto__:null,default:Yo,isPlainObject:$h},Symbol.toStringTag,{value:"Module"})),bxe=["values","unit","step"],yxe=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)=>Q({},n,{[r.key]:r.val}),{})};function Jae(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=Tt(e,bxe),a=yxe(t),s=Object.keys(a);function o(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function u(p,g){const O=s.indexOf(g);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(O!==-1&&typeof t[s[O]]=="number"?t[s[O]]:g)-r/100}${n})`}function d(p){return s.indexOf(p)+1`@media (min-width:${q9[e]}px)`};function Pl(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||tG;return t.reduce((s,o,l)=>(s[a.up(a.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const a=r.breakpoints||tG;return Object.keys(t).reduce((s,o)=>{if(Object.keys(a.values||q9).indexOf(o)!==-1){const l=a.up(o);s[l]=n(t[o],o)}else{const l=o;s[l]=t[l]}return s},{})}return n(t)}function ese(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const a=e.up(i);return r[a]={},r},{}))||{}}function tse(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function Oxe(e,...t){const n=ese(e),r=[n,...t].reduce((i,a)=>Yo(i,a),{});return tse(Object.keys(n),r)}function Sxe(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((i,a)=>{a{e[i]!=null&&(n[i]=!0)}),n}function r1({values:e,breakpoints:t,base:n}){const r=n||Sxe(e,t),i=Object.keys(r);if(i.length===0)return e;let a;return i.reduce((s,o,l)=>(Array.isArray(e)?(s[o]=e[l]!=null?e[l]:e[a],a=l):typeof e=="object"?(s[o]=e[o]!=null?e[o]:e[a],a=o):s[o]=e,s),{})}function st(e){if(typeof e!="string")throw new Error(rp(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Exe=Object.freeze(Object.defineProperty({__proto__:null,default:st},Symbol.toStringTag,{value:"Module"}));function S5(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function a3(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=S5(e,n)||r,t&&(i=t(i,r,e)),i}function $a(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,a=s=>{if(s[t]==null)return null;const o=s[t],l=s.theme,u=S5(l,r)||{};return Pl(s,o,f=>{let p=a3(u,i,f);return f===p&&typeof f=="string"&&(p=a3(u,i,`${t}${f==="default"?"":st(f)}`,f)),n===!1?p:{[n]:p}})};return a.propTypes={},a.filterProps=[t],a}function wxe(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Txe={m:"margin",p:"padding"},xxe={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},nG={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},kxe=wxe(e=>{if(e.length>2)if(nG[e])e=nG[e];else return[e];const[t,n]=e.split(""),r=Txe[t],i=xxe[n]||"";return Array.isArray(i)?i.map(a=>r+a):[r+i]}),G9=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Y9=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...G9,...Y9];function pT(e,t,n,r){var i;const a=(i=S5(e,t,!1))!=null?i:n;return typeof a=="number"?s=>typeof s=="string"?s:a*s:Array.isArray(a)?s=>typeof s=="string"?s:a[s]:typeof a=="function"?a:()=>{}}function Z9(e){return pT(e,"spacing",8)}function g1(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 Axe(e,t){return n=>e.reduce((r,i)=>(r[i]=g1(t,n),r),{})}function _xe(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=kxe(n),a=Axe(i,r),s=e[n];return Pl(e,s,a)}function nse(e,t){const n=Z9(e.theme);return Object.keys(e).map(r=>_xe(e,t,r,n)).reduce(r2,{})}function va(e){return nse(e,G9)}va.propTypes={};va.filterProps=G9;function Oa(e){return nse(e,Y9)}Oa.propTypes={};Oa.filterProps=Y9;function Cxe(e=8){if(e.mui)return e;const t=Z9({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(a=>{const s=t(a);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function E5(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(a=>{r[a]=i}),r),{}),n=r=>Object.keys(r).reduce((i,a)=>t[a]?r2(i,t[a](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function sc(e){return typeof e!="number"?e:`${e}px solid`}function Nc(e,t){return $a({prop:e,themeKey:"borders",transform:t})}const Rxe=Nc("border",sc),Ixe=Nc("borderTop",sc),Nxe=Nc("borderRight",sc),Dxe=Nc("borderBottom",sc),Pxe=Nc("borderLeft",sc),Lxe=Nc("borderColor"),Mxe=Nc("borderTopColor"),$xe=Nc("borderRightColor"),Fxe=Nc("borderBottomColor"),Bxe=Nc("borderLeftColor"),Uxe=Nc("outline",sc),zxe=Nc("outlineColor"),w5=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=pT(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:g1(t,r)});return Pl(e,e.borderRadius,n)}return null};w5.propTypes={};w5.filterProps=["borderRadius"];E5(Rxe,Ixe,Nxe,Dxe,Pxe,Lxe,Mxe,$xe,Fxe,Bxe,w5,Uxe,zxe);const T5=e=>{if(e.gap!==void 0&&e.gap!==null){const t=pT(e.theme,"spacing",8),n=r=>({gap:g1(t,r)});return Pl(e,e.gap,n)}return null};T5.propTypes={};T5.filterProps=["gap"];const x5=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=pT(e.theme,"spacing",8),n=r=>({columnGap:g1(t,r)});return Pl(e,e.columnGap,n)}return null};x5.propTypes={};x5.filterProps=["columnGap"];const k5=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=pT(e.theme,"spacing",8),n=r=>({rowGap:g1(t,r)});return Pl(e,e.rowGap,n)}return null};k5.propTypes={};k5.filterProps=["rowGap"];const jxe=$a({prop:"gridColumn"}),Hxe=$a({prop:"gridRow"}),Qxe=$a({prop:"gridAutoFlow"}),Wxe=$a({prop:"gridAutoColumns"}),Vxe=$a({prop:"gridAutoRows"}),qxe=$a({prop:"gridTemplateColumns"}),Gxe=$a({prop:"gridTemplateRows"}),Yxe=$a({prop:"gridTemplateAreas"}),Zxe=$a({prop:"gridArea"});E5(T5,x5,k5,jxe,Hxe,Qxe,Wxe,Vxe,qxe,Gxe,Yxe,Zxe);function Ry(e,t){return t==="grey"?t:e}const Xxe=$a({prop:"color",themeKey:"palette",transform:Ry}),Kxe=$a({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ry}),Jxe=$a({prop:"backgroundColor",themeKey:"palette",transform:Ry});E5(Xxe,Kxe,Jxe);function hu(e){return e<=1&&e!==0?`${e*100}%`:e}const eke=$a({prop:"width",transform:hu}),X9=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i;const a=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||q9[n];return a?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:hu(n)}};return Pl(e,e.maxWidth,t)}return null};X9.filterProps=["maxWidth"];const tke=$a({prop:"minWidth",transform:hu}),nke=$a({prop:"height",transform:hu}),rke=$a({prop:"maxHeight",transform:hu}),ike=$a({prop:"minHeight",transform:hu});$a({prop:"size",cssProperty:"width",transform:hu});$a({prop:"size",cssProperty:"height",transform:hu});const ake=$a({prop:"boxSizing"});E5(eke,X9,tke,nke,rke,ike,ake);const mT={border:{themeKey:"borders",transform:sc},borderTop:{themeKey:"borders",transform:sc},borderRight:{themeKey:"borders",transform:sc},borderBottom:{themeKey:"borders",transform:sc},borderLeft:{themeKey:"borders",transform:sc},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:sc},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:w5},color:{themeKey:"palette",transform:Ry},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ry},backgroundColor:{themeKey:"palette",transform:Ry},p:{style:Oa},pt:{style:Oa},pr:{style:Oa},pb:{style:Oa},pl:{style:Oa},px:{style:Oa},py:{style:Oa},padding:{style:Oa},paddingTop:{style:Oa},paddingRight:{style:Oa},paddingBottom:{style:Oa},paddingLeft:{style:Oa},paddingX:{style:Oa},paddingY:{style:Oa},paddingInline:{style:Oa},paddingInlineStart:{style:Oa},paddingInlineEnd:{style:Oa},paddingBlock:{style:Oa},paddingBlockStart:{style:Oa},paddingBlockEnd:{style:Oa},m:{style:va},mt:{style:va},mr:{style:va},mb:{style:va},ml:{style:va},mx:{style:va},my:{style:va},margin:{style:va},marginTop:{style:va},marginRight:{style:va},marginBottom:{style:va},marginLeft:{style:va},marginX:{style:va},marginY:{style:va},marginInline:{style:va},marginInlineStart:{style:va},marginInlineEnd:{style:va},marginBlock:{style:va},marginBlockStart:{style:va},marginBlockEnd:{style:va},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:T5},rowGap:{style:k5},columnGap:{style:x5},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:hu},maxWidth:{style:X9},minWidth:{transform:hu},height:{transform:hu},maxHeight:{transform:hu},minHeight:{transform:hu},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function ske(...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 oke(e,t){return typeof e=="function"?e(t):e}function rse(){function e(n,r,i,a){const s={[n]:r,theme:i},o=a[n];if(!o)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:d,style:f}=o;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const p=S5(i,u)||{};return f?f(s):Pl(s,r,O=>{let S=a3(p,d,O);return O===S&&typeof O=="string"&&(S=a3(p,d,`${n}${O==="default"?"":st(O)}`,O)),l===!1?S:{[l]:S}})}function t(n){var r;const{sx:i,theme:a={}}=n||{};if(!i)return null;const s=(r=a.unstable_sxConfig)!=null?r:mT;function o(l){let u=l;if(typeof l=="function")u=l(a);else if(typeof l!="object")return l;if(!u)return null;const d=ese(a.breakpoints),f=Object.keys(d);let p=d;return Object.keys(u).forEach(g=>{const O=oke(u[g],a);if(O!=null)if(typeof O=="object")if(s[g])p=r2(p,e(g,O,a,s));else{const S=Pl({theme:a},O,T=>({[g]:T}));ske(S,O)?p[g]=t({sx:O,theme:a}):p=r2(p,S)}else p=r2(p,e(g,O,a,s))}),tse(f,p)}return Array.isArray(i)?i.map(o):o(i)}return t}const Kv=rse();Kv.filterProps=["sx"];function ise(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const lke=["breakpoints","palette","spacing","shape"];function Jv(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:a={}}=e,s=Tt(e,lke),o=Jae(n),l=Cxe(i);let u=Yo({breakpoints:o,direction:"ltr",components:{},palette:Q({mode:"light"},r),spacing:l,shape:Q({},vxe,a)},s);return u.applyStyles=ise,u=t.reduce((d,f)=>Yo(d,f),u),u.unstable_sxConfig=Q({},mT,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(f){return Kv({sx:f,theme:this})},u}const uke=Object.freeze(Object.defineProperty({__proto__:null,default:Jv,private_createBreakpoints:Jae,unstable_applyStyles:ise},Symbol.toStringTag,{value:"Module"}));function cke(e){return Object.keys(e).length===0}function K9(e=null){const t=M.useContext(hT);return!t||cke(t)?e:t}const dke=Jv();function A5(e=dke){return K9(e)}function fke({styles:e,themeId:t,defaultTheme:n={}}){const r=A5(n),i=typeof e=="function"?e(t&&r[t]||r):e;return I.jsx(Zae,{styles:i})}const hke=["sx"],pke=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:mT;return Object.keys(e).forEach(a=>{i[a]?r.systemProps[a]=e[a]:r.otherProps[a]=e[a]}),r};function gT(e){const{sx:t}=e,n=Tt(e,hke),{systemProps:r,otherProps:i}=pke(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...s)=>{const o=t(...s);return $h(o)?Q({},r,o):r}:a=Q({},r,t),Q({},i,{sx:a})}const mke=Object.freeze(Object.defineProperty({__proto__:null,default:Kv,extendSxProp:gT,unstable_createStyleFunctionSx:rse,unstable_defaultSxConfig:mT},Symbol.toStringTag,{value:"Module"})),rG=e=>e,gke=()=>{let e=rG;return{configure(t){e=t},generate(t){return e(t)},reset(){e=rG}}},J9=gke();function ase(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;to!=="theme"&&o!=="sx"&&o!=="as"})(Kv);return M.forwardRef(function(l,u){const d=A5(n),f=gT(l),{className:p,component:g="div"}=f,O=Tt(f,bke);return I.jsx(a,Q({as:g,ref:u,className:wt(p,i?i(r):r),theme:t&&d[t]||d},O))})}const vke={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 dn(e,t,n="Mui"){const r=vke[t];return r?`${n}-${r}`:`${J9.generate(e)}-${t}`}function hn(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=dn(e,i,n)}),r}var sse={exports:{}},li={};/** * @license React * react-is.production.min.js * @@ -52,7 +52,7 @@ Error generating stack: `+a.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var u$=Symbol.for("react.element"),c$=Symbol.for("react.portal"),R5=Symbol.for("react.fragment"),I5=Symbol.for("react.strict_mode"),N5=Symbol.for("react.profiler"),D5=Symbol.for("react.provider"),P5=Symbol.for("react.context"),Ike=Symbol.for("react.server_context"),L5=Symbol.for("react.forward_ref"),M5=Symbol.for("react.suspense"),$5=Symbol.for("react.suspense_list"),F5=Symbol.for("react.memo"),B5=Symbol.for("react.lazy"),Nke=Symbol.for("react.offscreen"),gse;gse=Symbol.for("react.module.reference");function Pc(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case u$:switch(e=e.type,e){case R5:case N5:case I5:case M5:case $5:return e;default:switch(e=e&&e.$$typeof,e){case Ike:case P5:case L5:case B5:case F5:case D5:return e;default:return t}}case c$:return t}}}hi.ContextConsumer=P5;hi.ContextProvider=D5;hi.Element=u$;hi.ForwardRef=L5;hi.Fragment=R5;hi.Lazy=B5;hi.Memo=F5;hi.Portal=c$;hi.Profiler=N5;hi.StrictMode=I5;hi.Suspense=M5;hi.SuspenseList=$5;hi.isAsyncMode=function(){return!1};hi.isConcurrentMode=function(){return!1};hi.isContextConsumer=function(e){return Pc(e)===P5};hi.isContextProvider=function(e){return Pc(e)===D5};hi.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===u$};hi.isForwardRef=function(e){return Pc(e)===L5};hi.isFragment=function(e){return Pc(e)===R5};hi.isLazy=function(e){return Pc(e)===B5};hi.isMemo=function(e){return Pc(e)===F5};hi.isPortal=function(e){return Pc(e)===c$};hi.isProfiler=function(e){return Pc(e)===N5};hi.isStrictMode=function(e){return Pc(e)===I5};hi.isSuspense=function(e){return Pc(e)===M5};hi.isSuspenseList=function(e){return Pc(e)===$5};hi.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===R5||e===N5||e===I5||e===M5||e===$5||e===Nke||typeof e=="object"&&e!==null&&(e.$$typeof===B5||e.$$typeof===F5||e.$$typeof===D5||e.$$typeof===P5||e.$$typeof===L5||e.$$typeof===gse||e.getModuleId!==void 0)};hi.typeOf=Pc;mse.exports=hi;var pG=mse.exports;const Dke=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function bse(e){const t=`${e}`.match(Dke);return t&&t[1]||""}function yse(e,t=""){return e.displayName||e.name||bse(e)||t}function mG(e,t,n){const r=yse(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function Pke(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return yse(e,"Component");if(typeof e=="object")switch(e.$$typeof){case pG.ForwardRef:return mG(e,e.render,"ForwardRef");case pG.Memo:return mG(e,e.type,"memo");default:return}}}const Lke=Object.freeze(Object.defineProperty({__proto__:null,default:Pke,getFunctionName:bse},Symbol.toStringTag,{value:"Module"})),Mke=["ownerState"],$ke=["variants"],Fke=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Bke(e){return Object.keys(e).length===0}function Uke(e){return typeof e=="string"&&e.charCodeAt(0)>96}function NN(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const zke=uO(),jke=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function aA({defaultTheme:e,theme:t,themeId:n}){return Bke(t)?e:t[n]||t}function Hke(e){return e?(t,n)=>n[e]:null}function j4(e,t){let{ownerState:n}=t,r=kt(t,Mke);const i=typeof e=="function"?e(Q({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap(a=>j4(a,Q({ownerState:n},r)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:a=[]}=i;let o=kt(i,$ke);return a.forEach(l=>{let u=!0;typeof l.props=="function"?u=l.props(Q({ownerState:n},r,n)):Object.keys(l.props).forEach(d=>{(n==null?void 0:n[d])!==l.props[d]&&r[d]!==l.props[d]&&(u=!1)}),u&&(Array.isArray(o)||(o=[o]),o.push(typeof l.style=="function"?l.style(Q({ownerState:n},r,n)):l.style))}),o}return i}function Qke(e={}){const{themeId:t,defaultTheme:n=zke,rootShouldForwardProp:r=NN,slotShouldForwardProp:i=NN}=e,a=s=>lO(Q({},s,{theme:aA(Q({},s,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(s,o={})=>{sse(s,R=>R.filter(N=>!(N!=null&&N.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:p=Hke(jke(u))}=o,g=kt(o,Fke),O=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,S=f||!1;let T,w=NN;u==="Root"||u==="root"?w=r:u?w=i:Uke(s)&&(w=void 0);const x=t$(s,Q({shouldForwardProp:w,label:T},g)),k=R=>typeof R=="function"&&R.__emotion_real!==R||Hh(R)?N=>j4(R,Q({},N,{theme:aA({theme:N.theme,defaultTheme:n,themeId:t})})):R,_=(R,...N)=>{let D=k(R);const L=N?N.map(k):[];l&&p&&L.push(V=>{const W=aA(Q({},V,{defaultTheme:n,themeId:t}));if(!W.components||!W.components[l]||!W.components[l].styleOverrides)return null;const re=W.components[l].styleOverrides,ee={};return Object.entries(re).forEach(([q,te])=>{ee[q]=j4(te,Q({},V,{theme:W}))}),p(V,ee)}),l&&!O&&L.push(V=>{var W;const re=aA(Q({},V,{defaultTheme:n,themeId:t})),ee=re==null||(W=re.components)==null||(W=W[l])==null?void 0:W.variants;return j4({variants:ee},Q({},V,{theme:re}))}),S||L.push(a);const j=L.length-N.length;if(Array.isArray(R)&&j>0){const V=new Array(j).fill("");D=[...R,...V],D.raw=[...R.raw,...V]}const B=x(D,...L);return s.muiName&&(B.muiName=s.muiName),B};return x.withConfig&&(_.withConfig=x.withConfig),_}}const vse=Qke();function kv(e,t){const n=Q({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Q({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},a=t[r];n[r]={},!a||!Object.keys(a)?n[r]=i:!i||!Object.keys(i)?n[r]=a:(n[r]=Q({},a),Object.keys(i).forEach(s=>{n[r][s]=kv(i[s],a[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Ose(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:kv(t.components[n].defaultProps,r)}function Sse({props:e,name:t,defaultTheme:n,themeId:r}){let i=C5(n);return r&&(i=i[r]||i),Ose({theme:i,name:t,props:e})}const Zo=typeof window<"u"?M.useLayoutEffect:M.useEffect;function Wke(e,t,n,r,i){const[a,s]=M.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return Zo(()=>{let o=!0;if(!n)return;const l=n(e),u=()=>{o&&s(l.matches)};return u(),l.addListener(u),()=>{o=!1,l.removeListener(u)}},[e,n]),a}const Ese=M.useSyncExternalStore;function Vke(e,t,n,r,i){const a=M.useCallback(()=>t,[t]),s=M.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){const{matches:d}=r(e);return()=>d}return a},[a,e,r,i,n]),[o,l]=M.useMemo(()=>{if(n===null)return[a,()=>()=>{}];const d=n(e);return[()=>d.matches,f=>(d.addListener(f),()=>{d.removeListener(f)})]},[a,n,e]);return Ese(l,o,s)}function wse(e,t={}){const n=o$(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:a=r?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:o=!1}=Ose({name:"MuiUseMediaQuery",props:t,theme:n});let l=e;return l=l.replace(/^@media( ?)/m,""),(Ese!==void 0?Vke:Wke)(l,i,a,s,o)}function Tg(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const qke=Object.freeze(Object.defineProperty({__proto__:null,default:Tg},Symbol.toStringTag,{value:"Module"}));function d$(e,t=0,n=1){return Tg(e,t,n)}function Gke(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 p1(e){if(e.type)return e;if(e.charAt(0)==="#")return p1(Gke(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(cp(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(cp(10,i))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:i}}function U5(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,a)=>a<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Yke(e){e=p1(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),s=(u,d=(u+n/30)%12)=>i-a*Math.max(Math.min(d-3,9-d,1),-1);let o="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(o+="a",l.push(t[3])),U5({type:o,values:l})}function Zke(e){e=p1(e);let t=e.type==="hsl"||e.type==="hsla"?p1(Yke(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 sA(e,t){return e=p1(e),t=d$(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,U5(e)}function Xke(e,t){if(e=p1(e),t=d$(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 U5(e)}function Kke(e,t){if(e=p1(e),t=d$(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 U5(e)}function Jke(e,t=.15){return Zke(e)>.5?Xke(e,t):Kke(e,t)}function sC(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function z5(e,t=166){let n;function r(...i){const a=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function eAe(e,t){return()=>null}function n2(e,t){var n,r;return M.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function da(e){return e&&e.ownerDocument||document}function Bf(e){return da(e).defaultView||window}function tAe(e,t){return()=>null}function nw(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let gG=0;function nAe(e){const[t,n]=M.useState(e),r=e||t;return M.useEffect(()=>{t==null&&(gG+=1,n(`mui-${gG}`))},[t]),r}const bG=gv.useId;function cO(e){if(bG!==void 0){const t=bG();return e??t}return nAe(e)}function rAe(e,t,n,r,i){return null}function Df({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=M.useRef(e!==void 0),[a,s]=M.useState(t),o=i?e:a,l=M.useCallback(u=>{i||s(u)},[]);return[o,l]}function Fs(e){const t=M.useRef(e);return Zo(()=>{t.current=e}),M.useRef((...n)=>(0,t.current)(...n)).current}function Sr(...e){return M.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{nw(n,t)})},e)}const yG={};function iAe(e,t){const n=M.useRef(yG);return n.current===yG&&(n.current=e(t)),n}const aAe=[];function sAe(e){M.useEffect(e,aAe)}class mT{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new mT}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Dg(){const e=iAe(mT.create).current;return sAe(e.disposeEffect),e}let j5=!0,UP=!1;const oAe=new mT,lAe={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 uAe(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&lAe[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function cAe(e){e.metaKey||e.altKey||e.ctrlKey||(j5=!0)}function DN(){j5=!1}function dAe(){this.visibilityState==="hidden"&&UP&&(j5=!0)}function fAe(e){e.addEventListener("keydown",cAe,!0),e.addEventListener("mousedown",DN,!0),e.addEventListener("pointerdown",DN,!0),e.addEventListener("touchstart",DN,!0),e.addEventListener("visibilitychange",dAe,!0)}function hAe(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return j5||uAe(t)}function H5(){const e=M.useCallback(i=>{i!=null&&fAe(i.ownerDocument)},[]),t=M.useRef(!1);function n(){return t.current?(UP=!0,oAe.start(100,()=>{UP=!1}),t.current=!1,!0):!1}function r(i){return hAe(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function Tse(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const pAe=e=>{const t=M.useRef({});return M.useEffect(()=>{t.current=e}),t.current};function mAe(e){return M.Children.toArray(e).filter(t=>M.isValidElement(t))}const gAe={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function mn(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((a,s)=>{if(s){const o=t(s);o!==""&&a.push(o),n&&n[s]&&a.push(n[s])}return a},[]).join(" ")}),r}function Pf(e){return typeof e=="string"}function vy(e,t,n){return e===void 0||Pf(e)?t:Q({},t,{ownerState:Q({},t.ownerState,n)})}function r2(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 vG(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 xse(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){const g=xt(n==null?void 0:n.className,a,i==null?void 0:i.className,r==null?void 0:r.className),O=Q({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),S=Q({},n,i,r);return g.length>0&&(S.className=g),Object.keys(O).length>0&&(S.style=O),{props:S,internalRef:void 0}}const s=r2(Q({},i,r)),o=vG(r),l=vG(i),u=t(s),d=xt(u==null?void 0:u.className,n==null?void 0:n.className,a,i==null?void 0:i.className,r==null?void 0:r.className),f=Q({},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=Q({},u,n,l,o);return d.length>0&&(p.className=d),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:u.ref}}function kse(e,t,n){return typeof e=="function"?e(t,n):e}const bAe=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function zo(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:a=!1}=e,s=kt(e,bAe),o=a?{}:kse(r,i),{props:l,internalRef:u}=xse(Q({},s,{externalSlotProps:o})),d=Sr(u,o==null?void 0:o.ref,(t=e.additionalProps)==null?void 0:t.ref);return vy(n,Q({},l,{ref:d}),i)}const Ase=M.createContext(null);function _se(){return M.useContext(Ase)}const yAe=typeof Symbol=="function"&&Symbol.for,vAe=yAe?Symbol.for("mui.nested"):"__THEME_NESTED__";function OAe(e,t){return typeof t=="function"?t(e):Q({},e,t)}function SAe(e){const{children:t,theme:n}=e,r=_se(),i=M.useMemo(()=>{const a=r===null?n:OAe(r,n);return a!=null&&(a[vAe]=r!==null),a},[n,r]);return I.jsx(Ase.Provider,{value:i,children:t})}const EAe=["value"],Cse=M.createContext();function wAe(e){let{value:t}=e,n=kt(e,EAe);return I.jsx(Cse.Provider,Q({value:t??!0},n))}const f$=()=>{const e=M.useContext(Cse);return e??!1},Rse=M.createContext(void 0);function TAe({value:e,children:t}){return I.jsx(Rse.Provider,{value:e,children:t})}function xAe(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?kv(i.defaultProps,r):!i.styleOverrides&&!i.variants?kv(i,r):r}function kAe({props:e,name:t}){const n=M.useContext(Rse);return xAe({props:e,name:t,theme:{components:n}})}const OG={};function SG(e,t,n,r=!1){return M.useMemo(()=>{const i=e&&t[e]||t;if(typeof n=="function"){const a=n(i),s=e?Q({},t,{[e]:a}):a;return r?()=>s:s}return e?Q({},t,{[e]:n}):Q({},t,n)},[e,t,n,r])}function AAe(e){const{children:t,theme:n,themeId:r}=e,i=o$(OG),a=_se()||OG,s=SG(r,i,n),o=SG(r,a,n,!0),l=s.direction==="rtl";return I.jsx(SAe,{theme:o,children:I.jsx(dT.Provider,{value:s,children:I.jsx(wAe,{value:l,children:I.jsx(TAe,{value:s==null?void 0:s.components,children:t})})})})}const _Ae=["className","component","disableGutters","fixed","maxWidth","classes"],CAe=uO(),RAe=vse("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${lt(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),IAe=e=>Sse({props:e,name:"MuiContainer",defaultTheme:CAe}),NAe=(e,t)=>{const n=l=>hn(t,l),{classes:r,fixed:i,disableGutters:a,maxWidth:s}=e,o={root:["root",s&&`maxWidth${lt(String(s))}`,i&&"fixed",a&&"disableGutters"]};return mn(o,n,r)};function DAe(e={}){const{createStyledComponent:t=RAe,useThemeProps:n=IAe,componentName:r="MuiContainer"}=e,i=t(({theme:s,ownerState:o})=>Q({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!o.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}}),({theme:s,ownerState:o})=>o.fixed&&Object.keys(s.breakpoints.values).reduce((l,u)=>{const d=u,f=s.breakpoints.values[d];return f!==0&&(l[s.breakpoints.up(d)]={maxWidth:`${f}${s.breakpoints.unit}`}),l},{}),({theme:s,ownerState:o})=>Q({},o.maxWidth==="xs"&&{[s.breakpoints.up("xs")]:{maxWidth:Math.max(s.breakpoints.values.xs,444)}},o.maxWidth&&o.maxWidth!=="xs"&&{[s.breakpoints.up(o.maxWidth)]:{maxWidth:`${s.breakpoints.values[o.maxWidth]}${s.breakpoints.unit}`}}));return M.forwardRef(function(o,l){const u=n(o),{className:d,component:f="div",disableGutters:p=!1,fixed:g=!1,maxWidth:O="lg"}=u,S=kt(u,_Ae),T=Q({},u,{component:f,disableGutters:p,fixed:g,maxWidth:O}),w=NAe(T,r);return I.jsx(i,Q({as:f,ownerState:T,className:xt(w.root,d),ref:l},S))})}const PAe=["component","direction","spacing","divider","children","className","useFlexGap"],LAe=uO(),MAe=vse("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function $Ae(e){return Sse({props:e,name:"MuiStack",defaultTheme:LAe})}function FAe(e,t){const n=M.Children.toArray(e).filter(Boolean);return n.reduce((r,i,a)=>(r.push(i),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],UAe=({ownerState:e,theme:t})=>{let n=Q({display:"flex",flexDirection:"column"},Ll({theme:t},e1({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=a$(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),{}),a=e1({values:e.direction,base:i}),s=e1({values:e.spacing,base:i});typeof a=="object"&&Object.keys(a).forEach((l,u,d)=>{if(!a[l]){const p=u>0?a[d[u-1]]:"column";a[l]=p}}),n=qo(n,Ll({theme:t},s,(l,u)=>e.useFlexGap?{gap:h1(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${BAe(u?a[u]:e.direction)}`]:h1(r,l)}}))}return n=Ixe(t.breakpoints,n),n};function zAe(e={}){const{createStyledComponent:t=MAe,useThemeProps:n=$Ae,componentName:r="MuiStack"}=e,i=()=>mn({root:["root"]},l=>hn(r,l),{}),a=t(UAe);return M.forwardRef(function(l,u){const d=n(l),f=pT(d),{component:p="div",direction:g="column",spacing:O=0,divider:S,children:T,className:w,useFlexGap:x=!1}=f,k=kt(f,PAe),_={direction:g,spacing:O,useFlexGap:x},R=i();return I.jsx(a,Q({as:p,ownerState:_,ref:u,className:xt(R.root,w)},k,{children:S?FAe(T,S):T}))})}function jAe(e,t){return Q({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Ma={},Ise={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})(Ise);var Pi=Ise.exports;const HAe=Ep(hTe),QAe=Ep(qke);var Nse=Pi;Object.defineProperty(Ma,"__esModule",{value:!0});var Vn=Ma.alpha=Mse;Ma.blend=t4e;Ma.colorChannel=void 0;var rw=Ma.darken=p$;Ma.decomposeColor=kc;Ma.emphasize=$se;var WAe=Ma.getContrastRatio=ZAe;Ma.getLuminance=oC;Ma.hexToRgb=Dse;Ma.hslToRgb=Lse;var iw=Ma.lighten=m$;Ma.private_safeAlpha=XAe;Ma.private_safeColorChannel=void 0;Ma.private_safeDarken=KAe;Ma.private_safeEmphasize=e4e;Ma.private_safeLighten=JAe;Ma.recomposeColor=dO;Ma.rgbToHex=YAe;var EG=Nse(HAe),VAe=Nse(QAe);function h$(e,t=0,n=1){return(0,VAe.default)(e,t,n)}function Dse(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 qAe(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function kc(e){if(e.type)return e;if(e.charAt(0)==="#")return kc(Dse(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,EG.default)(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((0,EG.default)(10,i))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:i}}const Pse=e=>{const t=kc(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Ma.colorChannel=Pse;const GAe=(e,t)=>{try{return Pse(e)}catch{return e}};Ma.private_safeColorChannel=GAe;function dO(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,a)=>a<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function YAe(e){if(e.indexOf("#")===0)return e;const{values:t}=kc(e);return`#${t.map((n,r)=>qAe(r===3?Math.round(255*n):n)).join("")}`}function Lse(e){e=kc(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),s=(u,d=(u+n/30)%12)=>i-a*Math.max(Math.min(d-3,9-d,1),-1);let o="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(o+="a",l.push(t[3])),dO({type:o,values:l})}function oC(e){e=kc(e);let t=e.type==="hsl"||e.type==="hsla"?kc(Lse(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 ZAe(e,t){const n=oC(e),r=oC(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Mse(e,t){return e=kc(e),t=h$(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,dO(e)}function XAe(e,t,n){try{return Mse(e,t)}catch{return e}}function p$(e,t){if(e=kc(e),t=h$(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 dO(e)}function KAe(e,t,n){try{return p$(e,t)}catch{return e}}function m$(e,t){if(e=kc(e),t=h$(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 dO(e)}function JAe(e,t,n){try{return m$(e,t)}catch{return e}}function $se(e,t=.15){return oC(e)>.5?p$(e,t):m$(e,t)}function e4e(e,t,n){try{return $se(e,t)}catch{return e}}function t4e(e,t,n,r=1){const i=(l,u)=>Math.round((l**(1/r)*(1-n)+u**(1/r)*n)**r),a=kc(e),s=kc(t),o=[i(a.values[0],s.values[0]),i(a.values[1],s.values[1]),i(a.values[2],s.values[2])];return dO({type:"rgb",values:o})}const n4e=["mode","contrastThreshold","tonalOffset"],wG={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:K2.white,default:K2.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}},PN={text:{primary:K2.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:K2.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 TG(e,t,n,r){const i=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=iw(e.main,i):t==="dark"&&(e.dark=rw(e.main,a)))}function r4e(e="light"){return e==="dark"?{main:Pb[200],light:Pb[50],dark:Pb[400]}:{main:Pb[700],light:Pb[400],dark:Pb[800]}}function i4e(e="light"){return e==="dark"?{main:Db[200],light:Db[50],dark:Db[400]}:{main:Db[500],light:Db[300],dark:Db[700]}}function a4e(e="light"){return e==="dark"?{main:Nb[500],light:Nb[300],dark:Nb[700]}:{main:Nb[700],light:Nb[400],dark:Nb[800]}}function s4e(e="light"){return e==="dark"?{main:Lb[400],light:Lb[300],dark:Lb[700]}:{main:Lb[700],light:Lb[500],dark:Lb[900]}}function o4e(e="light"){return e==="dark"?{main:Mb[400],light:Mb[300],dark:Mb[700]}:{main:Mb[800],light:Mb[500],dark:Mb[900]}}function l4e(e="light"){return e==="dark"?{main:VS[400],light:VS[300],dark:VS[700]}:{main:"#ed6c02",light:VS[500],dark:VS[900]}}function u4e(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=kt(e,n4e),a=e.primary||r4e(t),s=e.secondary||i4e(t),o=e.error||a4e(t),l=e.info||s4e(t),u=e.success||o4e(t),d=e.warning||l4e(t);function f(S){return WAe(S,PN.text.primary)>=n?PN.text.primary:wG.text.primary}const p=({color:S,name:T,mainShade:w=500,lightShade:x=300,darkShade:k=700})=>{if(S=Q({},S),!S.main&&S[w]&&(S.main=S[w]),!S.hasOwnProperty("main"))throw new Error(cp(11,T?` (${T})`:"",w));if(typeof S.main!="string")throw new Error(cp(12,T?` (${T})`:"",JSON.stringify(S.main)));return TG(S,"light",x,r),TG(S,"dark",k,r),S.contrastText||(S.contrastText=f(S.main)),S},g={dark:PN,light:wG};return qo(Q({common:Q({},K2),mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:o,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:fTe,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r},g[t]),i)}const c4e=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function d4e(e){return Math.round(e*1e5)/1e5}const xG={textTransform:"uppercase"},kG='"Roboto", "Helvetica", "Arial", sans-serif';function f4e(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=kG,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:s=400,fontWeightMedium:o=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:d,pxToRem:f}=n,p=kt(n,c4e),g=i/14,O=f||(w=>`${w/u*g}rem`),S=(w,x,k,_,R)=>Q({fontFamily:r,fontWeight:w,fontSize:O(x),lineHeight:k},r===kG?{letterSpacing:`${d4e(_/x)}em`}:{},R,d),T={h1:S(a,96,1.167,-1.5),h2:S(a,60,1.2,-.5),h3:S(s,48,1.167,0),h4:S(s,34,1.235,.25),h5:S(s,24,1.334,0),h6:S(o,20,1.6,.15),subtitle1:S(s,16,1.75,.15),subtitle2:S(o,14,1.57,.1),body1:S(s,16,1.5,.15),body2:S(s,14,1.43,.15),button:S(o,14,1.75,.4,xG),caption:S(s,12,1.66,.4),overline:S(s,12,2.66,1,xG),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return qo(Q({htmlFontSize:u,pxToRem:O,fontFamily:r,fontSize:i,fontWeightLight:a,fontWeightRegular:s,fontWeightMedium:o,fontWeightBold:l},T),p,{clone:!1})}const h4e=.2,p4e=.14,m4e=.12;function Yi(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${h4e})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${p4e})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${m4e})`].join(",")}const g4e=["none",Yi(0,2,1,-1,0,1,1,0,0,1,3,0),Yi(0,3,1,-2,0,2,2,0,0,1,5,0),Yi(0,3,3,-2,0,3,4,0,0,1,8,0),Yi(0,2,4,-1,0,4,5,0,0,1,10,0),Yi(0,3,5,-1,0,5,8,0,0,1,14,0),Yi(0,3,5,-1,0,6,10,0,0,1,18,0),Yi(0,4,5,-2,0,7,10,1,0,2,16,1),Yi(0,5,5,-3,0,8,10,1,0,3,14,2),Yi(0,5,6,-3,0,9,12,1,0,3,16,2),Yi(0,6,6,-3,0,10,14,1,0,4,18,3),Yi(0,6,7,-4,0,11,15,1,0,4,20,3),Yi(0,7,8,-4,0,12,17,2,0,5,22,4),Yi(0,7,8,-4,0,13,19,2,0,5,24,4),Yi(0,7,9,-4,0,14,21,2,0,5,26,4),Yi(0,8,9,-5,0,15,22,2,0,6,28,5),Yi(0,8,10,-5,0,16,24,2,0,6,30,5),Yi(0,8,11,-5,0,17,26,2,0,6,32,5),Yi(0,9,11,-5,0,18,28,2,0,7,34,6),Yi(0,9,12,-6,0,19,29,2,0,7,36,6),Yi(0,10,13,-6,0,20,31,3,0,8,38,7),Yi(0,10,13,-6,0,21,33,3,0,8,40,7),Yi(0,10,14,-6,0,22,35,3,0,8,42,7),Yi(0,11,14,-7,0,23,36,3,0,9,44,8),Yi(0,11,15,-7,0,24,38,3,0,9,46,8)],b4e=["duration","easing","delay"],y4e={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)"},Fse={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function AG(e){return`${Math.round(e)}ms`}function v4e(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function O4e(e){const t=Q({},y4e,e.easing),n=Q({},Fse,e.duration);return Q({getAutoHeightDuration:v4e,create:(i=["all"],a={})=>{const{duration:s=n.standard,easing:o=t.easeInOut,delay:l=0}=a;return kt(a,b4e),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof s=="string"?s:AG(s)} ${o} ${typeof l=="string"?l:AG(l)}`).join(",")}},e,{easing:t,duration:n})}const S4e={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},E4e=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function g$(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:a={}}=e,s=kt(e,E4e);if(e.vars)throw new Error(cp(18));const o=u4e(r),l=uO(e);let u=qo(l,{mixins:jAe(l.breakpoints,n),palette:o,shadows:g4e.slice(),typography:f4e(o,a),transitions:O4e(i),zIndex:Q({},S4e)});return u=qo(u,s),u=t.reduce((d,f)=>qo(d,f),u),u.unstable_sxConfig=Q({},hT,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(f){return lO({sx:f,theme:this})},u}const b$=g$();function Hf(){const e=C5(b$);return e[Tv]||e}var gT={},LN={exports:{}},_G;function Bse(){return _G||(_G=1,function(e){function t(n,r){if(n==null)return{};var i={};for(var a in n)if({}.hasOwnProperty.call(n,a)){if(r.includes(a))continue;i[a]=n[a]}return i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(LN)),LN.exports}const Use=Ep(kxe),w4e=Ep(Axe),T4e=Ep(Dxe),x4e=Ep(Lke),k4e=Ep(Oke),A4e=Ep(kke);var fO=Pi;Object.defineProperty(gT,"__esModule",{value:!0});var _4e=gT.default=z4e;gT.shouldForwardProp=H4;gT.systemDefaultTheme=void 0;var ec=fO(tse()),zP=fO(Bse()),CG=L4e(Use),C4e=w4e;fO(T4e);fO(x4e);var R4e=fO(k4e),I4e=fO(A4e);const N4e=["ownerState"],D4e=["variants"],P4e=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function zse(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(zse=function(r){return r?n:t})(e)}function L4e(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=zse(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function M4e(e){return Object.keys(e).length===0}function $4e(e){return typeof e=="string"&&e.charCodeAt(0)>96}function H4(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const F4e=gT.systemDefaultTheme=(0,R4e.default)(),B4e=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function oA({defaultTheme:e,theme:t,themeId:n}){return M4e(t)?e:t[n]||t}function U4e(e){return e?(t,n)=>n[e]:null}function Q4(e,t){let{ownerState:n}=t,r=(0,zP.default)(t,N4e);const i=typeof e=="function"?e((0,ec.default)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap(a=>Q4(a,(0,ec.default)({ownerState:n},r)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:a=[]}=i;let o=(0,zP.default)(i,D4e);return a.forEach(l=>{let u=!0;typeof l.props=="function"?u=l.props((0,ec.default)({ownerState:n},r,n)):Object.keys(l.props).forEach(d=>{(n==null?void 0:n[d])!==l.props[d]&&r[d]!==l.props[d]&&(u=!1)}),u&&(Array.isArray(o)||(o=[o]),o.push(typeof l.style=="function"?l.style((0,ec.default)({ownerState:n},r,n)):l.style))}),o}return i}function z4e(e={}){const{themeId:t,defaultTheme:n=F4e,rootShouldForwardProp:r=H4,slotShouldForwardProp:i=H4}=e,a=s=>(0,I4e.default)((0,ec.default)({},s,{theme:oA((0,ec.default)({},s,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(s,o={})=>{(0,CG.internal_processStyles)(s,R=>R.filter(N=>!(N!=null&&N.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:p=U4e(B4e(u))}=o,g=(0,zP.default)(o,P4e),O=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,S=f||!1;let T,w=H4;u==="Root"||u==="root"?w=r:u?w=i:$4e(s)&&(w=void 0);const x=(0,CG.default)(s,(0,ec.default)({shouldForwardProp:w,label:T},g)),k=R=>typeof R=="function"&&R.__emotion_real!==R||(0,C4e.isPlainObject)(R)?N=>Q4(R,(0,ec.default)({},N,{theme:oA({theme:N.theme,defaultTheme:n,themeId:t})})):R,_=(R,...N)=>{let D=k(R);const L=N?N.map(k):[];l&&p&&L.push(V=>{const W=oA((0,ec.default)({},V,{defaultTheme:n,themeId:t}));if(!W.components||!W.components[l]||!W.components[l].styleOverrides)return null;const re=W.components[l].styleOverrides,ee={};return Object.entries(re).forEach(([q,te])=>{ee[q]=Q4(te,(0,ec.default)({},V,{theme:W}))}),p(V,ee)}),l&&!O&&L.push(V=>{var W;const re=oA((0,ec.default)({},V,{defaultTheme:n,themeId:t})),ee=re==null||(W=re.components)==null||(W=W[l])==null?void 0:W.variants;return Q4({variants:ee},(0,ec.default)({},V,{theme:re}))}),S||L.push(a);const j=L.length-N.length;if(Array.isArray(R)&&j>0){const V=new Array(j).fill("");D=[...R,...V],D.raw=[...R.raw,...V]}const B=x(D,...L);return s.muiName&&(B.muiName=s.muiName),B};return x.withConfig&&(_.withConfig=x.withConfig),_}}function Q5(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Qs=e=>Q5(e)&&e!=="classes",ct=_4e({themeId:Tv,defaultTheme:b$,rootShouldForwardProp:Qs}),j4e=["theme"];function H4e(e){let{theme:t}=e,n=kt(e,j4e);const r=t[Tv];return I.jsx(AAe,Q({},n,{themeId:r?Tv:void 0,theme:r||t}))}const RG=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function bn(e){return kAe(e)}function Q4e(e){return hn("MuiSvgIcon",e)}pn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const W4e=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],V4e=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${lt(t)}`,`fontSize${lt(n)}`]};return mn(i,Q4e,r)},q4e=ct("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${lt(n.color)}`],t[`fontSize${lt(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,a,s,o,l,u,d,f,p,g,O;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(s=a.pxToRem)==null?void 0:s.call(a,20))||"1.25rem",medium:((o=e.typography)==null||(l=o.pxToRem)==null?void 0:l.call(o,24))||"1.5rem",large:((u=e.typography)==null||(d=u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}[t.fontSize],color:(f=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?f:{action:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.active,disabled:(O=(e.vars||e).palette)==null||(O=O.action)==null?void 0:O.disabled,inherit:void 0}[t.color]}}),cm=M.forwardRef(function(t,n){const r=bn({props:t,name:"MuiSvgIcon"}),{children:i,className:a,color:s="inherit",component:o="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:f,viewBox:p="0 0 24 24"}=r,g=kt(r,W4e),O=M.isValidElement(i)&&i.type==="svg",S=Q({},r,{color:s,component:o,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:p,hasSvgAsChild:O}),T={};d||(T.viewBox=p);const w=V4e(S);return I.jsxs(q4e,Q({as:o,className:xt(w.root,a),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},T,g,O&&i.props,{ownerState:S,children:[O?i.props.children:i,f?I.jsx("title",{children:f}):null]}))});cm.muiName="SvgIcon";function Nd(e,t){function n(r,i){return I.jsx(cm,Q({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=cm.muiName,M.memo(M.forwardRef(n))}const G4e={configure:e=>{l$.configure(e)}},Y4e=Object.freeze(Object.defineProperty({__proto__:null,capitalize:lt,createChainedFunction:sC,createSvgIcon:Nd,debounce:z5,deprecatedPropType:eAe,isMuiElement:n2,ownerDocument:da,ownerWindow:Bf,requirePropFactory:tAe,setRef:nw,unstable_ClassNameGenerator:G4e,unstable_useEnhancedEffect:Zo,unstable_useId:cO,unsupportedProp:rAe,useControlled:Df,useEventCallback:Fs,useForkRef:Sr,useIsFocusVisible:H5},Symbol.toStringTag,{value:"Module"}));function jP(e,t){return jP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},jP(e,t)}function jse(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,jP(e,t)}const IG={disabled:!1},lC=sn.createContext(null);var Z4e=function(t){return t.scrollTop},RE="unmounted",Sg="exited",Eg="entering",Gb="entered",HP="exiting",Lc=function(e){jse(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var s=i,o=s&&!s.isMounting?r.enter:r.appear,l;return a.appearStatus=null,r.in?o?(l=Sg,a.appearStatus=Eg):l=Gb:r.unmountOnExit||r.mountOnEnter?l=RE:l=Sg,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var s=i.in;return s&&a.status===RE?{status:Sg}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==Eg&&s!==Gb&&(a=Eg):(s===Eg||s===Gb)&&(a=HP)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,s,o;return a=s=o=i,i!=null&&typeof i!="number"&&(a=i.exit,s=i.enter,o=i.appear!==void 0?i.appear:s),{exit:a,enter:s,appear:o}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===Eg){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:CE.findDOMNode(this);s&&Z4e(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Sg&&this.setState({status:RE})},n.performEnter=function(i){var a=this,s=this.props.enter,o=this.context?this.context.isMounting:i,l=this.props.nodeRef?[o]:[CE.findDOMNode(this),o],u=l[0],d=l[1],f=this.getTimeouts(),p=o?f.appear:f.enter;if(!i&&!s||IG.disabled){this.safeSetState({status:Gb},function(){a.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:Eg},function(){a.props.onEntering(u,d),a.onTransitionEnd(p,function(){a.safeSetState({status:Gb},function(){a.props.onEntered(u,d)})})})},n.performExit=function(){var i=this,a=this.props.exit,s=this.getTimeouts(),o=this.props.nodeRef?void 0:CE.findDOMNode(this);if(!a||IG.disabled){this.safeSetState({status:Sg},function(){i.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:HP},function(){i.props.onExiting(o),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:Sg},function(){i.props.onExited(o)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,s=!0;return this.nextCallback=function(o){s&&(s=!1,a.nextCallback=null,i(o))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:CE.findDOMNode(this),o=i==null&&!this.props.addEndListener;if(!s||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=l[0],d=l[1];this.props.addEndListener(u,d)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===RE)return null;var a=this.props,s=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var o=kt(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return sn.createElement(lC.Provider,{value:null},typeof s=="function"?s(i,o):sn.cloneElement(sn.Children.only(s),o))},t}(sn.Component);Lc.contextType=lC;Lc.propTypes={};function $b(){}Lc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:$b,onEntering:$b,onEntered:$b,onExit:$b,onExiting:$b,onExited:$b};Lc.UNMOUNTED=RE;Lc.EXITED=Sg;Lc.ENTERING=Eg;Lc.ENTERED=Gb;Lc.EXITING=HP;function X4e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y$(e,t){var n=function(a){return t&&M.isValidElement(a)?t(a):a},r=Object.create(null);return e&&M.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function K4e(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var s,o={};for(var l in t){if(r[l])for(s=0;se.scrollTop;function dm(e,t){var n,r;const{timeout:i,easing:a,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof i=="number"?i:i[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof a=="object"?a[t.mode]:a,delay:s.transitionDelay}}function r_e(e){return hn("MuiCollapse",e)}pn("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const i_e=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],a_e=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return mn(r,r_e,n)},s_e=ct("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})=>Q({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&Q({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),o_e=ct("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>Q({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),l_e=ct("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>Q({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),S$=M.forwardRef(function(t,n){const r=bn({props:t,name:"MuiCollapse"}),{addEndListener:i,children:a,className:s,collapsedSize:o="0px",component:l,easing:u,in:d,onEnter:f,onEntered:p,onEntering:g,onExit:O,onExited:S,onExiting:T,orientation:w="vertical",style:x,timeout:k=Fse.standard,TransitionComponent:_=Lc}=r,R=kt(r,i_e),N=Q({},r,{orientation:w,collapsedSize:o}),D=a_e(N),L=Hf(),j=Dg(),B=M.useRef(null),V=M.useRef(),W=typeof o=="number"?`${o}px`:o,re=w==="horizontal",ee=re?"width":"height",q=M.useRef(null),te=Sr(n,q),K=ae=>Je=>{if(ae){const We=q.current;Je===void 0?ae(We):ae(We,Je)}},G=()=>B.current?B.current[re?"clientWidth":"clientHeight"]:0,ie=K((ae,Je)=>{B.current&&re&&(B.current.style.position="absolute"),ae.style[ee]=W,f&&f(ae,Je)}),H=K((ae,Je)=>{const We=G();B.current&&re&&(B.current.style.position="");const{duration:Xe,easing:At}=dm({style:x,timeout:k,easing:u},{mode:"enter"});if(k==="auto"){const st=L.transitions.getAutoHeightDuration(We);ae.style.transitionDuration=`${st}ms`,V.current=st}else ae.style.transitionDuration=typeof Xe=="string"?Xe:`${Xe}ms`;ae.style[ee]=`${We}px`,ae.style.transitionTimingFunction=At,g&&g(ae,Je)}),Re=K((ae,Je)=>{ae.style[ee]="auto",p&&p(ae,Je)}),Se=K(ae=>{ae.style[ee]=`${G()}px`,O&&O(ae)}),Z=K(S),ke=K(ae=>{const Je=G(),{duration:We,easing:Xe}=dm({style:x,timeout:k,easing:u},{mode:"exit"});if(k==="auto"){const At=L.transitions.getAutoHeightDuration(Je);ae.style.transitionDuration=`${At}ms`,V.current=At}else ae.style.transitionDuration=typeof We=="string"?We:`${We}ms`;ae.style[ee]=W,ae.style.transitionTimingFunction=Xe,T&&T(ae)}),$e=ae=>{k==="auto"&&j.start(V.current||0,ae),i&&i(q.current,ae)};return I.jsx(_,Q({in:d,onEnter:ie,onEntered:Re,onEntering:H,onExit:Se,onExited:Z,onExiting:ke,addEndListener:$e,nodeRef:q,timeout:k==="auto"?null:k},R,{children:(ae,Je)=>I.jsx(s_e,Q({as:l,className:xt(D.root,s,{entered:D.entered,exited:!d&&W==="0px"&&D.hidden}[ae]),style:Q({[re?"minWidth":"minHeight"]:W},x),ref:te},Je,{ownerState:Q({},N,{state:ae}),children:I.jsx(o_e,{ownerState:Q({},N,{state:ae}),className:D.wrapper,ref:B,children:I.jsx(l_e,{ownerState:Q({},N,{state:ae}),className:D.wrapperInner,children:a})})}))}))});S$.muiSupportAuto=!0;function u_e(e){return hn("MuiPaper",e)}pn("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 c_e=["className","component","elevation","square","variant"],d_e=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return mn(a,u_e,i)},f_e=ct("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 Q({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"&&Q({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Vn("#fff",RG(t.elevation))}, ${Vn("#fff",RG(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Hs=M.forwardRef(function(t,n){const r=bn({props:t,name:"MuiPaper"}),{className:i,component:a="div",elevation:s=1,square:o=!1,variant:l="elevation"}=r,u=kt(r,c_e),d=Q({},r,{component:a,elevation:s,square:o,variant:l}),f=d_e(d);return I.jsx(f_e,Q({as:a,ownerState:d,className:xt(f.root,i),ref:n},u))}),h_e=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],p_e=["component","slots","slotProps"],m_e=["component"];function g_e(e,t){const{className:n,elementType:r,ownerState:i,externalForwardedProps:a,getSlotOwnerState:s,internalForwardedProps:o}=t,l=kt(t,h_e),{component:u,slots:d={[e]:void 0},slotProps:f={[e]:void 0}}=a;kt(a,p_e);const p=d[e]||r,g=kse(f[e],i),O=xse(Q({className:n},l,{externalForwardedProps:void 0,externalSlotProps:g})),{props:{component:S},internalRef:T}=O,w=kt(O.props,m_e),x=Sr(T,g==null?void 0:g.ref,t.ref),k=s?s(w):{},_=Q({},i,k),R=S,N=vy(p,Q({},e==="root",!d[e]&&o,w,R&&{as:R},{ref:x}),_);return Object.keys(k).forEach(D=>{delete N[D]}),[p,N]}function b_e(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:s,in:o,onExited:l,timeout:u}=e,[d,f]=M.useState(!1),p=xt(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),g={width:s,height:s,top:-(s/2)+a,left:-(s/2)+i},O=xt(n.child,d&&n.childLeaving,r&&n.childPulsate);return!o&&!d&&f(!0),M.useEffect(()=>{if(!o&&l!=null){const S=setTimeout(l,u);return()=>{clearTimeout(S)}}},[l,o,u]),I.jsx("span",{className:p,style:g,children:I.jsx("span",{className:O})})}const nc=pn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),y_e=["center","classes","className"];let W5=e=>e,NG,DG,PG,LG;const QP=550,v_e=80,O_e=oO(NG||(NG=W5` + */var e$=Symbol.for("react.element"),t$=Symbol.for("react.portal"),_5=Symbol.for("react.fragment"),C5=Symbol.for("react.strict_mode"),R5=Symbol.for("react.profiler"),I5=Symbol.for("react.provider"),N5=Symbol.for("react.context"),Oke=Symbol.for("react.server_context"),D5=Symbol.for("react.forward_ref"),P5=Symbol.for("react.suspense"),L5=Symbol.for("react.suspense_list"),M5=Symbol.for("react.memo"),$5=Symbol.for("react.lazy"),Ske=Symbol.for("react.offscreen"),ose;ose=Symbol.for("react.module.reference");function Dc(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case e$:switch(e=e.type,e){case _5:case R5:case C5:case P5:case L5:return e;default:switch(e=e&&e.$$typeof,e){case Oke:case N5:case D5:case $5:case M5:case I5:return e;default:return t}}case t$:return t}}}li.ContextConsumer=N5;li.ContextProvider=I5;li.Element=e$;li.ForwardRef=D5;li.Fragment=_5;li.Lazy=$5;li.Memo=M5;li.Portal=t$;li.Profiler=R5;li.StrictMode=C5;li.Suspense=P5;li.SuspenseList=L5;li.isAsyncMode=function(){return!1};li.isConcurrentMode=function(){return!1};li.isContextConsumer=function(e){return Dc(e)===N5};li.isContextProvider=function(e){return Dc(e)===I5};li.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===e$};li.isForwardRef=function(e){return Dc(e)===D5};li.isFragment=function(e){return Dc(e)===_5};li.isLazy=function(e){return Dc(e)===$5};li.isMemo=function(e){return Dc(e)===M5};li.isPortal=function(e){return Dc(e)===t$};li.isProfiler=function(e){return Dc(e)===R5};li.isStrictMode=function(e){return Dc(e)===C5};li.isSuspense=function(e){return Dc(e)===P5};li.isSuspenseList=function(e){return Dc(e)===L5};li.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===_5||e===R5||e===C5||e===P5||e===L5||e===Ske||typeof e=="object"&&e!==null&&(e.$$typeof===$5||e.$$typeof===M5||e.$$typeof===I5||e.$$typeof===N5||e.$$typeof===D5||e.$$typeof===ose||e.getModuleId!==void 0)};li.typeOf=Dc;sse.exports=li;var iG=sse.exports;const Eke=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function lse(e){const t=`${e}`.match(Eke);return t&&t[1]||""}function use(e,t=""){return e.displayName||e.name||lse(e)||t}function aG(e,t,n){const r=use(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function wke(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return use(e,"Component");if(typeof e=="object")switch(e.$$typeof){case iG.ForwardRef:return aG(e,e.render,"ForwardRef");case iG.Memo:return aG(e,e.type,"memo");default:return}}}const Tke=Object.freeze(Object.defineProperty({__proto__:null,default:wke,getFunctionName:lse},Symbol.toStringTag,{value:"Module"})),xke=["ownerState"],kke=["variants"],Ake=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function _ke(e){return Object.keys(e).length===0}function Cke(e){return typeof e=="string"&&e.charCodeAt(0)>96}function xN(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Rke=Jv(),Ike=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function aA({defaultTheme:e,theme:t,themeId:n}){return _ke(t)?e:t[n]||t}function Nke(e){return e?(t,n)=>n[e]:null}function j4(e,t){let{ownerState:n}=t,r=Tt(t,xke);const i=typeof e=="function"?e(Q({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap(a=>j4(a,Q({ownerState:n},r)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:a=[]}=i;let o=Tt(i,kke);return a.forEach(l=>{let u=!0;typeof l.props=="function"?u=l.props(Q({ownerState:n},r,n)):Object.keys(l.props).forEach(d=>{(n==null?void 0:n[d])!==l.props[d]&&r[d]!==l.props[d]&&(u=!1)}),u&&(Array.isArray(o)||(o=[o]),o.push(typeof l.style=="function"?l.style(Q({ownerState:n},r,n)):l.style))}),o}return i}function Dke(e={}){const{themeId:t,defaultTheme:n=Rke,rootShouldForwardProp:r=xN,slotShouldForwardProp:i=xN}=e,a=s=>Kv(Q({},s,{theme:aA(Q({},s,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(s,o={})=>{Xae(s,R=>R.filter(N=>!(N!=null&&N.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:p=Nke(Ike(u))}=o,g=Tt(o,Ake),O=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,S=f||!1;let T,w=xN;u==="Root"||u==="root"?w=r:u?w=i:Cke(s)&&(w=void 0);const x=V9(s,Q({shouldForwardProp:w,label:T},g)),k=R=>typeof R=="function"&&R.__emotion_real!==R||$h(R)?N=>j4(R,Q({},N,{theme:aA({theme:N.theme,defaultTheme:n,themeId:t})})):R,_=(R,...N)=>{let P=k(R);const L=N?N.map(k):[];l&&p&&L.push(V=>{const W=aA(Q({},V,{defaultTheme:n,themeId:t}));if(!W.components||!W.components[l]||!W.components[l].styleOverrides)return null;const re=W.components[l].styleOverrides,ee={};return Object.entries(re).forEach(([q,ne])=>{ee[q]=j4(ne,Q({},V,{theme:W}))}),p(V,ee)}),l&&!O&&L.push(V=>{var W;const re=aA(Q({},V,{defaultTheme:n,themeId:t})),ee=re==null||(W=re.components)==null||(W=W[l])==null?void 0:W.variants;return j4({variants:ee},Q({},V,{theme:re}))}),S||L.push(a);const j=L.length-N.length;if(Array.isArray(R)&&j>0){const V=new Array(j).fill("");P=[...R,...V],P.raw=[...R.raw,...V]}const B=x(P,...L);return s.muiName&&(B.muiName=s.muiName),B};return x.withConfig&&(_.withConfig=x.withConfig),_}}const cse=Dke();function yv(e,t){const n=Q({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Q({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},a=t[r];n[r]={},!a||!Object.keys(a)?n[r]=i:!i||!Object.keys(i)?n[r]=a:(n[r]=Q({},a),Object.keys(i).forEach(s=>{n[r][s]=yv(i[s],a[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function dse(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:yv(t.components[n].defaultProps,r)}function fse({props:e,name:t,defaultTheme:n,themeId:r}){let i=A5(n);return r&&(i=i[r]||i),dse({theme:i,name:t,props:e})}const Ko=typeof window<"u"?M.useLayoutEffect:M.useEffect;function Pke(e,t,n,r,i){const[a,s]=M.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return Ko(()=>{let o=!0;if(!n)return;const l=n(e),u=()=>{o&&s(l.matches)};return u(),l.addListener(u),()=>{o=!1,l.removeListener(u)}},[e,n]),a}const hse=M.useSyncExternalStore;function Lke(e,t,n,r,i){const a=M.useCallback(()=>t,[t]),s=M.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){const{matches:d}=r(e);return()=>d}return a},[a,e,r,i,n]),[o,l]=M.useMemo(()=>{if(n===null)return[a,()=>()=>{}];const d=n(e);return[()=>d.matches,f=>(d.addListener(f),()=>{d.removeListener(f)})]},[a,n,e]);return hse(l,o,s)}function pse(e,t={}){const n=K9(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:a=r?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:o=!1}=dse({name:"MuiUseMediaQuery",props:t,theme:n});let l=e;return l=l.replace(/^@media( ?)/m,""),(hse!==void 0?Lke:Pke)(l,i,a,s,o)}function Ag(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const Mke=Object.freeze(Object.defineProperty({__proto__:null,default:Ag},Symbol.toStringTag,{value:"Module"}));function n$(e,t=0,n=1){return Ag(e,t,n)}function $ke(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 b1(e){if(e.type)return e;if(e.charAt(0)==="#")return b1($ke(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(rp(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(rp(10,i))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:i}}function F5(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,a)=>a<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Fke(e){e=b1(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),s=(u,d=(u+n/30)%12)=>i-a*Math.max(Math.min(d-3,9-d,1),-1);let o="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(o+="a",l.push(t[3])),F5({type:o,values:l})}function Bke(e){e=b1(e);let t=e.type==="hsl"||e.type==="hsla"?b1(Fke(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 sA(e,t){return e=b1(e),t=n$(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,F5(e)}function Uke(e,t){if(e=b1(e),t=n$(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 F5(e)}function zke(e,t){if(e=b1(e),t=n$(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 F5(e)}function jke(e,t=.15){return Bke(e)>.5?Uke(e,t):zke(e,t)}function s3(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function B5(e,t=166){let n;function r(...i){const a=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function Hke(e,t){return()=>null}function i2(e,t){var n,r;return M.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function ca(e){return e&&e.ownerDocument||document}function Lf(e){return ca(e).defaultView||window}function Qke(e,t){return()=>null}function iw(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let sG=0;function Wke(e){const[t,n]=M.useState(e),r=e||t;return M.useEffect(()=>{t==null&&(sG+=1,n(`mui-${sG}`))},[t]),r}const oG=lv.useId;function eO(e){if(oG!==void 0){const t=oG();return e??t}return Wke(e)}function Vke(e,t,n,r,i){return null}function Cf({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=M.useRef(e!==void 0),[a,s]=M.useState(t),o=i?e:a,l=M.useCallback(u=>{i||s(u)},[]);return[o,l]}function Qs(e){const t=M.useRef(e);return Ko(()=>{t.current=e}),M.useRef((...n)=>(0,t.current)(...n)).current}function vr(...e){return M.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{iw(n,t)})},e)}const lG={};function qke(e,t){const n=M.useRef(lG);return n.current===lG&&(n.current=e(t)),n}const Gke=[];function Yke(e){M.useEffect(e,Gke)}class bT{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new bT}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Mg(){const e=qke(bT.create).current;return Yke(e.disposeEffect),e}let U5=!0,DP=!1;const Zke=new bT,Xke={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 Kke(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Xke[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Jke(e){e.metaKey||e.altKey||e.ctrlKey||(U5=!0)}function kN(){U5=!1}function eAe(){this.visibilityState==="hidden"&&DP&&(U5=!0)}function tAe(e){e.addEventListener("keydown",Jke,!0),e.addEventListener("mousedown",kN,!0),e.addEventListener("pointerdown",kN,!0),e.addEventListener("touchstart",kN,!0),e.addEventListener("visibilitychange",eAe,!0)}function nAe(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return U5||Kke(t)}function z5(){const e=M.useCallback(i=>{i!=null&&tAe(i.ownerDocument)},[]),t=M.useRef(!1);function n(){return t.current?(DP=!0,Zke.start(100,()=>{DP=!1}),t.current=!1,!0):!1}function r(i){return nAe(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function mse(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const rAe=e=>{const t=M.useRef({});return M.useEffect(()=>{t.current=e}),t.current};function iAe(e){return M.Children.toArray(e).filter(t=>M.isValidElement(t))}const aAe={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function pn(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((a,s)=>{if(s){const o=t(s);o!==""&&a.push(o),n&&n[s]&&a.push(n[s])}return a},[]).join(" ")}),r}function Rf(e){return typeof e=="string"}function dy(e,t,n){return e===void 0||Rf(e)?t:Q({},t,{ownerState:Q({},t.ownerState,n)})}function a2(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 uG(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 gse(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){const g=wt(n==null?void 0:n.className,a,i==null?void 0:i.className,r==null?void 0:r.className),O=Q({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),S=Q({},n,i,r);return g.length>0&&(S.className=g),Object.keys(O).length>0&&(S.style=O),{props:S,internalRef:void 0}}const s=a2(Q({},i,r)),o=uG(r),l=uG(i),u=t(s),d=wt(u==null?void 0:u.className,n==null?void 0:n.className,a,i==null?void 0:i.className,r==null?void 0:r.className),f=Q({},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=Q({},u,n,l,o);return d.length>0&&(p.className=d),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:u.ref}}function bse(e,t,n){return typeof e=="function"?e(t,n):e}const sAe=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ho(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:a=!1}=e,s=Tt(e,sAe),o=a?{}:bse(r,i),{props:l,internalRef:u}=gse(Q({},s,{externalSlotProps:o})),d=vr(u,o==null?void 0:o.ref,(t=e.additionalProps)==null?void 0:t.ref);return dy(n,Q({},l,{ref:d}),i)}const yse=M.createContext(null);function vse(){return M.useContext(yse)}const oAe=typeof Symbol=="function"&&Symbol.for,lAe=oAe?Symbol.for("mui.nested"):"__THEME_NESTED__";function uAe(e,t){return typeof t=="function"?t(e):Q({},e,t)}function cAe(e){const{children:t,theme:n}=e,r=vse(),i=M.useMemo(()=>{const a=r===null?n:uAe(r,n);return a!=null&&(a[lAe]=r!==null),a},[n,r]);return I.jsx(yse.Provider,{value:i,children:t})}const dAe=["value"],Ose=M.createContext();function fAe(e){let{value:t}=e,n=Tt(e,dAe);return I.jsx(Ose.Provider,Q({value:t??!0},n))}const r$=()=>{const e=M.useContext(Ose);return e??!1},Sse=M.createContext(void 0);function hAe({value:e,children:t}){return I.jsx(Sse.Provider,{value:e,children:t})}function pAe(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?yv(i.defaultProps,r):!i.styleOverrides&&!i.variants?yv(i,r):r}function mAe({props:e,name:t}){const n=M.useContext(Sse);return pAe({props:e,name:t,theme:{components:n}})}const cG={};function dG(e,t,n,r=!1){return M.useMemo(()=>{const i=e&&t[e]||t;if(typeof n=="function"){const a=n(i),s=e?Q({},t,{[e]:a}):a;return r?()=>s:s}return e?Q({},t,{[e]:n}):Q({},t,n)},[e,t,n,r])}function gAe(e){const{children:t,theme:n,themeId:r}=e,i=K9(cG),a=vse()||cG,s=dG(r,i,n),o=dG(r,a,n,!0),l=s.direction==="rtl";return I.jsx(cAe,{theme:o,children:I.jsx(hT.Provider,{value:s,children:I.jsx(fAe,{value:l,children:I.jsx(hAe,{value:s==null?void 0:s.components,children:t})})})})}const bAe=["className","component","disableGutters","fixed","maxWidth","classes"],yAe=Jv(),vAe=cse("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${st(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),OAe=e=>fse({props:e,name:"MuiContainer",defaultTheme:yAe}),SAe=(e,t)=>{const n=l=>dn(t,l),{classes:r,fixed:i,disableGutters:a,maxWidth:s}=e,o={root:["root",s&&`maxWidth${st(String(s))}`,i&&"fixed",a&&"disableGutters"]};return pn(o,n,r)};function EAe(e={}){const{createStyledComponent:t=vAe,useThemeProps:n=OAe,componentName:r="MuiContainer"}=e,i=t(({theme:s,ownerState:o})=>Q({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!o.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}}),({theme:s,ownerState:o})=>o.fixed&&Object.keys(s.breakpoints.values).reduce((l,u)=>{const d=u,f=s.breakpoints.values[d];return f!==0&&(l[s.breakpoints.up(d)]={maxWidth:`${f}${s.breakpoints.unit}`}),l},{}),({theme:s,ownerState:o})=>Q({},o.maxWidth==="xs"&&{[s.breakpoints.up("xs")]:{maxWidth:Math.max(s.breakpoints.values.xs,444)}},o.maxWidth&&o.maxWidth!=="xs"&&{[s.breakpoints.up(o.maxWidth)]:{maxWidth:`${s.breakpoints.values[o.maxWidth]}${s.breakpoints.unit}`}}));return M.forwardRef(function(o,l){const u=n(o),{className:d,component:f="div",disableGutters:p=!1,fixed:g=!1,maxWidth:O="lg"}=u,S=Tt(u,bAe),T=Q({},u,{component:f,disableGutters:p,fixed:g,maxWidth:O}),w=SAe(T,r);return I.jsx(i,Q({as:f,ownerState:T,className:wt(w.root,d),ref:l},S))})}const wAe=["component","direction","spacing","divider","children","className","useFlexGap"],TAe=Jv(),xAe=cse("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function kAe(e){return fse({props:e,name:"MuiStack",defaultTheme:TAe})}function AAe(e,t){const n=M.Children.toArray(e).filter(Boolean);return n.reduce((r,i,a)=>(r.push(i),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],CAe=({ownerState:e,theme:t})=>{let n=Q({display:"flex",flexDirection:"column"},Pl({theme:t},r1({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=Z9(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),{}),a=r1({values:e.direction,base:i}),s=r1({values:e.spacing,base:i});typeof a=="object"&&Object.keys(a).forEach((l,u,d)=>{if(!a[l]){const p=u>0?a[d[u-1]]:"column";a[l]=p}}),n=Yo(n,Pl({theme:t},s,(l,u)=>e.useFlexGap?{gap:g1(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${_Ae(u?a[u]:e.direction)}`]:g1(r,l)}}))}return n=Oxe(t.breakpoints,n),n};function RAe(e={}){const{createStyledComponent:t=xAe,useThemeProps:n=kAe,componentName:r="MuiStack"}=e,i=()=>pn({root:["root"]},l=>dn(r,l),{}),a=t(CAe);return M.forwardRef(function(l,u){const d=n(l),f=gT(d),{component:p="div",direction:g="column",spacing:O=0,divider:S,children:T,className:w,useFlexGap:x=!1}=f,k=Tt(f,wAe),_={direction:g,spacing:O,useFlexGap:x},R=i();return I.jsx(a,Q({as:p,ownerState:_,ref:u,className:wt(R.root,w)},k,{children:S?AAe(T,S):T}))})}function IAe(e,t){return Q({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Fa={},Ese={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})(Ese);var Ii=Ese.exports;const NAe=gp(nTe),DAe=gp(Mke);var wse=Ii;Object.defineProperty(Fa,"__esModule",{value:!0});var Qn=Fa.alpha=Ase;Fa.blend=QAe;Fa.colorChannel=void 0;var aw=Fa.darken=a$;Fa.decomposeColor=kc;Fa.emphasize=_se;var PAe=Fa.getContrastRatio=BAe;Fa.getLuminance=o3;Fa.hexToRgb=Tse;Fa.hslToRgb=kse;var sw=Fa.lighten=s$;Fa.private_safeAlpha=UAe;Fa.private_safeColorChannel=void 0;Fa.private_safeDarken=zAe;Fa.private_safeEmphasize=HAe;Fa.private_safeLighten=jAe;Fa.recomposeColor=tO;Fa.rgbToHex=FAe;var fG=wse(NAe),LAe=wse(DAe);function i$(e,t=0,n=1){return(0,LAe.default)(e,t,n)}function Tse(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 MAe(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function kc(e){if(e.type)return e;if(e.charAt(0)==="#")return kc(Tse(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,fG.default)(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((0,fG.default)(10,i))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:i}}const xse=e=>{const t=kc(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Fa.colorChannel=xse;const $Ae=(e,t)=>{try{return xse(e)}catch{return e}};Fa.private_safeColorChannel=$Ae;function tO(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,a)=>a<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function FAe(e){if(e.indexOf("#")===0)return e;const{values:t}=kc(e);return`#${t.map((n,r)=>MAe(r===3?Math.round(255*n):n)).join("")}`}function kse(e){e=kc(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),s=(u,d=(u+n/30)%12)=>i-a*Math.max(Math.min(d-3,9-d,1),-1);let o="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(o+="a",l.push(t[3])),tO({type:o,values:l})}function o3(e){e=kc(e);let t=e.type==="hsl"||e.type==="hsla"?kc(kse(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 BAe(e,t){const n=o3(e),r=o3(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Ase(e,t){return e=kc(e),t=i$(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,tO(e)}function UAe(e,t,n){try{return Ase(e,t)}catch{return e}}function a$(e,t){if(e=kc(e),t=i$(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 tO(e)}function zAe(e,t,n){try{return a$(e,t)}catch{return e}}function s$(e,t){if(e=kc(e),t=i$(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 tO(e)}function jAe(e,t,n){try{return s$(e,t)}catch{return e}}function _se(e,t=.15){return o3(e)>.5?a$(e,t):s$(e,t)}function HAe(e,t,n){try{return _se(e,t)}catch{return e}}function QAe(e,t,n,r=1){const i=(l,u)=>Math.round((l**(1/r)*(1-n)+u**(1/r)*n)**r),a=kc(e),s=kc(t),o=[i(a.values[0],s.values[0]),i(a.values[1],s.values[1]),i(a.values[2],s.values[2])];return tO({type:"rgb",values:o})}const WAe=["mode","contrastThreshold","tonalOffset"],hG={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:ew.white,default:ew.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}},AN={text:{primary:ew.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:ew.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 pG(e,t,n,r){const i=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=sw(e.main,i):t==="dark"&&(e.dark=aw(e.main,a)))}function VAe(e="light"){return e==="dark"?{main:kb[200],light:kb[50],dark:kb[400]}:{main:kb[700],light:kb[400],dark:kb[800]}}function qAe(e="light"){return e==="dark"?{main:xb[200],light:xb[50],dark:xb[400]}:{main:xb[500],light:xb[300],dark:xb[700]}}function GAe(e="light"){return e==="dark"?{main:Tb[500],light:Tb[300],dark:Tb[700]}:{main:Tb[700],light:Tb[400],dark:Tb[800]}}function YAe(e="light"){return e==="dark"?{main:Ab[400],light:Ab[300],dark:Ab[700]}:{main:Ab[700],light:Ab[500],dark:Ab[900]}}function ZAe(e="light"){return e==="dark"?{main:_b[400],light:_b[300],dark:_b[700]}:{main:_b[800],light:_b[500],dark:_b[900]}}function XAe(e="light"){return e==="dark"?{main:GS[400],light:GS[300],dark:GS[700]}:{main:"#ed6c02",light:GS[500],dark:GS[900]}}function KAe(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=Tt(e,WAe),a=e.primary||VAe(t),s=e.secondary||qAe(t),o=e.error||GAe(t),l=e.info||YAe(t),u=e.success||ZAe(t),d=e.warning||XAe(t);function f(S){return PAe(S,AN.text.primary)>=n?AN.text.primary:hG.text.primary}const p=({color:S,name:T,mainShade:w=500,lightShade:x=300,darkShade:k=700})=>{if(S=Q({},S),!S.main&&S[w]&&(S.main=S[w]),!S.hasOwnProperty("main"))throw new Error(rp(11,T?` (${T})`:"",w));if(typeof S.main!="string")throw new Error(rp(12,T?` (${T})`:"",JSON.stringify(S.main)));return pG(S,"light",x,r),pG(S,"dark",k,r),S.contrastText||(S.contrastText=f(S.main)),S},g={dark:AN,light:hG};return Yo(Q({common:Q({},ew),mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:o,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:tTe,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r},g[t]),i)}const JAe=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function e4e(e){return Math.round(e*1e5)/1e5}const mG={textTransform:"uppercase"},gG='"Roboto", "Helvetica", "Arial", sans-serif';function t4e(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=gG,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:s=400,fontWeightMedium:o=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:d,pxToRem:f}=n,p=Tt(n,JAe),g=i/14,O=f||(w=>`${w/u*g}rem`),S=(w,x,k,_,R)=>Q({fontFamily:r,fontWeight:w,fontSize:O(x),lineHeight:k},r===gG?{letterSpacing:`${e4e(_/x)}em`}:{},R,d),T={h1:S(a,96,1.167,-1.5),h2:S(a,60,1.2,-.5),h3:S(s,48,1.167,0),h4:S(s,34,1.235,.25),h5:S(s,24,1.334,0),h6:S(o,20,1.6,.15),subtitle1:S(s,16,1.75,.15),subtitle2:S(o,14,1.57,.1),body1:S(s,16,1.5,.15),body2:S(s,14,1.43,.15),button:S(o,14,1.75,.4,mG),caption:S(s,12,1.66,.4),overline:S(s,12,2.66,1,mG),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Yo(Q({htmlFontSize:u,pxToRem:O,fontFamily:r,fontSize:i,fontWeightLight:a,fontWeightRegular:s,fontWeightMedium:o,fontWeightBold:l},T),p,{clone:!1})}const n4e=.2,r4e=.14,i4e=.12;function Gi(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${n4e})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${r4e})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${i4e})`].join(",")}const a4e=["none",Gi(0,2,1,-1,0,1,1,0,0,1,3,0),Gi(0,3,1,-2,0,2,2,0,0,1,5,0),Gi(0,3,3,-2,0,3,4,0,0,1,8,0),Gi(0,2,4,-1,0,4,5,0,0,1,10,0),Gi(0,3,5,-1,0,5,8,0,0,1,14,0),Gi(0,3,5,-1,0,6,10,0,0,1,18,0),Gi(0,4,5,-2,0,7,10,1,0,2,16,1),Gi(0,5,5,-3,0,8,10,1,0,3,14,2),Gi(0,5,6,-3,0,9,12,1,0,3,16,2),Gi(0,6,6,-3,0,10,14,1,0,4,18,3),Gi(0,6,7,-4,0,11,15,1,0,4,20,3),Gi(0,7,8,-4,0,12,17,2,0,5,22,4),Gi(0,7,8,-4,0,13,19,2,0,5,24,4),Gi(0,7,9,-4,0,14,21,2,0,5,26,4),Gi(0,8,9,-5,0,15,22,2,0,6,28,5),Gi(0,8,10,-5,0,16,24,2,0,6,30,5),Gi(0,8,11,-5,0,17,26,2,0,6,32,5),Gi(0,9,11,-5,0,18,28,2,0,7,34,6),Gi(0,9,12,-6,0,19,29,2,0,7,36,6),Gi(0,10,13,-6,0,20,31,3,0,8,38,7),Gi(0,10,13,-6,0,21,33,3,0,8,40,7),Gi(0,10,14,-6,0,22,35,3,0,8,42,7),Gi(0,11,14,-7,0,23,36,3,0,9,44,8),Gi(0,11,15,-7,0,24,38,3,0,9,46,8)],s4e=["duration","easing","delay"],o4e={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)"},Cse={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function bG(e){return`${Math.round(e)}ms`}function l4e(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function u4e(e){const t=Q({},o4e,e.easing),n=Q({},Cse,e.duration);return Q({getAutoHeightDuration:l4e,create:(i=["all"],a={})=>{const{duration:s=n.standard,easing:o=t.easeInOut,delay:l=0}=a;return Tt(a,s4e),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof s=="string"?s:bG(s)} ${o} ${typeof l=="string"?l:bG(l)}`).join(",")}},e,{easing:t,duration:n})}const c4e={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},d4e=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function o$(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:a={}}=e,s=Tt(e,d4e);if(e.vars)throw new Error(rp(18));const o=KAe(r),l=Jv(e);let u=Yo(l,{mixins:IAe(l.breakpoints,n),palette:o,shadows:a4e.slice(),typography:t4e(o,a),transitions:u4e(i),zIndex:Q({},c4e)});return u=Yo(u,s),u=t.reduce((d,f)=>Yo(d,f),u),u.unstable_sxConfig=Q({},mT,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(f){return Kv({sx:f,theme:this})},u}const l$=o$();function Uf(){const e=A5(l$);return e[gv]||e}var yT={},_N={exports:{}},yG;function Rse(){return yG||(yG=1,function(e){function t(n,r){if(n==null)return{};var i={};for(var a in n)if({}.hasOwnProperty.call(n,a)){if(r.includes(a))continue;i[a]=n[a]}return i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(_N)),_N.exports}const Ise=gp(mxe),f4e=gp(gxe),h4e=gp(Exe),p4e=gp(Tke),m4e=gp(uke),g4e=gp(mke);var nO=Ii;Object.defineProperty(yT,"__esModule",{value:!0});var b4e=yT.default=R4e;yT.shouldForwardProp=H4;yT.systemDefaultTheme=void 0;var Ju=nO(Vae()),PP=nO(Rse()),vG=T4e(Ise),y4e=f4e;nO(h4e);nO(p4e);var v4e=nO(m4e),O4e=nO(g4e);const S4e=["ownerState"],E4e=["variants"],w4e=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Nse(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Nse=function(r){return r?n:t})(e)}function T4e(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Nse(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function x4e(e){return Object.keys(e).length===0}function k4e(e){return typeof e=="string"&&e.charCodeAt(0)>96}function H4(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const A4e=yT.systemDefaultTheme=(0,v4e.default)(),_4e=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function oA({defaultTheme:e,theme:t,themeId:n}){return x4e(t)?e:t[n]||t}function C4e(e){return e?(t,n)=>n[e]:null}function Q4(e,t){let{ownerState:n}=t,r=(0,PP.default)(t,S4e);const i=typeof e=="function"?e((0,Ju.default)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap(a=>Q4(a,(0,Ju.default)({ownerState:n},r)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:a=[]}=i;let o=(0,PP.default)(i,E4e);return a.forEach(l=>{let u=!0;typeof l.props=="function"?u=l.props((0,Ju.default)({ownerState:n},r,n)):Object.keys(l.props).forEach(d=>{(n==null?void 0:n[d])!==l.props[d]&&r[d]!==l.props[d]&&(u=!1)}),u&&(Array.isArray(o)||(o=[o]),o.push(typeof l.style=="function"?l.style((0,Ju.default)({ownerState:n},r,n)):l.style))}),o}return i}function R4e(e={}){const{themeId:t,defaultTheme:n=A4e,rootShouldForwardProp:r=H4,slotShouldForwardProp:i=H4}=e,a=s=>(0,O4e.default)((0,Ju.default)({},s,{theme:oA((0,Ju.default)({},s,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(s,o={})=>{(0,vG.internal_processStyles)(s,R=>R.filter(N=>!(N!=null&&N.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:p=C4e(_4e(u))}=o,g=(0,PP.default)(o,w4e),O=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,S=f||!1;let T,w=H4;u==="Root"||u==="root"?w=r:u?w=i:k4e(s)&&(w=void 0);const x=(0,vG.default)(s,(0,Ju.default)({shouldForwardProp:w,label:T},g)),k=R=>typeof R=="function"&&R.__emotion_real!==R||(0,y4e.isPlainObject)(R)?N=>Q4(R,(0,Ju.default)({},N,{theme:oA({theme:N.theme,defaultTheme:n,themeId:t})})):R,_=(R,...N)=>{let P=k(R);const L=N?N.map(k):[];l&&p&&L.push(V=>{const W=oA((0,Ju.default)({},V,{defaultTheme:n,themeId:t}));if(!W.components||!W.components[l]||!W.components[l].styleOverrides)return null;const re=W.components[l].styleOverrides,ee={};return Object.entries(re).forEach(([q,ne])=>{ee[q]=Q4(ne,(0,Ju.default)({},V,{theme:W}))}),p(V,ee)}),l&&!O&&L.push(V=>{var W;const re=oA((0,Ju.default)({},V,{defaultTheme:n,themeId:t})),ee=re==null||(W=re.components)==null||(W=W[l])==null?void 0:W.variants;return Q4({variants:ee},(0,Ju.default)({},V,{theme:re}))}),S||L.push(a);const j=L.length-N.length;if(Array.isArray(R)&&j>0){const V=new Array(j).fill("");P=[...R,...V],P.raw=[...R.raw,...V]}const B=x(P,...L);return s.muiName&&(B.muiName=s.muiName),B};return x.withConfig&&(_.withConfig=x.withConfig),_}}function j5(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ys=e=>j5(e)&&e!=="classes",lt=b4e({themeId:gv,defaultTheme:l$,rootShouldForwardProp:Ys}),I4e=["theme"];function N4e(e){let{theme:t}=e,n=Tt(e,I4e);const r=t[gv];return I.jsx(gAe,Q({},n,{themeId:r?gv:void 0,theme:r||t}))}const OG=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function mn(e){return mAe(e)}function D4e(e){return dn("MuiSvgIcon",e)}hn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const P4e=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],L4e=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${st(t)}`,`fontSize${st(n)}`]};return pn(i,D4e,r)},M4e=lt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${st(n.color)}`],t[`fontSize${st(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,a,s,o,l,u,d,f,p,g,O;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(s=a.pxToRem)==null?void 0:s.call(a,20))||"1.25rem",medium:((o=e.typography)==null||(l=o.pxToRem)==null?void 0:l.call(o,24))||"1.5rem",large:((u=e.typography)==null||(d=u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}[t.fontSize],color:(f=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?f:{action:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.active,disabled:(O=(e.vars||e).palette)==null||(O=O.action)==null?void 0:O.disabled,inherit:void 0}[t.color]}}),rm=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiSvgIcon"}),{children:i,className:a,color:s="inherit",component:o="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:f,viewBox:p="0 0 24 24"}=r,g=Tt(r,P4e),O=M.isValidElement(i)&&i.type==="svg",S=Q({},r,{color:s,component:o,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:p,hasSvgAsChild:O}),T={};d||(T.viewBox=p);const w=L4e(S);return I.jsxs(M4e,Q({as:o,className:wt(w.root,a),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},T,g,O&&i.props,{ownerState:S,children:[O?i.props.children:i,f?I.jsx("title",{children:f}):null]}))});rm.muiName="SvgIcon";function Id(e,t){function n(r,i){return I.jsx(rm,Q({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=rm.muiName,M.memo(M.forwardRef(n))}const $4e={configure:e=>{J9.configure(e)}},F4e=Object.freeze(Object.defineProperty({__proto__:null,capitalize:st,createChainedFunction:s3,createSvgIcon:Id,debounce:B5,deprecatedPropType:Hke,isMuiElement:i2,ownerDocument:ca,ownerWindow:Lf,requirePropFactory:Qke,setRef:iw,unstable_ClassNameGenerator:$4e,unstable_useEnhancedEffect:Ko,unstable_useId:eO,unsupportedProp:Vke,useControlled:Cf,useEventCallback:Qs,useForkRef:vr,useIsFocusVisible:z5},Symbol.toStringTag,{value:"Module"}));function LP(e,t){return LP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},LP(e,t)}function Dse(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,LP(e,t)}const SG={disabled:!1},l3=rn.createContext(null);var B4e=function(t){return t.scrollTop},NE="unmounted",Tg="exited",xg="entering",Ub="entered",MP="exiting",Pc=function(e){Dse(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var s=i,o=s&&!s.isMounting?r.enter:r.appear,l;return a.appearStatus=null,r.in?o?(l=Tg,a.appearStatus=xg):l=Ub:r.unmountOnExit||r.mountOnEnter?l=NE:l=Tg,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var s=i.in;return s&&a.status===NE?{status:Tg}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==xg&&s!==Ub&&(a=xg):(s===xg||s===Ub)&&(a=MP)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,s,o;return a=s=o=i,i!=null&&typeof i!="number"&&(a=i.exit,s=i.enter,o=i.appear!==void 0?i.appear:s),{exit:a,enter:s,appear:o}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===xg){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:IE.findDOMNode(this);s&&B4e(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Tg&&this.setState({status:NE})},n.performEnter=function(i){var a=this,s=this.props.enter,o=this.context?this.context.isMounting:i,l=this.props.nodeRef?[o]:[IE.findDOMNode(this),o],u=l[0],d=l[1],f=this.getTimeouts(),p=o?f.appear:f.enter;if(!i&&!s||SG.disabled){this.safeSetState({status:Ub},function(){a.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:xg},function(){a.props.onEntering(u,d),a.onTransitionEnd(p,function(){a.safeSetState({status:Ub},function(){a.props.onEntered(u,d)})})})},n.performExit=function(){var i=this,a=this.props.exit,s=this.getTimeouts(),o=this.props.nodeRef?void 0:IE.findDOMNode(this);if(!a||SG.disabled){this.safeSetState({status:Tg},function(){i.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:MP},function(){i.props.onExiting(o),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:Tg},function(){i.props.onExited(o)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,s=!0;return this.nextCallback=function(o){s&&(s=!1,a.nextCallback=null,i(o))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:IE.findDOMNode(this),o=i==null&&!this.props.addEndListener;if(!s||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=l[0],d=l[1];this.props.addEndListener(u,d)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===NE)return null;var a=this.props,s=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var o=Tt(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return rn.createElement(l3.Provider,{value:null},typeof s=="function"?s(i,o):rn.cloneElement(rn.Children.only(s),o))},t}(rn.Component);Pc.contextType=l3;Pc.propTypes={};function Cb(){}Pc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Cb,onEntering:Cb,onEntered:Cb,onExit:Cb,onExiting:Cb,onExited:Cb};Pc.UNMOUNTED=NE;Pc.EXITED=Tg;Pc.ENTERING=xg;Pc.ENTERED=Ub;Pc.EXITING=MP;function U4e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u$(e,t){var n=function(a){return t&&M.isValidElement(a)?t(a):a},r=Object.create(null);return e&&M.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function z4e(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var s,o={};for(var l in t){if(r[l])for(s=0;se.scrollTop;function im(e,t){var n,r;const{timeout:i,easing:a,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof i=="number"?i:i[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof a=="object"?a[t.mode]:a,delay:s.transitionDelay}}function V4e(e){return dn("MuiCollapse",e)}hn("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const q4e=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],G4e=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return pn(r,V4e,n)},Y4e=lt("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})=>Q({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&Q({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),Z4e=lt("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>Q({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),X4e=lt("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>Q({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),f$=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiCollapse"}),{addEndListener:i,children:a,className:s,collapsedSize:o="0px",component:l,easing:u,in:d,onEnter:f,onEntered:p,onEntering:g,onExit:O,onExited:S,onExiting:T,orientation:w="vertical",style:x,timeout:k=Cse.standard,TransitionComponent:_=Pc}=r,R=Tt(r,q4e),N=Q({},r,{orientation:w,collapsedSize:o}),P=G4e(N),L=Uf(),j=Mg(),B=M.useRef(null),V=M.useRef(),W=typeof o=="number"?`${o}px`:o,re=w==="horizontal",ee=re?"width":"height",q=M.useRef(null),ne=vr(n,q),K=ae=>Xe=>{if(ae){const We=q.current;Xe===void 0?ae(We):ae(We,Xe)}},G=()=>B.current?B.current[re?"clientWidth":"clientHeight"]:0,ie=K((ae,Xe)=>{B.current&&re&&(B.current.style.position="absolute"),ae.style[ee]=W,f&&f(ae,Xe)}),H=K((ae,Xe)=>{const We=G();B.current&&re&&(B.current.style.position="");const{duration:Ye,easing:xt}=im({style:x,timeout:k,easing:u},{mode:"enter"});if(k==="auto"){const it=L.transitions.getAutoHeightDuration(We);ae.style.transitionDuration=`${it}ms`,V.current=it}else ae.style.transitionDuration=typeof Ye=="string"?Ye:`${Ye}ms`;ae.style[ee]=`${We}px`,ae.style.transitionTimingFunction=xt,g&&g(ae,Xe)}),Re=K((ae,Xe)=>{ae.style[ee]="auto",p&&p(ae,Xe)}),Se=K(ae=>{ae.style[ee]=`${G()}px`,O&&O(ae)}),Z=K(S),ke=K(ae=>{const Xe=G(),{duration:We,easing:Ye}=im({style:x,timeout:k,easing:u},{mode:"exit"});if(k==="auto"){const xt=L.transitions.getAutoHeightDuration(Xe);ae.style.transitionDuration=`${xt}ms`,V.current=xt}else ae.style.transitionDuration=typeof We=="string"?We:`${We}ms`;ae.style[ee]=W,ae.style.transitionTimingFunction=Ye,T&&T(ae)}),$e=ae=>{k==="auto"&&j.start(V.current||0,ae),i&&i(q.current,ae)};return I.jsx(_,Q({in:d,onEnter:ie,onEntered:Re,onEntering:H,onExit:Se,onExited:Z,onExiting:ke,addEndListener:$e,nodeRef:q,timeout:k==="auto"?null:k},R,{children:(ae,Xe)=>I.jsx(Y4e,Q({as:l,className:wt(P.root,s,{entered:P.entered,exited:!d&&W==="0px"&&P.hidden}[ae]),style:Q({[re?"minWidth":"minHeight"]:W},x),ref:ne},Xe,{ownerState:Q({},N,{state:ae}),children:I.jsx(Z4e,{ownerState:Q({},N,{state:ae}),className:P.wrapper,ref:B,children:I.jsx(X4e,{ownerState:Q({},N,{state:ae}),className:P.wrapperInner,children:a})})}))}))});f$.muiSupportAuto=!0;function K4e(e){return dn("MuiPaper",e)}hn("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 J4e=["className","component","elevation","square","variant"],e_e=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return pn(a,K4e,i)},t_e=lt("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 Q({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"&&Q({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Qn("#fff",OG(t.elevation))}, ${Qn("#fff",OG(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Gs=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiPaper"}),{className:i,component:a="div",elevation:s=1,square:o=!1,variant:l="elevation"}=r,u=Tt(r,J4e),d=Q({},r,{component:a,elevation:s,square:o,variant:l}),f=e_e(d);return I.jsx(t_e,Q({as:a,ownerState:d,className:wt(f.root,i),ref:n},u))}),n_e=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],r_e=["component","slots","slotProps"],i_e=["component"];function a_e(e,t){const{className:n,elementType:r,ownerState:i,externalForwardedProps:a,getSlotOwnerState:s,internalForwardedProps:o}=t,l=Tt(t,n_e),{component:u,slots:d={[e]:void 0},slotProps:f={[e]:void 0}}=a;Tt(a,r_e);const p=d[e]||r,g=bse(f[e],i),O=gse(Q({className:n},l,{externalForwardedProps:void 0,externalSlotProps:g})),{props:{component:S},internalRef:T}=O,w=Tt(O.props,i_e),x=vr(T,g==null?void 0:g.ref,t.ref),k=s?s(w):{},_=Q({},i,k),R=S,N=dy(p,Q({},e==="root",!d[e]&&o,w,R&&{as:R},{ref:x}),_);return Object.keys(k).forEach(P=>{delete N[P]}),[p,N]}function s_e(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:s,in:o,onExited:l,timeout:u}=e,[d,f]=M.useState(!1),p=wt(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),g={width:s,height:s,top:-(s/2)+a,left:-(s/2)+i},O=wt(n.child,d&&n.childLeaving,r&&n.childPulsate);return!o&&!d&&f(!0),M.useEffect(()=>{if(!o&&l!=null){const S=setTimeout(l,u);return()=>{clearTimeout(S)}}},[l,o,u]),I.jsx("span",{className:p,style:g,children:I.jsx("span",{className:O})})}const tc=hn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),o_e=["center","classes","className"];let H5=e=>e,EG,wG,TG,xG;const $P=550,l_e=80,u_e=Xv(EG||(EG=H5` 0% { transform: scale(0); opacity: 0.1; @@ -62,7 +62,7 @@ Error generating stack: `+a.message+` transform: scale(1); opacity: 0.3; } -`)),S_e=oO(DG||(DG=W5` +`)),c_e=Xv(wG||(wG=H5` 0% { opacity: 1; } @@ -70,7 +70,7 @@ Error generating stack: `+a.message+` 100% { opacity: 0; } -`)),E_e=oO(PG||(PG=W5` +`)),d_e=Xv(TG||(TG=H5` 0% { transform: scale(1); } @@ -82,7 +82,7 @@ Error generating stack: `+a.message+` 100% { transform: scale(1); } -`)),w_e=ct("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),T_e=ct(b_e,{name:"MuiTouchRipple",slot:"Ripple"})(LG||(LG=W5` +`)),f_e=lt("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),h_e=lt(s_e,{name:"MuiTouchRipple",slot:"Ripple"})(xG||(xG=H5` opacity: 0; position: absolute; @@ -125,8 +125,8 @@ Error generating stack: `+a.message+` animation-iteration-count: infinite; animation-delay: 200ms; } -`),nc.rippleVisible,O_e,QP,({theme:e})=>e.transitions.easing.easeInOut,nc.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,nc.child,nc.childLeaving,S_e,QP,({theme:e})=>e.transitions.easing.easeInOut,nc.childPulsate,E_e,({theme:e})=>e.transitions.easing.easeInOut),x_e=M.forwardRef(function(t,n){const r=bn({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:s}=r,o=kt(r,y_e),[l,u]=M.useState([]),d=M.useRef(0),f=M.useRef(null);M.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const p=M.useRef(!1),g=Dg(),O=M.useRef(null),S=M.useRef(null),T=M.useCallback(_=>{const{pulsate:R,rippleX:N,rippleY:D,rippleSize:L,cb:j}=_;u(B=>[...B,I.jsx(T_e,{classes:{ripple:xt(a.ripple,nc.ripple),rippleVisible:xt(a.rippleVisible,nc.rippleVisible),ripplePulsate:xt(a.ripplePulsate,nc.ripplePulsate),child:xt(a.child,nc.child),childLeaving:xt(a.childLeaving,nc.childLeaving),childPulsate:xt(a.childPulsate,nc.childPulsate)},timeout:QP,pulsate:R,rippleX:N,rippleY:D,rippleSize:L},d.current)]),d.current+=1,f.current=j},[a]),w=M.useCallback((_={},R={},N=()=>{})=>{const{pulsate:D=!1,center:L=i||R.pulsate,fakeElement:j=!1}=R;if((_==null?void 0:_.type)==="mousedown"&&p.current){p.current=!1;return}(_==null?void 0:_.type)==="touchstart"&&(p.current=!0);const B=j?null:S.current,V=B?B.getBoundingClientRect():{width:0,height:0,left:0,top:0};let W,re,ee;if(L||_===void 0||_.clientX===0&&_.clientY===0||!_.clientX&&!_.touches)W=Math.round(V.width/2),re=Math.round(V.height/2);else{const{clientX:q,clientY:te}=_.touches&&_.touches.length>0?_.touches[0]:_;W=Math.round(q-V.left),re=Math.round(te-V.top)}if(L)ee=Math.sqrt((2*V.width**2+V.height**2)/3),ee%2===0&&(ee+=1);else{const q=Math.max(Math.abs((B?B.clientWidth:0)-W),W)*2+2,te=Math.max(Math.abs((B?B.clientHeight:0)-re),re)*2+2;ee=Math.sqrt(q**2+te**2)}_!=null&&_.touches?O.current===null&&(O.current=()=>{T({pulsate:D,rippleX:W,rippleY:re,rippleSize:ee,cb:N})},g.start(v_e,()=>{O.current&&(O.current(),O.current=null)})):T({pulsate:D,rippleX:W,rippleY:re,rippleSize:ee,cb:N})},[i,T,g]),x=M.useCallback(()=>{w({},{pulsate:!0})},[w]),k=M.useCallback((_,R)=>{if(g.clear(),(_==null?void 0:_.type)==="touchend"&&O.current){O.current(),O.current=null,g.start(0,()=>{k(_,R)});return}O.current=null,u(N=>N.length>0?N.slice(1):N),f.current=R},[g]);return M.useImperativeHandle(n,()=>({pulsate:x,start:w,stop:k}),[x,w,k]),I.jsx(w_e,Q({className:xt(nc.root,a.root,s),ref:S},o,{children:I.jsx(v$,{component:null,exit:!0,children:l})}))});function k_e(e){return hn("MuiButtonBase",e)}const A_e=pn("MuiButtonBase",["root","disabled","focusVisible"]),__e=["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"],C_e=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,s=mn({root:["root",t&&"disabled",n&&"focusVisible"]},k_e,i);return n&&r&&(s.root+=` ${r}`),s},R_e=ct("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"},[`&.${A_e.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Uf=M.forwardRef(function(t,n){const r=bn({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:a=!1,children:s,className:o,component:l="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:g="a",onBlur:O,onClick:S,onContextMenu:T,onDragLeave:w,onFocus:x,onFocusVisible:k,onKeyDown:_,onKeyUp:R,onMouseDown:N,onMouseLeave:D,onMouseUp:L,onTouchEnd:j,onTouchMove:B,onTouchStart:V,tabIndex:W=0,TouchRippleProps:re,touchRippleRef:ee,type:q}=r,te=kt(r,__e),K=M.useRef(null),G=M.useRef(null),ie=Sr(G,ee),{isFocusVisibleRef:H,onFocus:Re,onBlur:Se,ref:Z}=H5(),[ke,$e]=M.useState(!1);u&&ke&&$e(!1),M.useImperativeHandle(i,()=>({focusVisible:()=>{$e(!0),K.current.focus()}}),[]);const[ae,Je]=M.useState(!1);M.useEffect(()=>{Je(!0)},[]);const We=ae&&!d&&!u;M.useEffect(()=>{ke&&p&&!d&&ae&&G.current.pulsate()},[d,p,ke,ae]);function Xe(xe,Ue,It=f){return Fs(Gt=>(Ue&&Ue(Gt),!It&&G.current&&G.current[xe](Gt),!0))}const At=Xe("start",N),st=Xe("stop",T),Lt=Xe("stop",w),Ht=Xe("stop",L),ft=Xe("stop",xe=>{ke&&xe.preventDefault(),D&&D(xe)}),Et=Xe("start",V),Ot=Xe("stop",j),zt=Xe("stop",B),de=Xe("stop",xe=>{Se(xe),H.current===!1&&$e(!1),O&&O(xe)},!1),_e=Fs(xe=>{K.current||(K.current=xe.currentTarget),Re(xe),H.current===!0&&($e(!0),k&&k(xe)),x&&x(xe)}),Ne=()=>{const xe=K.current;return l&&l!=="button"&&!(xe.tagName==="A"&&xe.href)},et=M.useRef(!1),dt=Fs(xe=>{p&&!et.current&&ke&&G.current&&xe.key===" "&&(et.current=!0,G.current.stop(xe,()=>{G.current.start(xe)})),xe.target===xe.currentTarget&&Ne()&&xe.key===" "&&xe.preventDefault(),_&&_(xe),xe.target===xe.currentTarget&&Ne()&&xe.key==="Enter"&&!u&&(xe.preventDefault(),S&&S(xe))}),tt=Fs(xe=>{p&&xe.key===" "&&G.current&&ke&&!xe.defaultPrevented&&(et.current=!1,G.current.stop(xe,()=>{G.current.pulsate(xe)})),R&&R(xe),S&&xe.target===xe.currentTarget&&Ne()&&xe.key===" "&&!xe.defaultPrevented&&S(xe)});let yt=l;yt==="button"&&(te.href||te.to)&&(yt=g);const tn={};yt==="button"?(tn.type=q===void 0?"button":q,tn.disabled=u):(!te.href&&!te.to&&(tn.role="button"),u&&(tn["aria-disabled"]=u));const Fe=Sr(n,Z,K),we=Q({},r,{centerRipple:a,component:l,disabled:u,disableRipple:d,disableTouchRipple:f,focusRipple:p,tabIndex:W,focusVisible:ke}),be=C_e(we);return I.jsxs(R_e,Q({as:yt,className:xt(be.root,o),ownerState:we,onBlur:de,onClick:S,onContextMenu:st,onFocus:_e,onKeyDown:dt,onKeyUp:tt,onMouseDown:At,onMouseLeave:ft,onMouseUp:Ht,onDragLeave:Lt,onTouchEnd:Ot,onTouchMove:zt,onTouchStart:Et,ref:Fe,tabIndex:u?-1:W,type:q},tn,te,{children:[s,We?I.jsx(x_e,Q({ref:ie,center:a},re)):null]}))});function I_e(e){return hn("MuiIconButton",e)}const N_e=pn("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),D_e=["edge","children","className","color","disabled","disableFocusRipple","size"],P_e=e=>{const{classes:t,disabled:n,color:r,edge:i,size:a}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${lt(r)}`,i&&`edge${lt(i)}`,`size${lt(a)}`]};return mn(s,I_e,t)},L_e=ct(Uf,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${lt(n.color)}`],n.edge&&t[`edge${lt(n.edge)}`],t[`size${lt(n.size)}`]]}})(({theme:e,ownerState:t})=>Q({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})`:Vn(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 Q({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&Q({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":Q({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Vn(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)},{[`&.${N_e.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),So=M.forwardRef(function(t,n){const r=bn({props:t,name:"MuiIconButton"}),{edge:i=!1,children:a,className:s,color:o="default",disabled:l=!1,disableFocusRipple:u=!1,size:d="medium"}=r,f=kt(r,D_e),p=Q({},r,{edge:i,color:o,disabled:l,disableFocusRipple:u,size:d}),g=P_e(p);return I.jsx(L_e,Q({className:xt(g.root,s),centerRipple:!0,focusRipple:!u,disabled:l,ref:n},f,{ownerState:p,children:a}))}),M_e=Nd(I.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 $_e(e){return hn("MuiTypography",e)}pn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const F_e=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],B_e=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:a,classes:s}=e,o={root:["root",a,e.align!=="inherit"&&`align${lt(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return mn(o,$_e,s)},U_e=ct("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${lt(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>Q({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})),MG={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},z_e={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},j_e=e=>z_e[e]||e,Tr=M.forwardRef(function(t,n){const r=bn({props:t,name:"MuiTypography"}),i=j_e(r.color),a=pT(Q({},r,{color:i})),{align:s="inherit",className:o,component:l,gutterBottom:u=!1,noWrap:d=!1,paragraph:f=!1,variant:p="body1",variantMapping:g=MG}=a,O=kt(a,F_e),S=Q({},a,{align:s,color:i,className:o,component:l,gutterBottom:u,noWrap:d,paragraph:f,variant:p,variantMapping:g}),T=l||(f?"p":g[p]||MG[p])||"span",w=B_e(S);return I.jsx(U_e,Q({as:T,ref:n,ownerState:S,className:xt(w.root,o)},O))});function H_e(e){return hn("MuiAppBar",e)}pn("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const Q_e=["className","color","enableColorOnDark","position"],W_e=e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${lt(t)}`,`position${lt(n)}`]};return mn(i,H_e,r)},lA=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,V_e=ct(Hs,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${lt(n.position)}`],t[`color${lt(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return Q({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&&Q({},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"&&Q({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&Q({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:lA(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:lA(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:lA(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:lA(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},!["inherit","transparent"].includes(t.color)&&{backgroundColor:"var(--AppBar-background)"},{color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),E$=M.forwardRef(function(t,n){const r=bn({props:t,name:"MuiAppBar"}),{className:i,color:a="primary",enableColorOnDark:s=!1,position:o="fixed"}=r,l=kt(r,Q_e),u=Q({},r,{color:a,position:o,enableColorOnDark:s}),d=W_e(u);return I.jsx(V_e,Q({square:!0,component:"header",ownerState:u,elevation:4,className:xt(d.root,i,o==="fixed"&&"mui-fixed"),ref:n},l))});function $G(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function q_e(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:i="any",stringify:a,trim:s=!1}=e;return(o,{inputValue:l,getOptionLabel:u})=>{let d=s?l.trim():l;n&&(d=d.toLowerCase()),t&&(d=$G(d));const f=d?o.filter(p=>{let g=(a||u)(p);return n&&(g=g.toLowerCase()),t&&(g=$G(g)),i==="start"?g.indexOf(d)===0:g.indexOf(d)>-1}):o;return typeof r=="number"?f.slice(0,r):f}}function uA(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 Z_e(e){const{unstable_isActiveElementInListbox:t=Y_e,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:s=!1,clearOnBlur:o=!e.freeSolo,clearOnEscape:l=!1,componentName:u="useAutocomplete",defaultValue:d=e.multiple?[]:null,disableClearable:f=!1,disableCloseOnSelect:p=!1,disabled:g,disabledItemsFocusable:O=!1,disableListWrap:S=!1,filterOptions:T=G_e,filterSelectedOptions:w=!1,freeSolo:x=!1,getOptionDisabled:k,getOptionKey:_,getOptionLabel:R=Ie=>{var Te;return(Te=Ie.label)!=null?Te:Ie},groupBy:N,handleHomeEndKeys:D=!e.freeSolo,id:L,includeInputInList:j=!1,inputValue:B,isOptionEqualToValue:V=(Ie,Te)=>Ie===Te,multiple:W=!1,onChange:re,onClose:ee,onHighlightChange:q,onInputChange:te,onOpen:K,open:G,openOnFocus:ie=!1,options:H,readOnly:Re=!1,selectOnFocus:Se=!e.freeSolo,value:Z}=e,ke=cO(L);let $e=R;$e=Ie=>{const Te=R(Ie);return typeof Te!="string"?String(Te):Te};const ae=M.useRef(!1),Je=M.useRef(!0),We=M.useRef(null),Xe=M.useRef(null),[At,st]=M.useState(null),[Lt,Ht]=M.useState(-1),ft=i?0:-1,Et=M.useRef(ft),[Ot,zt]=Df({controlled:Z,default:d,name:u}),[de,_e]=Df({controlled:B,default:"",name:u,state:"inputValue"}),[Ne,et]=M.useState(!1),dt=M.useCallback((Ie,Te)=>{if(!(W?Ot.length!(w&&(W?Ot:[Ot]).some(Te=>Te!==null&&V(Ie,Te)))),{inputValue:we&&tn?"":de,getOptionLabel:$e}):[],Ue=pAe({filteredOptions:xe,value:Ot,inputValue:de});M.useEffect(()=>{const Ie=Ot!==Ue.value;Ne&&!Ie||x&&!Ie||dt(null,Ot)},[Ot,dt,Ne,Ue.value,x]);const It=tt&&xe.length>0&&!Re,Gt=Fs(Ie=>{Ie===-1?We.current.focus():At.querySelector(`[data-tag-index="${Ie}"]`).focus()});M.useEffect(()=>{W&&Lt>Ot.length-1&&(Ht(-1),Gt(-1))},[Ot,W,Lt,Gt]);function rt(Ie,Te){if(!Xe.current||Ie<0||Ie>=xe.length)return-1;let ot=Ie;for(;;){const Ye=Xe.current.querySelector(`[data-option-index="${ot}"]`),wt=O?!1:!Ye||Ye.disabled||Ye.getAttribute("aria-disabled")==="true";if(Ye&&Ye.hasAttribute("tabindex")&&!wt)return ot;if(Te==="next"?ot=(ot+1)%xe.length:ot=(ot-1+xe.length)%xe.length,ot===Ie)return-1}}const Vt=Fs(({event:Ie,index:Te,reason:ot="auto"})=>{if(Et.current=Te,Te===-1?We.current.removeAttribute("aria-activedescendant"):We.current.setAttribute("aria-activedescendant",`${ke}-option-${Te}`),q&&q(Ie,Te===-1?null:xe[Te],ot),!Xe.current)return;const Ye=Xe.current.querySelector(`[role="option"].${n}-focused`);Ye&&(Ye.classList.remove(`${n}-focused`),Ye.classList.remove(`${n}-focusVisible`));let wt=Xe.current;if(Xe.current.getAttribute("role")!=="listbox"&&(wt=Xe.current.parentElement.querySelector('[role="listbox"]')),!wt)return;if(Te===-1){wt.scrollTop=0;return}const Rt=Xe.current.querySelector(`[data-option-index="${Te}"]`);if(Rt&&(Rt.classList.add(`${n}-focused`),ot==="keyboard"&&Rt.classList.add(`${n}-focusVisible`),wt.scrollHeight>wt.clientHeight&&ot!=="mouse"&&ot!=="touch")){const Yt=Rt,Qn=wt.clientHeight+wt.scrollTop,Yn=Yt.offsetTop+Yt.offsetHeight;Yn>Qn?wt.scrollTop=Yn-wt.clientHeight:Yt.offsetTop-Yt.offsetHeight*(N?1.3:0){if(!be)return;const Rt=rt((()=>{const Yt=xe.length-1;if(Te==="reset")return ft;if(Te==="start")return 0;if(Te==="end")return Yt;const Qn=Et.current+Te;return Qn<0?Qn===-1&&j?-1:S&&Et.current!==-1||Math.abs(Te)>1?0:Yt:Qn>Yt?Qn===Yt+1&&j?-1:S||Math.abs(Te)>1?Yt:0:Qn})(),ot);if(Vt({index:Rt,reason:Ye,event:Ie}),r&&Te!=="reset")if(Rt===-1)We.current.value=de;else{const Yt=$e(xe[Rt]);We.current.value=Yt,Yt.toLowerCase().indexOf(de.toLowerCase())===0&&de.length>0&&We.current.setSelectionRange(de.length,Yt.length)}}),jt=()=>{const Ie=(Te,ot)=>{const Ye=Te?$e(Te):"",wt=ot?$e(ot):"";return Ye===wt};if(Et.current!==-1&&Ue.filteredOptions&&Ue.filteredOptions.length!==xe.length&&Ue.inputValue===de&&(W?Ot.length===Ue.value.length&&Ue.value.every((Te,ot)=>$e(Ot[ot])===$e(Te)):Ie(Ue.value,Ot))){const Te=Ue.filteredOptions[Et.current];if(Te)return uA(xe,ot=>$e(ot)===$e(Te))}return-1},En=M.useCallback(()=>{if(!be)return;const Ie=jt();if(Ie!==-1){Et.current=Ie;return}const Te=W?Ot[0]:Ot;if(xe.length===0||Te==null){Qt({diff:"reset"});return}if(Xe.current){if(Te!=null){const ot=xe[Et.current];if(W&&ot&&uA(Ot,wt=>V(ot,wt))!==-1)return;const Ye=uA(xe,wt=>V(wt,Te));Ye===-1?Qt({diff:"reset"}):Vt({index:Ye});return}if(Et.current>=xe.length-1){Vt({index:xe.length-1});return}Vt({index:Et.current})}},[xe.length,W?!1:Ot,w,Qt,Vt,be,de,W]),br=Fs(Ie=>{nw(Xe,Ie),Ie&&En()});M.useEffect(()=>{En()},[En]);const Mr=Ie=>{tt||(yt(!0),Fe(!0),K&&K(Ie))},Rr=(Ie,Te)=>{tt&&(yt(!1),ee&&ee(Ie,Te))},Yr=(Ie,Te,ot,Ye)=>{if(W){if(Ot.length===Te.length&&Ot.every((wt,Rt)=>wt===Te[Rt]))return}else if(Ot===Te)return;re&&re(Ie,Te,ot,Ye),zt(Te)},Li=M.useRef(!1),bi=(Ie,Te,ot="selectOption",Ye="options")=>{let wt=ot,Rt=Te;if(W){Rt=Array.isArray(Ot)?Ot.slice():[];const Yt=uA(Rt,Qn=>V(Te,Qn));Yt===-1?Rt.push(Te):Ye!=="freeSolo"&&(Rt.splice(Yt,1),wt="removeOption")}dt(Ie,Rt),Yr(Ie,Rt,wt,{option:Te}),!p&&(!Ie||!Ie.ctrlKey&&!Ie.metaKey)&&Rr(Ie,wt),(s===!0||s==="touch"&&Li.current||s==="mouse"&&!Li.current)&&We.current.blur()};function Qi(Ie,Te){if(Ie===-1)return-1;let ot=Ie;for(;;){if(Te==="next"&&ot===Ot.length||Te==="previous"&&ot===-1)return-1;const Ye=At.querySelector(`[data-tag-index="${ot}"]`);if(!Ye||!Ye.hasAttribute("tabindex")||Ye.disabled||Ye.getAttribute("aria-disabled")==="true")ot+=Te==="next"?1:-1;else return ot}}const yi=(Ie,Te)=>{if(!W)return;de===""&&Rr(Ie,"toggleInput");let ot=Lt;Lt===-1?de===""&&Te==="previous"&&(ot=Ot.length-1):(ot+=Te==="next"?1:-1,ot<0&&(ot=0),ot===Ot.length&&(ot=-1)),ot=Qi(ot,Te),Ht(ot),Gt(ot)},ds=Ie=>{ae.current=!0,_e(""),te&&te(Ie,"","clear"),Yr(Ie,W?[]:null,"clear")},Wi=Ie=>Te=>{if(Ie.onKeyDown&&Ie.onKeyDown(Te),!Te.defaultMuiPrevented&&(Lt!==-1&&["ArrowLeft","ArrowRight"].indexOf(Te.key)===-1&&(Ht(-1),Gt(-1)),Te.which!==229))switch(Te.key){case"Home":be&&D&&(Te.preventDefault(),Qt({diff:"start",direction:"next",reason:"keyboard",event:Te}));break;case"End":be&&D&&(Te.preventDefault(),Qt({diff:"end",direction:"previous",reason:"keyboard",event:Te}));break;case"PageUp":Te.preventDefault(),Qt({diff:-FG,direction:"previous",reason:"keyboard",event:Te}),Mr(Te);break;case"PageDown":Te.preventDefault(),Qt({diff:FG,direction:"next",reason:"keyboard",event:Te}),Mr(Te);break;case"ArrowDown":Te.preventDefault(),Qt({diff:1,direction:"next",reason:"keyboard",event:Te}),Mr(Te);break;case"ArrowUp":Te.preventDefault(),Qt({diff:-1,direction:"previous",reason:"keyboard",event:Te}),Mr(Te);break;case"ArrowLeft":yi(Te,"previous");break;case"ArrowRight":yi(Te,"next");break;case"Enter":if(Et.current!==-1&&be){const ot=xe[Et.current],Ye=k?k(ot):!1;if(Te.preventDefault(),Ye)return;bi(Te,ot,"selectOption"),r&&We.current.setSelectionRange(We.current.value.length,We.current.value.length)}else x&&de!==""&&we===!1&&(W&&Te.preventDefault(),bi(Te,de,"createOption","freeSolo"));break;case"Escape":be?(Te.preventDefault(),Te.stopPropagation(),Rr(Te,"escape")):l&&(de!==""||W&&Ot.length>0)&&(Te.preventDefault(),Te.stopPropagation(),ds(Te));break;case"Backspace":if(W&&!Re&&de===""&&Ot.length>0){const ot=Lt===-1?Ot.length-1:Lt,Ye=Ot.slice();Ye.splice(ot,1),Yr(Te,Ye,"removeOption",{option:Ot[ot]})}break;case"Delete":if(W&&!Re&&de===""&&Ot.length>0&&Lt!==-1){const ot=Lt,Ye=Ot.slice();Ye.splice(ot,1),Yr(Te,Ye,"removeOption",{option:Ot[ot]})}break}},qs=Ie=>{et(!0),ie&&!ae.current&&Mr(Ie)},Vi=Ie=>{if(t(Xe)){We.current.focus();return}et(!1),Je.current=!0,ae.current=!1,a&&Et.current!==-1&&be?bi(Ie,xe[Et.current],"blur"):a&&x&&de!==""?bi(Ie,de,"blur","freeSolo"):o&&dt(Ie,Ot),Rr(Ie,"blur")},Ur=Ie=>{const Te=Ie.target.value;de!==Te&&(_e(Te),Fe(!1),te&&te(Ie,Te,"input")),Te===""?!f&&!W&&Yr(Ie,null,"clear"):Mr(Ie)},ir=Ie=>{const Te=Number(Ie.currentTarget.getAttribute("data-option-index"));Et.current!==Te&&Vt({event:Ie,index:Te,reason:"mouse"})},Zr=Ie=>{Vt({event:Ie,index:Number(Ie.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Li.current=!0},ze=Ie=>{const Te=Number(Ie.currentTarget.getAttribute("data-option-index"));bi(Ie,xe[Te],"selectOption"),Li.current=!1},it=Ie=>Te=>{const ot=Ot.slice();ot.splice(Ie,1),Yr(Te,ot,"removeOption",{option:Ot[Ie]})},le=Ie=>{tt?Rr(Ie,"toggleInput"):Mr(Ie)},he=Ie=>{Ie.currentTarget.contains(Ie.target)&&Ie.target.getAttribute("id")!==ke&&Ie.preventDefault()},Le=Ie=>{Ie.currentTarget.contains(Ie.target)&&(We.current.focus(),Se&&Je.current&&We.current.selectionEnd-We.current.selectionStart===0&&We.current.select(),Je.current=!1)},qe=Ie=>{!g&&(de===""||!tt)&&le(Ie)};let gt=x&&de.length>0;gt=gt||(W?Ot.length>0:Ot!==null);let qt=xe;return N&&(qt=xe.reduce((Ie,Te,ot)=>{const Ye=N(Te);return Ie.length>0&&Ie[Ie.length-1].group===Ye?Ie[Ie.length-1].options.push(Te):Ie.push({key:ot,index:ot,group:Ye,options:[Te]}),Ie},[])),g&&Ne&&Vi(),{getRootProps:(Ie={})=>Q({"aria-owns":It?`${ke}-listbox`:null},Ie,{onKeyDown:Wi(Ie),onMouseDown:he,onClick:Le}),getInputLabelProps:()=>({id:`${ke}-label`,htmlFor:ke}),getInputProps:()=>({id:ke,value:de,onBlur:Vi,onFocus:qs,onChange:Ur,onMouseDown:qe,"aria-activedescendant":be?"":null,"aria-autocomplete":r?"both":"list","aria-controls":It?`${ke}-listbox`:void 0,"aria-expanded":It,autoComplete:"off",ref:We,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:g}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:ds}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:le}),getTagProps:({index:Ie})=>Q({key:Ie,"data-tag-index":Ie,tabIndex:-1},!Re&&{onDelete:it(Ie)}),getListboxProps:()=>({role:"listbox",id:`${ke}-listbox`,"aria-labelledby":`${ke}-label`,ref:br,onMouseDown:Ie=>{Ie.preventDefault()}}),getOptionProps:({index:Ie,option:Te})=>{var ot;const Ye=(W?Ot:[Ot]).some(Rt=>Rt!=null&&V(Te,Rt)),wt=k?k(Te):!1;return{key:(ot=_==null?void 0:_(Te))!=null?ot:$e(Te),tabIndex:-1,role:"option",id:`${ke}-option-${Ie}`,onMouseMove:ir,onClick:ze,onTouchStart:Zr,"data-option-index":Ie,"aria-disabled":wt,"aria-selected":Ye}},id:ke,inputValue:de,value:Ot,dirty:gt,expanded:be&&At,popupOpen:be,focused:Ne||Lt!==-1,anchorEl:At,setAnchorEl:st,focusedTag:Lt,groupedOptions:qt}}var w$={};Object.defineProperty(w$,"__esModule",{value:!0});var Hse=w$.default=void 0,X_e=J_e(M),K_e=Use;function Qse(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Qse=function(r){return r?n:t})(e)}function J_e(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Qse(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function eCe(e){return Object.keys(e).length===0}function tCe(e=null){const t=X_e.useContext(K_e.ThemeContext);return!t||eCe(t)?e:t}Hse=w$.default=tCe;var Rl="top",Ac="bottom",_c="right",Il="left",T$="auto",bT=[Rl,Ac,_c,Il],Av="start",aw="end",nCe="clippingParents",Wse="viewport",GS="popper",rCe="reference",BG=bT.reduce(function(e,t){return e.concat([t+"-"+Av,t+"-"+aw])},[]),Vse=[].concat(bT,[T$]).reduce(function(e,t){return e.concat([t,t+"-"+Av,t+"-"+aw])},[]),iCe="beforeRead",aCe="read",sCe="afterRead",oCe="beforeMain",lCe="main",uCe="afterMain",cCe="beforeWrite",dCe="write",fCe="afterWrite",hCe=[iCe,aCe,sCe,oCe,lCe,uCe,cCe,dCe,fCe];function zf(e){return e?(e.nodeName||"").toLowerCase():null}function Cu(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function m1(e){var t=Cu(e).Element;return e instanceof t||e instanceof Element}function vc(e){var t=Cu(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function x$(e){if(typeof ShadowRoot>"u")return!1;var t=Cu(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function pCe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},a=t.elements[n];!vc(a)||!zf(a)||(Object.assign(a.style,r),Object.keys(i).forEach(function(s){var o=i[s];o===!1?a.removeAttribute(s):a.setAttribute(s,o===!0?"":o)}))})}function mCe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],a=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),o=s.reduce(function(l,u){return l[u]="",l},{});!vc(i)||!zf(i)||(Object.assign(i.style,o),Object.keys(a).forEach(function(l){i.removeAttribute(l)}))})}}const gCe={name:"applyStyles",enabled:!0,phase:"write",fn:pCe,effect:mCe,requires:["computeStyles"]};function Lf(e){return e.split("-")[0]}var t1=Math.max,uC=Math.min,_v=Math.round;function WP(){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 qse(){return!/^((?!chrome|android).)*safari/i.test(WP())}function Cv(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&vc(e)&&(i=e.offsetWidth>0&&_v(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&_v(r.height)/e.offsetHeight||1);var s=m1(e)?Cu(e):window,o=s.visualViewport,l=!qse()&&n,u=(r.left+(l&&o?o.offsetLeft:0))/i,d=(r.top+(l&&o?o.offsetTop:0))/a,f=r.width/i,p=r.height/a;return{width:f,height:p,top:d,right:u+f,bottom:d+p,left:u,x:u,y:d}}function k$(e){var t=Cv(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 Gse(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&x$(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function dp(e){return Cu(e).getComputedStyle(e)}function bCe(e){return["table","td","th"].indexOf(zf(e))>=0}function xm(e){return((m1(e)?e.ownerDocument:e.document)||window.document).documentElement}function V5(e){return zf(e)==="html"?e:e.assignedSlot||e.parentNode||(x$(e)?e.host:null)||xm(e)}function UG(e){return!vc(e)||dp(e).position==="fixed"?null:e.offsetParent}function yCe(e){var t=/firefox/i.test(WP()),n=/Trident/i.test(WP());if(n&&vc(e)){var r=dp(e);if(r.position==="fixed")return null}var i=V5(e);for(x$(i)&&(i=i.host);vc(i)&&["html","body"].indexOf(zf(i))<0;){var a=dp(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function yT(e){for(var t=Cu(e),n=UG(e);n&&bCe(n)&&dp(n).position==="static";)n=UG(n);return n&&(zf(n)==="html"||zf(n)==="body"&&dp(n).position==="static")?t:n||yCe(e)||t}function A$(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function i2(e,t,n){return t1(e,uC(t,n))}function vCe(e,t,n){var r=i2(e,t,n);return r>n?n:r}function Yse(){return{top:0,right:0,bottom:0,left:0}}function Zse(e){return Object.assign({},Yse(),e)}function Xse(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var OCe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Zse(typeof t!="number"?t:Xse(t,bT))};function SCe(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,o=Lf(n.placement),l=A$(o),u=[Il,_c].indexOf(o)>=0,d=u?"height":"width";if(!(!a||!s)){var f=OCe(i.padding,n),p=k$(a),g=l==="y"?Rl:Il,O=l==="y"?Ac:_c,S=n.rects.reference[d]+n.rects.reference[l]-s[l]-n.rects.popper[d],T=s[l]-n.rects.reference[l],w=yT(a),x=w?l==="y"?w.clientHeight||0:w.clientWidth||0:0,k=S/2-T/2,_=f[g],R=x-p[d]-f[O],N=x/2-p[d]/2+k,D=i2(_,N,R),L=l;n.modifiersData[r]=(t={},t[L]=D,t.centerOffset=D-N,t)}}function ECe(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)||Gse(t.elements.popper,i)&&(t.elements.arrow=i))}const wCe={name:"arrow",enabled:!0,phase:"main",fn:SCe,effect:ECe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Rv(e){return e.split("-")[1]}var TCe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function xCe(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:_v(n*i)/i||0,y:_v(r*i)/i||0}}function zG(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,s=e.offsets,o=e.position,l=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=s.x,g=p===void 0?0:p,O=s.y,S=O===void 0?0:O,T=typeof d=="function"?d({x:g,y:S}):{x:g,y:S};g=T.x,S=T.y;var w=s.hasOwnProperty("x"),x=s.hasOwnProperty("y"),k=Il,_=Rl,R=window;if(u){var N=yT(n),D="clientHeight",L="clientWidth";if(N===Cu(n)&&(N=xm(n),dp(N).position!=="static"&&o==="absolute"&&(D="scrollHeight",L="scrollWidth")),N=N,i===Rl||(i===Il||i===_c)&&a===aw){_=Ac;var j=f&&N===R&&R.visualViewport?R.visualViewport.height:N[D];S-=j-r.height,S*=l?1:-1}if(i===Il||(i===Rl||i===Ac)&&a===aw){k=_c;var B=f&&N===R&&R.visualViewport?R.visualViewport.width:N[L];g-=B-r.width,g*=l?1:-1}}var V=Object.assign({position:o},u&&TCe),W=d===!0?xCe({x:g,y:S},Cu(n)):{x:g,y:S};if(g=W.x,S=W.y,l){var re;return Object.assign({},V,(re={},re[_]=x?"0":"",re[k]=w?"0":"",re.transform=(R.devicePixelRatio||1)<=1?"translate("+g+"px, "+S+"px)":"translate3d("+g+"px, "+S+"px, 0)",re))}return Object.assign({},V,(t={},t[_]=x?S+"px":"",t[k]=w?g+"px":"",t.transform="",t))}function kCe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,s=a===void 0?!0:a,o=n.roundOffsets,l=o===void 0?!0:o,u={placement:Lf(t.placement),variation:Rv(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,zG(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,zG(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 ACe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:kCe,data:{}};var cA={passive:!0};function _Ce(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,s=r.resize,o=s===void 0?!0:s,l=Cu(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(d){d.addEventListener("scroll",n.update,cA)}),o&&l.addEventListener("resize",n.update,cA),function(){a&&u.forEach(function(d){d.removeEventListener("scroll",n.update,cA)}),o&&l.removeEventListener("resize",n.update,cA)}}const CCe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:_Ce,data:{}};var RCe={left:"right",right:"left",bottom:"top",top:"bottom"};function W4(e){return e.replace(/left|right|bottom|top/g,function(t){return RCe[t]})}var ICe={start:"end",end:"start"};function jG(e){return e.replace(/start|end/g,function(t){return ICe[t]})}function _$(e){var t=Cu(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function C$(e){return Cv(xm(e)).left+_$(e).scrollLeft}function NCe(e,t){var n=Cu(e),r=xm(e),i=n.visualViewport,a=r.clientWidth,s=r.clientHeight,o=0,l=0;if(i){a=i.width,s=i.height;var u=qse();(u||!u&&t==="fixed")&&(o=i.offsetLeft,l=i.offsetTop)}return{width:a,height:s,x:o+C$(e),y:l}}function DCe(e){var t,n=xm(e),r=_$(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=t1(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=t1(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),o=-r.scrollLeft+C$(e),l=-r.scrollTop;return dp(i||n).direction==="rtl"&&(o+=t1(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:s,x:o,y:l}}function R$(e){var t=dp(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Kse(e){return["html","body","#document"].indexOf(zf(e))>=0?e.ownerDocument.body:vc(e)&&R$(e)?e:Kse(V5(e))}function a2(e,t){var n;t===void 0&&(t=[]);var r=Kse(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=Cu(r),s=i?[a].concat(a.visualViewport||[],R$(r)?r:[]):r,o=t.concat(s);return i?o:o.concat(a2(V5(s)))}function VP(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function PCe(e,t){var n=Cv(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 HG(e,t,n){return t===Wse?VP(NCe(e,n)):m1(t)?PCe(t,n):VP(DCe(xm(e)))}function LCe(e){var t=a2(V5(e)),n=["absolute","fixed"].indexOf(dp(e).position)>=0,r=n&&vc(e)?yT(e):e;return m1(r)?t.filter(function(i){return m1(i)&&Gse(i,r)&&zf(i)!=="body"}):[]}function MCe(e,t,n,r){var i=t==="clippingParents"?LCe(e):[].concat(t),a=[].concat(i,[n]),s=a[0],o=a.reduce(function(l,u){var d=HG(e,u,r);return l.top=t1(d.top,l.top),l.right=uC(d.right,l.right),l.bottom=uC(d.bottom,l.bottom),l.left=t1(d.left,l.left),l},HG(e,s,r));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function Jse(e){var t=e.reference,n=e.element,r=e.placement,i=r?Lf(r):null,a=r?Rv(r):null,s=t.x+t.width/2-n.width/2,o=t.y+t.height/2-n.height/2,l;switch(i){case Rl:l={x:s,y:t.y-n.height};break;case Ac:l={x:s,y:t.y+t.height};break;case _c:l={x:t.x+t.width,y:o};break;case Il:l={x:t.x-n.width,y:o};break;default:l={x:t.x,y:t.y}}var u=i?A$(i):null;if(u!=null){var d=u==="y"?"height":"width";switch(a){case Av:l[u]=l[u]-(t[d]/2-n[d]/2);break;case aw:l[u]=l[u]+(t[d]/2-n[d]/2);break}}return l}function sw(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,s=a===void 0?e.strategy:a,o=n.boundary,l=o===void 0?nCe:o,u=n.rootBoundary,d=u===void 0?Wse:u,f=n.elementContext,p=f===void 0?GS:f,g=n.altBoundary,O=g===void 0?!1:g,S=n.padding,T=S===void 0?0:S,w=Zse(typeof T!="number"?T:Xse(T,bT)),x=p===GS?rCe:GS,k=e.rects.popper,_=e.elements[O?x:p],R=MCe(m1(_)?_:_.contextElement||xm(e.elements.popper),l,d,s),N=Cv(e.elements.reference),D=Jse({reference:N,element:k,strategy:"absolute",placement:i}),L=VP(Object.assign({},k,D)),j=p===GS?L:N,B={top:R.top-j.top+w.top,bottom:j.bottom-R.bottom+w.bottom,left:R.left-j.left+w.left,right:j.right-R.right+w.right},V=e.modifiersData.offset;if(p===GS&&V){var W=V[i];Object.keys(B).forEach(function(re){var ee=[_c,Ac].indexOf(re)>=0?1:-1,q=[Rl,Ac].indexOf(re)>=0?"y":"x";B[re]+=W[q]*ee})}return B}function $Ce(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,s=n.padding,o=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?Vse:l,d=Rv(r),f=d?o?BG:BG.filter(function(O){return Rv(O)===d}):bT,p=f.filter(function(O){return u.indexOf(O)>=0});p.length===0&&(p=f);var g=p.reduce(function(O,S){return O[S]=sw(e,{placement:S,boundary:i,rootBoundary:a,padding:s})[Lf(S)],O},{});return Object.keys(g).sort(function(O,S){return g[O]-g[S]})}function FCe(e){if(Lf(e)===T$)return[];var t=W4(e);return[jG(e),t,jG(t)]}function BCe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,s=n.altAxis,o=s===void 0?!0:s,l=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,g=n.flipVariations,O=g===void 0?!0:g,S=n.allowedAutoPlacements,T=t.options.placement,w=Lf(T),x=w===T,k=l||(x||!O?[W4(T)]:FCe(T)),_=[T].concat(k).reduce(function(ke,$e){return ke.concat(Lf($e)===T$?$Ce(t,{placement:$e,boundary:d,rootBoundary:f,padding:u,flipVariations:O,allowedAutoPlacements:S}):$e)},[]),R=t.rects.reference,N=t.rects.popper,D=new Map,L=!0,j=_[0],B=0;B<_.length;B++){var V=_[B],W=Lf(V),re=Rv(V)===Av,ee=[Rl,Ac].indexOf(W)>=0,q=ee?"width":"height",te=sw(t,{placement:V,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),K=ee?re?_c:Il:re?Ac:Rl;R[q]>N[q]&&(K=W4(K));var G=W4(K),ie=[];if(a&&ie.push(te[W]<=0),o&&ie.push(te[K]<=0,te[G]<=0),ie.every(function(ke){return ke})){j=V,L=!1;break}D.set(V,ie)}if(L)for(var H=O?3:1,Re=function($e){var ae=_.find(function(Je){var We=D.get(Je);if(We)return We.slice(0,$e).every(function(Xe){return Xe})});if(ae)return j=ae,"break"},Se=H;Se>0;Se--){var Z=Re(Se);if(Z==="break")break}t.placement!==j&&(t.modifiersData[r]._skip=!0,t.placement=j,t.reset=!0)}}const UCe={name:"flip",enabled:!0,phase:"main",fn:BCe,requiresIfExists:["offset"],data:{_skip:!1}};function QG(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 WG(e){return[Rl,_c,Ac,Il].some(function(t){return e[t]>=0})}function zCe(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,s=sw(t,{elementContext:"reference"}),o=sw(t,{altBoundary:!0}),l=QG(s,r),u=QG(o,i,a),d=WG(l),f=WG(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const jCe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:zCe};function HCe(e,t,n){var r=Lf(e),i=[Il,Rl].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=a[0],o=a[1];return s=s||0,o=(o||0)*i,[Il,_c].indexOf(r)>=0?{x:o,y:s}:{x:s,y:o}}function QCe(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,s=Vse.reduce(function(d,f){return d[f]=HCe(f,t.rects,a),d},{}),o=s[t.placement],l=o.x,u=o.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}const WCe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:QCe};function VCe(e){var t=e.state,n=e.name;t.modifiersData[n]=Jse({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const qCe={name:"popperOffsets",enabled:!0,phase:"read",fn:VCe,data:{}};function GCe(e){return e==="x"?"y":"x"}function YCe(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,s=n.altAxis,o=s===void 0?!1:s,l=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,g=p===void 0?!0:p,O=n.tetherOffset,S=O===void 0?0:O,T=sw(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:d}),w=Lf(t.placement),x=Rv(t.placement),k=!x,_=A$(w),R=GCe(_),N=t.modifiersData.popperOffsets,D=t.rects.reference,L=t.rects.popper,j=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,B=typeof j=="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),V=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,W={x:0,y:0};if(N){if(a){var re,ee=_==="y"?Rl:Il,q=_==="y"?Ac:_c,te=_==="y"?"height":"width",K=N[_],G=K+T[ee],ie=K-T[q],H=g?-L[te]/2:0,Re=x===Av?D[te]:L[te],Se=x===Av?-L[te]:-D[te],Z=t.elements.arrow,ke=g&&Z?k$(Z):{width:0,height:0},$e=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Yse(),ae=$e[ee],Je=$e[q],We=i2(0,D[te],ke[te]),Xe=k?D[te]/2-H-We-ae-B.mainAxis:Re-We-ae-B.mainAxis,At=k?-D[te]/2+H+We+Je+B.mainAxis:Se+We+Je+B.mainAxis,st=t.elements.arrow&&yT(t.elements.arrow),Lt=st?_==="y"?st.clientTop||0:st.clientLeft||0:0,Ht=(re=V==null?void 0:V[_])!=null?re:0,ft=K+Xe-Ht-Lt,Et=K+At-Ht,Ot=i2(g?uC(G,ft):G,K,g?t1(ie,Et):ie);N[_]=Ot,W[_]=Ot-K}if(o){var zt,de=_==="x"?Rl:Il,_e=_==="x"?Ac:_c,Ne=N[R],et=R==="y"?"height":"width",dt=Ne+T[de],tt=Ne-T[_e],yt=[Rl,Il].indexOf(w)!==-1,tn=(zt=V==null?void 0:V[R])!=null?zt:0,Fe=yt?dt:Ne-D[et]-L[et]-tn+B.altAxis,we=yt?Ne+D[et]+L[et]-tn-B.altAxis:tt,be=g&&yt?vCe(Fe,Ne,we):i2(g?Fe:dt,Ne,g?we:tt);N[R]=be,W[R]=be-Ne}t.modifiersData[r]=W}}const ZCe={name:"preventOverflow",enabled:!0,phase:"main",fn:YCe,requiresIfExists:["offset"]};function XCe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function KCe(e){return e===Cu(e)||!vc(e)?_$(e):XCe(e)}function JCe(e){var t=e.getBoundingClientRect(),n=_v(t.width)/e.offsetWidth||1,r=_v(t.height)/e.offsetHeight||1;return n!==1||r!==1}function e3e(e,t,n){n===void 0&&(n=!1);var r=vc(t),i=vc(t)&&JCe(t),a=xm(t),s=Cv(e,i,n),o={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((zf(t)!=="body"||R$(a))&&(o=KCe(t)),vc(t)?(l=Cv(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=C$(a))),{x:s.left+o.scrollLeft-l.x,y:s.top+o.scrollTop-l.y,width:s.width,height:s.height}}function t3e(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function i(a){n.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(o){if(!n.has(o)){var l=t.get(o);l&&i(l)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||i(a)}),r}function n3e(e){var t=t3e(e);return hCe.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function r3e(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function i3e(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 VG={placement:"bottom",modifiers:[],strategy:"absolute"};function qG(){for(var e=arguments.length,t=new Array(e),n=0;n{a||o(l3e(i)||document.body)},[i,a]),Zo(()=>{if(s&&!a)return nw(n,s),()=>{nw(n,null)}},[n,s,a]),a){if(M.isValidElement(r)){const u={ref:l};return M.cloneElement(r,u)}return I.jsx(M.Fragment,{children:r})}return I.jsx(M.Fragment,{children:s&&aO.createPortal(r,s)})});function u3e(e){return hn("MuiPopper",e)}pn("MuiPopper",["root"]);const c3e=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],d3e=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function f3e(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 qP(e){return typeof e=="function"?e():e}function h3e(e){return e.nodeType!==void 0}const p3e=e=>{const{classes:t}=e;return mn({root:["root"]},u3e,t)},m3e={},g3e=M.forwardRef(function(t,n){var r;const{anchorEl:i,children:a,direction:s,disablePortal:o,modifiers:l,open:u,placement:d,popperOptions:f,popperRef:p,slotProps:g={},slots:O={},TransitionProps:S}=t,T=kt(t,c3e),w=M.useRef(null),x=Sr(w,n),k=M.useRef(null),_=Sr(k,p),R=M.useRef(_);Zo(()=>{R.current=_},[_]),M.useImperativeHandle(p,()=>k.current,[]);const N=f3e(d,s),[D,L]=M.useState(N),[j,B]=M.useState(qP(i));M.useEffect(()=>{k.current&&k.current.forceUpdate()}),M.useEffect(()=>{i&&B(qP(i))},[i]),Zo(()=>{if(!j||!u)return;const q=G=>{L(G.placement)};let te=[{name:"preventOverflow",options:{altBoundary:o}},{name:"flip",options:{altBoundary:o}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:G})=>{q(G)}}];l!=null&&(te=te.concat(l)),f&&f.modifiers!=null&&(te=te.concat(f.modifiers));const K=o3e(j,w.current,Q({placement:N},f,{modifiers:te}));return R.current(K),()=>{K.destroy(),R.current(null)}},[j,o,l,u,f,N]);const V={placement:D};S!==null&&(V.TransitionProps=S);const W=p3e(t),re=(r=O.root)!=null?r:"div",ee=zo({elementType:re,externalSlotProps:g.root,externalForwardedProps:T,additionalProps:{role:"tooltip",ref:x},ownerState:t,className:W.root});return I.jsx(re,Q({},ee,{children:typeof a=="function"?a(V):a}))}),b3e=M.forwardRef(function(t,n){const{anchorEl:r,children:i,container:a,direction:s="ltr",disablePortal:o=!1,keepMounted:l=!1,modifiers:u,open:d,placement:f="bottom",popperOptions:p=m3e,popperRef:g,style:O,transition:S=!1,slotProps:T={},slots:w={}}=t,x=kt(t,d3e),[k,_]=M.useState(!0),R=()=>{_(!1)},N=()=>{_(!0)};if(!l&&!d&&(!S||k))return null;let D;if(a)D=a;else if(r){const B=qP(r);D=B&&h3e(B)?da(B).body:da(null).body}const L=!d&&l&&(!S||k)?"none":void 0,j=S?{in:d,onEnter:R,onExited:N}:void 0;return I.jsx(eoe,{disablePortal:o,container:D,children:I.jsx(g3e,Q({anchorEl:r,direction:s,disablePortal:o,modifiers:u,ref:n,open:S?!k:d,placement:f,popperOptions:p,popperRef:g,slotProps:T,slots:w},x,{style:Q({position:"fixed",top:0,left:0,display:L},O),TransitionProps:j,children:i}))})}),y3e=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],v3e=ct(b3e,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),q5=M.forwardRef(function(t,n){var r;const i=Hse(),a=bn({props:t,name:"MuiPopper"}),{anchorEl:s,component:o,components:l,componentsProps:u,container:d,disablePortal:f,keepMounted:p,modifiers:g,open:O,placement:S,popperOptions:T,popperRef:w,transition:x,slots:k,slotProps:_}=a,R=kt(a,y3e),N=(r=k==null?void 0:k.root)!=null?r:l==null?void 0:l.Root,D=Q({anchorEl:s,container:d,disablePortal:f,keepMounted:p,modifiers:g,open:O,placement:S,popperOptions:T,popperRef:w,transition:x},R);return I.jsx(v3e,Q({as:o,direction:i==null?void 0:i.direction,slots:{root:N},slotProps:_??u},D,{ref:n}))});function O3e(e){return hn("MuiListSubheader",e)}pn("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const S3e=["className","color","component","disableGutters","disableSticky","inset"],E3e=e=>{const{classes:t,color:n,disableGutters:r,inset:i,disableSticky:a}=e,s={root:["root",n!=="default"&&`color${lt(n)}`,!r&&"gutters",i&&"inset",!a&&"sticky"]};return mn(s,O3e,t)},w3e=ct("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${lt(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>Q({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})),toe=M.forwardRef(function(t,n){const r=bn({props:t,name:"MuiListSubheader"}),{className:i,color:a="default",component:s="li",disableGutters:o=!1,disableSticky:l=!1,inset:u=!1}=r,d=kt(r,S3e),f=Q({},r,{color:a,component:s,disableGutters:o,disableSticky:l,inset:u}),p=E3e(f);return I.jsx(w3e,Q({as:s,className:xt(p.root,i),ref:n,ownerState:f},d))});toe.muiSkipListHighlight=!0;const T3e=Nd(I.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 x3e(e){return hn("MuiChip",e)}const zr=pn("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"]),k3e=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],A3e=e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:a,onDelete:s,clickable:o,variant:l}=e,u={root:["root",l,n&&"disabled",`size${lt(r)}`,`color${lt(i)}`,o&&"clickable",o&&`clickableColor${lt(i)}`,s&&"deletable",s&&`deletableColor${lt(i)}`,`${l}${lt(i)}`],label:["label",`label${lt(r)}`],avatar:["avatar",`avatar${lt(r)}`,`avatarColor${lt(i)}`],icon:["icon",`icon${lt(r)}`,`iconColor${lt(a)}`],deleteIcon:["deleteIcon",`deleteIcon${lt(r)}`,`deleteIconColor${lt(i)}`,`deleteIcon${lt(l)}Color${lt(i)}`]};return mn(u,x3e,t)},_3e=ct("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:a,onDelete:s,size:o,variant:l}=n;return[{[`& .${zr.avatar}`]:t.avatar},{[`& .${zr.avatar}`]:t[`avatar${lt(o)}`]},{[`& .${zr.avatar}`]:t[`avatarColor${lt(r)}`]},{[`& .${zr.icon}`]:t.icon},{[`& .${zr.icon}`]:t[`icon${lt(o)}`]},{[`& .${zr.icon}`]:t[`iconColor${lt(i)}`]},{[`& .${zr.deleteIcon}`]:t.deleteIcon},{[`& .${zr.deleteIcon}`]:t[`deleteIcon${lt(o)}`]},{[`& .${zr.deleteIcon}`]:t[`deleteIconColor${lt(r)}`]},{[`& .${zr.deleteIcon}`]:t[`deleteIcon${lt(l)}Color${lt(r)}`]},t.root,t[`size${lt(o)}`],t[`color${lt(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${lt(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${lt(r)}`],t[l],t[`${l}${lt(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return Q({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",[`&.${zr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${zr.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${zr.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${zr.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${zr.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${zr.icon}`]:Q({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&Q({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${zr.deleteIcon}`]:Q({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Vn(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)`:Vn(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)`:Vn(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&&{[`&.${zr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Vn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${zr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>Q({},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}))`:Vn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${zr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Vn(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, &.${zr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>Q({},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]}`,[`&.${zr.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${zr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${zr.avatar}`]:{marginLeft:4},[`& .${zr.avatarSmall}`]:{marginLeft:2},[`& .${zr.icon}`]:{marginLeft:4},[`& .${zr.iconSmall}`]:{marginLeft:2},[`& .${zr.deleteIcon}`]:{marginRight:5},[`& .${zr.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)`:Vn(e.palette[t.color].main,.7)}`,[`&.${zr.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Vn(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${zr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Vn(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${zr.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Vn(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),C3e=ct("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${lt(r)}`]]}})(({ownerState:e})=>Q({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 GG(e){return e.key==="Backspace"||e.key==="Delete"}const noe=M.forwardRef(function(t,n){const r=bn({props:t,name:"MuiChip"}),{avatar:i,className:a,clickable:s,color:o="default",component:l,deleteIcon:u,disabled:d=!1,icon:f,label:p,onClick:g,onDelete:O,onKeyDown:S,onKeyUp:T,size:w="medium",variant:x="filled",tabIndex:k,skipFocusWhenDisabled:_=!1}=r,R=kt(r,k3e),N=M.useRef(null),D=Sr(N,n),L=ie=>{ie.stopPropagation(),O&&O(ie)},j=ie=>{ie.currentTarget===ie.target&&GG(ie)&&ie.preventDefault(),S&&S(ie)},B=ie=>{ie.currentTarget===ie.target&&(O&&GG(ie)?O(ie):ie.key==="Escape"&&N.current&&N.current.blur()),T&&T(ie)},V=s!==!1&&g?!0:s,W=V||O?Uf:l||"div",re=Q({},r,{component:W,disabled:d,size:w,color:o,iconColor:M.isValidElement(f)&&f.props.color||o,onDelete:!!O,clickable:V,variant:x}),ee=A3e(re),q=W===Uf?Q({component:l||"div",focusVisibleClassName:ee.focusVisible},O&&{disableRipple:!0}):{};let te=null;O&&(te=u&&M.isValidElement(u)?M.cloneElement(u,{className:xt(u.props.className,ee.deleteIcon),onClick:L}):I.jsx(T3e,{className:xt(ee.deleteIcon),onClick:L}));let K=null;i&&M.isValidElement(i)&&(K=M.cloneElement(i,{className:xt(ee.avatar,i.props.className)}));let G=null;return f&&M.isValidElement(f)&&(G=M.cloneElement(f,{className:xt(ee.icon,f.props.className)})),I.jsxs(_3e,Q({as:W,className:xt(ee.root,a),disabled:V&&d?!0:void 0,onClick:g,onKeyDown:j,onKeyUp:B,ref:D,tabIndex:_&&d?-1:k,ownerState:re},q,R,{children:[K||G,I.jsx(C3e,{className:xt(ee.label),ownerState:re,children:p}),te]}))}),R3e=["onChange","maxRows","minRows","style","value"];function dA(e){return parseInt(e,10)||0}const I3e={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function N3e(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const roe=M.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:a=1,style:s,value:o}=t,l=kt(t,R3e),{current:u}=M.useRef(o!=null),d=M.useRef(null),f=Sr(n,d),p=M.useRef(null),g=M.useRef(null),O=M.useCallback(()=>{const w=d.current,k=Bf(w).getComputedStyle(w);if(k.width==="0px")return{outerHeightStyle:0,overflowing:!1};const _=g.current;_.style.width=k.width,_.value=w.value||t.placeholder||"x",_.value.slice(-1)===` -`&&(_.value+=" ");const R=k.boxSizing,N=dA(k.paddingBottom)+dA(k.paddingTop),D=dA(k.borderBottomWidth)+dA(k.borderTopWidth),L=_.scrollHeight;_.value="x";const j=_.scrollHeight;let B=L;a&&(B=Math.max(Number(a)*j,B)),i&&(B=Math.min(Number(i)*j,B)),B=Math.max(B,j);const V=B+(R==="border-box"?N+D:0),W=Math.abs(B-L)<=1;return{outerHeightStyle:V,overflowing:W}},[i,a,t.placeholder]),S=M.useCallback(()=>{const w=O();if(N3e(w))return;const x=w.outerHeightStyle,k=d.current;p.current!==x&&(p.current=x,k.style.height=`${x}px`),k.style.overflow=w.overflowing?"hidden":""},[O]);Zo(()=>{const w=()=>{S()};let x;const k=z5(w),_=d.current,R=Bf(_);R.addEventListener("resize",k);let N;return typeof ResizeObserver<"u"&&(N=new ResizeObserver(w),N.observe(_)),()=>{k.clear(),cancelAnimationFrame(x),R.removeEventListener("resize",k),N&&N.disconnect()}},[O,S]),Zo(()=>{S()});const T=w=>{u||S(),r&&r(w)};return I.jsxs(M.Fragment,{children:[I.jsx("textarea",Q({value:o,onChange:T,ref:f,rows:a,style:s},l)),I.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:g,tabIndex:-1,style:Q({},I3e.shadow,s,{paddingTop:0,paddingBottom:0})})]})});function km({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 G5=M.createContext(void 0);function Qf(){return M.useContext(G5)}function ioe(e){return I.jsx(wke,Q({},e,{defaultTheme:b$,themeId:Tv}))}function YG(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function cC(e,t=!1){return e&&(YG(e.value)&&e.value!==""||t&&YG(e.defaultValue)&&e.defaultValue!=="")}function D3e(e){return e.startAdornment}function P3e(e){return hn("MuiInputBase",e)}const cu=pn("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),L3e=["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"],Y5=(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${lt(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Z5=(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]},M3e=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:a,focused:s,formControl:o,fullWidth:l,hiddenLabel:u,multiline:d,readOnly:f,size:p,startAdornment:g,type:O}=e,S={root:["root",`color${lt(n)}`,r&&"disabled",i&&"error",l&&"fullWidth",s&&"focused",o&&"formControl",p&&p!=="medium"&&`size${lt(p)}`,d&&"multiline",g&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",O==="search"&&"inputTypeSearch",d&&"inputMultiline",p==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",g&&"inputAdornedStart",a&&"inputAdornedEnd",f&&"readOnly"]};return mn(S,P3e,t)},X5=ct("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Y5})(({theme:e,ownerState:t})=>Q({},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",[`&.${cu.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Q({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),K5=ct("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Z5})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=Q({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),i={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return Q({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] + .${cu.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${cu.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"})}),$3e=I.jsx(ioe,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),F3e=M.forwardRef(function(t,n){var r;const i=bn({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:s,autoFocus:o,className:l,components:u={},componentsProps:d={},defaultValue:f,disabled:p,disableInjectingGlobalStyles:g,endAdornment:O,fullWidth:S=!1,id:T,inputComponent:w="input",inputProps:x={},inputRef:k,maxRows:_,minRows:R,multiline:N=!1,name:D,onBlur:L,onChange:j,onClick:B,onFocus:V,onKeyDown:W,onKeyUp:re,placeholder:ee,readOnly:q,renderSuffix:te,rows:K,slotProps:G={},slots:ie={},startAdornment:H,type:Re="text",value:Se}=i,Z=kt(i,L3e),ke=x.value!=null?x.value:Se,{current:$e}=M.useRef(ke!=null),ae=M.useRef(),Je=M.useCallback(be=>{},[]),We=Sr(ae,k,x.ref,Je),[Xe,At]=M.useState(!1),st=Qf(),Lt=km({props:i,muiFormControl:st,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Lt.focused=st?st.focused:Xe,M.useEffect(()=>{!st&&p&&Xe&&(At(!1),L&&L())},[st,p,Xe,L]);const Ht=st&&st.onFilled,ft=st&&st.onEmpty,Et=M.useCallback(be=>{cC(be)?Ht&&Ht():ft&&ft()},[Ht,ft]);Zo(()=>{$e&&Et({value:ke})},[ke,Et,$e]);const Ot=be=>{if(Lt.disabled){be.stopPropagation();return}V&&V(be),x.onFocus&&x.onFocus(be),st&&st.onFocus?st.onFocus(be):At(!0)},zt=be=>{L&&L(be),x.onBlur&&x.onBlur(be),st&&st.onBlur?st.onBlur(be):At(!1)},de=(be,...xe)=>{if(!$e){const Ue=be.target||ae.current;if(Ue==null)throw new Error(cp(1));Et({value:Ue.value})}x.onChange&&x.onChange(be,...xe),j&&j(be,...xe)};M.useEffect(()=>{Et(ae.current)},[]);const _e=be=>{ae.current&&be.currentTarget===be.target&&ae.current.focus(),B&&B(be)};let Ne=w,et=x;N&&Ne==="input"&&(K?et=Q({type:void 0,minRows:K,maxRows:K},et):et=Q({type:void 0,maxRows:_,minRows:R},et),Ne=roe);const dt=be=>{Et(be.animationName==="mui-auto-fill-cancel"?ae.current:{value:"x"})};M.useEffect(()=>{st&&st.setAdornedStart(!!H)},[st,H]);const tt=Q({},i,{color:Lt.color||"primary",disabled:Lt.disabled,endAdornment:O,error:Lt.error,focused:Lt.focused,formControl:st,fullWidth:S,hiddenLabel:Lt.hiddenLabel,multiline:N,size:Lt.size,startAdornment:H,type:Re}),yt=M3e(tt),tn=ie.root||u.Root||X5,Fe=G.root||d.root||{},we=ie.input||u.Input||K5;return et=Q({},et,(r=G.input)!=null?r:d.input),I.jsxs(M.Fragment,{children:[!g&&$3e,I.jsxs(tn,Q({},Fe,!Pf(tn)&&{ownerState:Q({},tt,Fe.ownerState)},{ref:n,onClick:_e},Z,{className:xt(yt.root,Fe.className,l,q&&"MuiInputBase-readOnly"),children:[H,I.jsx(G5.Provider,{value:null,children:I.jsx(we,Q({ownerState:tt,"aria-invalid":Lt.error,"aria-describedby":a,autoComplete:s,autoFocus:o,defaultValue:f,disabled:Lt.disabled,id:T,onAnimationStart:dt,name:D,placeholder:ee,readOnly:q,required:Lt.required,rows:K,value:ke,onKeyDown:W,onKeyUp:re,type:Re},et,!Pf(we)&&{as:Ne,ownerState:Q({},tt,et.ownerState)},{ref:We,className:xt(yt.input,et.className,q&&"MuiInputBase-readOnly"),onBlur:zt,onChange:de,onFocus:Ot}))}),O,te?te(Q({},Lt,{startAdornment:H})):null]}))]})}),I$=F3e;function B3e(e){return hn("MuiInput",e)}const E0=Q({},cu,pn("MuiInput",["root","underline","input"]));function U3e(e){return hn("MuiOutlinedInput",e)}const lf=Q({},cu,pn("MuiOutlinedInput",["root","notchedOutline","input"]));function z3e(e){return hn("MuiFilledInput",e)}const du=Q({},cu,pn("MuiFilledInput",["root","underline","input"])),aoe=Nd(I.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function j3e(e){return hn("MuiAutocomplete",e)}const dr=pn("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"]);var ZG,XG;const H3e=["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"],Q3e=["ref"],W3e=["key"],V3e=["key"],q3e=e=>{const{classes:t,disablePortal:n,expanded:r,focused:i,fullWidth:a,hasClearIcon:s,hasPopupIcon:o,inputFocused:l,popupOpen:u,size:d}=e,f={root:["root",r&&"expanded",i&&"focused",a&&"fullWidth",s&&"hasClearIcon",o&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${lt(d)}`],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 mn(f,j3e,t)},G3e=ct("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:i,hasPopupIcon:a,inputFocused:s,size:o}=n;return[{[`& .${dr.tag}`]:t.tag},{[`& .${dr.tag}`]:t[`tagSize${lt(o)}`]},{[`& .${dr.inputRoot}`]:t.inputRoot},{[`& .${dr.input}`]:t.input},{[`& .${dr.input}`]:s&&t.inputFocused},t.root,r&&t.fullWidth,a&&t.hasPopupIcon,i&&t.hasClearIcon]}})({[`&.${dr.focused} .${dr.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${dr.clearIndicator}`]:{visibility:"visible"}},[`& .${dr.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${dr.inputRoot}`]:{[`.${dr.hasPopupIcon}&, .${dr.hasClearIcon}&`]:{paddingRight:30},[`.${dr.hasPopupIcon}.${dr.hasClearIcon}&`]:{paddingRight:56},[`& .${dr.input}`]:{width:0,minWidth:30}},[`& .${E0.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${E0.root}.${cu.sizeSmall}`]:{[`& .${E0.input}`]:{padding:"2px 4px 3px 0"}},[`& .${lf.root}`]:{padding:9,[`.${dr.hasPopupIcon}&, .${dr.hasClearIcon}&`]:{paddingRight:39},[`.${dr.hasPopupIcon}.${dr.hasClearIcon}&`]:{paddingRight:65},[`& .${dr.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${dr.endAdornment}`]:{right:9}},[`& .${lf.root}.${cu.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${dr.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${du.root}`]:{paddingTop:19,paddingLeft:8,[`.${dr.hasPopupIcon}&, .${dr.hasClearIcon}&`]:{paddingRight:39},[`.${dr.hasPopupIcon}.${dr.hasClearIcon}&`]:{paddingRight:65},[`& .${du.input}`]:{padding:"7px 4px"},[`& .${dr.endAdornment}`]:{right:9}},[`& .${du.root}.${cu.sizeSmall}`]:{paddingBottom:1,[`& .${du.input}`]:{padding:"2.5px 4px"}},[`& .${cu.hiddenLabel}`]:{paddingTop:8},[`& .${du.root}.${cu.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${dr.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${du.root}.${cu.hiddenLabel}.${cu.sizeSmall}`]:{[`& .${dr.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${dr.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${dr.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${dr.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${dr.inputRoot}`]:{flexWrap:"wrap"}}}]}),Y3e=ct("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),Z3e=ct(So,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),X3e=ct(So,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>Q({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),K3e=ct(q5,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${dr.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]})),J3e=ct(Hs,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>Q({},e.typography.body1,{overflow:"auto"})),e5e=ct("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),t5e=ct("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),n5e=ct("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",[`& .${dr.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"},[`&.${dr.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"},[`&.${dr.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})`:Vn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${dr.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Vn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${dr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Vn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),r5e=ct(toe,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),i5e=ct("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${dr.option}`]:{paddingLeft:24}}),a5e=M.forwardRef(function(t,n){var r,i,a,s;const o=bn({props:t,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:u=!1,autoSelect:d=!1,blurOnSelect:f=!1,ChipProps:p,className:g,clearIcon:O=ZG||(ZG=I.jsx(M_e,{fontSize:"small"})),clearOnBlur:S=!o.freeSolo,clearOnEscape:T=!1,clearText:w="Clear",closeText:x="Close",componentsProps:k={},defaultValue:_=o.multiple?[]:null,disableClearable:R=!1,disableCloseOnSelect:N=!1,disabled:D=!1,disabledItemsFocusable:L=!1,disableListWrap:j=!1,disablePortal:B=!1,filterSelectedOptions:V=!1,forcePopupIcon:W="auto",freeSolo:re=!1,fullWidth:ee=!1,getLimitTagsText:q=Ye=>`+${Ye}`,getOptionLabel:te,groupBy:K,handleHomeEndKeys:G=!o.freeSolo,includeInputInList:ie=!1,limitTags:H=-1,ListboxComponent:Re="ul",ListboxProps:Se,loading:Z=!1,loadingText:ke="Loading…",multiple:$e=!1,noOptionsText:ae="No options",openOnFocus:Je=!1,openText:We="Open",PaperComponent:Xe=Hs,PopperComponent:At=q5,popupIcon:st=XG||(XG=I.jsx(aoe,{})),readOnly:Lt=!1,renderGroup:Ht,renderInput:ft,renderOption:Et,renderTags:Ot,selectOnFocus:zt=!o.freeSolo,size:de="medium",slotProps:_e={}}=o,Ne=kt(o,H3e),{getRootProps:et,getInputProps:dt,getInputLabelProps:tt,getPopupIndicatorProps:yt,getClearProps:tn,getTagProps:Fe,getListboxProps:we,getOptionProps:be,value:xe,dirty:Ue,expanded:It,id:Gt,popupOpen:rt,focused:Vt,focusedTag:Qt,anchorEl:jt,setAnchorEl:En,inputValue:br,groupedOptions:Mr}=Z_e(Q({},o,{componentName:"Autocomplete"})),Rr=!R&&!D&&Ue&&!Lt,Yr=(!re||W===!0)&&W!==!1,{onMouseDown:Li}=dt(),{ref:bi}=Se??{},Qi=we(),{ref:yi}=Qi,ds=kt(Qi,Q3e),Wi=Sr(yi,bi),Vi=te||(Ye=>{var wt;return(wt=Ye.label)!=null?wt:Ye}),Ur=Q({},o,{disablePortal:B,expanded:It,focused:Vt,fullWidth:ee,getOptionLabel:Vi,hasClearIcon:Rr,hasPopupIcon:Yr,inputFocused:Qt===-1,popupOpen:rt,size:de}),ir=q3e(Ur);let Zr;if($e&&xe.length>0){const Ye=wt=>Q({className:ir.tag,disabled:D},Fe(wt));Ot?Zr=Ot(xe,Ye,Ur):Zr=xe.map((wt,Rt)=>{const Yt=Ye({index:Rt}),{key:Qn}=Yt,Yn=kt(Yt,W3e);return I.jsx(noe,Q({label:Vi(wt),size:de},Yn,p),Qn)})}if(H>-1&&Array.isArray(Zr)){const Ye=Zr.length-H;!Vt&&Ye>0&&(Zr=Zr.splice(0,H),Zr.push(I.jsx("span",{className:ir.tag,children:q(Ye)},Zr.length)))}const it=Ht||(Ye=>I.jsxs("li",{children:[I.jsx(r5e,{className:ir.groupLabel,ownerState:Ur,component:"div",children:Ye.group}),I.jsx(i5e,{className:ir.groupUl,ownerState:Ur,children:Ye.children})]},Ye.key)),he=Et||((Ye,wt)=>{const{key:Rt}=Ye,Yt=kt(Ye,V3e);return I.jsx("li",Q({},Yt,{children:Vi(wt)}),Rt)}),Le=(Ye,wt)=>{const Rt=be({option:Ye,index:wt});return he(Q({},Rt,{className:ir.option}),Ye,{selected:Rt["aria-selected"],index:wt,inputValue:br},Ur)},qe=(r=_e.clearIndicator)!=null?r:k.clearIndicator,gt=(i=_e.paper)!=null?i:k.paper,qt=(a=_e.popper)!=null?a:k.popper,Ie=(s=_e.popupIndicator)!=null?s:k.popupIndicator,Te=Ye=>I.jsx(K3e,Q({as:At,disablePortal:B,style:{width:jt?jt.clientWidth:null},ownerState:Ur,role:"presentation",anchorEl:jt,open:rt},qt,{className:xt(ir.popper,qt==null?void 0:qt.className),children:I.jsx(J3e,Q({ownerState:Ur,as:Xe},gt,{className:xt(ir.paper,gt==null?void 0:gt.className),children:Ye}))}));let ot=null;return Mr.length>0?ot=Te(I.jsx(n5e,Q({as:Re,className:ir.listbox,ownerState:Ur},ds,Se,{ref:Wi,children:Mr.map((Ye,wt)=>K?it({key:Ye.key,group:Ye.group,children:Ye.options.map((Rt,Yt)=>Le(Rt,Ye.index+Yt))}):Le(Ye,wt))}))):Z&&Mr.length===0?ot=Te(I.jsx(e5e,{className:ir.loading,ownerState:Ur,children:ke})):Mr.length===0&&!re&&!Z&&(ot=Te(I.jsx(t5e,{className:ir.noOptions,ownerState:Ur,role:"presentation",onMouseDown:Ye=>{Ye.preventDefault()},children:ae}))),I.jsxs(M.Fragment,{children:[I.jsx(G3e,Q({ref:n,className:xt(ir.root,g),ownerState:Ur},et(Ne),{children:ft({id:Gt,disabled:D,fullWidth:!0,size:de==="small"?"small":void 0,InputLabelProps:tt(),InputProps:Q({ref:En,className:ir.inputRoot,startAdornment:Zr,onClick:Ye=>{Ye.target===Ye.currentTarget&&Li(Ye)}},(Rr||Yr)&&{endAdornment:I.jsxs(Y3e,{className:ir.endAdornment,ownerState:Ur,children:[Rr?I.jsx(Z3e,Q({},tn(),{"aria-label":w,title:w,ownerState:Ur},qe,{className:xt(ir.clearIndicator,qe==null?void 0:qe.className),children:O})):null,Yr?I.jsx(X3e,Q({},yt(),{disabled:D,"aria-label":rt?x:We,title:rt?x:We,ownerState:Ur},Ie,{className:xt(ir.popupIndicator,Ie==null?void 0:Ie.className),children:st})):null]})}),inputProps:Q({className:ir.input,disabled:D,readOnly:Lt},dt())})})),jt?ot:null]})}),s5e=Nd(I.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 o5e(e){return hn("MuiAvatar",e)}const l5e=pn("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]),u5e=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],c5e=e=>{const{classes:t,variant:n,colorDefault:r}=e;return mn({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},o5e,t)},d5e=ct("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:Q({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:Q({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),f5e=ct("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),h5e=ct(s5e,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function p5e({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,a]=M.useState(!1);return M.useEffect(()=>{if(!n&&!r)return;a(!1);let s=!0;const o=new Image;return o.onload=()=>{s&&a("loaded")},o.onerror=()=>{s&&a("error")},o.crossOrigin=e,o.referrerPolicy=t,o.src=n,r&&(o.srcset=r),()=>{s=!1}},[e,t,n,r]),i}const n1=M.forwardRef(function(t,n){const r=bn({props:t,name:"MuiAvatar"}),{alt:i,children:a,className:s,component:o="div",slots:l={},slotProps:u={},imgProps:d,sizes:f,src:p,srcSet:g,variant:O="circular"}=r,S=kt(r,u5e);let T=null;const w=p5e(Q({},d,{src:p,srcSet:g})),x=p||g,k=x&&w!=="error",_=Q({},r,{colorDefault:!k,component:o,variant:O}),R=c5e(_),[N,D]=g_e("img",{className:R.img,elementType:f5e,externalForwardedProps:{slots:l,slotProps:{img:Q({},d,u.img)}},additionalProps:{alt:i,src:p,srcSet:g,sizes:f},ownerState:_});return k?T=I.jsx(N,Q({},D)):a||a===0?T=a:x&&i?T=i[0]:T=I.jsx(h5e,{ownerState:_,className:R.fallback}),I.jsx(d5e,Q({as:o,ownerState:_,className:xt(R.root,s),ref:n},S,{children:T}))});function m5e(e){return hn("MuiAvatarGroup",e)}const g5e=pn("MuiAvatarGroup",["root","avatar"]),b5e=["children","className","component","componentsProps","max","renderSurplus","slotProps","spacing","total","variant"],KG={small:-16,medium:null},y5e=e=>{const{classes:t}=e;return mn({root:["root"],avatar:["avatar"]},m5e,t)},v5e=ct("div",{name:"MuiAvatarGroup",slot:"Root",overridesResolver:(e,t)=>Q({[`& .${g5e.avatar}`]:t.avatar},t.root)})(({theme:e,ownerState:t})=>{const n=t.spacing&&KG[t.spacing]!==void 0?KG[t.spacing]:-t.spacing;return{[`& .${l5e.root}`]:{border:`2px solid ${(e.vars||e).palette.background.default}`,boxSizing:"content-box",marginLeft:n??-8,"&:last-child":{marginLeft:0}},display:"flex",flexDirection:"row-reverse"}}),O5e=M.forwardRef(function(t,n){var r;const i=bn({props:t,name:"MuiAvatarGroup"}),{children:a,className:s,component:o="div",componentsProps:l={},max:u=5,renderSurplus:d,slotProps:f={},spacing:p="medium",total:g,variant:O="circular"}=i,S=kt(i,b5e);let T=u<2?2:u;const w=Q({},i,{max:u,spacing:p,component:o,variant:O}),x=y5e(w),k=M.Children.toArray(a).filter(j=>M.isValidElement(j)),_=g||k.length;_===T&&(T+=1),T=Math.min(_+1,T);const R=Math.min(k.length,T-1),N=Math.max(_-T,_-R,0),D=d?d(N):`+${N}`,L=(r=f.additionalAvatar)!=null?r:l.additionalAvatar;return I.jsxs(v5e,Q({as:o,ownerState:w,className:xt(x.root,s),ref:n},S,{children:[N?I.jsx(n1,Q({variant:O},L,{className:xt(x.avatar,L==null?void 0:L.className),children:D})):null,k.slice(0,R).reverse().map(j=>M.cloneElement(j,{className:xt(j.props.className,x.avatar),variant:j.props.variant||O}))]}))}),S5e=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],E5e={entering:{opacity:1},entered:{opacity:1}},dC=M.forwardRef(function(t,n){const r=Hf(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:o,easing:l,in:u,onEnter:d,onEntered:f,onEntering:p,onExit:g,onExited:O,onExiting:S,style:T,timeout:w=i,TransitionComponent:x=Lc}=t,k=kt(t,S5e),_=M.useRef(null),R=Sr(_,o.ref,n),N=ee=>q=>{if(ee){const te=_.current;q===void 0?ee(te):ee(te,q)}},D=N(p),L=N((ee,q)=>{O$(ee);const te=dm({style:T,timeout:w,easing:l},{mode:"enter"});ee.style.webkitTransition=r.transitions.create("opacity",te),ee.style.transition=r.transitions.create("opacity",te),d&&d(ee,q)}),j=N(f),B=N(S),V=N(ee=>{const q=dm({style:T,timeout:w,easing:l},{mode:"exit"});ee.style.webkitTransition=r.transitions.create("opacity",q),ee.style.transition=r.transitions.create("opacity",q),g&&g(ee)}),W=N(O),re=ee=>{a&&a(_.current,ee)};return I.jsx(x,Q({appear:s,in:u,nodeRef:_,onEnter:L,onEntered:j,onEntering:D,onExit:V,onExited:W,onExiting:B,addEndListener:re,timeout:w},k,{children:(ee,q)=>M.cloneElement(o,Q({style:Q({opacity:0,visibility:ee==="exited"&&!u?"hidden":void 0},E5e[ee],T,o.props.style),ref:R},q))}))});function w5e(e){return hn("MuiBackdrop",e)}pn("MuiBackdrop",["root","invisible"]);const T5e=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],x5e=e=>{const{classes:t,invisible:n}=e;return mn({root:["root",n&&"invisible"]},w5e,t)},k5e=ct("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>Q({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"})),hO=M.forwardRef(function(t,n){var r,i,a;const s=bn({props:t,name:"MuiBackdrop"}),{children:o,className:l,component:u="div",components:d={},componentsProps:f={},invisible:p=!1,open:g,slotProps:O={},slots:S={},TransitionComponent:T=dC,transitionDuration:w}=s,x=kt(s,T5e),k=Q({},s,{component:u,invisible:p}),_=x5e(k),R=(r=O.root)!=null?r:f.root;return I.jsx(T,Q({in:g,timeout:w},x,{children:I.jsx(k5e,Q({"aria-hidden":!0},R,{as:(i=(a=S.root)!=null?a:d.Root)!=null?i:u,className:xt(_.root,l,R==null?void 0:R.className),ownerState:Q({},k,R==null?void 0:R.ownerState),classes:_,ref:n,children:o}))}))}),A5e=pn("MuiBox",["root"]),_5e=g$(),ta=Cke({themeId:Tv,defaultTheme:_5e,defaultClassName:A5e.root,generateClassName:l$.generate});function C5e(e){return hn("MuiButton",e)}const fA=pn("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","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),R5e=M.createContext({}),I5e=M.createContext(void 0),N5e=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],D5e=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,classes:s}=e,o={root:["root",a,`${a}${lt(t)}`,`size${lt(i)}`,`${a}Size${lt(i)}`,`color${lt(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${lt(i)}`],endIcon:["icon","endIcon",`iconSize${lt(i)}`]},l=mn(o,C5e,s);return Q({},s,l)},soe=e=>Q({},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}}),P5e=ct(Uf,{shouldForwardProp:e=>Qs(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${lt(n.color)}`],t[`size${lt(n.size)}`],t[`${n.variant}Size${lt(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const i=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return Q({},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":Q({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Vn(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})`:Vn(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})`:Vn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":Q({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${fA.focusVisible}`]:Q({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${fA.disabled}`]:Q({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 ${Vn(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"},[`&.${fA.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${fA.disabled}`]:{boxShadow:"none"}}),L5e=ct("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${lt(n.size)}`]]}})(({ownerState:e})=>Q({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},soe(e))),M5e=ct("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${lt(n.size)}`]]}})(({ownerState:e})=>Q({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},soe(e))),go=M.forwardRef(function(t,n){const r=M.useContext(R5e),i=M.useContext(I5e),a=kv(r,t),s=bn({props:a,name:"MuiButton"}),{children:o,color:l="primary",component:u="button",className:d,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:g=!1,endIcon:O,focusVisibleClassName:S,fullWidth:T=!1,size:w="medium",startIcon:x,type:k,variant:_="text"}=s,R=kt(s,N5e),N=Q({},s,{color:l,component:u,disabled:f,disableElevation:p,disableFocusRipple:g,fullWidth:T,size:w,type:k,variant:_}),D=D5e(N),L=x&&I.jsx(L5e,{className:D.startIcon,ownerState:N,children:x}),j=O&&I.jsx(M5e,{className:D.endIcon,ownerState:N,children:O}),B=i||"";return I.jsxs(P5e,Q({ownerState:N,className:xt(r.className,D.root,d,B),component:u,disabled:f,focusRipple:!g,focusVisibleClassName:xt(D.focusVisible,S),ref:n,type:k},R,{classes:D,children:[L,o,j]}))});function $5e(e){return hn("MuiCard",e)}pn("MuiCard",["root"]);const F5e=["className","raised"],B5e=e=>{const{classes:t}=e;return mn({root:["root"]},$5e,t)},U5e=ct(Hs,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),ooe=M.forwardRef(function(t,n){const r=bn({props:t,name:"MuiCard"}),{className:i,raised:a=!1}=r,s=kt(r,F5e),o=Q({},r,{raised:a}),l=B5e(o);return I.jsx(U5e,Q({className:xt(l.root,i),elevation:a?8:void 0,ref:n,ownerState:o},s))});function z5e(e){return hn("MuiCardActionArea",e)}const MN=pn("MuiCardActionArea",["root","focusVisible","focusHighlight"]),j5e=["children","className","focusVisibleClassName"],H5e=e=>{const{classes:t}=e;return mn({root:["root"],focusHighlight:["focusHighlight"]},z5e,t)},Q5e=ct(Uf,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${MN.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${MN.focusVisible} .${MN.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}})),W5e=ct("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})})),V5e=M.forwardRef(function(t,n){const r=bn({props:t,name:"MuiCardActionArea"}),{children:i,className:a,focusVisibleClassName:s}=r,o=kt(r,j5e),l=r,u=H5e(l);return I.jsxs(Q5e,Q({className:xt(u.root,a),focusVisibleClassName:xt(s,u.focusVisible),ref:n,ownerState:l},o,{children:[i,I.jsx(W5e,{className:u.focusHighlight,ownerState:l})]}))});function q5e(e){return hn("MuiCardContent",e)}pn("MuiCardContent",["root"]);const G5e=["className","component"],Y5e=e=>{const{classes:t}=e;return mn({root:["root"]},q5e,t)},Z5e=ct("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),X5e=M.forwardRef(function(t,n){const r=bn({props:t,name:"MuiCardContent"}),{className:i,component:a="div"}=r,s=kt(r,G5e),o=Q({},r,{component:a}),l=Y5e(o);return I.jsx(Z5e,Q({as:a,className:xt(l.root,i),ownerState:o,ref:n},s))});function K5e(e){return hn("PrivateSwitchBase",e)}pn("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const J5e=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],eRe=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,a={root:["root",n&&"checked",r&&"disabled",i&&`edge${lt(i)}`],input:["input"]};return mn(a,K5e,t)},tRe=ct(Uf)(({ownerState:e})=>Q({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),nRe=ct("input",{shouldForwardProp:Qs})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),N$=M.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:a,className:s,defaultChecked:o,disabled:l,disableFocusRipple:u=!1,edge:d=!1,icon:f,id:p,inputProps:g,inputRef:O,name:S,onBlur:T,onChange:w,onFocus:x,readOnly:k,required:_=!1,tabIndex:R,type:N,value:D}=t,L=kt(t,J5e),[j,B]=Df({controlled:i,default:!!o,name:"SwitchBase",state:"checked"}),V=Qf(),W=ie=>{x&&x(ie),V&&V.onFocus&&V.onFocus(ie)},re=ie=>{T&&T(ie),V&&V.onBlur&&V.onBlur(ie)},ee=ie=>{if(ie.nativeEvent.defaultPrevented)return;const H=ie.target.checked;B(H),w&&w(ie,H)};let q=l;V&&typeof q>"u"&&(q=V.disabled);const te=N==="checkbox"||N==="radio",K=Q({},t,{checked:j,disabled:q,disableFocusRipple:u,edge:d}),G=eRe(K);return I.jsxs(tRe,Q({component:"span",className:xt(G.root,s),centerRipple:!0,focusRipple:!u,disabled:q,tabIndex:null,role:void 0,onFocus:W,onBlur:re,ownerState:K,ref:n},L,{children:[I.jsx(nRe,Q({autoFocus:r,checked:i,defaultChecked:o,className:G.input,disabled:q,id:te?p:void 0,name:S,onChange:ee,readOnly:k,ref:O,required:_,ownerState:K,tabIndex:R,type:N},N==="checkbox"&&D===void 0?{}:{value:D},g)),j?a:f]}))}),rRe=Nd(I.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"),iRe=Nd(I.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"),aRe=Nd(I.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 sRe(e){return hn("MuiCheckbox",e)}const $N=pn("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),oRe=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],lRe=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,a={root:["root",n&&"indeterminate",`color${lt(r)}`,`size${lt(i)}`]},s=mn(a,sRe,t);return Q({},t,s)},uRe=ct(N$,{shouldForwardProp:e=>Qs(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${lt(n.size)}`],n.color!=="default"&&t[`color${lt(n.color)}`]]}})(({theme:e,ownerState:t})=>Q({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})`:Vn(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${$N.checked}, &.${$N.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${$N.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),cRe=I.jsx(iRe,{}),dRe=I.jsx(rRe,{}),fRe=I.jsx(aRe,{}),J5=M.forwardRef(function(t,n){var r,i;const a=bn({props:t,name:"MuiCheckbox"}),{checkedIcon:s=cRe,color:o="primary",icon:l=dRe,indeterminate:u=!1,indeterminateIcon:d=fRe,inputProps:f,size:p="medium",className:g}=a,O=kt(a,oRe),S=u?d:l,T=u?d:s,w=Q({},a,{color:o,indeterminate:u,size:p}),x=lRe(w);return I.jsx(uRe,Q({type:"checkbox",inputProps:Q({"data-indeterminate":u},f),icon:M.cloneElement(S,{fontSize:(r=S.props.fontSize)!=null?r:p}),checkedIcon:M.cloneElement(T,{fontSize:(i=T.props.fontSize)!=null?i:p}),ownerState:w,ref:n,className:xt(x.root,g)},O,{classes:x}))});function hRe(e){return hn("MuiCircularProgress",e)}pn("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const pRe=["className","color","disableShrink","size","style","thickness","value","variant"];let eR=e=>e,JG,eY,tY,nY;const i0=44,mRe=oO(JG||(JG=eR` +`),tc.rippleVisible,u_e,$P,({theme:e})=>e.transitions.easing.easeInOut,tc.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,tc.child,tc.childLeaving,c_e,$P,({theme:e})=>e.transitions.easing.easeInOut,tc.childPulsate,d_e,({theme:e})=>e.transitions.easing.easeInOut),p_e=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:s}=r,o=Tt(r,o_e),[l,u]=M.useState([]),d=M.useRef(0),f=M.useRef(null);M.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const p=M.useRef(!1),g=Mg(),O=M.useRef(null),S=M.useRef(null),T=M.useCallback(_=>{const{pulsate:R,rippleX:N,rippleY:P,rippleSize:L,cb:j}=_;u(B=>[...B,I.jsx(h_e,{classes:{ripple:wt(a.ripple,tc.ripple),rippleVisible:wt(a.rippleVisible,tc.rippleVisible),ripplePulsate:wt(a.ripplePulsate,tc.ripplePulsate),child:wt(a.child,tc.child),childLeaving:wt(a.childLeaving,tc.childLeaving),childPulsate:wt(a.childPulsate,tc.childPulsate)},timeout:$P,pulsate:R,rippleX:N,rippleY:P,rippleSize:L},d.current)]),d.current+=1,f.current=j},[a]),w=M.useCallback((_={},R={},N=()=>{})=>{const{pulsate:P=!1,center:L=i||R.pulsate,fakeElement:j=!1}=R;if((_==null?void 0:_.type)==="mousedown"&&p.current){p.current=!1;return}(_==null?void 0:_.type)==="touchstart"&&(p.current=!0);const B=j?null:S.current,V=B?B.getBoundingClientRect():{width:0,height:0,left:0,top:0};let W,re,ee;if(L||_===void 0||_.clientX===0&&_.clientY===0||!_.clientX&&!_.touches)W=Math.round(V.width/2),re=Math.round(V.height/2);else{const{clientX:q,clientY:ne}=_.touches&&_.touches.length>0?_.touches[0]:_;W=Math.round(q-V.left),re=Math.round(ne-V.top)}if(L)ee=Math.sqrt((2*V.width**2+V.height**2)/3),ee%2===0&&(ee+=1);else{const q=Math.max(Math.abs((B?B.clientWidth:0)-W),W)*2+2,ne=Math.max(Math.abs((B?B.clientHeight:0)-re),re)*2+2;ee=Math.sqrt(q**2+ne**2)}_!=null&&_.touches?O.current===null&&(O.current=()=>{T({pulsate:P,rippleX:W,rippleY:re,rippleSize:ee,cb:N})},g.start(l_e,()=>{O.current&&(O.current(),O.current=null)})):T({pulsate:P,rippleX:W,rippleY:re,rippleSize:ee,cb:N})},[i,T,g]),x=M.useCallback(()=>{w({},{pulsate:!0})},[w]),k=M.useCallback((_,R)=>{if(g.clear(),(_==null?void 0:_.type)==="touchend"&&O.current){O.current(),O.current=null,g.start(0,()=>{k(_,R)});return}O.current=null,u(N=>N.length>0?N.slice(1):N),f.current=R},[g]);return M.useImperativeHandle(n,()=>({pulsate:x,start:w,stop:k}),[x,w,k]),I.jsx(f_e,Q({className:wt(tc.root,a.root,s),ref:S},o,{children:I.jsx(c$,{component:null,exit:!0,children:l})}))});function m_e(e){return dn("MuiButtonBase",e)}const g_e=hn("MuiButtonBase",["root","disabled","focusVisible"]),b_e=["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"],y_e=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,s=pn({root:["root",t&&"disabled",n&&"focusVisible"]},m_e,i);return n&&r&&(s.root+=` ${r}`),s},v_e=lt("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"},[`&.${g_e.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Mf=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:a=!1,children:s,className:o,component:l="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:g="a",onBlur:O,onClick:S,onContextMenu:T,onDragLeave:w,onFocus:x,onFocusVisible:k,onKeyDown:_,onKeyUp:R,onMouseDown:N,onMouseLeave:P,onMouseUp:L,onTouchEnd:j,onTouchMove:B,onTouchStart:V,tabIndex:W=0,TouchRippleProps:re,touchRippleRef:ee,type:q}=r,ne=Tt(r,b_e),K=M.useRef(null),G=M.useRef(null),ie=vr(G,ee),{isFocusVisibleRef:H,onFocus:Re,onBlur:Se,ref:Z}=z5(),[ke,$e]=M.useState(!1);u&&ke&&$e(!1),M.useImperativeHandle(i,()=>({focusVisible:()=>{$e(!0),K.current.focus()}}),[]);const[ae,Xe]=M.useState(!1);M.useEffect(()=>{Xe(!0)},[]);const We=ae&&!d&&!u;M.useEffect(()=>{ke&&p&&!d&&ae&&G.current.pulsate()},[d,p,ke,ae]);function Ye(xe,Ue,Ct=f){return Qs(qt=>(Ue&&Ue(qt),!Ct&&G.current&&G.current[xe](qt),!0))}const xt=Ye("start",N),it=Ye("stop",T),Pt=Ye("stop",w),jt=Ye("stop",L),ct=Ye("stop",xe=>{ke&&xe.preventDefault(),P&&P(xe)}),Ot=Ye("start",V),yt=Ye("stop",j),Ut=Ye("stop",B),de=Ye("stop",xe=>{Se(xe),H.current===!1&&$e(!1),O&&O(xe)},!1),_e=Qs(xe=>{K.current||(K.current=xe.currentTarget),Re(xe),H.current===!0&&($e(!0),k&&k(xe)),x&&x(xe)}),Ne=()=>{const xe=K.current;return l&&l!=="button"&&!(xe.tagName==="A"&&xe.href)},Ke=M.useRef(!1),ut=Qs(xe=>{p&&!Ke.current&&ke&&G.current&&xe.key===" "&&(Ke.current=!0,G.current.stop(xe,()=>{G.current.start(xe)})),xe.target===xe.currentTarget&&Ne()&&xe.key===" "&&xe.preventDefault(),_&&_(xe),xe.target===xe.currentTarget&&Ne()&&xe.key==="Enter"&&!u&&(xe.preventDefault(),S&&S(xe))}),Je=Qs(xe=>{p&&xe.key===" "&&G.current&&ke&&!xe.defaultPrevented&&(Ke.current=!1,G.current.stop(xe,()=>{G.current.pulsate(xe)})),R&&R(xe),S&&xe.target===xe.currentTarget&&Ne()&&xe.key===" "&&!xe.defaultPrevented&&S(xe)});let gt=l;gt==="button"&&(ne.href||ne.to)&&(gt=g);const Jt={};gt==="button"?(Jt.type=q===void 0?"button":q,Jt.disabled=u):(!ne.href&&!ne.to&&(Jt.role="button"),u&&(Jt["aria-disabled"]=u));const Fe=vr(n,Z,K),we=Q({},r,{centerRipple:a,component:l,disabled:u,disableRipple:d,disableTouchRipple:f,focusRipple:p,tabIndex:W,focusVisible:ke}),be=y_e(we);return I.jsxs(v_e,Q({as:gt,className:wt(be.root,o),ownerState:we,onBlur:de,onClick:S,onContextMenu:it,onFocus:_e,onKeyDown:ut,onKeyUp:Je,onMouseDown:xt,onMouseLeave:ct,onMouseUp:jt,onDragLeave:Pt,onTouchEnd:yt,onTouchMove:Ut,onTouchStart:Ot,ref:Fe,tabIndex:u?-1:W,type:q},Jt,ne,{children:[s,We?I.jsx(p_e,Q({ref:ie,center:a},re)):null]}))});function O_e(e){return dn("MuiIconButton",e)}const S_e=hn("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),E_e=["edge","children","className","color","disabled","disableFocusRipple","size"],w_e=e=>{const{classes:t,disabled:n,color:r,edge:i,size:a}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${st(r)}`,i&&`edge${st(i)}`,`size${st(a)}`]};return pn(s,O_e,t)},T_e=lt(Mf,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${st(n.color)}`],n.edge&&t[`edge${st(n.edge)}`],t[`size${st(n.size)}`]]}})(({theme:e,ownerState:t})=>Q({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})`:Qn(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 Q({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&Q({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":Q({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qn(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)},{[`&.${S_e.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Oo=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiIconButton"}),{edge:i=!1,children:a,className:s,color:o="default",disabled:l=!1,disableFocusRipple:u=!1,size:d="medium"}=r,f=Tt(r,E_e),p=Q({},r,{edge:i,color:o,disabled:l,disableFocusRipple:u,size:d}),g=w_e(p);return I.jsx(T_e,Q({className:wt(g.root,s),centerRipple:!0,focusRipple:!u,disabled:l,ref:n},f,{ownerState:p,children:a}))}),x_e=Id(I.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 k_e(e){return dn("MuiTypography",e)}hn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const A_e=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],__e=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:a,classes:s}=e,o={root:["root",a,e.align!=="inherit"&&`align${st(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return pn(o,k_e,s)},C_e=lt("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${st(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>Q({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})),kG={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},R_e={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},I_e=e=>R_e[e]||e,wr=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiTypography"}),i=I_e(r.color),a=gT(Q({},r,{color:i})),{align:s="inherit",className:o,component:l,gutterBottom:u=!1,noWrap:d=!1,paragraph:f=!1,variant:p="body1",variantMapping:g=kG}=a,O=Tt(a,A_e),S=Q({},a,{align:s,color:i,className:o,component:l,gutterBottom:u,noWrap:d,paragraph:f,variant:p,variantMapping:g}),T=l||(f?"p":g[p]||kG[p])||"span",w=__e(S);return I.jsx(C_e,Q({as:T,ref:n,ownerState:S,className:wt(w.root,o)},O))});function N_e(e){return dn("MuiAppBar",e)}hn("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const D_e=["className","color","enableColorOnDark","position"],P_e=e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${st(t)}`,`position${st(n)}`]};return pn(i,N_e,r)},lA=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,L_e=lt(Gs,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${st(n.position)}`],t[`color${st(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return Q({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&&Q({},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"&&Q({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&Q({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:lA(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:lA(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:lA(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:lA(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},!["inherit","transparent"].includes(t.color)&&{backgroundColor:"var(--AppBar-background)"},{color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),h$=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiAppBar"}),{className:i,color:a="primary",enableColorOnDark:s=!1,position:o="fixed"}=r,l=Tt(r,D_e),u=Q({},r,{color:a,position:o,enableColorOnDark:s}),d=P_e(u);return I.jsx(L_e,Q({square:!0,component:"header",ownerState:u,elevation:4,className:wt(d.root,i,o==="fixed"&&"mui-fixed"),ref:n},l))});function AG(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function M_e(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:i="any",stringify:a,trim:s=!1}=e;return(o,{inputValue:l,getOptionLabel:u})=>{let d=s?l.trim():l;n&&(d=d.toLowerCase()),t&&(d=AG(d));const f=d?o.filter(p=>{let g=(a||u)(p);return n&&(g=g.toLowerCase()),t&&(g=AG(g)),i==="start"?g.indexOf(d)===0:g.indexOf(d)>-1}):o;return typeof r=="number"?f.slice(0,r):f}}function uA(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 B_e(e){const{unstable_isActiveElementInListbox:t=F_e,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:s=!1,clearOnBlur:o=!e.freeSolo,clearOnEscape:l=!1,componentName:u="useAutocomplete",defaultValue:d=e.multiple?[]:null,disableClearable:f=!1,disableCloseOnSelect:p=!1,disabled:g,disabledItemsFocusable:O=!1,disableListWrap:S=!1,filterOptions:T=$_e,filterSelectedOptions:w=!1,freeSolo:x=!1,getOptionDisabled:k,getOptionKey:_,getOptionLabel:R=Ie=>{var Te;return(Te=Ie.label)!=null?Te:Ie},groupBy:N,handleHomeEndKeys:P=!e.freeSolo,id:L,includeInputInList:j=!1,inputValue:B,isOptionEqualToValue:V=(Ie,Te)=>Ie===Te,multiple:W=!1,onChange:re,onClose:ee,onHighlightChange:q,onInputChange:ne,onOpen:K,open:G,openOnFocus:ie=!1,options:H,readOnly:Re=!1,selectOnFocus:Se=!e.freeSolo,value:Z}=e,ke=eO(L);let $e=R;$e=Ie=>{const Te=R(Ie);return typeof Te!="string"?String(Te):Te};const ae=M.useRef(!1),Xe=M.useRef(!0),We=M.useRef(null),Ye=M.useRef(null),[xt,it]=M.useState(null),[Pt,jt]=M.useState(-1),ct=i?0:-1,Ot=M.useRef(ct),[yt,Ut]=Cf({controlled:Z,default:d,name:u}),[de,_e]=Cf({controlled:B,default:"",name:u,state:"inputValue"}),[Ne,Ke]=M.useState(!1),ut=M.useCallback((Ie,Te)=>{if(!(W?yt.length!(w&&(W?yt:[yt]).some(Te=>Te!==null&&V(Ie,Te)))),{inputValue:we&&Jt?"":de,getOptionLabel:$e}):[],Ue=rAe({filteredOptions:xe,value:yt,inputValue:de});M.useEffect(()=>{const Ie=yt!==Ue.value;Ne&&!Ie||x&&!Ie||ut(null,yt)},[yt,ut,Ne,Ue.value,x]);const Ct=Je&&xe.length>0&&!Re,qt=Qs(Ie=>{Ie===-1?We.current.focus():xt.querySelector(`[data-tag-index="${Ie}"]`).focus()});M.useEffect(()=>{W&&Pt>yt.length-1&&(jt(-1),qt(-1))},[yt,W,Pt,qt]);function tt(Ie,Te){if(!Ye.current||Ie<0||Ie>=xe.length)return-1;let at=Ie;for(;;){const qe=Ye.current.querySelector(`[data-option-index="${at}"]`),St=O?!1:!qe||qe.disabled||qe.getAttribute("aria-disabled")==="true";if(qe&&qe.hasAttribute("tabindex")&&!St)return at;if(Te==="next"?at=(at+1)%xe.length:at=(at-1+xe.length)%xe.length,at===Ie)return-1}}const Wt=Qs(({event:Ie,index:Te,reason:at="auto"})=>{if(Ot.current=Te,Te===-1?We.current.removeAttribute("aria-activedescendant"):We.current.setAttribute("aria-activedescendant",`${ke}-option-${Te}`),q&&q(Ie,Te===-1?null:xe[Te],at),!Ye.current)return;const qe=Ye.current.querySelector(`[role="option"].${n}-focused`);qe&&(qe.classList.remove(`${n}-focused`),qe.classList.remove(`${n}-focusVisible`));let St=Ye.current;if(Ye.current.getAttribute("role")!=="listbox"&&(St=Ye.current.parentElement.querySelector('[role="listbox"]')),!St)return;if(Te===-1){St.scrollTop=0;return}const _t=Ye.current.querySelector(`[data-option-index="${Te}"]`);if(_t&&(_t.classList.add(`${n}-focused`),at==="keyboard"&&_t.classList.add(`${n}-focusVisible`),St.scrollHeight>St.clientHeight&&at!=="mouse"&&at!=="touch")){const Gt=_t,jn=St.clientHeight+St.scrollTop,qn=Gt.offsetTop+Gt.offsetHeight;qn>jn?St.scrollTop=qn-St.clientHeight:Gt.offsetTop-Gt.offsetHeight*(N?1.3:0){if(!be)return;const _t=tt((()=>{const Gt=xe.length-1;if(Te==="reset")return ct;if(Te==="start")return 0;if(Te==="end")return Gt;const jn=Ot.current+Te;return jn<0?jn===-1&&j?-1:S&&Ot.current!==-1||Math.abs(Te)>1?0:Gt:jn>Gt?jn===Gt+1&&j?-1:S||Math.abs(Te)>1?Gt:0:jn})(),at);if(Wt({index:_t,reason:qe,event:Ie}),r&&Te!=="reset")if(_t===-1)We.current.value=de;else{const Gt=$e(xe[_t]);We.current.value=Gt,Gt.toLowerCase().indexOf(de.toLowerCase())===0&&de.length>0&&We.current.setSelectionRange(de.length,Gt.length)}}),zt=()=>{const Ie=(Te,at)=>{const qe=Te?$e(Te):"",St=at?$e(at):"";return qe===St};if(Ot.current!==-1&&Ue.filteredOptions&&Ue.filteredOptions.length!==xe.length&&Ue.inputValue===de&&(W?yt.length===Ue.value.length&&Ue.value.every((Te,at)=>$e(yt[at])===$e(Te)):Ie(Ue.value,yt))){const Te=Ue.filteredOptions[Ot.current];if(Te)return uA(xe,at=>$e(at)===$e(Te))}return-1},Sn=M.useCallback(()=>{if(!be)return;const Ie=zt();if(Ie!==-1){Ot.current=Ie;return}const Te=W?yt[0]:yt;if(xe.length===0||Te==null){Ht({diff:"reset"});return}if(Ye.current){if(Te!=null){const at=xe[Ot.current];if(W&&at&&uA(yt,St=>V(at,St))!==-1)return;const qe=uA(xe,St=>V(St,Te));qe===-1?Ht({diff:"reset"}):Wt({index:qe});return}if(Ot.current>=xe.length-1){Wt({index:xe.length-1});return}Wt({index:Ot.current})}},[xe.length,W?!1:yt,w,Ht,Wt,be,de,W]),pr=Qs(Ie=>{iw(Ye,Ie),Ie&&Sn()});M.useEffect(()=>{Sn()},[Sn]);const Mr=Ie=>{Je||(gt(!0),Fe(!0),K&&K(Ie))},Rr=(Ie,Te)=>{Je&&(gt(!1),ee&&ee(Ie,Te))},Yr=(Ie,Te,at,qe)=>{if(W){if(yt.length===Te.length&&yt.every((St,_t)=>St===Te[_t]))return}else if(yt===Te)return;re&&re(Ie,Te,at,qe),Ut(Te)},Ni=M.useRef(!1),hi=(Ie,Te,at="selectOption",qe="options")=>{let St=at,_t=Te;if(W){_t=Array.isArray(yt)?yt.slice():[];const Gt=uA(_t,jn=>V(Te,jn));Gt===-1?_t.push(Te):qe!=="freeSolo"&&(_t.splice(Gt,1),St="removeOption")}ut(Ie,_t),Yr(Ie,_t,St,{option:Te}),!p&&(!Ie||!Ie.ctrlKey&&!Ie.metaKey)&&Rr(Ie,St),(s===!0||s==="touch"&&Ni.current||s==="mouse"&&!Ni.current)&&We.current.blur()};function ji(Ie,Te){if(Ie===-1)return-1;let at=Ie;for(;;){if(Te==="next"&&at===yt.length||Te==="previous"&&at===-1)return-1;const qe=xt.querySelector(`[data-tag-index="${at}"]`);if(!qe||!qe.hasAttribute("tabindex")||qe.disabled||qe.getAttribute("aria-disabled")==="true")at+=Te==="next"?1:-1;else return at}}const pi=(Ie,Te)=>{if(!W)return;de===""&&Rr(Ie,"toggleInput");let at=Pt;Pt===-1?de===""&&Te==="previous"&&(at=yt.length-1):(at+=Te==="next"?1:-1,at<0&&(at=0),at===yt.length&&(at=-1)),at=ji(at,Te),jt(at),qt(at)},ds=Ie=>{ae.current=!0,_e(""),ne&&ne(Ie,"","clear"),Yr(Ie,W?[]:null,"clear")},Hi=Ie=>Te=>{if(Ie.onKeyDown&&Ie.onKeyDown(Te),!Te.defaultMuiPrevented&&(Pt!==-1&&["ArrowLeft","ArrowRight"].indexOf(Te.key)===-1&&(jt(-1),qt(-1)),Te.which!==229))switch(Te.key){case"Home":be&&P&&(Te.preventDefault(),Ht({diff:"start",direction:"next",reason:"keyboard",event:Te}));break;case"End":be&&P&&(Te.preventDefault(),Ht({diff:"end",direction:"previous",reason:"keyboard",event:Te}));break;case"PageUp":Te.preventDefault(),Ht({diff:-_G,direction:"previous",reason:"keyboard",event:Te}),Mr(Te);break;case"PageDown":Te.preventDefault(),Ht({diff:_G,direction:"next",reason:"keyboard",event:Te}),Mr(Te);break;case"ArrowDown":Te.preventDefault(),Ht({diff:1,direction:"next",reason:"keyboard",event:Te}),Mr(Te);break;case"ArrowUp":Te.preventDefault(),Ht({diff:-1,direction:"previous",reason:"keyboard",event:Te}),Mr(Te);break;case"ArrowLeft":pi(Te,"previous");break;case"ArrowRight":pi(Te,"next");break;case"Enter":if(Ot.current!==-1&&be){const at=xe[Ot.current],qe=k?k(at):!1;if(Te.preventDefault(),qe)return;hi(Te,at,"selectOption"),r&&We.current.setSelectionRange(We.current.value.length,We.current.value.length)}else x&&de!==""&&we===!1&&(W&&Te.preventDefault(),hi(Te,de,"createOption","freeSolo"));break;case"Escape":be?(Te.preventDefault(),Te.stopPropagation(),Rr(Te,"escape")):l&&(de!==""||W&&yt.length>0)&&(Te.preventDefault(),Te.stopPropagation(),ds(Te));break;case"Backspace":if(W&&!Re&&de===""&&yt.length>0){const at=Pt===-1?yt.length-1:Pt,qe=yt.slice();qe.splice(at,1),Yr(Te,qe,"removeOption",{option:yt[at]})}break;case"Delete":if(W&&!Re&&de===""&&yt.length>0&&Pt!==-1){const at=Pt,qe=yt.slice();qe.splice(at,1),Yr(Te,qe,"removeOption",{option:yt[at]})}break}},Ks=Ie=>{Ke(!0),ie&&!ae.current&&Mr(Ie)},Qi=Ie=>{if(t(Ye)){We.current.focus();return}Ke(!1),Xe.current=!0,ae.current=!1,a&&Ot.current!==-1&&be?hi(Ie,xe[Ot.current],"blur"):a&&x&&de!==""?hi(Ie,de,"blur","freeSolo"):o&&ut(Ie,yt),Rr(Ie,"blur")},Ur=Ie=>{const Te=Ie.target.value;de!==Te&&(_e(Te),Fe(!1),ne&&ne(Ie,Te,"input")),Te===""?!f&&!W&&Yr(Ie,null,"clear"):Mr(Ie)},nr=Ie=>{const Te=Number(Ie.currentTarget.getAttribute("data-option-index"));Ot.current!==Te&&Wt({event:Ie,index:Te,reason:"mouse"})},Zr=Ie=>{Wt({event:Ie,index:Number(Ie.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Ni.current=!0},ze=Ie=>{const Te=Number(Ie.currentTarget.getAttribute("data-option-index"));hi(Ie,xe[Te],"selectOption"),Ni.current=!1},nt=Ie=>Te=>{const at=yt.slice();at.splice(Ie,1),Yr(Te,at,"removeOption",{option:yt[Ie]})},le=Ie=>{Je?Rr(Ie,"toggleInput"):Mr(Ie)},he=Ie=>{Ie.currentTarget.contains(Ie.target)&&Ie.target.getAttribute("id")!==ke&&Ie.preventDefault()},Le=Ie=>{Ie.currentTarget.contains(Ie.target)&&(We.current.focus(),Se&&Xe.current&&We.current.selectionEnd-We.current.selectionStart===0&&We.current.select(),Xe.current=!1)},Ve=Ie=>{!g&&(de===""||!Je)&&le(Ie)};let pt=x&&de.length>0;pt=pt||(W?yt.length>0:yt!==null);let Vt=xe;return N&&(Vt=xe.reduce((Ie,Te,at)=>{const qe=N(Te);return Ie.length>0&&Ie[Ie.length-1].group===qe?Ie[Ie.length-1].options.push(Te):Ie.push({key:at,index:at,group:qe,options:[Te]}),Ie},[])),g&&Ne&&Qi(),{getRootProps:(Ie={})=>Q({"aria-owns":Ct?`${ke}-listbox`:null},Ie,{onKeyDown:Hi(Ie),onMouseDown:he,onClick:Le}),getInputLabelProps:()=>({id:`${ke}-label`,htmlFor:ke}),getInputProps:()=>({id:ke,value:de,onBlur:Qi,onFocus:Ks,onChange:Ur,onMouseDown:Ve,"aria-activedescendant":be?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ct?`${ke}-listbox`:void 0,"aria-expanded":Ct,autoComplete:"off",ref:We,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:g}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:ds}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:le}),getTagProps:({index:Ie})=>Q({key:Ie,"data-tag-index":Ie,tabIndex:-1},!Re&&{onDelete:nt(Ie)}),getListboxProps:()=>({role:"listbox",id:`${ke}-listbox`,"aria-labelledby":`${ke}-label`,ref:pr,onMouseDown:Ie=>{Ie.preventDefault()}}),getOptionProps:({index:Ie,option:Te})=>{var at;const qe=(W?yt:[yt]).some(_t=>_t!=null&&V(Te,_t)),St=k?k(Te):!1;return{key:(at=_==null?void 0:_(Te))!=null?at:$e(Te),tabIndex:-1,role:"option",id:`${ke}-option-${Ie}`,onMouseMove:nr,onClick:ze,onTouchStart:Zr,"data-option-index":Ie,"aria-disabled":St,"aria-selected":qe}},id:ke,inputValue:de,value:yt,dirty:pt,expanded:be&&xt,popupOpen:be,focused:Ne||Pt!==-1,anchorEl:xt,setAnchorEl:it,focusedTag:Pt,groupedOptions:Vt}}var p$={};Object.defineProperty(p$,"__esModule",{value:!0});var Pse=p$.default=void 0,U_e=j_e(M),z_e=Ise;function Lse(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Lse=function(r){return r?n:t})(e)}function j_e(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Lse(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function H_e(e){return Object.keys(e).length===0}function Q_e(e=null){const t=U_e.useContext(z_e.ThemeContext);return!t||H_e(t)?e:t}Pse=p$.default=Q_e;var Cl="top",Ac="bottom",_c="right",Rl="left",m$="auto",vT=[Cl,Ac,_c,Rl],vv="start",ow="end",W_e="clippingParents",Mse="viewport",ZS="popper",V_e="reference",CG=vT.reduce(function(e,t){return e.concat([t+"-"+vv,t+"-"+ow])},[]),$se=[].concat(vT,[m$]).reduce(function(e,t){return e.concat([t,t+"-"+vv,t+"-"+ow])},[]),q_e="beforeRead",G_e="read",Y_e="afterRead",Z_e="beforeMain",X_e="main",K_e="afterMain",J_e="beforeWrite",e3e="write",t3e="afterWrite",n3e=[q_e,G_e,Y_e,Z_e,X_e,K_e,J_e,e3e,t3e];function $f(e){return e?(e.nodeName||"").toLowerCase():null}function ku(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function y1(e){var t=ku(e).Element;return e instanceof t||e instanceof Element}function yc(e){var t=ku(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function g$(e){if(typeof ShadowRoot>"u")return!1;var t=ku(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function r3e(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},a=t.elements[n];!yc(a)||!$f(a)||(Object.assign(a.style,r),Object.keys(i).forEach(function(s){var o=i[s];o===!1?a.removeAttribute(s):a.setAttribute(s,o===!0?"":o)}))})}function i3e(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],a=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),o=s.reduce(function(l,u){return l[u]="",l},{});!yc(i)||!$f(i)||(Object.assign(i.style,o),Object.keys(a).forEach(function(l){i.removeAttribute(l)}))})}}const a3e={name:"applyStyles",enabled:!0,phase:"write",fn:r3e,effect:i3e,requires:["computeStyles"]};function If(e){return e.split("-")[0]}var i1=Math.max,u3=Math.min,Ov=Math.round;function FP(){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 Fse(){return!/^((?!chrome|android).)*safari/i.test(FP())}function Sv(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&yc(e)&&(i=e.offsetWidth>0&&Ov(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Ov(r.height)/e.offsetHeight||1);var s=y1(e)?ku(e):window,o=s.visualViewport,l=!Fse()&&n,u=(r.left+(l&&o?o.offsetLeft:0))/i,d=(r.top+(l&&o?o.offsetTop:0))/a,f=r.width/i,p=r.height/a;return{width:f,height:p,top:d,right:u+f,bottom:d+p,left:u,x:u,y:d}}function b$(e){var t=Sv(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 Bse(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&g$(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ip(e){return ku(e).getComputedStyle(e)}function s3e(e){return["table","td","th"].indexOf($f(e))>=0}function ym(e){return((y1(e)?e.ownerDocument:e.document)||window.document).documentElement}function Q5(e){return $f(e)==="html"?e:e.assignedSlot||e.parentNode||(g$(e)?e.host:null)||ym(e)}function RG(e){return!yc(e)||ip(e).position==="fixed"?null:e.offsetParent}function o3e(e){var t=/firefox/i.test(FP()),n=/Trident/i.test(FP());if(n&&yc(e)){var r=ip(e);if(r.position==="fixed")return null}var i=Q5(e);for(g$(i)&&(i=i.host);yc(i)&&["html","body"].indexOf($f(i))<0;){var a=ip(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function OT(e){for(var t=ku(e),n=RG(e);n&&s3e(n)&&ip(n).position==="static";)n=RG(n);return n&&($f(n)==="html"||$f(n)==="body"&&ip(n).position==="static")?t:n||o3e(e)||t}function y$(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function s2(e,t,n){return i1(e,u3(t,n))}function l3e(e,t,n){var r=s2(e,t,n);return r>n?n:r}function Use(){return{top:0,right:0,bottom:0,left:0}}function zse(e){return Object.assign({},Use(),e)}function jse(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var u3e=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,zse(typeof t!="number"?t:jse(t,vT))};function c3e(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,o=If(n.placement),l=y$(o),u=[Rl,_c].indexOf(o)>=0,d=u?"height":"width";if(!(!a||!s)){var f=u3e(i.padding,n),p=b$(a),g=l==="y"?Cl:Rl,O=l==="y"?Ac:_c,S=n.rects.reference[d]+n.rects.reference[l]-s[l]-n.rects.popper[d],T=s[l]-n.rects.reference[l],w=OT(a),x=w?l==="y"?w.clientHeight||0:w.clientWidth||0:0,k=S/2-T/2,_=f[g],R=x-p[d]-f[O],N=x/2-p[d]/2+k,P=s2(_,N,R),L=l;n.modifiersData[r]=(t={},t[L]=P,t.centerOffset=P-N,t)}}function d3e(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)||Bse(t.elements.popper,i)&&(t.elements.arrow=i))}const f3e={name:"arrow",enabled:!0,phase:"main",fn:c3e,effect:d3e,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ev(e){return e.split("-")[1]}var h3e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function p3e(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Ov(n*i)/i||0,y:Ov(r*i)/i||0}}function IG(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,s=e.offsets,o=e.position,l=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=s.x,g=p===void 0?0:p,O=s.y,S=O===void 0?0:O,T=typeof d=="function"?d({x:g,y:S}):{x:g,y:S};g=T.x,S=T.y;var w=s.hasOwnProperty("x"),x=s.hasOwnProperty("y"),k=Rl,_=Cl,R=window;if(u){var N=OT(n),P="clientHeight",L="clientWidth";if(N===ku(n)&&(N=ym(n),ip(N).position!=="static"&&o==="absolute"&&(P="scrollHeight",L="scrollWidth")),N=N,i===Cl||(i===Rl||i===_c)&&a===ow){_=Ac;var j=f&&N===R&&R.visualViewport?R.visualViewport.height:N[P];S-=j-r.height,S*=l?1:-1}if(i===Rl||(i===Cl||i===Ac)&&a===ow){k=_c;var B=f&&N===R&&R.visualViewport?R.visualViewport.width:N[L];g-=B-r.width,g*=l?1:-1}}var V=Object.assign({position:o},u&&h3e),W=d===!0?p3e({x:g,y:S},ku(n)):{x:g,y:S};if(g=W.x,S=W.y,l){var re;return Object.assign({},V,(re={},re[_]=x?"0":"",re[k]=w?"0":"",re.transform=(R.devicePixelRatio||1)<=1?"translate("+g+"px, "+S+"px)":"translate3d("+g+"px, "+S+"px, 0)",re))}return Object.assign({},V,(t={},t[_]=x?S+"px":"",t[k]=w?g+"px":"",t.transform="",t))}function m3e(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,s=a===void 0?!0:a,o=n.roundOffsets,l=o===void 0?!0:o,u={placement:If(t.placement),variation:Ev(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,IG(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,IG(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 g3e={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:m3e,data:{}};var cA={passive:!0};function b3e(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,s=r.resize,o=s===void 0?!0:s,l=ku(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(d){d.addEventListener("scroll",n.update,cA)}),o&&l.addEventListener("resize",n.update,cA),function(){a&&u.forEach(function(d){d.removeEventListener("scroll",n.update,cA)}),o&&l.removeEventListener("resize",n.update,cA)}}const y3e={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:b3e,data:{}};var v3e={left:"right",right:"left",bottom:"top",top:"bottom"};function W4(e){return e.replace(/left|right|bottom|top/g,function(t){return v3e[t]})}var O3e={start:"end",end:"start"};function NG(e){return e.replace(/start|end/g,function(t){return O3e[t]})}function v$(e){var t=ku(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function O$(e){return Sv(ym(e)).left+v$(e).scrollLeft}function S3e(e,t){var n=ku(e),r=ym(e),i=n.visualViewport,a=r.clientWidth,s=r.clientHeight,o=0,l=0;if(i){a=i.width,s=i.height;var u=Fse();(u||!u&&t==="fixed")&&(o=i.offsetLeft,l=i.offsetTop)}return{width:a,height:s,x:o+O$(e),y:l}}function E3e(e){var t,n=ym(e),r=v$(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=i1(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=i1(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),o=-r.scrollLeft+O$(e),l=-r.scrollTop;return ip(i||n).direction==="rtl"&&(o+=i1(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:s,x:o,y:l}}function S$(e){var t=ip(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Hse(e){return["html","body","#document"].indexOf($f(e))>=0?e.ownerDocument.body:yc(e)&&S$(e)?e:Hse(Q5(e))}function o2(e,t){var n;t===void 0&&(t=[]);var r=Hse(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=ku(r),s=i?[a].concat(a.visualViewport||[],S$(r)?r:[]):r,o=t.concat(s);return i?o:o.concat(o2(Q5(s)))}function BP(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function w3e(e,t){var n=Sv(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 DG(e,t,n){return t===Mse?BP(S3e(e,n)):y1(t)?w3e(t,n):BP(E3e(ym(e)))}function T3e(e){var t=o2(Q5(e)),n=["absolute","fixed"].indexOf(ip(e).position)>=0,r=n&&yc(e)?OT(e):e;return y1(r)?t.filter(function(i){return y1(i)&&Bse(i,r)&&$f(i)!=="body"}):[]}function x3e(e,t,n,r){var i=t==="clippingParents"?T3e(e):[].concat(t),a=[].concat(i,[n]),s=a[0],o=a.reduce(function(l,u){var d=DG(e,u,r);return l.top=i1(d.top,l.top),l.right=u3(d.right,l.right),l.bottom=u3(d.bottom,l.bottom),l.left=i1(d.left,l.left),l},DG(e,s,r));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function Qse(e){var t=e.reference,n=e.element,r=e.placement,i=r?If(r):null,a=r?Ev(r):null,s=t.x+t.width/2-n.width/2,o=t.y+t.height/2-n.height/2,l;switch(i){case Cl:l={x:s,y:t.y-n.height};break;case Ac:l={x:s,y:t.y+t.height};break;case _c:l={x:t.x+t.width,y:o};break;case Rl:l={x:t.x-n.width,y:o};break;default:l={x:t.x,y:t.y}}var u=i?y$(i):null;if(u!=null){var d=u==="y"?"height":"width";switch(a){case vv:l[u]=l[u]-(t[d]/2-n[d]/2);break;case ow:l[u]=l[u]+(t[d]/2-n[d]/2);break}}return l}function lw(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,s=a===void 0?e.strategy:a,o=n.boundary,l=o===void 0?W_e:o,u=n.rootBoundary,d=u===void 0?Mse:u,f=n.elementContext,p=f===void 0?ZS:f,g=n.altBoundary,O=g===void 0?!1:g,S=n.padding,T=S===void 0?0:S,w=zse(typeof T!="number"?T:jse(T,vT)),x=p===ZS?V_e:ZS,k=e.rects.popper,_=e.elements[O?x:p],R=x3e(y1(_)?_:_.contextElement||ym(e.elements.popper),l,d,s),N=Sv(e.elements.reference),P=Qse({reference:N,element:k,strategy:"absolute",placement:i}),L=BP(Object.assign({},k,P)),j=p===ZS?L:N,B={top:R.top-j.top+w.top,bottom:j.bottom-R.bottom+w.bottom,left:R.left-j.left+w.left,right:j.right-R.right+w.right},V=e.modifiersData.offset;if(p===ZS&&V){var W=V[i];Object.keys(B).forEach(function(re){var ee=[_c,Ac].indexOf(re)>=0?1:-1,q=[Cl,Ac].indexOf(re)>=0?"y":"x";B[re]+=W[q]*ee})}return B}function k3e(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,s=n.padding,o=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?$se:l,d=Ev(r),f=d?o?CG:CG.filter(function(O){return Ev(O)===d}):vT,p=f.filter(function(O){return u.indexOf(O)>=0});p.length===0&&(p=f);var g=p.reduce(function(O,S){return O[S]=lw(e,{placement:S,boundary:i,rootBoundary:a,padding:s})[If(S)],O},{});return Object.keys(g).sort(function(O,S){return g[O]-g[S]})}function A3e(e){if(If(e)===m$)return[];var t=W4(e);return[NG(e),t,NG(t)]}function _3e(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,s=n.altAxis,o=s===void 0?!0:s,l=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,g=n.flipVariations,O=g===void 0?!0:g,S=n.allowedAutoPlacements,T=t.options.placement,w=If(T),x=w===T,k=l||(x||!O?[W4(T)]:A3e(T)),_=[T].concat(k).reduce(function(ke,$e){return ke.concat(If($e)===m$?k3e(t,{placement:$e,boundary:d,rootBoundary:f,padding:u,flipVariations:O,allowedAutoPlacements:S}):$e)},[]),R=t.rects.reference,N=t.rects.popper,P=new Map,L=!0,j=_[0],B=0;B<_.length;B++){var V=_[B],W=If(V),re=Ev(V)===vv,ee=[Cl,Ac].indexOf(W)>=0,q=ee?"width":"height",ne=lw(t,{placement:V,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),K=ee?re?_c:Rl:re?Ac:Cl;R[q]>N[q]&&(K=W4(K));var G=W4(K),ie=[];if(a&&ie.push(ne[W]<=0),o&&ie.push(ne[K]<=0,ne[G]<=0),ie.every(function(ke){return ke})){j=V,L=!1;break}P.set(V,ie)}if(L)for(var H=O?3:1,Re=function($e){var ae=_.find(function(Xe){var We=P.get(Xe);if(We)return We.slice(0,$e).every(function(Ye){return Ye})});if(ae)return j=ae,"break"},Se=H;Se>0;Se--){var Z=Re(Se);if(Z==="break")break}t.placement!==j&&(t.modifiersData[r]._skip=!0,t.placement=j,t.reset=!0)}}const C3e={name:"flip",enabled:!0,phase:"main",fn:_3e,requiresIfExists:["offset"],data:{_skip:!1}};function PG(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 LG(e){return[Cl,_c,Ac,Rl].some(function(t){return e[t]>=0})}function R3e(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,s=lw(t,{elementContext:"reference"}),o=lw(t,{altBoundary:!0}),l=PG(s,r),u=PG(o,i,a),d=LG(l),f=LG(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const I3e={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:R3e};function N3e(e,t,n){var r=If(e),i=[Rl,Cl].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=a[0],o=a[1];return s=s||0,o=(o||0)*i,[Rl,_c].indexOf(r)>=0?{x:o,y:s}:{x:s,y:o}}function D3e(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,s=$se.reduce(function(d,f){return d[f]=N3e(f,t.rects,a),d},{}),o=s[t.placement],l=o.x,u=o.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}const P3e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:D3e};function L3e(e){var t=e.state,n=e.name;t.modifiersData[n]=Qse({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const M3e={name:"popperOffsets",enabled:!0,phase:"read",fn:L3e,data:{}};function $3e(e){return e==="x"?"y":"x"}function F3e(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,s=n.altAxis,o=s===void 0?!1:s,l=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,g=p===void 0?!0:p,O=n.tetherOffset,S=O===void 0?0:O,T=lw(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:d}),w=If(t.placement),x=Ev(t.placement),k=!x,_=y$(w),R=$3e(_),N=t.modifiersData.popperOffsets,P=t.rects.reference,L=t.rects.popper,j=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,B=typeof j=="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),V=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,W={x:0,y:0};if(N){if(a){var re,ee=_==="y"?Cl:Rl,q=_==="y"?Ac:_c,ne=_==="y"?"height":"width",K=N[_],G=K+T[ee],ie=K-T[q],H=g?-L[ne]/2:0,Re=x===vv?P[ne]:L[ne],Se=x===vv?-L[ne]:-P[ne],Z=t.elements.arrow,ke=g&&Z?b$(Z):{width:0,height:0},$e=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Use(),ae=$e[ee],Xe=$e[q],We=s2(0,P[ne],ke[ne]),Ye=k?P[ne]/2-H-We-ae-B.mainAxis:Re-We-ae-B.mainAxis,xt=k?-P[ne]/2+H+We+Xe+B.mainAxis:Se+We+Xe+B.mainAxis,it=t.elements.arrow&&OT(t.elements.arrow),Pt=it?_==="y"?it.clientTop||0:it.clientLeft||0:0,jt=(re=V==null?void 0:V[_])!=null?re:0,ct=K+Ye-jt-Pt,Ot=K+xt-jt,yt=s2(g?u3(G,ct):G,K,g?i1(ie,Ot):ie);N[_]=yt,W[_]=yt-K}if(o){var Ut,de=_==="x"?Cl:Rl,_e=_==="x"?Ac:_c,Ne=N[R],Ke=R==="y"?"height":"width",ut=Ne+T[de],Je=Ne-T[_e],gt=[Cl,Rl].indexOf(w)!==-1,Jt=(Ut=V==null?void 0:V[R])!=null?Ut:0,Fe=gt?ut:Ne-P[Ke]-L[Ke]-Jt+B.altAxis,we=gt?Ne+P[Ke]+L[Ke]-Jt-B.altAxis:Je,be=g&>?l3e(Fe,Ne,we):s2(g?Fe:ut,Ne,g?we:Je);N[R]=be,W[R]=be-Ne}t.modifiersData[r]=W}}const B3e={name:"preventOverflow",enabled:!0,phase:"main",fn:F3e,requiresIfExists:["offset"]};function U3e(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function z3e(e){return e===ku(e)||!yc(e)?v$(e):U3e(e)}function j3e(e){var t=e.getBoundingClientRect(),n=Ov(t.width)/e.offsetWidth||1,r=Ov(t.height)/e.offsetHeight||1;return n!==1||r!==1}function H3e(e,t,n){n===void 0&&(n=!1);var r=yc(t),i=yc(t)&&j3e(t),a=ym(t),s=Sv(e,i,n),o={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(($f(t)!=="body"||S$(a))&&(o=z3e(t)),yc(t)?(l=Sv(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=O$(a))),{x:s.left+o.scrollLeft-l.x,y:s.top+o.scrollTop-l.y,width:s.width,height:s.height}}function Q3e(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function i(a){n.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(o){if(!n.has(o)){var l=t.get(o);l&&i(l)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||i(a)}),r}function W3e(e){var t=Q3e(e);return n3e.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function V3e(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function q3e(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var MG={placement:"bottom",modifiers:[],strategy:"absolute"};function $G(){for(var e=arguments.length,t=new Array(e),n=0;n{a||o(X3e(i)||document.body)},[i,a]),Ko(()=>{if(s&&!a)return iw(n,s),()=>{iw(n,null)}},[n,s,a]),a){if(M.isValidElement(r)){const u={ref:l};return M.cloneElement(r,u)}return I.jsx(M.Fragment,{children:r})}return I.jsx(M.Fragment,{children:s&&Yv.createPortal(r,s)})});function K3e(e){return dn("MuiPopper",e)}hn("MuiPopper",["root"]);const J3e=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],eCe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function tCe(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 UP(e){return typeof e=="function"?e():e}function nCe(e){return e.nodeType!==void 0}const rCe=e=>{const{classes:t}=e;return pn({root:["root"]},K3e,t)},iCe={},aCe=M.forwardRef(function(t,n){var r;const{anchorEl:i,children:a,direction:s,disablePortal:o,modifiers:l,open:u,placement:d,popperOptions:f,popperRef:p,slotProps:g={},slots:O={},TransitionProps:S}=t,T=Tt(t,J3e),w=M.useRef(null),x=vr(w,n),k=M.useRef(null),_=vr(k,p),R=M.useRef(_);Ko(()=>{R.current=_},[_]),M.useImperativeHandle(p,()=>k.current,[]);const N=tCe(d,s),[P,L]=M.useState(N),[j,B]=M.useState(UP(i));M.useEffect(()=>{k.current&&k.current.forceUpdate()}),M.useEffect(()=>{i&&B(UP(i))},[i]),Ko(()=>{if(!j||!u)return;const q=G=>{L(G.placement)};let ne=[{name:"preventOverflow",options:{altBoundary:o}},{name:"flip",options:{altBoundary:o}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:G})=>{q(G)}}];l!=null&&(ne=ne.concat(l)),f&&f.modifiers!=null&&(ne=ne.concat(f.modifiers));const K=Z3e(j,w.current,Q({placement:N},f,{modifiers:ne}));return R.current(K),()=>{K.destroy(),R.current(null)}},[j,o,l,u,f,N]);const V={placement:P};S!==null&&(V.TransitionProps=S);const W=rCe(t),re=(r=O.root)!=null?r:"div",ee=Ho({elementType:re,externalSlotProps:g.root,externalForwardedProps:T,additionalProps:{role:"tooltip",ref:x},ownerState:t,className:W.root});return I.jsx(re,Q({},ee,{children:typeof a=="function"?a(V):a}))}),sCe=M.forwardRef(function(t,n){const{anchorEl:r,children:i,container:a,direction:s="ltr",disablePortal:o=!1,keepMounted:l=!1,modifiers:u,open:d,placement:f="bottom",popperOptions:p=iCe,popperRef:g,style:O,transition:S=!1,slotProps:T={},slots:w={}}=t,x=Tt(t,eCe),[k,_]=M.useState(!0),R=()=>{_(!1)},N=()=>{_(!0)};if(!l&&!d&&(!S||k))return null;let P;if(a)P=a;else if(r){const B=UP(r);P=B&&nCe(B)?ca(B).body:ca(null).body}const L=!d&&l&&(!S||k)?"none":void 0,j=S?{in:d,onEnter:R,onExited:N}:void 0;return I.jsx(Wse,{disablePortal:o,container:P,children:I.jsx(aCe,Q({anchorEl:r,direction:s,disablePortal:o,modifiers:u,ref:n,open:S?!k:d,placement:f,popperOptions:p,popperRef:g,slotProps:T,slots:w},x,{style:Q({position:"fixed",top:0,left:0,display:L},O),TransitionProps:j,children:i}))})}),oCe=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],lCe=lt(sCe,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),W5=M.forwardRef(function(t,n){var r;const i=Pse(),a=mn({props:t,name:"MuiPopper"}),{anchorEl:s,component:o,components:l,componentsProps:u,container:d,disablePortal:f,keepMounted:p,modifiers:g,open:O,placement:S,popperOptions:T,popperRef:w,transition:x,slots:k,slotProps:_}=a,R=Tt(a,oCe),N=(r=k==null?void 0:k.root)!=null?r:l==null?void 0:l.Root,P=Q({anchorEl:s,container:d,disablePortal:f,keepMounted:p,modifiers:g,open:O,placement:S,popperOptions:T,popperRef:w,transition:x},R);return I.jsx(lCe,Q({as:o,direction:i==null?void 0:i.direction,slots:{root:N},slotProps:_??u},P,{ref:n}))});function uCe(e){return dn("MuiListSubheader",e)}hn("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const cCe=["className","color","component","disableGutters","disableSticky","inset"],dCe=e=>{const{classes:t,color:n,disableGutters:r,inset:i,disableSticky:a}=e,s={root:["root",n!=="default"&&`color${st(n)}`,!r&&"gutters",i&&"inset",!a&&"sticky"]};return pn(s,uCe,t)},fCe=lt("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${st(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>Q({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})),Vse=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiListSubheader"}),{className:i,color:a="default",component:s="li",disableGutters:o=!1,disableSticky:l=!1,inset:u=!1}=r,d=Tt(r,cCe),f=Q({},r,{color:a,component:s,disableGutters:o,disableSticky:l,inset:u}),p=dCe(f);return I.jsx(fCe,Q({as:s,className:wt(p.root,i),ref:n,ownerState:f},d))});Vse.muiSkipListHighlight=!0;const hCe=Id(I.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 pCe(e){return dn("MuiChip",e)}const jr=hn("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"]),mCe=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],gCe=e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:a,onDelete:s,clickable:o,variant:l}=e,u={root:["root",l,n&&"disabled",`size${st(r)}`,`color${st(i)}`,o&&"clickable",o&&`clickableColor${st(i)}`,s&&"deletable",s&&`deletableColor${st(i)}`,`${l}${st(i)}`],label:["label",`label${st(r)}`],avatar:["avatar",`avatar${st(r)}`,`avatarColor${st(i)}`],icon:["icon",`icon${st(r)}`,`iconColor${st(a)}`],deleteIcon:["deleteIcon",`deleteIcon${st(r)}`,`deleteIconColor${st(i)}`,`deleteIcon${st(l)}Color${st(i)}`]};return pn(u,pCe,t)},bCe=lt("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:a,onDelete:s,size:o,variant:l}=n;return[{[`& .${jr.avatar}`]:t.avatar},{[`& .${jr.avatar}`]:t[`avatar${st(o)}`]},{[`& .${jr.avatar}`]:t[`avatarColor${st(r)}`]},{[`& .${jr.icon}`]:t.icon},{[`& .${jr.icon}`]:t[`icon${st(o)}`]},{[`& .${jr.icon}`]:t[`iconColor${st(i)}`]},{[`& .${jr.deleteIcon}`]:t.deleteIcon},{[`& .${jr.deleteIcon}`]:t[`deleteIcon${st(o)}`]},{[`& .${jr.deleteIcon}`]:t[`deleteIconColor${st(r)}`]},{[`& .${jr.deleteIcon}`]:t[`deleteIcon${st(l)}Color${st(r)}`]},t.root,t[`size${st(o)}`],t[`color${st(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${st(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${st(r)}`],t[l],t[`${l}${st(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return Q({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",[`&.${jr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${jr.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${jr.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${jr.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${jr.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${jr.icon}`]:Q({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&Q({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${jr.deleteIcon}`]:Q({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Qn(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)`:Qn(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)`:Qn(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&&{[`&.${jr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Qn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${jr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>Q({},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}))`:Qn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${jr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Qn(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, &.${jr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>Q({},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]}`,[`&.${jr.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${jr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${jr.avatar}`]:{marginLeft:4},[`& .${jr.avatarSmall}`]:{marginLeft:2},[`& .${jr.icon}`]:{marginLeft:4},[`& .${jr.iconSmall}`]:{marginLeft:2},[`& .${jr.deleteIcon}`]:{marginRight:5},[`& .${jr.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)`:Qn(e.palette[t.color].main,.7)}`,[`&.${jr.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qn(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${jr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Qn(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${jr.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Qn(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),yCe=lt("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${st(r)}`]]}})(({ownerState:e})=>Q({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 FG(e){return e.key==="Backspace"||e.key==="Delete"}const qse=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiChip"}),{avatar:i,className:a,clickable:s,color:o="default",component:l,deleteIcon:u,disabled:d=!1,icon:f,label:p,onClick:g,onDelete:O,onKeyDown:S,onKeyUp:T,size:w="medium",variant:x="filled",tabIndex:k,skipFocusWhenDisabled:_=!1}=r,R=Tt(r,mCe),N=M.useRef(null),P=vr(N,n),L=ie=>{ie.stopPropagation(),O&&O(ie)},j=ie=>{ie.currentTarget===ie.target&&FG(ie)&&ie.preventDefault(),S&&S(ie)},B=ie=>{ie.currentTarget===ie.target&&(O&&FG(ie)?O(ie):ie.key==="Escape"&&N.current&&N.current.blur()),T&&T(ie)},V=s!==!1&&g?!0:s,W=V||O?Mf:l||"div",re=Q({},r,{component:W,disabled:d,size:w,color:o,iconColor:M.isValidElement(f)&&f.props.color||o,onDelete:!!O,clickable:V,variant:x}),ee=gCe(re),q=W===Mf?Q({component:l||"div",focusVisibleClassName:ee.focusVisible},O&&{disableRipple:!0}):{};let ne=null;O&&(ne=u&&M.isValidElement(u)?M.cloneElement(u,{className:wt(u.props.className,ee.deleteIcon),onClick:L}):I.jsx(hCe,{className:wt(ee.deleteIcon),onClick:L}));let K=null;i&&M.isValidElement(i)&&(K=M.cloneElement(i,{className:wt(ee.avatar,i.props.className)}));let G=null;return f&&M.isValidElement(f)&&(G=M.cloneElement(f,{className:wt(ee.icon,f.props.className)})),I.jsxs(bCe,Q({as:W,className:wt(ee.root,a),disabled:V&&d?!0:void 0,onClick:g,onKeyDown:j,onKeyUp:B,ref:P,tabIndex:_&&d?-1:k,ownerState:re},q,R,{children:[K||G,I.jsx(yCe,{className:wt(ee.label),ownerState:re,children:p}),ne]}))}),vCe=["onChange","maxRows","minRows","style","value"];function dA(e){return parseInt(e,10)||0}const OCe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function SCe(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const Gse=M.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:a=1,style:s,value:o}=t,l=Tt(t,vCe),{current:u}=M.useRef(o!=null),d=M.useRef(null),f=vr(n,d),p=M.useRef(null),g=M.useRef(null),O=M.useCallback(()=>{const w=d.current,k=Lf(w).getComputedStyle(w);if(k.width==="0px")return{outerHeightStyle:0,overflowing:!1};const _=g.current;_.style.width=k.width,_.value=w.value||t.placeholder||"x",_.value.slice(-1)===` +`&&(_.value+=" ");const R=k.boxSizing,N=dA(k.paddingBottom)+dA(k.paddingTop),P=dA(k.borderBottomWidth)+dA(k.borderTopWidth),L=_.scrollHeight;_.value="x";const j=_.scrollHeight;let B=L;a&&(B=Math.max(Number(a)*j,B)),i&&(B=Math.min(Number(i)*j,B)),B=Math.max(B,j);const V=B+(R==="border-box"?N+P:0),W=Math.abs(B-L)<=1;return{outerHeightStyle:V,overflowing:W}},[i,a,t.placeholder]),S=M.useCallback(()=>{const w=O();if(SCe(w))return;const x=w.outerHeightStyle,k=d.current;p.current!==x&&(p.current=x,k.style.height=`${x}px`),k.style.overflow=w.overflowing?"hidden":""},[O]);Ko(()=>{const w=()=>{S()};let x;const k=B5(w),_=d.current,R=Lf(_);R.addEventListener("resize",k);let N;return typeof ResizeObserver<"u"&&(N=new ResizeObserver(w),N.observe(_)),()=>{k.clear(),cancelAnimationFrame(x),R.removeEventListener("resize",k),N&&N.disconnect()}},[O,S]),Ko(()=>{S()});const T=w=>{u||S(),r&&r(w)};return I.jsxs(M.Fragment,{children:[I.jsx("textarea",Q({value:o,onChange:T,ref:f,rows:a,style:s},l)),I.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:g,tabIndex:-1,style:Q({},OCe.shadow,s,{paddingTop:0,paddingBottom:0})})]})});function vm({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 V5=M.createContext(void 0);function zf(){return M.useContext(V5)}function Yse(e){return I.jsx(fke,Q({},e,{defaultTheme:l$,themeId:gv}))}function BG(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function c3(e,t=!1){return e&&(BG(e.value)&&e.value!==""||t&&BG(e.defaultValue)&&e.defaultValue!=="")}function ECe(e){return e.startAdornment}function wCe(e){return dn("MuiInputBase",e)}const su=hn("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),TCe=["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"],q5=(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${st(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},G5=(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]},xCe=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:a,focused:s,formControl:o,fullWidth:l,hiddenLabel:u,multiline:d,readOnly:f,size:p,startAdornment:g,type:O}=e,S={root:["root",`color${st(n)}`,r&&"disabled",i&&"error",l&&"fullWidth",s&&"focused",o&&"formControl",p&&p!=="medium"&&`size${st(p)}`,d&&"multiline",g&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",O==="search"&&"inputTypeSearch",d&&"inputMultiline",p==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",g&&"inputAdornedStart",a&&"inputAdornedEnd",f&&"readOnly"]};return pn(S,wCe,t)},Y5=lt("div",{name:"MuiInputBase",slot:"Root",overridesResolver:q5})(({theme:e,ownerState:t})=>Q({},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",[`&.${su.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Q({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Z5=lt("input",{name:"MuiInputBase",slot:"Input",overridesResolver:G5})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=Q({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),i={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return Q({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] + .${su.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${su.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"})}),kCe=I.jsx(Yse,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),ACe=M.forwardRef(function(t,n){var r;const i=mn({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:s,autoFocus:o,className:l,components:u={},componentsProps:d={},defaultValue:f,disabled:p,disableInjectingGlobalStyles:g,endAdornment:O,fullWidth:S=!1,id:T,inputComponent:w="input",inputProps:x={},inputRef:k,maxRows:_,minRows:R,multiline:N=!1,name:P,onBlur:L,onChange:j,onClick:B,onFocus:V,onKeyDown:W,onKeyUp:re,placeholder:ee,readOnly:q,renderSuffix:ne,rows:K,slotProps:G={},slots:ie={},startAdornment:H,type:Re="text",value:Se}=i,Z=Tt(i,TCe),ke=x.value!=null?x.value:Se,{current:$e}=M.useRef(ke!=null),ae=M.useRef(),Xe=M.useCallback(be=>{},[]),We=vr(ae,k,x.ref,Xe),[Ye,xt]=M.useState(!1),it=zf(),Pt=vm({props:i,muiFormControl:it,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Pt.focused=it?it.focused:Ye,M.useEffect(()=>{!it&&p&&Ye&&(xt(!1),L&&L())},[it,p,Ye,L]);const jt=it&&it.onFilled,ct=it&&it.onEmpty,Ot=M.useCallback(be=>{c3(be)?jt&&jt():ct&&ct()},[jt,ct]);Ko(()=>{$e&&Ot({value:ke})},[ke,Ot,$e]);const yt=be=>{if(Pt.disabled){be.stopPropagation();return}V&&V(be),x.onFocus&&x.onFocus(be),it&&it.onFocus?it.onFocus(be):xt(!0)},Ut=be=>{L&&L(be),x.onBlur&&x.onBlur(be),it&&it.onBlur?it.onBlur(be):xt(!1)},de=(be,...xe)=>{if(!$e){const Ue=be.target||ae.current;if(Ue==null)throw new Error(rp(1));Ot({value:Ue.value})}x.onChange&&x.onChange(be,...xe),j&&j(be,...xe)};M.useEffect(()=>{Ot(ae.current)},[]);const _e=be=>{ae.current&&be.currentTarget===be.target&&ae.current.focus(),B&&B(be)};let Ne=w,Ke=x;N&&Ne==="input"&&(K?Ke=Q({type:void 0,minRows:K,maxRows:K},Ke):Ke=Q({type:void 0,maxRows:_,minRows:R},Ke),Ne=Gse);const ut=be=>{Ot(be.animationName==="mui-auto-fill-cancel"?ae.current:{value:"x"})};M.useEffect(()=>{it&&it.setAdornedStart(!!H)},[it,H]);const Je=Q({},i,{color:Pt.color||"primary",disabled:Pt.disabled,endAdornment:O,error:Pt.error,focused:Pt.focused,formControl:it,fullWidth:S,hiddenLabel:Pt.hiddenLabel,multiline:N,size:Pt.size,startAdornment:H,type:Re}),gt=xCe(Je),Jt=ie.root||u.Root||Y5,Fe=G.root||d.root||{},we=ie.input||u.Input||Z5;return Ke=Q({},Ke,(r=G.input)!=null?r:d.input),I.jsxs(M.Fragment,{children:[!g&&kCe,I.jsxs(Jt,Q({},Fe,!Rf(Jt)&&{ownerState:Q({},Je,Fe.ownerState)},{ref:n,onClick:_e},Z,{className:wt(gt.root,Fe.className,l,q&&"MuiInputBase-readOnly"),children:[H,I.jsx(V5.Provider,{value:null,children:I.jsx(we,Q({ownerState:Je,"aria-invalid":Pt.error,"aria-describedby":a,autoComplete:s,autoFocus:o,defaultValue:f,disabled:Pt.disabled,id:T,onAnimationStart:ut,name:P,placeholder:ee,readOnly:q,required:Pt.required,rows:K,value:ke,onKeyDown:W,onKeyUp:re,type:Re},Ke,!Rf(we)&&{as:Ne,ownerState:Q({},Je,Ke.ownerState)},{ref:We,className:wt(gt.input,Ke.className,q&&"MuiInputBase-readOnly"),onBlur:Ut,onChange:de,onFocus:yt}))}),O,ne?ne(Q({},Pt,{startAdornment:H})):null]}))]})}),E$=ACe;function _Ce(e){return dn("MuiInput",e)}const m0=Q({},su,hn("MuiInput",["root","underline","input"]));function CCe(e){return dn("MuiOutlinedInput",e)}const rf=Q({},su,hn("MuiOutlinedInput",["root","notchedOutline","input"]));function RCe(e){return dn("MuiFilledInput",e)}const ou=Q({},su,hn("MuiFilledInput",["root","underline","input"])),Zse=Id(I.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function ICe(e){return dn("MuiAutocomplete",e)}const ur=hn("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"]);var UG,zG;const NCe=["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"],DCe=["ref"],PCe=["key"],LCe=["key"],MCe=e=>{const{classes:t,disablePortal:n,expanded:r,focused:i,fullWidth:a,hasClearIcon:s,hasPopupIcon:o,inputFocused:l,popupOpen:u,size:d}=e,f={root:["root",r&&"expanded",i&&"focused",a&&"fullWidth",s&&"hasClearIcon",o&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${st(d)}`],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 pn(f,ICe,t)},$Ce=lt("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:i,hasPopupIcon:a,inputFocused:s,size:o}=n;return[{[`& .${ur.tag}`]:t.tag},{[`& .${ur.tag}`]:t[`tagSize${st(o)}`]},{[`& .${ur.inputRoot}`]:t.inputRoot},{[`& .${ur.input}`]:t.input},{[`& .${ur.input}`]:s&&t.inputFocused},t.root,r&&t.fullWidth,a&&t.hasPopupIcon,i&&t.hasClearIcon]}})({[`&.${ur.focused} .${ur.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${ur.clearIndicator}`]:{visibility:"visible"}},[`& .${ur.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${ur.inputRoot}`]:{[`.${ur.hasPopupIcon}&, .${ur.hasClearIcon}&`]:{paddingRight:30},[`.${ur.hasPopupIcon}.${ur.hasClearIcon}&`]:{paddingRight:56},[`& .${ur.input}`]:{width:0,minWidth:30}},[`& .${m0.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${m0.root}.${su.sizeSmall}`]:{[`& .${m0.input}`]:{padding:"2px 4px 3px 0"}},[`& .${rf.root}`]:{padding:9,[`.${ur.hasPopupIcon}&, .${ur.hasClearIcon}&`]:{paddingRight:39},[`.${ur.hasPopupIcon}.${ur.hasClearIcon}&`]:{paddingRight:65},[`& .${ur.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${ur.endAdornment}`]:{right:9}},[`& .${rf.root}.${su.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${ur.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${ou.root}`]:{paddingTop:19,paddingLeft:8,[`.${ur.hasPopupIcon}&, .${ur.hasClearIcon}&`]:{paddingRight:39},[`.${ur.hasPopupIcon}.${ur.hasClearIcon}&`]:{paddingRight:65},[`& .${ou.input}`]:{padding:"7px 4px"},[`& .${ur.endAdornment}`]:{right:9}},[`& .${ou.root}.${su.sizeSmall}`]:{paddingBottom:1,[`& .${ou.input}`]:{padding:"2.5px 4px"}},[`& .${su.hiddenLabel}`]:{paddingTop:8},[`& .${ou.root}.${su.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${ur.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${ou.root}.${su.hiddenLabel}.${su.sizeSmall}`]:{[`& .${ur.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${ur.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${ur.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${ur.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${ur.inputRoot}`]:{flexWrap:"wrap"}}}]}),FCe=lt("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),BCe=lt(Oo,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),UCe=lt(Oo,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>Q({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),zCe=lt(W5,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ur.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]})),jCe=lt(Gs,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>Q({},e.typography.body1,{overflow:"auto"})),HCe=lt("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),QCe=lt("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),WCe=lt("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",[`& .${ur.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"},[`&.${ur.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"},[`&.${ur.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})`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ur.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${ur.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),VCe=lt(Vse,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),qCe=lt("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${ur.option}`]:{paddingLeft:24}}),GCe=M.forwardRef(function(t,n){var r,i,a,s;const o=mn({props:t,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:u=!1,autoSelect:d=!1,blurOnSelect:f=!1,ChipProps:p,className:g,clearIcon:O=UG||(UG=I.jsx(x_e,{fontSize:"small"})),clearOnBlur:S=!o.freeSolo,clearOnEscape:T=!1,clearText:w="Clear",closeText:x="Close",componentsProps:k={},defaultValue:_=o.multiple?[]:null,disableClearable:R=!1,disableCloseOnSelect:N=!1,disabled:P=!1,disabledItemsFocusable:L=!1,disableListWrap:j=!1,disablePortal:B=!1,filterSelectedOptions:V=!1,forcePopupIcon:W="auto",freeSolo:re=!1,fullWidth:ee=!1,getLimitTagsText:q=qe=>`+${qe}`,getOptionLabel:ne,groupBy:K,handleHomeEndKeys:G=!o.freeSolo,includeInputInList:ie=!1,limitTags:H=-1,ListboxComponent:Re="ul",ListboxProps:Se,loading:Z=!1,loadingText:ke="Loading…",multiple:$e=!1,noOptionsText:ae="No options",openOnFocus:Xe=!1,openText:We="Open",PaperComponent:Ye=Gs,PopperComponent:xt=W5,popupIcon:it=zG||(zG=I.jsx(Zse,{})),readOnly:Pt=!1,renderGroup:jt,renderInput:ct,renderOption:Ot,renderTags:yt,selectOnFocus:Ut=!o.freeSolo,size:de="medium",slotProps:_e={}}=o,Ne=Tt(o,NCe),{getRootProps:Ke,getInputProps:ut,getInputLabelProps:Je,getPopupIndicatorProps:gt,getClearProps:Jt,getTagProps:Fe,getListboxProps:we,getOptionProps:be,value:xe,dirty:Ue,expanded:Ct,id:qt,popupOpen:tt,focused:Wt,focusedTag:Ht,anchorEl:zt,setAnchorEl:Sn,inputValue:pr,groupedOptions:Mr}=B_e(Q({},o,{componentName:"Autocomplete"})),Rr=!R&&!P&&Ue&&!Pt,Yr=(!re||W===!0)&&W!==!1,{onMouseDown:Ni}=ut(),{ref:hi}=Se??{},ji=we(),{ref:pi}=ji,ds=Tt(ji,DCe),Hi=vr(pi,hi),Qi=ne||(qe=>{var St;return(St=qe.label)!=null?St:qe}),Ur=Q({},o,{disablePortal:B,expanded:Ct,focused:Wt,fullWidth:ee,getOptionLabel:Qi,hasClearIcon:Rr,hasPopupIcon:Yr,inputFocused:Ht===-1,popupOpen:tt,size:de}),nr=MCe(Ur);let Zr;if($e&&xe.length>0){const qe=St=>Q({className:nr.tag,disabled:P},Fe(St));yt?Zr=yt(xe,qe,Ur):Zr=xe.map((St,_t)=>{const Gt=qe({index:_t}),{key:jn}=Gt,qn=Tt(Gt,PCe);return I.jsx(qse,Q({label:Qi(St),size:de},qn,p),jn)})}if(H>-1&&Array.isArray(Zr)){const qe=Zr.length-H;!Wt&&qe>0&&(Zr=Zr.splice(0,H),Zr.push(I.jsx("span",{className:nr.tag,children:q(qe)},Zr.length)))}const nt=jt||(qe=>I.jsxs("li",{children:[I.jsx(VCe,{className:nr.groupLabel,ownerState:Ur,component:"div",children:qe.group}),I.jsx(qCe,{className:nr.groupUl,ownerState:Ur,children:qe.children})]},qe.key)),he=Ot||((qe,St)=>{const{key:_t}=qe,Gt=Tt(qe,LCe);return I.jsx("li",Q({},Gt,{children:Qi(St)}),_t)}),Le=(qe,St)=>{const _t=be({option:qe,index:St});return he(Q({},_t,{className:nr.option}),qe,{selected:_t["aria-selected"],index:St,inputValue:pr},Ur)},Ve=(r=_e.clearIndicator)!=null?r:k.clearIndicator,pt=(i=_e.paper)!=null?i:k.paper,Vt=(a=_e.popper)!=null?a:k.popper,Ie=(s=_e.popupIndicator)!=null?s:k.popupIndicator,Te=qe=>I.jsx(zCe,Q({as:xt,disablePortal:B,style:{width:zt?zt.clientWidth:null},ownerState:Ur,role:"presentation",anchorEl:zt,open:tt},Vt,{className:wt(nr.popper,Vt==null?void 0:Vt.className),children:I.jsx(jCe,Q({ownerState:Ur,as:Ye},pt,{className:wt(nr.paper,pt==null?void 0:pt.className),children:qe}))}));let at=null;return Mr.length>0?at=Te(I.jsx(WCe,Q({as:Re,className:nr.listbox,ownerState:Ur},ds,Se,{ref:Hi,children:Mr.map((qe,St)=>K?nt({key:qe.key,group:qe.group,children:qe.options.map((_t,Gt)=>Le(_t,qe.index+Gt))}):Le(qe,St))}))):Z&&Mr.length===0?at=Te(I.jsx(HCe,{className:nr.loading,ownerState:Ur,children:ke})):Mr.length===0&&!re&&!Z&&(at=Te(I.jsx(QCe,{className:nr.noOptions,ownerState:Ur,role:"presentation",onMouseDown:qe=>{qe.preventDefault()},children:ae}))),I.jsxs(M.Fragment,{children:[I.jsx($Ce,Q({ref:n,className:wt(nr.root,g),ownerState:Ur},Ke(Ne),{children:ct({id:qt,disabled:P,fullWidth:!0,size:de==="small"?"small":void 0,InputLabelProps:Je(),InputProps:Q({ref:Sn,className:nr.inputRoot,startAdornment:Zr,onClick:qe=>{qe.target===qe.currentTarget&&Ni(qe)}},(Rr||Yr)&&{endAdornment:I.jsxs(FCe,{className:nr.endAdornment,ownerState:Ur,children:[Rr?I.jsx(BCe,Q({},Jt(),{"aria-label":w,title:w,ownerState:Ur},Ve,{className:wt(nr.clearIndicator,Ve==null?void 0:Ve.className),children:O})):null,Yr?I.jsx(UCe,Q({},gt(),{disabled:P,"aria-label":tt?x:We,title:tt?x:We,ownerState:Ur},Ie,{className:wt(nr.popupIndicator,Ie==null?void 0:Ie.className),children:it})):null]})}),inputProps:Q({className:nr.input,disabled:P,readOnly:Pt},ut())})})),zt?at:null]})}),YCe=Id(I.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 ZCe(e){return dn("MuiAvatar",e)}const XCe=hn("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]),KCe=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],JCe=e=>{const{classes:t,variant:n,colorDefault:r}=e;return pn({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},ZCe,t)},e5e=lt("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:Q({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:Q({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),t5e=lt("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),n5e=lt(YCe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function r5e({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,a]=M.useState(!1);return M.useEffect(()=>{if(!n&&!r)return;a(!1);let s=!0;const o=new Image;return o.onload=()=>{s&&a("loaded")},o.onerror=()=>{s&&a("error")},o.crossOrigin=e,o.referrerPolicy=t,o.src=n,r&&(o.srcset=r),()=>{s=!1}},[e,t,n,r]),i}const a1=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiAvatar"}),{alt:i,children:a,className:s,component:o="div",slots:l={},slotProps:u={},imgProps:d,sizes:f,src:p,srcSet:g,variant:O="circular"}=r,S=Tt(r,KCe);let T=null;const w=r5e(Q({},d,{src:p,srcSet:g})),x=p||g,k=x&&w!=="error",_=Q({},r,{colorDefault:!k,component:o,variant:O}),R=JCe(_),[N,P]=a_e("img",{className:R.img,elementType:t5e,externalForwardedProps:{slots:l,slotProps:{img:Q({},d,u.img)}},additionalProps:{alt:i,src:p,srcSet:g,sizes:f},ownerState:_});return k?T=I.jsx(N,Q({},P)):a||a===0?T=a:x&&i?T=i[0]:T=I.jsx(n5e,{ownerState:_,className:R.fallback}),I.jsx(e5e,Q({as:o,ownerState:_,className:wt(R.root,s),ref:n},S,{children:T}))});function i5e(e){return dn("MuiAvatarGroup",e)}const a5e=hn("MuiAvatarGroup",["root","avatar"]),s5e=["children","className","component","componentsProps","max","renderSurplus","slotProps","spacing","total","variant"],jG={small:-16,medium:null},o5e=e=>{const{classes:t}=e;return pn({root:["root"],avatar:["avatar"]},i5e,t)},l5e=lt("div",{name:"MuiAvatarGroup",slot:"Root",overridesResolver:(e,t)=>Q({[`& .${a5e.avatar}`]:t.avatar},t.root)})(({theme:e,ownerState:t})=>{const n=t.spacing&&jG[t.spacing]!==void 0?jG[t.spacing]:-t.spacing;return{[`& .${XCe.root}`]:{border:`2px solid ${(e.vars||e).palette.background.default}`,boxSizing:"content-box",marginLeft:n??-8,"&:last-child":{marginLeft:0}},display:"flex",flexDirection:"row-reverse"}}),u5e=M.forwardRef(function(t,n){var r;const i=mn({props:t,name:"MuiAvatarGroup"}),{children:a,className:s,component:o="div",componentsProps:l={},max:u=5,renderSurplus:d,slotProps:f={},spacing:p="medium",total:g,variant:O="circular"}=i,S=Tt(i,s5e);let T=u<2?2:u;const w=Q({},i,{max:u,spacing:p,component:o,variant:O}),x=o5e(w),k=M.Children.toArray(a).filter(j=>M.isValidElement(j)),_=g||k.length;_===T&&(T+=1),T=Math.min(_+1,T);const R=Math.min(k.length,T-1),N=Math.max(_-T,_-R,0),P=d?d(N):`+${N}`,L=(r=f.additionalAvatar)!=null?r:l.additionalAvatar;return I.jsxs(l5e,Q({as:o,ownerState:w,className:wt(x.root,s),ref:n},S,{children:[N?I.jsx(a1,Q({variant:O},L,{className:wt(x.avatar,L==null?void 0:L.className),children:P})):null,k.slice(0,R).reverse().map(j=>M.cloneElement(j,{className:wt(j.props.className,x.avatar),variant:j.props.variant||O}))]}))}),c5e=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],d5e={entering:{opacity:1},entered:{opacity:1}},d3=M.forwardRef(function(t,n){const r=Uf(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:o,easing:l,in:u,onEnter:d,onEntered:f,onEntering:p,onExit:g,onExited:O,onExiting:S,style:T,timeout:w=i,TransitionComponent:x=Pc}=t,k=Tt(t,c5e),_=M.useRef(null),R=vr(_,o.ref,n),N=ee=>q=>{if(ee){const ne=_.current;q===void 0?ee(ne):ee(ne,q)}},P=N(p),L=N((ee,q)=>{d$(ee);const ne=im({style:T,timeout:w,easing:l},{mode:"enter"});ee.style.webkitTransition=r.transitions.create("opacity",ne),ee.style.transition=r.transitions.create("opacity",ne),d&&d(ee,q)}),j=N(f),B=N(S),V=N(ee=>{const q=im({style:T,timeout:w,easing:l},{mode:"exit"});ee.style.webkitTransition=r.transitions.create("opacity",q),ee.style.transition=r.transitions.create("opacity",q),g&&g(ee)}),W=N(O),re=ee=>{a&&a(_.current,ee)};return I.jsx(x,Q({appear:s,in:u,nodeRef:_,onEnter:L,onEntered:j,onEntering:P,onExit:V,onExited:W,onExiting:B,addEndListener:re,timeout:w},k,{children:(ee,q)=>M.cloneElement(o,Q({style:Q({opacity:0,visibility:ee==="exited"&&!u?"hidden":void 0},d5e[ee],T,o.props.style),ref:R},q))}))});function f5e(e){return dn("MuiBackdrop",e)}hn("MuiBackdrop",["root","invisible"]);const h5e=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],p5e=e=>{const{classes:t,invisible:n}=e;return pn({root:["root",n&&"invisible"]},f5e,t)},m5e=lt("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>Q({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"})),rO=M.forwardRef(function(t,n){var r,i,a;const s=mn({props:t,name:"MuiBackdrop"}),{children:o,className:l,component:u="div",components:d={},componentsProps:f={},invisible:p=!1,open:g,slotProps:O={},slots:S={},TransitionComponent:T=d3,transitionDuration:w}=s,x=Tt(s,h5e),k=Q({},s,{component:u,invisible:p}),_=p5e(k),R=(r=O.root)!=null?r:f.root;return I.jsx(T,Q({in:g,timeout:w},x,{children:I.jsx(m5e,Q({"aria-hidden":!0},R,{as:(i=(a=S.root)!=null?a:d.Root)!=null?i:u,className:wt(_.root,l,R==null?void 0:R.className),ownerState:Q({},k,R==null?void 0:R.ownerState),classes:_,ref:n,children:o}))}))}),g5e=hn("MuiBox",["root"]),b5e=o$(),ea=yke({themeId:gv,defaultTheme:b5e,defaultClassName:g5e.root,generateClassName:J9.generate});function y5e(e){return dn("MuiButton",e)}const fA=hn("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","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),v5e=M.createContext({}),O5e=M.createContext(void 0),S5e=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],E5e=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,classes:s}=e,o={root:["root",a,`${a}${st(t)}`,`size${st(i)}`,`${a}Size${st(i)}`,`color${st(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${st(i)}`],endIcon:["icon","endIcon",`iconSize${st(i)}`]},l=pn(o,y5e,s);return Q({},s,l)},Xse=e=>Q({},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}}),w5e=lt(Mf,{shouldForwardProp:e=>Ys(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${st(n.color)}`],t[`size${st(n.size)}`],t[`${n.variant}Size${st(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const i=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return Q({},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":Q({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Qn(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})`:Qn(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})`:Qn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":Q({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${fA.focusVisible}`]:Q({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${fA.disabled}`]:Q({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 ${Qn(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"},[`&.${fA.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${fA.disabled}`]:{boxShadow:"none"}}),T5e=lt("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${st(n.size)}`]]}})(({ownerState:e})=>Q({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Xse(e))),x5e=lt("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${st(n.size)}`]]}})(({ownerState:e})=>Q({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Xse(e))),po=M.forwardRef(function(t,n){const r=M.useContext(v5e),i=M.useContext(O5e),a=yv(r,t),s=mn({props:a,name:"MuiButton"}),{children:o,color:l="primary",component:u="button",className:d,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:g=!1,endIcon:O,focusVisibleClassName:S,fullWidth:T=!1,size:w="medium",startIcon:x,type:k,variant:_="text"}=s,R=Tt(s,S5e),N=Q({},s,{color:l,component:u,disabled:f,disableElevation:p,disableFocusRipple:g,fullWidth:T,size:w,type:k,variant:_}),P=E5e(N),L=x&&I.jsx(T5e,{className:P.startIcon,ownerState:N,children:x}),j=O&&I.jsx(x5e,{className:P.endIcon,ownerState:N,children:O}),B=i||"";return I.jsxs(w5e,Q({ownerState:N,className:wt(r.className,P.root,d,B),component:u,disabled:f,focusRipple:!g,focusVisibleClassName:wt(P.focusVisible,S),ref:n,type:k},R,{classes:P,children:[L,o,j]}))});function k5e(e){return dn("MuiCard",e)}hn("MuiCard",["root"]);const A5e=["className","raised"],_5e=e=>{const{classes:t}=e;return pn({root:["root"]},k5e,t)},C5e=lt(Gs,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),Kse=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiCard"}),{className:i,raised:a=!1}=r,s=Tt(r,A5e),o=Q({},r,{raised:a}),l=_5e(o);return I.jsx(C5e,Q({className:wt(l.root,i),elevation:a?8:void 0,ref:n,ownerState:o},s))});function R5e(e){return dn("MuiCardActionArea",e)}const CN=hn("MuiCardActionArea",["root","focusVisible","focusHighlight"]),I5e=["children","className","focusVisibleClassName"],N5e=e=>{const{classes:t}=e;return pn({root:["root"],focusHighlight:["focusHighlight"]},R5e,t)},D5e=lt(Mf,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${CN.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${CN.focusVisible} .${CN.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}})),P5e=lt("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})})),L5e=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiCardActionArea"}),{children:i,className:a,focusVisibleClassName:s}=r,o=Tt(r,I5e),l=r,u=N5e(l);return I.jsxs(D5e,Q({className:wt(u.root,a),focusVisibleClassName:wt(s,u.focusVisible),ref:n,ownerState:l},o,{children:[i,I.jsx(P5e,{className:u.focusHighlight,ownerState:l})]}))});function M5e(e){return dn("MuiCardContent",e)}hn("MuiCardContent",["root"]);const $5e=["className","component"],F5e=e=>{const{classes:t}=e;return pn({root:["root"]},M5e,t)},B5e=lt("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),U5e=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiCardContent"}),{className:i,component:a="div"}=r,s=Tt(r,$5e),o=Q({},r,{component:a}),l=F5e(o);return I.jsx(B5e,Q({as:a,className:wt(l.root,i),ownerState:o,ref:n},s))});function z5e(e){return dn("PrivateSwitchBase",e)}hn("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const j5e=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],H5e=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,a={root:["root",n&&"checked",r&&"disabled",i&&`edge${st(i)}`],input:["input"]};return pn(a,z5e,t)},Q5e=lt(Mf)(({ownerState:e})=>Q({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),W5e=lt("input",{shouldForwardProp:Ys})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),w$=M.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:a,className:s,defaultChecked:o,disabled:l,disableFocusRipple:u=!1,edge:d=!1,icon:f,id:p,inputProps:g,inputRef:O,name:S,onBlur:T,onChange:w,onFocus:x,readOnly:k,required:_=!1,tabIndex:R,type:N,value:P}=t,L=Tt(t,j5e),[j,B]=Cf({controlled:i,default:!!o,name:"SwitchBase",state:"checked"}),V=zf(),W=ie=>{x&&x(ie),V&&V.onFocus&&V.onFocus(ie)},re=ie=>{T&&T(ie),V&&V.onBlur&&V.onBlur(ie)},ee=ie=>{if(ie.nativeEvent.defaultPrevented)return;const H=ie.target.checked;B(H),w&&w(ie,H)};let q=l;V&&typeof q>"u"&&(q=V.disabled);const ne=N==="checkbox"||N==="radio",K=Q({},t,{checked:j,disabled:q,disableFocusRipple:u,edge:d}),G=H5e(K);return I.jsxs(Q5e,Q({component:"span",className:wt(G.root,s),centerRipple:!0,focusRipple:!u,disabled:q,tabIndex:null,role:void 0,onFocus:W,onBlur:re,ownerState:K,ref:n},L,{children:[I.jsx(W5e,Q({autoFocus:r,checked:i,defaultChecked:o,className:G.input,disabled:q,id:ne?p:void 0,name:S,onChange:ee,readOnly:k,ref:O,required:_,ownerState:K,tabIndex:R,type:N},N==="checkbox"&&P===void 0?{}:{value:P},g)),j?a:f]}))}),V5e=Id(I.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"),q5e=Id(I.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"),G5e=Id(I.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 Y5e(e){return dn("MuiCheckbox",e)}const RN=hn("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Z5e=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],X5e=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,a={root:["root",n&&"indeterminate",`color${st(r)}`,`size${st(i)}`]},s=pn(a,Y5e,t);return Q({},t,s)},K5e=lt(w$,{shouldForwardProp:e=>Ys(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${st(n.size)}`],n.color!=="default"&&t[`color${st(n.color)}`]]}})(({theme:e,ownerState:t})=>Q({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})`:Qn(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${RN.checked}, &.${RN.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${RN.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),J5e=I.jsx(q5e,{}),eRe=I.jsx(V5e,{}),tRe=I.jsx(G5e,{}),X5=M.forwardRef(function(t,n){var r,i;const a=mn({props:t,name:"MuiCheckbox"}),{checkedIcon:s=J5e,color:o="primary",icon:l=eRe,indeterminate:u=!1,indeterminateIcon:d=tRe,inputProps:f,size:p="medium",className:g}=a,O=Tt(a,Z5e),S=u?d:l,T=u?d:s,w=Q({},a,{color:o,indeterminate:u,size:p}),x=X5e(w);return I.jsx(K5e,Q({type:"checkbox",inputProps:Q({"data-indeterminate":u},f),icon:M.cloneElement(S,{fontSize:(r=S.props.fontSize)!=null?r:p}),checkedIcon:M.cloneElement(T,{fontSize:(i=T.props.fontSize)!=null?i:p}),ownerState:w,ref:n,className:wt(x.root,g)},O,{classes:x}))});function nRe(e){return dn("MuiCircularProgress",e)}hn("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const rRe=["className","color","disableShrink","size","style","thickness","value","variant"];let K5=e=>e,HG,QG,WG,VG;const Xp=44,iRe=Xv(HG||(HG=K5` 0% { transform: rotate(0deg); } @@ -134,7 +134,7 @@ Error generating stack: `+a.message+` 100% { transform: rotate(360deg); } -`)),gRe=oO(eY||(eY=eR` +`)),aRe=Xv(QG||(QG=K5` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; @@ -149,12 +149,12 @@ Error generating stack: `+a.message+` stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } -`)),bRe=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,a={root:["root",n,`color${lt(r)}`],svg:["svg"],circle:["circle",`circle${lt(n)}`,i&&"circleDisableShrink"]};return mn(a,hRe,t)},yRe=ct("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${lt(n.color)}`]]}})(({ownerState:e,theme:t})=>Q({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"&&E5(tY||(tY=eR` +`)),sRe=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,a={root:["root",n,`color${st(r)}`],svg:["svg"],circle:["circle",`circle${st(n)}`,i&&"circleDisableShrink"]};return pn(a,nRe,t)},oRe=lt("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${st(n.color)}`]]}})(({ownerState:e,theme:t})=>Q({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"&&O5(WG||(WG=K5` animation: ${0} 1.4s linear infinite; - `),mRe)),vRe=ct("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),ORe=ct("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${lt(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>Q({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&&E5(nY||(nY=eR` + `),iRe)),lRe=lt("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),uRe=lt("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${st(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>Q({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&&O5(VG||(VG=K5` animation: ${0} 1.4s ease-in-out infinite; - `),gRe)),kd=M.forwardRef(function(t,n){const r=bn({props:t,name:"MuiCircularProgress"}),{className:i,color:a="primary",disableShrink:s=!1,size:o=40,style:l,thickness:u=3.6,value:d=0,variant:f="indeterminate"}=r,p=kt(r,pRe),g=Q({},r,{color:a,disableShrink:s,size:o,thickness:u,value:d,variant:f}),O=bRe(g),S={},T={},w={};if(f==="determinate"){const x=2*Math.PI*((i0-u)/2);S.strokeDasharray=x.toFixed(3),w["aria-valuenow"]=Math.round(d),S.strokeDashoffset=`${((100-d)/100*x).toFixed(3)}px`,T.transform="rotate(-90deg)"}return I.jsx(yRe,Q({className:xt(O.root,i),style:Q({width:o,height:o},T,l),ownerState:g,ref:n,role:"progressbar"},w,p,{children:I.jsx(vRe,{className:O.svg,ownerState:g,viewBox:`${i0/2} ${i0/2} ${i0} ${i0}`,children:I.jsx(ORe,{className:O.circle,style:S,ownerState:g,cx:i0,cy:i0,r:(i0-u)/2,fill:"none",strokeWidth:u})})}))});function rY(e){return e.substring(2).toLowerCase()}function SRe(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const d=Sr(t.ref,o),f=Fs(O=>{const S=u.current;u.current=!1;const T=da(o.current);if(!l.current||!o.current||"clientX"in O&&SRe(O,T))return;if(s.current){s.current=!1;return}let w;O.composedPath?w=O.composedPath().indexOf(o.current)>-1:w=!T.documentElement.contains(O.target)||o.current.contains(O.target),!w&&(n||!S)&&i(O)}),p=O=>S=>{u.current=!0;const T=t.props[O];T&&T(S)},g={ref:d};return a!==!1&&(g[a]=p(a)),M.useEffect(()=>{if(a!==!1){const O=rY(a),S=da(o.current),T=()=>{s.current=!0};return S.addEventListener(O,f),S.addEventListener("touchmove",T),()=>{S.removeEventListener(O,f),S.removeEventListener("touchmove",T)}}},[f,a]),r!==!1&&(g[r]=p(r)),M.useEffect(()=>{if(r!==!1){const O=rY(r),S=da(o.current);return S.addEventListener(O,f),()=>{S.removeEventListener(O,f)}}},[f,r]),I.jsx(M.Fragment,{children:M.cloneElement(t,g)})}const D$=DAe({createStyledComponent:ct("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${lt(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>bn({props:e,name:"MuiContainer"})}),wRe=(e,t)=>Q({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),TRe=e=>Q({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}}),xRe=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,o])=>{var l;r[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(l=o.palette)==null?void 0:l.mode}});let i=Q({html:wRe(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:Q({margin:0},TRe(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const a=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return a&&(i=[i,a]),i};function kRe(e){const t=bn({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return I.jsxs(M.Fragment,{children:[I.jsx(ioe,{styles:i=>xRe(i,r)}),n]})}function ARe(e){const t=da(e);return t.body===e?Bf(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function s2(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function iY(e){return parseInt(Bf(e).getComputedStyle(e).paddingRight,10)||0}function _Re(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 aY(e,t,n,r,i){const a=[t,n,...r];[].forEach.call(e.children,s=>{const o=a.indexOf(s)===-1,l=!_Re(s);o&&l&&s2(s,i)})}function FN(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function CRe(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(ARe(r)){const s=Tse(da(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${iY(r)+s}px`;const o=da(r).querySelectorAll(".mui-fixed");[].forEach.call(o,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${iY(l)+s}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=da(r).body;else{const s=r.parentElement,o=Bf(r);a=(s==null?void 0:s.nodeName)==="HTML"&&o.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:s,property:o})=>{a?s.style.setProperty(o,a):s.style.removeProperty(o)})}}function RRe(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class IRe{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&&s2(t.modalRef,!1);const i=RRe(n);aY(n,t.mount,t.modalRef,i,!0);const a=FN(this.containers,s=>s.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=FN(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[r];i.restore||(i.restore=CRe(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=FN(this.containers,s=>s.modals.indexOf(t)!==-1),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&s2(t.modalRef,n),aY(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=a.modals[a.modals.length-1];s.modalRef&&s2(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const NRe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function DRe(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 PRe(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 LRe(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||PRe(e))}function MRe(e){const t=[],n=[];return Array.from(e.querySelectorAll(NRe)).forEach((r,i)=>{const a=DRe(r);a===-1||!LRe(r)||(a===0?t.push(r):n.push({documentOrder:i,tabIndex:a,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function $Re(){return!0}function FRe(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=MRe,isEnabled:s=$Re,open:o}=e,l=M.useRef(!1),u=M.useRef(null),d=M.useRef(null),f=M.useRef(null),p=M.useRef(null),g=M.useRef(!1),O=M.useRef(null),S=Sr(t.ref,O),T=M.useRef(null);M.useEffect(()=>{!o||!O.current||(g.current=!n)},[n,o]),M.useEffect(()=>{if(!o||!O.current)return;const k=da(O.current);return O.current.contains(k.activeElement)||(O.current.hasAttribute("tabIndex")||O.current.setAttribute("tabIndex","-1"),g.current&&O.current.focus()),()=>{i||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[o]),M.useEffect(()=>{if(!o||!O.current)return;const k=da(O.current),_=D=>{T.current=D,!(r||!s()||D.key!=="Tab")&&k.activeElement===O.current&&D.shiftKey&&(l.current=!0,d.current&&d.current.focus())},R=()=>{const D=O.current;if(D===null)return;if(!k.hasFocus()||!s()||l.current){l.current=!1;return}if(D.contains(k.activeElement)||r&&k.activeElement!==u.current&&k.activeElement!==d.current)return;if(k.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!g.current)return;let L=[];if((k.activeElement===u.current||k.activeElement===d.current)&&(L=a(O.current)),L.length>0){var j,B;const V=!!((j=T.current)!=null&&j.shiftKey&&((B=T.current)==null?void 0:B.key)==="Tab"),W=L[0],re=L[L.length-1];typeof W!="string"&&typeof re!="string"&&(V?re.focus():W.focus())}else D.focus()};k.addEventListener("focusin",R),k.addEventListener("keydown",_,!0);const N=setInterval(()=>{k.activeElement&&k.activeElement.tagName==="BODY"&&R()},50);return()=>{clearInterval(N),k.removeEventListener("focusin",R),k.removeEventListener("keydown",_,!0)}},[n,r,i,s,o,a]);const w=k=>{f.current===null&&(f.current=k.relatedTarget),g.current=!0,p.current=k.target;const _=t.props.onFocus;_&&_(k)},x=k=>{f.current===null&&(f.current=k.relatedTarget),g.current=!0};return I.jsxs(M.Fragment,{children:[I.jsx("div",{tabIndex:o?0:-1,onFocus:x,ref:u,"data-testid":"sentinelStart"}),M.cloneElement(t,{ref:S,onFocus:w}),I.jsx("div",{tabIndex:o?0:-1,onFocus:x,ref:d,"data-testid":"sentinelEnd"})]})}function BRe(e){return typeof e=="function"?e():e}function URe(e){return e?e.props.hasOwnProperty("in"):!1}const zRe=new IRe;function jRe(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=zRe,closeAfterTransition:a=!1,onTransitionEnter:s,onTransitionExited:o,children:l,onClose:u,open:d,rootRef:f}=e,p=M.useRef({}),g=M.useRef(null),O=M.useRef(null),S=Sr(O,f),[T,w]=M.useState(!d),x=URe(l);let k=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(k=!1);const _=()=>da(g.current),R=()=>(p.current.modalRef=O.current,p.current.mount=g.current,p.current),N=()=>{i.mount(R(),{disableScrollLock:r}),O.current&&(O.current.scrollTop=0)},D=Fs(()=>{const te=BRe(t)||_().body;i.add(R(),te),O.current&&N()}),L=M.useCallback(()=>i.isTopModal(R()),[i]),j=Fs(te=>{g.current=te,te&&(d&&L()?N():O.current&&s2(O.current,k))}),B=M.useCallback(()=>{i.remove(R(),k)},[k,i]);M.useEffect(()=>()=>{B()},[B]),M.useEffect(()=>{d?D():(!x||!a)&&B()},[d,B,x,a,D]);const V=te=>K=>{var G;(G=te.onKeyDown)==null||G.call(te,K),!(K.key!=="Escape"||K.which===229||!L())&&(n||(K.stopPropagation(),u&&u(K,"escapeKeyDown")))},W=te=>K=>{var G;(G=te.onClick)==null||G.call(te,K),K.target===K.currentTarget&&u&&u(K,"backdropClick")};return{getRootProps:(te={})=>{const K=r2(e);delete K.onTransitionEnter,delete K.onTransitionExited;const G=Q({},K,te);return Q({role:"presentation"},G,{onKeyDown:V(G),ref:S})},getBackdropProps:(te={})=>{const K=te;return Q({"aria-hidden":!0},K,{onClick:W(K),open:d})},getTransitionProps:()=>{const te=()=>{w(!1),s&&s()},K=()=>{w(!0),o&&o(),a&&B()};return{onEnter:sC(te,l==null?void 0:l.props.onEnter),onExited:sC(K,l==null?void 0:l.props.onExited)}},rootRef:S,portalRef:j,isTopModal:L,exited:T,hasTransition:x}}function HRe(e){return hn("MuiModal",e)}pn("MuiModal",["root","hidden","backdrop"]);const QRe=["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"],WRe=e=>{const{open:t,exited:n,classes:r}=e;return mn({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},HRe,r)},VRe=ct("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})=>Q({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),qRe=ct(hO,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),pO=M.forwardRef(function(t,n){var r,i,a,s,o,l;const u=bn({name:"MuiModal",props:t}),{BackdropComponent:d=qRe,BackdropProps:f,className:p,closeAfterTransition:g=!1,children:O,container:S,component:T,components:w={},componentsProps:x={},disableAutoFocus:k=!1,disableEnforceFocus:_=!1,disableEscapeKeyDown:R=!1,disablePortal:N=!1,disableRestoreFocus:D=!1,disableScrollLock:L=!1,hideBackdrop:j=!1,keepMounted:B=!1,onBackdropClick:V,open:W,slotProps:re,slots:ee}=u,q=kt(u,QRe),te=Q({},u,{closeAfterTransition:g,disableAutoFocus:k,disableEnforceFocus:_,disableEscapeKeyDown:R,disablePortal:N,disableRestoreFocus:D,disableScrollLock:L,hideBackdrop:j,keepMounted:B}),{getRootProps:K,getBackdropProps:G,getTransitionProps:ie,portalRef:H,isTopModal:Re,exited:Se,hasTransition:Z}=jRe(Q({},te,{rootRef:n})),ke=Q({},te,{exited:Se}),$e=WRe(ke),ae={};if(O.props.tabIndex===void 0&&(ae.tabIndex="-1"),Z){const{onEnter:Ht,onExited:ft}=ie();ae.onEnter=Ht,ae.onExited=ft}const Je=(r=(i=ee==null?void 0:ee.root)!=null?i:w.Root)!=null?r:VRe,We=(a=(s=ee==null?void 0:ee.backdrop)!=null?s:w.Backdrop)!=null?a:d,Xe=(o=re==null?void 0:re.root)!=null?o:x.root,At=(l=re==null?void 0:re.backdrop)!=null?l:x.backdrop,st=zo({elementType:Je,externalSlotProps:Xe,externalForwardedProps:q,getSlotProps:K,additionalProps:{ref:n,as:T},ownerState:ke,className:xt(p,Xe==null?void 0:Xe.className,$e==null?void 0:$e.root,!ke.open&&ke.exited&&($e==null?void 0:$e.hidden))}),Lt=zo({elementType:We,externalSlotProps:At,additionalProps:f,getSlotProps:Ht=>G(Q({},Ht,{onClick:ft=>{V&&V(ft),Ht!=null&&Ht.onClick&&Ht.onClick(ft)}})),className:xt(At==null?void 0:At.className,f==null?void 0:f.className,$e==null?void 0:$e.backdrop),ownerState:ke});return!B&&!W&&(!Z||Se)?null:I.jsx(eoe,{ref:H,container:S,disablePortal:N,children:I.jsxs(Je,Q({},st,{children:[!j&&d?I.jsx(We,Q({},Lt)):null,I.jsx(FRe,{disableEnforceFocus:_,disableAutoFocus:k,disableRestoreFocus:D,isEnabled:Re,open:W,children:M.cloneElement(O,ae)})]}))})});function GRe(e){return hn("MuiDivider",e)}const sY=pn("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),YRe=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],ZRe=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:a,orientation:s,textAlign:o,variant:l}=e;return mn({root:["root",t&&"absolute",l,a&&"light",s==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",o==="right"&&s!=="vertical"&&"textAlignRight",o==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},GRe,r)},XRe=ct("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})=>Q({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)`:Vn(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})=>Q({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>Q({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>Q({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>Q({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),KRe=ct("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>Q({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)`})),Iv=M.forwardRef(function(t,n){const r=bn({props:t,name:"MuiDivider"}),{absolute:i=!1,children:a,className:s,component:o=a?"div":"hr",flexItem:l=!1,light:u=!1,orientation:d="horizontal",role:f=o!=="hr"?"separator":void 0,textAlign:p="center",variant:g="fullWidth"}=r,O=kt(r,YRe),S=Q({},r,{absolute:i,component:o,flexItem:l,light:u,orientation:d,role:f,textAlign:p,variant:g}),T=ZRe(S);return I.jsx(XRe,Q({as:o,className:xt(T.root,s),role:f,ref:n,ownerState:S},O,{children:a?I.jsx(KRe,{className:T.wrapper,ownerState:S,children:a}):null}))});Iv.muiSkipListHighlight=!0;const JRe=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function eIe(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),a=Bf(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const u=a.getComputedStyle(t);s=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let o=0,l=0;if(s&&s!=="none"&&typeof s=="string"){const u=s.split("(")[1].split(")")[0].split(",");o=parseInt(u[4],10),l=parseInt(u[5],10)}return e==="left"?i?`translateX(${i.right+o-r.left}px)`:`translateX(${a.innerWidth+o-r.left}px)`:e==="right"?i?`translateX(-${r.right-i.left-o}px)`:`translateX(-${r.left+r.width-o}px)`:e==="up"?i?`translateY(${i.bottom+l-r.top}px)`:`translateY(${a.innerHeight+l-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function tIe(e){return typeof e=="function"?e():e}function hA(e,t,n){const r=tIe(n),i=eIe(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const nIe=M.forwardRef(function(t,n){const r=Hf(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:o=!0,children:l,container:u,direction:d="down",easing:f=i,in:p,onEnter:g,onEntered:O,onEntering:S,onExit:T,onExited:w,onExiting:x,style:k,timeout:_=a,TransitionComponent:R=Lc}=t,N=kt(t,JRe),D=M.useRef(null),L=Sr(l.ref,D,n),j=G=>ie=>{G&&(ie===void 0?G(D.current):G(D.current,ie))},B=j((G,ie)=>{hA(d,G,u),O$(G),g&&g(G,ie)}),V=j((G,ie)=>{const H=dm({timeout:_,style:k,easing:f},{mode:"enter"});G.style.webkitTransition=r.transitions.create("-webkit-transform",Q({},H)),G.style.transition=r.transitions.create("transform",Q({},H)),G.style.webkitTransform="none",G.style.transform="none",S&&S(G,ie)}),W=j(O),re=j(x),ee=j(G=>{const ie=dm({timeout:_,style:k,easing:f},{mode:"exit"});G.style.webkitTransition=r.transitions.create("-webkit-transform",ie),G.style.transition=r.transitions.create("transform",ie),hA(d,G,u),T&&T(G)}),q=j(G=>{G.style.webkitTransition="",G.style.transition="",w&&w(G)}),te=G=>{s&&s(D.current,G)},K=M.useCallback(()=>{D.current&&hA(d,D.current,u)},[d,u]);return M.useEffect(()=>{if(p||d==="down"||d==="right")return;const G=z5(()=>{D.current&&hA(d,D.current,u)}),ie=Bf(D.current);return ie.addEventListener("resize",G),()=>{G.clear(),ie.removeEventListener("resize",G)}},[d,p,u]),M.useEffect(()=>{p||K()},[p,K]),I.jsx(R,Q({nodeRef:D,onEnter:B,onEntered:W,onEntering:V,onExit:ee,onExited:q,onExiting:re,addEndListener:te,appear:o,in:p,timeout:_},N,{children:(G,ie)=>M.cloneElement(l,Q({ref:L,style:Q({visibility:G==="exited"&&!p?"hidden":void 0},k,l.props.style)},ie))}))}),rIe=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],iIe=e=>{const{classes:t,disableUnderline:n}=e,i=mn({root:["root",!n&&"underline"],input:["input"]},z3e,t);return Q({},t,i)},aIe=ct(X5,{shouldForwardProp:e=>Qs(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Y5(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",i=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",o=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Q({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${du.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${du.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:o}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${du.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${du.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(.${du.disabled}, .${du.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${du.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Q({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}))}),sIe=ct(K5,{name:"MuiFilledInput",slot:"Input",overridesResolver:Z5})(({theme:e,ownerState:t})=>Q({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})),P$=M.forwardRef(function(t,n){var r,i,a,s;const o=bn({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:d=!1,inputComponent:f="input",multiline:p=!1,slotProps:g,slots:O={},type:S="text"}=o,T=kt(o,rIe),w=Q({},o,{fullWidth:d,inputComponent:f,multiline:p,type:S}),x=iIe(o),k={root:{ownerState:w},input:{ownerState:w}},_=g??u?qo(k,g??u):k,R=(r=(i=O.root)!=null?i:l.Root)!=null?r:aIe,N=(a=(s=O.input)!=null?s:l.Input)!=null?a:sIe;return I.jsx(I$,Q({slots:{root:R,input:N},componentsProps:_,fullWidth:d,inputComponent:f,multiline:p,ref:n,type:S},T,{classes:x}))});P$.muiName="Input";function oIe(e){return hn("MuiFormControl",e)}pn("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const lIe=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],uIe=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${lt(n)}`,r&&"fullWidth"]};return mn(i,oIe,t)},cIe=ct("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>Q({},t.root,t[`margin${lt(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>Q({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%"})),Mc=M.forwardRef(function(t,n){const r=bn({props:t,name:"MuiFormControl"}),{children:i,className:a,color:s="primary",component:o="div",disabled:l=!1,error:u=!1,focused:d,fullWidth:f=!1,hiddenLabel:p=!1,margin:g="none",required:O=!1,size:S="medium",variant:T="outlined"}=r,w=kt(r,lIe),x=Q({},r,{color:s,component:o,disabled:l,error:u,fullWidth:f,hiddenLabel:p,margin:g,required:O,size:S,variant:T}),k=uIe(x),[_,R]=M.useState(()=>{let re=!1;return i&&M.Children.forEach(i,ee=>{if(!n2(ee,["Input","Select"]))return;const q=n2(ee,["Select"])?ee.props.input:ee;q&&D3e(q.props)&&(re=!0)}),re}),[N,D]=M.useState(()=>{let re=!1;return i&&M.Children.forEach(i,ee=>{n2(ee,["Input","Select"])&&(cC(ee.props,!0)||cC(ee.props.inputProps,!0))&&(re=!0)}),re}),[L,j]=M.useState(!1);l&&L&&j(!1);const B=d!==void 0&&!l?d:L;let V;const W=M.useMemo(()=>({adornedStart:_,setAdornedStart:R,color:s,disabled:l,error:u,filled:N,focused:B,fullWidth:f,hiddenLabel:p,size:S,onBlur:()=>{j(!1)},onEmpty:()=>{D(!1)},onFilled:()=>{D(!0)},onFocus:()=>{j(!0)},registerEffect:V,required:O,variant:T}),[_,s,l,u,N,B,f,p,V,O,S,T]);return I.jsx(G5.Provider,{value:W,children:I.jsx(cIe,Q({as:o,ownerState:x,className:xt(k.root,a),ref:n},w,{children:i}))})}),zn=zAe({createStyledComponent:ct("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>bn({props:e,name:"MuiStack"})});function dIe(e){return hn("MuiFormControlLabel",e)}const IE=pn("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),fIe=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],hIe=e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:a}=e,s={root:["root",n&&"disabled",`labelPlacement${lt(r)}`,i&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return mn(s,dIe,t)},pIe=ct("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${IE.label}`]:t.label},t.root,t[`labelPlacement${lt(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>Q({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${IE.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},{[`& .${IE.label}`]:{[`&.${IE.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),mIe=ct("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${IE.error}`]:{color:(e.vars||e).palette.error.main}})),ow=M.forwardRef(function(t,n){var r,i;const a=bn({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:o={},control:l,disabled:u,disableTypography:d,label:f,labelPlacement:p="end",required:g,slotProps:O={}}=a,S=kt(a,fIe),T=Qf(),w=(r=u??l.props.disabled)!=null?r:T==null?void 0:T.disabled,x=g??l.props.required,k={disabled:w,required:x};["checked","name","onChange","value","inputRef"].forEach(j=>{typeof l.props[j]>"u"&&typeof a[j]<"u"&&(k[j]=a[j])});const _=km({props:a,muiFormControl:T,states:["error"]}),R=Q({},a,{disabled:w,labelPlacement:p,required:x,error:_.error}),N=hIe(R),D=(i=O.typography)!=null?i:o.typography;let L=f;return L!=null&&L.type!==Tr&&!d&&(L=I.jsx(Tr,Q({component:"span"},D,{className:xt(N.label,D==null?void 0:D.className),children:L}))),I.jsxs(pIe,Q({className:xt(N.root,s),ownerState:R,ref:n},S,{children:[M.cloneElement(l,k),x?I.jsxs(zn,{display:"block",children:[L,I.jsxs(mIe,{ownerState:R,"aria-hidden":!0,className:N.asterisk,children:[" ","*"]})]}):L]}))});function gIe(e){return hn("MuiFormGroup",e)}pn("MuiFormGroup",["root","row","error"]);const bIe=["className","row"],yIe=e=>{const{classes:t,row:n,error:r}=e;return mn({root:["root",n&&"row",r&&"error"]},gIe,t)},vIe=ct("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>Q({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),L$=M.forwardRef(function(t,n){const r=bn({props:t,name:"MuiFormGroup"}),{className:i,row:a=!1}=r,s=kt(r,bIe),o=Qf(),l=km({props:r,muiFormControl:o,states:["error"]}),u=Q({},r,{row:a,error:l.error}),d=yIe(u);return I.jsx(vIe,Q({className:xt(d.root,i),ownerState:u,ref:n},s))});function OIe(e){return hn("MuiFormHelperText",e)}const oY=pn("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var lY;const SIe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],EIe=e=>{const{classes:t,contained:n,size:r,disabled:i,error:a,filled:s,focused:o,required:l}=e,u={root:["root",i&&"disabled",a&&"error",r&&`size${lt(r)}`,n&&"contained",o&&"focused",s&&"filled",l&&"required"]};return mn(u,OIe,t)},wIe=ct("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${lt(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>Q({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${oY.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${oY.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),mO=M.forwardRef(function(t,n){const r=bn({props:t,name:"MuiFormHelperText"}),{children:i,className:a,component:s="p"}=r,o=kt(r,SIe),l=Qf(),u=km({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),d=Q({},r,{component:s,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}),f=EIe(d);return I.jsx(wIe,Q({as:s,ownerState:d,className:xt(f.root,a),ref:n},o,{children:i===" "?lY||(lY=I.jsx("span",{className:"notranslate",children:"​"})):i}))});function TIe(e){return hn("MuiFormLabel",e)}const o2=pn("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),xIe=["children","className","color","component","disabled","error","filled","focused","required"],kIe=e=>{const{classes:t,color:n,focused:r,disabled:i,error:a,filled:s,required:o}=e,l={root:["root",`color${lt(n)}`,i&&"disabled",a&&"error",s&&"filled",r&&"focused",o&&"required"],asterisk:["asterisk",a&&"error"]};return mn(l,TIe,t)},AIe=ct("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>Q({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>Q({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${o2.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${o2.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${o2.error}`]:{color:(e.vars||e).palette.error.main}})),_Ie=ct("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${o2.error}`]:{color:(e.vars||e).palette.error.main}})),tR=M.forwardRef(function(t,n){const r=bn({props:t,name:"MuiFormLabel"}),{children:i,className:a,component:s="label"}=r,o=kt(r,xIe),l=Qf(),u=km({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),d=Q({},r,{color:u.color||"primary",component:s,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=kIe(d);return I.jsxs(AIe,Q({as:s,ownerState:d,className:xt(f.root,a),ref:n},o,{children:[i,u.required&&I.jsxs(_Ie,{ownerState:d,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),uY=M.createContext();function CIe(e){return hn("MuiGrid",e)}const RIe=[0,1,2,3,4,5,6,7,8,9,10],IIe=["column-reverse","column","row-reverse","row"],NIe=["nowrap","wrap-reverse","wrap"],YS=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],lw=pn("MuiGrid",["root","container","item","zeroMinWidth",...RIe.map(e=>`spacing-xs-${e}`),...IIe.map(e=>`direction-xs-${e}`),...NIe.map(e=>`wrap-xs-${e}`),...YS.map(e=>`grid-xs-${e}`),...YS.map(e=>`grid-sm-${e}`),...YS.map(e=>`grid-md-${e}`),...YS.map(e=>`grid-lg-${e}`),...YS.map(e=>`grid-xl-${e}`)]),DIe=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function By(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function PIe({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,i)=>{let a={};if(t[i]&&(n=t[i]),!n)return r;if(n===!0)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=e1({values:t.columns,breakpoints:e.breakpoints.values}),o=typeof s=="object"?s[i]:s;if(o==null)return r;const l=`${Math.round(n/o*1e8)/1e6}%`;let u={};if(t.container&&t.item&&t.columnSpacing!==0){const d=e.spacing(t.columnSpacing);if(d!=="0px"){const f=`calc(${l} + ${By(d)})`;u={flexBasis:f,maxWidth:f}}}a=Q({flexBasis:l,flexGrow:0,maxWidth:l},u)}return e.breakpoints.values[i]===0?Object.assign(r,a):r[e.breakpoints.up(i)]=a,r},{})}function LIe({theme:e,ownerState:t}){const n=e1({values:t.direction,breakpoints:e.breakpoints.values});return Ll({theme:e},n,r=>{const i={flexDirection:r};return r.indexOf("column")===0&&(i[`& > .${lw.item}`]={maxWidth:"none"}),i})}function loe({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(i=>{n===""&&t[i]!==0&&(n=i)});const r=Object.keys(e).sort((i,a)=>e[i]-e[a]);return r.slice(0,r.indexOf(n))}function MIe({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let i={};if(n&&r!==0){const a=e1({values:r,breakpoints:e.breakpoints.values});let s;typeof a=="object"&&(s=loe({breakpoints:e.breakpoints.values,values:a})),i=Ll({theme:e},a,(o,l)=>{var u;const d=e.spacing(o);return d!=="0px"?{marginTop:`-${By(d)}`,[`& > .${lw.item}`]:{paddingTop:By(d)}}:(u=s)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${lw.item}`]:{paddingTop:0}}})}return i}function $Ie({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let i={};if(n&&r!==0){const a=e1({values:r,breakpoints:e.breakpoints.values});let s;typeof a=="object"&&(s=loe({breakpoints:e.breakpoints.values,values:a})),i=Ll({theme:e},a,(o,l)=>{var u;const d=e.spacing(o);return d!=="0px"?{width:`calc(100% + ${By(d)})`,marginLeft:`-${By(d)}`,[`& > .${lw.item}`]:{paddingLeft:By(d)}}:(u=s)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${lw.item}`]:{paddingLeft:0}}})}return i}function FIe(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(i=>{const a=e[i];Number(a)>0&&r.push(n[`spacing-${i}-${String(a)}`])}),r}const BIe=ct("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:i,item:a,spacing:s,wrap:o,zeroMinWidth:l,breakpoints:u}=n;let d=[];r&&(d=FIe(s,u,t));const f=[];return u.forEach(p=>{const g=n[p];g&&f.push(t[`grid-${p}-${String(g)}`])}),[t.root,r&&t.container,a&&t.item,l&&t.zeroMinWidth,...d,i!=="row"&&t[`direction-xs-${String(i)}`],o!=="wrap"&&t[`wrap-xs-${String(o)}`],...f]}})(({ownerState:e})=>Q({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}),LIe,MIe,$Ie,PIe);function UIe(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const i=e[r];if(Number(i)>0){const a=`spacing-${r}-${String(i)}`;n.push(a)}}),n}const zIe=e=>{const{classes:t,container:n,direction:r,item:i,spacing:a,wrap:s,zeroMinWidth:o,breakpoints:l}=e;let u=[];n&&(u=UIe(a,l));const d=[];l.forEach(p=>{const g=e[p];g&&d.push(`grid-${p}-${String(g)}`)});const f={root:["root",n&&"container",i&&"item",o&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,s!=="wrap"&&`wrap-xs-${String(s)}`,...d]};return mn(f,CIe,t)},Oy=M.forwardRef(function(t,n){const r=bn({props:t,name:"MuiGrid"}),{breakpoints:i}=Hf(),a=pT(r),{className:s,columns:o,columnSpacing:l,component:u="div",container:d=!1,direction:f="row",item:p=!1,rowSpacing:g,spacing:O=0,wrap:S="wrap",zeroMinWidth:T=!1}=a,w=kt(a,DIe),x=g||O,k=l||O,_=M.useContext(uY),R=d?o||12:_,N={},D=Q({},w);i.keys.forEach(B=>{w[B]!=null&&(N[B]=w[B],delete D[B])});const L=Q({},a,{columns:R,container:d,direction:f,item:p,rowSpacing:x,columnSpacing:k,wrap:S,zeroMinWidth:T,spacing:O},N,{breakpoints:i.keys}),j=zIe(L);return I.jsx(uY.Provider,{value:R,children:I.jsx(BIe,Q({ownerState:L,className:xt(j.root,s),as:u,ref:n},D))})}),jIe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function GP(e){return`scale(${e}, ${e**2})`}const HIe={entering:{opacity:1,transform:GP(1)},entered:{opacity:1,transform:"none"}},BN=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),fC=M.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:a,easing:s,in:o,onEnter:l,onEntered:u,onEntering:d,onExit:f,onExited:p,onExiting:g,style:O,timeout:S="auto",TransitionComponent:T=Lc}=t,w=kt(t,jIe),x=Dg(),k=M.useRef(),_=Hf(),R=M.useRef(null),N=Sr(R,a.ref,n),D=q=>te=>{if(q){const K=R.current;te===void 0?q(K):q(K,te)}},L=D(d),j=D((q,te)=>{O$(q);const{duration:K,delay:G,easing:ie}=dm({style:O,timeout:S,easing:s},{mode:"enter"});let H;S==="auto"?(H=_.transitions.getAutoHeightDuration(q.clientHeight),k.current=H):H=K,q.style.transition=[_.transitions.create("opacity",{duration:H,delay:G}),_.transitions.create("transform",{duration:BN?H:H*.666,delay:G,easing:ie})].join(","),l&&l(q,te)}),B=D(u),V=D(g),W=D(q=>{const{duration:te,delay:K,easing:G}=dm({style:O,timeout:S,easing:s},{mode:"exit"});let ie;S==="auto"?(ie=_.transitions.getAutoHeightDuration(q.clientHeight),k.current=ie):ie=te,q.style.transition=[_.transitions.create("opacity",{duration:ie,delay:K}),_.transitions.create("transform",{duration:BN?ie:ie*.666,delay:BN?K:K||ie*.333,easing:G})].join(","),q.style.opacity=0,q.style.transform=GP(.75),f&&f(q)}),re=D(p),ee=q=>{S==="auto"&&x.start(k.current||0,q),r&&r(R.current,q)};return I.jsx(T,Q({appear:i,in:o,nodeRef:R,onEnter:j,onEntered:B,onEntering:L,onExit:W,onExited:re,onExiting:V,addEndListener:ee,timeout:S==="auto"?null:S},w,{children:(q,te)=>M.cloneElement(a,Q({style:Q({opacity:0,transform:GP(.75),visibility:q==="exited"&&!o?"hidden":void 0},HIe[q],O,a.props.style),ref:N},te))}))});fC.muiSupportAuto=!0;function QIe(e){return hn("MuiIcon",e)}pn("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const WIe=["baseClassName","className","color","component","fontSize"],VIe=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${lt(t)}`,`fontSize${lt(n)}`]};return mn(i,QIe,r)},qIe=ct("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${lt(n.color)}`],t[`fontSize${lt(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:e.typography.pxToRem(20),medium:e.typography.pxToRem(24),large:e.typography.pxToRem(36)}[t.fontSize],color:{primary:(e.vars||e).palette.primary.main,secondary:(e.vars||e).palette.secondary.main,info:(e.vars||e).palette.info.main,success:(e.vars||e).palette.success.main,warning:(e.vars||e).palette.warning.main,action:(e.vars||e).palette.action.active,error:(e.vars||e).palette.error.main,disabled:(e.vars||e).palette.action.disabled,inherit:void 0}[t.color]})),uoe=M.forwardRef(function(t,n){const r=bn({props:t,name:"MuiIcon"}),{baseClassName:i="material-icons",className:a,color:s="inherit",component:o="span",fontSize:l="medium"}=r,u=kt(r,WIe),d=Q({},r,{baseClassName:i,color:s,component:o,fontSize:l}),f=VIe(d);return I.jsx(qIe,Q({as:o,className:xt(i,"notranslate",f.root,a),ownerState:d,"aria-hidden":!0,ref:n},u))});uoe.muiName="Icon";const GIe=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],YIe=e=>{const{classes:t,disableUnderline:n}=e,i=mn({root:["root",!n&&"underline"],input:["input"]},B3e,t);return Q({},t,i)},ZIe=ct(X5,{shouldForwardProp:e=>Qs(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Y5(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})`),Q({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"},[`&.${E0.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${E0.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(.${E0.disabled}, .${E0.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${E0.disabled}:before`]:{borderBottomStyle:"dotted"}})}),XIe=ct(K5,{name:"MuiInput",slot:"Input",overridesResolver:Z5})({}),M$=M.forwardRef(function(t,n){var r,i,a,s;const o=bn({props:t,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:d,fullWidth:f=!1,inputComponent:p="input",multiline:g=!1,slotProps:O,slots:S={},type:T="text"}=o,w=kt(o,GIe),x=YIe(o),_={root:{ownerState:{disableUnderline:l}}},R=O??d?qo(O??d,_):_,N=(r=(i=S.root)!=null?i:u.Root)!=null?r:ZIe,D=(a=(s=S.input)!=null?s:u.Input)!=null?a:XIe;return I.jsx(I$,Q({slots:{root:N,input:D},slotProps:R,fullWidth:f,inputComponent:p,multiline:g,ref:n,type:T},w,{classes:x}))});M$.muiName="Input";function KIe(e){return hn("MuiInputAdornment",e)}const cY=pn("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var dY;const JIe=["children","className","component","disablePointerEvents","disableTypography","position","variant"],e6e=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${lt(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},t6e=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:a,variant:s}=e,o={root:["root",n&&"disablePointerEvents",i&&`position${lt(i)}`,s,r&&"hiddenLabel",a&&`size${lt(a)}`]};return mn(o,KIe,t)},n6e=ct("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:e6e})(({theme:e,ownerState:t})=>Q({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${cY.positionStart}&:not(.${cY.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),YP=M.forwardRef(function(t,n){const r=bn({props:t,name:"MuiInputAdornment"}),{children:i,className:a,component:s="div",disablePointerEvents:o=!1,disableTypography:l=!1,position:u,variant:d}=r,f=kt(r,JIe),p=Qf()||{};let g=d;d&&p.variant,p&&!g&&(g=p.variant);const O=Q({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:o,position:u,variant:g}),S=t6e(O);return I.jsx(G5.Provider,{value:null,children:I.jsx(n6e,Q({as:s,ownerState:O,className:xt(S.root,a),ref:n},f,{children:typeof i=="string"&&!l?I.jsx(Tr,{color:"text.secondary",children:i}):I.jsxs(M.Fragment,{children:[u==="start"?dY||(dY=I.jsx("span",{className:"notranslate",children:"​"})):null,i]})}))})});function r6e(e){return hn("MuiInputLabel",e)}pn("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const i6e=["disableAnimation","margin","shrink","variant","className"],a6e=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:a,variant:s,required:o}=e,l={root:["root",n&&"formControl",!a&&"animated",i&&"shrink",r&&r!=="normal"&&`size${lt(r)}`,s],asterisk:[o&&"asterisk"]},u=mn(l,r6e,t);return Q({},t,u)},s6e=ct(tR,{shouldForwardProp:e=>Qs(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${o2.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>Q({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"&&Q({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&&Q({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"&&Q({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)"}))),coe=M.forwardRef(function(t,n){const r=bn({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:a,className:s}=r,o=kt(r,i6e),l=Qf();let u=a;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const d=km({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),f=Q({},r,{disableAnimation:i,formControl:l,shrink:u,size:d.size,variant:d.variant,required:d.required,focused:d.focused}),p=a6e(f);return I.jsx(s6e,Q({"data-shrink":u,ownerState:f,ref:n,className:xt(p.root,s)},o,{classes:p}))}),Oc=M.createContext({});function o6e(e){return hn("MuiList",e)}pn("MuiList",["root","padding","dense","subheader"]);const l6e=["children","className","component","dense","disablePadding","subheader"],u6e=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return mn({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},o6e,t)},c6e=ct("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})=>Q({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),doe=M.forwardRef(function(t,n){const r=bn({props:t,name:"MuiList"}),{children:i,className:a,component:s="ul",dense:o=!1,disablePadding:l=!1,subheader:u}=r,d=kt(r,l6e),f=M.useMemo(()=>({dense:o}),[o]),p=Q({},r,{component:s,dense:o,disablePadding:l}),g=u6e(p);return I.jsx(Oc.Provider,{value:f,children:I.jsxs(c6e,Q({as:s,className:xt(g.root,a),ref:n,ownerState:p},d,{children:[u,i]}))})});function d6e(e){return hn("MuiListItem",e)}const Yb=pn("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function f6e(e){return hn("MuiListItemButton",e)}const Zb=pn("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),h6e=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],p6e=(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]},m6e=e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:a,divider:s,selected:o}=e,u=mn({root:["root",r&&"dense",!a&&"gutters",s&&"divider",i&&"disabled",t==="flex-start"&&"alignItemsFlexStart",o&&"selected"]},f6e,n);return Q({},n,u)},g6e=ct(Uf,{shouldForwardProp:e=>Qs(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:p6e})(({theme:e,ownerState:t})=>Q({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"}},[`&.${Zb.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Vn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Zb.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Vn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Zb.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Vn(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})`:Vn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Zb.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Zb.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})),fY=M.forwardRef(function(t,n){const r=bn({props:t,name:"MuiListItemButton"}),{alignItems:i="center",autoFocus:a=!1,component:s="div",children:o,dense:l=!1,disableGutters:u=!1,divider:d=!1,focusVisibleClassName:f,selected:p=!1,className:g}=r,O=kt(r,h6e),S=M.useContext(Oc),T=M.useMemo(()=>({dense:l||S.dense||!1,alignItems:i,disableGutters:u}),[i,S.dense,l,u]),w=M.useRef(null);Zo(()=>{a&&w.current&&w.current.focus()},[a]);const x=Q({},r,{alignItems:i,dense:T.dense,disableGutters:u,divider:d,selected:p}),k=m6e(x),_=Sr(w,n);return I.jsx(Oc.Provider,{value:T,children:I.jsx(g6e,Q({ref:_,href:O.href||O.to,component:(O.href||O.to)&&s==="div"?"button":s,focusVisibleClassName:xt(k.focusVisible,f),ownerState:x,className:xt(k.root,g)},O,{classes:k,children:o}))})});function b6e(e){return hn("MuiListItemSecondaryAction",e)}pn("MuiListItemSecondaryAction",["root","disableGutters"]);const y6e=["className"],v6e=e=>{const{disableGutters:t,classes:n}=e;return mn({root:["root",t&&"disableGutters"]},b6e,n)},O6e=ct("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>Q({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),$$=M.forwardRef(function(t,n){const r=bn({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=r,a=kt(r,y6e),s=M.useContext(Oc),o=Q({},r,{disableGutters:s.disableGutters}),l=v6e(o);return I.jsx(O6e,Q({className:xt(l.root,i),ownerState:o,ref:n},a))});$$.muiName="ListItemSecondaryAction";const S6e=["className"],E6e=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],w6e=(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]},T6e=e=>{const{alignItems:t,button:n,classes:r,dense:i,disabled:a,disableGutters:s,disablePadding:o,divider:l,hasSecondaryAction:u,selected:d}=e;return mn({root:["root",i&&"dense",!s&&"gutters",!o&&"padding",l&&"divider",a&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",d&&"selected"],container:["container"]},d6e,r)},x6e=ct("div",{name:"MuiListItem",slot:"Root",overridesResolver:w6e})(({theme:e,ownerState:t})=>Q({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&Q({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Zb.root}`]:{paddingRight:48}},{[`&.${Yb.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Yb.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Vn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Yb.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Vn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Yb.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"}},[`&.${Yb.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Vn(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})`:Vn(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),k6e=ct("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),A6e=M.forwardRef(function(t,n){const r=bn({props:t,name:"MuiListItem"}),{alignItems:i="center",autoFocus:a=!1,button:s=!1,children:o,className:l,component:u,components:d={},componentsProps:f={},ContainerComponent:p="li",ContainerProps:{className:g}={},dense:O=!1,disabled:S=!1,disableGutters:T=!1,disablePadding:w=!1,divider:x=!1,focusVisibleClassName:k,secondaryAction:_,selected:R=!1,slotProps:N={},slots:D={}}=r,L=kt(r.ContainerProps,S6e),j=kt(r,E6e),B=M.useContext(Oc),V=M.useMemo(()=>({dense:O||B.dense||!1,alignItems:i,disableGutters:T}),[i,B.dense,O,T]),W=M.useRef(null);Zo(()=>{a&&W.current&&W.current.focus()},[a]);const re=M.Children.toArray(o),ee=re.length&&n2(re[re.length-1],["ListItemSecondaryAction"]),q=Q({},r,{alignItems:i,autoFocus:a,button:s,dense:V.dense,disabled:S,disableGutters:T,disablePadding:w,divider:x,hasSecondaryAction:ee,selected:R}),te=T6e(q),K=Sr(W,n),G=D.root||d.Root||x6e,ie=N.root||f.root||{},H=Q({className:xt(te.root,ie.className,l),disabled:S},j);let Re=u||"li";return s&&(H.component=u||"div",H.focusVisibleClassName=xt(Yb.focusVisible,k),Re=Uf),ee?(Re=!H.component&&!u?"div":Re,p==="li"&&(Re==="li"?Re="div":H.component==="li"&&(H.component="div")),I.jsx(Oc.Provider,{value:V,children:I.jsxs(k6e,Q({as:p,className:xt(te.container,g),ref:K,ownerState:q},L,{children:[I.jsx(G,Q({},ie,!Pf(G)&&{as:Re,ownerState:Q({},q,ie.ownerState)},H,{children:re})),re.pop()]}))})):I.jsx(Oc.Provider,{value:V,children:I.jsxs(G,Q({},ie,{as:Re,ref:K},!Pf(G)&&{ownerState:Q({},q,ie.ownerState)},H,{children:[re,_&&I.jsx($$,{children:_})]}))})});function _6e(e){return hn("MuiListItemAvatar",e)}pn("MuiListItemAvatar",["root","alignItemsFlexStart"]);const C6e=["className"],R6e=e=>{const{alignItems:t,classes:n}=e;return mn({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},_6e,n)},I6e=ct("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>Q({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),N6e=M.forwardRef(function(t,n){const r=bn({props:t,name:"MuiListItemAvatar"}),{className:i}=r,a=kt(r,C6e),s=M.useContext(Oc),o=Q({},r,{alignItems:s.alignItems}),l=R6e(o);return I.jsx(I6e,Q({className:xt(l.root,i),ownerState:o,ref:n},a))});function D6e(e){return hn("MuiListItemIcon",e)}const hY=pn("MuiListItemIcon",["root","alignItemsFlexStart"]),P6e=["className"],L6e=e=>{const{alignItems:t,classes:n}=e;return mn({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},D6e,n)},M6e=ct("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})=>Q({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),r1=M.forwardRef(function(t,n){const r=bn({props:t,name:"MuiListItemIcon"}),{className:i}=r,a=kt(r,P6e),s=M.useContext(Oc),o=Q({},r,{alignItems:s.alignItems}),l=L6e(o);return I.jsx(M6e,Q({className:xt(l.root,i),ownerState:o,ref:n},a))});function $6e(e){return hn("MuiListItemText",e)}const hC=pn("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),F6e=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],B6e=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:a}=e;return mn({root:["root",n&&"inset",a&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},$6e,t)},U6e=ct("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${hC.primary}`]:t.primary},{[`& .${hC.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>Q({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Kh=M.forwardRef(function(t,n){const r=bn({props:t,name:"MuiListItemText"}),{children:i,className:a,disableTypography:s=!1,inset:o=!1,primary:l,primaryTypographyProps:u,secondary:d,secondaryTypographyProps:f}=r,p=kt(r,F6e),{dense:g}=M.useContext(Oc);let O=l??i,S=d;const T=Q({},r,{disableTypography:s,inset:o,primary:!!O,secondary:!!S,dense:g}),w=B6e(T);return O!=null&&O.type!==Tr&&!s&&(O=I.jsx(Tr,Q({variant:g?"body2":"body1",className:w.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:O}))),S!=null&&S.type!==Tr&&!s&&(S=I.jsx(Tr,Q({variant:"body2",className:w.secondary,color:"text.secondary",display:"block"},f,{children:S}))),I.jsxs(U6e,Q({className:xt(w.root,a),ownerState:T,ref:n},p,{children:[O,S]}))}),z6e=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function UN(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function pY(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function foe(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 ZS(e,t,n,r,i,a){let s=!1,o=i(e,t,t?n:!1);for(;o;){if(o===e.firstChild){if(s)return!1;s=!0}const l=r?!1:o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||!foe(o,a)||l)o=i(e,o,n);else return o.focus(),!0}return!1}const uw=M.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:a=!1,children:s,className:o,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:d,variant:f="selectedMenu"}=t,p=kt(t,z6e),g=M.useRef(null),O=M.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Zo(()=>{i&&g.current.focus()},[i]),M.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(k,{direction:_})=>{const R=!g.current.style.width;if(k.clientHeight{const _=g.current,R=k.key,N=da(_).activeElement;if(R==="ArrowDown")k.preventDefault(),ZS(_,N,u,l,UN);else if(R==="ArrowUp")k.preventDefault(),ZS(_,N,u,l,pY);else if(R==="Home")k.preventDefault(),ZS(_,null,u,l,UN);else if(R==="End")k.preventDefault(),ZS(_,null,u,l,pY);else if(R.length===1){const D=O.current,L=R.toLowerCase(),j=performance.now();D.keys.length>0&&(j-D.lastTime>500?(D.keys=[],D.repeating=!0,D.previousKeyMatched=!0):D.repeating&&L!==D.keys[0]&&(D.repeating=!1)),D.lastTime=j,D.keys.push(L);const B=N&&!D.repeating&&foe(N,D);D.previousKeyMatched&&(B||ZS(_,N,!1,l,UN,D))?k.preventDefault():D.previousKeyMatched=!1}d&&d(k)},T=Sr(g,n);let w=-1;M.Children.forEach(s,(k,_)=>{if(!M.isValidElement(k)){w===_&&(w+=1,w>=s.length&&(w=-1));return}k.props.disabled||(f==="selectedMenu"&&k.props.selected||w===-1)&&(w=_),w===_&&(k.props.disabled||k.props.muiSkipListHighlight||k.type.muiSkipListHighlight)&&(w+=1,w>=s.length&&(w=-1))});const x=M.Children.map(s,(k,_)=>{if(_===w){const R={};return a&&(R.autoFocus=!0),k.props.tabIndex===void 0&&f==="selectedMenu"&&(R.tabIndex=0),M.cloneElement(k,R)}return k});return I.jsx(doe,Q({role:"menu",ref:T,className:o,onKeyDown:S,tabIndex:i?0:-1},p,{children:x}))});function j6e(e){return hn("MuiPopover",e)}pn("MuiPopover",["root","paper"]);const H6e=["onEntering"],Q6e=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],W6e=["slotProps"];function mY(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function gY(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function bY(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function zN(e){return typeof e=="function"?e():e}const V6e=e=>{const{classes:t}=e;return mn({root:["root"],paper:["paper"]},j6e,t)},q6e=ct(pO,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),hoe=ct(Hs,{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}),gO=M.forwardRef(function(t,n){var r,i,a;const s=bn({props:t,name:"MuiPopover"}),{action:o,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:f="anchorEl",children:p,className:g,container:O,elevation:S=8,marginThreshold:T=16,open:w,PaperProps:x={},slots:k,slotProps:_,transformOrigin:R={vertical:"top",horizontal:"left"},TransitionComponent:N=fC,transitionDuration:D="auto",TransitionProps:{onEntering:L}={},disableScrollLock:j=!1}=s,B=kt(s.TransitionProps,H6e),V=kt(s,Q6e),W=(r=_==null?void 0:_.paper)!=null?r:x,re=M.useRef(),ee=Sr(re,W.ref),q=Q({},s,{anchorOrigin:u,anchorReference:f,elevation:S,marginThreshold:T,externalPaperSlotProps:W,transformOrigin:R,TransitionComponent:N,transitionDuration:D,TransitionProps:B}),te=V6e(q),K=M.useCallback(()=>{if(f==="anchorPosition")return d;const Ht=zN(l),Et=(Ht&&Ht.nodeType===1?Ht:da(re.current).body).getBoundingClientRect();return{top:Et.top+mY(Et,u.vertical),left:Et.left+gY(Et,u.horizontal)}},[l,u.horizontal,u.vertical,d,f]),G=M.useCallback(Ht=>({vertical:mY(Ht,R.vertical),horizontal:gY(Ht,R.horizontal)}),[R.horizontal,R.vertical]),ie=M.useCallback(Ht=>{const ft={width:Ht.offsetWidth,height:Ht.offsetHeight},Et=G(ft);if(f==="none")return{top:null,left:null,transformOrigin:bY(Et)};const Ot=K();let zt=Ot.top-Et.vertical,de=Ot.left-Et.horizontal;const _e=zt+ft.height,Ne=de+ft.width,et=Bf(zN(l)),dt=et.innerHeight-T,tt=et.innerWidth-T;if(T!==null&&ztdt){const yt=_e-dt;zt-=yt,Et.vertical+=yt}if(T!==null&&dett){const yt=Ne-tt;de-=yt,Et.horizontal+=yt}return{top:`${Math.round(zt)}px`,left:`${Math.round(de)}px`,transformOrigin:bY(Et)}},[l,f,K,G,T]),[H,Re]=M.useState(w),Se=M.useCallback(()=>{const Ht=re.current;if(!Ht)return;const ft=ie(Ht);ft.top!==null&&(Ht.style.top=ft.top),ft.left!==null&&(Ht.style.left=ft.left),Ht.style.transformOrigin=ft.transformOrigin,Re(!0)},[ie]);M.useEffect(()=>(j&&window.addEventListener("scroll",Se),()=>window.removeEventListener("scroll",Se)),[l,j,Se]);const Z=(Ht,ft)=>{L&&L(Ht,ft),Se()},ke=()=>{Re(!1)};M.useEffect(()=>{w&&Se()}),M.useImperativeHandle(o,()=>w?{updatePosition:()=>{Se()}}:null,[w,Se]),M.useEffect(()=>{if(!w)return;const Ht=z5(()=>{Se()}),ft=Bf(l);return ft.addEventListener("resize",Ht),()=>{Ht.clear(),ft.removeEventListener("resize",Ht)}},[l,w,Se]);let $e=D;D==="auto"&&!N.muiSupportAuto&&($e=void 0);const ae=O||(l?da(zN(l)).body:void 0),Je=(i=k==null?void 0:k.root)!=null?i:q6e,We=(a=k==null?void 0:k.paper)!=null?a:hoe,Xe=zo({elementType:We,externalSlotProps:Q({},W,{style:H?W.style:Q({},W.style,{opacity:0})}),additionalProps:{elevation:S,ref:ee},ownerState:q,className:xt(te.paper,W==null?void 0:W.className)}),At=zo({elementType:Je,externalSlotProps:(_==null?void 0:_.root)||{},externalForwardedProps:V,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:ae,open:w},ownerState:q,className:xt(te.root,g)}),{slotProps:st}=At,Lt=kt(At,W6e);return I.jsx(Je,Q({},Lt,!Pf(Je)&&{slotProps:st,disableScrollLock:j},{children:I.jsx(N,Q({appear:!0,in:w,onEntering:Z,onExited:ke,timeout:$e},B,{children:I.jsx(We,Q({},Xe,{children:p}))}))}))});function G6e(e){return hn("MuiMenu",e)}pn("MuiMenu",["root","paper","list"]);const Y6e=["onEntering"],Z6e=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],X6e={vertical:"top",horizontal:"right"},K6e={vertical:"top",horizontal:"left"},J6e=e=>{const{classes:t}=e;return mn({root:["root"],paper:["paper"],list:["list"]},G6e,t)},eNe=ct(gO,{shouldForwardProp:e=>Qs(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),tNe=ct(hoe,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),nNe=ct(uw,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),poe=M.forwardRef(function(t,n){var r,i;const a=bn({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:o,className:l,disableAutoFocusItem:u=!1,MenuListProps:d={},onClose:f,open:p,PaperProps:g={},PopoverClasses:O,transitionDuration:S="auto",TransitionProps:{onEntering:T}={},variant:w="selectedMenu",slots:x={},slotProps:k={}}=a,_=kt(a.TransitionProps,Y6e),R=kt(a,Z6e),N=f$(),D=Q({},a,{autoFocus:s,disableAutoFocusItem:u,MenuListProps:d,onEntering:T,PaperProps:g,transitionDuration:S,TransitionProps:_,variant:w}),L=J6e(D),j=s&&!u&&p,B=M.useRef(null),V=(G,ie)=>{B.current&&B.current.adjustStyleForScrollbar(G,{direction:N?"rtl":"ltr"}),T&&T(G,ie)},W=G=>{G.key==="Tab"&&(G.preventDefault(),f&&f(G,"tabKeyDown"))};let re=-1;M.Children.map(o,(G,ie)=>{M.isValidElement(G)&&(G.props.disabled||(w==="selectedMenu"&&G.props.selected||re===-1)&&(re=ie))});const ee=(r=x.paper)!=null?r:tNe,q=(i=k.paper)!=null?i:g,te=zo({elementType:x.root,externalSlotProps:k.root,ownerState:D,className:[L.root,l]}),K=zo({elementType:ee,externalSlotProps:q,ownerState:D,className:L.paper});return I.jsx(eNe,Q({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:N?"right":"left"},transformOrigin:N?X6e:K6e,slots:{paper:ee,root:x.root},slotProps:{root:te,paper:K},open:p,ref:n,transitionDuration:S,TransitionProps:Q({onEntering:V},_),ownerState:D},R,{classes:O,children:I.jsx(nNe,Q({onKeyDown:W,actions:B,autoFocus:s&&(re===-1||u),autoFocusItem:j,variant:w},d,{className:xt(L.list,d.className),children:o}))}))});function rNe(e){return hn("MuiMenuItem",e)}const XS=pn("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),iNe=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],aNe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},sNe=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:a,classes:s}=e,l=mn({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",a&&"selected"]},rNe,s);return Q({},s,l)},oNe=ct(Uf,{shouldForwardProp:e=>Qs(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:aNe})(({theme:e,ownerState:t})=>Q({},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"}},[`&.${XS.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Vn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${XS.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Vn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${XS.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Vn(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})`:Vn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${XS.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${XS.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${sY.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${sY.inset}`]:{marginLeft:52},[`& .${hC.root}`]:{marginTop:0,marginBottom:0},[`& .${hC.inset}`]:{paddingLeft:36},[`& .${hY.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Q({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${hY.root} svg`]:{fontSize:"1.25rem"}}))),Od=M.forwardRef(function(t,n){const r=bn({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:a="li",dense:s=!1,divider:o=!1,disableGutters:l=!1,focusVisibleClassName:u,role:d="menuitem",tabIndex:f,className:p}=r,g=kt(r,iNe),O=M.useContext(Oc),S=M.useMemo(()=>({dense:s||O.dense||!1,disableGutters:l}),[O.dense,s,l]),T=M.useRef(null);Zo(()=>{i&&T.current&&T.current.focus()},[i]);const w=Q({},r,{dense:S.dense,divider:o,disableGutters:l}),x=sNe(r),k=Sr(T,n);let _;return r.disabled||(_=f!==void 0?f:-1),I.jsx(Oc.Provider,{value:S,children:I.jsx(oNe,Q({ref:k,role:d,tabIndex:_,component:a,focusVisibleClassName:xt(x.focusVisible,u),className:xt(x.root,p)},g,{ownerState:w,classes:x}))})});function lNe(e){return hn("MuiNativeSelect",e)}const F$=pn("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),uNe=["className","disabled","error","IconComponent","inputRef","variant"],cNe=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,o={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${lt(n)}`,a&&"iconOpen",r&&"disabled"]};return mn(o,lNe,t)},moe=({ownerState:e,theme:t})=>Q({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Q({},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"},[`&.${F$.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}}),dNe=ct("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Qs,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${F$.multiple}`]:t.multiple}]}})(moe),goe=({ownerState:e,theme:t})=>Q({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${F$.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),fNe=ct("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${lt(n.variant)}`],n.open&&t.iconOpen]}})(goe),hNe=M.forwardRef(function(t,n){const{className:r,disabled:i,error:a,IconComponent:s,inputRef:o,variant:l="standard"}=t,u=kt(t,uNe),d=Q({},t,{disabled:i,variant:l,error:a}),f=cNe(d);return I.jsxs(M.Fragment,{children:[I.jsx(dNe,Q({ownerState:d,className:xt(f.select,r),disabled:i,ref:o||n},u)),t.multiple?null:I.jsx(fNe,{as:s,ownerState:d,className:f.icon})]})});var yY;const pNe=["children","classes","className","label","notched"],mNe=ct("fieldset",{shouldForwardProp:Qs})({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%"}),gNe=ct("legend",{shouldForwardProp:Qs})(({ownerState:e,theme:t})=>Q({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&&Q({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 bNe(e){const{className:t,label:n,notched:r}=e,i=kt(e,pNe),a=n!=null&&n!=="",s=Q({},e,{notched:r,withLabel:a});return I.jsx(mNe,Q({"aria-hidden":!0,className:t,ownerState:s},i,{children:I.jsx(gNe,{ownerState:s,children:a?I.jsx("span",{children:n}):yY||(yY=I.jsx("span",{className:"notranslate",children:"​"}))})}))}const yNe=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],vNe=e=>{const{classes:t}=e,r=mn({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},U3e,t);return Q({},t,r)},ONe=ct(X5,{shouldForwardProp:e=>Qs(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Y5})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Q({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${lf.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${lf.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${lf.focused} .${lf.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${lf.error} .${lf.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${lf.disabled} .${lf.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Q({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),SNe=ct(bNe,{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}}),ENe=ct(K5,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Z5})(({theme:e,ownerState:t})=>Q({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})),B$=M.forwardRef(function(t,n){var r,i,a,s,o;const l=bn({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:d=!1,inputComponent:f="input",label:p,multiline:g=!1,notched:O,slots:S={},type:T="text"}=l,w=kt(l,yNe),x=vNe(l),k=Qf(),_=km({props:l,muiFormControl:k,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),R=Q({},l,{color:_.color||"primary",disabled:_.disabled,error:_.error,focused:_.focused,formControl:k,fullWidth:d,hiddenLabel:_.hiddenLabel,multiline:g,size:_.size,type:T}),N=(r=(i=S.root)!=null?i:u.Root)!=null?r:ONe,D=(a=(s=S.input)!=null?s:u.Input)!=null?a:ENe;return I.jsx(I$,Q({slots:{root:N,input:D},renderSuffix:L=>I.jsx(SNe,{ownerState:R,className:x.notchedOutline,label:p!=null&&p!==""&&_.required?o||(o=I.jsxs(M.Fragment,{children:[p," ","*"]})):p,notched:typeof O<"u"?O:!!(L.startAdornment||L.filled||L.focused)}),fullWidth:d,inputComponent:f,multiline:g,ref:n,type:T},w,{classes:Q({},x,{notchedOutline:null})}))});B$.muiName="Input";const wNe=Nd(I.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"),TNe=Nd(I.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"),xNe=ct("span",{shouldForwardProp:Qs})({position:"relative",display:"flex"}),kNe=ct(wNe)({transform:"scale(1)"}),ANe=ct(TNe)(({theme:e,ownerState:t})=>Q({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 boe(e){const{checked:t=!1,classes:n={},fontSize:r}=e,i=Q({},e,{checked:t});return I.jsxs(xNe,{className:n.root,ownerState:i,children:[I.jsx(kNe,{fontSize:r,className:n.background,ownerState:i}),I.jsx(ANe,{fontSize:r,className:n.dot,ownerState:i})]})}const yoe=M.createContext(void 0);function _Ne(){return M.useContext(yoe)}function CNe(e){return hn("MuiRadio",e)}const vY=pn("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),RNe=["checked","checkedIcon","color","icon","name","onChange","size","className"],INe=e=>{const{classes:t,color:n,size:r}=e,i={root:["root",`color${lt(n)}`,r!=="medium"&&`size${lt(r)}`]};return Q({},t,mn(i,CNe,t))},NNe=ct(N$,{shouldForwardProp:e=>Qs(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${lt(n.size)}`],t[`color${lt(n.color)}`]]}})(({theme:e,ownerState:t})=>Q({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})`:Vn(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${vY.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${vY.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function DNe(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const OY=I.jsx(boe,{checked:!0}),SY=I.jsx(boe,{}),EY=M.forwardRef(function(t,n){var r,i;const a=bn({props:t,name:"MuiRadio"}),{checked:s,checkedIcon:o=OY,color:l="primary",icon:u=SY,name:d,onChange:f,size:p="medium",className:g}=a,O=kt(a,RNe),S=Q({},a,{color:l,size:p}),T=INe(S),w=_Ne();let x=s;const k=sC(f,w&&w.onChange);let _=d;return w&&(typeof x>"u"&&(x=DNe(w.value,a.value)),typeof _>"u"&&(_=w.name)),I.jsx(NNe,Q({type:"radio",icon:M.cloneElement(u,{fontSize:(r=SY.props.fontSize)!=null?r:p}),checkedIcon:M.cloneElement(o,{fontSize:(i=OY.props.fontSize)!=null?i:p}),ownerState:S,classes:T,name:_,checked:x,onChange:k,ref:n,className:xt(T.root,g)},O))});function PNe(e){return hn("MuiRadioGroup",e)}pn("MuiRadioGroup",["root","row","error"]);const LNe=["actions","children","className","defaultValue","name","onChange","value"],MNe=e=>{const{classes:t,row:n,error:r}=e;return mn({root:["root",n&&"row",r&&"error"]},PNe,t)},$Ne=M.forwardRef(function(t,n){const{actions:r,children:i,className:a,defaultValue:s,name:o,onChange:l,value:u}=t,d=kt(t,LNe),f=M.useRef(null),p=MNe(t),[g,O]=Df({controlled:u,default:s,name:"RadioGroup"});M.useImperativeHandle(r,()=>({focus:()=>{let x=f.current.querySelector("input:not(:disabled):checked");x||(x=f.current.querySelector("input:not(:disabled)")),x&&x.focus()}}),[]);const S=Sr(n,f),T=cO(o),w=M.useMemo(()=>({name:T,onChange(x){O(x.target.value),l&&l(x,x.target.value)},value:g}),[T,l,O,g]);return I.jsx(yoe.Provider,{value:w,children:I.jsx(L$,Q({role:"radiogroup",ref:S,className:xt(p.root,a)},d,{children:i}))})});function FNe(e){return hn("MuiSelect",e)}const KS=pn("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var wY;const BNe=["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"],UNe=ct("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${KS.select}`]:t.select},{[`&.${KS.select}`]:t[n.variant]},{[`&.${KS.error}`]:t.error},{[`&.${KS.multiple}`]:t.multiple}]}})(moe,{[`&.${KS.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),zNe=ct("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${lt(n.variant)}`],n.open&&t.iconOpen]}})(goe),jNe=ct("input",{shouldForwardProp:e=>Q5(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 TY(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function HNe(e){return e==null||typeof e=="string"&&!e.trim()}const QNe=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,o={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${lt(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return mn(o,FNe,t)},WNe=M.forwardRef(function(t,n){var r;const{"aria-describedby":i,"aria-label":a,autoFocus:s,autoWidth:o,children:l,className:u,defaultOpen:d,defaultValue:f,disabled:p,displayEmpty:g,error:O=!1,IconComponent:S,inputRef:T,labelId:w,MenuProps:x={},multiple:k,name:_,onBlur:R,onChange:N,onClose:D,onFocus:L,onOpen:j,open:B,readOnly:V,renderValue:W,SelectDisplayProps:re={},tabIndex:ee,value:q,variant:te="standard"}=t,K=kt(t,BNe),[G,ie]=Df({controlled:q,default:f,name:"Select"}),[H,Re]=Df({controlled:B,default:d,name:"Select"}),Se=M.useRef(null),Z=M.useRef(null),[ke,$e]=M.useState(null),{current:ae}=M.useRef(B!=null),[Je,We]=M.useState(),Xe=Sr(n,T),At=M.useCallback(rt=>{Z.current=rt,rt&&$e(rt)},[]),st=ke==null?void 0:ke.parentNode;M.useImperativeHandle(Xe,()=>({focus:()=>{Z.current.focus()},node:Se.current,value:G}),[G]),M.useEffect(()=>{d&&H&&ke&&!ae&&(We(o?null:st.clientWidth),Z.current.focus())},[ke,o]),M.useEffect(()=>{s&&Z.current.focus()},[s]),M.useEffect(()=>{if(!w)return;const rt=da(Z.current).getElementById(w);if(rt){const Vt=()=>{getSelection().isCollapsed&&Z.current.focus()};return rt.addEventListener("click",Vt),()=>{rt.removeEventListener("click",Vt)}}},[w]);const Lt=(rt,Vt)=>{rt?j&&j(Vt):D&&D(Vt),ae||(We(o?null:st.clientWidth),Re(rt))},Ht=rt=>{rt.button===0&&(rt.preventDefault(),Z.current.focus(),Lt(!0,rt))},ft=rt=>{Lt(!1,rt)},Et=M.Children.toArray(l),Ot=rt=>{const Vt=Et.find(Qt=>Qt.props.value===rt.target.value);Vt!==void 0&&(ie(Vt.props.value),N&&N(rt,Vt))},zt=rt=>Vt=>{let Qt;if(Vt.currentTarget.hasAttribute("tabindex")){if(k){Qt=Array.isArray(G)?G.slice():[];const jt=G.indexOf(rt.props.value);jt===-1?Qt.push(rt.props.value):Qt.splice(jt,1)}else Qt=rt.props.value;if(rt.props.onClick&&rt.props.onClick(Vt),G!==Qt&&(ie(Qt),N)){const jt=Vt.nativeEvent||Vt,En=new jt.constructor(jt.type,jt);Object.defineProperty(En,"target",{writable:!0,value:{value:Qt,name:_}}),N(En,rt)}k||Lt(!1,Vt)}},de=rt=>{V||[" ","ArrowUp","ArrowDown","Enter"].indexOf(rt.key)!==-1&&(rt.preventDefault(),Lt(!0,rt))},_e=ke!==null&&H,Ne=rt=>{!_e&&R&&(Object.defineProperty(rt,"target",{writable:!0,value:{value:G,name:_}}),R(rt))};delete K["aria-invalid"];let et,dt;const tt=[];let yt=!1;(cC({value:G})||g)&&(W?et=W(G):yt=!0);const tn=Et.map(rt=>{if(!M.isValidElement(rt))return null;let Vt;if(k){if(!Array.isArray(G))throw new Error(cp(2));Vt=G.some(Qt=>TY(Qt,rt.props.value)),Vt&&yt&&tt.push(rt.props.children)}else Vt=TY(G,rt.props.value),Vt&&yt&&(dt=rt.props.children);return M.cloneElement(rt,{"aria-selected":Vt?"true":"false",onClick:zt(rt),onKeyUp:Qt=>{Qt.key===" "&&Qt.preventDefault(),rt.props.onKeyUp&&rt.props.onKeyUp(Qt)},role:"option",selected:Vt,value:void 0,"data-value":rt.props.value})});yt&&(k?tt.length===0?et=null:et=tt.reduce((rt,Vt,Qt)=>(rt.push(Vt),Qt{const{classes:t}=e;return t},U$={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Qs(e)&&e!=="variant",slot:"Root"},YNe=ct(M$,U$)(""),ZNe=ct(B$,U$)(""),XNe=ct(P$,U$)(""),z$=M.forwardRef(function(t,n){const r=bn({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:s={},className:o,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:d=aoe,id:f,input:p,inputProps:g,label:O,labelId:S,MenuProps:T,multiple:w=!1,native:x=!1,onClose:k,onOpen:_,open:R,renderValue:N,SelectDisplayProps:D,variant:L="outlined"}=r,j=kt(r,VNe),B=x?hNe:WNe,V=Qf(),W=km({props:r,muiFormControl:V,states:["variant","error"]}),re=W.variant||L,ee=Q({},r,{variant:re,classes:s}),q=GNe(ee),te=kt(q,qNe),K=p||{standard:I.jsx(YNe,{ownerState:ee}),outlined:I.jsx(ZNe,{label:O,ownerState:ee}),filled:I.jsx(XNe,{ownerState:ee})}[re],G=Sr(n,K.ref);return I.jsx(M.Fragment,{children:M.cloneElement(K,Q({inputComponent:B,inputProps:Q({children:a,error:W.error,IconComponent:d,variant:re,type:void 0,multiple:w},x?{id:f}:{autoWidth:i,defaultOpen:l,displayEmpty:u,labelId:S,MenuProps:T,onClose:k,onOpen:_,open:R,renderValue:N,SelectDisplayProps:Q({id:f},D)},g,{classes:g?qo(te,g.classes):te},p?p.props.inputProps:{})},(w&&x||u)&&re==="outlined"?{notched:!0}:{},{ref:G,className:xt(K.props.className,o,q.root)},!p&&{variant:re},j))})});z$.muiName="Select";function KNe(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const JNe=2;function voe(e,t){return e-t}function xY(e,t){var n;const{index:r}=(n=e.reduce((i,a,s)=>{const o=Math.abs(t-a);return i===null||o({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},iDe=e=>e;let bA;function AY(){return bA===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?bA=CSS.supports("touch-action","none"):bA=!0),bA}function aDe(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:a=!1,marks:s=!1,max:o=100,min:l=0,name:u,onChange:d,onChangeCommitted:f,orientation:p="horizontal",rootRef:g,scale:O=iDe,step:S=1,shiftStep:T=10,tabIndex:w,value:x}=e,k=M.useRef(),[_,R]=M.useState(-1),[N,D]=M.useState(-1),[L,j]=M.useState(!1),B=M.useRef(0),[V,W]=Df({controlled:x,default:n??l,name:"Slider"}),re=d&&((be,xe,Ue)=>{const It=be.nativeEvent||be,Gt=new It.constructor(It.type,It);Object.defineProperty(Gt,"target",{writable:!0,value:{value:xe,name:u}}),d(Gt,xe,Ue)}),ee=Array.isArray(V);let q=ee?V.slice().sort(voe):[V];q=q.map(be=>be==null?l:Tg(be,l,o));const te=s===!0&&S!==null?[...Array(Math.floor((o-l)/S)+1)].map((be,xe)=>({value:l+S*xe})):s||[],K=te.map(be=>be.value),{isFocusVisibleRef:G,onBlur:ie,onFocus:H,ref:Re}=H5(),[Se,Z]=M.useState(-1),ke=M.useRef(),$e=Sr(Re,ke),ae=Sr(g,$e),Je=be=>xe=>{var Ue;const It=Number(xe.currentTarget.getAttribute("data-index"));H(xe),G.current===!0&&Z(It),D(It),be==null||(Ue=be.onFocus)==null||Ue.call(be,xe)},We=be=>xe=>{var Ue;ie(xe),G.current===!1&&Z(-1),D(-1),be==null||(Ue=be.onBlur)==null||Ue.call(be,xe)},Xe=(be,xe)=>{const Ue=Number(be.currentTarget.getAttribute("data-index")),It=q[Ue],Gt=K.indexOf(It);let rt=xe;if(te&&S==null){const Vt=K[K.length-1];rt>Vt?rt=Vt:rtxe=>{var Ue;if(S!==null){const It=Number(xe.currentTarget.getAttribute("data-index")),Gt=q[It];let rt=null;(xe.key==="ArrowLeft"||xe.key==="ArrowDown")&&xe.shiftKey||xe.key==="PageDown"?rt=Math.max(Gt-T,l):((xe.key==="ArrowRight"||xe.key==="ArrowUp")&&xe.shiftKey||xe.key==="PageUp")&&(rt=Math.min(Gt+T,o)),rt!==null&&(Xe(xe,rt),xe.preventDefault())}be==null||(Ue=be.onKeyDown)==null||Ue.call(be,xe)};Zo(()=>{if(r&&ke.current.contains(document.activeElement)){var be;(be=document.activeElement)==null||be.blur()}},[r]),r&&_!==-1&&R(-1),r&&Se!==-1&&Z(-1);const st=be=>xe=>{var Ue;(Ue=be.onChange)==null||Ue.call(be,xe),Xe(xe,xe.target.valueAsNumber)},Lt=M.useRef();let Ht=p;a&&p==="horizontal"&&(Ht+="-reverse");const ft=({finger:be,move:xe=!1})=>{const{current:Ue}=ke,{width:It,height:Gt,bottom:rt,left:Vt}=Ue.getBoundingClientRect();let Qt;Ht.indexOf("vertical")===0?Qt=(rt-be.y)/Gt:Qt=(be.x-Vt)/It,Ht.indexOf("-reverse")!==-1&&(Qt=1-Qt);let jt;if(jt=eDe(Qt,l,o),S)jt=nDe(jt,S,l);else{const br=xY(K,jt);jt=K[br]}jt=Tg(jt,l,o);let En=0;if(ee){xe?En=Lt.current:En=xY(q,jt),i&&(jt=Tg(jt,q[En-1]||-1/0,q[En+1]||1/0));const br=jt;jt=kY({values:q,newValue:jt,index:En}),i&&xe||(En=jt.indexOf(br),Lt.current=En)}return{newValue:jt,activeIndex:En}},Et=Fs(be=>{const xe=pA(be,k);if(!xe)return;if(B.current+=1,be.type==="mousemove"&&be.buttons===0){Ot(be);return}const{newValue:Ue,activeIndex:It}=ft({finger:xe,move:!0});mA({sliderRef:ke,activeIndex:It,setActive:R}),W(Ue),!L&&B.current>JNe&&j(!0),re&&!gA(Ue,V)&&re(be,Ue,It)}),Ot=Fs(be=>{const xe=pA(be,k);if(j(!1),!xe)return;const{newValue:Ue}=ft({finger:xe,move:!0});R(-1),be.type==="touchend"&&D(-1),f&&f(be,Ue),k.current=void 0,de()}),zt=Fs(be=>{if(r)return;AY()||be.preventDefault();const xe=be.changedTouches[0];xe!=null&&(k.current=xe.identifier);const Ue=pA(be,k);if(Ue!==!1){const{newValue:Gt,activeIndex:rt}=ft({finger:Ue});mA({sliderRef:ke,activeIndex:rt,setActive:R}),W(Gt),re&&!gA(Gt,V)&&re(be,Gt,rt)}B.current=0;const It=da(ke.current);It.addEventListener("touchmove",Et,{passive:!0}),It.addEventListener("touchend",Ot,{passive:!0})}),de=M.useCallback(()=>{const be=da(ke.current);be.removeEventListener("mousemove",Et),be.removeEventListener("mouseup",Ot),be.removeEventListener("touchmove",Et),be.removeEventListener("touchend",Ot)},[Ot,Et]);M.useEffect(()=>{const{current:be}=ke;return be.addEventListener("touchstart",zt,{passive:AY()}),()=>{be.removeEventListener("touchstart",zt),de()}},[de,zt]),M.useEffect(()=>{r&&de()},[r,de]);const _e=be=>xe=>{var Ue;if((Ue=be.onMouseDown)==null||Ue.call(be,xe),r||xe.defaultPrevented||xe.button!==0)return;xe.preventDefault();const It=pA(xe,k);if(It!==!1){const{newValue:rt,activeIndex:Vt}=ft({finger:It});mA({sliderRef:ke,activeIndex:Vt,setActive:R}),W(rt),re&&!gA(rt,V)&&re(xe,rt,Vt)}B.current=0;const Gt=da(ke.current);Gt.addEventListener("mousemove",Et,{passive:!0}),Gt.addEventListener("mouseup",Ot)},Ne=pC(ee?q[0]:l,l,o),et=pC(q[q.length-1],l,o)-Ne,dt=(be={})=>{const xe=r2(be),Ue={onMouseDown:_e(xe||{})},It=Q({},xe,Ue);return Q({},be,{ref:ae},It)},tt=be=>xe=>{var Ue;(Ue=be.onMouseOver)==null||Ue.call(be,xe);const It=Number(xe.currentTarget.getAttribute("data-index"));D(It)},yt=be=>xe=>{var Ue;(Ue=be.onMouseLeave)==null||Ue.call(be,xe),D(-1)};return{active:_,axis:Ht,axisProps:rDe,dragging:L,focusedThumbIndex:Se,getHiddenInputProps:(be={})=>{var xe;const Ue=r2(be),It={onChange:st(Ue||{}),onFocus:Je(Ue||{}),onBlur:We(Ue||{}),onKeyDown:At(Ue||{})},Gt=Q({},Ue,It);return Q({tabIndex:w,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":O(o),"aria-valuemin":O(l),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(xe=e.step)!=null?xe:void 0,disabled:r},be,Gt,{style:Q({},gAe,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:dt,getThumbProps:(be={})=>{const xe=r2(be),Ue={onMouseOver:tt(xe||{}),onMouseLeave:yt(xe||{})};return Q({},be,xe,Ue)},marks:te,open:N,range:ee,rootRef:ae,trackLeap:et,trackOffset:Ne,values:q,getThumbStyle:be=>({pointerEvents:_!==-1&&_!==be?"none":void 0})}}const sDe=e=>!e||!Pf(e);function oDe(e){return hn("MuiSlider",e)}const hc=pn("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"]),lDe=e=>{const{open:t}=e;return{offset:xt(t&&hc.valueLabelOpen),circle:hc.valueLabelCircle,label:hc.valueLabelLabel}};function uDe(e){const{children:t,className:n,value:r}=e,i=lDe(e);return t?M.cloneElement(t,{className:xt(t.props.className)},I.jsxs(M.Fragment,{children:[t.props.children,I.jsx("span",{className:xt(i.offset,n),"aria-hidden":!0,children:I.jsx("span",{className:i.circle,children:I.jsx("span",{className:i.label,children:r})})})]})):null}const cDe=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function _Y(e){return e}const dDe=ct("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${lt(n.color)}`],n.size!=="medium"&&t[`size${lt(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${hc.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${hc.dragging}`]:{[`& .${hc.thumb}, & .${hc.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),fDe=ct("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),hDe=ct("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n,track:"inverted"},style:Q({},e.vars?{backgroundColor:e.vars.palette.Slider[`${n}Track`],borderColor:e.vars.palette.Slider[`${n}Track`]}:Q({backgroundColor:iw(e.palette[n].main,.62),borderColor:iw(e.palette[n].main,.62)},e.applyStyles("dark",{backgroundColor:rw(e.palette[n].main,.5)}),e.applyStyles("dark",{borderColor:rw(e.palette[n].main,.5)})))}))]}}),pDe=ct("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${lt(n.color)}`],n.size!=="medium"&&t[`thumbSize${lt(n.size)}`]]}})(({theme:e})=>{var t;return{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}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${hc.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{[`&:hover, &.${hc.focusVisible}`]:Q({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${Vn(e.palette[n].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${hc.active}`]:Q({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${Vn(e.palette[n].main,.16)}`})}}))]}}),mDe=ct(uDe,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>Q({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),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",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",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%"},[`&.${hc.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"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%"},[`&.${hc.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),gDe=ct("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Q5(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),bDe=ct("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Q5(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>Q({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),yDe=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:a,classes:s,color:o,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",o&&`color${lt(o)}`,l&&`size${lt(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${lt(l)}`,o&&`thumbColor${lt(o)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return mn(u,oDe,s)},vDe=({children:e})=>e,ODe=M.forwardRef(function(t,n){var r,i,a,s,o,l,u,d,f,p,g,O,S,T,w,x,k,_,R,N,D,L,j,B;const V=bn({props:t,name:"MuiSlider"}),W=f$(),{"aria-label":re,"aria-valuetext":ee,"aria-labelledby":q,component:te="span",components:K={},componentsProps:G={},color:ie="primary",classes:H,className:Re,disableSwap:Se=!1,disabled:Z=!1,getAriaLabel:ke,getAriaValueText:$e,marks:ae=!1,max:Je=100,min:We=0,orientation:Xe="horizontal",shiftStep:At=10,size:st="medium",step:Lt=1,scale:Ht=_Y,slotProps:ft,slots:Et,track:Ot="normal",valueLabelDisplay:zt="off",valueLabelFormat:de=_Y}=V,_e=kt(V,cDe),Ne=Q({},V,{isRtl:W,max:Je,min:We,classes:H,disabled:Z,disableSwap:Se,orientation:Xe,marks:ae,color:ie,size:st,step:Lt,shiftStep:At,scale:Ht,track:Ot,valueLabelDisplay:zt,valueLabelFormat:de}),{axisProps:et,getRootProps:dt,getHiddenInputProps:tt,getThumbProps:yt,open:tn,active:Fe,axis:we,focusedThumbIndex:be,range:xe,dragging:Ue,marks:It,values:Gt,trackOffset:rt,trackLeap:Vt,getThumbStyle:Qt}=aDe(Q({},Ne,{rootRef:n}));Ne.marked=It.length>0&&It.some(Ie=>Ie.label),Ne.dragging=Ue,Ne.focusedThumbIndex=be;const jt=yDe(Ne),En=(r=(i=Et==null?void 0:Et.root)!=null?i:K.Root)!=null?r:dDe,br=(a=(s=Et==null?void 0:Et.rail)!=null?s:K.Rail)!=null?a:fDe,Mr=(o=(l=Et==null?void 0:Et.track)!=null?l:K.Track)!=null?o:hDe,Rr=(u=(d=Et==null?void 0:Et.thumb)!=null?d:K.Thumb)!=null?u:pDe,Yr=(f=(p=Et==null?void 0:Et.valueLabel)!=null?p:K.ValueLabel)!=null?f:mDe,Li=(g=(O=Et==null?void 0:Et.mark)!=null?O:K.Mark)!=null?g:gDe,bi=(S=(T=Et==null?void 0:Et.markLabel)!=null?T:K.MarkLabel)!=null?S:bDe,Qi=(w=(x=Et==null?void 0:Et.input)!=null?x:K.Input)!=null?w:"input",yi=(k=ft==null?void 0:ft.root)!=null?k:G.root,ds=(_=ft==null?void 0:ft.rail)!=null?_:G.rail,Wi=(R=ft==null?void 0:ft.track)!=null?R:G.track,qs=(N=ft==null?void 0:ft.thumb)!=null?N:G.thumb,Vi=(D=ft==null?void 0:ft.valueLabel)!=null?D:G.valueLabel,Ur=(L=ft==null?void 0:ft.mark)!=null?L:G.mark,ir=(j=ft==null?void 0:ft.markLabel)!=null?j:G.markLabel,Zr=(B=ft==null?void 0:ft.input)!=null?B:G.input,ze=zo({elementType:En,getSlotProps:dt,externalSlotProps:yi,externalForwardedProps:_e,additionalProps:Q({},sDe(En)&&{as:te}),ownerState:Q({},Ne,yi==null?void 0:yi.ownerState),className:[jt.root,Re]}),it=zo({elementType:br,externalSlotProps:ds,ownerState:Ne,className:jt.rail}),le=zo({elementType:Mr,externalSlotProps:Wi,additionalProps:{style:Q({},et[we].offset(rt),et[we].leap(Vt))},ownerState:Q({},Ne,Wi==null?void 0:Wi.ownerState),className:jt.track}),he=zo({elementType:Rr,getSlotProps:yt,externalSlotProps:qs,ownerState:Q({},Ne,qs==null?void 0:qs.ownerState),className:jt.thumb}),Le=zo({elementType:Yr,externalSlotProps:Vi,ownerState:Q({},Ne,Vi==null?void 0:Vi.ownerState),className:jt.valueLabel}),qe=zo({elementType:Li,externalSlotProps:Ur,ownerState:Ne,className:jt.mark}),gt=zo({elementType:bi,externalSlotProps:ir,ownerState:Ne,className:jt.markLabel}),qt=zo({elementType:Qi,getSlotProps:tt,externalSlotProps:Zr,ownerState:Ne});return I.jsxs(En,Q({},ze,{children:[I.jsx(br,Q({},it)),I.jsx(Mr,Q({},le)),It.filter(Ie=>Ie.value>=We&&Ie.value<=Je).map((Ie,Te)=>{const ot=pC(Ie.value,We,Je),Ye=et[we].offset(ot);let wt;return Ot===!1?wt=Gt.indexOf(Ie.value)!==-1:wt=Ot==="normal"&&(xe?Ie.value>=Gt[0]&&Ie.value<=Gt[Gt.length-1]:Ie.value<=Gt[0])||Ot==="inverted"&&(xe?Ie.value<=Gt[0]||Ie.value>=Gt[Gt.length-1]:Ie.value>=Gt[0]),I.jsxs(M.Fragment,{children:[I.jsx(Li,Q({"data-index":Te},qe,!Pf(Li)&&{markActive:wt},{style:Q({},Ye,qe.style),className:xt(qe.className,wt&&jt.markActive)})),Ie.label!=null?I.jsx(bi,Q({"aria-hidden":!0,"data-index":Te},gt,!Pf(bi)&&{markLabelActive:wt},{style:Q({},Ye,gt.style),className:xt(jt.markLabel,gt.className,wt&&jt.markLabelActive),children:Ie.label})):null]},Te)}),Gt.map((Ie,Te)=>{const ot=pC(Ie,We,Je),Ye=et[we].offset(ot),wt=zt==="off"?vDe:Yr;return I.jsx(wt,Q({},!Pf(wt)&&{valueLabelFormat:de,valueLabelDisplay:zt,value:typeof de=="function"?de(Ht(Ie),Te):de,index:Te,open:tn===Te||Fe===Te||zt==="on",disabled:Z},Le,{children:I.jsx(Rr,Q({"data-index":Te},he,{className:xt(jt.thumb,he.className,Fe===Te&&jt.active,be===Te&&jt.focusVisible),style:Q({},Ye,Qt(Te),he.style),children:I.jsx(Qi,Q({"data-index":Te,"aria-label":ke?ke(Te):re,"aria-valuenow":Ht(Ie),"aria-labelledby":q,"aria-valuetext":$e?$e(Ht(Ie),Te):ee,value:Gt[Te]},qt))}))}),Te)})]}))});function SDe(e){return hn("MuiTooltip",e)}const F0=pn("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),EDe=["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 wDe(e){return Math.round(e*1e5)/1e5}const TDe=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:a}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${lt(a.split("-")[0])}`],arrow:["arrow"]};return mn(s,SDe,t)},xDe=ct(q5,{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})=>Q({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${F0.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${F0.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${F0.arrow}`]:Q({},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"] .${F0.arrow}`]:Q({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),kDe=ct("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${lt(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>Q({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Vn(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:`${wDe(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${F0.popper}[data-popper-placement*="left"] &`]:Q({transformOrigin:"right center"},t.isRtl?Q({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):Q({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${F0.popper}[data-popper-placement*="right"] &`]:Q({transformOrigin:"left center"},t.isRtl?Q({marginRight:"14px"},t.touch&&{marginRight:"24px"}):Q({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${F0.popper}[data-popper-placement*="top"] &`]:Q({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${F0.popper}[data-popper-placement*="bottom"] &`]:Q({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),ADe=ct("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:Vn(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let yA=!1;const CY=new mT;let JS={x:0,y:0};function vA(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const B0=M.forwardRef(function(t,n){var r,i,a,s,o,l,u,d,f,p,g,O,S,T,w,x,k,_,R;const N=bn({props:t,name:"MuiTooltip"}),{arrow:D=!1,children:L,components:j={},componentsProps:B={},describeChild:V=!1,disableFocusListener:W=!1,disableHoverListener:re=!1,disableInteractive:ee=!1,disableTouchListener:q=!1,enterDelay:te=100,enterNextDelay:K=0,enterTouchDelay:G=700,followCursor:ie=!1,id:H,leaveDelay:Re=0,leaveTouchDelay:Se=1500,onClose:Z,onOpen:ke,open:$e,placement:ae="bottom",PopperComponent:Je,PopperProps:We={},slotProps:Xe={},slots:At={},title:st,TransitionComponent:Lt=fC,TransitionProps:Ht}=N,ft=kt(N,EDe),Et=M.isValidElement(L)?L:I.jsx("span",{children:L}),Ot=Hf(),zt=f$(),[de,_e]=M.useState(),[Ne,et]=M.useState(null),dt=M.useRef(!1),tt=ee||ie,yt=Dg(),tn=Dg(),Fe=Dg(),we=Dg(),[be,xe]=Df({controlled:$e,default:!1,name:"Tooltip",state:"open"});let Ue=be;const It=cO(H),Gt=M.useRef(),rt=Fs(()=>{Gt.current!==void 0&&(document.body.style.WebkitUserSelect=Gt.current,Gt.current=void 0),we.clear()});M.useEffect(()=>rt,[rt]);const Vt=Rt=>{CY.clear(),yA=!0,xe(!0),ke&&!Ue&&ke(Rt)},Qt=Fs(Rt=>{CY.start(800+Re,()=>{yA=!1}),xe(!1),Z&&Ue&&Z(Rt),yt.start(Ot.transitions.duration.shortest,()=>{dt.current=!1})}),jt=Rt=>{dt.current&&Rt.type!=="touchstart"||(de&&de.removeAttribute("title"),tn.clear(),Fe.clear(),te||yA&&K?tn.start(yA?K:te,()=>{Vt(Rt)}):Vt(Rt))},En=Rt=>{tn.clear(),Fe.start(Re,()=>{Qt(Rt)})},{isFocusVisibleRef:br,onBlur:Mr,onFocus:Rr,ref:Yr}=H5(),[,Li]=M.useState(!1),bi=Rt=>{Mr(Rt),br.current===!1&&(Li(!1),En(Rt))},Qi=Rt=>{de||_e(Rt.currentTarget),Rr(Rt),br.current===!0&&(Li(!0),jt(Rt))},yi=Rt=>{dt.current=!0;const Yt=Et.props;Yt.onTouchStart&&Yt.onTouchStart(Rt)},ds=Rt=>{yi(Rt),Fe.clear(),yt.clear(),rt(),Gt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",we.start(G,()=>{document.body.style.WebkitUserSelect=Gt.current,jt(Rt)})},Wi=Rt=>{Et.props.onTouchEnd&&Et.props.onTouchEnd(Rt),rt(),Fe.start(Se,()=>{Qt(Rt)})};M.useEffect(()=>{if(!Ue)return;function Rt(Yt){(Yt.key==="Escape"||Yt.key==="Esc")&&Qt(Yt)}return document.addEventListener("keydown",Rt),()=>{document.removeEventListener("keydown",Rt)}},[Qt,Ue]);const qs=Sr(Et.ref,Yr,_e,n);!st&&st!==0&&(Ue=!1);const Vi=M.useRef(),Ur=Rt=>{const Yt=Et.props;Yt.onMouseMove&&Yt.onMouseMove(Rt),JS={x:Rt.clientX,y:Rt.clientY},Vi.current&&Vi.current.update()},ir={},Zr=typeof st=="string";V?(ir.title=!Ue&&Zr&&!re?st:null,ir["aria-describedby"]=Ue?It:null):(ir["aria-label"]=Zr?st:null,ir["aria-labelledby"]=Ue&&!Zr?It:null);const ze=Q({},ir,ft,Et.props,{className:xt(ft.className,Et.props.className),onTouchStart:yi,ref:qs},ie?{onMouseMove:Ur}:{}),it={};q||(ze.onTouchStart=ds,ze.onTouchEnd=Wi),re||(ze.onMouseOver=vA(jt,ze.onMouseOver),ze.onMouseLeave=vA(En,ze.onMouseLeave),tt||(it.onMouseOver=jt,it.onMouseLeave=En)),W||(ze.onFocus=vA(Qi,ze.onFocus),ze.onBlur=vA(bi,ze.onBlur),tt||(it.onFocus=Qi,it.onBlur=bi));const le=M.useMemo(()=>{var Rt;let Yt=[{name:"arrow",enabled:!!Ne,options:{element:Ne,padding:4}}];return(Rt=We.popperOptions)!=null&&Rt.modifiers&&(Yt=Yt.concat(We.popperOptions.modifiers)),Q({},We.popperOptions,{modifiers:Yt})},[Ne,We]),he=Q({},N,{isRtl:zt,arrow:D,disableInteractive:tt,placement:ae,PopperComponentProp:Je,touch:dt.current}),Le=TDe(he),qe=(r=(i=At.popper)!=null?i:j.Popper)!=null?r:xDe,gt=(a=(s=(o=At.transition)!=null?o:j.Transition)!=null?s:Lt)!=null?a:fC,qt=(l=(u=At.tooltip)!=null?u:j.Tooltip)!=null?l:kDe,Ie=(d=(f=At.arrow)!=null?f:j.Arrow)!=null?d:ADe,Te=vy(qe,Q({},We,(p=Xe.popper)!=null?p:B.popper,{className:xt(Le.popper,We==null?void 0:We.className,(g=(O=Xe.popper)!=null?O:B.popper)==null?void 0:g.className)}),he),ot=vy(gt,Q({},Ht,(S=Xe.transition)!=null?S:B.transition),he),Ye=vy(qt,Q({},(T=Xe.tooltip)!=null?T:B.tooltip,{className:xt(Le.tooltip,(w=(x=Xe.tooltip)!=null?x:B.tooltip)==null?void 0:w.className)}),he),wt=vy(Ie,Q({},(k=Xe.arrow)!=null?k:B.arrow,{className:xt(Le.arrow,(_=(R=Xe.arrow)!=null?R:B.arrow)==null?void 0:_.className)}),he);return I.jsxs(M.Fragment,{children:[M.cloneElement(Et,ze),I.jsx(qe,Q({as:Je??q5,placement:ae,anchorEl:ie?{getBoundingClientRect:()=>({top:JS.y,left:JS.x,right:JS.x,bottom:JS.y,width:0,height:0})}:de,popperRef:Vi,open:de?Ue:!1,id:It,transition:!0},it,Te,{popperOptions:le,children:({TransitionProps:Rt})=>I.jsx(gt,Q({timeout:Ot.transitions.duration.shorter},Rt,ot,{children:I.jsxs(qt,Q({},Ye,{children:[st,D?I.jsx(Ie,Q({},wt,{ref:et})):null]}))}))}))]})});function _De(e){return hn("MuiSwitch",e)}const Lo=pn("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),CDe=["className","color","edge","size","sx"],RDe=e=>{const{classes:t,edge:n,size:r,color:i,checked:a,disabled:s}=e,o={root:["root",n&&`edge${lt(n)}`,`size${lt(r)}`],switchBase:["switchBase",`color${lt(i)}`,a&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=mn(o,_De,t);return Q({},t,l)},IDe=ct("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${lt(n.edge)}`],t[`size${lt(n.size)}`]]}})({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"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Lo.thumb}`]:{width:16,height:16},[`& .${Lo.switchBase}`]:{padding:4,[`&.${Lo.checked}`]:{transform:"translateX(16px)"}}}}]}),NDe=ct(N$,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Lo.input}`]:t.input},n.color!=="default"&&t[`color${lt(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}),[`&.${Lo.checked}`]:{transform:"translateX(20px)"},[`&.${Lo.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Lo.checked} + .${Lo.track}`]:{opacity:.5},[`&.${Lo.disabled} + .${Lo.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Lo.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Vn(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${Lo.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Vn(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Lo.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?iw(e.palette[t].main,.62):rw(e.palette[t].main,.55)}`}},[`&.${Lo.checked} + .${Lo.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),DDe=ct("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}`})),PDe=ct("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%"})),LDe=M.forwardRef(function(t,n){const r=bn({props:t,name:"MuiSwitch"}),{className:i,color:a="primary",edge:s=!1,size:o="medium",sx:l}=r,u=kt(r,CDe),d=Q({},r,{color:a,edge:s,size:o}),f=RDe(d),p=I.jsx(PDe,{className:f.thumb,ownerState:d});return I.jsxs(IDe,{className:xt(f.root,i),sx:l,ownerState:d,children:[I.jsx(NDe,Q({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:d},u,{classes:Q({},f,{root:f.switchBase})})),I.jsx(DDe,{className:f.track,ownerState:d})]})}),Ooe=M.createContext();function MDe(e){return hn("MuiTable",e)}pn("MuiTable",["root","stickyHeader"]);const $De=["className","component","padding","size","stickyHeader"],FDe=e=>{const{classes:t,stickyHeader:n}=e;return mn({root:["root",n&&"stickyHeader"]},MDe,t)},BDe=ct("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>Q({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Q({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),RY="table",UDe=M.forwardRef(function(t,n){const r=bn({props:t,name:"MuiTable"}),{className:i,component:a=RY,padding:s="normal",size:o="medium",stickyHeader:l=!1}=r,u=kt(r,$De),d=Q({},r,{component:a,padding:s,size:o,stickyHeader:l}),f=FDe(d),p=M.useMemo(()=>({padding:s,size:o,stickyHeader:l}),[s,o,l]);return I.jsx(Ooe.Provider,{value:p,children:I.jsx(BDe,Q({as:a,role:a===RY?null:"table",ref:n,className:xt(f.root,i),ownerState:d},u))})}),nR=M.createContext();function zDe(e){return hn("MuiTableBody",e)}pn("MuiTableBody",["root"]);const jDe=["className","component"],HDe=e=>{const{classes:t}=e;return mn({root:["root"]},zDe,t)},QDe=ct("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),WDe={variant:"body"},IY="tbody",VDe=M.forwardRef(function(t,n){const r=bn({props:t,name:"MuiTableBody"}),{className:i,component:a=IY}=r,s=kt(r,jDe),o=Q({},r,{component:a}),l=HDe(o);return I.jsx(nR.Provider,{value:WDe,children:I.jsx(QDe,Q({className:xt(l.root,i),as:a,ref:n,role:a===IY?null:"rowgroup",ownerState:o},s))})});function qDe(e){return hn("MuiTableCell",e)}const GDe=pn("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),YDe=["align","className","component","padding","scope","size","sortDirection","variant"],ZDe=e=>{const{classes:t,variant:n,align:r,padding:i,size:a,stickyHeader:s}=e,o={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${lt(r)}`,i!=="normal"&&`padding${lt(i)}`,`size${lt(a)}`]};return mn(o,qDe,t)},XDe=ct("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${lt(n.size)}`],n.padding!=="normal"&&t[`padding${lt(n.padding)}`],n.align!=="inherit"&&t[`align${lt(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>Q({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?iw(Vn(e.palette.divider,1),.88):rw(Vn(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${GDe.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Fb=M.forwardRef(function(t,n){const r=bn({props:t,name:"MuiTableCell"}),{align:i="inherit",className:a,component:s,padding:o,scope:l,size:u,sortDirection:d,variant:f}=r,p=kt(r,YDe),g=M.useContext(Ooe),O=M.useContext(nR),S=O&&O.variant==="head";let T;s?T=s:T=S?"th":"td";let w=l;T==="td"?w=void 0:!w&&S&&(w="col");const x=f||O&&O.variant,k=Q({},r,{align:i,component:T,padding:o||(g&&g.padding?g.padding:"normal"),size:u||(g&&g.size?g.size:"medium"),sortDirection:d,stickyHeader:x==="head"&&g&&g.stickyHeader,variant:x}),_=ZDe(k);let R=null;return d&&(R=d==="asc"?"ascending":"descending"),I.jsx(XDe,Q({as:T,ref:n,className:xt(_.root,a),"aria-sort":R,scope:w,ownerState:k},p))});function KDe(e){return hn("MuiTableContainer",e)}pn("MuiTableContainer",["root"]);const JDe=["className","component"],e7e=e=>{const{classes:t}=e;return mn({root:["root"]},KDe,t)},t7e=ct("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),n7e=M.forwardRef(function(t,n){const r=bn({props:t,name:"MuiTableContainer"}),{className:i,component:a="div"}=r,s=kt(r,JDe),o=Q({},r,{component:a}),l=e7e(o);return I.jsx(t7e,Q({ref:n,as:a,className:xt(l.root,i),ownerState:o},s))});function r7e(e){return hn("MuiTableHead",e)}pn("MuiTableHead",["root"]);const i7e=["className","component"],a7e=e=>{const{classes:t}=e;return mn({root:["root"]},r7e,t)},s7e=ct("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),o7e={variant:"head"},NY="thead",l7e=M.forwardRef(function(t,n){const r=bn({props:t,name:"MuiTableHead"}),{className:i,component:a=NY}=r,s=kt(r,i7e),o=Q({},r,{component:a}),l=a7e(o);return I.jsx(nR.Provider,{value:o7e,children:I.jsx(s7e,Q({as:a,className:xt(l.root,i),ref:n,role:a===NY?null:"rowgroup",ownerState:o},s))})});function u7e(e){return hn("MuiToolbar",e)}pn("MuiToolbar",["root","gutters","regular","dense"]);const c7e=["className","component","disableGutters","variant"],d7e=e=>{const{classes:t,disableGutters:n,variant:r}=e;return mn({root:["root",!n&&"gutters",r]},u7e,t)},f7e=ct("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})=>Q({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),j$=M.forwardRef(function(t,n){const r=bn({props:t,name:"MuiToolbar"}),{className:i,component:a="div",disableGutters:s=!1,variant:o="regular"}=r,l=kt(r,c7e),u=Q({},r,{component:a,disableGutters:s,variant:o}),d=d7e(u);return I.jsx(f7e,Q({as:a,className:xt(d.root,i),ref:n,ownerState:u},l))});function h7e(e){return hn("MuiTableRow",e)}const DY=pn("MuiTableRow",["root","selected","hover","head","footer"]),p7e=["className","component","hover","selected"],m7e=e=>{const{classes:t,selected:n,hover:r,head:i,footer:a}=e;return mn({root:["root",n&&"selected",r&&"hover",i&&"head",a&&"footer"]},h7e,t)},g7e=ct("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${DY.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${DY.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Vn(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Vn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),PY="tr",LY=M.forwardRef(function(t,n){const r=bn({props:t,name:"MuiTableRow"}),{className:i,component:a=PY,hover:s=!1,selected:o=!1}=r,l=kt(r,p7e),u=M.useContext(nR),d=Q({},r,{component:a,hover:s,selected:o,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),f=m7e(d);return I.jsx(g7e,Q({as:a,ref:n,className:xt(f.root,i),role:a===PY?null:"row",ownerState:d},l))});function b7e(e){return hn("MuiTextField",e)}pn("MuiTextField",["root"]);const y7e=["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"],v7e={standard:M$,filled:P$,outlined:B$},O7e=e=>{const{classes:t}=e;return mn({root:["root"]},b7e,t)},S7e=ct(Mc,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),vT=M.forwardRef(function(t,n){const r=bn({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:a=!1,children:s,className:o,color:l="primary",defaultValue:u,disabled:d=!1,error:f=!1,FormHelperTextProps:p,fullWidth:g=!1,helperText:O,id:S,InputLabelProps:T,inputProps:w,InputProps:x,inputRef:k,label:_,maxRows:R,minRows:N,multiline:D=!1,name:L,onBlur:j,onChange:B,onFocus:V,placeholder:W,required:re=!1,rows:ee,select:q=!1,SelectProps:te,type:K,value:G,variant:ie="outlined"}=r,H=kt(r,y7e),Re=Q({},r,{autoFocus:a,color:l,disabled:d,error:f,fullWidth:g,multiline:D,required:re,select:q,variant:ie}),Se=O7e(Re),Z={};ie==="outlined"&&(T&&typeof T.shrink<"u"&&(Z.notched=T.shrink),Z.label=_),q&&((!te||!te.native)&&(Z.id=void 0),Z["aria-describedby"]=void 0);const ke=cO(S),$e=O&&ke?`${ke}-helper-text`:void 0,ae=_&&ke?`${ke}-label`:void 0,Je=v7e[ie],We=I.jsx(Je,Q({"aria-describedby":$e,autoComplete:i,autoFocus:a,defaultValue:u,fullWidth:g,multiline:D,name:L,rows:ee,maxRows:R,minRows:N,type:K,value:G,id:ke,inputRef:k,onBlur:j,onChange:B,onFocus:V,placeholder:W,inputProps:w},Z,x));return I.jsxs(S7e,Q({className:xt(Se.root,o),disabled:d,error:f,fullWidth:g,ref:n,required:re,color:l,variant:ie,ownerState:Re},H,{children:[_!=null&&_!==""&&I.jsx(coe,Q({htmlFor:ke,id:ae},T,{children:_})),q?I.jsx(z$,Q({"aria-describedby":$e,id:ke,labelId:ae,value:G,input:We},te,{children:s})):We,O&&I.jsx(mO,Q({id:$e},p,{children:O}))]}))});function E7e(e){return hn("MuiToggleButton",e)}const Sy=pn("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),Soe=M.createContext({}),Eoe=M.createContext(void 0);function w7e(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.indexOf(e)>=0:e===t}const T7e=["value"],x7e=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],k7e=e=>{const{classes:t,fullWidth:n,selected:r,disabled:i,size:a,color:s}=e,o={root:["root",r&&"selected",i&&"disabled",n&&"fullWidth",`size${lt(a)}`,s]};return mn(o,E7e,t)},A7e=ct(Uf,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${lt(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),Q({},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%"},{[`&.${Sy.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})`:sA(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Sy.selected}`]:{color:n,backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:sA(n,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${r} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:sA(n,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:sA(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)})}),V4=M.forwardRef(function(t,n){const r=M.useContext(Soe),{value:i}=r,a=kt(r,T7e),s=M.useContext(Eoe),o=kv(Q({},a,{selected:w7e(t.value,i)}),t),l=bn({props:o,name:"MuiToggleButton"}),{children:u,className:d,color:f="standard",disabled:p=!1,disableFocusRipple:g=!1,fullWidth:O=!1,onChange:S,onClick:T,selected:w,size:x="medium",value:k}=l,_=kt(l,x7e),R=Q({},l,{color:f,disabled:p,disableFocusRipple:g,fullWidth:O,size:x}),N=k7e(R),D=j=>{T&&(T(j,k),j.defaultPrevented)||S&&S(j,k)},L=s||"";return I.jsx(A7e,Q({className:xt(a.className,N.root,d,L),disabled:p,focusRipple:!g,ref:n,onClick:D,onChange:S,value:k,ownerState:R,"aria-pressed":w},_,{children:u}))});function _7e(e){return hn("MuiToggleButtonGroup",e)}const Zi=pn("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),C7e=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],R7e=e=>{const{classes:t,orientation:n,fullWidth:r,disabled:i}=e,a={root:["root",n==="vertical"&&"vertical",r&&"fullWidth"],grouped:["grouped",`grouped${lt(n)}`,i&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return mn(a,_7e,t)},I7e=ct("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Zi.grouped}`]:t.grouped},{[`& .${Zi.grouped}`]:t[`grouped${lt(n.orientation)}`]},{[`& .${Zi.firstButton}`]:t.firstButton},{[`& .${Zi.lastButton}`]:t.lastButton},{[`& .${Zi.middleButton}`]:t.middleButton},t.root,n.orientation==="vertical"&&t.vertical,n.fullWidth&&t.fullWidth]}})(({ownerState:e,theme:t})=>Q({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},e.orientation==="vertical"&&{flexDirection:"column"},e.fullWidth&&{width:"100%"},{[`& .${Zi.grouped}`]:Q({},e.orientation==="horizontal"?{[`&.${Zi.selected} + .${Zi.grouped}.${Zi.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${Zi.selected} + .${Zi.grouped}.${Zi.selected}`]:{borderTop:0,marginTop:0}})},e.orientation==="horizontal"?{[`& .${Zi.firstButton},& .${Zi.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${Zi.lastButton},& .${Zi.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${Zi.firstButton},& .${Zi.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${Zi.lastButton},& .${Zi.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},e.orientation==="horizontal"?{[`& .${Zi.lastButton}.${Sy.disabled},& .${Zi.middleButton}.${Sy.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${Zi.lastButton}.${Sy.disabled},& .${Zi.middleButton}.${Sy.disabled}`]:{borderTop:"1px solid transparent"}})),woe=M.forwardRef(function(t,n){const r=bn({props:t,name:"MuiToggleButtonGroup"}),{children:i,className:a,color:s="standard",disabled:o=!1,exclusive:l=!1,fullWidth:u=!1,onChange:d,orientation:f="horizontal",size:p="medium",value:g}=r,O=kt(r,C7e),S=Q({},r,{disabled:o,fullWidth:u,orientation:f,size:p}),T=R7e(S),w=M.useCallback((D,L)=>{if(!d)return;const j=g&&g.indexOf(L);let B;g&&j>=0?(B=g.slice(),B.splice(j,1)):B=g?g.concat(L):[L],d(D,B)},[d,g]),x=M.useCallback((D,L)=>{d&&d(D,g===L?null:L)},[d,g]),k=M.useMemo(()=>({className:T.grouped,onChange:l?x:w,value:g,size:p,fullWidth:u,color:s,disabled:o}),[T.grouped,l,x,w,g,p,u,s,o]),_=mAe(i),R=_.length,N=D=>{const L=D===0,j=D===R-1;return L&&j?"":L?T.firstButton:j?T.lastButton:T.middleButton};return I.jsx(I7e,Q({role:"group",className:xt(T.root,a),ref:n,ownerState:S},O,{children:I.jsx(Soe.Provider,{value:k,children:_.map((D,L)=>I.jsx(Eoe.Provider,{value:N(L),children:D},L))})}))});var Toe={exports:{}},xoe={};/** + `),aRe)),kd=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiCircularProgress"}),{className:i,color:a="primary",disableShrink:s=!1,size:o=40,style:l,thickness:u=3.6,value:d=0,variant:f="indeterminate"}=r,p=Tt(r,rRe),g=Q({},r,{color:a,disableShrink:s,size:o,thickness:u,value:d,variant:f}),O=sRe(g),S={},T={},w={};if(f==="determinate"){const x=2*Math.PI*((Xp-u)/2);S.strokeDasharray=x.toFixed(3),w["aria-valuenow"]=Math.round(d),S.strokeDashoffset=`${((100-d)/100*x).toFixed(3)}px`,T.transform="rotate(-90deg)"}return I.jsx(oRe,Q({className:wt(O.root,i),style:Q({width:o,height:o},T,l),ownerState:g,ref:n,role:"progressbar"},w,p,{children:I.jsx(lRe,{className:O.svg,ownerState:g,viewBox:`${Xp/2} ${Xp/2} ${Xp} ${Xp}`,children:I.jsx(uRe,{className:O.circle,style:S,ownerState:g,cx:Xp,cy:Xp,r:(Xp-u)/2,fill:"none",strokeWidth:u})})}))});function qG(e){return e.substring(2).toLowerCase()}function cRe(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const d=vr(t.ref,o),f=Qs(O=>{const S=u.current;u.current=!1;const T=ca(o.current);if(!l.current||!o.current||"clientX"in O&&cRe(O,T))return;if(s.current){s.current=!1;return}let w;O.composedPath?w=O.composedPath().indexOf(o.current)>-1:w=!T.documentElement.contains(O.target)||o.current.contains(O.target),!w&&(n||!S)&&i(O)}),p=O=>S=>{u.current=!0;const T=t.props[O];T&&T(S)},g={ref:d};return a!==!1&&(g[a]=p(a)),M.useEffect(()=>{if(a!==!1){const O=qG(a),S=ca(o.current),T=()=>{s.current=!0};return S.addEventListener(O,f),S.addEventListener("touchmove",T),()=>{S.removeEventListener(O,f),S.removeEventListener("touchmove",T)}}},[f,a]),r!==!1&&(g[r]=p(r)),M.useEffect(()=>{if(r!==!1){const O=qG(r),S=ca(o.current);return S.addEventListener(O,f),()=>{S.removeEventListener(O,f)}}},[f,r]),I.jsx(M.Fragment,{children:M.cloneElement(t,g)})}const T$=EAe({createStyledComponent:lt("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${st(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>mn({props:e,name:"MuiContainer"})}),fRe=(e,t)=>Q({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),hRe=e=>Q({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}}),pRe=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,o])=>{var l;r[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(l=o.palette)==null?void 0:l.mode}});let i=Q({html:fRe(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:Q({margin:0},hRe(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const a=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return a&&(i=[i,a]),i};function mRe(e){const t=mn({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return I.jsxs(M.Fragment,{children:[I.jsx(Yse,{styles:i=>pRe(i,r)}),n]})}function gRe(e){const t=ca(e);return t.body===e?Lf(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function l2(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function GG(e){return parseInt(Lf(e).getComputedStyle(e).paddingRight,10)||0}function bRe(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 YG(e,t,n,r,i){const a=[t,n,...r];[].forEach.call(e.children,s=>{const o=a.indexOf(s)===-1,l=!bRe(s);o&&l&&l2(s,i)})}function IN(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function yRe(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(gRe(r)){const s=mse(ca(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${GG(r)+s}px`;const o=ca(r).querySelectorAll(".mui-fixed");[].forEach.call(o,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${GG(l)+s}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=ca(r).body;else{const s=r.parentElement,o=Lf(r);a=(s==null?void 0:s.nodeName)==="HTML"&&o.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:s,property:o})=>{a?s.style.setProperty(o,a):s.style.removeProperty(o)})}}function vRe(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class ORe{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&&l2(t.modalRef,!1);const i=vRe(n);YG(n,t.mount,t.modalRef,i,!0);const a=IN(this.containers,s=>s.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=IN(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[r];i.restore||(i.restore=yRe(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=IN(this.containers,s=>s.modals.indexOf(t)!==-1),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&l2(t.modalRef,n),YG(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=a.modals[a.modals.length-1];s.modalRef&&l2(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const SRe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ERe(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 wRe(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 TRe(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||wRe(e))}function xRe(e){const t=[],n=[];return Array.from(e.querySelectorAll(SRe)).forEach((r,i)=>{const a=ERe(r);a===-1||!TRe(r)||(a===0?t.push(r):n.push({documentOrder:i,tabIndex:a,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function kRe(){return!0}function ARe(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=xRe,isEnabled:s=kRe,open:o}=e,l=M.useRef(!1),u=M.useRef(null),d=M.useRef(null),f=M.useRef(null),p=M.useRef(null),g=M.useRef(!1),O=M.useRef(null),S=vr(t.ref,O),T=M.useRef(null);M.useEffect(()=>{!o||!O.current||(g.current=!n)},[n,o]),M.useEffect(()=>{if(!o||!O.current)return;const k=ca(O.current);return O.current.contains(k.activeElement)||(O.current.hasAttribute("tabIndex")||O.current.setAttribute("tabIndex","-1"),g.current&&O.current.focus()),()=>{i||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[o]),M.useEffect(()=>{if(!o||!O.current)return;const k=ca(O.current),_=P=>{T.current=P,!(r||!s()||P.key!=="Tab")&&k.activeElement===O.current&&P.shiftKey&&(l.current=!0,d.current&&d.current.focus())},R=()=>{const P=O.current;if(P===null)return;if(!k.hasFocus()||!s()||l.current){l.current=!1;return}if(P.contains(k.activeElement)||r&&k.activeElement!==u.current&&k.activeElement!==d.current)return;if(k.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!g.current)return;let L=[];if((k.activeElement===u.current||k.activeElement===d.current)&&(L=a(O.current)),L.length>0){var j,B;const V=!!((j=T.current)!=null&&j.shiftKey&&((B=T.current)==null?void 0:B.key)==="Tab"),W=L[0],re=L[L.length-1];typeof W!="string"&&typeof re!="string"&&(V?re.focus():W.focus())}else P.focus()};k.addEventListener("focusin",R),k.addEventListener("keydown",_,!0);const N=setInterval(()=>{k.activeElement&&k.activeElement.tagName==="BODY"&&R()},50);return()=>{clearInterval(N),k.removeEventListener("focusin",R),k.removeEventListener("keydown",_,!0)}},[n,r,i,s,o,a]);const w=k=>{f.current===null&&(f.current=k.relatedTarget),g.current=!0,p.current=k.target;const _=t.props.onFocus;_&&_(k)},x=k=>{f.current===null&&(f.current=k.relatedTarget),g.current=!0};return I.jsxs(M.Fragment,{children:[I.jsx("div",{tabIndex:o?0:-1,onFocus:x,ref:u,"data-testid":"sentinelStart"}),M.cloneElement(t,{ref:S,onFocus:w}),I.jsx("div",{tabIndex:o?0:-1,onFocus:x,ref:d,"data-testid":"sentinelEnd"})]})}function _Re(e){return typeof e=="function"?e():e}function CRe(e){return e?e.props.hasOwnProperty("in"):!1}const RRe=new ORe;function IRe(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=RRe,closeAfterTransition:a=!1,onTransitionEnter:s,onTransitionExited:o,children:l,onClose:u,open:d,rootRef:f}=e,p=M.useRef({}),g=M.useRef(null),O=M.useRef(null),S=vr(O,f),[T,w]=M.useState(!d),x=CRe(l);let k=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(k=!1);const _=()=>ca(g.current),R=()=>(p.current.modalRef=O.current,p.current.mount=g.current,p.current),N=()=>{i.mount(R(),{disableScrollLock:r}),O.current&&(O.current.scrollTop=0)},P=Qs(()=>{const ne=_Re(t)||_().body;i.add(R(),ne),O.current&&N()}),L=M.useCallback(()=>i.isTopModal(R()),[i]),j=Qs(ne=>{g.current=ne,ne&&(d&&L()?N():O.current&&l2(O.current,k))}),B=M.useCallback(()=>{i.remove(R(),k)},[k,i]);M.useEffect(()=>()=>{B()},[B]),M.useEffect(()=>{d?P():(!x||!a)&&B()},[d,B,x,a,P]);const V=ne=>K=>{var G;(G=ne.onKeyDown)==null||G.call(ne,K),!(K.key!=="Escape"||K.which===229||!L())&&(n||(K.stopPropagation(),u&&u(K,"escapeKeyDown")))},W=ne=>K=>{var G;(G=ne.onClick)==null||G.call(ne,K),K.target===K.currentTarget&&u&&u(K,"backdropClick")};return{getRootProps:(ne={})=>{const K=a2(e);delete K.onTransitionEnter,delete K.onTransitionExited;const G=Q({},K,ne);return Q({role:"presentation"},G,{onKeyDown:V(G),ref:S})},getBackdropProps:(ne={})=>{const K=ne;return Q({"aria-hidden":!0},K,{onClick:W(K),open:d})},getTransitionProps:()=>{const ne=()=>{w(!1),s&&s()},K=()=>{w(!0),o&&o(),a&&B()};return{onEnter:s3(ne,l==null?void 0:l.props.onEnter),onExited:s3(K,l==null?void 0:l.props.onExited)}},rootRef:S,portalRef:j,isTopModal:L,exited:T,hasTransition:x}}function NRe(e){return dn("MuiModal",e)}hn("MuiModal",["root","hidden","backdrop"]);const DRe=["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"],PRe=e=>{const{open:t,exited:n,classes:r}=e;return pn({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},NRe,r)},LRe=lt("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})=>Q({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),MRe=lt(rO,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),iO=M.forwardRef(function(t,n){var r,i,a,s,o,l;const u=mn({name:"MuiModal",props:t}),{BackdropComponent:d=MRe,BackdropProps:f,className:p,closeAfterTransition:g=!1,children:O,container:S,component:T,components:w={},componentsProps:x={},disableAutoFocus:k=!1,disableEnforceFocus:_=!1,disableEscapeKeyDown:R=!1,disablePortal:N=!1,disableRestoreFocus:P=!1,disableScrollLock:L=!1,hideBackdrop:j=!1,keepMounted:B=!1,onBackdropClick:V,open:W,slotProps:re,slots:ee}=u,q=Tt(u,DRe),ne=Q({},u,{closeAfterTransition:g,disableAutoFocus:k,disableEnforceFocus:_,disableEscapeKeyDown:R,disablePortal:N,disableRestoreFocus:P,disableScrollLock:L,hideBackdrop:j,keepMounted:B}),{getRootProps:K,getBackdropProps:G,getTransitionProps:ie,portalRef:H,isTopModal:Re,exited:Se,hasTransition:Z}=IRe(Q({},ne,{rootRef:n})),ke=Q({},ne,{exited:Se}),$e=PRe(ke),ae={};if(O.props.tabIndex===void 0&&(ae.tabIndex="-1"),Z){const{onEnter:jt,onExited:ct}=ie();ae.onEnter=jt,ae.onExited=ct}const Xe=(r=(i=ee==null?void 0:ee.root)!=null?i:w.Root)!=null?r:LRe,We=(a=(s=ee==null?void 0:ee.backdrop)!=null?s:w.Backdrop)!=null?a:d,Ye=(o=re==null?void 0:re.root)!=null?o:x.root,xt=(l=re==null?void 0:re.backdrop)!=null?l:x.backdrop,it=Ho({elementType:Xe,externalSlotProps:Ye,externalForwardedProps:q,getSlotProps:K,additionalProps:{ref:n,as:T},ownerState:ke,className:wt(p,Ye==null?void 0:Ye.className,$e==null?void 0:$e.root,!ke.open&&ke.exited&&($e==null?void 0:$e.hidden))}),Pt=Ho({elementType:We,externalSlotProps:xt,additionalProps:f,getSlotProps:jt=>G(Q({},jt,{onClick:ct=>{V&&V(ct),jt!=null&&jt.onClick&&jt.onClick(ct)}})),className:wt(xt==null?void 0:xt.className,f==null?void 0:f.className,$e==null?void 0:$e.backdrop),ownerState:ke});return!B&&!W&&(!Z||Se)?null:I.jsx(Wse,{ref:H,container:S,disablePortal:N,children:I.jsxs(Xe,Q({},it,{children:[!j&&d?I.jsx(We,Q({},Pt)):null,I.jsx(ARe,{disableEnforceFocus:_,disableAutoFocus:k,disableRestoreFocus:P,isEnabled:Re,open:W,children:M.cloneElement(O,ae)})]}))})});function $Re(e){return dn("MuiDivider",e)}const ZG=hn("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),FRe=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],BRe=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:a,orientation:s,textAlign:o,variant:l}=e;return pn({root:["root",t&&"absolute",l,a&&"light",s==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",o==="right"&&s!=="vertical"&&"textAlignRight",o==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},$Re,r)},URe=lt("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})=>Q({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)`:Qn(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})=>Q({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>Q({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>Q({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>Q({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),zRe=lt("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>Q({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)`})),wv=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiDivider"}),{absolute:i=!1,children:a,className:s,component:o=a?"div":"hr",flexItem:l=!1,light:u=!1,orientation:d="horizontal",role:f=o!=="hr"?"separator":void 0,textAlign:p="center",variant:g="fullWidth"}=r,O=Tt(r,FRe),S=Q({},r,{absolute:i,component:o,flexItem:l,light:u,orientation:d,role:f,textAlign:p,variant:g}),T=BRe(S);return I.jsx(URe,Q({as:o,className:wt(T.root,s),role:f,ref:n,ownerState:S},O,{children:a?I.jsx(zRe,{className:T.wrapper,ownerState:S,children:a}):null}))});wv.muiSkipListHighlight=!0;const jRe=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function HRe(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),a=Lf(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const u=a.getComputedStyle(t);s=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let o=0,l=0;if(s&&s!=="none"&&typeof s=="string"){const u=s.split("(")[1].split(")")[0].split(",");o=parseInt(u[4],10),l=parseInt(u[5],10)}return e==="left"?i?`translateX(${i.right+o-r.left}px)`:`translateX(${a.innerWidth+o-r.left}px)`:e==="right"?i?`translateX(-${r.right-i.left-o}px)`:`translateX(-${r.left+r.width-o}px)`:e==="up"?i?`translateY(${i.bottom+l-r.top}px)`:`translateY(${a.innerHeight+l-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function QRe(e){return typeof e=="function"?e():e}function hA(e,t,n){const r=QRe(n),i=HRe(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const WRe=M.forwardRef(function(t,n){const r=Uf(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:o=!0,children:l,container:u,direction:d="down",easing:f=i,in:p,onEnter:g,onEntered:O,onEntering:S,onExit:T,onExited:w,onExiting:x,style:k,timeout:_=a,TransitionComponent:R=Pc}=t,N=Tt(t,jRe),P=M.useRef(null),L=vr(l.ref,P,n),j=G=>ie=>{G&&(ie===void 0?G(P.current):G(P.current,ie))},B=j((G,ie)=>{hA(d,G,u),d$(G),g&&g(G,ie)}),V=j((G,ie)=>{const H=im({timeout:_,style:k,easing:f},{mode:"enter"});G.style.webkitTransition=r.transitions.create("-webkit-transform",Q({},H)),G.style.transition=r.transitions.create("transform",Q({},H)),G.style.webkitTransform="none",G.style.transform="none",S&&S(G,ie)}),W=j(O),re=j(x),ee=j(G=>{const ie=im({timeout:_,style:k,easing:f},{mode:"exit"});G.style.webkitTransition=r.transitions.create("-webkit-transform",ie),G.style.transition=r.transitions.create("transform",ie),hA(d,G,u),T&&T(G)}),q=j(G=>{G.style.webkitTransition="",G.style.transition="",w&&w(G)}),ne=G=>{s&&s(P.current,G)},K=M.useCallback(()=>{P.current&&hA(d,P.current,u)},[d,u]);return M.useEffect(()=>{if(p||d==="down"||d==="right")return;const G=B5(()=>{P.current&&hA(d,P.current,u)}),ie=Lf(P.current);return ie.addEventListener("resize",G),()=>{G.clear(),ie.removeEventListener("resize",G)}},[d,p,u]),M.useEffect(()=>{p||K()},[p,K]),I.jsx(R,Q({nodeRef:P,onEnter:B,onEntered:W,onEntering:V,onExit:ee,onExited:q,onExiting:re,addEndListener:ne,appear:o,in:p,timeout:_},N,{children:(G,ie)=>M.cloneElement(l,Q({ref:L,style:Q({visibility:G==="exited"&&!p?"hidden":void 0},k,l.props.style)},ie))}))}),VRe=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],qRe=e=>{const{classes:t,disableUnderline:n}=e,i=pn({root:["root",!n&&"underline"],input:["input"]},RCe,t);return Q({},t,i)},GRe=lt(Y5,{shouldForwardProp:e=>Ys(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...q5(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",i=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",o=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Q({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${ou.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${ou.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:o}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ou.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ou.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(.${ou.disabled}, .${ou.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ou.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Q({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}))}),YRe=lt(Z5,{name:"MuiFilledInput",slot:"Input",overridesResolver:G5})(({theme:e,ownerState:t})=>Q({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})),x$=M.forwardRef(function(t,n){var r,i,a,s;const o=mn({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:d=!1,inputComponent:f="input",multiline:p=!1,slotProps:g,slots:O={},type:S="text"}=o,T=Tt(o,VRe),w=Q({},o,{fullWidth:d,inputComponent:f,multiline:p,type:S}),x=qRe(o),k={root:{ownerState:w},input:{ownerState:w}},_=g??u?Yo(k,g??u):k,R=(r=(i=O.root)!=null?i:l.Root)!=null?r:GRe,N=(a=(s=O.input)!=null?s:l.Input)!=null?a:YRe;return I.jsx(E$,Q({slots:{root:R,input:N},componentsProps:_,fullWidth:d,inputComponent:f,multiline:p,ref:n,type:S},T,{classes:x}))});x$.muiName="Input";function ZRe(e){return dn("MuiFormControl",e)}hn("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const XRe=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],KRe=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${st(n)}`,r&&"fullWidth"]};return pn(i,ZRe,t)},JRe=lt("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>Q({},t.root,t[`margin${st(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>Q({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%"})),Lc=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiFormControl"}),{children:i,className:a,color:s="primary",component:o="div",disabled:l=!1,error:u=!1,focused:d,fullWidth:f=!1,hiddenLabel:p=!1,margin:g="none",required:O=!1,size:S="medium",variant:T="outlined"}=r,w=Tt(r,XRe),x=Q({},r,{color:s,component:o,disabled:l,error:u,fullWidth:f,hiddenLabel:p,margin:g,required:O,size:S,variant:T}),k=KRe(x),[_,R]=M.useState(()=>{let re=!1;return i&&M.Children.forEach(i,ee=>{if(!i2(ee,["Input","Select"]))return;const q=i2(ee,["Select"])?ee.props.input:ee;q&&ECe(q.props)&&(re=!0)}),re}),[N,P]=M.useState(()=>{let re=!1;return i&&M.Children.forEach(i,ee=>{i2(ee,["Input","Select"])&&(c3(ee.props,!0)||c3(ee.props.inputProps,!0))&&(re=!0)}),re}),[L,j]=M.useState(!1);l&&L&&j(!1);const B=d!==void 0&&!l?d:L;let V;const W=M.useMemo(()=>({adornedStart:_,setAdornedStart:R,color:s,disabled:l,error:u,filled:N,focused:B,fullWidth:f,hiddenLabel:p,size:S,onBlur:()=>{j(!1)},onEmpty:()=>{P(!1)},onFilled:()=>{P(!0)},onFocus:()=>{j(!0)},registerEffect:V,required:O,variant:T}),[_,s,l,u,N,B,f,p,V,O,S,T]);return I.jsx(V5.Provider,{value:W,children:I.jsx(JRe,Q({as:o,ownerState:x,className:wt(k.root,a),ref:n},w,{children:i}))})}),Bn=RAe({createStyledComponent:lt("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>mn({props:e,name:"MuiStack"})});function eIe(e){return dn("MuiFormControlLabel",e)}const DE=hn("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),tIe=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],nIe=e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:a}=e,s={root:["root",n&&"disabled",`labelPlacement${st(r)}`,i&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return pn(s,eIe,t)},rIe=lt("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${DE.label}`]:t.label},t.root,t[`labelPlacement${st(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>Q({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${DE.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},{[`& .${DE.label}`]:{[`&.${DE.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),iIe=lt("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${DE.error}`]:{color:(e.vars||e).palette.error.main}})),uw=M.forwardRef(function(t,n){var r,i;const a=mn({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:o={},control:l,disabled:u,disableTypography:d,label:f,labelPlacement:p="end",required:g,slotProps:O={}}=a,S=Tt(a,tIe),T=zf(),w=(r=u??l.props.disabled)!=null?r:T==null?void 0:T.disabled,x=g??l.props.required,k={disabled:w,required:x};["checked","name","onChange","value","inputRef"].forEach(j=>{typeof l.props[j]>"u"&&typeof a[j]<"u"&&(k[j]=a[j])});const _=vm({props:a,muiFormControl:T,states:["error"]}),R=Q({},a,{disabled:w,labelPlacement:p,required:x,error:_.error}),N=nIe(R),P=(i=O.typography)!=null?i:o.typography;let L=f;return L!=null&&L.type!==wr&&!d&&(L=I.jsx(wr,Q({component:"span"},P,{className:wt(N.label,P==null?void 0:P.className),children:L}))),I.jsxs(rIe,Q({className:wt(N.root,s),ownerState:R,ref:n},S,{children:[M.cloneElement(l,k),x?I.jsxs(Bn,{display:"block",children:[L,I.jsxs(iIe,{ownerState:R,"aria-hidden":!0,className:N.asterisk,children:[" ","*"]})]}):L]}))});function aIe(e){return dn("MuiFormGroup",e)}hn("MuiFormGroup",["root","row","error"]);const sIe=["className","row"],oIe=e=>{const{classes:t,row:n,error:r}=e;return pn({root:["root",n&&"row",r&&"error"]},aIe,t)},lIe=lt("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>Q({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),k$=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiFormGroup"}),{className:i,row:a=!1}=r,s=Tt(r,sIe),o=zf(),l=vm({props:r,muiFormControl:o,states:["error"]}),u=Q({},r,{row:a,error:l.error}),d=oIe(u);return I.jsx(lIe,Q({className:wt(d.root,i),ownerState:u,ref:n},s))});function uIe(e){return dn("MuiFormHelperText",e)}const XG=hn("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var KG;const cIe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],dIe=e=>{const{classes:t,contained:n,size:r,disabled:i,error:a,filled:s,focused:o,required:l}=e,u={root:["root",i&&"disabled",a&&"error",r&&`size${st(r)}`,n&&"contained",o&&"focused",s&&"filled",l&&"required"]};return pn(u,uIe,t)},fIe=lt("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${st(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>Q({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${XG.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${XG.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),aO=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiFormHelperText"}),{children:i,className:a,component:s="p"}=r,o=Tt(r,cIe),l=zf(),u=vm({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),d=Q({},r,{component:s,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}),f=dIe(d);return I.jsx(fIe,Q({as:s,ownerState:d,className:wt(f.root,a),ref:n},o,{children:i===" "?KG||(KG=I.jsx("span",{className:"notranslate",children:"​"})):i}))});function hIe(e){return dn("MuiFormLabel",e)}const u2=hn("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),pIe=["children","className","color","component","disabled","error","filled","focused","required"],mIe=e=>{const{classes:t,color:n,focused:r,disabled:i,error:a,filled:s,required:o}=e,l={root:["root",`color${st(n)}`,i&&"disabled",a&&"error",s&&"filled",r&&"focused",o&&"required"],asterisk:["asterisk",a&&"error"]};return pn(l,hIe,t)},gIe=lt("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>Q({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>Q({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${u2.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${u2.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${u2.error}`]:{color:(e.vars||e).palette.error.main}})),bIe=lt("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${u2.error}`]:{color:(e.vars||e).palette.error.main}})),J5=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiFormLabel"}),{children:i,className:a,component:s="label"}=r,o=Tt(r,pIe),l=zf(),u=vm({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),d=Q({},r,{color:u.color||"primary",component:s,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=mIe(d);return I.jsxs(gIe,Q({as:s,ownerState:d,className:wt(f.root,a),ref:n},o,{children:[i,u.required&&I.jsxs(bIe,{ownerState:d,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),JG=M.createContext();function yIe(e){return dn("MuiGrid",e)}const vIe=[0,1,2,3,4,5,6,7,8,9,10],OIe=["column-reverse","column","row-reverse","row"],SIe=["nowrap","wrap-reverse","wrap"],XS=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],cw=hn("MuiGrid",["root","container","item","zeroMinWidth",...vIe.map(e=>`spacing-xs-${e}`),...OIe.map(e=>`direction-xs-${e}`),...SIe.map(e=>`wrap-xs-${e}`),...XS.map(e=>`grid-xs-${e}`),...XS.map(e=>`grid-sm-${e}`),...XS.map(e=>`grid-md-${e}`),...XS.map(e=>`grid-lg-${e}`),...XS.map(e=>`grid-xl-${e}`)]),EIe=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Iy(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function wIe({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,i)=>{let a={};if(t[i]&&(n=t[i]),!n)return r;if(n===!0)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=r1({values:t.columns,breakpoints:e.breakpoints.values}),o=typeof s=="object"?s[i]:s;if(o==null)return r;const l=`${Math.round(n/o*1e8)/1e6}%`;let u={};if(t.container&&t.item&&t.columnSpacing!==0){const d=e.spacing(t.columnSpacing);if(d!=="0px"){const f=`calc(${l} + ${Iy(d)})`;u={flexBasis:f,maxWidth:f}}}a=Q({flexBasis:l,flexGrow:0,maxWidth:l},u)}return e.breakpoints.values[i]===0?Object.assign(r,a):r[e.breakpoints.up(i)]=a,r},{})}function TIe({theme:e,ownerState:t}){const n=r1({values:t.direction,breakpoints:e.breakpoints.values});return Pl({theme:e},n,r=>{const i={flexDirection:r};return r.indexOf("column")===0&&(i[`& > .${cw.item}`]={maxWidth:"none"}),i})}function Jse({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(i=>{n===""&&t[i]!==0&&(n=i)});const r=Object.keys(e).sort((i,a)=>e[i]-e[a]);return r.slice(0,r.indexOf(n))}function xIe({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let i={};if(n&&r!==0){const a=r1({values:r,breakpoints:e.breakpoints.values});let s;typeof a=="object"&&(s=Jse({breakpoints:e.breakpoints.values,values:a})),i=Pl({theme:e},a,(o,l)=>{var u;const d=e.spacing(o);return d!=="0px"?{marginTop:`-${Iy(d)}`,[`& > .${cw.item}`]:{paddingTop:Iy(d)}}:(u=s)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${cw.item}`]:{paddingTop:0}}})}return i}function kIe({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let i={};if(n&&r!==0){const a=r1({values:r,breakpoints:e.breakpoints.values});let s;typeof a=="object"&&(s=Jse({breakpoints:e.breakpoints.values,values:a})),i=Pl({theme:e},a,(o,l)=>{var u;const d=e.spacing(o);return d!=="0px"?{width:`calc(100% + ${Iy(d)})`,marginLeft:`-${Iy(d)}`,[`& > .${cw.item}`]:{paddingLeft:Iy(d)}}:(u=s)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${cw.item}`]:{paddingLeft:0}}})}return i}function AIe(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(i=>{const a=e[i];Number(a)>0&&r.push(n[`spacing-${i}-${String(a)}`])}),r}const _Ie=lt("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:i,item:a,spacing:s,wrap:o,zeroMinWidth:l,breakpoints:u}=n;let d=[];r&&(d=AIe(s,u,t));const f=[];return u.forEach(p=>{const g=n[p];g&&f.push(t[`grid-${p}-${String(g)}`])}),[t.root,r&&t.container,a&&t.item,l&&t.zeroMinWidth,...d,i!=="row"&&t[`direction-xs-${String(i)}`],o!=="wrap"&&t[`wrap-xs-${String(o)}`],...f]}})(({ownerState:e})=>Q({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}),TIe,xIe,kIe,wIe);function CIe(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const i=e[r];if(Number(i)>0){const a=`spacing-${r}-${String(i)}`;n.push(a)}}),n}const RIe=e=>{const{classes:t,container:n,direction:r,item:i,spacing:a,wrap:s,zeroMinWidth:o,breakpoints:l}=e;let u=[];n&&(u=CIe(a,l));const d=[];l.forEach(p=>{const g=e[p];g&&d.push(`grid-${p}-${String(g)}`)});const f={root:["root",n&&"container",i&&"item",o&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,s!=="wrap"&&`wrap-xs-${String(s)}`,...d]};return pn(f,yIe,t)},fy=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiGrid"}),{breakpoints:i}=Uf(),a=gT(r),{className:s,columns:o,columnSpacing:l,component:u="div",container:d=!1,direction:f="row",item:p=!1,rowSpacing:g,spacing:O=0,wrap:S="wrap",zeroMinWidth:T=!1}=a,w=Tt(a,EIe),x=g||O,k=l||O,_=M.useContext(JG),R=d?o||12:_,N={},P=Q({},w);i.keys.forEach(B=>{w[B]!=null&&(N[B]=w[B],delete P[B])});const L=Q({},a,{columns:R,container:d,direction:f,item:p,rowSpacing:x,columnSpacing:k,wrap:S,zeroMinWidth:T,spacing:O},N,{breakpoints:i.keys}),j=RIe(L);return I.jsx(JG.Provider,{value:R,children:I.jsx(_Ie,Q({ownerState:L,className:wt(j.root,s),as:u,ref:n},P))})}),IIe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function zP(e){return`scale(${e}, ${e**2})`}const NIe={entering:{opacity:1,transform:zP(1)},entered:{opacity:1,transform:"none"}},NN=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),f3=M.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:a,easing:s,in:o,onEnter:l,onEntered:u,onEntering:d,onExit:f,onExited:p,onExiting:g,style:O,timeout:S="auto",TransitionComponent:T=Pc}=t,w=Tt(t,IIe),x=Mg(),k=M.useRef(),_=Uf(),R=M.useRef(null),N=vr(R,a.ref,n),P=q=>ne=>{if(q){const K=R.current;ne===void 0?q(K):q(K,ne)}},L=P(d),j=P((q,ne)=>{d$(q);const{duration:K,delay:G,easing:ie}=im({style:O,timeout:S,easing:s},{mode:"enter"});let H;S==="auto"?(H=_.transitions.getAutoHeightDuration(q.clientHeight),k.current=H):H=K,q.style.transition=[_.transitions.create("opacity",{duration:H,delay:G}),_.transitions.create("transform",{duration:NN?H:H*.666,delay:G,easing:ie})].join(","),l&&l(q,ne)}),B=P(u),V=P(g),W=P(q=>{const{duration:ne,delay:K,easing:G}=im({style:O,timeout:S,easing:s},{mode:"exit"});let ie;S==="auto"?(ie=_.transitions.getAutoHeightDuration(q.clientHeight),k.current=ie):ie=ne,q.style.transition=[_.transitions.create("opacity",{duration:ie,delay:K}),_.transitions.create("transform",{duration:NN?ie:ie*.666,delay:NN?K:K||ie*.333,easing:G})].join(","),q.style.opacity=0,q.style.transform=zP(.75),f&&f(q)}),re=P(p),ee=q=>{S==="auto"&&x.start(k.current||0,q),r&&r(R.current,q)};return I.jsx(T,Q({appear:i,in:o,nodeRef:R,onEnter:j,onEntered:B,onEntering:L,onExit:W,onExited:re,onExiting:V,addEndListener:ee,timeout:S==="auto"?null:S},w,{children:(q,ne)=>M.cloneElement(a,Q({style:Q({opacity:0,transform:zP(.75),visibility:q==="exited"&&!o?"hidden":void 0},NIe[q],O,a.props.style),ref:N},ne))}))});f3.muiSupportAuto=!0;function DIe(e){return dn("MuiIcon",e)}hn("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const PIe=["baseClassName","className","color","component","fontSize"],LIe=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${st(t)}`,`fontSize${st(n)}`]};return pn(i,DIe,r)},MIe=lt("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${st(n.color)}`],t[`fontSize${st(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:e.typography.pxToRem(20),medium:e.typography.pxToRem(24),large:e.typography.pxToRem(36)}[t.fontSize],color:{primary:(e.vars||e).palette.primary.main,secondary:(e.vars||e).palette.secondary.main,info:(e.vars||e).palette.info.main,success:(e.vars||e).palette.success.main,warning:(e.vars||e).palette.warning.main,action:(e.vars||e).palette.action.active,error:(e.vars||e).palette.error.main,disabled:(e.vars||e).palette.action.disabled,inherit:void 0}[t.color]})),eoe=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiIcon"}),{baseClassName:i="material-icons",className:a,color:s="inherit",component:o="span",fontSize:l="medium"}=r,u=Tt(r,PIe),d=Q({},r,{baseClassName:i,color:s,component:o,fontSize:l}),f=LIe(d);return I.jsx(MIe,Q({as:o,className:wt(i,"notranslate",f.root,a),ownerState:d,"aria-hidden":!0,ref:n},u))});eoe.muiName="Icon";const $Ie=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],FIe=e=>{const{classes:t,disableUnderline:n}=e,i=pn({root:["root",!n&&"underline"],input:["input"]},_Ce,t);return Q({},t,i)},BIe=lt(Y5,{shouldForwardProp:e=>Ys(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...q5(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})`),Q({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"},[`&.${m0.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${m0.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(.${m0.disabled}, .${m0.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${m0.disabled}:before`]:{borderBottomStyle:"dotted"}})}),UIe=lt(Z5,{name:"MuiInput",slot:"Input",overridesResolver:G5})({}),A$=M.forwardRef(function(t,n){var r,i,a,s;const o=mn({props:t,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:d,fullWidth:f=!1,inputComponent:p="input",multiline:g=!1,slotProps:O,slots:S={},type:T="text"}=o,w=Tt(o,$Ie),x=FIe(o),_={root:{ownerState:{disableUnderline:l}}},R=O??d?Yo(O??d,_):_,N=(r=(i=S.root)!=null?i:u.Root)!=null?r:BIe,P=(a=(s=S.input)!=null?s:u.Input)!=null?a:UIe;return I.jsx(E$,Q({slots:{root:N,input:P},slotProps:R,fullWidth:f,inputComponent:p,multiline:g,ref:n,type:T},w,{classes:x}))});A$.muiName="Input";function zIe(e){return dn("MuiInputAdornment",e)}const eY=hn("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var tY;const jIe=["children","className","component","disablePointerEvents","disableTypography","position","variant"],HIe=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${st(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},QIe=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:a,variant:s}=e,o={root:["root",n&&"disablePointerEvents",i&&`position${st(i)}`,s,r&&"hiddenLabel",a&&`size${st(a)}`]};return pn(o,zIe,t)},WIe=lt("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:HIe})(({theme:e,ownerState:t})=>Q({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${eY.positionStart}&:not(.${eY.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),jP=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiInputAdornment"}),{children:i,className:a,component:s="div",disablePointerEvents:o=!1,disableTypography:l=!1,position:u,variant:d}=r,f=Tt(r,jIe),p=zf()||{};let g=d;d&&p.variant,p&&!g&&(g=p.variant);const O=Q({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:o,position:u,variant:g}),S=QIe(O);return I.jsx(V5.Provider,{value:null,children:I.jsx(WIe,Q({as:s,ownerState:O,className:wt(S.root,a),ref:n},f,{children:typeof i=="string"&&!l?I.jsx(wr,{color:"text.secondary",children:i}):I.jsxs(M.Fragment,{children:[u==="start"?tY||(tY=I.jsx("span",{className:"notranslate",children:"​"})):null,i]})}))})});function VIe(e){return dn("MuiInputLabel",e)}hn("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const qIe=["disableAnimation","margin","shrink","variant","className"],GIe=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:a,variant:s,required:o}=e,l={root:["root",n&&"formControl",!a&&"animated",i&&"shrink",r&&r!=="normal"&&`size${st(r)}`,s],asterisk:[o&&"asterisk"]},u=pn(l,VIe,t);return Q({},t,u)},YIe=lt(J5,{shouldForwardProp:e=>Ys(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${u2.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})=>Q({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"&&Q({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&&Q({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"&&Q({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)"}))),toe=M.forwardRef(function(t,n){const r=mn({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:a,className:s}=r,o=Tt(r,qIe),l=zf();let u=a;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const d=vm({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),f=Q({},r,{disableAnimation:i,formControl:l,shrink:u,size:d.size,variant:d.variant,required:d.required,focused:d.focused}),p=GIe(f);return I.jsx(YIe,Q({"data-shrink":u,ownerState:f,ref:n,className:wt(p.root,s)},o,{classes:p}))}),vc=M.createContext({});function ZIe(e){return dn("MuiList",e)}hn("MuiList",["root","padding","dense","subheader"]);const XIe=["children","className","component","dense","disablePadding","subheader"],KIe=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return pn({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},ZIe,t)},JIe=lt("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})=>Q({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),noe=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiList"}),{children:i,className:a,component:s="ul",dense:o=!1,disablePadding:l=!1,subheader:u}=r,d=Tt(r,XIe),f=M.useMemo(()=>({dense:o}),[o]),p=Q({},r,{component:s,dense:o,disablePadding:l}),g=KIe(p);return I.jsx(vc.Provider,{value:f,children:I.jsxs(JIe,Q({as:s,className:wt(g.root,a),ref:n,ownerState:p},d,{children:[u,i]}))})});function e6e(e){return dn("MuiListItem",e)}const zb=hn("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function t6e(e){return dn("MuiListItemButton",e)}const jb=hn("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),n6e=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],r6e=(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]},i6e=e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:a,divider:s,selected:o}=e,u=pn({root:["root",r&&"dense",!a&&"gutters",s&&"divider",i&&"disabled",t==="flex-start"&&"alignItemsFlexStart",o&&"selected"]},t6e,n);return Q({},n,u)},a6e=lt(Mf,{shouldForwardProp:e=>Ys(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:r6e})(({theme:e,ownerState:t})=>Q({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"}},[`&.${jb.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${jb.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${jb.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Qn(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})`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${jb.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${jb.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})),nY=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiListItemButton"}),{alignItems:i="center",autoFocus:a=!1,component:s="div",children:o,dense:l=!1,disableGutters:u=!1,divider:d=!1,focusVisibleClassName:f,selected:p=!1,className:g}=r,O=Tt(r,n6e),S=M.useContext(vc),T=M.useMemo(()=>({dense:l||S.dense||!1,alignItems:i,disableGutters:u}),[i,S.dense,l,u]),w=M.useRef(null);Ko(()=>{a&&w.current&&w.current.focus()},[a]);const x=Q({},r,{alignItems:i,dense:T.dense,disableGutters:u,divider:d,selected:p}),k=i6e(x),_=vr(w,n);return I.jsx(vc.Provider,{value:T,children:I.jsx(a6e,Q({ref:_,href:O.href||O.to,component:(O.href||O.to)&&s==="div"?"button":s,focusVisibleClassName:wt(k.focusVisible,f),ownerState:x,className:wt(k.root,g)},O,{classes:k,children:o}))})});function s6e(e){return dn("MuiListItemSecondaryAction",e)}hn("MuiListItemSecondaryAction",["root","disableGutters"]);const o6e=["className"],l6e=e=>{const{disableGutters:t,classes:n}=e;return pn({root:["root",t&&"disableGutters"]},s6e,n)},u6e=lt("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>Q({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),_$=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=r,a=Tt(r,o6e),s=M.useContext(vc),o=Q({},r,{disableGutters:s.disableGutters}),l=l6e(o);return I.jsx(u6e,Q({className:wt(l.root,i),ownerState:o,ref:n},a))});_$.muiName="ListItemSecondaryAction";const c6e=["className"],d6e=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],f6e=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},h6e=e=>{const{alignItems:t,button:n,classes:r,dense:i,disabled:a,disableGutters:s,disablePadding:o,divider:l,hasSecondaryAction:u,selected:d}=e;return pn({root:["root",i&&"dense",!s&&"gutters",!o&&"padding",l&&"divider",a&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",d&&"selected"],container:["container"]},e6e,r)},p6e=lt("div",{name:"MuiListItem",slot:"Root",overridesResolver:f6e})(({theme:e,ownerState:t})=>Q({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&Q({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${jb.root}`]:{paddingRight:48}},{[`&.${zb.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${zb.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${zb.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${zb.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"}},[`&.${zb.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Qn(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})`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),m6e=lt("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),g6e=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiListItem"}),{alignItems:i="center",autoFocus:a=!1,button:s=!1,children:o,className:l,component:u,components:d={},componentsProps:f={},ContainerComponent:p="li",ContainerProps:{className:g}={},dense:O=!1,disabled:S=!1,disableGutters:T=!1,disablePadding:w=!1,divider:x=!1,focusVisibleClassName:k,secondaryAction:_,selected:R=!1,slotProps:N={},slots:P={}}=r,L=Tt(r.ContainerProps,c6e),j=Tt(r,d6e),B=M.useContext(vc),V=M.useMemo(()=>({dense:O||B.dense||!1,alignItems:i,disableGutters:T}),[i,B.dense,O,T]),W=M.useRef(null);Ko(()=>{a&&W.current&&W.current.focus()},[a]);const re=M.Children.toArray(o),ee=re.length&&i2(re[re.length-1],["ListItemSecondaryAction"]),q=Q({},r,{alignItems:i,autoFocus:a,button:s,dense:V.dense,disabled:S,disableGutters:T,disablePadding:w,divider:x,hasSecondaryAction:ee,selected:R}),ne=h6e(q),K=vr(W,n),G=P.root||d.Root||p6e,ie=N.root||f.root||{},H=Q({className:wt(ne.root,ie.className,l),disabled:S},j);let Re=u||"li";return s&&(H.component=u||"div",H.focusVisibleClassName=wt(zb.focusVisible,k),Re=Mf),ee?(Re=!H.component&&!u?"div":Re,p==="li"&&(Re==="li"?Re="div":H.component==="li"&&(H.component="div")),I.jsx(vc.Provider,{value:V,children:I.jsxs(m6e,Q({as:p,className:wt(ne.container,g),ref:K,ownerState:q},L,{children:[I.jsx(G,Q({},ie,!Rf(G)&&{as:Re,ownerState:Q({},q,ie.ownerState)},H,{children:re})),re.pop()]}))})):I.jsx(vc.Provider,{value:V,children:I.jsxs(G,Q({},ie,{as:Re,ref:K},!Rf(G)&&{ownerState:Q({},q,ie.ownerState)},H,{children:[re,_&&I.jsx(_$,{children:_})]}))})});function b6e(e){return dn("MuiListItemAvatar",e)}hn("MuiListItemAvatar",["root","alignItemsFlexStart"]);const y6e=["className"],v6e=e=>{const{alignItems:t,classes:n}=e;return pn({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},b6e,n)},O6e=lt("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>Q({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),S6e=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiListItemAvatar"}),{className:i}=r,a=Tt(r,y6e),s=M.useContext(vc),o=Q({},r,{alignItems:s.alignItems}),l=v6e(o);return I.jsx(O6e,Q({className:wt(l.root,i),ownerState:o,ref:n},a))});function E6e(e){return dn("MuiListItemIcon",e)}const rY=hn("MuiListItemIcon",["root","alignItemsFlexStart"]),w6e=["className"],T6e=e=>{const{alignItems:t,classes:n}=e;return pn({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},E6e,n)},x6e=lt("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})=>Q({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),s1=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiListItemIcon"}),{className:i}=r,a=Tt(r,w6e),s=M.useContext(vc),o=Q({},r,{alignItems:s.alignItems}),l=T6e(o);return I.jsx(x6e,Q({className:wt(l.root,i),ownerState:o,ref:n},a))});function k6e(e){return dn("MuiListItemText",e)}const h3=hn("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),A6e=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],_6e=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:a}=e;return pn({root:["root",n&&"inset",a&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},k6e,t)},C6e=lt("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${h3.primary}`]:t.primary},{[`& .${h3.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>Q({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Vh=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiListItemText"}),{children:i,className:a,disableTypography:s=!1,inset:o=!1,primary:l,primaryTypographyProps:u,secondary:d,secondaryTypographyProps:f}=r,p=Tt(r,A6e),{dense:g}=M.useContext(vc);let O=l??i,S=d;const T=Q({},r,{disableTypography:s,inset:o,primary:!!O,secondary:!!S,dense:g}),w=_6e(T);return O!=null&&O.type!==wr&&!s&&(O=I.jsx(wr,Q({variant:g?"body2":"body1",className:w.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:O}))),S!=null&&S.type!==wr&&!s&&(S=I.jsx(wr,Q({variant:"body2",className:w.secondary,color:"text.secondary",display:"block"},f,{children:S}))),I.jsxs(C6e,Q({className:wt(w.root,a),ownerState:T,ref:n},p,{children:[O,S]}))}),R6e=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function DN(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function iY(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function roe(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 KS(e,t,n,r,i,a){let s=!1,o=i(e,t,t?n:!1);for(;o;){if(o===e.firstChild){if(s)return!1;s=!0}const l=r?!1:o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||!roe(o,a)||l)o=i(e,o,n);else return o.focus(),!0}return!1}const dw=M.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:a=!1,children:s,className:o,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:d,variant:f="selectedMenu"}=t,p=Tt(t,R6e),g=M.useRef(null),O=M.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ko(()=>{i&&g.current.focus()},[i]),M.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(k,{direction:_})=>{const R=!g.current.style.width;if(k.clientHeight{const _=g.current,R=k.key,N=ca(_).activeElement;if(R==="ArrowDown")k.preventDefault(),KS(_,N,u,l,DN);else if(R==="ArrowUp")k.preventDefault(),KS(_,N,u,l,iY);else if(R==="Home")k.preventDefault(),KS(_,null,u,l,DN);else if(R==="End")k.preventDefault(),KS(_,null,u,l,iY);else if(R.length===1){const P=O.current,L=R.toLowerCase(),j=performance.now();P.keys.length>0&&(j-P.lastTime>500?(P.keys=[],P.repeating=!0,P.previousKeyMatched=!0):P.repeating&&L!==P.keys[0]&&(P.repeating=!1)),P.lastTime=j,P.keys.push(L);const B=N&&!P.repeating&&roe(N,P);P.previousKeyMatched&&(B||KS(_,N,!1,l,DN,P))?k.preventDefault():P.previousKeyMatched=!1}d&&d(k)},T=vr(g,n);let w=-1;M.Children.forEach(s,(k,_)=>{if(!M.isValidElement(k)){w===_&&(w+=1,w>=s.length&&(w=-1));return}k.props.disabled||(f==="selectedMenu"&&k.props.selected||w===-1)&&(w=_),w===_&&(k.props.disabled||k.props.muiSkipListHighlight||k.type.muiSkipListHighlight)&&(w+=1,w>=s.length&&(w=-1))});const x=M.Children.map(s,(k,_)=>{if(_===w){const R={};return a&&(R.autoFocus=!0),k.props.tabIndex===void 0&&f==="selectedMenu"&&(R.tabIndex=0),M.cloneElement(k,R)}return k});return I.jsx(noe,Q({role:"menu",ref:T,className:o,onKeyDown:S,tabIndex:i?0:-1},p,{children:x}))});function I6e(e){return dn("MuiPopover",e)}hn("MuiPopover",["root","paper"]);const N6e=["onEntering"],D6e=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],P6e=["slotProps"];function aY(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function sY(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function oY(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function PN(e){return typeof e=="function"?e():e}const L6e=e=>{const{classes:t}=e;return pn({root:["root"],paper:["paper"]},I6e,t)},M6e=lt(iO,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ioe=lt(Gs,{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}),sO=M.forwardRef(function(t,n){var r,i,a;const s=mn({props:t,name:"MuiPopover"}),{action:o,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:f="anchorEl",children:p,className:g,container:O,elevation:S=8,marginThreshold:T=16,open:w,PaperProps:x={},slots:k,slotProps:_,transformOrigin:R={vertical:"top",horizontal:"left"},TransitionComponent:N=f3,transitionDuration:P="auto",TransitionProps:{onEntering:L}={},disableScrollLock:j=!1}=s,B=Tt(s.TransitionProps,N6e),V=Tt(s,D6e),W=(r=_==null?void 0:_.paper)!=null?r:x,re=M.useRef(),ee=vr(re,W.ref),q=Q({},s,{anchorOrigin:u,anchorReference:f,elevation:S,marginThreshold:T,externalPaperSlotProps:W,transformOrigin:R,TransitionComponent:N,transitionDuration:P,TransitionProps:B}),ne=L6e(q),K=M.useCallback(()=>{if(f==="anchorPosition")return d;const jt=PN(l),Ot=(jt&&jt.nodeType===1?jt:ca(re.current).body).getBoundingClientRect();return{top:Ot.top+aY(Ot,u.vertical),left:Ot.left+sY(Ot,u.horizontal)}},[l,u.horizontal,u.vertical,d,f]),G=M.useCallback(jt=>({vertical:aY(jt,R.vertical),horizontal:sY(jt,R.horizontal)}),[R.horizontal,R.vertical]),ie=M.useCallback(jt=>{const ct={width:jt.offsetWidth,height:jt.offsetHeight},Ot=G(ct);if(f==="none")return{top:null,left:null,transformOrigin:oY(Ot)};const yt=K();let Ut=yt.top-Ot.vertical,de=yt.left-Ot.horizontal;const _e=Ut+ct.height,Ne=de+ct.width,Ke=Lf(PN(l)),ut=Ke.innerHeight-T,Je=Ke.innerWidth-T;if(T!==null&&Utut){const gt=_e-ut;Ut-=gt,Ot.vertical+=gt}if(T!==null&&deJe){const gt=Ne-Je;de-=gt,Ot.horizontal+=gt}return{top:`${Math.round(Ut)}px`,left:`${Math.round(de)}px`,transformOrigin:oY(Ot)}},[l,f,K,G,T]),[H,Re]=M.useState(w),Se=M.useCallback(()=>{const jt=re.current;if(!jt)return;const ct=ie(jt);ct.top!==null&&(jt.style.top=ct.top),ct.left!==null&&(jt.style.left=ct.left),jt.style.transformOrigin=ct.transformOrigin,Re(!0)},[ie]);M.useEffect(()=>(j&&window.addEventListener("scroll",Se),()=>window.removeEventListener("scroll",Se)),[l,j,Se]);const Z=(jt,ct)=>{L&&L(jt,ct),Se()},ke=()=>{Re(!1)};M.useEffect(()=>{w&&Se()}),M.useImperativeHandle(o,()=>w?{updatePosition:()=>{Se()}}:null,[w,Se]),M.useEffect(()=>{if(!w)return;const jt=B5(()=>{Se()}),ct=Lf(l);return ct.addEventListener("resize",jt),()=>{jt.clear(),ct.removeEventListener("resize",jt)}},[l,w,Se]);let $e=P;P==="auto"&&!N.muiSupportAuto&&($e=void 0);const ae=O||(l?ca(PN(l)).body:void 0),Xe=(i=k==null?void 0:k.root)!=null?i:M6e,We=(a=k==null?void 0:k.paper)!=null?a:ioe,Ye=Ho({elementType:We,externalSlotProps:Q({},W,{style:H?W.style:Q({},W.style,{opacity:0})}),additionalProps:{elevation:S,ref:ee},ownerState:q,className:wt(ne.paper,W==null?void 0:W.className)}),xt=Ho({elementType:Xe,externalSlotProps:(_==null?void 0:_.root)||{},externalForwardedProps:V,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:ae,open:w},ownerState:q,className:wt(ne.root,g)}),{slotProps:it}=xt,Pt=Tt(xt,P6e);return I.jsx(Xe,Q({},Pt,!Rf(Xe)&&{slotProps:it,disableScrollLock:j},{children:I.jsx(N,Q({appear:!0,in:w,onEntering:Z,onExited:ke,timeout:$e},B,{children:I.jsx(We,Q({},Ye,{children:p}))}))}))});function $6e(e){return dn("MuiMenu",e)}hn("MuiMenu",["root","paper","list"]);const F6e=["onEntering"],B6e=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],U6e={vertical:"top",horizontal:"right"},z6e={vertical:"top",horizontal:"left"},j6e=e=>{const{classes:t}=e;return pn({root:["root"],paper:["paper"],list:["list"]},$6e,t)},H6e=lt(sO,{shouldForwardProp:e=>Ys(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Q6e=lt(ioe,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),W6e=lt(dw,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),aoe=M.forwardRef(function(t,n){var r,i;const a=mn({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:o,className:l,disableAutoFocusItem:u=!1,MenuListProps:d={},onClose:f,open:p,PaperProps:g={},PopoverClasses:O,transitionDuration:S="auto",TransitionProps:{onEntering:T}={},variant:w="selectedMenu",slots:x={},slotProps:k={}}=a,_=Tt(a.TransitionProps,F6e),R=Tt(a,B6e),N=r$(),P=Q({},a,{autoFocus:s,disableAutoFocusItem:u,MenuListProps:d,onEntering:T,PaperProps:g,transitionDuration:S,TransitionProps:_,variant:w}),L=j6e(P),j=s&&!u&&p,B=M.useRef(null),V=(G,ie)=>{B.current&&B.current.adjustStyleForScrollbar(G,{direction:N?"rtl":"ltr"}),T&&T(G,ie)},W=G=>{G.key==="Tab"&&(G.preventDefault(),f&&f(G,"tabKeyDown"))};let re=-1;M.Children.map(o,(G,ie)=>{M.isValidElement(G)&&(G.props.disabled||(w==="selectedMenu"&&G.props.selected||re===-1)&&(re=ie))});const ee=(r=x.paper)!=null?r:Q6e,q=(i=k.paper)!=null?i:g,ne=Ho({elementType:x.root,externalSlotProps:k.root,ownerState:P,className:[L.root,l]}),K=Ho({elementType:ee,externalSlotProps:q,ownerState:P,className:L.paper});return I.jsx(H6e,Q({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:N?"right":"left"},transformOrigin:N?U6e:z6e,slots:{paper:ee,root:x.root},slotProps:{root:ne,paper:K},open:p,ref:n,transitionDuration:S,TransitionProps:Q({onEntering:V},_),ownerState:P},R,{classes:O,children:I.jsx(W6e,Q({onKeyDown:W,actions:B,autoFocus:s&&(re===-1||u),autoFocusItem:j,variant:w},d,{className:wt(L.list,d.className),children:o}))}))});function V6e(e){return dn("MuiMenuItem",e)}const JS=hn("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),q6e=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],G6e=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Y6e=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:a,classes:s}=e,l=pn({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",a&&"selected"]},V6e,s);return Q({},s,l)},Z6e=lt(Mf,{shouldForwardProp:e=>Ys(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:G6e})(({theme:e,ownerState:t})=>Q({},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"}},[`&.${JS.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${JS.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${JS.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Qn(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})`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${JS.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${JS.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${ZG.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${ZG.inset}`]:{marginLeft:52},[`& .${h3.root}`]:{marginTop:0,marginBottom:0},[`& .${h3.inset}`]:{paddingLeft:36},[`& .${rY.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Q({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${rY.root} svg`]:{fontSize:"1.25rem"}}))),Od=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:a="li",dense:s=!1,divider:o=!1,disableGutters:l=!1,focusVisibleClassName:u,role:d="menuitem",tabIndex:f,className:p}=r,g=Tt(r,q6e),O=M.useContext(vc),S=M.useMemo(()=>({dense:s||O.dense||!1,disableGutters:l}),[O.dense,s,l]),T=M.useRef(null);Ko(()=>{i&&T.current&&T.current.focus()},[i]);const w=Q({},r,{dense:S.dense,divider:o,disableGutters:l}),x=Y6e(r),k=vr(T,n);let _;return r.disabled||(_=f!==void 0?f:-1),I.jsx(vc.Provider,{value:S,children:I.jsx(Z6e,Q({ref:k,role:d,tabIndex:_,component:a,focusVisibleClassName:wt(x.focusVisible,u),className:wt(x.root,p)},g,{ownerState:w,classes:x}))})});function X6e(e){return dn("MuiNativeSelect",e)}const C$=hn("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),K6e=["className","disabled","error","IconComponent","inputRef","variant"],J6e=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,o={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${st(n)}`,a&&"iconOpen",r&&"disabled"]};return pn(o,X6e,t)},soe=({ownerState:e,theme:t})=>Q({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Q({},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"},[`&.${C$.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}}),eNe=lt("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ys,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${C$.multiple}`]:t.multiple}]}})(soe),ooe=({ownerState:e,theme:t})=>Q({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${C$.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),tNe=lt("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${st(n.variant)}`],n.open&&t.iconOpen]}})(ooe),nNe=M.forwardRef(function(t,n){const{className:r,disabled:i,error:a,IconComponent:s,inputRef:o,variant:l="standard"}=t,u=Tt(t,K6e),d=Q({},t,{disabled:i,variant:l,error:a}),f=J6e(d);return I.jsxs(M.Fragment,{children:[I.jsx(eNe,Q({ownerState:d,className:wt(f.select,r),disabled:i,ref:o||n},u)),t.multiple?null:I.jsx(tNe,{as:s,ownerState:d,className:f.icon})]})});var lY;const rNe=["children","classes","className","label","notched"],iNe=lt("fieldset",{shouldForwardProp:Ys})({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%"}),aNe=lt("legend",{shouldForwardProp:Ys})(({ownerState:e,theme:t})=>Q({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&&Q({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 sNe(e){const{className:t,label:n,notched:r}=e,i=Tt(e,rNe),a=n!=null&&n!=="",s=Q({},e,{notched:r,withLabel:a});return I.jsx(iNe,Q({"aria-hidden":!0,className:t,ownerState:s},i,{children:I.jsx(aNe,{ownerState:s,children:a?I.jsx("span",{children:n}):lY||(lY=I.jsx("span",{className:"notranslate",children:"​"}))})}))}const oNe=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],lNe=e=>{const{classes:t}=e,r=pn({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},CCe,t);return Q({},t,r)},uNe=lt(Y5,{shouldForwardProp:e=>Ys(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:q5})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Q({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${rf.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${rf.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${rf.focused} .${rf.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${rf.error} .${rf.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${rf.disabled} .${rf.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Q({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),cNe=lt(sNe,{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}}),dNe=lt(Z5,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:G5})(({theme:e,ownerState:t})=>Q({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})),R$=M.forwardRef(function(t,n){var r,i,a,s,o;const l=mn({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:d=!1,inputComponent:f="input",label:p,multiline:g=!1,notched:O,slots:S={},type:T="text"}=l,w=Tt(l,oNe),x=lNe(l),k=zf(),_=vm({props:l,muiFormControl:k,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),R=Q({},l,{color:_.color||"primary",disabled:_.disabled,error:_.error,focused:_.focused,formControl:k,fullWidth:d,hiddenLabel:_.hiddenLabel,multiline:g,size:_.size,type:T}),N=(r=(i=S.root)!=null?i:u.Root)!=null?r:uNe,P=(a=(s=S.input)!=null?s:u.Input)!=null?a:dNe;return I.jsx(E$,Q({slots:{root:N,input:P},renderSuffix:L=>I.jsx(cNe,{ownerState:R,className:x.notchedOutline,label:p!=null&&p!==""&&_.required?o||(o=I.jsxs(M.Fragment,{children:[p," ","*"]})):p,notched:typeof O<"u"?O:!!(L.startAdornment||L.filled||L.focused)}),fullWidth:d,inputComponent:f,multiline:g,ref:n,type:T},w,{classes:Q({},x,{notchedOutline:null})}))});R$.muiName="Input";const fNe=Id(I.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"),hNe=Id(I.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"),pNe=lt("span",{shouldForwardProp:Ys})({position:"relative",display:"flex"}),mNe=lt(fNe)({transform:"scale(1)"}),gNe=lt(hNe)(({theme:e,ownerState:t})=>Q({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 loe(e){const{checked:t=!1,classes:n={},fontSize:r}=e,i=Q({},e,{checked:t});return I.jsxs(pNe,{className:n.root,ownerState:i,children:[I.jsx(mNe,{fontSize:r,className:n.background,ownerState:i}),I.jsx(gNe,{fontSize:r,className:n.dot,ownerState:i})]})}const uoe=M.createContext(void 0);function bNe(){return M.useContext(uoe)}function yNe(e){return dn("MuiRadio",e)}const uY=hn("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),vNe=["checked","checkedIcon","color","icon","name","onChange","size","className"],ONe=e=>{const{classes:t,color:n,size:r}=e,i={root:["root",`color${st(n)}`,r!=="medium"&&`size${st(r)}`]};return Q({},t,pn(i,yNe,t))},SNe=lt(w$,{shouldForwardProp:e=>Ys(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${st(n.size)}`],t[`color${st(n.color)}`]]}})(({theme:e,ownerState:t})=>Q({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})`:Qn(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${uY.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${uY.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function ENe(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const cY=I.jsx(loe,{checked:!0}),dY=I.jsx(loe,{}),fY=M.forwardRef(function(t,n){var r,i;const a=mn({props:t,name:"MuiRadio"}),{checked:s,checkedIcon:o=cY,color:l="primary",icon:u=dY,name:d,onChange:f,size:p="medium",className:g}=a,O=Tt(a,vNe),S=Q({},a,{color:l,size:p}),T=ONe(S),w=bNe();let x=s;const k=s3(f,w&&w.onChange);let _=d;return w&&(typeof x>"u"&&(x=ENe(w.value,a.value)),typeof _>"u"&&(_=w.name)),I.jsx(SNe,Q({type:"radio",icon:M.cloneElement(u,{fontSize:(r=dY.props.fontSize)!=null?r:p}),checkedIcon:M.cloneElement(o,{fontSize:(i=cY.props.fontSize)!=null?i:p}),ownerState:S,classes:T,name:_,checked:x,onChange:k,ref:n,className:wt(T.root,g)},O))});function wNe(e){return dn("MuiRadioGroup",e)}hn("MuiRadioGroup",["root","row","error"]);const TNe=["actions","children","className","defaultValue","name","onChange","value"],xNe=e=>{const{classes:t,row:n,error:r}=e;return pn({root:["root",n&&"row",r&&"error"]},wNe,t)},kNe=M.forwardRef(function(t,n){const{actions:r,children:i,className:a,defaultValue:s,name:o,onChange:l,value:u}=t,d=Tt(t,TNe),f=M.useRef(null),p=xNe(t),[g,O]=Cf({controlled:u,default:s,name:"RadioGroup"});M.useImperativeHandle(r,()=>({focus:()=>{let x=f.current.querySelector("input:not(:disabled):checked");x||(x=f.current.querySelector("input:not(:disabled)")),x&&x.focus()}}),[]);const S=vr(n,f),T=eO(o),w=M.useMemo(()=>({name:T,onChange(x){O(x.target.value),l&&l(x,x.target.value)},value:g}),[T,l,O,g]);return I.jsx(uoe.Provider,{value:w,children:I.jsx(k$,Q({role:"radiogroup",ref:S,className:wt(p.root,a)},d,{children:i}))})});function ANe(e){return dn("MuiSelect",e)}const eE=hn("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var hY;const _Ne=["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"],CNe=lt("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${eE.select}`]:t.select},{[`&.${eE.select}`]:t[n.variant]},{[`&.${eE.error}`]:t.error},{[`&.${eE.multiple}`]:t.multiple}]}})(soe,{[`&.${eE.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),RNe=lt("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${st(n.variant)}`],n.open&&t.iconOpen]}})(ooe),INe=lt("input",{shouldForwardProp:e=>j5(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 pY(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function NNe(e){return e==null||typeof e=="string"&&!e.trim()}const DNe=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,o={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${st(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return pn(o,ANe,t)},PNe=M.forwardRef(function(t,n){var r;const{"aria-describedby":i,"aria-label":a,autoFocus:s,autoWidth:o,children:l,className:u,defaultOpen:d,defaultValue:f,disabled:p,displayEmpty:g,error:O=!1,IconComponent:S,inputRef:T,labelId:w,MenuProps:x={},multiple:k,name:_,onBlur:R,onChange:N,onClose:P,onFocus:L,onOpen:j,open:B,readOnly:V,renderValue:W,SelectDisplayProps:re={},tabIndex:ee,value:q,variant:ne="standard"}=t,K=Tt(t,_Ne),[G,ie]=Cf({controlled:q,default:f,name:"Select"}),[H,Re]=Cf({controlled:B,default:d,name:"Select"}),Se=M.useRef(null),Z=M.useRef(null),[ke,$e]=M.useState(null),{current:ae}=M.useRef(B!=null),[Xe,We]=M.useState(),Ye=vr(n,T),xt=M.useCallback(tt=>{Z.current=tt,tt&&$e(tt)},[]),it=ke==null?void 0:ke.parentNode;M.useImperativeHandle(Ye,()=>({focus:()=>{Z.current.focus()},node:Se.current,value:G}),[G]),M.useEffect(()=>{d&&H&&ke&&!ae&&(We(o?null:it.clientWidth),Z.current.focus())},[ke,o]),M.useEffect(()=>{s&&Z.current.focus()},[s]),M.useEffect(()=>{if(!w)return;const tt=ca(Z.current).getElementById(w);if(tt){const Wt=()=>{getSelection().isCollapsed&&Z.current.focus()};return tt.addEventListener("click",Wt),()=>{tt.removeEventListener("click",Wt)}}},[w]);const Pt=(tt,Wt)=>{tt?j&&j(Wt):P&&P(Wt),ae||(We(o?null:it.clientWidth),Re(tt))},jt=tt=>{tt.button===0&&(tt.preventDefault(),Z.current.focus(),Pt(!0,tt))},ct=tt=>{Pt(!1,tt)},Ot=M.Children.toArray(l),yt=tt=>{const Wt=Ot.find(Ht=>Ht.props.value===tt.target.value);Wt!==void 0&&(ie(Wt.props.value),N&&N(tt,Wt))},Ut=tt=>Wt=>{let Ht;if(Wt.currentTarget.hasAttribute("tabindex")){if(k){Ht=Array.isArray(G)?G.slice():[];const zt=G.indexOf(tt.props.value);zt===-1?Ht.push(tt.props.value):Ht.splice(zt,1)}else Ht=tt.props.value;if(tt.props.onClick&&tt.props.onClick(Wt),G!==Ht&&(ie(Ht),N)){const zt=Wt.nativeEvent||Wt,Sn=new zt.constructor(zt.type,zt);Object.defineProperty(Sn,"target",{writable:!0,value:{value:Ht,name:_}}),N(Sn,tt)}k||Pt(!1,Wt)}},de=tt=>{V||[" ","ArrowUp","ArrowDown","Enter"].indexOf(tt.key)!==-1&&(tt.preventDefault(),Pt(!0,tt))},_e=ke!==null&&H,Ne=tt=>{!_e&&R&&(Object.defineProperty(tt,"target",{writable:!0,value:{value:G,name:_}}),R(tt))};delete K["aria-invalid"];let Ke,ut;const Je=[];let gt=!1;(c3({value:G})||g)&&(W?Ke=W(G):gt=!0);const Jt=Ot.map(tt=>{if(!M.isValidElement(tt))return null;let Wt;if(k){if(!Array.isArray(G))throw new Error(rp(2));Wt=G.some(Ht=>pY(Ht,tt.props.value)),Wt&>&&Je.push(tt.props.children)}else Wt=pY(G,tt.props.value),Wt&>&&(ut=tt.props.children);return M.cloneElement(tt,{"aria-selected":Wt?"true":"false",onClick:Ut(tt),onKeyUp:Ht=>{Ht.key===" "&&Ht.preventDefault(),tt.props.onKeyUp&&tt.props.onKeyUp(Ht)},role:"option",selected:Wt,value:void 0,"data-value":tt.props.value})});gt&&(k?Je.length===0?Ke=null:Ke=Je.reduce((tt,Wt,Ht)=>(tt.push(Wt),Ht{const{classes:t}=e;return t},I$={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Ys(e)&&e!=="variant",slot:"Root"},FNe=lt(A$,I$)(""),BNe=lt(R$,I$)(""),UNe=lt(x$,I$)(""),N$=M.forwardRef(function(t,n){const r=mn({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:s={},className:o,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:d=Zse,id:f,input:p,inputProps:g,label:O,labelId:S,MenuProps:T,multiple:w=!1,native:x=!1,onClose:k,onOpen:_,open:R,renderValue:N,SelectDisplayProps:P,variant:L="outlined"}=r,j=Tt(r,LNe),B=x?nNe:PNe,V=zf(),W=vm({props:r,muiFormControl:V,states:["variant","error"]}),re=W.variant||L,ee=Q({},r,{variant:re,classes:s}),q=$Ne(ee),ne=Tt(q,MNe),K=p||{standard:I.jsx(FNe,{ownerState:ee}),outlined:I.jsx(BNe,{label:O,ownerState:ee}),filled:I.jsx(UNe,{ownerState:ee})}[re],G=vr(n,K.ref);return I.jsx(M.Fragment,{children:M.cloneElement(K,Q({inputComponent:B,inputProps:Q({children:a,error:W.error,IconComponent:d,variant:re,type:void 0,multiple:w},x?{id:f}:{autoWidth:i,defaultOpen:l,displayEmpty:u,labelId:S,MenuProps:T,onClose:k,onOpen:_,open:R,renderValue:N,SelectDisplayProps:Q({id:f},P)},g,{classes:g?Yo(ne,g.classes):ne},p?p.props.inputProps:{})},(w&&x||u)&&re==="outlined"?{notched:!0}:{},{ref:G,className:wt(K.props.className,o,q.root)},!p&&{variant:re},j))})});N$.muiName="Select";function zNe(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const jNe=2;function coe(e,t){return e-t}function mY(e,t){var n;const{index:r}=(n=e.reduce((i,a,s)=>{const o=Math.abs(t-a);return i===null||o({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},qNe=e=>e;let bA;function bY(){return bA===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?bA=CSS.supports("touch-action","none"):bA=!0),bA}function GNe(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:a=!1,marks:s=!1,max:o=100,min:l=0,name:u,onChange:d,onChangeCommitted:f,orientation:p="horizontal",rootRef:g,scale:O=qNe,step:S=1,shiftStep:T=10,tabIndex:w,value:x}=e,k=M.useRef(),[_,R]=M.useState(-1),[N,P]=M.useState(-1),[L,j]=M.useState(!1),B=M.useRef(0),[V,W]=Cf({controlled:x,default:n??l,name:"Slider"}),re=d&&((be,xe,Ue)=>{const Ct=be.nativeEvent||be,qt=new Ct.constructor(Ct.type,Ct);Object.defineProperty(qt,"target",{writable:!0,value:{value:xe,name:u}}),d(qt,xe,Ue)}),ee=Array.isArray(V);let q=ee?V.slice().sort(coe):[V];q=q.map(be=>be==null?l:Ag(be,l,o));const ne=s===!0&&S!==null?[...Array(Math.floor((o-l)/S)+1)].map((be,xe)=>({value:l+S*xe})):s||[],K=ne.map(be=>be.value),{isFocusVisibleRef:G,onBlur:ie,onFocus:H,ref:Re}=z5(),[Se,Z]=M.useState(-1),ke=M.useRef(),$e=vr(Re,ke),ae=vr(g,$e),Xe=be=>xe=>{var Ue;const Ct=Number(xe.currentTarget.getAttribute("data-index"));H(xe),G.current===!0&&Z(Ct),P(Ct),be==null||(Ue=be.onFocus)==null||Ue.call(be,xe)},We=be=>xe=>{var Ue;ie(xe),G.current===!1&&Z(-1),P(-1),be==null||(Ue=be.onBlur)==null||Ue.call(be,xe)},Ye=(be,xe)=>{const Ue=Number(be.currentTarget.getAttribute("data-index")),Ct=q[Ue],qt=K.indexOf(Ct);let tt=xe;if(ne&&S==null){const Wt=K[K.length-1];tt>Wt?tt=Wt:ttxe=>{var Ue;if(S!==null){const Ct=Number(xe.currentTarget.getAttribute("data-index")),qt=q[Ct];let tt=null;(xe.key==="ArrowLeft"||xe.key==="ArrowDown")&&xe.shiftKey||xe.key==="PageDown"?tt=Math.max(qt-T,l):((xe.key==="ArrowRight"||xe.key==="ArrowUp")&&xe.shiftKey||xe.key==="PageUp")&&(tt=Math.min(qt+T,o)),tt!==null&&(Ye(xe,tt),xe.preventDefault())}be==null||(Ue=be.onKeyDown)==null||Ue.call(be,xe)};Ko(()=>{if(r&&ke.current.contains(document.activeElement)){var be;(be=document.activeElement)==null||be.blur()}},[r]),r&&_!==-1&&R(-1),r&&Se!==-1&&Z(-1);const it=be=>xe=>{var Ue;(Ue=be.onChange)==null||Ue.call(be,xe),Ye(xe,xe.target.valueAsNumber)},Pt=M.useRef();let jt=p;a&&p==="horizontal"&&(jt+="-reverse");const ct=({finger:be,move:xe=!1})=>{const{current:Ue}=ke,{width:Ct,height:qt,bottom:tt,left:Wt}=Ue.getBoundingClientRect();let Ht;jt.indexOf("vertical")===0?Ht=(tt-be.y)/qt:Ht=(be.x-Wt)/Ct,jt.indexOf("-reverse")!==-1&&(Ht=1-Ht);let zt;if(zt=HNe(Ht,l,o),S)zt=WNe(zt,S,l);else{const pr=mY(K,zt);zt=K[pr]}zt=Ag(zt,l,o);let Sn=0;if(ee){xe?Sn=Pt.current:Sn=mY(q,zt),i&&(zt=Ag(zt,q[Sn-1]||-1/0,q[Sn+1]||1/0));const pr=zt;zt=gY({values:q,newValue:zt,index:Sn}),i&&xe||(Sn=zt.indexOf(pr),Pt.current=Sn)}return{newValue:zt,activeIndex:Sn}},Ot=Qs(be=>{const xe=pA(be,k);if(!xe)return;if(B.current+=1,be.type==="mousemove"&&be.buttons===0){yt(be);return}const{newValue:Ue,activeIndex:Ct}=ct({finger:xe,move:!0});mA({sliderRef:ke,activeIndex:Ct,setActive:R}),W(Ue),!L&&B.current>jNe&&j(!0),re&&!gA(Ue,V)&&re(be,Ue,Ct)}),yt=Qs(be=>{const xe=pA(be,k);if(j(!1),!xe)return;const{newValue:Ue}=ct({finger:xe,move:!0});R(-1),be.type==="touchend"&&P(-1),f&&f(be,Ue),k.current=void 0,de()}),Ut=Qs(be=>{if(r)return;bY()||be.preventDefault();const xe=be.changedTouches[0];xe!=null&&(k.current=xe.identifier);const Ue=pA(be,k);if(Ue!==!1){const{newValue:qt,activeIndex:tt}=ct({finger:Ue});mA({sliderRef:ke,activeIndex:tt,setActive:R}),W(qt),re&&!gA(qt,V)&&re(be,qt,tt)}B.current=0;const Ct=ca(ke.current);Ct.addEventListener("touchmove",Ot,{passive:!0}),Ct.addEventListener("touchend",yt,{passive:!0})}),de=M.useCallback(()=>{const be=ca(ke.current);be.removeEventListener("mousemove",Ot),be.removeEventListener("mouseup",yt),be.removeEventListener("touchmove",Ot),be.removeEventListener("touchend",yt)},[yt,Ot]);M.useEffect(()=>{const{current:be}=ke;return be.addEventListener("touchstart",Ut,{passive:bY()}),()=>{be.removeEventListener("touchstart",Ut),de()}},[de,Ut]),M.useEffect(()=>{r&&de()},[r,de]);const _e=be=>xe=>{var Ue;if((Ue=be.onMouseDown)==null||Ue.call(be,xe),r||xe.defaultPrevented||xe.button!==0)return;xe.preventDefault();const Ct=pA(xe,k);if(Ct!==!1){const{newValue:tt,activeIndex:Wt}=ct({finger:Ct});mA({sliderRef:ke,activeIndex:Wt,setActive:R}),W(tt),re&&!gA(tt,V)&&re(xe,tt,Wt)}B.current=0;const qt=ca(ke.current);qt.addEventListener("mousemove",Ot,{passive:!0}),qt.addEventListener("mouseup",yt)},Ne=p3(ee?q[0]:l,l,o),Ke=p3(q[q.length-1],l,o)-Ne,ut=(be={})=>{const xe=a2(be),Ue={onMouseDown:_e(xe||{})},Ct=Q({},xe,Ue);return Q({},be,{ref:ae},Ct)},Je=be=>xe=>{var Ue;(Ue=be.onMouseOver)==null||Ue.call(be,xe);const Ct=Number(xe.currentTarget.getAttribute("data-index"));P(Ct)},gt=be=>xe=>{var Ue;(Ue=be.onMouseLeave)==null||Ue.call(be,xe),P(-1)};return{active:_,axis:jt,axisProps:VNe,dragging:L,focusedThumbIndex:Se,getHiddenInputProps:(be={})=>{var xe;const Ue=a2(be),Ct={onChange:it(Ue||{}),onFocus:Xe(Ue||{}),onBlur:We(Ue||{}),onKeyDown:xt(Ue||{})},qt=Q({},Ue,Ct);return Q({tabIndex:w,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":O(o),"aria-valuemin":O(l),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(xe=e.step)!=null?xe:void 0,disabled:r},be,qt,{style:Q({},aAe,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:ut,getThumbProps:(be={})=>{const xe=a2(be),Ue={onMouseOver:Je(xe||{}),onMouseLeave:gt(xe||{})};return Q({},be,xe,Ue)},marks:ne,open:N,range:ee,rootRef:ae,trackLeap:Ke,trackOffset:Ne,values:q,getThumbStyle:be=>({pointerEvents:_!==-1&&_!==be?"none":void 0})}}const YNe=e=>!e||!Rf(e);function ZNe(e){return dn("MuiSlider",e)}const fc=hn("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"]),XNe=e=>{const{open:t}=e;return{offset:wt(t&&fc.valueLabelOpen),circle:fc.valueLabelCircle,label:fc.valueLabelLabel}};function KNe(e){const{children:t,className:n,value:r}=e,i=XNe(e);return t?M.cloneElement(t,{className:wt(t.props.className)},I.jsxs(M.Fragment,{children:[t.props.children,I.jsx("span",{className:wt(i.offset,n),"aria-hidden":!0,children:I.jsx("span",{className:i.circle,children:I.jsx("span",{className:i.label,children:r})})})]})):null}const JNe=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function yY(e){return e}const eDe=lt("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${st(n.color)}`],n.size!=="medium"&&t[`size${st(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${fc.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${fc.dragging}`]:{[`& .${fc.thumb}, & .${fc.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),tDe=lt("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),nDe=lt("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n,track:"inverted"},style:Q({},e.vars?{backgroundColor:e.vars.palette.Slider[`${n}Track`],borderColor:e.vars.palette.Slider[`${n}Track`]}:Q({backgroundColor:sw(e.palette[n].main,.62),borderColor:sw(e.palette[n].main,.62)},e.applyStyles("dark",{backgroundColor:aw(e.palette[n].main,.5)}),e.applyStyles("dark",{borderColor:aw(e.palette[n].main,.5)})))}))]}}),rDe=lt("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${st(n.color)}`],n.size!=="medium"&&t[`thumbSize${st(n.size)}`]]}})(({theme:e})=>{var t;return{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}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${fc.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{[`&:hover, &.${fc.focusVisible}`]:Q({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${Qn(e.palette[n].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${fc.active}`]:Q({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${Qn(e.palette[n].main,.16)}`})}}))]}}),iDe=lt(KNe,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>Q({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),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",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",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%"},[`&.${fc.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"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%"},[`&.${fc.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),aDe=lt("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>j5(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),sDe=lt("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>j5(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>Q({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),oDe=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:a,classes:s,color:o,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",o&&`color${st(o)}`,l&&`size${st(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${st(l)}`,o&&`thumbColor${st(o)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return pn(u,ZNe,s)},lDe=({children:e})=>e,uDe=M.forwardRef(function(t,n){var r,i,a,s,o,l,u,d,f,p,g,O,S,T,w,x,k,_,R,N,P,L,j,B;const V=mn({props:t,name:"MuiSlider"}),W=r$(),{"aria-label":re,"aria-valuetext":ee,"aria-labelledby":q,component:ne="span",components:K={},componentsProps:G={},color:ie="primary",classes:H,className:Re,disableSwap:Se=!1,disabled:Z=!1,getAriaLabel:ke,getAriaValueText:$e,marks:ae=!1,max:Xe=100,min:We=0,orientation:Ye="horizontal",shiftStep:xt=10,size:it="medium",step:Pt=1,scale:jt=yY,slotProps:ct,slots:Ot,track:yt="normal",valueLabelDisplay:Ut="off",valueLabelFormat:de=yY}=V,_e=Tt(V,JNe),Ne=Q({},V,{isRtl:W,max:Xe,min:We,classes:H,disabled:Z,disableSwap:Se,orientation:Ye,marks:ae,color:ie,size:it,step:Pt,shiftStep:xt,scale:jt,track:yt,valueLabelDisplay:Ut,valueLabelFormat:de}),{axisProps:Ke,getRootProps:ut,getHiddenInputProps:Je,getThumbProps:gt,open:Jt,active:Fe,axis:we,focusedThumbIndex:be,range:xe,dragging:Ue,marks:Ct,values:qt,trackOffset:tt,trackLeap:Wt,getThumbStyle:Ht}=GNe(Q({},Ne,{rootRef:n}));Ne.marked=Ct.length>0&&Ct.some(Ie=>Ie.label),Ne.dragging=Ue,Ne.focusedThumbIndex=be;const zt=oDe(Ne),Sn=(r=(i=Ot==null?void 0:Ot.root)!=null?i:K.Root)!=null?r:eDe,pr=(a=(s=Ot==null?void 0:Ot.rail)!=null?s:K.Rail)!=null?a:tDe,Mr=(o=(l=Ot==null?void 0:Ot.track)!=null?l:K.Track)!=null?o:nDe,Rr=(u=(d=Ot==null?void 0:Ot.thumb)!=null?d:K.Thumb)!=null?u:rDe,Yr=(f=(p=Ot==null?void 0:Ot.valueLabel)!=null?p:K.ValueLabel)!=null?f:iDe,Ni=(g=(O=Ot==null?void 0:Ot.mark)!=null?O:K.Mark)!=null?g:aDe,hi=(S=(T=Ot==null?void 0:Ot.markLabel)!=null?T:K.MarkLabel)!=null?S:sDe,ji=(w=(x=Ot==null?void 0:Ot.input)!=null?x:K.Input)!=null?w:"input",pi=(k=ct==null?void 0:ct.root)!=null?k:G.root,ds=(_=ct==null?void 0:ct.rail)!=null?_:G.rail,Hi=(R=ct==null?void 0:ct.track)!=null?R:G.track,Ks=(N=ct==null?void 0:ct.thumb)!=null?N:G.thumb,Qi=(P=ct==null?void 0:ct.valueLabel)!=null?P:G.valueLabel,Ur=(L=ct==null?void 0:ct.mark)!=null?L:G.mark,nr=(j=ct==null?void 0:ct.markLabel)!=null?j:G.markLabel,Zr=(B=ct==null?void 0:ct.input)!=null?B:G.input,ze=Ho({elementType:Sn,getSlotProps:ut,externalSlotProps:pi,externalForwardedProps:_e,additionalProps:Q({},YNe(Sn)&&{as:ne}),ownerState:Q({},Ne,pi==null?void 0:pi.ownerState),className:[zt.root,Re]}),nt=Ho({elementType:pr,externalSlotProps:ds,ownerState:Ne,className:zt.rail}),le=Ho({elementType:Mr,externalSlotProps:Hi,additionalProps:{style:Q({},Ke[we].offset(tt),Ke[we].leap(Wt))},ownerState:Q({},Ne,Hi==null?void 0:Hi.ownerState),className:zt.track}),he=Ho({elementType:Rr,getSlotProps:gt,externalSlotProps:Ks,ownerState:Q({},Ne,Ks==null?void 0:Ks.ownerState),className:zt.thumb}),Le=Ho({elementType:Yr,externalSlotProps:Qi,ownerState:Q({},Ne,Qi==null?void 0:Qi.ownerState),className:zt.valueLabel}),Ve=Ho({elementType:Ni,externalSlotProps:Ur,ownerState:Ne,className:zt.mark}),pt=Ho({elementType:hi,externalSlotProps:nr,ownerState:Ne,className:zt.markLabel}),Vt=Ho({elementType:ji,getSlotProps:Je,externalSlotProps:Zr,ownerState:Ne});return I.jsxs(Sn,Q({},ze,{children:[I.jsx(pr,Q({},nt)),I.jsx(Mr,Q({},le)),Ct.filter(Ie=>Ie.value>=We&&Ie.value<=Xe).map((Ie,Te)=>{const at=p3(Ie.value,We,Xe),qe=Ke[we].offset(at);let St;return yt===!1?St=qt.indexOf(Ie.value)!==-1:St=yt==="normal"&&(xe?Ie.value>=qt[0]&&Ie.value<=qt[qt.length-1]:Ie.value<=qt[0])||yt==="inverted"&&(xe?Ie.value<=qt[0]||Ie.value>=qt[qt.length-1]:Ie.value>=qt[0]),I.jsxs(M.Fragment,{children:[I.jsx(Ni,Q({"data-index":Te},Ve,!Rf(Ni)&&{markActive:St},{style:Q({},qe,Ve.style),className:wt(Ve.className,St&&zt.markActive)})),Ie.label!=null?I.jsx(hi,Q({"aria-hidden":!0,"data-index":Te},pt,!Rf(hi)&&{markLabelActive:St},{style:Q({},qe,pt.style),className:wt(zt.markLabel,pt.className,St&&zt.markLabelActive),children:Ie.label})):null]},Te)}),qt.map((Ie,Te)=>{const at=p3(Ie,We,Xe),qe=Ke[we].offset(at),St=Ut==="off"?lDe:Yr;return I.jsx(St,Q({},!Rf(St)&&{valueLabelFormat:de,valueLabelDisplay:Ut,value:typeof de=="function"?de(jt(Ie),Te):de,index:Te,open:Jt===Te||Fe===Te||Ut==="on",disabled:Z},Le,{children:I.jsx(Rr,Q({"data-index":Te},he,{className:wt(zt.thumb,he.className,Fe===Te&&zt.active,be===Te&&zt.focusVisible),style:Q({},qe,Ht(Te),he.style),children:I.jsx(ji,Q({"data-index":Te,"aria-label":ke?ke(Te):re,"aria-valuenow":jt(Ie),"aria-labelledby":q,"aria-valuetext":$e?$e(jt(Ie),Te):ee,value:qt[Te]},Vt))}))}),Te)})]}))});function cDe(e){return dn("MuiTooltip",e)}const R0=hn("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),dDe=["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 fDe(e){return Math.round(e*1e5)/1e5}const hDe=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:a}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${st(a.split("-")[0])}`],arrow:["arrow"]};return pn(s,cDe,t)},pDe=lt(W5,{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})=>Q({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${R0.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${R0.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${R0.arrow}`]:Q({},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"] .${R0.arrow}`]:Q({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),mDe=lt("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${st(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>Q({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Qn(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:`${fDe(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${R0.popper}[data-popper-placement*="left"] &`]:Q({transformOrigin:"right center"},t.isRtl?Q({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):Q({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${R0.popper}[data-popper-placement*="right"] &`]:Q({transformOrigin:"left center"},t.isRtl?Q({marginRight:"14px"},t.touch&&{marginRight:"24px"}):Q({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${R0.popper}[data-popper-placement*="top"] &`]:Q({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${R0.popper}[data-popper-placement*="bottom"] &`]:Q({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),gDe=lt("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:Qn(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let yA=!1;const vY=new bT;let tE={x:0,y:0};function vA(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const I0=M.forwardRef(function(t,n){var r,i,a,s,o,l,u,d,f,p,g,O,S,T,w,x,k,_,R;const N=mn({props:t,name:"MuiTooltip"}),{arrow:P=!1,children:L,components:j={},componentsProps:B={},describeChild:V=!1,disableFocusListener:W=!1,disableHoverListener:re=!1,disableInteractive:ee=!1,disableTouchListener:q=!1,enterDelay:ne=100,enterNextDelay:K=0,enterTouchDelay:G=700,followCursor:ie=!1,id:H,leaveDelay:Re=0,leaveTouchDelay:Se=1500,onClose:Z,onOpen:ke,open:$e,placement:ae="bottom",PopperComponent:Xe,PopperProps:We={},slotProps:Ye={},slots:xt={},title:it,TransitionComponent:Pt=f3,TransitionProps:jt}=N,ct=Tt(N,dDe),Ot=M.isValidElement(L)?L:I.jsx("span",{children:L}),yt=Uf(),Ut=r$(),[de,_e]=M.useState(),[Ne,Ke]=M.useState(null),ut=M.useRef(!1),Je=ee||ie,gt=Mg(),Jt=Mg(),Fe=Mg(),we=Mg(),[be,xe]=Cf({controlled:$e,default:!1,name:"Tooltip",state:"open"});let Ue=be;const Ct=eO(H),qt=M.useRef(),tt=Qs(()=>{qt.current!==void 0&&(document.body.style.WebkitUserSelect=qt.current,qt.current=void 0),we.clear()});M.useEffect(()=>tt,[tt]);const Wt=_t=>{vY.clear(),yA=!0,xe(!0),ke&&!Ue&&ke(_t)},Ht=Qs(_t=>{vY.start(800+Re,()=>{yA=!1}),xe(!1),Z&&Ue&&Z(_t),gt.start(yt.transitions.duration.shortest,()=>{ut.current=!1})}),zt=_t=>{ut.current&&_t.type!=="touchstart"||(de&&de.removeAttribute("title"),Jt.clear(),Fe.clear(),ne||yA&&K?Jt.start(yA?K:ne,()=>{Wt(_t)}):Wt(_t))},Sn=_t=>{Jt.clear(),Fe.start(Re,()=>{Ht(_t)})},{isFocusVisibleRef:pr,onBlur:Mr,onFocus:Rr,ref:Yr}=z5(),[,Ni]=M.useState(!1),hi=_t=>{Mr(_t),pr.current===!1&&(Ni(!1),Sn(_t))},ji=_t=>{de||_e(_t.currentTarget),Rr(_t),pr.current===!0&&(Ni(!0),zt(_t))},pi=_t=>{ut.current=!0;const Gt=Ot.props;Gt.onTouchStart&&Gt.onTouchStart(_t)},ds=_t=>{pi(_t),Fe.clear(),gt.clear(),tt(),qt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",we.start(G,()=>{document.body.style.WebkitUserSelect=qt.current,zt(_t)})},Hi=_t=>{Ot.props.onTouchEnd&&Ot.props.onTouchEnd(_t),tt(),Fe.start(Se,()=>{Ht(_t)})};M.useEffect(()=>{if(!Ue)return;function _t(Gt){(Gt.key==="Escape"||Gt.key==="Esc")&&Ht(Gt)}return document.addEventListener("keydown",_t),()=>{document.removeEventListener("keydown",_t)}},[Ht,Ue]);const Ks=vr(Ot.ref,Yr,_e,n);!it&&it!==0&&(Ue=!1);const Qi=M.useRef(),Ur=_t=>{const Gt=Ot.props;Gt.onMouseMove&&Gt.onMouseMove(_t),tE={x:_t.clientX,y:_t.clientY},Qi.current&&Qi.current.update()},nr={},Zr=typeof it=="string";V?(nr.title=!Ue&&Zr&&!re?it:null,nr["aria-describedby"]=Ue?Ct:null):(nr["aria-label"]=Zr?it:null,nr["aria-labelledby"]=Ue&&!Zr?Ct:null);const ze=Q({},nr,ct,Ot.props,{className:wt(ct.className,Ot.props.className),onTouchStart:pi,ref:Ks},ie?{onMouseMove:Ur}:{}),nt={};q||(ze.onTouchStart=ds,ze.onTouchEnd=Hi),re||(ze.onMouseOver=vA(zt,ze.onMouseOver),ze.onMouseLeave=vA(Sn,ze.onMouseLeave),Je||(nt.onMouseOver=zt,nt.onMouseLeave=Sn)),W||(ze.onFocus=vA(ji,ze.onFocus),ze.onBlur=vA(hi,ze.onBlur),Je||(nt.onFocus=ji,nt.onBlur=hi));const le=M.useMemo(()=>{var _t;let Gt=[{name:"arrow",enabled:!!Ne,options:{element:Ne,padding:4}}];return(_t=We.popperOptions)!=null&&_t.modifiers&&(Gt=Gt.concat(We.popperOptions.modifiers)),Q({},We.popperOptions,{modifiers:Gt})},[Ne,We]),he=Q({},N,{isRtl:Ut,arrow:P,disableInteractive:Je,placement:ae,PopperComponentProp:Xe,touch:ut.current}),Le=hDe(he),Ve=(r=(i=xt.popper)!=null?i:j.Popper)!=null?r:pDe,pt=(a=(s=(o=xt.transition)!=null?o:j.Transition)!=null?s:Pt)!=null?a:f3,Vt=(l=(u=xt.tooltip)!=null?u:j.Tooltip)!=null?l:mDe,Ie=(d=(f=xt.arrow)!=null?f:j.Arrow)!=null?d:gDe,Te=dy(Ve,Q({},We,(p=Ye.popper)!=null?p:B.popper,{className:wt(Le.popper,We==null?void 0:We.className,(g=(O=Ye.popper)!=null?O:B.popper)==null?void 0:g.className)}),he),at=dy(pt,Q({},jt,(S=Ye.transition)!=null?S:B.transition),he),qe=dy(Vt,Q({},(T=Ye.tooltip)!=null?T:B.tooltip,{className:wt(Le.tooltip,(w=(x=Ye.tooltip)!=null?x:B.tooltip)==null?void 0:w.className)}),he),St=dy(Ie,Q({},(k=Ye.arrow)!=null?k:B.arrow,{className:wt(Le.arrow,(_=(R=Ye.arrow)!=null?R:B.arrow)==null?void 0:_.className)}),he);return I.jsxs(M.Fragment,{children:[M.cloneElement(Ot,ze),I.jsx(Ve,Q({as:Xe??W5,placement:ae,anchorEl:ie?{getBoundingClientRect:()=>({top:tE.y,left:tE.x,right:tE.x,bottom:tE.y,width:0,height:0})}:de,popperRef:Qi,open:de?Ue:!1,id:Ct,transition:!0},nt,Te,{popperOptions:le,children:({TransitionProps:_t})=>I.jsx(pt,Q({timeout:yt.transitions.duration.shorter},_t,at,{children:I.jsxs(Vt,Q({},qe,{children:[it,P?I.jsx(Ie,Q({},St,{ref:Ke})):null]}))}))}))]})});function bDe(e){return dn("MuiSwitch",e)}const $o=hn("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),yDe=["className","color","edge","size","sx"],vDe=e=>{const{classes:t,edge:n,size:r,color:i,checked:a,disabled:s}=e,o={root:["root",n&&`edge${st(n)}`,`size${st(r)}`],switchBase:["switchBase",`color${st(i)}`,a&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=pn(o,bDe,t);return Q({},t,l)},ODe=lt("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${st(n.edge)}`],t[`size${st(n.size)}`]]}})({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"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${$o.thumb}`]:{width:16,height:16},[`& .${$o.switchBase}`]:{padding:4,[`&.${$o.checked}`]:{transform:"translateX(16px)"}}}}]}),SDe=lt(w$,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${$o.input}`]:t.input},n.color!=="default"&&t[`color${st(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}),[`&.${$o.checked}`]:{transform:"translateX(20px)"},[`&.${$o.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${$o.checked} + .${$o.track}`]:{opacity:.5},[`&.${$o.disabled} + .${$o.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${$o.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Qn(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${$o.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qn(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${$o.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?sw(e.palette[t].main,.62):aw(e.palette[t].main,.55)}`}},[`&.${$o.checked} + .${$o.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),EDe=lt("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}`})),wDe=lt("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%"})),TDe=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiSwitch"}),{className:i,color:a="primary",edge:s=!1,size:o="medium",sx:l}=r,u=Tt(r,yDe),d=Q({},r,{color:a,edge:s,size:o}),f=vDe(d),p=I.jsx(wDe,{className:f.thumb,ownerState:d});return I.jsxs(ODe,{className:wt(f.root,i),sx:l,ownerState:d,children:[I.jsx(SDe,Q({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:d},u,{classes:Q({},f,{root:f.switchBase})})),I.jsx(EDe,{className:f.track,ownerState:d})]})}),doe=M.createContext();function xDe(e){return dn("MuiTable",e)}hn("MuiTable",["root","stickyHeader"]);const kDe=["className","component","padding","size","stickyHeader"],ADe=e=>{const{classes:t,stickyHeader:n}=e;return pn({root:["root",n&&"stickyHeader"]},xDe,t)},_De=lt("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>Q({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Q({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),OY="table",CDe=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiTable"}),{className:i,component:a=OY,padding:s="normal",size:o="medium",stickyHeader:l=!1}=r,u=Tt(r,kDe),d=Q({},r,{component:a,padding:s,size:o,stickyHeader:l}),f=ADe(d),p=M.useMemo(()=>({padding:s,size:o,stickyHeader:l}),[s,o,l]);return I.jsx(doe.Provider,{value:p,children:I.jsx(_De,Q({as:a,role:a===OY?null:"table",ref:n,className:wt(f.root,i),ownerState:d},u))})}),eR=M.createContext();function RDe(e){return dn("MuiTableBody",e)}hn("MuiTableBody",["root"]);const IDe=["className","component"],NDe=e=>{const{classes:t}=e;return pn({root:["root"]},RDe,t)},DDe=lt("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),PDe={variant:"body"},SY="tbody",LDe=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiTableBody"}),{className:i,component:a=SY}=r,s=Tt(r,IDe),o=Q({},r,{component:a}),l=NDe(o);return I.jsx(eR.Provider,{value:PDe,children:I.jsx(DDe,Q({className:wt(l.root,i),as:a,ref:n,role:a===SY?null:"rowgroup",ownerState:o},s))})});function MDe(e){return dn("MuiTableCell",e)}const $De=hn("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),FDe=["align","className","component","padding","scope","size","sortDirection","variant"],BDe=e=>{const{classes:t,variant:n,align:r,padding:i,size:a,stickyHeader:s}=e,o={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${st(r)}`,i!=="normal"&&`padding${st(i)}`,`size${st(a)}`]};return pn(o,MDe,t)},UDe=lt("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${st(n.size)}`],n.padding!=="normal"&&t[`padding${st(n.padding)}`],n.align!=="inherit"&&t[`align${st(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>Q({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?sw(Qn(e.palette.divider,1),.88):aw(Qn(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${$De.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Rb=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiTableCell"}),{align:i="inherit",className:a,component:s,padding:o,scope:l,size:u,sortDirection:d,variant:f}=r,p=Tt(r,FDe),g=M.useContext(doe),O=M.useContext(eR),S=O&&O.variant==="head";let T;s?T=s:T=S?"th":"td";let w=l;T==="td"?w=void 0:!w&&S&&(w="col");const x=f||O&&O.variant,k=Q({},r,{align:i,component:T,padding:o||(g&&g.padding?g.padding:"normal"),size:u||(g&&g.size?g.size:"medium"),sortDirection:d,stickyHeader:x==="head"&&g&&g.stickyHeader,variant:x}),_=BDe(k);let R=null;return d&&(R=d==="asc"?"ascending":"descending"),I.jsx(UDe,Q({as:T,ref:n,className:wt(_.root,a),"aria-sort":R,scope:w,ownerState:k},p))});function zDe(e){return dn("MuiTableContainer",e)}hn("MuiTableContainer",["root"]);const jDe=["className","component"],HDe=e=>{const{classes:t}=e;return pn({root:["root"]},zDe,t)},QDe=lt("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),WDe=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiTableContainer"}),{className:i,component:a="div"}=r,s=Tt(r,jDe),o=Q({},r,{component:a}),l=HDe(o);return I.jsx(QDe,Q({ref:n,as:a,className:wt(l.root,i),ownerState:o},s))});function VDe(e){return dn("MuiTableHead",e)}hn("MuiTableHead",["root"]);const qDe=["className","component"],GDe=e=>{const{classes:t}=e;return pn({root:["root"]},VDe,t)},YDe=lt("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),ZDe={variant:"head"},EY="thead",XDe=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiTableHead"}),{className:i,component:a=EY}=r,s=Tt(r,qDe),o=Q({},r,{component:a}),l=GDe(o);return I.jsx(eR.Provider,{value:ZDe,children:I.jsx(YDe,Q({as:a,className:wt(l.root,i),ref:n,role:a===EY?null:"rowgroup",ownerState:o},s))})});function KDe(e){return dn("MuiToolbar",e)}hn("MuiToolbar",["root","gutters","regular","dense"]);const JDe=["className","component","disableGutters","variant"],e7e=e=>{const{classes:t,disableGutters:n,variant:r}=e;return pn({root:["root",!n&&"gutters",r]},KDe,t)},t7e=lt("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})=>Q({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),D$=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiToolbar"}),{className:i,component:a="div",disableGutters:s=!1,variant:o="regular"}=r,l=Tt(r,JDe),u=Q({},r,{component:a,disableGutters:s,variant:o}),d=e7e(u);return I.jsx(t7e,Q({as:a,className:wt(d.root,i),ref:n,ownerState:u},l))});function n7e(e){return dn("MuiTableRow",e)}const wY=hn("MuiTableRow",["root","selected","hover","head","footer"]),r7e=["className","component","hover","selected"],i7e=e=>{const{classes:t,selected:n,hover:r,head:i,footer:a}=e;return pn({root:["root",n&&"selected",r&&"hover",i&&"head",a&&"footer"]},n7e,t)},a7e=lt("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${wY.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${wY.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),TY="tr",xY=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiTableRow"}),{className:i,component:a=TY,hover:s=!1,selected:o=!1}=r,l=Tt(r,r7e),u=M.useContext(eR),d=Q({},r,{component:a,hover:s,selected:o,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),f=i7e(d);return I.jsx(a7e,Q({as:a,ref:n,className:wt(f.root,i),role:a===TY?null:"row",ownerState:d},l))});function s7e(e){return dn("MuiTextField",e)}hn("MuiTextField",["root"]);const o7e=["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"],l7e={standard:A$,filled:x$,outlined:R$},u7e=e=>{const{classes:t}=e;return pn({root:["root"]},s7e,t)},c7e=lt(Lc,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ST=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:a=!1,children:s,className:o,color:l="primary",defaultValue:u,disabled:d=!1,error:f=!1,FormHelperTextProps:p,fullWidth:g=!1,helperText:O,id:S,InputLabelProps:T,inputProps:w,InputProps:x,inputRef:k,label:_,maxRows:R,minRows:N,multiline:P=!1,name:L,onBlur:j,onChange:B,onFocus:V,placeholder:W,required:re=!1,rows:ee,select:q=!1,SelectProps:ne,type:K,value:G,variant:ie="outlined"}=r,H=Tt(r,o7e),Re=Q({},r,{autoFocus:a,color:l,disabled:d,error:f,fullWidth:g,multiline:P,required:re,select:q,variant:ie}),Se=u7e(Re),Z={};ie==="outlined"&&(T&&typeof T.shrink<"u"&&(Z.notched=T.shrink),Z.label=_),q&&((!ne||!ne.native)&&(Z.id=void 0),Z["aria-describedby"]=void 0);const ke=eO(S),$e=O&&ke?`${ke}-helper-text`:void 0,ae=_&&ke?`${ke}-label`:void 0,Xe=l7e[ie],We=I.jsx(Xe,Q({"aria-describedby":$e,autoComplete:i,autoFocus:a,defaultValue:u,fullWidth:g,multiline:P,name:L,rows:ee,maxRows:R,minRows:N,type:K,value:G,id:ke,inputRef:k,onBlur:j,onChange:B,onFocus:V,placeholder:W,inputProps:w},Z,x));return I.jsxs(c7e,Q({className:wt(Se.root,o),disabled:d,error:f,fullWidth:g,ref:n,required:re,color:l,variant:ie,ownerState:Re},H,{children:[_!=null&&_!==""&&I.jsx(toe,Q({htmlFor:ke,id:ae},T,{children:_})),q?I.jsx(N$,Q({"aria-describedby":$e,id:ke,labelId:ae,value:G,input:We},ne,{children:s})):We,O&&I.jsx(aO,Q({id:$e},p,{children:O}))]}))});function d7e(e){return dn("MuiToggleButton",e)}const hy=hn("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),foe=M.createContext({}),hoe=M.createContext(void 0);function f7e(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.indexOf(e)>=0:e===t}const h7e=["value"],p7e=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],m7e=e=>{const{classes:t,fullWidth:n,selected:r,disabled:i,size:a,color:s}=e,o={root:["root",r&&"selected",i&&"disabled",n&&"fullWidth",`size${st(a)}`,s]};return pn(o,d7e,t)},g7e=lt(Mf,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${st(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),Q({},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%"},{[`&.${hy.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})`:sA(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${hy.selected}`]:{color:n,backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:sA(n,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${r} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:sA(n,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:sA(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)})}),V4=M.forwardRef(function(t,n){const r=M.useContext(foe),{value:i}=r,a=Tt(r,h7e),s=M.useContext(hoe),o=yv(Q({},a,{selected:f7e(t.value,i)}),t),l=mn({props:o,name:"MuiToggleButton"}),{children:u,className:d,color:f="standard",disabled:p=!1,disableFocusRipple:g=!1,fullWidth:O=!1,onChange:S,onClick:T,selected:w,size:x="medium",value:k}=l,_=Tt(l,p7e),R=Q({},l,{color:f,disabled:p,disableFocusRipple:g,fullWidth:O,size:x}),N=m7e(R),P=j=>{T&&(T(j,k),j.defaultPrevented)||S&&S(j,k)},L=s||"";return I.jsx(g7e,Q({className:wt(a.className,N.root,d,L),disabled:p,focusRipple:!g,ref:n,onClick:P,onChange:S,value:k,ownerState:R,"aria-pressed":w},_,{children:u}))});function b7e(e){return dn("MuiToggleButtonGroup",e)}const Yi=hn("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),y7e=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],v7e=e=>{const{classes:t,orientation:n,fullWidth:r,disabled:i}=e,a={root:["root",n==="vertical"&&"vertical",r&&"fullWidth"],grouped:["grouped",`grouped${st(n)}`,i&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return pn(a,b7e,t)},O7e=lt("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Yi.grouped}`]:t.grouped},{[`& .${Yi.grouped}`]:t[`grouped${st(n.orientation)}`]},{[`& .${Yi.firstButton}`]:t.firstButton},{[`& .${Yi.lastButton}`]:t.lastButton},{[`& .${Yi.middleButton}`]:t.middleButton},t.root,n.orientation==="vertical"&&t.vertical,n.fullWidth&&t.fullWidth]}})(({ownerState:e,theme:t})=>Q({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},e.orientation==="vertical"&&{flexDirection:"column"},e.fullWidth&&{width:"100%"},{[`& .${Yi.grouped}`]:Q({},e.orientation==="horizontal"?{[`&.${Yi.selected} + .${Yi.grouped}.${Yi.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${Yi.selected} + .${Yi.grouped}.${Yi.selected}`]:{borderTop:0,marginTop:0}})},e.orientation==="horizontal"?{[`& .${Yi.firstButton},& .${Yi.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${Yi.lastButton},& .${Yi.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${Yi.firstButton},& .${Yi.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${Yi.lastButton},& .${Yi.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},e.orientation==="horizontal"?{[`& .${Yi.lastButton}.${hy.disabled},& .${Yi.middleButton}.${hy.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${Yi.lastButton}.${hy.disabled},& .${Yi.middleButton}.${hy.disabled}`]:{borderTop:"1px solid transparent"}})),poe=M.forwardRef(function(t,n){const r=mn({props:t,name:"MuiToggleButtonGroup"}),{children:i,className:a,color:s="standard",disabled:o=!1,exclusive:l=!1,fullWidth:u=!1,onChange:d,orientation:f="horizontal",size:p="medium",value:g}=r,O=Tt(r,y7e),S=Q({},r,{disabled:o,fullWidth:u,orientation:f,size:p}),T=v7e(S),w=M.useCallback((P,L)=>{if(!d)return;const j=g&&g.indexOf(L);let B;g&&j>=0?(B=g.slice(),B.splice(j,1)):B=g?g.concat(L):[L],d(P,B)},[d,g]),x=M.useCallback((P,L)=>{d&&d(P,g===L?null:L)},[d,g]),k=M.useMemo(()=>({className:T.grouped,onChange:l?x:w,value:g,size:p,fullWidth:u,color:s,disabled:o}),[T.grouped,l,x,w,g,p,u,s,o]),_=iAe(i),R=_.length,N=P=>{const L=P===0,j=P===R-1;return L&&j?"":L?T.firstButton:j?T.lastButton:T.middleButton};return I.jsx(O7e,Q({role:"group",className:wt(T.root,a),ref:n,ownerState:S},O,{children:I.jsx(foe.Provider,{value:k,children:_.map((P,L)=>I.jsx(hoe.Provider,{value:N(L),children:P},L))})}))});var moe={exports:{}},goe={};/** * @license React * use-sync-external-store-with-selector.production.min.js * @@ -162,7 +162,7 @@ Error generating stack: `+a.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var OT=M;function N7e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var D7e=typeof Object.is=="function"?Object.is:N7e,P7e=OT.useSyncExternalStore,L7e=OT.useRef,M7e=OT.useEffect,$7e=OT.useMemo,F7e=OT.useDebugValue;xoe.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var a=L7e(null);if(a.current===null){var s={hasValue:!1,value:null};a.current=s}else s=a.current;a=$7e(function(){function l(g){if(!u){if(u=!0,d=g,g=r(g),i!==void 0&&s.hasValue){var O=s.value;if(i(O,g))return f=O}return f=g}if(O=f,D7e(d,g))return O;var S=r(g);return i!==void 0&&i(O,S)?O:(d=g,f=S)}var u=!1,d,f,p=n===void 0?null:n;return[function(){return l(t())},p===null?void 0:function(){return l(p())}]},[t,n,r,i]);var o=P7e(e,a[0],a[1]);return M7e(function(){s.hasValue=!0,s.value=o},[o]),F7e(o),o};Toe.exports=xoe;var B7e=Toe.exports,Su="default"in gv?sn:gv,MY=Symbol.for("react-redux-context"),$Y=typeof globalThis<"u"?globalThis:{};function U7e(){if(!Su.createContext)return{};const e=$Y[MY]??($Y[MY]=new Map);let t=e.get(Su.createContext);return t||(t=Su.createContext(null),e.set(Su.createContext,t)),t}var fm=U7e(),z7e=()=>{throw new Error("uSES not initialized!")};function H$(e=fm){return function(){return Su.useContext(e)}}var koe=H$(),Aoe=z7e,j7e=e=>{Aoe=e},H7e=(e,t)=>e===t;function Q7e(e=fm){const t=e===fm?koe:H$(e),n=(r,i={})=>{const{equalityFn:a=H7e,devModeChecks:s={}}=typeof i=="function"?{equalityFn:i}:i,{store:o,subscription:l,getServerState:u,stabilityCheck:d,identityFunctionCheck:f}=t();Su.useRef(!0);const p=Su.useCallback({[r.name](O){return r(O)}}[r.name],[r,d,s.stabilityCheck]),g=Aoe(l.addNestedSub,o.getState,u||o.getState,p,a);return Su.useDebugValue(g),g};return Object.assign(n,{withTypes:()=>n}),n}var Pr=Q7e();function W7e(e){e()}function V7e(){let e=null,t=null;return{clear(){e=null,t=null},notify(){W7e(()=>{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 FY={notify(){},get:()=>[]};function q7e(e,t){let n,r=FY,i=0,a=!1;function s(S){d();const T=r.subscribe(S);let w=!1;return()=>{w||(w=!0,T(),f())}}function o(){r.notify()}function l(){O.onStateChange&&O.onStateChange()}function u(){return a}function d(){i++,n||(n=e.subscribe(l),r=V7e())}function f(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=FY)}function p(){a||(a=!0,d())}function g(){a&&(a=!1,f())}const O={addNestedSub:s,notifyNestedSubs:o,handleChangeWrapper:l,isSubscribed:u,trySubscribe:p,tryUnsubscribe:g,getListeners:()=>r};return O}var G7e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Y7e=typeof navigator<"u"&&navigator.product==="ReactNative",Z7e=G7e||Y7e?Su.useLayoutEffect:Su.useEffect;function X7e({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:a="once"}){const s=Su.useMemo(()=>{const u=q7e(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:a}},[e,r,i,a]),o=Su.useMemo(()=>e.getState(),[e]);Z7e(()=>{const{subscription:u}=s;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),o!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[s,o]);const l=t||fm;return Su.createElement(l.Provider,{value:s},n)}var K7e=X7e;function _oe(e=fm){const t=e===fm?koe:H$(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var J7e=_oe();function ePe(e=fm){const t=e===fm?J7e:_oe(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Mu=ePe();j7e(B7e.useSyncExternalStoreWithSelector);/** + */var ET=M;function S7e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var E7e=typeof Object.is=="function"?Object.is:S7e,w7e=ET.useSyncExternalStore,T7e=ET.useRef,x7e=ET.useEffect,k7e=ET.useMemo,A7e=ET.useDebugValue;goe.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var a=T7e(null);if(a.current===null){var s={hasValue:!1,value:null};a.current=s}else s=a.current;a=k7e(function(){function l(g){if(!u){if(u=!0,d=g,g=r(g),i!==void 0&&s.hasValue){var O=s.value;if(i(O,g))return f=O}return f=g}if(O=f,E7e(d,g))return O;var S=r(g);return i!==void 0&&i(O,S)?O:(d=g,f=S)}var u=!1,d,f,p=n===void 0?null:n;return[function(){return l(t())},p===null?void 0:function(){return l(p())}]},[t,n,r,i]);var o=w7e(e,a[0],a[1]);return x7e(function(){s.hasValue=!0,s.value=o},[o]),A7e(o),o};moe.exports=goe;var _7e=moe.exports,yu="default"in lv?rn:lv,kY=Symbol.for("react-redux-context"),AY=typeof globalThis<"u"?globalThis:{};function C7e(){if(!yu.createContext)return{};const e=AY[kY]??(AY[kY]=new Map);let t=e.get(yu.createContext);return t||(t=yu.createContext(null),e.set(yu.createContext,t)),t}var am=C7e(),R7e=()=>{throw new Error("uSES not initialized!")};function P$(e=am){return function(){return yu.useContext(e)}}var boe=P$(),yoe=R7e,I7e=e=>{yoe=e},N7e=(e,t)=>e===t;function D7e(e=am){const t=e===am?boe:P$(e),n=(r,i={})=>{const{equalityFn:a=N7e,devModeChecks:s={}}=typeof i=="function"?{equalityFn:i}:i,{store:o,subscription:l,getServerState:u,stabilityCheck:d,identityFunctionCheck:f}=t();yu.useRef(!0);const p=yu.useCallback({[r.name](O){return r(O)}}[r.name],[r,d,s.stabilityCheck]),g=yoe(l.addNestedSub,o.getState,u||o.getState,p,a);return yu.useDebugValue(g),g};return Object.assign(n,{withTypes:()=>n}),n}var Pr=D7e();function P7e(e){e()}function L7e(){let e=null,t=null;return{clear(){e=null,t=null},notify(){P7e(()=>{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 _Y={notify(){},get:()=>[]};function M7e(e,t){let n,r=_Y,i=0,a=!1;function s(S){d();const T=r.subscribe(S);let w=!1;return()=>{w||(w=!0,T(),f())}}function o(){r.notify()}function l(){O.onStateChange&&O.onStateChange()}function u(){return a}function d(){i++,n||(n=e.subscribe(l),r=L7e())}function f(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=_Y)}function p(){a||(a=!0,d())}function g(){a&&(a=!1,f())}const O={addNestedSub:s,notifyNestedSubs:o,handleChangeWrapper:l,isSubscribed:u,trySubscribe:p,tryUnsubscribe:g,getListeners:()=>r};return O}var $7e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",F7e=typeof navigator<"u"&&navigator.product==="ReactNative",B7e=$7e||F7e?yu.useLayoutEffect:yu.useEffect;function U7e({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:a="once"}){const s=yu.useMemo(()=>{const u=M7e(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:a}},[e,r,i,a]),o=yu.useMemo(()=>e.getState(),[e]);B7e(()=>{const{subscription:u}=s;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),o!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[s,o]);const l=t||am;return yu.createElement(l.Provider,{value:s},n)}var z7e=U7e;function voe(e=am){const t=e===am?boe:P$(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var j7e=voe();function H7e(e=am){const t=e===am?j7e:voe(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Du=H7e();I7e(_7e.useSyncExternalStoreWithSelector);/** * @remix-run/router v1.19.1 * * Copyright (c) Remix Software Inc. @@ -171,9 +171,9 @@ Error generating stack: `+a.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function oa(){return oa=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Nv(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function nPe(){return Math.random().toString(36).substr(2,8)}function UY(e,t){return{usr:e.state,key:e.key,idx:t}}function cw(e,t,n,r){return n===void 0&&(n=null),oa({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Am(t):t,{state:n,key:t&&t.key||r||nPe()})}function ST(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 Am(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 rPe(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,s=i.history,o=Ua.Pop,l=null,u=d();u==null&&(u=0,s.replaceState(oa({},s.state,{idx:u}),""));function d(){return(s.state||{idx:null}).idx}function f(){o=Ua.Pop;let T=d(),w=T==null?null:T-u;u=T,l&&l({action:o,location:S.location,delta:w})}function p(T,w){o=Ua.Push;let x=cw(S.location,T,w);u=d()+1;let k=UY(x,u),_=S.createHref(x);try{s.pushState(k,"",_)}catch(R){if(R instanceof DOMException&&R.name==="DataCloneError")throw R;i.location.assign(_)}a&&l&&l({action:o,location:S.location,delta:1})}function g(T,w){o=Ua.Replace;let x=cw(S.location,T,w);u=d();let k=UY(x,u),_=S.createHref(x);s.replaceState(k,"",_),a&&l&&l({action:o,location:S.location,delta:0})}function O(T){let w=i.location.origin!=="null"?i.location.origin:i.location.href,x=typeof T=="string"?T:ST(T);return x=x.replace(/ $/,"%20"),mr(w,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,w)}let S={get action(){return o},get location(){return e(i,s)},listen(T){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(BY,f),l=T,()=>{i.removeEventListener(BY,f),l=null}},createHref(T){return t(i,T)},createURL:O,encodeLocation(T){let w=O(T);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:p,replace:g,go(T){return s.go(T)}};return S}var mi;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(mi||(mi={}));const iPe=new Set(["lazy","caseSensitive","path","id","index","children"]);function aPe(e){return e.index===!0}function dw(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,a)=>{let s=[...n,String(a)],o=typeof i.id=="string"?i.id:s.join("-");if(mr(i.index!==!0||!i.children,"Cannot specify children on an index route"),mr(!r[o],'Found a route id collision on id "'+o+`". Route id's must be globally unique within Data Router usages`),aPe(i)){let l=oa({},i,t(i),{id:o});return r[o]=l,l}else{let l=oa({},i,t(i),{id:o,children:void 0});return r[o]=l,i.children&&(l.children=dw(i.children,t,s,r)),l}})}function xg(e,t,n){return n===void 0&&(n="/"),q4(e,t,n,!1)}function q4(e,t,n,r){let i=typeof t=="string"?Am(t):t,a=ET(i.pathname||"/",n);if(a==null)return null;let s=Coe(e);oPe(s);let o=null;for(let l=0;o==null&&l{let l={relativePath:o===void 0?a.path||"":o,caseSensitive:a.caseSensitive===!0,childrenIndex:s,route:a};l.relativePath.startsWith("/")&&(mr(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=em([r,l.relativePath]),d=n.concat(l);a.children&&a.children.length>0&&(mr(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Coe(a.children,t,d,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:pPe(u,a.index),routesMeta:d})};return e.forEach((a,s)=>{var o;if(a.path===""||!((o=a.path)!=null&&o.includes("?")))i(a,s);else for(let l of Roe(a.path))i(a,s,l)}),t}function Roe(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let s=Roe(r.join("/")),o=[];return o.push(...s.map(l=>l===""?a:[a,l].join("/"))),i&&o.push(...s),o.map(l=>e.startsWith("/")&&l===""?"/":l)}function oPe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:mPe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const lPe=/^:[\w-]+$/,uPe=3,cPe=2,dPe=1,fPe=10,hPe=-2,zY=e=>e==="*";function pPe(e,t){let n=e.split("/"),r=n.length;return n.some(zY)&&(r+=hPe),t&&(r+=cPe),n.filter(i=>!zY(i)).reduce((i,a)=>i+(lPe.test(a)?uPe:a===""?dPe:fPe),r)}function mPe(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 gPe(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,i={},a="/",s=[];for(let o=0;o{let{paramName:p,isOptional:g}=d;if(p==="*"){let S=o[f]||"";s=a.slice(0,a.length-S.length).replace(/(.)\/+$/,"$1")}const O=o[f];return g&&!O?u[p]=void 0:u[p]=(O||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:s,pattern:e}}function bPe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Nv(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,o,l)=>(r.push({paramName:o,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function yPe(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Nv(!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 ET(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 vPe(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Am(e):e;return{pathname:n?n.startsWith("/")?n:OPe(n,t):t,search:EPe(r),hash:wPe(i)}}function OPe(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 jN(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 Ioe(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Q$(e,t){let n=Ioe(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function W$(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Am(e):(i=oa({},e),mr(!i.pathname||!i.pathname.includes("?"),jN("?","pathname","search",i)),mr(!i.pathname||!i.pathname.includes("#"),jN("#","pathname","hash",i)),mr(!i.search||!i.search.includes("#"),jN("#","search","hash",i)));let a=e===""||i.pathname==="",s=a?"/":i.pathname,o;if(s==null)o=n;else{let f=t.length-1;if(!r&&s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),f-=1;i.pathname=p.join("/")}o=f>=0?t[f]:"/"}let l=vPe(i,o),u=s&&s!=="/"&&s.endsWith("/"),d=(a||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||d)&&(l.pathname+="/"),l}const em=e=>e.join("/").replace(/\/\/+/g,"/"),SPe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),EPe=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,wPe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class mC{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 wT(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Noe=["post","put","patch","delete"],TPe=new Set(Noe),xPe=["get",...Noe],kPe=new Set(xPe),APe=new Set([301,302,303,307,308]),_Pe=new Set([307,308]),HN={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},CPe={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},eE={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},V$=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,RPe=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Doe="remix-router-transitions";function IPe(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;mr(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let le=e.detectErrorBoundary;i=he=>({hasErrorBoundary:le(he)})}else i=RPe;let a={},s=dw(e.routes,i,void 0,a),o,l=e.basename||"/",u=e.unstable_dataStrategy||MPe,d=e.unstable_patchRoutesOnNavigation,f=oa({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),p=null,g=new Set,O=1e3,S=new Set,T=null,w=null,x=null,k=e.hydrationData!=null,_=xg(s,e.history.location,l),R=null;if(_==null&&!d){let le=Fo(404,{pathname:e.history.location.pathname}),{matches:he,route:Le}=KY(s);_=he,R={[Le.id]:le}}_&&!e.hydrationData&&Ur(_,s,e.history.location.pathname).active&&(_=null);let N;if(_)if(_.some(le=>le.route.lazy))N=!1;else if(!_.some(le=>le.route.loader))N=!0;else if(f.v7_partialHydration){let le=e.hydrationData?e.hydrationData.loaderData:null,he=e.hydrationData?e.hydrationData.errors:null,Le=qe=>qe.route.loader?typeof qe.route.loader=="function"&&qe.route.loader.hydrate===!0?!1:le&&le[qe.route.id]!==void 0||he&&he[qe.route.id]!==void 0:!0;if(he){let qe=_.findIndex(gt=>he[gt.route.id]!==void 0);N=_.slice(0,qe+1).every(Le)}else N=_.every(Le)}else N=e.hydrationData!=null;else if(N=!1,_=[],f.v7_partialHydration){let le=Ur(null,s,e.history.location.pathname);le.active&&le.matches&&(_=le.matches)}let D,L={historyAction:e.history.action,location:e.history.location,matches:_,initialized:N,navigation:HN,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||R,fetchers:new Map,blockers:new Map},j=Ua.Pop,B=!1,V,W=!1,re=new Map,ee=null,q=!1,te=!1,K=[],G=new Set,ie=new Map,H=0,Re=-1,Se=new Map,Z=new Set,ke=new Map,$e=new Map,ae=new Set,Je=new Map,We=new Map,Xe=new Map,At=!1;function st(){if(p=e.history.listen(le=>{let{action:he,location:Le,delta:qe}=le;if(At){At=!1;return}Nv(We.size===0||qe!=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 gt=Li({currentLocation:L.location,nextLocation:Le,historyAction:he});if(gt&&qe!=null){At=!0,e.history.go(qe*-1),Yr(gt,{state:"blocked",location:Le,proceed(){Yr(gt,{state:"proceeding",proceed:void 0,reset:void 0,location:Le}),e.history.go(qe)},reset(){let qt=new Map(L.blockers);qt.set(gt,eE),ft({blockers:qt})}});return}return de(he,Le)}),n){YPe(t,re);let le=()=>ZPe(t,re);t.addEventListener("pagehide",le),ee=()=>t.removeEventListener("pagehide",le)}return L.initialized||de(Ua.Pop,L.location,{initialHydration:!0}),D}function Lt(){p&&p(),ee&&ee(),g.clear(),V&&V.abort(),L.fetchers.forEach((le,he)=>rt(he)),L.blockers.forEach((le,he)=>Rr(he))}function Ht(le){return g.add(le),()=>g.delete(le)}function ft(le,he){he===void 0&&(he={}),L=oa({},L,le);let Le=[],qe=[];f.v7_fetcherPersist&&L.fetchers.forEach((gt,qt)=>{gt.state==="idle"&&(ae.has(qt)?qe.push(qt):Le.push(qt))}),[...g].forEach(gt=>gt(L,{deletedFetchers:qe,unstable_viewTransitionOpts:he.viewTransitionOpts,unstable_flushSync:he.flushSync===!0})),f.v7_fetcherPersist&&(Le.forEach(gt=>L.fetchers.delete(gt)),qe.forEach(gt=>rt(gt)))}function Et(le,he,Le){var qe,gt;let{flushSync:qt}=Le===void 0?{}:Le,Ie=L.actionData!=null&&L.navigation.formMethod!=null&&ud(L.navigation.formMethod)&&L.navigation.state==="loading"&&((qe=le.state)==null?void 0:qe._isRedirect)!==!0,Te;he.actionData?Object.keys(he.actionData).length>0?Te=he.actionData:Te=null:Ie?Te=L.actionData:Te=null;let ot=he.loaderData?ZY(L.loaderData,he.loaderData,he.matches||[],he.errors):L.loaderData,Ye=L.blockers;Ye.size>0&&(Ye=new Map(Ye),Ye.forEach((Yt,Qn)=>Ye.set(Qn,eE)));let wt=B===!0||L.navigation.formMethod!=null&&ud(L.navigation.formMethod)&&((gt=le.state)==null?void 0:gt._isRedirect)!==!0;o&&(s=o,o=void 0),q||j===Ua.Pop||(j===Ua.Push?e.history.push(le,le.state):j===Ua.Replace&&e.history.replace(le,le.state));let Rt;if(j===Ua.Pop){let Yt=re.get(L.location.pathname);Yt&&Yt.has(le.pathname)?Rt={currentLocation:L.location,nextLocation:le}:re.has(le.pathname)&&(Rt={currentLocation:le,nextLocation:L.location})}else if(W){let Yt=re.get(L.location.pathname);Yt?Yt.add(le.pathname):(Yt=new Set([le.pathname]),re.set(L.location.pathname,Yt)),Rt={currentLocation:L.location,nextLocation:le}}ft(oa({},he,{actionData:Te,loaderData:ot,historyAction:j,location:le,initialized:!0,navigation:HN,revalidation:"idle",restoreScrollPosition:Vi(le,he.matches||L.matches),preventScrollReset:wt,blockers:Ye}),{viewTransitionOpts:Rt,flushSync:qt===!0}),j=Ua.Pop,B=!1,W=!1,q=!1,te=!1,K=[]}async function Ot(le,he){if(typeof le=="number"){e.history.go(le);return}let Le=ZP(L.location,L.matches,l,f.v7_prependBasename,le,f.v7_relativeSplatPath,he==null?void 0:he.fromRouteId,he==null?void 0:he.relative),{path:qe,submission:gt,error:qt}=HY(f.v7_normalizeFormMethod,!1,Le,he),Ie=L.location,Te=cw(L.location,qe,he&&he.state);Te=oa({},Te,e.history.encodeLocation(Te));let ot=he&&he.replace!=null?he.replace:void 0,Ye=Ua.Push;ot===!0?Ye=Ua.Replace:ot===!1||gt!=null&&ud(gt.formMethod)&>.formAction===L.location.pathname+L.location.search&&(Ye=Ua.Replace);let wt=he&&"preventScrollReset"in he?he.preventScrollReset===!0:void 0,Rt=(he&&he.unstable_flushSync)===!0,Yt=Li({currentLocation:Ie,nextLocation:Te,historyAction:Ye});if(Yt){Yr(Yt,{state:"blocked",location:Te,proceed(){Yr(Yt,{state:"proceeding",proceed:void 0,reset:void 0,location:Te}),Ot(le,he)},reset(){let Qn=new Map(L.blockers);Qn.set(Yt,eE),ft({blockers:Qn})}});return}return await de(Ye,Te,{submission:gt,pendingError:qt,preventScrollReset:wt,replace:he&&he.replace,enableViewTransition:he&&he.unstable_viewTransition,flushSync:Rt})}function zt(){if(xe(),ft({revalidation:"loading"}),L.navigation.state!=="submitting"){if(L.navigation.state==="idle"){de(L.historyAction,L.location,{startUninterruptedRevalidation:!0});return}de(j||L.historyAction,L.navigation.location,{overrideNavigation:L.navigation})}}async function de(le,he,Le){V&&V.abort(),V=null,j=le,q=(Le&&Le.startUninterruptedRevalidation)===!0,qs(L.location,L.matches),B=(Le&&Le.preventScrollReset)===!0,W=(Le&&Le.enableViewTransition)===!0;let qe=o||s,gt=Le&&Le.overrideNavigation,qt=xg(qe,he,l),Ie=(Le&&Le.flushSync)===!0,Te=Ur(qt,qe,he.pathname);if(Te.active&&Te.matches&&(qt=Te.matches),!qt){let{error:Yn,notFoundMatches:qi,route:ii}=bi(he.pathname);Et(he,{matches:qi,loaderData:{},errors:{[ii.id]:Yn}},{flushSync:Ie});return}if(L.initialized&&!te&&jPe(L.location,he)&&!(Le&&Le.submission&&ud(Le.submission.formMethod))){Et(he,{matches:qt},{flushSync:Ie});return}V=new AbortController;let ot=Bb(e.history,he,V.signal,Le&&Le.submission),Ye;if(Le&&Le.pendingError)Ye=[Ey(qt).route.id,{type:mi.error,error:Le.pendingError}];else if(Le&&Le.submission&&ud(Le.submission.formMethod)){let Yn=await _e(ot,he,Le.submission,qt,Te.active,{replace:Le.replace,flushSync:Ie});if(Yn.shortCircuited)return;if(Yn.pendingActionResult){let[qi,ii]=Yn.pendingActionResult;if(fu(ii)&&wT(ii.error)&&ii.error.status===404){V=null,Et(he,{matches:Yn.matches,loaderData:{},errors:{[qi]:ii.error}});return}}qt=Yn.matches||qt,Ye=Yn.pendingActionResult,gt=QN(he,Le.submission),Ie=!1,Te.active=!1,ot=Bb(e.history,ot.url,ot.signal)}let{shortCircuited:wt,matches:Rt,loaderData:Yt,errors:Qn}=await Ne(ot,he,qt,Te.active,gt,Le&&Le.submission,Le&&Le.fetcherSubmission,Le&&Le.replace,Le&&Le.initialHydration===!0,Ie,Ye);wt||(V=null,Et(he,oa({matches:Rt||qt},XY(Ye),{loaderData:Yt,errors:Qn})))}async function _e(le,he,Le,qe,gt,qt){qt===void 0&&(qt={}),xe();let Ie=qPe(he,Le);if(ft({navigation:Ie},{flushSync:qt.flushSync===!0}),gt){let Ye=await ir(qe,he.pathname,le.signal);if(Ye.type==="aborted")return{shortCircuited:!0};if(Ye.type==="error"){let{boundaryId:wt,error:Rt}=Qi(he.pathname,Ye);return{matches:Ye.partialMatches,pendingActionResult:[wt,{type:mi.error,error:Rt}]}}else if(Ye.matches)qe=Ye.matches;else{let{notFoundMatches:wt,error:Rt,route:Yt}=bi(he.pathname);return{matches:wt,pendingActionResult:[Yt.id,{type:mi.error,error:Rt}]}}}let Te,ot=NE(qe,he);if(!ot.route.action&&!ot.route.lazy)Te={type:mi.error,error:Fo(405,{method:le.method,pathname:he.pathname,routeId:ot.route.id})};else if(Te=(await we("action",le,[ot],qe))[0],le.signal.aborted)return{shortCircuited:!0};if(Mg(Te)){let Ye;return qt&&qt.replace!=null?Ye=qt.replace:Ye=qY(Te.response.headers.get("Location"),new URL(le.url),l)===L.location.pathname+L.location.search,await Fe(le,Te,{submission:Le,replace:Ye}),{shortCircuited:!0}}if(Lg(Te))throw Fo(400,{type:"defer-action"});if(fu(Te)){let Ye=Ey(qe,ot.route.id);return(qt&&qt.replace)!==!0&&(j=Ua.Push),{matches:qe,pendingActionResult:[Ye.route.id,Te]}}return{matches:qe,pendingActionResult:[ot.route.id,Te]}}async function Ne(le,he,Le,qe,gt,qt,Ie,Te,ot,Ye,wt){let Rt=gt||QN(he,qt),Yt=qt||Ie||nZ(Rt),Qn=!q&&(!f.v7_partialHydration||!ot);if(qe){if(Qn){let kr=et(wt);ft(oa({navigation:Rt},kr!==void 0?{actionData:kr}:{}),{flushSync:Ye})}let wn=await ir(Le,he.pathname,le.signal);if(wn.type==="aborted")return{shortCircuited:!0};if(wn.type==="error"){let{boundaryId:kr,error:vi}=Qi(he.pathname,wn);return{matches:wn.partialMatches,loaderData:{},errors:{[kr]:vi}}}else if(wn.matches)Le=wn.matches;else{let{error:kr,notFoundMatches:vi,route:hr}=bi(he.pathname);return{matches:vi,loaderData:{},errors:{[hr.id]:kr}}}}let Yn=o||s,[qi,ii]=QY(e.history,L,Le,Yt,he,f.v7_partialHydration&&ot===!0,f.v7_skipActionErrorRevalidation,te,K,G,ae,ke,Z,Yn,l,wt);if(yi(wn=>!(Le&&Le.some(kr=>kr.route.id===wn))||qi&&qi.some(kr=>kr.route.id===wn)),Re=++H,qi.length===0&&ii.length===0){let wn=En();return Et(he,oa({matches:Le,loaderData:{},errors:wt&&fu(wt[1])?{[wt[0]]:wt[1].error}:null},XY(wt),wn?{fetchers:new Map(L.fetchers)}:{}),{flushSync:Ye}),{shortCircuited:!0}}if(Qn){let wn={};if(!qe){wn.navigation=Rt;let kr=et(wt);kr!==void 0&&(wn.actionData=kr)}ii.length>0&&(wn.fetchers=dt(ii)),ft(wn,{flushSync:Ye})}ii.forEach(wn=>{ie.has(wn.key)&&Qt(wn.key),wn.controller&&ie.set(wn.key,wn.controller)});let Uu=()=>ii.forEach(wn=>Qt(wn.key));V&&V.signal.addEventListener("abort",Uu);let{loaderResults:ko,fetcherResults:$l}=await be(L.matches,Le,qi,ii,le);if(le.signal.aborted)return{shortCircuited:!0};V&&V.signal.removeEventListener("abort",Uu),ii.forEach(wn=>ie.delete(wn.key));let Fl=JY([...ko,...$l]);if(Fl){if(Fl.idx>=qi.length){let wn=ii[Fl.idx-qi.length].key;Z.add(wn)}return await Fe(le,Fl.result,{replace:Te}),{shortCircuited:!0}}let{loaderData:Bl,errors:xs}=YY(L,Le,qi,ko,wt,ii,$l,Je);Je.forEach((wn,kr)=>{wn.subscribe(vi=>{(vi||wn.done)&&Je.delete(kr)})}),f.v7_partialHydration&&ot&&L.errors&&Object.entries(L.errors).filter(wn=>{let[kr]=wn;return!qi.some(vi=>vi.route.id===kr)}).forEach(wn=>{let[kr,vi]=wn;xs=Object.assign(xs||{},{[kr]:vi})});let je=En(),pa=br(Re),ah=je||pa||ii.length>0;return oa({matches:Le,loaderData:Bl,errors:xs},ah?{fetchers:new Map(L.fetchers)}:{})}function et(le){if(le&&!fu(le[1]))return{[le[0]]:le[1].data};if(L.actionData)return Object.keys(L.actionData).length===0?null:L.actionData}function dt(le){return le.forEach(he=>{let Le=L.fetchers.get(he.key),qe=tE(void 0,Le?Le.data:void 0);L.fetchers.set(he.key,qe)}),new Map(L.fetchers)}function tt(le,he,Le,qe){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.");ie.has(le)&&Qt(le);let gt=(qe&&qe.unstable_flushSync)===!0,qt=o||s,Ie=ZP(L.location,L.matches,l,f.v7_prependBasename,Le,f.v7_relativeSplatPath,he,qe==null?void 0:qe.relative),Te=xg(qt,Ie,l),ot=Ur(Te,qt,Ie);if(ot.active&&ot.matches&&(Te=ot.matches),!Te){It(le,he,Fo(404,{pathname:Ie}),{flushSync:gt});return}let{path:Ye,submission:wt,error:Rt}=HY(f.v7_normalizeFormMethod,!0,Ie,qe);if(Rt){It(le,he,Rt,{flushSync:gt});return}let Yt=NE(Te,Ye);if(B=(qe&&qe.preventScrollReset)===!0,wt&&ud(wt.formMethod)){yt(le,he,Ye,Yt,Te,ot.active,gt,wt);return}ke.set(le,{routeId:he,path:Ye}),tn(le,he,Ye,Yt,Te,ot.active,gt,wt)}async function yt(le,he,Le,qe,gt,qt,Ie,Te){xe(),ke.delete(le);function ot(hr){if(!hr.route.action&&!hr.route.lazy){let Gi=Fo(405,{method:Te.formMethod,pathname:Le,routeId:he});return It(le,he,Gi,{flushSync:Ie}),!0}return!1}if(!qt&&ot(qe))return;let Ye=L.fetchers.get(le);Ue(le,GPe(Te,Ye),{flushSync:Ie});let wt=new AbortController,Rt=Bb(e.history,Le,wt.signal,Te);if(qt){let hr=await ir(gt,Le,Rt.signal);if(hr.type==="aborted")return;if(hr.type==="error"){let{error:Gi}=Qi(Le,hr);It(le,he,Gi,{flushSync:Ie});return}else if(hr.matches){if(gt=hr.matches,qe=NE(gt,Le),ot(qe))return}else{It(le,he,Fo(404,{pathname:Le}),{flushSync:Ie});return}}ie.set(le,wt);let Yt=H,Yn=(await we("action",Rt,[qe],gt))[0];if(Rt.signal.aborted){ie.get(le)===wt&&ie.delete(le);return}if(f.v7_fetcherPersist&&ae.has(le)){if(Mg(Yn)||fu(Yn)){Ue(le,c0(void 0));return}}else{if(Mg(Yn))if(ie.delete(le),Re>Yt){Ue(le,c0(void 0));return}else return Z.add(le),Ue(le,tE(Te)),Fe(Rt,Yn,{fetcherSubmission:Te});if(fu(Yn)){It(le,he,Yn.error);return}}if(Lg(Yn))throw Fo(400,{type:"defer-action"});let qi=L.navigation.location||L.location,ii=Bb(e.history,qi,wt.signal),Uu=o||s,ko=L.navigation.state!=="idle"?xg(Uu,L.navigation.location,l):L.matches;mr(ko,"Didn't find any matches after fetcher action");let $l=++H;Se.set(le,$l);let Fl=tE(Te,Yn.data);L.fetchers.set(le,Fl);let[Bl,xs]=QY(e.history,L,ko,Te,qi,!1,f.v7_skipActionErrorRevalidation,te,K,G,ae,ke,Z,Uu,l,[qe.route.id,Yn]);xs.filter(hr=>hr.key!==le).forEach(hr=>{let Gi=hr.key,Ao=L.fetchers.get(Gi),_o=tE(void 0,Ao?Ao.data:void 0);L.fetchers.set(Gi,_o),ie.has(Gi)&&Qt(Gi),hr.controller&&ie.set(Gi,hr.controller)}),ft({fetchers:new Map(L.fetchers)});let je=()=>xs.forEach(hr=>Qt(hr.key));wt.signal.addEventListener("abort",je);let{loaderResults:pa,fetcherResults:ah}=await be(L.matches,ko,Bl,xs,ii);if(wt.signal.aborted)return;wt.signal.removeEventListener("abort",je),Se.delete(le),ie.delete(le),xs.forEach(hr=>ie.delete(hr.key));let wn=JY([...pa,...ah]);if(wn){if(wn.idx>=Bl.length){let hr=xs[wn.idx-Bl.length].key;Z.add(hr)}return Fe(ii,wn.result)}let{loaderData:kr,errors:vi}=YY(L,L.matches,Bl,pa,void 0,xs,ah,Je);if(L.fetchers.has(le)){let hr=c0(Yn.data);L.fetchers.set(le,hr)}br($l),L.navigation.state==="loading"&&$l>Re?(mr(j,"Expected pending action"),V&&V.abort(),Et(L.navigation.location,{matches:ko,loaderData:kr,errors:vi,fetchers:new Map(L.fetchers)})):(ft({errors:vi,loaderData:ZY(L.loaderData,kr,ko,vi),fetchers:new Map(L.fetchers)}),te=!1)}async function tn(le,he,Le,qe,gt,qt,Ie,Te){let ot=L.fetchers.get(le);Ue(le,tE(Te,ot?ot.data:void 0),{flushSync:Ie});let Ye=new AbortController,wt=Bb(e.history,Le,Ye.signal);if(qt){let Yn=await ir(gt,Le,wt.signal);if(Yn.type==="aborted")return;if(Yn.type==="error"){let{error:qi}=Qi(Le,Yn);It(le,he,qi,{flushSync:Ie});return}else if(Yn.matches)gt=Yn.matches,qe=NE(gt,Le);else{It(le,he,Fo(404,{pathname:Le}),{flushSync:Ie});return}}ie.set(le,Ye);let Rt=H,Qn=(await we("loader",wt,[qe],gt))[0];if(Lg(Qn)&&(Qn=await Foe(Qn,wt.signal,!0)||Qn),ie.get(le)===Ye&&ie.delete(le),!wt.signal.aborted){if(ae.has(le)){Ue(le,c0(void 0));return}if(Mg(Qn))if(Re>Rt){Ue(le,c0(void 0));return}else{Z.add(le),await Fe(wt,Qn);return}if(fu(Qn)){It(le,he,Qn.error);return}mr(!Lg(Qn),"Unhandled fetcher deferred data"),Ue(le,c0(Qn.data))}}async function Fe(le,he,Le){let{submission:qe,fetcherSubmission:gt,replace:qt}=Le===void 0?{}:Le;he.response.headers.has("X-Remix-Revalidate")&&(te=!0);let Ie=he.response.headers.get("Location");mr(Ie,"Expected a Location header on the redirect Response"),Ie=qY(Ie,new URL(le.url),l);let Te=cw(L.location,Ie,{_isRedirect:!0});if(n){let Qn=!1;if(he.response.headers.has("X-Remix-Reload-Document"))Qn=!0;else if(V$.test(Ie)){const Yn=e.history.createURL(Ie);Qn=Yn.origin!==t.location.origin||ET(Yn.pathname,l)==null}if(Qn){qt?t.location.replace(Ie):t.location.assign(Ie);return}}V=null;let ot=qt===!0||he.response.headers.has("X-Remix-Replace")?Ua.Replace:Ua.Push,{formMethod:Ye,formAction:wt,formEncType:Rt}=L.navigation;!qe&&!gt&&Ye&&wt&&Rt&&(qe=nZ(L.navigation));let Yt=qe||gt;if(_Pe.has(he.response.status)&&Yt&&ud(Yt.formMethod))await de(ot,Te,{submission:oa({},Yt,{formAction:Ie}),preventScrollReset:B});else{let Qn=QN(Te,qe);await de(ot,Te,{overrideNavigation:Qn,fetcherSubmission:gt,preventScrollReset:B})}}async function we(le,he,Le,qe){try{let gt=await $Pe(u,le,he,Le,qe,a,i);return await Promise.all(gt.map((qt,Ie)=>{if(QPe(qt)){let Te=qt.result;return{type:mi.redirect,response:UPe(Te,he,Le[Ie].route.id,qe,l,f.v7_relativeSplatPath)}}return BPe(qt)}))}catch(gt){return Le.map(()=>({type:mi.error,error:gt}))}}async function be(le,he,Le,qe,gt){let[qt,...Ie]=await Promise.all([Le.length?we("loader",gt,Le,he):[],...qe.map(Te=>{if(Te.matches&&Te.match&&Te.controller){let ot=Bb(e.history,Te.path,Te.controller.signal);return we("loader",ot,[Te.match],Te.matches).then(Ye=>Ye[0])}else return Promise.resolve({type:mi.error,error:Fo(404,{pathname:Te.path})})})]);return await Promise.all([tZ(le,Le,qt,qt.map(()=>gt.signal),!1,L.loaderData),tZ(le,qe.map(Te=>Te.match),Ie,qe.map(Te=>Te.controller?Te.controller.signal:null),!0)]),{loaderResults:qt,fetcherResults:Ie}}function xe(){te=!0,K.push(...yi()),ke.forEach((le,he)=>{ie.has(he)&&(G.add(he),Qt(he))})}function Ue(le,he,Le){Le===void 0&&(Le={}),L.fetchers.set(le,he),ft({fetchers:new Map(L.fetchers)},{flushSync:(Le&&Le.flushSync)===!0})}function It(le,he,Le,qe){qe===void 0&&(qe={});let gt=Ey(L.matches,he);rt(le),ft({errors:{[gt.route.id]:Le},fetchers:new Map(L.fetchers)},{flushSync:(qe&&qe.flushSync)===!0})}function Gt(le){return f.v7_fetcherPersist&&($e.set(le,($e.get(le)||0)+1),ae.has(le)&&ae.delete(le)),L.fetchers.get(le)||CPe}function rt(le){let he=L.fetchers.get(le);ie.has(le)&&!(he&&he.state==="loading"&&Se.has(le))&&Qt(le),ke.delete(le),Se.delete(le),Z.delete(le),ae.delete(le),G.delete(le),L.fetchers.delete(le)}function Vt(le){if(f.v7_fetcherPersist){let he=($e.get(le)||0)-1;he<=0?($e.delete(le),ae.add(le)):$e.set(le,he)}else rt(le);ft({fetchers:new Map(L.fetchers)})}function Qt(le){let he=ie.get(le);mr(he,"Expected fetch controller: "+le),he.abort(),ie.delete(le)}function jt(le){for(let he of le){let Le=Gt(he),qe=c0(Le.data);L.fetchers.set(he,qe)}}function En(){let le=[],he=!1;for(let Le of Z){let qe=L.fetchers.get(Le);mr(qe,"Expected fetcher: "+Le),qe.state==="loading"&&(Z.delete(Le),le.push(Le),he=!0)}return jt(le),he}function br(le){let he=[];for(let[Le,qe]of Se)if(qe0}function Mr(le,he){let Le=L.blockers.get(le)||eE;return We.get(le)!==he&&We.set(le,he),Le}function Rr(le){L.blockers.delete(le),We.delete(le)}function Yr(le,he){let Le=L.blockers.get(le)||eE;mr(Le.state==="unblocked"&&he.state==="blocked"||Le.state==="blocked"&&he.state==="blocked"||Le.state==="blocked"&&he.state==="proceeding"||Le.state==="blocked"&&he.state==="unblocked"||Le.state==="proceeding"&&he.state==="unblocked","Invalid blocker state transition: "+Le.state+" -> "+he.state);let qe=new Map(L.blockers);qe.set(le,he),ft({blockers:qe})}function Li(le){let{currentLocation:he,nextLocation:Le,historyAction:qe}=le;if(We.size===0)return;We.size>1&&Nv(!1,"A router only supports one blocker at a time");let gt=Array.from(We.entries()),[qt,Ie]=gt[gt.length-1],Te=L.blockers.get(qt);if(!(Te&&Te.state==="proceeding")&&Ie({currentLocation:he,nextLocation:Le,historyAction:qe}))return qt}function bi(le){let he=Fo(404,{pathname:le}),Le=o||s,{matches:qe,route:gt}=KY(Le);return yi(),{notFoundMatches:qe,route:gt,error:he}}function Qi(le,he){return{boundaryId:Ey(he.partialMatches).route.id,error:Fo(400,{type:"route-discovery",pathname:le,message:he.error!=null&&"message"in he.error?he.error:String(he.error)})}}function yi(le){let he=[];return Je.forEach((Le,qe)=>{(!le||le(qe))&&(Le.cancel(),he.push(qe),Je.delete(qe))}),he}function ds(le,he,Le){if(T=le,x=he,w=Le||null,!k&&L.navigation===HN){k=!0;let qe=Vi(L.location,L.matches);qe!=null&&ft({restoreScrollPosition:qe})}return()=>{T=null,x=null,w=null}}function Wi(le,he){return w&&w(le,he.map(qe=>sPe(qe,L.loaderData)))||le.key}function qs(le,he){if(T&&x){let Le=Wi(le,he);T[Le]=x()}}function Vi(le,he){if(T){let Le=Wi(le,he),qe=T[Le];if(typeof qe=="number")return qe}return null}function Ur(le,he,Le){if(d){if(S.has(Le))return{active:!1,matches:le};if(le){if(Object.keys(le[0].params).length>0)return{active:!0,matches:q4(he,Le,l,!0)}}else return{active:!0,matches:q4(he,Le,l,!0)||[]}}return{active:!1,matches:null}}async function ir(le,he,Le){let qe=le;for(;;){let gt=o==null,qt=o||s;try{await LPe(d,he,qe,qt,a,i,Xe,Le)}catch(ot){return{type:"error",error:ot,partialMatches:qe}}finally{gt&&(s=[...s])}if(Le.aborted)return{type:"aborted"};let Ie=xg(qt,he,l);if(Ie)return Zr(he,S),{type:"success",matches:Ie};let Te=q4(qt,he,l,!0);if(!Te||qe.length===Te.length&&qe.every((ot,Ye)=>ot.route.id===Te[Ye].route.id))return Zr(he,S),{type:"success",matches:null};qe=Te}}function Zr(le,he){if(he.size>=O){let Le=he.values().next().value;he.delete(Le)}he.add(le)}function ze(le){a={},o=dw(le,i,void 0,a)}function it(le,he){let Le=o==null;Loe(le,he,o||s,a,i),Le&&(s=[...s],ft({}))}return D={get basename(){return l},get future(){return f},get state(){return L},get routes(){return s},get window(){return t},initialize:st,subscribe:Ht,enableScrollRestoration:ds,navigate:Ot,fetch:tt,revalidate:zt,createHref:le=>e.history.createHref(le),encodeLocation:le=>e.history.encodeLocation(le),getFetcher:Gt,deleteFetcher:Vt,dispose:Lt,getBlocker:Mr,deleteBlocker:Rr,patchRoutes:it,_internalFetchControllers:ie,_internalActiveDeferreds:Je,_internalSetRoutes:ze},D}function NPe(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function ZP(e,t,n,r,i,a,s,o){let l,u;if(s){l=[];for(let f of t)if(l.push(f),f.route.id===s){u=f;break}}else l=t,u=t[t.length-1];let d=W$(i||".",Q$(l,a),ET(e.pathname,n)||e.pathname,o==="path");return i==null&&(d.search=e.search,d.hash=e.hash),(i==null||i===""||i===".")&&u&&u.route.index&&!q$(d.search)&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(d.pathname=d.pathname==="/"?n:em([n,d.pathname])),ST(d)}function HY(e,t,n,r){if(!r||!NPe(r))return{path:n};if(r.formMethod&&!VPe(r.formMethod))return{path:n,error:Fo(405,{method:r.formMethod})};let i=()=>({path:n,error:Fo(400,{type:"invalid-body"})}),a=r.formMethod||"get",s=e?a.toUpperCase():a.toLowerCase(),o=Moe(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!ud(s))return i();let p=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((g,O)=>{let[S,T]=O;return""+g+S+"="+T+` -`},""):String(r.body);return{path:n,submission:{formMethod:s,formAction:o,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!ud(s))return i();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:s,formAction:o,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return i()}}}mr(typeof FormData=="function","FormData is not available in this environment");let l,u;if(r.formData)l=XP(r.formData),u=r.formData;else if(r.body instanceof FormData)l=XP(r.body),u=r.body;else if(r.body instanceof URLSearchParams)l=r.body,u=GY(l);else if(r.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(r.body),u=GY(l)}catch{return i()}let d={formMethod:s,formAction:o,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(ud(d.formMethod))return{path:n,submission:d};let f=Am(n);return t&&f.search&&q$(f.search)&&l.append("index",""),f.search="?"+l,{path:ST(f),submission:d}}function DPe(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 QY(e,t,n,r,i,a,s,o,l,u,d,f,p,g,O,S){let T=S?fu(S[1])?S[1].error:S[1].data:void 0,w=e.createURL(t.location),x=e.createURL(i),k=S&&fu(S[1])?S[0]:void 0,_=k?DPe(n,k):n,R=S?S[1].statusCode:void 0,N=s&&R&&R>=400,D=_.filter((j,B)=>{let{route:V}=j;if(V.lazy)return!0;if(V.loader==null)return!1;if(a)return typeof V.loader!="function"||V.loader.hydrate?!0:t.loaderData[V.id]===void 0&&(!t.errors||t.errors[V.id]===void 0);if(PPe(t.loaderData,t.matches[B],j)||l.some(ee=>ee===j.route.id))return!0;let W=t.matches[B],re=j;return WY(j,oa({currentUrl:w,currentParams:W.params,nextUrl:x,nextParams:re.params},r,{actionResult:T,actionStatus:R,defaultShouldRevalidate:N?!1:o||w.pathname+w.search===x.pathname+x.search||w.search!==x.search||Poe(W,re)}))}),L=[];return f.forEach((j,B)=>{if(a||!n.some(q=>q.route.id===j.routeId)||d.has(B))return;let V=xg(g,j.path,O);if(!V){L.push({key:B,routeId:j.routeId,path:j.path,matches:null,match:null,controller:null});return}let W=t.fetchers.get(B),re=NE(V,j.path),ee=!1;p.has(B)?ee=!1:u.has(B)?(u.delete(B),ee=!0):W&&W.state!=="idle"&&W.data===void 0?ee=o:ee=WY(re,oa({currentUrl:w,currentParams:t.matches[t.matches.length-1].params,nextUrl:x,nextParams:n[n.length-1].params},r,{actionResult:T,actionStatus:R,defaultShouldRevalidate:N?!1:o})),ee&&L.push({key:B,routeId:j.routeId,path:j.path,matches:V,match:re,controller:new AbortController})}),[D,L]}function PPe(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function Poe(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function WY(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function LPe(e,t,n,r,i,a,s,o){let l=[t,...n.map(u=>u.route.id)].join("-");try{let u=s.get(l);u||(u=e({path:t,matches:n,patch:(d,f)=>{o.aborted||Loe(d,f,r,i,a)}}),s.set(l,u)),u&&HPe(u)&&await u}finally{s.delete(l)}}function Loe(e,t,n,r,i){if(e){var a;let s=r[e];mr(s,"No route found to patch children into: routeId = "+e);let o=dw(t,i,[e,"patch",String(((a=s.children)==null?void 0:a.length)||"0")],r);s.children?s.children.push(...o):s.children=o}else{let s=dw(t,i,["patch",String(n.length||"0")],r);n.push(...s)}}async function VY(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];mr(i,"No route found in manifest");let a={};for(let s in r){let l=i[s]!==void 0&&s!=="hasErrorBoundary";Nv(!l,'Route "'+i.id+'" has a static property "'+s+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+s+'" will be ignored.')),!l&&!iPe.has(s)&&(a[s]=r[s])}Object.assign(i,a),Object.assign(i,oa({},t(i),{lazy:void 0}))}function MPe(e){return Promise.all(e.matches.map(t=>t.resolve()))}async function $Pe(e,t,n,r,i,a,s,o){let l=r.reduce((f,p)=>f.add(p.route.id),new Set),u=new Set,d=await e({matches:i.map(f=>{let p=l.has(f.route.id);return oa({},f,{shouldLoad:p,resolve:O=>(u.add(f.route.id),p?FPe(t,n,f,a,s,O,o):Promise.resolve({type:mi.data,result:void 0}))})}),request:n,params:i[0].params,context:o});return i.forEach(f=>mr(u.has(f.route.id),'`match.resolve()` was not called for route id "'+f.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),d.filter((f,p)=>l.has(i[p].route.id))}async function FPe(e,t,n,r,i,a,s){let o,l,u=d=>{let f,p=new Promise((S,T)=>f=T);l=()=>f(),t.signal.addEventListener("abort",l);let g=S=>typeof d!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):d({request:t,params:n.params,context:s},...S!==void 0?[S]:[]),O;return a?O=a(S=>g(S)):O=(async()=>{try{return{type:"data",result:await g()}}catch(S){return{type:"error",result:S}}})(),Promise.race([O,p])};try{let d=n.route[e];if(n.route.lazy)if(d){let f,[p]=await Promise.all([u(d).catch(g=>{f=g}),VY(n.route,i,r)]);if(f!==void 0)throw f;o=p}else if(await VY(n.route,i,r),d=n.route[e],d)o=await u(d);else if(e==="action"){let f=new URL(t.url),p=f.pathname+f.search;throw Fo(405,{method:t.method,pathname:p,routeId:n.route.id})}else return{type:mi.data,result:void 0};else if(d)o=await u(d);else{let f=new URL(t.url),p=f.pathname+f.search;throw Fo(404,{pathname:p})}mr(o.result!==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(d){return{type:mi.error,result:d}}finally{l&&t.signal.removeEventListener("abort",l)}return o}async function BPe(e){let{result:t,type:n}=e;if($oe(t)){let u;try{let d=t.headers.get("Content-Type");d&&/\bapplication\/json\b/.test(d)?t.body==null?u=null:u=await t.json():u=await t.text()}catch(d){return{type:mi.error,error:d}}return n===mi.error?{type:mi.error,error:new mC(t.status,t.statusText,u),statusCode:t.status,headers:t.headers}:{type:mi.data,data:u,statusCode:t.status,headers:t.headers}}if(n===mi.error){if(eZ(t)){var r;if(t.data instanceof Error){var i;return{type:mi.error,error:t.data,statusCode:(i=t.init)==null?void 0:i.status}}t=new mC(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:mi.error,error:t,statusCode:wT(t)?t.status:void 0}}if(WPe(t)){var a,s;return{type:mi.deferred,deferredData:t,statusCode:(a=t.init)==null?void 0:a.status,headers:((s=t.init)==null?void 0:s.headers)&&new Headers(t.init.headers)}}if(eZ(t)){var o,l;return{type:mi.data,data:t.data,statusCode:(o=t.init)==null?void 0:o.status,headers:(l=t.init)!=null&&l.headers?new Headers(t.init.headers):void 0}}return{type:mi.data,data:t}}function UPe(e,t,n,r,i,a){let s=e.headers.get("Location");if(mr(s,"Redirects returned/thrown from loaders/actions must have a Location header"),!V$.test(s)){let o=r.slice(0,r.findIndex(l=>l.route.id===n)+1);s=ZP(new URL(t.url),o,i,!0,s,a),e.headers.set("Location",s)}return e}function qY(e,t,n){if(V$.test(e)){let r=e,i=r.startsWith("//")?new URL(t.protocol+r):new URL(r),a=ET(i.pathname,n)!=null;if(i.origin===t.origin&&a)return i.pathname+i.search+i.hash}return e}function Bb(e,t,n,r){let i=e.createURL(Moe(t)).toString(),a={signal:n};if(r&&ud(r.formMethod)){let{formMethod:s,formEncType:o}=r;a.method=s.toUpperCase(),o==="application/json"?(a.headers=new Headers({"Content-Type":o}),a.body=JSON.stringify(r.json)):o==="text/plain"?a.body=r.text:o==="application/x-www-form-urlencoded"&&r.formData?a.body=XP(r.formData):a.body=r.formData}return new Request(i,a)}function XP(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function GY(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function zPe(e,t,n,r,i,a){let s={},o=null,l,u=!1,d={},f=r&&fu(r[1])?r[1].error:void 0;return n.forEach((p,g)=>{let O=t[g].route.id;if(mr(!Mg(p),"Cannot handle redirect results in processLoaderData"),fu(p)){let S=p.error;f!==void 0&&(S=f,f=void 0),o=o||{};{let T=Ey(e,O);o[T.route.id]==null&&(o[T.route.id]=S)}s[O]=void 0,u||(u=!0,l=wT(p.error)?p.error.status:500),p.headers&&(d[O]=p.headers)}else Lg(p)?(i.set(O,p.deferredData),s[O]=p.deferredData.data,p.statusCode!=null&&p.statusCode!==200&&!u&&(l=p.statusCode),p.headers&&(d[O]=p.headers)):(s[O]=p.data,p.statusCode&&p.statusCode!==200&&!u&&(l=p.statusCode),p.headers&&(d[O]=p.headers))}),f!==void 0&&r&&(o={[r[0]]:f},s[r[0]]=void 0),{loaderData:s,errors:o,statusCode:l||200,loaderHeaders:d}}function YY(e,t,n,r,i,a,s,o){let{loaderData:l,errors:u}=zPe(t,n,r,i,o);for(let d=0;dr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function KY(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 Fo(e,t){let{pathname:n,routeId:r,method:i,type:a,message:s}=t===void 0?{}:t,o="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(o="Bad Request",a==="route-discovery"?l='Unable to match URL "'+n+'" - the `unstable_patchRoutesOnNavigation()` '+(`function threw the following error: -`+s):i&&n&&r?l="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":a==="defer-action"?l="defer() is not supported in actions":a==="invalid-body"&&(l="Unable to encode submission body")):e===403?(o="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(o="Not Found",l='No route matches URL "'+n+'"'):e===405&&(o="Method Not Allowed",i&&n&&r?l="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&&(l='Invalid request method "'+i.toUpperCase()+'"')),new mC(e||500,o,new Error(l),!0)}function JY(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Mg(n))return{result:n,idx:t}}}function Moe(e){let t=typeof e=="string"?Am(e):e;return ST(oa({},t,{hash:""}))}function jPe(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function HPe(e){return typeof e=="object"&&e!=null&&"then"in e}function QPe(e){return $oe(e.result)&&APe.has(e.result.status)}function Lg(e){return e.type===mi.deferred}function fu(e){return e.type===mi.error}function Mg(e){return(e&&e.type)===mi.redirect}function eZ(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function WPe(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 $oe(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function VPe(e){return kPe.has(e.toLowerCase())}function ud(e){return TPe.has(e.toLowerCase())}async function tZ(e,t,n,r,i,a){for(let s=0;sf.route.id===l.route.id),d=u!=null&&!Poe(u,l)&&(a&&a[l.route.id])!==void 0;if(Lg(o)&&(i||d)){let f=r[s];mr(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await Foe(o,f,i).then(p=>{p&&(n[s]=p||n[s])})}}}async function Foe(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:mi.data,data:e.deferredData.unwrappedData}}catch(i){return{type:mi.error,error:i}}return{type:mi.data,data:e.deferredData.data}}}function q$(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function NE(e,t){let n=typeof t=="string"?Am(t).search:t.search;if(e[e.length-1].route.index&&q$(n||""))return e[e.length-1];let r=Ioe(e);return r[r.length-1]}function nZ(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:s}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(s!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:s,text:void 0}}}function QN(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 qPe(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 tE(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 GPe(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 c0(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 YPe(e,t){try{let n=e.sessionStorage.getItem(Doe);if(n){let r=JSON.parse(n);for(let[i,a]of Object.entries(r||{}))a&&Array.isArray(a)&&t.set(i,new Set(a||[]))}}catch{}}function ZPe(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(Doe,JSON.stringify(n))}catch(r){Nv(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + */function sa(){return sa=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Tv(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function W7e(){return Math.random().toString(36).substr(2,8)}function RY(e,t){return{usr:e.state,key:e.key,idx:t}}function fw(e,t,n,r){return n===void 0&&(n=null),sa({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Om(t):t,{state:n,key:t&&t.key||r||W7e()})}function wT(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 Om(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 V7e(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,s=i.history,o=ja.Pop,l=null,u=d();u==null&&(u=0,s.replaceState(sa({},s.state,{idx:u}),""));function d(){return(s.state||{idx:null}).idx}function f(){o=ja.Pop;let T=d(),w=T==null?null:T-u;u=T,l&&l({action:o,location:S.location,delta:w})}function p(T,w){o=ja.Push;let x=fw(S.location,T,w);u=d()+1;let k=RY(x,u),_=S.createHref(x);try{s.pushState(k,"",_)}catch(R){if(R instanceof DOMException&&R.name==="DataCloneError")throw R;i.location.assign(_)}a&&l&&l({action:o,location:S.location,delta:1})}function g(T,w){o=ja.Replace;let x=fw(S.location,T,w);u=d();let k=RY(x,u),_=S.createHref(x);s.replaceState(k,"",_),a&&l&&l({action:o,location:S.location,delta:0})}function O(T){let w=i.location.origin!=="null"?i.location.origin:i.location.href,x=typeof T=="string"?T:wT(T);return x=x.replace(/ $/,"%20"),fr(w,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,w)}let S={get action(){return o},get location(){return e(i,s)},listen(T){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(CY,f),l=T,()=>{i.removeEventListener(CY,f),l=null}},createHref(T){return t(i,T)},createURL:O,encodeLocation(T){let w=O(T);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:p,replace:g,go(T){return s.go(T)}};return S}var di;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(di||(di={}));const q7e=new Set(["lazy","caseSensitive","path","id","index","children"]);function G7e(e){return e.index===!0}function hw(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,a)=>{let s=[...n,String(a)],o=typeof i.id=="string"?i.id:s.join("-");if(fr(i.index!==!0||!i.children,"Cannot specify children on an index route"),fr(!r[o],'Found a route id collision on id "'+o+`". Route id's must be globally unique within Data Router usages`),G7e(i)){let l=sa({},i,t(i),{id:o});return r[o]=l,l}else{let l=sa({},i,t(i),{id:o,children:void 0});return r[o]=l,i.children&&(l.children=hw(i.children,t,s,r)),l}})}function _g(e,t,n){return n===void 0&&(n="/"),q4(e,t,n,!1)}function q4(e,t,n,r){let i=typeof t=="string"?Om(t):t,a=TT(i.pathname||"/",n);if(a==null)return null;let s=Ooe(e);Z7e(s);let o=null;for(let l=0;o==null&&l{let l={relativePath:o===void 0?a.path||"":o,caseSensitive:a.caseSensitive===!0,childrenIndex:s,route:a};l.relativePath.startsWith("/")&&(fr(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=V0([r,l.relativePath]),d=n.concat(l);a.children&&a.children.length>0&&(fr(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Ooe(a.children,t,d,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:rPe(u,a.index),routesMeta:d})};return e.forEach((a,s)=>{var o;if(a.path===""||!((o=a.path)!=null&&o.includes("?")))i(a,s);else for(let l of Soe(a.path))i(a,s,l)}),t}function Soe(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let s=Soe(r.join("/")),o=[];return o.push(...s.map(l=>l===""?a:[a,l].join("/"))),i&&o.push(...s),o.map(l=>e.startsWith("/")&&l===""?"/":l)}function Z7e(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:iPe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const X7e=/^:[\w-]+$/,K7e=3,J7e=2,ePe=1,tPe=10,nPe=-2,IY=e=>e==="*";function rPe(e,t){let n=e.split("/"),r=n.length;return n.some(IY)&&(r+=nPe),t&&(r+=J7e),n.filter(i=>!IY(i)).reduce((i,a)=>i+(X7e.test(a)?K7e:a===""?ePe:tPe),r)}function iPe(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 aPe(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,i={},a="/",s=[];for(let o=0;o{let{paramName:p,isOptional:g}=d;if(p==="*"){let S=o[f]||"";s=a.slice(0,a.length-S.length).replace(/(.)\/+$/,"$1")}const O=o[f];return g&&!O?u[p]=void 0:u[p]=(O||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:s,pattern:e}}function sPe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Tv(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,o,l)=>(r.push({paramName:o,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function oPe(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Tv(!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 TT(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 lPe(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Om(e):e;return{pathname:n?n.startsWith("/")?n:uPe(n,t):t,search:dPe(r),hash:fPe(i)}}function uPe(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 LN(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 Eoe(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function L$(e,t){let n=Eoe(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function M$(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Om(e):(i=sa({},e),fr(!i.pathname||!i.pathname.includes("?"),LN("?","pathname","search",i)),fr(!i.pathname||!i.pathname.includes("#"),LN("#","pathname","hash",i)),fr(!i.search||!i.search.includes("#"),LN("#","search","hash",i)));let a=e===""||i.pathname==="",s=a?"/":i.pathname,o;if(s==null)o=n;else{let f=t.length-1;if(!r&&s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),f-=1;i.pathname=p.join("/")}o=f>=0?t[f]:"/"}let l=lPe(i,o),u=s&&s!=="/"&&s.endsWith("/"),d=(a||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||d)&&(l.pathname+="/"),l}const V0=e=>e.join("/").replace(/\/\/+/g,"/"),cPe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),dPe=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,fPe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class m3{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 xT(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const woe=["post","put","patch","delete"],hPe=new Set(woe),pPe=["get",...woe],mPe=new Set(pPe),gPe=new Set([301,302,303,307,308]),bPe=new Set([307,308]),MN={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},yPe={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},nE={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},$$=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,vPe=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Toe="remix-router-transitions";function OPe(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;fr(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 le=e.detectErrorBoundary;i=he=>({hasErrorBoundary:le(he)})}else i=vPe;let a={},s=hw(e.routes,i,void 0,a),o,l=e.basename||"/",u=e.unstable_dataStrategy||xPe,d=e.unstable_patchRoutesOnNavigation,f=sa({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),p=null,g=new Set,O=1e3,S=new Set,T=null,w=null,x=null,k=e.hydrationData!=null,_=_g(s,e.history.location,l),R=null;if(_==null&&!d){let le=Uo(404,{pathname:e.history.location.pathname}),{matches:he,route:Le}=jY(s);_=he,R={[Le.id]:le}}_&&!e.hydrationData&&Ur(_,s,e.history.location.pathname).active&&(_=null);let N;if(_)if(_.some(le=>le.route.lazy))N=!1;else if(!_.some(le=>le.route.loader))N=!0;else if(f.v7_partialHydration){let le=e.hydrationData?e.hydrationData.loaderData:null,he=e.hydrationData?e.hydrationData.errors:null,Le=Ve=>Ve.route.loader?typeof Ve.route.loader=="function"&&Ve.route.loader.hydrate===!0?!1:le&&le[Ve.route.id]!==void 0||he&&he[Ve.route.id]!==void 0:!0;if(he){let Ve=_.findIndex(pt=>he[pt.route.id]!==void 0);N=_.slice(0,Ve+1).every(Le)}else N=_.every(Le)}else N=e.hydrationData!=null;else if(N=!1,_=[],f.v7_partialHydration){let le=Ur(null,s,e.history.location.pathname);le.active&&le.matches&&(_=le.matches)}let P,L={historyAction:e.history.action,location:e.history.location,matches:_,initialized:N,navigation:MN,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||R,fetchers:new Map,blockers:new Map},j=ja.Pop,B=!1,V,W=!1,re=new Map,ee=null,q=!1,ne=!1,K=[],G=new Set,ie=new Map,H=0,Re=-1,Se=new Map,Z=new Set,ke=new Map,$e=new Map,ae=new Set,Xe=new Map,We=new Map,Ye=new Map,xt=!1;function it(){if(p=e.history.listen(le=>{let{action:he,location:Le,delta:Ve}=le;if(xt){xt=!1;return}Tv(We.size===0||Ve!=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 pt=Ni({currentLocation:L.location,nextLocation:Le,historyAction:he});if(pt&&Ve!=null){xt=!0,e.history.go(Ve*-1),Yr(pt,{state:"blocked",location:Le,proceed(){Yr(pt,{state:"proceeding",proceed:void 0,reset:void 0,location:Le}),e.history.go(Ve)},reset(){let Vt=new Map(L.blockers);Vt.set(pt,nE),ct({blockers:Vt})}});return}return de(he,Le)}),n){FPe(t,re);let le=()=>BPe(t,re);t.addEventListener("pagehide",le),ee=()=>t.removeEventListener("pagehide",le)}return L.initialized||de(ja.Pop,L.location,{initialHydration:!0}),P}function Pt(){p&&p(),ee&&ee(),g.clear(),V&&V.abort(),L.fetchers.forEach((le,he)=>tt(he)),L.blockers.forEach((le,he)=>Rr(he))}function jt(le){return g.add(le),()=>g.delete(le)}function ct(le,he){he===void 0&&(he={}),L=sa({},L,le);let Le=[],Ve=[];f.v7_fetcherPersist&&L.fetchers.forEach((pt,Vt)=>{pt.state==="idle"&&(ae.has(Vt)?Ve.push(Vt):Le.push(Vt))}),[...g].forEach(pt=>pt(L,{deletedFetchers:Ve,unstable_viewTransitionOpts:he.viewTransitionOpts,unstable_flushSync:he.flushSync===!0})),f.v7_fetcherPersist&&(Le.forEach(pt=>L.fetchers.delete(pt)),Ve.forEach(pt=>tt(pt)))}function Ot(le,he,Le){var Ve,pt;let{flushSync:Vt}=Le===void 0?{}:Le,Ie=L.actionData!=null&&L.navigation.formMethod!=null&&ud(L.navigation.formMethod)&&L.navigation.state==="loading"&&((Ve=le.state)==null?void 0:Ve._isRedirect)!==!0,Te;he.actionData?Object.keys(he.actionData).length>0?Te=he.actionData:Te=null:Ie?Te=L.actionData:Te=null;let at=he.loaderData?UY(L.loaderData,he.loaderData,he.matches||[],he.errors):L.loaderData,qe=L.blockers;qe.size>0&&(qe=new Map(qe),qe.forEach((Gt,jn)=>qe.set(jn,nE)));let St=B===!0||L.navigation.formMethod!=null&&ud(L.navigation.formMethod)&&((pt=le.state)==null?void 0:pt._isRedirect)!==!0;o&&(s=o,o=void 0),q||j===ja.Pop||(j===ja.Push?e.history.push(le,le.state):j===ja.Replace&&e.history.replace(le,le.state));let _t;if(j===ja.Pop){let Gt=re.get(L.location.pathname);Gt&&Gt.has(le.pathname)?_t={currentLocation:L.location,nextLocation:le}:re.has(le.pathname)&&(_t={currentLocation:le,nextLocation:L.location})}else if(W){let Gt=re.get(L.location.pathname);Gt?Gt.add(le.pathname):(Gt=new Set([le.pathname]),re.set(L.location.pathname,Gt)),_t={currentLocation:L.location,nextLocation:le}}ct(sa({},he,{actionData:Te,loaderData:at,historyAction:j,location:le,initialized:!0,navigation:MN,revalidation:"idle",restoreScrollPosition:Qi(le,he.matches||L.matches),preventScrollReset:St,blockers:qe}),{viewTransitionOpts:_t,flushSync:Vt===!0}),j=ja.Pop,B=!1,W=!1,q=!1,ne=!1,K=[]}async function yt(le,he){if(typeof le=="number"){e.history.go(le);return}let Le=HP(L.location,L.matches,l,f.v7_prependBasename,le,f.v7_relativeSplatPath,he==null?void 0:he.fromRouteId,he==null?void 0:he.relative),{path:Ve,submission:pt,error:Vt}=DY(f.v7_normalizeFormMethod,!1,Le,he),Ie=L.location,Te=fw(L.location,Ve,he&&he.state);Te=sa({},Te,e.history.encodeLocation(Te));let at=he&&he.replace!=null?he.replace:void 0,qe=ja.Push;at===!0?qe=ja.Replace:at===!1||pt!=null&&ud(pt.formMethod)&&pt.formAction===L.location.pathname+L.location.search&&(qe=ja.Replace);let St=he&&"preventScrollReset"in he?he.preventScrollReset===!0:void 0,_t=(he&&he.unstable_flushSync)===!0,Gt=Ni({currentLocation:Ie,nextLocation:Te,historyAction:qe});if(Gt){Yr(Gt,{state:"blocked",location:Te,proceed(){Yr(Gt,{state:"proceeding",proceed:void 0,reset:void 0,location:Te}),yt(le,he)},reset(){let jn=new Map(L.blockers);jn.set(Gt,nE),ct({blockers:jn})}});return}return await de(qe,Te,{submission:pt,pendingError:Vt,preventScrollReset:St,replace:he&&he.replace,enableViewTransition:he&&he.unstable_viewTransition,flushSync:_t})}function Ut(){if(xe(),ct({revalidation:"loading"}),L.navigation.state!=="submitting"){if(L.navigation.state==="idle"){de(L.historyAction,L.location,{startUninterruptedRevalidation:!0});return}de(j||L.historyAction,L.navigation.location,{overrideNavigation:L.navigation})}}async function de(le,he,Le){V&&V.abort(),V=null,j=le,q=(Le&&Le.startUninterruptedRevalidation)===!0,Ks(L.location,L.matches),B=(Le&&Le.preventScrollReset)===!0,W=(Le&&Le.enableViewTransition)===!0;let Ve=o||s,pt=Le&&Le.overrideNavigation,Vt=_g(Ve,he,l),Ie=(Le&&Le.flushSync)===!0,Te=Ur(Vt,Ve,he.pathname);if(Te.active&&Te.matches&&(Vt=Te.matches),!Vt){let{error:qn,notFoundMatches:Wi,route:ti}=hi(he.pathname);Ot(he,{matches:Wi,loaderData:{},errors:{[ti.id]:qn}},{flushSync:Ie});return}if(L.initialized&&!ne&&IPe(L.location,he)&&!(Le&&Le.submission&&ud(Le.submission.formMethod))){Ot(he,{matches:Vt},{flushSync:Ie});return}V=new AbortController;let at=Ib(e.history,he,V.signal,Le&&Le.submission),qe;if(Le&&Le.pendingError)qe=[py(Vt).route.id,{type:di.error,error:Le.pendingError}];else if(Le&&Le.submission&&ud(Le.submission.formMethod)){let qn=await _e(at,he,Le.submission,Vt,Te.active,{replace:Le.replace,flushSync:Ie});if(qn.shortCircuited)return;if(qn.pendingActionResult){let[Wi,ti]=qn.pendingActionResult;if(lu(ti)&&xT(ti.error)&&ti.error.status===404){V=null,Ot(he,{matches:qn.matches,loaderData:{},errors:{[Wi]:ti.error}});return}}Vt=qn.matches||Vt,qe=qn.pendingActionResult,pt=$N(he,Le.submission),Ie=!1,Te.active=!1,at=Ib(e.history,at.url,at.signal)}let{shortCircuited:St,matches:_t,loaderData:Gt,errors:jn}=await Ne(at,he,Vt,Te.active,pt,Le&&Le.submission,Le&&Le.fetcherSubmission,Le&&Le.replace,Le&&Le.initialHydration===!0,Ie,qe);St||(V=null,Ot(he,sa({matches:_t||Vt},zY(qe),{loaderData:Gt,errors:jn})))}async function _e(le,he,Le,Ve,pt,Vt){Vt===void 0&&(Vt={}),xe();let Ie=MPe(he,Le);if(ct({navigation:Ie},{flushSync:Vt.flushSync===!0}),pt){let qe=await nr(Ve,he.pathname,le.signal);if(qe.type==="aborted")return{shortCircuited:!0};if(qe.type==="error"){let{boundaryId:St,error:_t}=ji(he.pathname,qe);return{matches:qe.partialMatches,pendingActionResult:[St,{type:di.error,error:_t}]}}else if(qe.matches)Ve=qe.matches;else{let{notFoundMatches:St,error:_t,route:Gt}=hi(he.pathname);return{matches:St,pendingActionResult:[Gt.id,{type:di.error,error:_t}]}}}let Te,at=PE(Ve,he);if(!at.route.action&&!at.route.lazy)Te={type:di.error,error:Uo(405,{method:le.method,pathname:he.pathname,routeId:at.route.id})};else if(Te=(await we("action",le,[at],Ve))[0],le.signal.aborted)return{shortCircuited:!0};if(Bg(Te)){let qe;return Vt&&Vt.replace!=null?qe=Vt.replace:qe=$Y(Te.response.headers.get("Location"),new URL(le.url),l)===L.location.pathname+L.location.search,await Fe(le,Te,{submission:Le,replace:qe}),{shortCircuited:!0}}if(Fg(Te))throw Uo(400,{type:"defer-action"});if(lu(Te)){let qe=py(Ve,at.route.id);return(Vt&&Vt.replace)!==!0&&(j=ja.Push),{matches:Ve,pendingActionResult:[qe.route.id,Te]}}return{matches:Ve,pendingActionResult:[at.route.id,Te]}}async function Ne(le,he,Le,Ve,pt,Vt,Ie,Te,at,qe,St){let _t=pt||$N(he,Vt),Gt=Vt||Ie||VY(_t),jn=!q&&(!f.v7_partialHydration||!at);if(Ve){if(jn){let xr=Ke(St);ct(sa({navigation:_t},xr!==void 0?{actionData:xr}:{}),{flushSync:qe})}let En=await nr(Le,he.pathname,le.signal);if(En.type==="aborted")return{shortCircuited:!0};if(En.type==="error"){let{boundaryId:xr,error:mi}=ji(he.pathname,En);return{matches:En.partialMatches,loaderData:{},errors:{[xr]:mi}}}else if(En.matches)Le=En.matches;else{let{error:xr,notFoundMatches:mi,route:dr}=hi(he.pathname);return{matches:mi,loaderData:{},errors:{[dr.id]:xr}}}}let qn=o||s,[Wi,ti]=PY(e.history,L,Le,Gt,he,f.v7_partialHydration&&at===!0,f.v7_skipActionErrorRevalidation,ne,K,G,ae,ke,Z,qn,l,St);if(pi(En=>!(Le&&Le.some(xr=>xr.route.id===En))||Wi&&Wi.some(xr=>xr.route.id===En)),Re=++H,Wi.length===0&&ti.length===0){let En=Sn();return Ot(he,sa({matches:Le,loaderData:{},errors:St&&lu(St[1])?{[St[0]]:St[1].error}:null},zY(St),En?{fetchers:new Map(L.fetchers)}:{}),{flushSync:qe}),{shortCircuited:!0}}if(jn){let En={};if(!Ve){En.navigation=_t;let xr=Ke(St);xr!==void 0&&(En.actionData=xr)}ti.length>0&&(En.fetchers=ut(ti)),ct(En,{flushSync:qe})}ti.forEach(En=>{ie.has(En.key)&&Ht(En.key),En.controller&&ie.set(En.key,En.controller)});let $u=()=>ti.forEach(En=>Ht(En.key));V&&V.signal.addEventListener("abort",$u);let{loaderResults:xo,fetcherResults:Ml}=await be(L.matches,Le,Wi,ti,le);if(le.signal.aborted)return{shortCircuited:!0};V&&V.signal.removeEventListener("abort",$u),ti.forEach(En=>ie.delete(En.key));let $l=HY([...xo,...Ml]);if($l){if($l.idx>=Wi.length){let En=ti[$l.idx-Wi.length].key;Z.add(En)}return await Fe(le,$l.result,{replace:Te}),{shortCircuited:!0}}let{loaderData:Fl,errors:As}=BY(L,Le,Wi,xo,St,ti,Ml,Xe);Xe.forEach((En,xr)=>{En.subscribe(mi=>{(mi||En.done)&&Xe.delete(xr)})}),f.v7_partialHydration&&at&&L.errors&&Object.entries(L.errors).filter(En=>{let[xr]=En;return!Wi.some(mi=>mi.route.id===xr)}).forEach(En=>{let[xr,mi]=En;As=Object.assign(As||{},{[xr]:mi})});let je=Sn(),ha=pr(Re),nh=je||ha||ti.length>0;return sa({matches:Le,loaderData:Fl,errors:As},nh?{fetchers:new Map(L.fetchers)}:{})}function Ke(le){if(le&&!lu(le[1]))return{[le[0]]:le[1].data};if(L.actionData)return Object.keys(L.actionData).length===0?null:L.actionData}function ut(le){return le.forEach(he=>{let Le=L.fetchers.get(he.key),Ve=rE(void 0,Le?Le.data:void 0);L.fetchers.set(he.key,Ve)}),new Map(L.fetchers)}function Je(le,he,Le,Ve){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.");ie.has(le)&&Ht(le);let pt=(Ve&&Ve.unstable_flushSync)===!0,Vt=o||s,Ie=HP(L.location,L.matches,l,f.v7_prependBasename,Le,f.v7_relativeSplatPath,he,Ve==null?void 0:Ve.relative),Te=_g(Vt,Ie,l),at=Ur(Te,Vt,Ie);if(at.active&&at.matches&&(Te=at.matches),!Te){Ct(le,he,Uo(404,{pathname:Ie}),{flushSync:pt});return}let{path:qe,submission:St,error:_t}=DY(f.v7_normalizeFormMethod,!0,Ie,Ve);if(_t){Ct(le,he,_t,{flushSync:pt});return}let Gt=PE(Te,qe);if(B=(Ve&&Ve.preventScrollReset)===!0,St&&ud(St.formMethod)){gt(le,he,qe,Gt,Te,at.active,pt,St);return}ke.set(le,{routeId:he,path:qe}),Jt(le,he,qe,Gt,Te,at.active,pt,St)}async function gt(le,he,Le,Ve,pt,Vt,Ie,Te){xe(),ke.delete(le);function at(dr){if(!dr.route.action&&!dr.route.lazy){let Vi=Uo(405,{method:Te.formMethod,pathname:Le,routeId:he});return Ct(le,he,Vi,{flushSync:Ie}),!0}return!1}if(!Vt&&at(Ve))return;let qe=L.fetchers.get(le);Ue(le,$Pe(Te,qe),{flushSync:Ie});let St=new AbortController,_t=Ib(e.history,Le,St.signal,Te);if(Vt){let dr=await nr(pt,Le,_t.signal);if(dr.type==="aborted")return;if(dr.type==="error"){let{error:Vi}=ji(Le,dr);Ct(le,he,Vi,{flushSync:Ie});return}else if(dr.matches){if(pt=dr.matches,Ve=PE(pt,Le),at(Ve))return}else{Ct(le,he,Uo(404,{pathname:Le}),{flushSync:Ie});return}}ie.set(le,St);let Gt=H,qn=(await we("action",_t,[Ve],pt))[0];if(_t.signal.aborted){ie.get(le)===St&&ie.delete(le);return}if(f.v7_fetcherPersist&&ae.has(le)){if(Bg(qn)||lu(qn)){Ue(le,r0(void 0));return}}else{if(Bg(qn))if(ie.delete(le),Re>Gt){Ue(le,r0(void 0));return}else return Z.add(le),Ue(le,rE(Te)),Fe(_t,qn,{fetcherSubmission:Te});if(lu(qn)){Ct(le,he,qn.error);return}}if(Fg(qn))throw Uo(400,{type:"defer-action"});let Wi=L.navigation.location||L.location,ti=Ib(e.history,Wi,St.signal),$u=o||s,xo=L.navigation.state!=="idle"?_g($u,L.navigation.location,l):L.matches;fr(xo,"Didn't find any matches after fetcher action");let Ml=++H;Se.set(le,Ml);let $l=rE(Te,qn.data);L.fetchers.set(le,$l);let[Fl,As]=PY(e.history,L,xo,Te,Wi,!1,f.v7_skipActionErrorRevalidation,ne,K,G,ae,ke,Z,$u,l,[Ve.route.id,qn]);As.filter(dr=>dr.key!==le).forEach(dr=>{let Vi=dr.key,ko=L.fetchers.get(Vi),Ao=rE(void 0,ko?ko.data:void 0);L.fetchers.set(Vi,Ao),ie.has(Vi)&&Ht(Vi),dr.controller&&ie.set(Vi,dr.controller)}),ct({fetchers:new Map(L.fetchers)});let je=()=>As.forEach(dr=>Ht(dr.key));St.signal.addEventListener("abort",je);let{loaderResults:ha,fetcherResults:nh}=await be(L.matches,xo,Fl,As,ti);if(St.signal.aborted)return;St.signal.removeEventListener("abort",je),Se.delete(le),ie.delete(le),As.forEach(dr=>ie.delete(dr.key));let En=HY([...ha,...nh]);if(En){if(En.idx>=Fl.length){let dr=As[En.idx-Fl.length].key;Z.add(dr)}return Fe(ti,En.result)}let{loaderData:xr,errors:mi}=BY(L,L.matches,Fl,ha,void 0,As,nh,Xe);if(L.fetchers.has(le)){let dr=r0(qn.data);L.fetchers.set(le,dr)}pr(Ml),L.navigation.state==="loading"&&Ml>Re?(fr(j,"Expected pending action"),V&&V.abort(),Ot(L.navigation.location,{matches:xo,loaderData:xr,errors:mi,fetchers:new Map(L.fetchers)})):(ct({errors:mi,loaderData:UY(L.loaderData,xr,xo,mi),fetchers:new Map(L.fetchers)}),ne=!1)}async function Jt(le,he,Le,Ve,pt,Vt,Ie,Te){let at=L.fetchers.get(le);Ue(le,rE(Te,at?at.data:void 0),{flushSync:Ie});let qe=new AbortController,St=Ib(e.history,Le,qe.signal);if(Vt){let qn=await nr(pt,Le,St.signal);if(qn.type==="aborted")return;if(qn.type==="error"){let{error:Wi}=ji(Le,qn);Ct(le,he,Wi,{flushSync:Ie});return}else if(qn.matches)pt=qn.matches,Ve=PE(pt,Le);else{Ct(le,he,Uo(404,{pathname:Le}),{flushSync:Ie});return}}ie.set(le,qe);let _t=H,jn=(await we("loader",St,[Ve],pt))[0];if(Fg(jn)&&(jn=await Coe(jn,St.signal,!0)||jn),ie.get(le)===qe&&ie.delete(le),!St.signal.aborted){if(ae.has(le)){Ue(le,r0(void 0));return}if(Bg(jn))if(Re>_t){Ue(le,r0(void 0));return}else{Z.add(le),await Fe(St,jn);return}if(lu(jn)){Ct(le,he,jn.error);return}fr(!Fg(jn),"Unhandled fetcher deferred data"),Ue(le,r0(jn.data))}}async function Fe(le,he,Le){let{submission:Ve,fetcherSubmission:pt,replace:Vt}=Le===void 0?{}:Le;he.response.headers.has("X-Remix-Revalidate")&&(ne=!0);let Ie=he.response.headers.get("Location");fr(Ie,"Expected a Location header on the redirect Response"),Ie=$Y(Ie,new URL(le.url),l);let Te=fw(L.location,Ie,{_isRedirect:!0});if(n){let jn=!1;if(he.response.headers.has("X-Remix-Reload-Document"))jn=!0;else if($$.test(Ie)){const qn=e.history.createURL(Ie);jn=qn.origin!==t.location.origin||TT(qn.pathname,l)==null}if(jn){Vt?t.location.replace(Ie):t.location.assign(Ie);return}}V=null;let at=Vt===!0||he.response.headers.has("X-Remix-Replace")?ja.Replace:ja.Push,{formMethod:qe,formAction:St,formEncType:_t}=L.navigation;!Ve&&!pt&&qe&&St&&_t&&(Ve=VY(L.navigation));let Gt=Ve||pt;if(bPe.has(he.response.status)&&Gt&&ud(Gt.formMethod))await de(at,Te,{submission:sa({},Gt,{formAction:Ie}),preventScrollReset:B});else{let jn=$N(Te,Ve);await de(at,Te,{overrideNavigation:jn,fetcherSubmission:pt,preventScrollReset:B})}}async function we(le,he,Le,Ve){try{let pt=await kPe(u,le,he,Le,Ve,a,i);return await Promise.all(pt.map((Vt,Ie)=>{if(DPe(Vt)){let Te=Vt.result;return{type:di.redirect,response:CPe(Te,he,Le[Ie].route.id,Ve,l,f.v7_relativeSplatPath)}}return _Pe(Vt)}))}catch(pt){return Le.map(()=>({type:di.error,error:pt}))}}async function be(le,he,Le,Ve,pt){let[Vt,...Ie]=await Promise.all([Le.length?we("loader",pt,Le,he):[],...Ve.map(Te=>{if(Te.matches&&Te.match&&Te.controller){let at=Ib(e.history,Te.path,Te.controller.signal);return we("loader",at,[Te.match],Te.matches).then(qe=>qe[0])}else return Promise.resolve({type:di.error,error:Uo(404,{pathname:Te.path})})})]);return await Promise.all([WY(le,Le,Vt,Vt.map(()=>pt.signal),!1,L.loaderData),WY(le,Ve.map(Te=>Te.match),Ie,Ve.map(Te=>Te.controller?Te.controller.signal:null),!0)]),{loaderResults:Vt,fetcherResults:Ie}}function xe(){ne=!0,K.push(...pi()),ke.forEach((le,he)=>{ie.has(he)&&(G.add(he),Ht(he))})}function Ue(le,he,Le){Le===void 0&&(Le={}),L.fetchers.set(le,he),ct({fetchers:new Map(L.fetchers)},{flushSync:(Le&&Le.flushSync)===!0})}function Ct(le,he,Le,Ve){Ve===void 0&&(Ve={});let pt=py(L.matches,he);tt(le),ct({errors:{[pt.route.id]:Le},fetchers:new Map(L.fetchers)},{flushSync:(Ve&&Ve.flushSync)===!0})}function qt(le){return f.v7_fetcherPersist&&($e.set(le,($e.get(le)||0)+1),ae.has(le)&&ae.delete(le)),L.fetchers.get(le)||yPe}function tt(le){let he=L.fetchers.get(le);ie.has(le)&&!(he&&he.state==="loading"&&Se.has(le))&&Ht(le),ke.delete(le),Se.delete(le),Z.delete(le),ae.delete(le),G.delete(le),L.fetchers.delete(le)}function Wt(le){if(f.v7_fetcherPersist){let he=($e.get(le)||0)-1;he<=0?($e.delete(le),ae.add(le)):$e.set(le,he)}else tt(le);ct({fetchers:new Map(L.fetchers)})}function Ht(le){let he=ie.get(le);fr(he,"Expected fetch controller: "+le),he.abort(),ie.delete(le)}function zt(le){for(let he of le){let Le=qt(he),Ve=r0(Le.data);L.fetchers.set(he,Ve)}}function Sn(){let le=[],he=!1;for(let Le of Z){let Ve=L.fetchers.get(Le);fr(Ve,"Expected fetcher: "+Le),Ve.state==="loading"&&(Z.delete(Le),le.push(Le),he=!0)}return zt(le),he}function pr(le){let he=[];for(let[Le,Ve]of Se)if(Ve0}function Mr(le,he){let Le=L.blockers.get(le)||nE;return We.get(le)!==he&&We.set(le,he),Le}function Rr(le){L.blockers.delete(le),We.delete(le)}function Yr(le,he){let Le=L.blockers.get(le)||nE;fr(Le.state==="unblocked"&&he.state==="blocked"||Le.state==="blocked"&&he.state==="blocked"||Le.state==="blocked"&&he.state==="proceeding"||Le.state==="blocked"&&he.state==="unblocked"||Le.state==="proceeding"&&he.state==="unblocked","Invalid blocker state transition: "+Le.state+" -> "+he.state);let Ve=new Map(L.blockers);Ve.set(le,he),ct({blockers:Ve})}function Ni(le){let{currentLocation:he,nextLocation:Le,historyAction:Ve}=le;if(We.size===0)return;We.size>1&&Tv(!1,"A router only supports one blocker at a time");let pt=Array.from(We.entries()),[Vt,Ie]=pt[pt.length-1],Te=L.blockers.get(Vt);if(!(Te&&Te.state==="proceeding")&&Ie({currentLocation:he,nextLocation:Le,historyAction:Ve}))return Vt}function hi(le){let he=Uo(404,{pathname:le}),Le=o||s,{matches:Ve,route:pt}=jY(Le);return pi(),{notFoundMatches:Ve,route:pt,error:he}}function ji(le,he){return{boundaryId:py(he.partialMatches).route.id,error:Uo(400,{type:"route-discovery",pathname:le,message:he.error!=null&&"message"in he.error?he.error:String(he.error)})}}function pi(le){let he=[];return Xe.forEach((Le,Ve)=>{(!le||le(Ve))&&(Le.cancel(),he.push(Ve),Xe.delete(Ve))}),he}function ds(le,he,Le){if(T=le,x=he,w=Le||null,!k&&L.navigation===MN){k=!0;let Ve=Qi(L.location,L.matches);Ve!=null&&ct({restoreScrollPosition:Ve})}return()=>{T=null,x=null,w=null}}function Hi(le,he){return w&&w(le,he.map(Ve=>Y7e(Ve,L.loaderData)))||le.key}function Ks(le,he){if(T&&x){let Le=Hi(le,he);T[Le]=x()}}function Qi(le,he){if(T){let Le=Hi(le,he),Ve=T[Le];if(typeof Ve=="number")return Ve}return null}function Ur(le,he,Le){if(d){if(S.has(Le))return{active:!1,matches:le};if(le){if(Object.keys(le[0].params).length>0)return{active:!0,matches:q4(he,Le,l,!0)}}else return{active:!0,matches:q4(he,Le,l,!0)||[]}}return{active:!1,matches:null}}async function nr(le,he,Le){let Ve=le;for(;;){let pt=o==null,Vt=o||s;try{await TPe(d,he,Ve,Vt,a,i,Ye,Le)}catch(at){return{type:"error",error:at,partialMatches:Ve}}finally{pt&&(s=[...s])}if(Le.aborted)return{type:"aborted"};let Ie=_g(Vt,he,l);if(Ie)return Zr(he,S),{type:"success",matches:Ie};let Te=q4(Vt,he,l,!0);if(!Te||Ve.length===Te.length&&Ve.every((at,qe)=>at.route.id===Te[qe].route.id))return Zr(he,S),{type:"success",matches:null};Ve=Te}}function Zr(le,he){if(he.size>=O){let Le=he.values().next().value;he.delete(Le)}he.add(le)}function ze(le){a={},o=hw(le,i,void 0,a)}function nt(le,he){let Le=o==null;koe(le,he,o||s,a,i),Le&&(s=[...s],ct({}))}return P={get basename(){return l},get future(){return f},get state(){return L},get routes(){return s},get window(){return t},initialize:it,subscribe:jt,enableScrollRestoration:ds,navigate:yt,fetch:Je,revalidate:Ut,createHref:le=>e.history.createHref(le),encodeLocation:le=>e.history.encodeLocation(le),getFetcher:qt,deleteFetcher:Wt,dispose:Pt,getBlocker:Mr,deleteBlocker:Rr,patchRoutes:nt,_internalFetchControllers:ie,_internalActiveDeferreds:Xe,_internalSetRoutes:ze},P}function SPe(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function HP(e,t,n,r,i,a,s,o){let l,u;if(s){l=[];for(let f of t)if(l.push(f),f.route.id===s){u=f;break}}else l=t,u=t[t.length-1];let d=M$(i||".",L$(l,a),TT(e.pathname,n)||e.pathname,o==="path");return i==null&&(d.search=e.search,d.hash=e.hash),(i==null||i===""||i===".")&&u&&u.route.index&&!F$(d.search)&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(d.pathname=d.pathname==="/"?n:V0([n,d.pathname])),wT(d)}function DY(e,t,n,r){if(!r||!SPe(r))return{path:n};if(r.formMethod&&!LPe(r.formMethod))return{path:n,error:Uo(405,{method:r.formMethod})};let i=()=>({path:n,error:Uo(400,{type:"invalid-body"})}),a=r.formMethod||"get",s=e?a.toUpperCase():a.toLowerCase(),o=Aoe(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!ud(s))return i();let p=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((g,O)=>{let[S,T]=O;return""+g+S+"="+T+` +`},""):String(r.body);return{path:n,submission:{formMethod:s,formAction:o,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!ud(s))return i();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:s,formAction:o,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return i()}}}fr(typeof FormData=="function","FormData is not available in this environment");let l,u;if(r.formData)l=QP(r.formData),u=r.formData;else if(r.body instanceof FormData)l=QP(r.body),u=r.body;else if(r.body instanceof URLSearchParams)l=r.body,u=FY(l);else if(r.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(r.body),u=FY(l)}catch{return i()}let d={formMethod:s,formAction:o,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(ud(d.formMethod))return{path:n,submission:d};let f=Om(n);return t&&f.search&&F$(f.search)&&l.append("index",""),f.search="?"+l,{path:wT(f),submission:d}}function EPe(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 PY(e,t,n,r,i,a,s,o,l,u,d,f,p,g,O,S){let T=S?lu(S[1])?S[1].error:S[1].data:void 0,w=e.createURL(t.location),x=e.createURL(i),k=S&&lu(S[1])?S[0]:void 0,_=k?EPe(n,k):n,R=S?S[1].statusCode:void 0,N=s&&R&&R>=400,P=_.filter((j,B)=>{let{route:V}=j;if(V.lazy)return!0;if(V.loader==null)return!1;if(a)return typeof V.loader!="function"||V.loader.hydrate?!0:t.loaderData[V.id]===void 0&&(!t.errors||t.errors[V.id]===void 0);if(wPe(t.loaderData,t.matches[B],j)||l.some(ee=>ee===j.route.id))return!0;let W=t.matches[B],re=j;return LY(j,sa({currentUrl:w,currentParams:W.params,nextUrl:x,nextParams:re.params},r,{actionResult:T,actionStatus:R,defaultShouldRevalidate:N?!1:o||w.pathname+w.search===x.pathname+x.search||w.search!==x.search||xoe(W,re)}))}),L=[];return f.forEach((j,B)=>{if(a||!n.some(q=>q.route.id===j.routeId)||d.has(B))return;let V=_g(g,j.path,O);if(!V){L.push({key:B,routeId:j.routeId,path:j.path,matches:null,match:null,controller:null});return}let W=t.fetchers.get(B),re=PE(V,j.path),ee=!1;p.has(B)?ee=!1:u.has(B)?(u.delete(B),ee=!0):W&&W.state!=="idle"&&W.data===void 0?ee=o:ee=LY(re,sa({currentUrl:w,currentParams:t.matches[t.matches.length-1].params,nextUrl:x,nextParams:n[n.length-1].params},r,{actionResult:T,actionStatus:R,defaultShouldRevalidate:N?!1:o})),ee&&L.push({key:B,routeId:j.routeId,path:j.path,matches:V,match:re,controller:new AbortController})}),[P,L]}function wPe(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function xoe(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function LY(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function TPe(e,t,n,r,i,a,s,o){let l=[t,...n.map(u=>u.route.id)].join("-");try{let u=s.get(l);u||(u=e({path:t,matches:n,patch:(d,f)=>{o.aborted||koe(d,f,r,i,a)}}),s.set(l,u)),u&&NPe(u)&&await u}finally{s.delete(l)}}function koe(e,t,n,r,i){if(e){var a;let s=r[e];fr(s,"No route found to patch children into: routeId = "+e);let o=hw(t,i,[e,"patch",String(((a=s.children)==null?void 0:a.length)||"0")],r);s.children?s.children.push(...o):s.children=o}else{let s=hw(t,i,["patch",String(n.length||"0")],r);n.push(...s)}}async function MY(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];fr(i,"No route found in manifest");let a={};for(let s in r){let l=i[s]!==void 0&&s!=="hasErrorBoundary";Tv(!l,'Route "'+i.id+'" has a static property "'+s+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+s+'" will be ignored.')),!l&&!q7e.has(s)&&(a[s]=r[s])}Object.assign(i,a),Object.assign(i,sa({},t(i),{lazy:void 0}))}function xPe(e){return Promise.all(e.matches.map(t=>t.resolve()))}async function kPe(e,t,n,r,i,a,s,o){let l=r.reduce((f,p)=>f.add(p.route.id),new Set),u=new Set,d=await e({matches:i.map(f=>{let p=l.has(f.route.id);return sa({},f,{shouldLoad:p,resolve:O=>(u.add(f.route.id),p?APe(t,n,f,a,s,O,o):Promise.resolve({type:di.data,result:void 0}))})}),request:n,params:i[0].params,context:o});return i.forEach(f=>fr(u.has(f.route.id),'`match.resolve()` was not called for route id "'+f.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),d.filter((f,p)=>l.has(i[p].route.id))}async function APe(e,t,n,r,i,a,s){let o,l,u=d=>{let f,p=new Promise((S,T)=>f=T);l=()=>f(),t.signal.addEventListener("abort",l);let g=S=>typeof d!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):d({request:t,params:n.params,context:s},...S!==void 0?[S]:[]),O;return a?O=a(S=>g(S)):O=(async()=>{try{return{type:"data",result:await g()}}catch(S){return{type:"error",result:S}}})(),Promise.race([O,p])};try{let d=n.route[e];if(n.route.lazy)if(d){let f,[p]=await Promise.all([u(d).catch(g=>{f=g}),MY(n.route,i,r)]);if(f!==void 0)throw f;o=p}else if(await MY(n.route,i,r),d=n.route[e],d)o=await u(d);else if(e==="action"){let f=new URL(t.url),p=f.pathname+f.search;throw Uo(405,{method:t.method,pathname:p,routeId:n.route.id})}else return{type:di.data,result:void 0};else if(d)o=await u(d);else{let f=new URL(t.url),p=f.pathname+f.search;throw Uo(404,{pathname:p})}fr(o.result!==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(d){return{type:di.error,result:d}}finally{l&&t.signal.removeEventListener("abort",l)}return o}async function _Pe(e){let{result:t,type:n}=e;if(_oe(t)){let u;try{let d=t.headers.get("Content-Type");d&&/\bapplication\/json\b/.test(d)?t.body==null?u=null:u=await t.json():u=await t.text()}catch(d){return{type:di.error,error:d}}return n===di.error?{type:di.error,error:new m3(t.status,t.statusText,u),statusCode:t.status,headers:t.headers}:{type:di.data,data:u,statusCode:t.status,headers:t.headers}}if(n===di.error){if(QY(t)){var r;if(t.data instanceof Error){var i;return{type:di.error,error:t.data,statusCode:(i=t.init)==null?void 0:i.status}}t=new m3(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:di.error,error:t,statusCode:xT(t)?t.status:void 0}}if(PPe(t)){var a,s;return{type:di.deferred,deferredData:t,statusCode:(a=t.init)==null?void 0:a.status,headers:((s=t.init)==null?void 0:s.headers)&&new Headers(t.init.headers)}}if(QY(t)){var o,l;return{type:di.data,data:t.data,statusCode:(o=t.init)==null?void 0:o.status,headers:(l=t.init)!=null&&l.headers?new Headers(t.init.headers):void 0}}return{type:di.data,data:t}}function CPe(e,t,n,r,i,a){let s=e.headers.get("Location");if(fr(s,"Redirects returned/thrown from loaders/actions must have a Location header"),!$$.test(s)){let o=r.slice(0,r.findIndex(l=>l.route.id===n)+1);s=HP(new URL(t.url),o,i,!0,s,a),e.headers.set("Location",s)}return e}function $Y(e,t,n){if($$.test(e)){let r=e,i=r.startsWith("//")?new URL(t.protocol+r):new URL(r),a=TT(i.pathname,n)!=null;if(i.origin===t.origin&&a)return i.pathname+i.search+i.hash}return e}function Ib(e,t,n,r){let i=e.createURL(Aoe(t)).toString(),a={signal:n};if(r&&ud(r.formMethod)){let{formMethod:s,formEncType:o}=r;a.method=s.toUpperCase(),o==="application/json"?(a.headers=new Headers({"Content-Type":o}),a.body=JSON.stringify(r.json)):o==="text/plain"?a.body=r.text:o==="application/x-www-form-urlencoded"&&r.formData?a.body=QP(r.formData):a.body=r.formData}return new Request(i,a)}function QP(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function FY(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function RPe(e,t,n,r,i,a){let s={},o=null,l,u=!1,d={},f=r&&lu(r[1])?r[1].error:void 0;return n.forEach((p,g)=>{let O=t[g].route.id;if(fr(!Bg(p),"Cannot handle redirect results in processLoaderData"),lu(p)){let S=p.error;f!==void 0&&(S=f,f=void 0),o=o||{};{let T=py(e,O);o[T.route.id]==null&&(o[T.route.id]=S)}s[O]=void 0,u||(u=!0,l=xT(p.error)?p.error.status:500),p.headers&&(d[O]=p.headers)}else Fg(p)?(i.set(O,p.deferredData),s[O]=p.deferredData.data,p.statusCode!=null&&p.statusCode!==200&&!u&&(l=p.statusCode),p.headers&&(d[O]=p.headers)):(s[O]=p.data,p.statusCode&&p.statusCode!==200&&!u&&(l=p.statusCode),p.headers&&(d[O]=p.headers))}),f!==void 0&&r&&(o={[r[0]]:f},s[r[0]]=void 0),{loaderData:s,errors:o,statusCode:l||200,loaderHeaders:d}}function BY(e,t,n,r,i,a,s,o){let{loaderData:l,errors:u}=RPe(t,n,r,i,o);for(let d=0;dr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function jY(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 Uo(e,t){let{pathname:n,routeId:r,method:i,type:a,message:s}=t===void 0?{}:t,o="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(o="Bad Request",a==="route-discovery"?l='Unable to match URL "'+n+'" - the `unstable_patchRoutesOnNavigation()` '+(`function threw the following error: +`+s):i&&n&&r?l="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":a==="defer-action"?l="defer() is not supported in actions":a==="invalid-body"&&(l="Unable to encode submission body")):e===403?(o="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(o="Not Found",l='No route matches URL "'+n+'"'):e===405&&(o="Method Not Allowed",i&&n&&r?l="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&&(l='Invalid request method "'+i.toUpperCase()+'"')),new m3(e||500,o,new Error(l),!0)}function HY(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Bg(n))return{result:n,idx:t}}}function Aoe(e){let t=typeof e=="string"?Om(e):e;return wT(sa({},t,{hash:""}))}function IPe(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function NPe(e){return typeof e=="object"&&e!=null&&"then"in e}function DPe(e){return _oe(e.result)&&gPe.has(e.result.status)}function Fg(e){return e.type===di.deferred}function lu(e){return e.type===di.error}function Bg(e){return(e&&e.type)===di.redirect}function QY(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function PPe(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 _oe(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function LPe(e){return mPe.has(e.toLowerCase())}function ud(e){return hPe.has(e.toLowerCase())}async function WY(e,t,n,r,i,a){for(let s=0;sf.route.id===l.route.id),d=u!=null&&!xoe(u,l)&&(a&&a[l.route.id])!==void 0;if(Fg(o)&&(i||d)){let f=r[s];fr(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await Coe(o,f,i).then(p=>{p&&(n[s]=p||n[s])})}}}async function Coe(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:di.data,data:e.deferredData.unwrappedData}}catch(i){return{type:di.error,error:i}}return{type:di.data,data:e.deferredData.data}}}function F$(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function PE(e,t){let n=typeof t=="string"?Om(t).search:t.search;if(e[e.length-1].route.index&&F$(n||""))return e[e.length-1];let r=Eoe(e);return r[r.length-1]}function VY(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:s}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(s!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:s,text:void 0}}}function $N(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 MPe(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 rE(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 $Pe(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 r0(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 FPe(e,t){try{let n=e.sessionStorage.getItem(Toe);if(n){let r=JSON.parse(n);for(let[i,a]of Object.entries(r||{}))a&&Array.isArray(a)&&t.set(i,new Set(a||[]))}}catch{}}function BPe(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(Toe,JSON.stringify(n))}catch(r){Tv(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** * React Router v6.26.1 * * Copyright (c) Remix Software Inc. @@ -182,7 +182,7 @@ Error generating stack: `+a.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function gC(){return gC=Object.assign?Object.assign.bind():function(e){for(var t=1;t{o.current=!0}),M.useCallback(function(u,d){if(d===void 0&&(d={}),!o.current)return;if(typeof u=="number"){r.go(u);return}let f=W$(u,JSON.parse(s),a,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:em([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,s,a,e])}const KPe=M.createContext(null);function JPe(e){let t=M.useContext(Tp).outlet;return t&&M.createElement(KPe.Provider,{value:e},t)}function Cm(){let{matches:e}=M.useContext(Tp),t=e[e.length-1];return t?t.params:{}}function e8e(e,t,n,r){xT()||mr(!1);let{navigator:i}=M.useContext(TT),{matches:a}=M.useContext(Tp),s=a[a.length-1],o=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let u=_m(),d;d=u;let f=d.pathname||"/",p=f;if(l!=="/"){let S=l.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(S.length).join("/")}let g=xg(e,{pathname:p});return a8e(g&&g.map(S=>Object.assign({},S,{params:Object.assign({},o,S.params),pathname:em([l,i.encodeLocation?i.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?l:em([l,i.encodeLocation?i.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),a,n,r)}function t8e(){let e=Qoe(),t=wT(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return M.createElement(M.Fragment,null,M.createElement("h2",null,"Unexpected Application Error!"),M.createElement("h3",{style:{fontStyle:"italic"}},t),n?M.createElement("pre",{style:i},n):null,null)}const n8e=M.createElement(t8e,null);class r8e extends M.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?M.createElement(Tp.Provider,{value:this.props.routeContext},M.createElement(Uoe.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function i8e(e){let{routeContext:t,match:n,children:r}=e,i=M.useContext(rR);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),M.createElement(Tp.Provider,{value:t},r)}function a8e(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if(!n)return null;if(n.errors)e=n.matches;else if((a=r)!=null&&a.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,o=(i=n)==null?void 0:i.errors;if(o!=null){let d=s.findIndex(f=>f.route.id&&(o==null?void 0:o[f.route.id])!==void 0);d>=0||mr(!1),s=s.slice(0,Math.min(s.length,d+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((d,f,p)=>{let g,O=!1,S=null,T=null;n&&(g=o&&f.route.id?o[f.route.id]:void 0,S=f.route.errorElement||n8e,l&&(u<0&&p===0?(O=!0,T=null):u===p&&(O=!0,T=f.route.hydrateFallbackElement||null)));let w=t.concat(s.slice(0,p+1)),x=()=>{let k;return g?k=S:O?k=T:f.route.Component?k=M.createElement(f.route.Component,null):f.route.element?k=f.route.element:k=d,M.createElement(i8e,{match:f,routeContext:{outlet:d,matches:w,isDataRoute:n!=null},children:k})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?M.createElement(r8e,{location:n.location,revalidation:n.revalidation,component:S,error:g,children:x(),routeContext:{outlet:null,matches:w,isDataRoute:!0}}):x()},null)}var joe=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(joe||{}),bC=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}(bC||{});function s8e(e){let t=M.useContext(rR);return t||mr(!1),t}function o8e(e){let t=M.useContext(Boe);return t||mr(!1),t}function l8e(e){let t=M.useContext(Tp);return t||mr(!1),t}function Hoe(e){let t=l8e(),n=t.matches[t.matches.length-1];return n.route.id||mr(!1),n.route.id}function Qoe(){var e;let t=M.useContext(Uoe),n=o8e(bC.UseRouteError),r=Hoe(bC.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function u8e(){let{router:e}=s8e(joe.UseNavigateStable),t=Hoe(bC.UseNavigateStable),n=M.useRef(!1);return zoe(()=>{n.current=!0}),M.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,gC({fromRouteId:t},a)))},[e,t])}function Y$(e){let{to:t,replace:n,state:r,relative:i}=e;xT()||mr(!1);let{future:a,static:s}=M.useContext(TT),{matches:o}=M.useContext(Tp),{pathname:l}=_m(),u=$c(),d=W$(t,Q$(o,a.v7_relativeSplatPath),l,i==="path"),f=JSON.stringify(d);return M.useEffect(()=>u(JSON.parse(f),{replace:n,state:r,relative:i}),[u,f,i,n,r]),null}function iR(e){return JPe(e.context)}function c8e(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Ua.Pop,navigator:a,static:s=!1,future:o}=e;xT()&&mr(!1);let l=t.replace(/^\/*/,"/"),u=M.useMemo(()=>({basename:l,navigator:a,static:s,future:gC({v7_relativeSplatPath:!1},o)}),[l,o,a,s]);typeof r=="string"&&(r=Am(r));let{pathname:d="/",search:f="",hash:p="",state:g=null,key:O="default"}=r,S=M.useMemo(()=>{let T=ET(d,l);return T==null?null:{location:{pathname:T,search:f,hash:p,state:g,key:O},navigationType:i}},[l,d,f,p,g,O,i]);return S==null?null:M.createElement(TT.Provider,{value:u},M.createElement(G$.Provider,{children:n,value:S}))}new Promise(()=>{});function d8e(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:M.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:M.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:M.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + */function g3(){return g3=Object.assign?Object.assign.bind():function(e){for(var t=1;t{o.current=!0}),M.useCallback(function(u,d){if(d===void 0&&(d={}),!o.current)return;if(typeof u=="number"){r.go(u);return}let f=M$(u,JSON.parse(s),a,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:V0([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,s,a,e])}const zPe=M.createContext(null);function jPe(e){let t=M.useContext(yp).outlet;return t&&M.createElement(zPe.Provider,{value:e},t)}function Em(){let{matches:e}=M.useContext(yp),t=e[e.length-1];return t?t.params:{}}function HPe(e,t,n,r){AT()||fr(!1);let{navigator:i}=M.useContext(kT),{matches:a}=M.useContext(yp),s=a[a.length-1],o=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let u=Sm(),d;d=u;let f=d.pathname||"/",p=f;if(l!=="/"){let S=l.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(S.length).join("/")}let g=_g(e,{pathname:p});return GPe(g&&g.map(S=>Object.assign({},S,{params:Object.assign({},o,S.params),pathname:V0([l,i.encodeLocation?i.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?l:V0([l,i.encodeLocation?i.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),a,n,r)}function QPe(){let e=Loe(),t=xT(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return M.createElement(M.Fragment,null,M.createElement("h2",null,"Unexpected Application Error!"),M.createElement("h3",{style:{fontStyle:"italic"}},t),n?M.createElement("pre",{style:i},n):null,null)}const WPe=M.createElement(QPe,null);class VPe extends M.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?M.createElement(yp.Provider,{value:this.props.routeContext},M.createElement(Ioe.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function qPe(e){let{routeContext:t,match:n,children:r}=e,i=M.useContext(tR);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),M.createElement(yp.Provider,{value:t},r)}function GPe(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if(!n)return null;if(n.errors)e=n.matches;else if((a=r)!=null&&a.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,o=(i=n)==null?void 0:i.errors;if(o!=null){let d=s.findIndex(f=>f.route.id&&(o==null?void 0:o[f.route.id])!==void 0);d>=0||fr(!1),s=s.slice(0,Math.min(s.length,d+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((d,f,p)=>{let g,O=!1,S=null,T=null;n&&(g=o&&f.route.id?o[f.route.id]:void 0,S=f.route.errorElement||WPe,l&&(u<0&&p===0?(O=!0,T=null):u===p&&(O=!0,T=f.route.hydrateFallbackElement||null)));let w=t.concat(s.slice(0,p+1)),x=()=>{let k;return g?k=S:O?k=T:f.route.Component?k=M.createElement(f.route.Component,null):f.route.element?k=f.route.element:k=d,M.createElement(qPe,{match:f,routeContext:{outlet:d,matches:w,isDataRoute:n!=null},children:k})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?M.createElement(VPe,{location:n.location,revalidation:n.revalidation,component:S,error:g,children:x(),routeContext:{outlet:null,matches:w,isDataRoute:!0}}):x()},null)}var Doe=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Doe||{}),b3=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}(b3||{});function YPe(e){let t=M.useContext(tR);return t||fr(!1),t}function ZPe(e){let t=M.useContext(Roe);return t||fr(!1),t}function XPe(e){let t=M.useContext(yp);return t||fr(!1),t}function Poe(e){let t=XPe(),n=t.matches[t.matches.length-1];return n.route.id||fr(!1),n.route.id}function Loe(){var e;let t=M.useContext(Ioe),n=ZPe(b3.UseRouteError),r=Poe(b3.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function KPe(){let{router:e}=YPe(Doe.UseNavigateStable),t=Poe(b3.UseNavigateStable),n=M.useRef(!1);return Noe(()=>{n.current=!0}),M.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,g3({fromRouteId:t},a)))},[e,t])}function U$(e){let{to:t,replace:n,state:r,relative:i}=e;AT()||fr(!1);let{future:a,static:s}=M.useContext(kT),{matches:o}=M.useContext(yp),{pathname:l}=Sm(),u=Mc(),d=M$(t,L$(o,a.v7_relativeSplatPath),l,i==="path"),f=JSON.stringify(d);return M.useEffect(()=>u(JSON.parse(f),{replace:n,state:r,relative:i}),[u,f,i,n,r]),null}function nR(e){return jPe(e.context)}function JPe(e){let{basename:t="/",children:n=null,location:r,navigationType:i=ja.Pop,navigator:a,static:s=!1,future:o}=e;AT()&&fr(!1);let l=t.replace(/^\/*/,"/"),u=M.useMemo(()=>({basename:l,navigator:a,static:s,future:g3({v7_relativeSplatPath:!1},o)}),[l,o,a,s]);typeof r=="string"&&(r=Om(r));let{pathname:d="/",search:f="",hash:p="",state:g=null,key:O="default"}=r,S=M.useMemo(()=>{let T=TT(d,l);return T==null?null:{location:{pathname:T,search:f,hash:p,state:g,key:O},navigationType:i}},[l,d,f,p,g,O,i]);return S==null?null:M.createElement(kT.Provider,{value:u},M.createElement(B$.Provider,{children:n,value:S}))}new Promise(()=>{});function e8e(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:M.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:M.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:M.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.26.1 * * Copyright (c) Remix Software Inc. @@ -191,57 +191,56 @@ Error generating stack: `+a.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function yC(){return yC=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 f8e(e,t){let n=KP(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(a=>{n.append(i,a)})}),n}const h8e="6";try{window.__reactRouterVersion=h8e}catch{}function p8e(e,t){return IPe({basename:void 0,future:yC({},void 0,{v7_prependBasename:!0}),history:tPe({window:void 0}),hydrationData:m8e(),routes:e,mapRouteProperties:d8e,unstable_dataStrategy:void 0,unstable_patchRoutesOnNavigation:void 0,window:void 0}).initialize()}function m8e(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=yC({},t,{errors:g8e(t.errors)})),t}function g8e(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 mC(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let a=window[i.__subType];if(typeof a=="function")try{let s=new a(i.message);s.stack="",n[r]=s}catch{}}if(n[r]==null){let a=new Error(i.message);a.stack="",n[r]=a}}else n[r]=i;return n}const b8e=M.createContext({isTransitioning:!1}),y8e=M.createContext(new Map),v8e="startTransition",rZ=gv[v8e],O8e="flushSync",iZ=dTe[O8e];function S8e(e){rZ?rZ(e):e()}function nE(e){iZ?iZ(e):e()}class E8e{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 w8e(e){let{fallbackElement:t,router:n,future:r}=e,[i,a]=M.useState(n.state),[s,o]=M.useState(),[l,u]=M.useState({isTransitioning:!1}),[d,f]=M.useState(),[p,g]=M.useState(),[O,S]=M.useState(),T=M.useRef(new Map),{v7_startTransition:w}=r||{},x=M.useCallback(L=>{w?S8e(L):L()},[w]),k=M.useCallback((L,j)=>{let{deletedFetchers:B,unstable_flushSync:V,unstable_viewTransitionOpts:W}=j;B.forEach(ee=>T.current.delete(ee)),L.fetchers.forEach((ee,q)=>{ee.data!==void 0&&T.current.set(q,ee.data)});let re=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!W||re){V?nE(()=>a(L)):x(()=>a(L));return}if(V){nE(()=>{p&&(d&&d.resolve(),p.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:W.currentLocation,nextLocation:W.nextLocation})});let ee=n.window.document.startViewTransition(()=>{nE(()=>a(L))});ee.finished.finally(()=>{nE(()=>{f(void 0),g(void 0),o(void 0),u({isTransitioning:!1})})}),nE(()=>g(ee));return}p?(d&&d.resolve(),p.skipTransition(),S({state:L,currentLocation:W.currentLocation,nextLocation:W.nextLocation})):(o(L),u({isTransitioning:!0,flushSync:!1,currentLocation:W.currentLocation,nextLocation:W.nextLocation}))},[n.window,p,d,T,x]);M.useLayoutEffect(()=>n.subscribe(k),[n,k]),M.useEffect(()=>{l.isTransitioning&&!l.flushSync&&f(new E8e)},[l]),M.useEffect(()=>{if(d&&s&&n.window){let L=s,j=d.promise,B=n.window.document.startViewTransition(async()=>{x(()=>a(L)),await j});B.finished.finally(()=>{f(void 0),g(void 0),o(void 0),u({isTransitioning:!1})}),g(B)}},[x,s,d,n.window]),M.useEffect(()=>{d&&s&&i.location.key===s.location.key&&d.resolve()},[d,p,i.location,s]),M.useEffect(()=>{!l.isTransitioning&&O&&(o(O.state),u({isTransitioning:!0,flushSync:!1,currentLocation:O.currentLocation,nextLocation:O.nextLocation}),S(void 0))},[l.isTransitioning,O]),M.useEffect(()=>{},[]);let _=M.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:L=>n.navigate(L),push:(L,j,B)=>n.navigate(L,{state:j,preventScrollReset:B==null?void 0:B.preventScrollReset}),replace:(L,j,B)=>n.navigate(L,{replace:!0,state:j,preventScrollReset:B==null?void 0:B.preventScrollReset})}),[n]),R=n.basename||"/",N=M.useMemo(()=>({router:n,navigator:_,static:!1,basename:R}),[n,_,R]),D=M.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return M.createElement(M.Fragment,null,M.createElement(rR.Provider,{value:N},M.createElement(Boe.Provider,{value:i},M.createElement(y8e.Provider,{value:T.current},M.createElement(b8e.Provider,{value:l},M.createElement(c8e,{basename:R,location:i.location,navigationType:i.historyAction,navigator:_,future:D},i.initialized||n.future.v7_partialHydration?M.createElement(T8e,{routes:n.routes,future:n.future,state:i}):t))))),null)}const T8e=M.memo(x8e);function x8e(e){let{routes:t,future:n,state:r}=e;return e8e(t,void 0,r,n)}var aZ;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(aZ||(aZ={}));var sZ;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(sZ||(sZ={}));function Z$(e){let t=M.useRef(KP(e)),n=M.useRef(!1),r=_m(),i=M.useMemo(()=>f8e(r.search,n.current?null:t.current),[r.search]),a=$c(),s=M.useCallback((o,l)=>{const u=KP(typeof o=="function"?o(i):o);n.current=!0,a("?"+u,l)},[a,i]);return[i,s]}function Rs(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 k8e=typeof Symbol=="function"&&Symbol.observable||"@@observable",oZ=k8e,WN=()=>Math.random().toString(36).substring(7).split("").join("."),A8e={INIT:`@@redux/INIT${WN()}`,REPLACE:`@@redux/REPLACE${WN()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${WN()}`},vC=A8e;function X$(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 K$(e,t,n){if(typeof e!="function")throw new Error(Rs(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Rs(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Rs(1));return n(K$)(e,t)}let r=e,i=t,a=new Map,s=a,o=0,l=!1;function u(){s===a&&(s=new Map,a.forEach((T,w)=>{s.set(w,T)}))}function d(){if(l)throw new Error(Rs(3));return i}function f(T){if(typeof T!="function")throw new Error(Rs(4));if(l)throw new Error(Rs(5));let w=!0;u();const x=o++;return s.set(x,T),function(){if(w){if(l)throw new Error(Rs(6));w=!1,u(),s.delete(x),a=null}}}function p(T){if(!X$(T))throw new Error(Rs(7));if(typeof T.type>"u")throw new Error(Rs(8));if(typeof T.type!="string")throw new Error(Rs(17));if(l)throw new Error(Rs(9));try{l=!0,i=r(i,T)}finally{l=!1}return(a=s).forEach(x=>{x()}),T}function g(T){if(typeof T!="function")throw new Error(Rs(10));r=T,p({type:vC.REPLACE})}function O(){const T=f;return{subscribe(w){if(typeof w!="object"||w===null)throw new Error(Rs(11));function x(){const _=w;_.next&&_.next(d())}return x(),{unsubscribe:T(x)}},[oZ](){return this}}}return p({type:vC.INIT}),{dispatch:p,subscribe:f,getState:d,replaceReducer:g,[oZ]:O}}function _8e(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:vC.INIT})>"u")throw new Error(Rs(12));if(typeof n(void 0,{type:vC.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Rs(13))})}function Woe(e){const t=Object.keys(e),n={};for(let a=0;a"u")throw o&&o.type,new Error(Rs(14));u[f]=O,l=l||O!==g}return l=l||r.length!==Object.keys(s).length,l?u:s}}function OC(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function C8e(...e){return t=>(n,r)=>{const i=t(n,r);let a=()=>{throw new Error(Rs(15))};const s={getState:i.getState,dispatch:(l,...u)=>a(l,...u)},o=e.map(l=>l(s));return a=OC(...o)(i.dispatch),{...i,dispatch:a}}}function R8e(e){return X$(e)&&"type"in e&&typeof e.type=="string"}var Voe=Symbol.for("immer-nothing"),lZ=Symbol.for("immer-draftable"),Ru=Symbol.for("immer-state");function md(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Dv=Object.getPrototypeOf;function g1(e){return!!e&&!!e[Ru]}function fp(e){var t;return e?qoe(e)||Array.isArray(e)||!!e[lZ]||!!((t=e.constructor)!=null&&t[lZ])||sR(e)||oR(e):!1}var I8e=Object.prototype.constructor.toString();function qoe(e){if(!e||typeof e!="object")return!1;const t=Dv(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)===I8e}function SC(e,t){aR(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function aR(e){const t=e[Ru];return t?t.type_:Array.isArray(e)?1:sR(e)?2:oR(e)?3:0}function JP(e,t){return aR(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Goe(e,t,n){const r=aR(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function N8e(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function sR(e){return e instanceof Map}function oR(e){return e instanceof Set}function wg(e){return e.copy_||e.base_}function e8(e,t){if(sR(e))return new Map(e);if(oR(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=qoe(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Ru];let i=Reflect.ownKeys(r);for(let a=0;a1&&(e.set=e.add=e.clear=e.delete=D8e),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>J$(r,!0))),e}function D8e(){md(2)}function lR(e){return Object.isFrozen(e)}var P8e={};function b1(e){const t=P8e[e];return t||md(0,e),t}var fw;function Yoe(){return fw}function L8e(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function uZ(e,t){t&&(b1("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function t8(e){n8(e),e.drafts_.forEach(M8e),e.drafts_=null}function n8(e){e===fw&&(fw=e.parent_)}function cZ(e){return fw=L8e(fw,e)}function M8e(e){const t=e[Ru];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function dZ(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Ru].modified_&&(t8(t),md(4)),fp(e)&&(e=EC(t,e),t.parent_||wC(t,e)),t.patches_&&b1("Patches").generateReplacementPatches_(n[Ru].base_,e,t.patches_,t.inversePatches_)):e=EC(t,n,[]),t8(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Voe?e:void 0}function EC(e,t,n){if(lR(t))return t;const r=t[Ru];if(!r)return SC(t,(i,a)=>fZ(e,r,t,i,a,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return wC(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let a=i,s=!1;r.type_===3&&(a=new Set(i),i.clear(),s=!0),SC(a,(o,l)=>fZ(e,r,i,o,l,n,s)),wC(e,i,!1),n&&e.patches_&&b1("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function fZ(e,t,n,r,i,a,s){if(g1(i)){const o=a&&t&&t.type_!==3&&!JP(t.assigned_,r)?a.concat(r):void 0,l=EC(e,i,o);if(Goe(n,r,l),g1(l))e.canAutoFreeze_=!1;else return}else s&&n.add(i);if(fp(i)&&!lR(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;EC(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&wC(e,i)}}function wC(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&J$(t,n)}function $8e(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:Yoe(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,a=eF;n&&(i=[r],a=hw);const{revoke:s,proxy:o}=Proxy.revocable(i,a);return r.draft_=o,r.revoke_=s,o}var eF={get(e,t){if(t===Ru)return e;const n=wg(e);if(!JP(n,t))return F8e(e,n,t);const r=n[t];return e.finalized_||!fp(r)?r:r===VN(e.base_,t)?(qN(e),e.copy_[t]=i8(r,e)):r},has(e,t){return t in wg(e)},ownKeys(e){return Reflect.ownKeys(wg(e))},set(e,t,n){const r=Zoe(wg(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=VN(wg(e),t),a=i==null?void 0:i[Ru];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(N8e(n,i)&&(n!==void 0||JP(e.base_,t)))return!0;qN(e),r8(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 VN(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,qN(e),r8(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=wg(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){md(11)},getPrototypeOf(e){return Dv(e.base_)},setPrototypeOf(){md(12)}},hw={};SC(eF,(e,t)=>{hw[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});hw.deleteProperty=function(e,t){return hw.set.call(this,e,t,void 0)};hw.set=function(e,t,n){return eF.set.call(this,e[0],t,n,e[0])};function VN(e,t){const n=e[Ru];return(n?wg(n):e)[t]}function F8e(e,t,n){var i;const r=Zoe(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function Zoe(e,t){if(!(t in e))return;let n=Dv(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Dv(n)}}function r8(e){e.modified_||(e.modified_=!0,e.parent_&&r8(e.parent_))}function qN(e){e.copy_||(e.copy_=e8(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var B8e=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const a=n;n=t;const s=this;return function(l=a,...u){return s.produce(l,d=>n.call(this,d,...u))}}typeof n!="function"&&md(6),r!==void 0&&typeof r!="function"&&md(7);let i;if(fp(t)){const a=cZ(this),s=i8(t,void 0);let o=!0;try{i=n(s),o=!1}finally{o?t8(a):n8(a)}return uZ(a,r),dZ(i,a)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===Voe&&(i=void 0),this.autoFreeze_&&J$(i,!0),r){const a=[],s=[];b1("Patches").generateReplacementPatches_(t,i,a,s),r(a,s)}return i}else md(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...o)=>this.produceWithPatches(s,l=>t(l,...o));let r,i;return[this.produce(t,n,(s,o)=>{r=s,i=o}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){fp(e)||md(8),g1(e)&&(e=U8e(e));const t=cZ(this),n=i8(e,void 0);return n[Ru].isManual_=!0,n8(t),n}finishDraft(e,t){const n=e&&e[Ru];(!n||!n.isManual_)&&md(9);const{scope_:r}=n;return uZ(r,t),dZ(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=b1("Patches").applyPatches_;return g1(e)?r(e,t):this.produce(e,i=>r(i,t))}};function i8(e,t){const n=sR(e)?b1("MapSet").proxyMap_(e,t):oR(e)?b1("MapSet").proxySet_(e,t):$8e(e,t);return(t?t.scope_:Yoe()).drafts_.push(n),n}function U8e(e){return g1(e)||md(10,e),Xoe(e)}function Xoe(e){if(!fp(e)||lR(e))return e;const t=e[Ru];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=e8(e,t.scope_.immer_.useStrictShallowCopy_)}else n=e8(e,!0);return SC(n,(r,i)=>{Goe(n,r,Xoe(i))}),t&&(t.finalized_=!1),n}var Iu=new B8e,Koe=Iu.produce;Iu.produceWithPatches.bind(Iu);Iu.setAutoFreeze.bind(Iu);Iu.setUseStrictShallowCopy.bind(Iu);Iu.applyPatches.bind(Iu);Iu.createDraft.bind(Iu);Iu.finishDraft.bind(Iu);function Joe(e){return({dispatch:n,getState:r})=>i=>a=>typeof a=="function"?a(n,r,e):i(a)}var z8e=Joe(),j8e=Joe,H8e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?OC:OC.apply(null,arguments)};function hZ(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(Sd(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=>R8e(r)&&r.type===e,n}var ele=class DE extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,DE.prototype)}static get[Symbol.species](){return DE}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new DE(...t[0].concat(this)):new DE(...t.concat(this))}};function pZ(e){return fp(e)?Koe(e,()=>{}):e}function mZ(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(Sd(10));const r=n.insert(t,e);return e.set(t,r),r}function Q8e(e){return typeof e=="boolean"}var W8e=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let s=new ele;return n&&(Q8e(n)?s.push(z8e):s.push(j8e(n.extraArgument))),s},V8e="RTK_autoBatch",tle=e=>t=>{setTimeout(t,e)},q8e=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:tle(10),G8e=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,a=!1,s=!1;const o=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?q8e:e.type==="callback"?e.queueNotification:tle(e.timeout),u=()=>{s=!1,a&&(a=!1,o.forEach(d=>d()))};return Object.assign({},r,{subscribe(d){const f=()=>i&&d(),p=r.subscribe(f);return o.add(d),()=>{p(),o.delete(d)}},dispatch(d){var f;try{return i=!((f=d==null?void 0:d.meta)!=null&&f[V8e]),a=!i,a&&(s||(s=!0,l(u))),r.dispatch(d)}finally{i=!0}}})},Y8e=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new ele(e);return r&&i.push(G8e(typeof r=="object"?r:void 0)),i};function Z8e(e){const t=W8e(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:a=void 0,enhancers:s=void 0}=e||{};let o;if(typeof n=="function")o=n;else if(X$(n))o=Woe(n);else throw new Error(Sd(1));let l;typeof r=="function"?l=r(t):l=t();let u=OC;i&&(u=H8e({trace:!1,...typeof i=="object"&&i}));const d=C8e(...l),f=Y8e(d);let p=typeof s=="function"?s(f):f();const g=u(...p);return K$(o,a,g)}function nle(e){const t={},n=[];let r;const i={addCase(a,s){const o=typeof a=="string"?a:a.type;if(!o)throw new Error(Sd(28));if(o in t)throw new Error(Sd(29));return t[o]=s,i},addMatcher(a,s){return n.push({matcher:a,reducer:s}),i},addDefaultCase(a){return r=a,i}};return e(i),[t,n,r]}function X8e(e){return typeof e=="function"}function K8e(e,t){let[n,r,i]=nle(t),a;if(X8e(e))a=()=>pZ(e());else{const o=pZ(e);a=()=>o}function s(o=a(),l){let u=[n[l.type],...r.filter(({matcher:d})=>d(l)).map(({reducer:d})=>d)];return u.filter(d=>!!d).length===0&&(u=[i]),u.reduce((d,f)=>{if(f)if(g1(d)){const g=f(d,l);return g===void 0?d:g}else{if(fp(d))return Koe(d,p=>f(p,l));{const p=f(d,l);if(p===void 0){if(d===null)return d;throw new Error(Sd(9))}return p}}return d},o)}return s.getInitialState=a,s}var J8e=Symbol.for("rtk-slice-createasyncthunk");function eLe(e,t){return`${e}/${t}`}function tLe({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[J8e];return function(i){const{name:a,reducerPath:s=a}=i;if(!a)throw new Error(Sd(11));typeof process<"u";const o=(typeof i.reducers=="function"?i.reducers(rLe()):i.reducers)||{},l=Object.keys(o),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(k,_){const R=typeof k=="string"?k:k.type;if(!R)throw new Error(Sd(12));if(R in u.sliceCaseReducersByType)throw new Error(Sd(13));return u.sliceCaseReducersByType[R]=_,d},addMatcher(k,_){return u.sliceMatchers.push({matcher:k,reducer:_}),d},exposeAction(k,_){return u.actionCreators[k]=_,d},exposeCaseReducer(k,_){return u.sliceCaseReducersByName[k]=_,d}};l.forEach(k=>{const _=o[k],R={reducerName:k,type:eLe(a,k),createNotation:typeof i.reducers=="function"};aLe(_)?oLe(R,_,d,t):iLe(R,_,d)});function f(){const[k={},_=[],R=void 0]=typeof i.extraReducers=="function"?nle(i.extraReducers):[i.extraReducers],N={...k,...u.sliceCaseReducersByType};return K8e(i.initialState,D=>{for(let L in N)D.addCase(L,N[L]);for(let L of u.sliceMatchers)D.addMatcher(L.matcher,L.reducer);for(let L of _)D.addMatcher(L.matcher,L.reducer);R&&D.addDefaultCase(R)})}const p=k=>k,g=new Map;let O;function S(k,_){return O||(O=f()),O(k,_)}function T(){return O||(O=f()),O.getInitialState()}function w(k,_=!1){function R(D){let L=D[k];return typeof L>"u"&&_&&(L=T()),L}function N(D=p){const L=mZ(g,_,{insert:()=>new WeakMap});return mZ(L,D,{insert:()=>{const j={};for(const[B,V]of Object.entries(i.selectors??{}))j[B]=nLe(V,D,T,_);return j}})}return{reducerPath:k,getSelectors:N,get selectors(){return N(R)},selectSlice:R}}const x={name:a,reducer:S,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:T,...w(s),injectInto(k,{reducerPath:_,...R}={}){const N=_??s;return k.inject({reducerPath:N,reducer:S},R),{...x,...w(N,!0)}}};return x}}function nLe(e,t,n,r){function i(a,...s){let o=t(a);return typeof o>"u"&&r&&(o=n()),e(o,...s)}return i.unwrapped=e,i}var P1=tLe();function rLe(){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 iLe({type:e,reducerName:t,createNotation:n},r,i){let a,s;if("reducer"in r){if(n&&!sLe(r))throw new Error(Sd(17));a=r.reducer,s=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,s?hZ(e,s):hZ(e))}function aLe(e){return e._reducerDefinitionType==="asyncThunk"}function sLe(e){return e._reducerDefinitionType==="reducerWithPrepare"}function oLe({type:e,reducerName:t},n,r,i){if(!i)throw new Error(Sd(18));const{payloadCreator:a,fulfilled:s,pending:o,rejected:l,settled:u,options:d}=n,f=i(e,a,d);r.exposeAction(t,f),s&&r.addCase(f.fulfilled,s),o&&r.addCase(f.pending,o),l&&r.addCase(f.rejected,l),u&&r.addMatcher(f.settled,u),r.exposeCaseReducer(t,{fulfilled:s||OA,pending:o||OA,rejected:l||OA,settled:u||OA})}function OA(){}function Sd(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 lLe={theme:"default",drawerOpen:!0},rle=P1({name:"editor",initialState:lLe,reducers:{setTheme:(e,t)=>{e.theme=t.payload},setDrawerOpen:(e,t)=>{e.drawerOpen=t.payload}}}),{setTheme:ile,setDrawerOpen:uLe}=rle.actions,tF=e=>e.config,cLe=rle.reducer;function ale(e,t){return function(){return e.apply(t,arguments)}}const{toString:dLe}=Object.prototype,{getPrototypeOf:nF}=Object,uR=(e=>t=>{const n=dLe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Dd=e=>(e=e.toLowerCase(),t=>uR(t)===e),cR=e=>t=>typeof t===e,{isArray:bO}=Array,pw=cR("undefined");function fLe(e){return e!==null&&!pw(e)&&e.constructor!==null&&!pw(e.constructor)&&Au(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const sle=Dd("ArrayBuffer");function hLe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&sle(e.buffer),t}const pLe=cR("string"),Au=cR("function"),ole=cR("number"),dR=e=>e!==null&&typeof e=="object",mLe=e=>e===!0||e===!1,G4=e=>{if(uR(e)!=="object")return!1;const t=nF(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},gLe=Dd("Date"),bLe=Dd("File"),yLe=Dd("Blob"),vLe=Dd("FileList"),OLe=e=>dR(e)&&Au(e.pipe),SLe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Au(e.append)&&((t=uR(e))==="formdata"||t==="object"&&Au(e.toString)&&e.toString()==="[object FormData]"))},ELe=Dd("URLSearchParams"),[wLe,TLe,xLe,kLe]=["ReadableStream","Request","Response","Headers"].map(Dd),ALe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function kT(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),bO(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const $g=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ule=e=>!pw(e)&&e!==$g;function a8(){const{caseless:e}=ule(this)&&this||{},t={},n=(r,i)=>{const a=e&&lle(t,i)||i;G4(t[a])&&G4(r)?t[a]=a8(t[a],r):G4(r)?t[a]=a8({},r):bO(r)?t[a]=r.slice():t[a]=r};for(let r=0,i=arguments.length;r(kT(t,(i,a)=>{n&&Au(i)?e[a]=ale(i,n):e[a]=i},{allOwnKeys:r}),e),CLe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),RLe=(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)},ILe=(e,t,n,r)=>{let i,a,s;const o={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)s=i[a],(!r||r(s,e,t))&&!o[s]&&(t[s]=e[s],o[s]=!0);e=n!==!1&&nF(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},NLe=(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},DLe=e=>{if(!e)return null;if(bO(e))return e;let t=e.length;if(!ole(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},PLe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&nF(Uint8Array)),LLe=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},MLe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},$Le=Dd("HTMLFormElement"),FLe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),gZ=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),BLe=Dd("RegExp"),cle=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};kT(n,(i,a)=>{let s;(s=t(i,a,e))!==!1&&(r[a]=s||i)}),Object.defineProperties(e,r)},ULe=e=>{cle(e,(t,n)=>{if(Au(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Au(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+"'")})}})},zLe=(e,t)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return bO(e)?r(e):r(String(e).split(t)),n},jLe=()=>{},HLe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,GN="abcdefghijklmnopqrstuvwxyz",bZ="0123456789",dle={DIGIT:bZ,ALPHA:GN,ALPHA_DIGIT:GN+GN.toUpperCase()+bZ},QLe=(e=16,t=dle.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function WLe(e){return!!(e&&Au(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const VLe=e=>{const t=new Array(10),n=(r,i)=>{if(dR(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const a=bO(r)?[]:{};return kT(r,(s,o)=>{const l=n(s,i+1);!pw(l)&&(a[o]=l)}),t[i]=void 0,a}}return r};return n(e,0)},qLe=Dd("AsyncFunction"),GLe=e=>e&&(dR(e)||Au(e))&&Au(e.then)&&Au(e.catch),fle=((e,t)=>e?setImmediate:t?((n,r)=>($g.addEventListener("message",({source:i,data:a})=>{i===$g&&a===n&&r.length&&r.shift()()},!1),i=>{r.push(i),$g.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Au($g.postMessage)),YLe=typeof queueMicrotask<"u"?queueMicrotask.bind($g):typeof process<"u"&&process.nextTick||fle,at={isArray:bO,isArrayBuffer:sle,isBuffer:fLe,isFormData:SLe,isArrayBufferView:hLe,isString:pLe,isNumber:ole,isBoolean:mLe,isObject:dR,isPlainObject:G4,isReadableStream:wLe,isRequest:TLe,isResponse:xLe,isHeaders:kLe,isUndefined:pw,isDate:gLe,isFile:bLe,isBlob:yLe,isRegExp:BLe,isFunction:Au,isStream:OLe,isURLSearchParams:ELe,isTypedArray:PLe,isFileList:vLe,forEach:kT,merge:a8,extend:_Le,trim:ALe,stripBOM:CLe,inherits:RLe,toFlatObject:ILe,kindOf:uR,kindOfTest:Dd,endsWith:NLe,toArray:DLe,forEachEntry:LLe,matchAll:MLe,isHTMLForm:$Le,hasOwnProperty:gZ,hasOwnProp:gZ,reduceDescriptors:cle,freezeMethods:ULe,toObjectSet:zLe,toCamelCase:FLe,noop:jLe,toFiniteNumber:HLe,findKey:lle,global:$g,isContextDefined:ule,ALPHABET:dle,generateString:QLe,isSpecCompliantForm:WLe,toJSONObject:VLe,isAsyncFn:qLe,isThenable:GLe,setImmediate:fle,asap:YLe};function tr(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,this.status=i.status?i.status:null)}at.inherits(tr,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:at.toJSONObject(this.config),code:this.code,status:this.status}}});const hle=tr.prototype,ple={};["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=>{ple[e]={value:e}});Object.defineProperties(tr,ple);Object.defineProperty(hle,"isAxiosError",{value:!0});tr.from=(e,t,n,r,i,a)=>{const s=Object.create(hle);return at.toFlatObject(e,s,function(l){return l!==Error.prototype},o=>o!=="isAxiosError"),tr.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,a&&Object.assign(s,a),s};const ZLe=null;function s8(e){return at.isPlainObject(e)||at.isArray(e)}function mle(e){return at.endsWith(e,"[]")?e.slice(0,-2):e}function yZ(e,t,n){return e?e.concat(t).map(function(i,a){return i=mle(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function XLe(e){return at.isArray(e)&&!e.some(s8)}const KLe=at.toFlatObject(at,{},null,function(t){return/^is[A-Z]/.test(t)});function fR(e,t,n){if(!at.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=at.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,T){return!at.isUndefined(T[S])});const r=n.metaTokens,i=n.visitor||d,a=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&at.isSpecCompliantForm(t);if(!at.isFunction(i))throw new TypeError("visitor must be a function");function u(O){if(O===null)return"";if(at.isDate(O))return O.toISOString();if(!l&&at.isBlob(O))throw new tr("Blob is not supported. Use a Buffer instead.");return at.isArrayBuffer(O)||at.isTypedArray(O)?l&&typeof Blob=="function"?new Blob([O]):Buffer.from(O):O}function d(O,S,T){let w=O;if(O&&!T&&typeof O=="object"){if(at.endsWith(S,"{}"))S=r?S:S.slice(0,-2),O=JSON.stringify(O);else if(at.isArray(O)&&XLe(O)||(at.isFileList(O)||at.endsWith(S,"[]"))&&(w=at.toArray(O)))return S=mle(S),w.forEach(function(k,_){!(at.isUndefined(k)||k===null)&&t.append(s===!0?yZ([S],_,a):s===null?S:S+"[]",u(k))}),!1}return s8(O)?!0:(t.append(yZ(T,S,a),u(O)),!1)}const f=[],p=Object.assign(KLe,{defaultVisitor:d,convertValue:u,isVisitable:s8});function g(O,S){if(!at.isUndefined(O)){if(f.indexOf(O)!==-1)throw Error("Circular reference detected in "+S.join("."));f.push(O),at.forEach(O,function(w,x){(!(at.isUndefined(w)||w===null)&&i.call(t,w,at.isString(x)?x.trim():x,S,p))===!0&&g(w,S?S.concat(x):[x])}),f.pop()}}if(!at.isObject(e))throw new TypeError("data must be an object");return g(e),t}function vZ(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function rF(e,t){this._pairs=[],e&&fR(e,this,t)}const gle=rF.prototype;gle.append=function(t,n){this._pairs.push([t,n])};gle.toString=function(t){const n=t?function(r){return t.call(this,r,vZ)}:vZ;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function JLe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ble(e,t,n){if(!t)return e;const r=n&&n.encode||JLe,i=n&&n.serialize;let a;if(i?a=i(t,n):a=at.isURLSearchParams(t)?t.toString():new rF(t,n).toString(r),a){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class OZ{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){at.forEach(this.handlers,function(r){r!==null&&t(r)})}}const yle={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},eMe=typeof URLSearchParams<"u"?URLSearchParams:rF,tMe=typeof FormData<"u"?FormData:null,nMe=typeof Blob<"u"?Blob:null,rMe={isBrowser:!0,classes:{URLSearchParams:eMe,FormData:tMe,Blob:nMe},protocols:["http","https","file","blob","url","data"]},iF=typeof window<"u"&&typeof document<"u",o8=typeof navigator=="object"&&navigator||void 0,iMe=iF&&(!o8||["ReactNative","NativeScript","NS"].indexOf(o8.product)<0),aMe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",sMe=iF&&window.location.href||"http://localhost",oMe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:iF,hasStandardBrowserEnv:iMe,hasStandardBrowserWebWorkerEnv:aMe,navigator:o8,origin:sMe},Symbol.toStringTag,{value:"Module"})),Nl={...oMe,...rMe};function lMe(e,t){return fR(e,new Nl.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,a){return Nl.isNode&&at.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function uMe(e){return at.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function cMe(e){const t={},n=Object.keys(e);let r;const i=n.length;let a;for(r=0;r=n.length;return s=!s&&at.isArray(i)?i.length:s,l?(at.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!o):((!i[s]||!at.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],a)&&at.isArray(i[s])&&(i[s]=cMe(i[s])),!o)}if(at.isFormData(e)&&at.isFunction(e.entries)){const n={};return at.forEachEntry(e,(r,i)=>{t(uMe(r),i,n,0)}),n}return null}function dMe(e,t,n){if(at.isString(e))try{return(t||JSON.parse)(e),at.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const AT={transitional:yle,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,a=at.isObject(t);if(a&&at.isHTMLForm(t)&&(t=new FormData(t)),at.isFormData(t))return i?JSON.stringify(vle(t)):t;if(at.isArrayBuffer(t)||at.isBuffer(t)||at.isStream(t)||at.isFile(t)||at.isBlob(t)||at.isReadableStream(t))return t;if(at.isArrayBufferView(t))return t.buffer;if(at.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return lMe(t,this.formSerializer).toString();if((o=at.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return fR(o?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),dMe(t)):t}],transformResponse:[function(t){const n=this.transitional||AT.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(at.isResponse(t)||at.isReadableStream(t))return t;if(t&&at.isString(t)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(o){if(s)throw o.name==="SyntaxError"?tr.from(o,tr.ERR_BAD_RESPONSE,this,null,this.response):o}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Nl.classes.FormData,Blob:Nl.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};at.forEach(["delete","get","head","post","put","patch"],e=>{AT.headers[e]={}});const fMe=at.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"]),hMe=e=>{const t={};let n,r,i;return e&&e.split(` -`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&fMe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},SZ=Symbol("internals");function rE(e){return e&&String(e).trim().toLowerCase()}function Y4(e){return e===!1||e==null?e:at.isArray(e)?e.map(Y4):String(e)}function pMe(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 mMe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function YN(e,t,n,r,i){if(at.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!at.isString(t)){if(at.isString(r))return t.indexOf(r)!==-1;if(at.isRegExp(r))return r.test(t)}}function gMe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function bMe(e,t){const n=at.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,a,s){return this[r].call(this,t,i,a,s)},configurable:!0})})}let Dl=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function a(o,l,u){const d=rE(l);if(!d)throw new Error("header name must be a non-empty string");const f=at.findKey(i,d);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=Y4(o))}const s=(o,l)=>at.forEach(o,(u,d)=>a(u,d,l));if(at.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(at.isString(t)&&(t=t.trim())&&!mMe(t))s(hMe(t),n);else if(at.isHeaders(t))for(const[o,l]of t.entries())a(l,o,r);else t!=null&&a(n,t,r);return this}get(t,n){if(t=rE(t),t){const r=at.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return pMe(i);if(at.isFunction(n))return n.call(this,i,r);if(at.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=rE(t),t){const r=at.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||YN(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function a(s){if(s=rE(s),s){const o=at.findKey(r,s);o&&(!n||YN(r,r[o],o,n))&&(delete r[o],i=!0)}}return at.isArray(t)?t.forEach(a):a(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const a=n[r];(!t||YN(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const n=this,r={};return at.forEach(this,(i,a)=>{const s=at.findKey(r,a);if(s){n[s]=Y4(i),delete n[a];return}const o=t?gMe(a):String(a).trim();o!==a&&delete n[a],n[o]=Y4(i),r[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return at.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&at.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[SZ]=this[SZ]={accessors:{}}).accessors,i=this.prototype;function a(s){const o=rE(s);r[o]||(bMe(i,s),r[o]=!0)}return at.isArray(t)?t.forEach(a):a(t),this}};Dl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);at.reduceDescriptors(Dl.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});at.freezeMethods(Dl);function ZN(e,t){const n=this||AT,r=t||n,i=Dl.from(r.headers);let a=r.data;return at.forEach(e,function(o){a=o.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function Ole(e){return!!(e&&e.__CANCEL__)}function yO(e,t,n){tr.call(this,e??"canceled",tr.ERR_CANCELED,t,n),this.name="CanceledError"}at.inherits(yO,tr,{__CANCEL__:!0});function Sle(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new tr("Request failed with status code "+n.status,[tr.ERR_BAD_REQUEST,tr.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function yMe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function vMe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,a=0,s;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),d=r[a];s||(s=u),n[i]=l,r[i]=u;let f=a,p=0;for(;f!==i;)p+=n[f++],f=f%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),u-s{n=d,i=null,a&&(clearTimeout(a),a=null),e.apply(null,u)};return[(...u)=>{const d=Date.now(),f=d-n;f>=r?s(u,d):(i=u,a||(a=setTimeout(()=>{a=null,s(i)},r-f)))},()=>i&&s(i)]}const TC=(e,t,n=3)=>{let r=0;const i=vMe(50,250);return OMe(a=>{const s=a.loaded,o=a.lengthComputable?a.total:void 0,l=s-r,u=i(l),d=s<=o;r=s;const f={loaded:s,total:o,progress:o?s/o:void 0,bytes:l,rate:u||void 0,estimated:u&&o&&d?(o-s)/u:void 0,event:a,lengthComputable:o!=null,[t?"download":"upload"]:!0};e(f)},n)},EZ=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},wZ=e=>(...t)=>at.asap(()=>e(...t)),SMe=Nl.hasStandardBrowserEnv?function(){const t=Nl.navigator&&/(msie|trident)/i.test(Nl.navigator.userAgent),n=document.createElement("a");let r;function i(a){let s=a;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(s){const o=at.isString(s)?i(s):s;return o.protocol===r.protocol&&o.host===r.host}}():function(){return function(){return!0}}(),EMe=Nl.hasStandardBrowserEnv?{write(e,t,n,r,i,a){const s=[e+"="+encodeURIComponent(t)];at.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),at.isString(r)&&s.push("path="+r),at.isString(i)&&s.push("domain="+i),a===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function wMe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function TMe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ele(e,t){return e&&!wMe(t)?TMe(e,t):t}const TZ=e=>e instanceof Dl?{...e}:e;function y1(e,t){t=t||{};const n={};function r(u,d,f){return at.isPlainObject(u)&&at.isPlainObject(d)?at.merge.call({caseless:f},u,d):at.isPlainObject(d)?at.merge({},d):at.isArray(d)?d.slice():d}function i(u,d,f){if(at.isUndefined(d)){if(!at.isUndefined(u))return r(void 0,u,f)}else return r(u,d,f)}function a(u,d){if(!at.isUndefined(d))return r(void 0,d)}function s(u,d){if(at.isUndefined(d)){if(!at.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function o(u,d,f){if(f in t)return r(u,d);if(f in e)return r(void 0,u)}const l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:o,headers:(u,d)=>i(TZ(u),TZ(d),!0)};return at.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=l[d]||i,p=f(e[d],t[d],d);at.isUndefined(p)&&f!==o||(n[d]=p)}),n}const wle=e=>{const t=y1({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:o}=t;t.headers=s=Dl.from(s),t.url=ble(Ele(t.baseURL,t.url),e.params,e.paramsSerializer),o&&s.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):"")));let l;if(at.isFormData(n)){if(Nl.hasStandardBrowserEnv||Nl.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((l=s.getContentType())!==!1){const[u,...d]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];s.setContentType([u||"multipart/form-data",...d].join("; "))}}if(Nl.hasStandardBrowserEnv&&(r&&at.isFunction(r)&&(r=r(t)),r||r!==!1&&SMe(t.url))){const u=i&&a&&EMe.read(a);u&&s.set(i,u)}return t},xMe=typeof XMLHttpRequest<"u",kMe=xMe&&function(e){return new Promise(function(n,r){const i=wle(e);let a=i.data;const s=Dl.from(i.headers).normalize();let{responseType:o,onUploadProgress:l,onDownloadProgress:u}=i,d,f,p,g,O;function S(){g&&g(),O&&O(),i.cancelToken&&i.cancelToken.unsubscribe(d),i.signal&&i.signal.removeEventListener("abort",d)}let T=new XMLHttpRequest;T.open(i.method.toUpperCase(),i.url,!0),T.timeout=i.timeout;function w(){if(!T)return;const k=Dl.from("getAllResponseHeaders"in T&&T.getAllResponseHeaders()),R={data:!o||o==="text"||o==="json"?T.responseText:T.response,status:T.status,statusText:T.statusText,headers:k,config:e,request:T};Sle(function(D){n(D),S()},function(D){r(D),S()},R),T=null}"onloadend"in T?T.onloadend=w:T.onreadystatechange=function(){!T||T.readyState!==4||T.status===0&&!(T.responseURL&&T.responseURL.indexOf("file:")===0)||setTimeout(w)},T.onabort=function(){T&&(r(new tr("Request aborted",tr.ECONNABORTED,e,T)),T=null)},T.onerror=function(){r(new tr("Network Error",tr.ERR_NETWORK,e,T)),T=null},T.ontimeout=function(){let _=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const R=i.transitional||yle;i.timeoutErrorMessage&&(_=i.timeoutErrorMessage),r(new tr(_,R.clarifyTimeoutError?tr.ETIMEDOUT:tr.ECONNABORTED,e,T)),T=null},a===void 0&&s.setContentType(null),"setRequestHeader"in T&&at.forEach(s.toJSON(),function(_,R){T.setRequestHeader(R,_)}),at.isUndefined(i.withCredentials)||(T.withCredentials=!!i.withCredentials),o&&o!=="json"&&(T.responseType=i.responseType),u&&([p,O]=TC(u,!0),T.addEventListener("progress",p)),l&&T.upload&&([f,g]=TC(l),T.upload.addEventListener("progress",f),T.upload.addEventListener("loadend",g)),(i.cancelToken||i.signal)&&(d=k=>{T&&(r(!k||k.type?new yO(null,e,T):k),T.abort(),T=null)},i.cancelToken&&i.cancelToken.subscribe(d),i.signal&&(i.signal.aborted?d():i.signal.addEventListener("abort",d)));const x=yMe(i.url);if(x&&Nl.protocols.indexOf(x)===-1){r(new tr("Unsupported protocol "+x+":",tr.ERR_BAD_REQUEST,e));return}T.send(a||null)})},AMe=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const a=function(u){if(!i){i=!0,o();const d=u instanceof Error?u:this.reason;r.abort(d instanceof tr?d:new yO(d instanceof Error?d.message:d))}};let s=t&&setTimeout(()=>{s=null,a(new tr(`timeout ${t} of ms exceeded`,tr.ETIMEDOUT))},t);const o=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(a):u.removeEventListener("abort",a)}),e=null)};e.forEach(u=>u.addEventListener("abort",a));const{signal:l}=r;return l.unsubscribe=()=>at.asap(o),l}},_Me=function*(e,t){let n=e.byteLength;if(!t||n{const i=CMe(e,t);let a=0,s,o=l=>{s||(s=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:d}=await i.next();if(u){o(),l.close();return}let f=d.byteLength;if(n){let p=a+=f;n(p)}l.enqueue(new Uint8Array(d))}catch(u){throw o(u),u}},cancel(l){return o(l),i.return()}},{highWaterMark:2})},hR=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Tle=hR&&typeof ReadableStream=="function",IMe=hR&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),xle=(e,...t)=>{try{return!!e(...t)}catch{return!1}},NMe=Tle&&xle(()=>{let e=!1;const t=new Request(Nl.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),kZ=64*1024,l8=Tle&&xle(()=>at.isReadableStream(new Response("").body)),xC={stream:l8&&(e=>e.body)};hR&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!xC[t]&&(xC[t]=at.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new tr(`Response type '${t}' is not supported`,tr.ERR_NOT_SUPPORT,r)})})})(new Response);const DMe=async e=>{if(e==null)return 0;if(at.isBlob(e))return e.size;if(at.isSpecCompliantForm(e))return(await new Request(Nl.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(at.isArrayBufferView(e)||at.isArrayBuffer(e))return e.byteLength;if(at.isURLSearchParams(e)&&(e=e+""),at.isString(e))return(await IMe(e)).byteLength},PMe=async(e,t)=>{const n=at.toFiniteNumber(e.getContentLength());return n??DMe(t)},LMe=hR&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:a,timeout:s,onDownloadProgress:o,onUploadProgress:l,responseType:u,headers:d,withCredentials:f="same-origin",fetchOptions:p}=wle(e);u=u?(u+"").toLowerCase():"text";let g=AMe([i,a&&a.toAbortSignal()],s),O;const S=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let T;try{if(l&&NMe&&n!=="get"&&n!=="head"&&(T=await PMe(d,r))!==0){let R=new Request(t,{method:"POST",body:r,duplex:"half"}),N;if(at.isFormData(r)&&(N=R.headers.get("content-type"))&&d.setContentType(N),R.body){const[D,L]=EZ(T,TC(wZ(l)));r=xZ(R.body,kZ,D,L)}}at.isString(f)||(f=f?"include":"omit");const w="credentials"in Request.prototype;O=new Request(t,{...p,signal:g,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:w?f:void 0});let x=await fetch(O);const k=l8&&(u==="stream"||u==="response");if(l8&&(o||k&&S)){const R={};["status","statusText","headers"].forEach(j=>{R[j]=x[j]});const N=at.toFiniteNumber(x.headers.get("content-length")),[D,L]=o&&EZ(N,TC(wZ(o),!0))||[];x=new Response(xZ(x.body,kZ,D,()=>{L&&L(),S&&S()}),R)}u=u||"text";let _=await xC[at.findKey(xC,u)||"text"](x,e);return!k&&S&&S(),await new Promise((R,N)=>{Sle(R,N,{data:_,headers:Dl.from(x.headers),status:x.status,statusText:x.statusText,config:e,request:O})})}catch(w){throw S&&S(),w&&w.name==="TypeError"&&/fetch/i.test(w.message)?Object.assign(new tr("Network Error",tr.ERR_NETWORK,e,O),{cause:w.cause||w}):tr.from(w,w&&w.code,e,O)}}),u8={http:ZLe,xhr:kMe,fetch:LMe};at.forEach(u8,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const AZ=e=>`- ${e}`,MMe=e=>at.isFunction(e)||e===null||e===!1,kle={getAdapter:e=>{e=at.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let a=0;a`adapter ${o} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?a.length>1?`since : -`+a.map(AZ).join(` -`):" "+AZ(a[0]):"as no adapter specified";throw new tr("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:u8};function XN(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new yO(null,e)}function _Z(e){return XN(e),e.headers=Dl.from(e.headers),e.data=ZN.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),kle.getAdapter(e.adapter||AT.adapter)(e).then(function(r){return XN(e),r.data=ZN.call(e,e.transformResponse,r),r.headers=Dl.from(r.headers),r},function(r){return Ole(r)||(XN(e),r&&r.response&&(r.response.data=ZN.call(e,e.transformResponse,r.response),r.response.headers=Dl.from(r.response.headers))),Promise.reject(r)})}const Ale="1.7.7",aF={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{aF[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const CZ={};aF.transitional=function(t,n,r){function i(a,s){return"[Axios v"+Ale+"] Transitional option '"+a+"'"+s+(r?". "+r:"")}return(a,s,o)=>{if(t===!1)throw new tr(i(s," has been removed"+(n?" in "+n:"")),tr.ERR_DEPRECATED);return n&&!CZ[s]&&(CZ[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,s,o):!0}};function $Me(e,t,n){if(typeof e!="object")throw new tr("options must be an object",tr.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],s=t[a];if(s){const o=e[a],l=o===void 0||s(o,a,e);if(l!==!0)throw new tr("option "+a+" must be "+l,tr.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new tr("Unknown option "+a,tr.ERR_BAD_OPTION)}}const c8={assertOptions:$Me,validators:aF},a0=c8.validators;let i1=class{constructor(t){this.defaults=t,this.interceptors={request:new OZ,response:new OZ}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=y1(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&c8.assertOptions(r,{silentJSONParsing:a0.transitional(a0.boolean),forcedJSONParsing:a0.transitional(a0.boolean),clarifyTimeoutError:a0.transitional(a0.boolean)},!1),i!=null&&(at.isFunction(i)?n.paramsSerializer={serialize:i}:c8.assertOptions(i,{encode:a0.function,serialize:a0.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=a&&at.merge(a.common,a[n.method]);a&&at.forEach(["delete","get","head","post","put","patch","common"],O=>{delete a[O]}),n.headers=Dl.concat(s,a);const o=[];let l=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(l=l&&S.synchronous,o.unshift(S.fulfilled,S.rejected))});const u=[];this.interceptors.response.forEach(function(S){u.push(S.fulfilled,S.rejected)});let d,f=0,p;if(!l){const O=[_Z.bind(this),void 0];for(O.unshift.apply(O,o),O.push.apply(O,u),p=O.length,d=Promise.resolve(n);f{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const s=new Promise(o=>{r.subscribe(o),a=o}).then(i);return s.cancel=function(){r.unsubscribe(a)},s},t(function(a,s,o){r.reason||(r.reason=new yO(a,s,o),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new _le(function(i){t=i}),cancel:t}}};function BMe(e){return function(n){return e.apply(null,n)}}function UMe(e){return at.isObject(e)&&e.isAxiosError===!0}const d8={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(d8).forEach(([e,t])=>{d8[t]=e});function Cle(e){const t=new i1(e),n=ale(i1.prototype.request,t);return at.extend(n,i1.prototype,t,{allOwnKeys:!0}),at.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Cle(y1(e,i))},n}const rr=Cle(AT);rr.Axios=i1;rr.CanceledError=yO;rr.CancelToken=FMe;rr.isCancel=Ole;rr.VERSION=Ale;rr.toFormData=fR;rr.AxiosError=tr;rr.Cancel=rr.CanceledError;rr.all=function(t){return Promise.all(t)};rr.spread=BMe;rr.isAxiosError=UMe;rr.mergeConfig=y1;rr.AxiosHeaders=Dl;rr.formToJSON=e=>vle(at.isHTMLForm(e)?new FormData(e):e);rr.getAdapter=kle.getAdapter;rr.HttpStatusCode=d8;rr.default=rr;const{Axios:XOt,AxiosError:Rle,CanceledError:KOt,isCancel:JOt,CancelToken:eSt,VERSION:tSt,all:nSt,Cancel:rSt,isAxiosError:iSt,spread:aSt,toFormData:sSt,AxiosHeaders:oSt,HttpStatusCode:lSt,formToJSON:uSt,getAdapter:cSt,mergeConfig:dSt}=rr;function zMe(){const e=Qoe();return I.jsx(zn,{width:1,height:"100vh",alignItems:"center",justifyContent:"center",children:I.jsxs(zn,{alignItems:"center",children:[I.jsx(Tr,{variant:"h5",children:"Something went wrong"}),wT(e)&&I.jsxs(Tr,{variant:"subtitle1",children:["Status Code: ",e.status]})]})})}const sF=sn.createContext({isLoading:!0,isLoggedIn:!1}),jMe={data:null},Ile=P1({name:"user",initialState:jMe,reducers:{setUserData:(e,t)=>{e.data=t.payload}}}),{setUserData:f8}=Ile.actions,_T=e=>e.user,HMe=Ile.reducer,QMe=e=>{var a;const{children:t}=e,{isLoggedIn:n}=M.useContext(sF),r=_m(),i=Pr(_T);return n?I.jsx(Y$,{to:`/${(a=i.data)==null?void 0:a.lastWorkspaceSlug}`,state:{from:r},replace:!0}):t},WMe=e=>{const{children:t}=e,{isLoggedIn:n,isLoading:r}=M.useContext(sF),i=_m();return r?I.jsx(hO,{open:!0,children:I.jsx(kd,{color:"inherit"})}):n?t:I.jsx(Y$,{to:"/",state:{from:i},replace:!0})};var oF={},KN={};const VMe=Ep(Y4e);var RZ;function na(){return RZ||(RZ=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=VMe}(KN)),KN}var qMe=Pi;Object.defineProperty(oF,"__esModule",{value:!0});var Nle=oF.default=void 0,GMe=qMe(na()),YMe=I;Nle=oF.default=(0,GMe.default)((0,YMe.jsx)("path",{d:"M17.77 3.77 16 2 6 12l10 10 1.77-1.77L9.54 12z"}),"ArrowBackIosNew");var lF={},ZMe=Pi;Object.defineProperty(lF,"__esModule",{value:!0});var Dle=lF.default=void 0,XMe=ZMe(na()),KMe=I;Dle=lF.default=(0,XMe.default)((0,KMe.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 uF={},JMe=Pi;Object.defineProperty(uF,"__esModule",{value:!0});var Ple=uF.default=void 0,e9e=JMe(na()),t9e=I;Ple=uF.default=(0,e9e.default)((0,t9e.jsx)("path",{d:"M3 15h8v-2H3zm0 4h8v-2H3zm0-8h8V9H3zm0-6v2h8V5zm10 0h8v14h-8z"}),"VerticalSplit");var cF={},n9e=Pi;Object.defineProperty(cF,"__esModule",{value:!0});var dF=cF.default=void 0,r9e=n9e(na()),i9e=I;dF=cF.default=(0,r9e.default)((0,i9e.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");const a9e=e=>{const[t,n]=M.useState([]);return M.useEffect(()=>{if(!e)return;const r=()=>n(e.getPresences()??[]);r();const i=e.subscribe("others",a=>{(a.type==="presence-changed"||a.type==="watched")&&r(),a.type==="unwatched"&&n(s=>s.filter(o=>o.clientID!==a.value.clientID))});return()=>{i(),n([])}},[e]),{presenceList:t}},s9e={mode:"both",shareRole:null,doc:null,client:null,cmView:null},Lle=P1({name:"editor",initialState:s9e,reducers:{setMode:(e,t)=>{e.mode=t.payload},setShareRole:(e,t)=>{e.shareRole=t.payload},setDoc:(e,t)=>{e.doc=t.payload},setClient:(e,t)=>{e.client=t.payload},setCmView:(e,t)=>{Object.assign(e,{cmView:t.payload})}}}),{setMode:h8,setDoc:kC,setClient:AC,setShareRole:o9e,setCmView:l9e}=Lle.actions,xp=e=>e.editor,u9e=Lle.reducer,c9e={data:null},Mle=P1({name:"workspace",initialState:c9e,reducers:{setWorkspaceData:(e,t)=>{e.data=t.payload}}}),{setWorkspaceData:IZ}=Mle.actions,pR=e=>e.workspace,d9e=Mle.reducer,f9e=Nd(I.jsx("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7zm-6 .67 2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt");function $le(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 NZ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Fle=sn.createContext(),g9e={mui:{root:{},anchorOriginTopCenter:{},anchorOriginBottomCenter:{},anchorOriginTopRight:{},anchorOriginBottomRight:{},anchorOriginTopLeft:{},anchorOriginBottomLeft:{}},container:{containerRoot:{},containerAnchorOriginTopCenter:{},containerAnchorOriginBottomCenter:{},containerAnchorOriginTopRight:{},containerAnchorOriginBottomRight:{},containerAnchorOriginTopLeft:{},containerAnchorOriginBottomLeft:{}}},Ah={view:{default:20,dense:4},snackbar:{default:6,dense:2}},Fg={maxSnack:3,dense:!1,hideIconVariant:!1,variant:"default",autoHideDuration:5e3,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:nIe,transitionDuration:{enter:225,exit:195}},l2=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},b9e=function(t){return""+l2(t.vertical)+l2(t.horizontal)},y9e=function(t){return Object.keys(t).filter(function(n){return!g9e.container[n]}).reduce(function(n,r){var i;return Fi({},n,(i={},i[r]=t[r],i))},{})},w0={TIMEOUT:"timeout",CLICKAWAY:"clickaway",MAXSNACK:"maxsnack",INSTRUCTED:"instructed"},Z4={toContainerAnchorOrigin:function(t){return"containerAnchorOrigin"+t},toAnchorOrigin:function(t){var n=t.vertical,r=t.horizontal;return"anchorOrigin"+l2(n)+l2(r)},toVariant:function(t){return"variant"+l2(t)}},SA=function(t){return!!t||t===0},DZ=function(t){return typeof t=="number"||t===null},v9e=function(t,n,r){return function(i){return i==="autoHideDuration"?DZ(t.autoHideDuration)?t.autoHideDuration:DZ(n.autoHideDuration)?n.autoHideDuration:Fg.autoHideDuration:t[i]||n[i]||r[i]}};function JN(e,t,n){return e===void 0&&(e={}),t===void 0&&(t={}),n===void 0&&(n={}),Fi({},n,{},t,{},e)}var O9e="SnackbarContent",Ble={root:O9e+"-root"},S9e=ct("div")(function(e){var t,n,r=e.theme;return n={},n["&."+Ble.root]=(t={display:"flex",flexWrap:"wrap",flexGrow:1},t[r.breakpoints.up("sm")]={flexGrow:"initial",minWidth:288},t),n}),E9e=M.forwardRef(function(e,t){var n=e.className,r=tm(e,["className"]);return sn.createElement(S9e,Object.assign({ref:t,className:mw(Ble.root,n)},r))}),PZ={right:"left",left:"right",bottom:"up",top:"down"},w9e=function(t){return t.horizontal!=="center"?PZ[t.horizontal]:PZ[t.vertical]},T9e=function(t){return sn.createElement(cm,Object.assign({},t),sn.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`}))},x9e=function(t){return sn.createElement(cm,Object.assign({},t),sn.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},k9e=function(t){return sn.createElement(cm,Object.assign({},t),sn.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, + */function y3(){return y3=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 t8e(e,t){let n=WP(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(a=>{n.append(i,a)})}),n}const n8e="6";try{window.__reactRouterVersion=n8e}catch{}function r8e(e,t){return OPe({basename:void 0,future:y3({},void 0,{v7_prependBasename:!0}),history:Q7e({window:void 0}),hydrationData:i8e(),routes:e,mapRouteProperties:e8e,unstable_dataStrategy:void 0,unstable_patchRoutesOnNavigation:void 0,window:void 0}).initialize()}function i8e(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=y3({},t,{errors:a8e(t.errors)})),t}function a8e(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 m3(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let a=window[i.__subType];if(typeof a=="function")try{let s=new a(i.message);s.stack="",n[r]=s}catch{}}if(n[r]==null){let a=new Error(i.message);a.stack="",n[r]=a}}else n[r]=i;return n}const s8e=M.createContext({isTransitioning:!1}),o8e=M.createContext(new Map),l8e="startTransition",qY=lv[l8e],u8e="flushSync",GY=eTe[u8e];function c8e(e){qY?qY(e):e()}function iE(e){GY?GY(e):e()}class d8e{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 f8e(e){let{fallbackElement:t,router:n,future:r}=e,[i,a]=M.useState(n.state),[s,o]=M.useState(),[l,u]=M.useState({isTransitioning:!1}),[d,f]=M.useState(),[p,g]=M.useState(),[O,S]=M.useState(),T=M.useRef(new Map),{v7_startTransition:w}=r||{},x=M.useCallback(L=>{w?c8e(L):L()},[w]),k=M.useCallback((L,j)=>{let{deletedFetchers:B,unstable_flushSync:V,unstable_viewTransitionOpts:W}=j;B.forEach(ee=>T.current.delete(ee)),L.fetchers.forEach((ee,q)=>{ee.data!==void 0&&T.current.set(q,ee.data)});let re=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!W||re){V?iE(()=>a(L)):x(()=>a(L));return}if(V){iE(()=>{p&&(d&&d.resolve(),p.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:W.currentLocation,nextLocation:W.nextLocation})});let ee=n.window.document.startViewTransition(()=>{iE(()=>a(L))});ee.finished.finally(()=>{iE(()=>{f(void 0),g(void 0),o(void 0),u({isTransitioning:!1})})}),iE(()=>g(ee));return}p?(d&&d.resolve(),p.skipTransition(),S({state:L,currentLocation:W.currentLocation,nextLocation:W.nextLocation})):(o(L),u({isTransitioning:!0,flushSync:!1,currentLocation:W.currentLocation,nextLocation:W.nextLocation}))},[n.window,p,d,T,x]);M.useLayoutEffect(()=>n.subscribe(k),[n,k]),M.useEffect(()=>{l.isTransitioning&&!l.flushSync&&f(new d8e)},[l]),M.useEffect(()=>{if(d&&s&&n.window){let L=s,j=d.promise,B=n.window.document.startViewTransition(async()=>{x(()=>a(L)),await j});B.finished.finally(()=>{f(void 0),g(void 0),o(void 0),u({isTransitioning:!1})}),g(B)}},[x,s,d,n.window]),M.useEffect(()=>{d&&s&&i.location.key===s.location.key&&d.resolve()},[d,p,i.location,s]),M.useEffect(()=>{!l.isTransitioning&&O&&(o(O.state),u({isTransitioning:!0,flushSync:!1,currentLocation:O.currentLocation,nextLocation:O.nextLocation}),S(void 0))},[l.isTransitioning,O]),M.useEffect(()=>{},[]);let _=M.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:L=>n.navigate(L),push:(L,j,B)=>n.navigate(L,{state:j,preventScrollReset:B==null?void 0:B.preventScrollReset}),replace:(L,j,B)=>n.navigate(L,{replace:!0,state:j,preventScrollReset:B==null?void 0:B.preventScrollReset})}),[n]),R=n.basename||"/",N=M.useMemo(()=>({router:n,navigator:_,static:!1,basename:R}),[n,_,R]),P=M.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return M.createElement(M.Fragment,null,M.createElement(tR.Provider,{value:N},M.createElement(Roe.Provider,{value:i},M.createElement(o8e.Provider,{value:T.current},M.createElement(s8e.Provider,{value:l},M.createElement(JPe,{basename:R,location:i.location,navigationType:i.historyAction,navigator:_,future:P},i.initialized||n.future.v7_partialHydration?M.createElement(h8e,{routes:n.routes,future:n.future,state:i}):t))))),null)}const h8e=M.memo(p8e);function p8e(e){let{routes:t,future:n,state:r}=e;return HPe(t,void 0,r,n)}var YY;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(YY||(YY={}));var ZY;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(ZY||(ZY={}));function z$(e){let t=M.useRef(WP(e)),n=M.useRef(!1),r=Sm(),i=M.useMemo(()=>t8e(r.search,n.current?null:t.current),[r.search]),a=Mc(),s=M.useCallback((o,l)=>{const u=WP(typeof o=="function"?o(i):o);n.current=!0,a("?"+u,l)},[a,i]);return[i,s]}function Ms(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 m8e=typeof Symbol=="function"&&Symbol.observable||"@@observable",XY=m8e,FN=()=>Math.random().toString(36).substring(7).split("").join("."),g8e={INIT:`@@redux/INIT${FN()}`,REPLACE:`@@redux/REPLACE${FN()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${FN()}`},v3=g8e;function j$(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 H$(e,t,n){if(typeof e!="function")throw new Error(Ms(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Ms(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Ms(1));return n(H$)(e,t)}let r=e,i=t,a=new Map,s=a,o=0,l=!1;function u(){s===a&&(s=new Map,a.forEach((T,w)=>{s.set(w,T)}))}function d(){if(l)throw new Error(Ms(3));return i}function f(T){if(typeof T!="function")throw new Error(Ms(4));if(l)throw new Error(Ms(5));let w=!0;u();const x=o++;return s.set(x,T),function(){if(w){if(l)throw new Error(Ms(6));w=!1,u(),s.delete(x),a=null}}}function p(T){if(!j$(T))throw new Error(Ms(7));if(typeof T.type>"u")throw new Error(Ms(8));if(typeof T.type!="string")throw new Error(Ms(17));if(l)throw new Error(Ms(9));try{l=!0,i=r(i,T)}finally{l=!1}return(a=s).forEach(x=>{x()}),T}function g(T){if(typeof T!="function")throw new Error(Ms(10));r=T,p({type:v3.REPLACE})}function O(){const T=f;return{subscribe(w){if(typeof w!="object"||w===null)throw new Error(Ms(11));function x(){const _=w;_.next&&_.next(d())}return x(),{unsubscribe:T(x)}},[XY](){return this}}}return p({type:v3.INIT}),{dispatch:p,subscribe:f,getState:d,replaceReducer:g,[XY]:O}}function b8e(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:v3.INIT})>"u")throw new Error(Ms(12));if(typeof n(void 0,{type:v3.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ms(13))})}function Moe(e){const t=Object.keys(e),n={};for(let a=0;a"u")throw o&&o.type,new Error(Ms(14));u[f]=O,l=l||O!==g}return l=l||r.length!==Object.keys(s).length,l?u:s}}function O3(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function y8e(...e){return t=>(n,r)=>{const i=t(n,r);let a=()=>{throw new Error(Ms(15))};const s={getState:i.getState,dispatch:(l,...u)=>a(l,...u)},o=e.map(l=>l(s));return a=O3(...o)(i.dispatch),{...i,dispatch:a}}}function v8e(e){return j$(e)&&"type"in e&&typeof e.type=="string"}var $oe=Symbol.for("immer-nothing"),KY=Symbol.for("immer-draftable"),Au=Symbol.for("immer-state");function md(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var xv=Object.getPrototypeOf;function v1(e){return!!e&&!!e[Au]}function ap(e){var t;return e?Foe(e)||Array.isArray(e)||!!e[KY]||!!((t=e.constructor)!=null&&t[KY])||iR(e)||aR(e):!1}var O8e=Object.prototype.constructor.toString();function Foe(e){if(!e||typeof e!="object")return!1;const t=xv(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)===O8e}function S3(e,t){rR(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function rR(e){const t=e[Au];return t?t.type_:Array.isArray(e)?1:iR(e)?2:aR(e)?3:0}function VP(e,t){return rR(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Boe(e,t,n){const r=rR(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function S8e(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function iR(e){return e instanceof Map}function aR(e){return e instanceof Set}function kg(e){return e.copy_||e.base_}function qP(e,t){if(iR(e))return new Map(e);if(aR(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Foe(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Au];let i=Reflect.ownKeys(r);for(let a=0;a1&&(e.set=e.add=e.clear=e.delete=E8e),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>Q$(r,!0))),e}function E8e(){md(2)}function sR(e){return Object.isFrozen(e)}var w8e={};function O1(e){const t=w8e[e];return t||md(0,e),t}var pw;function Uoe(){return pw}function T8e(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function JY(e,t){t&&(O1("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function GP(e){YP(e),e.drafts_.forEach(x8e),e.drafts_=null}function YP(e){e===pw&&(pw=e.parent_)}function eZ(e){return pw=T8e(pw,e)}function x8e(e){const t=e[Au];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function tZ(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Au].modified_&&(GP(t),md(4)),ap(e)&&(e=E3(t,e),t.parent_||w3(t,e)),t.patches_&&O1("Patches").generateReplacementPatches_(n[Au].base_,e,t.patches_,t.inversePatches_)):e=E3(t,n,[]),GP(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==$oe?e:void 0}function E3(e,t,n){if(sR(t))return t;const r=t[Au];if(!r)return S3(t,(i,a)=>nZ(e,r,t,i,a,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return w3(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let a=i,s=!1;r.type_===3&&(a=new Set(i),i.clear(),s=!0),S3(a,(o,l)=>nZ(e,r,i,o,l,n,s)),w3(e,i,!1),n&&e.patches_&&O1("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function nZ(e,t,n,r,i,a,s){if(v1(i)){const o=a&&t&&t.type_!==3&&!VP(t.assigned_,r)?a.concat(r):void 0,l=E3(e,i,o);if(Boe(n,r,l),v1(l))e.canAutoFreeze_=!1;else return}else s&&n.add(i);if(ap(i)&&!sR(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;E3(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&w3(e,i)}}function w3(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Q$(t,n)}function k8e(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:Uoe(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,a=W$;n&&(i=[r],a=mw);const{revoke:s,proxy:o}=Proxy.revocable(i,a);return r.draft_=o,r.revoke_=s,o}var W$={get(e,t){if(t===Au)return e;const n=kg(e);if(!VP(n,t))return A8e(e,n,t);const r=n[t];return e.finalized_||!ap(r)?r:r===BN(e.base_,t)?(UN(e),e.copy_[t]=XP(r,e)):r},has(e,t){return t in kg(e)},ownKeys(e){return Reflect.ownKeys(kg(e))},set(e,t,n){const r=zoe(kg(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=BN(kg(e),t),a=i==null?void 0:i[Au];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(S8e(n,i)&&(n!==void 0||VP(e.base_,t)))return!0;UN(e),ZP(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 BN(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,UN(e),ZP(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=kg(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){md(11)},getPrototypeOf(e){return xv(e.base_)},setPrototypeOf(){md(12)}},mw={};S3(W$,(e,t)=>{mw[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});mw.deleteProperty=function(e,t){return mw.set.call(this,e,t,void 0)};mw.set=function(e,t,n){return W$.set.call(this,e[0],t,n,e[0])};function BN(e,t){const n=e[Au];return(n?kg(n):e)[t]}function A8e(e,t,n){var i;const r=zoe(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function zoe(e,t){if(!(t in e))return;let n=xv(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=xv(n)}}function ZP(e){e.modified_||(e.modified_=!0,e.parent_&&ZP(e.parent_))}function UN(e){e.copy_||(e.copy_=qP(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var _8e=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const a=n;n=t;const s=this;return function(l=a,...u){return s.produce(l,d=>n.call(this,d,...u))}}typeof n!="function"&&md(6),r!==void 0&&typeof r!="function"&&md(7);let i;if(ap(t)){const a=eZ(this),s=XP(t,void 0);let o=!0;try{i=n(s),o=!1}finally{o?GP(a):YP(a)}return JY(a,r),tZ(i,a)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===$oe&&(i=void 0),this.autoFreeze_&&Q$(i,!0),r){const a=[],s=[];O1("Patches").generateReplacementPatches_(t,i,a,s),r(a,s)}return i}else md(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...o)=>this.produceWithPatches(s,l=>t(l,...o));let r,i;return[this.produce(t,n,(s,o)=>{r=s,i=o}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){ap(e)||md(8),v1(e)&&(e=C8e(e));const t=eZ(this),n=XP(e,void 0);return n[Au].isManual_=!0,YP(t),n}finishDraft(e,t){const n=e&&e[Au];(!n||!n.isManual_)&&md(9);const{scope_:r}=n;return JY(r,t),tZ(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=O1("Patches").applyPatches_;return v1(e)?r(e,t):this.produce(e,i=>r(i,t))}};function XP(e,t){const n=iR(e)?O1("MapSet").proxyMap_(e,t):aR(e)?O1("MapSet").proxySet_(e,t):k8e(e,t);return(t?t.scope_:Uoe()).drafts_.push(n),n}function C8e(e){return v1(e)||md(10,e),joe(e)}function joe(e){if(!ap(e)||sR(e))return e;const t=e[Au];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=qP(e,t.scope_.immer_.useStrictShallowCopy_)}else n=qP(e,!0);return S3(n,(r,i)=>{Boe(n,r,joe(i))}),t&&(t.finalized_=!1),n}var _u=new _8e,Hoe=_u.produce;_u.produceWithPatches.bind(_u);_u.setAutoFreeze.bind(_u);_u.setUseStrictShallowCopy.bind(_u);_u.applyPatches.bind(_u);_u.createDraft.bind(_u);_u.finishDraft.bind(_u);function Qoe(e){return({dispatch:n,getState:r})=>i=>a=>typeof a=="function"?a(n,r,e):i(a)}var R8e=Qoe(),I8e=Qoe,N8e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?O3:O3.apply(null,arguments)};function rZ(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(Sd(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=>v8e(r)&&r.type===e,n}var Woe=class LE extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,LE.prototype)}static get[Symbol.species](){return LE}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new LE(...t[0].concat(this)):new LE(...t.concat(this))}};function iZ(e){return ap(e)?Hoe(e,()=>{}):e}function aZ(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(Sd(10));const r=n.insert(t,e);return e.set(t,r),r}function D8e(e){return typeof e=="boolean"}var P8e=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let s=new Woe;return n&&(D8e(n)?s.push(R8e):s.push(I8e(n.extraArgument))),s},L8e="RTK_autoBatch",Voe=e=>t=>{setTimeout(t,e)},M8e=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Voe(10),$8e=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,a=!1,s=!1;const o=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?M8e:e.type==="callback"?e.queueNotification:Voe(e.timeout),u=()=>{s=!1,a&&(a=!1,o.forEach(d=>d()))};return Object.assign({},r,{subscribe(d){const f=()=>i&&d(),p=r.subscribe(f);return o.add(d),()=>{p(),o.delete(d)}},dispatch(d){var f;try{return i=!((f=d==null?void 0:d.meta)!=null&&f[L8e]),a=!i,a&&(s||(s=!0,l(u))),r.dispatch(d)}finally{i=!0}}})},F8e=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new Woe(e);return r&&i.push($8e(typeof r=="object"?r:void 0)),i};function B8e(e){const t=P8e(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:a=void 0,enhancers:s=void 0}=e||{};let o;if(typeof n=="function")o=n;else if(j$(n))o=Moe(n);else throw new Error(Sd(1));let l;typeof r=="function"?l=r(t):l=t();let u=O3;i&&(u=N8e({trace:!1,...typeof i=="object"&&i}));const d=y8e(...l),f=F8e(d);let p=typeof s=="function"?s(f):f();const g=u(...p);return H$(o,a,g)}function qoe(e){const t={},n=[];let r;const i={addCase(a,s){const o=typeof a=="string"?a:a.type;if(!o)throw new Error(Sd(28));if(o in t)throw new Error(Sd(29));return t[o]=s,i},addMatcher(a,s){return n.push({matcher:a,reducer:s}),i},addDefaultCase(a){return r=a,i}};return e(i),[t,n,r]}function U8e(e){return typeof e=="function"}function z8e(e,t){let[n,r,i]=qoe(t),a;if(U8e(e))a=()=>iZ(e());else{const o=iZ(e);a=()=>o}function s(o=a(),l){let u=[n[l.type],...r.filter(({matcher:d})=>d(l)).map(({reducer:d})=>d)];return u.filter(d=>!!d).length===0&&(u=[i]),u.reduce((d,f)=>{if(f)if(v1(d)){const g=f(d,l);return g===void 0?d:g}else{if(ap(d))return Hoe(d,p=>f(p,l));{const p=f(d,l);if(p===void 0){if(d===null)return d;throw new Error(Sd(9))}return p}}return d},o)}return s.getInitialState=a,s}var j8e=Symbol.for("rtk-slice-createasyncthunk");function H8e(e,t){return`${e}/${t}`}function Q8e({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[j8e];return function(i){const{name:a,reducerPath:s=a}=i;if(!a)throw new Error(Sd(11));typeof process<"u";const o=(typeof i.reducers=="function"?i.reducers(V8e()):i.reducers)||{},l=Object.keys(o),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(k,_){const R=typeof k=="string"?k:k.type;if(!R)throw new Error(Sd(12));if(R in u.sliceCaseReducersByType)throw new Error(Sd(13));return u.sliceCaseReducersByType[R]=_,d},addMatcher(k,_){return u.sliceMatchers.push({matcher:k,reducer:_}),d},exposeAction(k,_){return u.actionCreators[k]=_,d},exposeCaseReducer(k,_){return u.sliceCaseReducersByName[k]=_,d}};l.forEach(k=>{const _=o[k],R={reducerName:k,type:H8e(a,k),createNotation:typeof i.reducers=="function"};G8e(_)?Z8e(R,_,d,t):q8e(R,_,d)});function f(){const[k={},_=[],R=void 0]=typeof i.extraReducers=="function"?qoe(i.extraReducers):[i.extraReducers],N={...k,...u.sliceCaseReducersByType};return z8e(i.initialState,P=>{for(let L in N)P.addCase(L,N[L]);for(let L of u.sliceMatchers)P.addMatcher(L.matcher,L.reducer);for(let L of _)P.addMatcher(L.matcher,L.reducer);R&&P.addDefaultCase(R)})}const p=k=>k,g=new Map;let O;function S(k,_){return O||(O=f()),O(k,_)}function T(){return O||(O=f()),O.getInitialState()}function w(k,_=!1){function R(P){let L=P[k];return typeof L>"u"&&_&&(L=T()),L}function N(P=p){const L=aZ(g,_,{insert:()=>new WeakMap});return aZ(L,P,{insert:()=>{const j={};for(const[B,V]of Object.entries(i.selectors??{}))j[B]=W8e(V,P,T,_);return j}})}return{reducerPath:k,getSelectors:N,get selectors(){return N(R)},selectSlice:R}}const x={name:a,reducer:S,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:T,...w(s),injectInto(k,{reducerPath:_,...R}={}){const N=_??s;return k.inject({reducerPath:N,reducer:S},R),{...x,...w(N,!0)}}};return x}}function W8e(e,t,n,r){function i(a,...s){let o=t(a);return typeof o>"u"&&r&&(o=n()),e(o,...s)}return i.unwrapped=e,i}var M1=Q8e();function V8e(){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 q8e({type:e,reducerName:t,createNotation:n},r,i){let a,s;if("reducer"in r){if(n&&!Y8e(r))throw new Error(Sd(17));a=r.reducer,s=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,s?rZ(e,s):rZ(e))}function G8e(e){return e._reducerDefinitionType==="asyncThunk"}function Y8e(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Z8e({type:e,reducerName:t},n,r,i){if(!i)throw new Error(Sd(18));const{payloadCreator:a,fulfilled:s,pending:o,rejected:l,settled:u,options:d}=n,f=i(e,a,d);r.exposeAction(t,f),s&&r.addCase(f.fulfilled,s),o&&r.addCase(f.pending,o),l&&r.addCase(f.rejected,l),u&&r.addMatcher(f.settled,u),r.exposeCaseReducer(t,{fulfilled:s||OA,pending:o||OA,rejected:l||OA,settled:u||OA})}function OA(){}function Sd(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 X8e={theme:"default",drawerOpen:!0},Goe=M1({name:"editor",initialState:X8e,reducers:{setTheme:(e,t)=>{e.theme=t.payload},setDrawerOpen:(e,t)=>{e.drawerOpen=t.payload}}}),{setTheme:Yoe,setDrawerOpen:K8e}=Goe.actions,V$=e=>e.config,J8e=Goe.reducer;function Zoe(e,t){return function(){return e.apply(t,arguments)}}const{toString:eLe}=Object.prototype,{getPrototypeOf:q$}=Object,oR=(e=>t=>{const n=eLe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Nd=e=>(e=e.toLowerCase(),t=>oR(t)===e),lR=e=>t=>typeof t===e,{isArray:oO}=Array,gw=lR("undefined");function tLe(e){return e!==null&&!gw(e)&&e.constructor!==null&&!gw(e.constructor)&&Tu(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Xoe=Nd("ArrayBuffer");function nLe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Xoe(e.buffer),t}const rLe=lR("string"),Tu=lR("function"),Koe=lR("number"),uR=e=>e!==null&&typeof e=="object",iLe=e=>e===!0||e===!1,G4=e=>{if(oR(e)!=="object")return!1;const t=q$(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},aLe=Nd("Date"),sLe=Nd("File"),oLe=Nd("Blob"),lLe=Nd("FileList"),uLe=e=>uR(e)&&Tu(e.pipe),cLe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Tu(e.append)&&((t=oR(e))==="formdata"||t==="object"&&Tu(e.toString)&&e.toString()==="[object FormData]"))},dLe=Nd("URLSearchParams"),[fLe,hLe,pLe,mLe]=["ReadableStream","Request","Response","Headers"].map(Nd),gLe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function _T(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),oO(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Ug=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ele=e=>!gw(e)&&e!==Ug;function KP(){const{caseless:e}=ele(this)&&this||{},t={},n=(r,i)=>{const a=e&&Joe(t,i)||i;G4(t[a])&&G4(r)?t[a]=KP(t[a],r):G4(r)?t[a]=KP({},r):oO(r)?t[a]=r.slice():t[a]=r};for(let r=0,i=arguments.length;r(_T(t,(i,a)=>{n&&Tu(i)?e[a]=Zoe(i,n):e[a]=i},{allOwnKeys:r}),e),yLe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),vLe=(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)},OLe=(e,t,n,r)=>{let i,a,s;const o={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)s=i[a],(!r||r(s,e,t))&&!o[s]&&(t[s]=e[s],o[s]=!0);e=n!==!1&&q$(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},SLe=(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},ELe=e=>{if(!e)return null;if(oO(e))return e;let t=e.length;if(!Koe(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},wLe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&q$(Uint8Array)),TLe=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},xLe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},kLe=Nd("HTMLFormElement"),ALe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),sZ=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),_Le=Nd("RegExp"),tle=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};_T(n,(i,a)=>{let s;(s=t(i,a,e))!==!1&&(r[a]=s||i)}),Object.defineProperties(e,r)},CLe=e=>{tle(e,(t,n)=>{if(Tu(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Tu(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+"'")})}})},RLe=(e,t)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return oO(e)?r(e):r(String(e).split(t)),n},ILe=()=>{},NLe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,zN="abcdefghijklmnopqrstuvwxyz",oZ="0123456789",nle={DIGIT:oZ,ALPHA:zN,ALPHA_DIGIT:zN+zN.toUpperCase()+oZ},DLe=(e=16,t=nle.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function PLe(e){return!!(e&&Tu(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const LLe=e=>{const t=new Array(10),n=(r,i)=>{if(uR(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const a=oO(r)?[]:{};return _T(r,(s,o)=>{const l=n(s,i+1);!gw(l)&&(a[o]=l)}),t[i]=void 0,a}}return r};return n(e,0)},MLe=Nd("AsyncFunction"),$Le=e=>e&&(uR(e)||Tu(e))&&Tu(e.then)&&Tu(e.catch),rle=((e,t)=>e?setImmediate:t?((n,r)=>(Ug.addEventListener("message",({source:i,data:a})=>{i===Ug&&a===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Ug.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Tu(Ug.postMessage)),FLe=typeof queueMicrotask<"u"?queueMicrotask.bind(Ug):typeof process<"u"&&process.nextTick||rle,rt={isArray:oO,isArrayBuffer:Xoe,isBuffer:tLe,isFormData:cLe,isArrayBufferView:nLe,isString:rLe,isNumber:Koe,isBoolean:iLe,isObject:uR,isPlainObject:G4,isReadableStream:fLe,isRequest:hLe,isResponse:pLe,isHeaders:mLe,isUndefined:gw,isDate:aLe,isFile:sLe,isBlob:oLe,isRegExp:_Le,isFunction:Tu,isStream:uLe,isURLSearchParams:dLe,isTypedArray:wLe,isFileList:lLe,forEach:_T,merge:KP,extend:bLe,trim:gLe,stripBOM:yLe,inherits:vLe,toFlatObject:OLe,kindOf:oR,kindOfTest:Nd,endsWith:SLe,toArray:ELe,forEachEntry:TLe,matchAll:xLe,isHTMLForm:kLe,hasOwnProperty:sZ,hasOwnProp:sZ,reduceDescriptors:tle,freezeMethods:CLe,toObjectSet:RLe,toCamelCase:ALe,noop:ILe,toFiniteNumber:NLe,findKey:Joe,global:Ug,isContextDefined:ele,ALPHABET:nle,generateString:DLe,isSpecCompliantForm:PLe,toJSONObject:LLe,isAsyncFn:MLe,isThenable:$Le,setImmediate:rle,asap:FLe};function Kn(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,this.status=i.status?i.status:null)}rt.inherits(Kn,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:rt.toJSONObject(this.config),code:this.code,status:this.status}}});const ile=Kn.prototype,ale={};["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=>{ale[e]={value:e}});Object.defineProperties(Kn,ale);Object.defineProperty(ile,"isAxiosError",{value:!0});Kn.from=(e,t,n,r,i,a)=>{const s=Object.create(ile);return rt.toFlatObject(e,s,function(l){return l!==Error.prototype},o=>o!=="isAxiosError"),Kn.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,a&&Object.assign(s,a),s};const BLe=null;function JP(e){return rt.isPlainObject(e)||rt.isArray(e)}function sle(e){return rt.endsWith(e,"[]")?e.slice(0,-2):e}function lZ(e,t,n){return e?e.concat(t).map(function(i,a){return i=sle(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function ULe(e){return rt.isArray(e)&&!e.some(JP)}const zLe=rt.toFlatObject(rt,{},null,function(t){return/^is[A-Z]/.test(t)});function cR(e,t,n){if(!rt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=rt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,T){return!rt.isUndefined(T[S])});const r=n.metaTokens,i=n.visitor||d,a=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&rt.isSpecCompliantForm(t);if(!rt.isFunction(i))throw new TypeError("visitor must be a function");function u(O){if(O===null)return"";if(rt.isDate(O))return O.toISOString();if(!l&&rt.isBlob(O))throw new Kn("Blob is not supported. Use a Buffer instead.");return rt.isArrayBuffer(O)||rt.isTypedArray(O)?l&&typeof Blob=="function"?new Blob([O]):Buffer.from(O):O}function d(O,S,T){let w=O;if(O&&!T&&typeof O=="object"){if(rt.endsWith(S,"{}"))S=r?S:S.slice(0,-2),O=JSON.stringify(O);else if(rt.isArray(O)&&ULe(O)||(rt.isFileList(O)||rt.endsWith(S,"[]"))&&(w=rt.toArray(O)))return S=sle(S),w.forEach(function(k,_){!(rt.isUndefined(k)||k===null)&&t.append(s===!0?lZ([S],_,a):s===null?S:S+"[]",u(k))}),!1}return JP(O)?!0:(t.append(lZ(T,S,a),u(O)),!1)}const f=[],p=Object.assign(zLe,{defaultVisitor:d,convertValue:u,isVisitable:JP});function g(O,S){if(!rt.isUndefined(O)){if(f.indexOf(O)!==-1)throw Error("Circular reference detected in "+S.join("."));f.push(O),rt.forEach(O,function(w,x){(!(rt.isUndefined(w)||w===null)&&i.call(t,w,rt.isString(x)?x.trim():x,S,p))===!0&&g(w,S?S.concat(x):[x])}),f.pop()}}if(!rt.isObject(e))throw new TypeError("data must be an object");return g(e),t}function uZ(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function G$(e,t){this._pairs=[],e&&cR(e,this,t)}const ole=G$.prototype;ole.append=function(t,n){this._pairs.push([t,n])};ole.toString=function(t){const n=t?function(r){return t.call(this,r,uZ)}:uZ;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function jLe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function lle(e,t,n){if(!t)return e;const r=n&&n.encode||jLe,i=n&&n.serialize;let a;if(i?a=i(t,n):a=rt.isURLSearchParams(t)?t.toString():new G$(t,n).toString(r),a){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class cZ{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){rt.forEach(this.handlers,function(r){r!==null&&t(r)})}}const ule={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},HLe=typeof URLSearchParams<"u"?URLSearchParams:G$,QLe=typeof FormData<"u"?FormData:null,WLe=typeof Blob<"u"?Blob:null,VLe={isBrowser:!0,classes:{URLSearchParams:HLe,FormData:QLe,Blob:WLe},protocols:["http","https","file","blob","url","data"]},Y$=typeof window<"u"&&typeof document<"u",e8=typeof navigator=="object"&&navigator||void 0,qLe=Y$&&(!e8||["ReactNative","NativeScript","NS"].indexOf(e8.product)<0),GLe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",YLe=Y$&&window.location.href||"http://localhost",ZLe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Y$,hasStandardBrowserEnv:qLe,hasStandardBrowserWebWorkerEnv:GLe,navigator:e8,origin:YLe},Symbol.toStringTag,{value:"Module"})),Il={...ZLe,...VLe};function XLe(e,t){return cR(e,new Il.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,a){return Il.isNode&&rt.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function KLe(e){return rt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function JLe(e){const t={},n=Object.keys(e);let r;const i=n.length;let a;for(r=0;r=n.length;return s=!s&&rt.isArray(i)?i.length:s,l?(rt.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!o):((!i[s]||!rt.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],a)&&rt.isArray(i[s])&&(i[s]=JLe(i[s])),!o)}if(rt.isFormData(e)&&rt.isFunction(e.entries)){const n={};return rt.forEachEntry(e,(r,i)=>{t(KLe(r),i,n,0)}),n}return null}function eMe(e,t,n){if(rt.isString(e))try{return(t||JSON.parse)(e),rt.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const CT={transitional:ule,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,a=rt.isObject(t);if(a&&rt.isHTMLForm(t)&&(t=new FormData(t)),rt.isFormData(t))return i?JSON.stringify(cle(t)):t;if(rt.isArrayBuffer(t)||rt.isBuffer(t)||rt.isStream(t)||rt.isFile(t)||rt.isBlob(t)||rt.isReadableStream(t))return t;if(rt.isArrayBufferView(t))return t.buffer;if(rt.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return XLe(t,this.formSerializer).toString();if((o=rt.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return cR(o?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),eMe(t)):t}],transformResponse:[function(t){const n=this.transitional||CT.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(rt.isResponse(t)||rt.isReadableStream(t))return t;if(t&&rt.isString(t)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(o){if(s)throw o.name==="SyntaxError"?Kn.from(o,Kn.ERR_BAD_RESPONSE,this,null,this.response):o}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Il.classes.FormData,Blob:Il.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};rt.forEach(["delete","get","head","post","put","patch"],e=>{CT.headers[e]={}});const tMe=rt.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"]),nMe=e=>{const t={};let n,r,i;return e&&e.split(` +`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&tMe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},dZ=Symbol("internals");function aE(e){return e&&String(e).trim().toLowerCase()}function Y4(e){return e===!1||e==null?e:rt.isArray(e)?e.map(Y4):String(e)}function rMe(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 iMe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function jN(e,t,n,r,i){if(rt.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!rt.isString(t)){if(rt.isString(r))return t.indexOf(r)!==-1;if(rt.isRegExp(r))return r.test(t)}}function aMe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function sMe(e,t){const n=rt.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,a,s){return this[r].call(this,t,i,a,s)},configurable:!0})})}let Nl=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function a(o,l,u){const d=aE(l);if(!d)throw new Error("header name must be a non-empty string");const f=rt.findKey(i,d);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=Y4(o))}const s=(o,l)=>rt.forEach(o,(u,d)=>a(u,d,l));if(rt.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(rt.isString(t)&&(t=t.trim())&&!iMe(t))s(nMe(t),n);else if(rt.isHeaders(t))for(const[o,l]of t.entries())a(l,o,r);else t!=null&&a(n,t,r);return this}get(t,n){if(t=aE(t),t){const r=rt.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return rMe(i);if(rt.isFunction(n))return n.call(this,i,r);if(rt.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=aE(t),t){const r=rt.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||jN(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function a(s){if(s=aE(s),s){const o=rt.findKey(r,s);o&&(!n||jN(r,r[o],o,n))&&(delete r[o],i=!0)}}return rt.isArray(t)?t.forEach(a):a(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const a=n[r];(!t||jN(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const n=this,r={};return rt.forEach(this,(i,a)=>{const s=rt.findKey(r,a);if(s){n[s]=Y4(i),delete n[a];return}const o=t?aMe(a):String(a).trim();o!==a&&delete n[a],n[o]=Y4(i),r[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return rt.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&rt.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[dZ]=this[dZ]={accessors:{}}).accessors,i=this.prototype;function a(s){const o=aE(s);r[o]||(sMe(i,s),r[o]=!0)}return rt.isArray(t)?t.forEach(a):a(t),this}};Nl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);rt.reduceDescriptors(Nl.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});rt.freezeMethods(Nl);function HN(e,t){const n=this||CT,r=t||n,i=Nl.from(r.headers);let a=r.data;return rt.forEach(e,function(o){a=o.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function dle(e){return!!(e&&e.__CANCEL__)}function lO(e,t,n){Kn.call(this,e??"canceled",Kn.ERR_CANCELED,t,n),this.name="CanceledError"}rt.inherits(lO,Kn,{__CANCEL__:!0});function fle(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Kn("Request failed with status code "+n.status,[Kn.ERR_BAD_REQUEST,Kn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function oMe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function lMe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,a=0,s;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),d=r[a];s||(s=u),n[i]=l,r[i]=u;let f=a,p=0;for(;f!==i;)p+=n[f++],f=f%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),u-s{n=d,i=null,a&&(clearTimeout(a),a=null),e.apply(null,u)};return[(...u)=>{const d=Date.now(),f=d-n;f>=r?s(u,d):(i=u,a||(a=setTimeout(()=>{a=null,s(i)},r-f)))},()=>i&&s(i)]}const T3=(e,t,n=3)=>{let r=0;const i=lMe(50,250);return uMe(a=>{const s=a.loaded,o=a.lengthComputable?a.total:void 0,l=s-r,u=i(l),d=s<=o;r=s;const f={loaded:s,total:o,progress:o?s/o:void 0,bytes:l,rate:u||void 0,estimated:u&&o&&d?(o-s)/u:void 0,event:a,lengthComputable:o!=null,[t?"download":"upload"]:!0};e(f)},n)},fZ=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},hZ=e=>(...t)=>rt.asap(()=>e(...t)),cMe=Il.hasStandardBrowserEnv?function(){const t=Il.navigator&&/(msie|trident)/i.test(Il.navigator.userAgent),n=document.createElement("a");let r;function i(a){let s=a;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(s){const o=rt.isString(s)?i(s):s;return o.protocol===r.protocol&&o.host===r.host}}():function(){return function(){return!0}}(),dMe=Il.hasStandardBrowserEnv?{write(e,t,n,r,i,a){const s=[e+"="+encodeURIComponent(t)];rt.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),rt.isString(r)&&s.push("path="+r),rt.isString(i)&&s.push("domain="+i),a===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function fMe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function hMe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function hle(e,t){return e&&!fMe(t)?hMe(e,t):t}const pZ=e=>e instanceof Nl?{...e}:e;function S1(e,t){t=t||{};const n={};function r(u,d,f){return rt.isPlainObject(u)&&rt.isPlainObject(d)?rt.merge.call({caseless:f},u,d):rt.isPlainObject(d)?rt.merge({},d):rt.isArray(d)?d.slice():d}function i(u,d,f){if(rt.isUndefined(d)){if(!rt.isUndefined(u))return r(void 0,u,f)}else return r(u,d,f)}function a(u,d){if(!rt.isUndefined(d))return r(void 0,d)}function s(u,d){if(rt.isUndefined(d)){if(!rt.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function o(u,d,f){if(f in t)return r(u,d);if(f in e)return r(void 0,u)}const l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:o,headers:(u,d)=>i(pZ(u),pZ(d),!0)};return rt.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=l[d]||i,p=f(e[d],t[d],d);rt.isUndefined(p)&&f!==o||(n[d]=p)}),n}const ple=e=>{const t=S1({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:o}=t;t.headers=s=Nl.from(s),t.url=lle(hle(t.baseURL,t.url),e.params,e.paramsSerializer),o&&s.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):"")));let l;if(rt.isFormData(n)){if(Il.hasStandardBrowserEnv||Il.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((l=s.getContentType())!==!1){const[u,...d]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];s.setContentType([u||"multipart/form-data",...d].join("; "))}}if(Il.hasStandardBrowserEnv&&(r&&rt.isFunction(r)&&(r=r(t)),r||r!==!1&&cMe(t.url))){const u=i&&a&&dMe.read(a);u&&s.set(i,u)}return t},pMe=typeof XMLHttpRequest<"u",mMe=pMe&&function(e){return new Promise(function(n,r){const i=ple(e);let a=i.data;const s=Nl.from(i.headers).normalize();let{responseType:o,onUploadProgress:l,onDownloadProgress:u}=i,d,f,p,g,O;function S(){g&&g(),O&&O(),i.cancelToken&&i.cancelToken.unsubscribe(d),i.signal&&i.signal.removeEventListener("abort",d)}let T=new XMLHttpRequest;T.open(i.method.toUpperCase(),i.url,!0),T.timeout=i.timeout;function w(){if(!T)return;const k=Nl.from("getAllResponseHeaders"in T&&T.getAllResponseHeaders()),R={data:!o||o==="text"||o==="json"?T.responseText:T.response,status:T.status,statusText:T.statusText,headers:k,config:e,request:T};fle(function(P){n(P),S()},function(P){r(P),S()},R),T=null}"onloadend"in T?T.onloadend=w:T.onreadystatechange=function(){!T||T.readyState!==4||T.status===0&&!(T.responseURL&&T.responseURL.indexOf("file:")===0)||setTimeout(w)},T.onabort=function(){T&&(r(new Kn("Request aborted",Kn.ECONNABORTED,e,T)),T=null)},T.onerror=function(){r(new Kn("Network Error",Kn.ERR_NETWORK,e,T)),T=null},T.ontimeout=function(){let _=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const R=i.transitional||ule;i.timeoutErrorMessage&&(_=i.timeoutErrorMessage),r(new Kn(_,R.clarifyTimeoutError?Kn.ETIMEDOUT:Kn.ECONNABORTED,e,T)),T=null},a===void 0&&s.setContentType(null),"setRequestHeader"in T&&rt.forEach(s.toJSON(),function(_,R){T.setRequestHeader(R,_)}),rt.isUndefined(i.withCredentials)||(T.withCredentials=!!i.withCredentials),o&&o!=="json"&&(T.responseType=i.responseType),u&&([p,O]=T3(u,!0),T.addEventListener("progress",p)),l&&T.upload&&([f,g]=T3(l),T.upload.addEventListener("progress",f),T.upload.addEventListener("loadend",g)),(i.cancelToken||i.signal)&&(d=k=>{T&&(r(!k||k.type?new lO(null,e,T):k),T.abort(),T=null)},i.cancelToken&&i.cancelToken.subscribe(d),i.signal&&(i.signal.aborted?d():i.signal.addEventListener("abort",d)));const x=oMe(i.url);if(x&&Il.protocols.indexOf(x)===-1){r(new Kn("Unsupported protocol "+x+":",Kn.ERR_BAD_REQUEST,e));return}T.send(a||null)})},gMe=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const a=function(u){if(!i){i=!0,o();const d=u instanceof Error?u:this.reason;r.abort(d instanceof Kn?d:new lO(d instanceof Error?d.message:d))}};let s=t&&setTimeout(()=>{s=null,a(new Kn(`timeout ${t} of ms exceeded`,Kn.ETIMEDOUT))},t);const o=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(a):u.removeEventListener("abort",a)}),e=null)};e.forEach(u=>u.addEventListener("abort",a));const{signal:l}=r;return l.unsubscribe=()=>rt.asap(o),l}},bMe=function*(e,t){let n=e.byteLength;if(!t||n{const i=yMe(e,t);let a=0,s,o=l=>{s||(s=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:d}=await i.next();if(u){o(),l.close();return}let f=d.byteLength;if(n){let p=a+=f;n(p)}l.enqueue(new Uint8Array(d))}catch(u){throw o(u),u}},cancel(l){return o(l),i.return()}},{highWaterMark:2})},dR=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",mle=dR&&typeof ReadableStream=="function",OMe=dR&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),gle=(e,...t)=>{try{return!!e(...t)}catch{return!1}},SMe=mle&&gle(()=>{let e=!1;const t=new Request(Il.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),gZ=64*1024,t8=mle&&gle(()=>rt.isReadableStream(new Response("").body)),x3={stream:t8&&(e=>e.body)};dR&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!x3[t]&&(x3[t]=rt.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Kn(`Response type '${t}' is not supported`,Kn.ERR_NOT_SUPPORT,r)})})})(new Response);const EMe=async e=>{if(e==null)return 0;if(rt.isBlob(e))return e.size;if(rt.isSpecCompliantForm(e))return(await new Request(Il.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(rt.isArrayBufferView(e)||rt.isArrayBuffer(e))return e.byteLength;if(rt.isURLSearchParams(e)&&(e=e+""),rt.isString(e))return(await OMe(e)).byteLength},wMe=async(e,t)=>{const n=rt.toFiniteNumber(e.getContentLength());return n??EMe(t)},TMe=dR&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:a,timeout:s,onDownloadProgress:o,onUploadProgress:l,responseType:u,headers:d,withCredentials:f="same-origin",fetchOptions:p}=ple(e);u=u?(u+"").toLowerCase():"text";let g=gMe([i,a&&a.toAbortSignal()],s),O;const S=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let T;try{if(l&&SMe&&n!=="get"&&n!=="head"&&(T=await wMe(d,r))!==0){let R=new Request(t,{method:"POST",body:r,duplex:"half"}),N;if(rt.isFormData(r)&&(N=R.headers.get("content-type"))&&d.setContentType(N),R.body){const[P,L]=fZ(T,T3(hZ(l)));r=mZ(R.body,gZ,P,L)}}rt.isString(f)||(f=f?"include":"omit");const w="credentials"in Request.prototype;O=new Request(t,{...p,signal:g,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:w?f:void 0});let x=await fetch(O);const k=t8&&(u==="stream"||u==="response");if(t8&&(o||k&&S)){const R={};["status","statusText","headers"].forEach(j=>{R[j]=x[j]});const N=rt.toFiniteNumber(x.headers.get("content-length")),[P,L]=o&&fZ(N,T3(hZ(o),!0))||[];x=new Response(mZ(x.body,gZ,P,()=>{L&&L(),S&&S()}),R)}u=u||"text";let _=await x3[rt.findKey(x3,u)||"text"](x,e);return!k&&S&&S(),await new Promise((R,N)=>{fle(R,N,{data:_,headers:Nl.from(x.headers),status:x.status,statusText:x.statusText,config:e,request:O})})}catch(w){throw S&&S(),w&&w.name==="TypeError"&&/fetch/i.test(w.message)?Object.assign(new Kn("Network Error",Kn.ERR_NETWORK,e,O),{cause:w.cause||w}):Kn.from(w,w&&w.code,e,O)}}),n8={http:BLe,xhr:mMe,fetch:TMe};rt.forEach(n8,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const bZ=e=>`- ${e}`,xMe=e=>rt.isFunction(e)||e===null||e===!1,ble={getAdapter:e=>{e=rt.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let a=0;a`adapter ${o} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?a.length>1?`since : +`+a.map(bZ).join(` +`):" "+bZ(a[0]):"as no adapter specified";throw new Kn("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:n8};function QN(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new lO(null,e)}function yZ(e){return QN(e),e.headers=Nl.from(e.headers),e.data=HN.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ble.getAdapter(e.adapter||CT.adapter)(e).then(function(r){return QN(e),r.data=HN.call(e,e.transformResponse,r),r.headers=Nl.from(r.headers),r},function(r){return dle(r)||(QN(e),r&&r.response&&(r.response.data=HN.call(e,e.transformResponse,r.response),r.response.headers=Nl.from(r.response.headers))),Promise.reject(r)})}const yle="1.7.7",Z$={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Z$[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const vZ={};Z$.transitional=function(t,n,r){function i(a,s){return"[Axios v"+yle+"] Transitional option '"+a+"'"+s+(r?". "+r:"")}return(a,s,o)=>{if(t===!1)throw new Kn(i(s," has been removed"+(n?" in "+n:"")),Kn.ERR_DEPRECATED);return n&&!vZ[s]&&(vZ[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,s,o):!0}};function kMe(e,t,n){if(typeof e!="object")throw new Kn("options must be an object",Kn.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],s=t[a];if(s){const o=e[a],l=o===void 0||s(o,a,e);if(l!==!0)throw new Kn("option "+a+" must be "+l,Kn.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Kn("Unknown option "+a,Kn.ERR_BAD_OPTION)}}const r8={assertOptions:kMe,validators:Z$},Kp=r8.validators;let o1=class{constructor(t){this.defaults=t,this.interceptors={request:new cZ,response:new cZ}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=S1(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&r8.assertOptions(r,{silentJSONParsing:Kp.transitional(Kp.boolean),forcedJSONParsing:Kp.transitional(Kp.boolean),clarifyTimeoutError:Kp.transitional(Kp.boolean)},!1),i!=null&&(rt.isFunction(i)?n.paramsSerializer={serialize:i}:r8.assertOptions(i,{encode:Kp.function,serialize:Kp.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=a&&rt.merge(a.common,a[n.method]);a&&rt.forEach(["delete","get","head","post","put","patch","common"],O=>{delete a[O]}),n.headers=Nl.concat(s,a);const o=[];let l=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(l=l&&S.synchronous,o.unshift(S.fulfilled,S.rejected))});const u=[];this.interceptors.response.forEach(function(S){u.push(S.fulfilled,S.rejected)});let d,f=0,p;if(!l){const O=[yZ.bind(this),void 0];for(O.unshift.apply(O,o),O.push.apply(O,u),p=O.length,d=Promise.resolve(n);f{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const s=new Promise(o=>{r.subscribe(o),a=o}).then(i);return s.cancel=function(){r.unsubscribe(a)},s},t(function(a,s,o){r.reason||(r.reason=new lO(a,s,o),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new vle(function(i){t=i}),cancel:t}}};function _Me(e){return function(n){return e.apply(null,n)}}function CMe(e){return rt.isObject(e)&&e.isAxiosError===!0}const i8={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(i8).forEach(([e,t])=>{i8[t]=e});function Ole(e){const t=new o1(e),n=Zoe(o1.prototype.request,t);return rt.extend(n,o1.prototype,t,{allOwnKeys:!0}),rt.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Ole(S1(e,i))},n}const tr=Ole(CT);tr.Axios=o1;tr.CanceledError=lO;tr.CancelToken=AMe;tr.isCancel=dle;tr.VERSION=yle;tr.toFormData=cR;tr.AxiosError=Kn;tr.Cancel=tr.CanceledError;tr.all=function(t){return Promise.all(t)};tr.spread=_Me;tr.isAxiosError=CMe;tr.mergeConfig=S1;tr.AxiosHeaders=Nl;tr.formToJSON=e=>cle(rt.isHTMLForm(e)?new FormData(e):e);tr.getAdapter=ble.getAdapter;tr.HttpStatusCode=i8;tr.default=tr;const{Axios:MOt,AxiosError:Sle,CanceledError:$Ot,isCancel:FOt,CancelToken:BOt,VERSION:UOt,all:zOt,Cancel:jOt,isAxiosError:HOt,spread:QOt,toFormData:WOt,AxiosHeaders:VOt,HttpStatusCode:qOt,formToJSON:GOt,getAdapter:YOt,mergeConfig:ZOt}=tr;function RMe(){const e=Loe();return I.jsx(Bn,{width:1,height:"100vh",alignItems:"center",justifyContent:"center",children:I.jsxs(Bn,{alignItems:"center",children:[I.jsx(wr,{variant:"h5",children:"Something went wrong"}),xT(e)&&I.jsxs(wr,{variant:"subtitle1",children:["Status Code: ",e.status]})]})})}const X$=rn.createContext({isLoading:!0,isLoggedIn:!1}),IMe={data:null},Ele=M1({name:"user",initialState:IMe,reducers:{setUserData:(e,t)=>{e.data=t.payload}}}),{setUserData:a8}=Ele.actions,RT=e=>e.user,NMe=Ele.reducer,DMe=e=>{var a;const{children:t}=e,{isLoggedIn:n}=M.useContext(X$),r=Sm(),i=Pr(RT);return n?I.jsx(U$,{to:`/${(a=i.data)==null?void 0:a.lastWorkspaceSlug}`,state:{from:r},replace:!0}):t},PMe=e=>{const{children:t}=e,{isLoggedIn:n,isLoading:r}=M.useContext(X$),i=Sm();return r?I.jsx(rO,{open:!0,children:I.jsx(kd,{color:"inherit"})}):n?t:I.jsx(U$,{to:"/",state:{from:i},replace:!0})};var K$={},WN={};const LMe=gp(F4e);var OZ;function ta(){return OZ||(OZ=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=LMe}(WN)),WN}var MMe=Ii;Object.defineProperty(K$,"__esModule",{value:!0});var wle=K$.default=void 0,$Me=MMe(ta()),FMe=I;wle=K$.default=(0,$Me.default)((0,FMe.jsx)("path",{d:"M17.77 3.77 16 2 6 12l10 10 1.77-1.77L9.54 12z"}),"ArrowBackIosNew");var J$={},BMe=Ii;Object.defineProperty(J$,"__esModule",{value:!0});var Tle=J$.default=void 0,UMe=BMe(ta()),zMe=I;Tle=J$.default=(0,UMe.default)((0,zMe.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 eF={},jMe=Ii;Object.defineProperty(eF,"__esModule",{value:!0});var xle=eF.default=void 0,HMe=jMe(ta()),QMe=I;xle=eF.default=(0,HMe.default)((0,QMe.jsx)("path",{d:"M3 15h8v-2H3zm0 4h8v-2H3zm0-8h8V9H3zm0-6v2h8V5zm10 0h8v14h-8z"}),"VerticalSplit");var tF={},WMe=Ii;Object.defineProperty(tF,"__esModule",{value:!0});var nF=tF.default=void 0,VMe=WMe(ta()),qMe=I;nF=tF.default=(0,VMe.default)((0,qMe.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");const GMe=e=>{const[t,n]=M.useState([]);return M.useEffect(()=>{if(!e)return;const r=()=>n(e.getPresences()??[]);r();const i=e.subscribe("others",a=>{(a.type==="presence-changed"||a.type==="watched")&&r(),a.type==="unwatched"&&n(s=>s.filter(o=>o.clientID!==a.value.clientID))});return()=>{i(),n([])}},[e]),{presenceList:t}},YMe={mode:"both",shareRole:null,doc:null,client:null,cmView:null},kle=M1({name:"editor",initialState:YMe,reducers:{setMode:(e,t)=>{e.mode=t.payload},setShareRole:(e,t)=>{e.shareRole=t.payload},setDoc:(e,t)=>{e.doc=t.payload},setClient:(e,t)=>{e.client=t.payload},setCmView:(e,t)=>{Object.assign(e,{cmView:t.payload})}}}),{setMode:s8,setDoc:k3,setClient:A3,setShareRole:ZMe,setCmView:XMe}=kle.actions,vp=e=>e.editor,KMe=kle.reducer,JMe={data:null},Ale=M1({name:"workspace",initialState:JMe,reducers:{setWorkspaceData:(e,t)=>{e.data=t.payload}}}),{setWorkspaceData:SZ}=Ale.actions,fR=e=>e.workspace,e9e=Ale.reducer,t9e=Id(I.jsx("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7zm-6 .67 2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt");function _le(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 EZ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Cle=rn.createContext(),a9e={mui:{root:{},anchorOriginTopCenter:{},anchorOriginBottomCenter:{},anchorOriginTopRight:{},anchorOriginBottomRight:{},anchorOriginTopLeft:{},anchorOriginBottomLeft:{}},container:{containerRoot:{},containerAnchorOriginTopCenter:{},containerAnchorOriginBottomCenter:{},containerAnchorOriginTopRight:{},containerAnchorOriginBottomRight:{},containerAnchorOriginTopLeft:{},containerAnchorOriginBottomLeft:{}}},Sh={view:{default:20,dense:4},snackbar:{default:6,dense:2}},zg={maxSnack:3,dense:!1,hideIconVariant:!1,variant:"default",autoHideDuration:5e3,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:WRe,transitionDuration:{enter:225,exit:195}},c2=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},s9e=function(t){return""+c2(t.vertical)+c2(t.horizontal)},o9e=function(t){return Object.keys(t).filter(function(n){return!a9e.container[n]}).reduce(function(n,r){var i;return Li({},n,(i={},i[r]=t[r],i))},{})},g0={TIMEOUT:"timeout",CLICKAWAY:"clickaway",MAXSNACK:"maxsnack",INSTRUCTED:"instructed"},Z4={toContainerAnchorOrigin:function(t){return"containerAnchorOrigin"+t},toAnchorOrigin:function(t){var n=t.vertical,r=t.horizontal;return"anchorOrigin"+c2(n)+c2(r)},toVariant:function(t){return"variant"+c2(t)}},SA=function(t){return!!t||t===0},wZ=function(t){return typeof t=="number"||t===null},l9e=function(t,n,r){return function(i){return i==="autoHideDuration"?wZ(t.autoHideDuration)?t.autoHideDuration:wZ(n.autoHideDuration)?n.autoHideDuration:zg.autoHideDuration:t[i]||n[i]||r[i]}};function VN(e,t,n){return e===void 0&&(e={}),t===void 0&&(t={}),n===void 0&&(n={}),Li({},n,{},t,{},e)}var u9e="SnackbarContent",Rle={root:u9e+"-root"},c9e=lt("div")(function(e){var t,n,r=e.theme;return n={},n["&."+Rle.root]=(t={display:"flex",flexWrap:"wrap",flexGrow:1},t[r.breakpoints.up("sm")]={flexGrow:"initial",minWidth:288},t),n}),d9e=M.forwardRef(function(e,t){var n=e.className,r=q0(e,["className"]);return rn.createElement(c9e,Object.assign({ref:t,className:bw(Rle.root,n)},r))}),TZ={right:"left",left:"right",bottom:"up",top:"down"},f9e=function(t){return t.horizontal!=="center"?TZ[t.horizontal]:TZ[t.vertical]},h9e=function(t){return rn.createElement(rm,Object.assign({},t),rn.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`}))},p9e=function(t){return rn.createElement(rm,Object.assign({},t),rn.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},m9e=function(t){return rn.createElement(rm,Object.assign({},t),rn.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`}))},A9e=function(t){return sn.createElement(cm,Object.assign({},t),sn.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`}))},EA={fontSize:20,marginInlineEnd:8},_9e={default:void 0,success:sn.createElement(T9e,{style:EA}),warning:sn.createElement(x9e,{style:EA}),error:sn.createElement(k9e,{style:EA}),info:sn.createElement(A9e,{style:EA})};function u2(e,t){return e.reduce(function(n,r){return r==null?n:function(){for(var a=arguments.length,s=new Array(a),o=0;o .MuiCollapse-container, & > .MuiCollapse-root",wrapper:"& > .MuiCollapse-container > .MuiCollapse-wrapper, & > .MuiCollapse-root > .MuiCollapse-wrapper"},tD=16,dg="SnackbarContainer",cd={root:dg+"-root",rootDense:dg+"-rootDense",top:dg+"-top",bottom:dg+"-bottom",left:dg+"-left",right:dg+"-right",center:dg+"-center"},D9e=ct("div")(function(e){var t,n,r,i,a,s,o=e.theme;return s={},s["&."+cd.root]=(t={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:o.zIndex.snackbar,height:"auto",width:"auto",transition:"top 300ms ease 0ms, right 300ms ease 0ms, bottom 300ms ease 0ms, left 300ms ease 0ms, margin 300ms ease 0ms, max-width 300ms ease 0ms",pointerEvents:"none"},t[eD.container]={pointerEvents:"all"},t[eD.wrapper]={padding:Ah.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},t.maxWidth="calc(100% - "+Ah.view.default*2+"px)",t[o.breakpoints.down("sm")]={width:"100%",maxWidth:"calc(100% - "+tD*2+"px)"},t),s["&."+cd.rootDense]=(n={},n[eD.wrapper]={padding:Ah.snackbar.dense+"px 0px"},n),s["&."+cd.top]={top:Ah.view.default-Ah.snackbar.default,flexDirection:"column"},s["&."+cd.bottom]={bottom:Ah.view.default-Ah.snackbar.default,flexDirection:"column-reverse"},s["&."+cd.left]=(r={left:Ah.view.default},r[o.breakpoints.up("sm")]={alignItems:"flex-start"},r[o.breakpoints.down("sm")]={left:tD+"px"},r),s["&."+cd.right]=(i={right:Ah.view.default},i[o.breakpoints.up("sm")]={alignItems:"flex-end"},i[o.breakpoints.down("sm")]={right:tD+"px"},i),s["&."+cd.center]=(a={left:"50%",transform:"translateX(-50%)"},a[o.breakpoints.up("sm")]={alignItems:"center"},a),s}),P9e=function(t){var n=t.className,r=t.anchorOrigin,i=t.dense,a=tm(t,["className","anchorOrigin","dense"]),s=mw(cd[r.vertical],cd[r.horizontal],cd.root,n,i&&cd.rootDense);return sn.createElement(D9e,Object.assign({className:s},a))},L9e=sn.memo(P9e),M9e=function(e){m9e(t,e);function t(r){var i;return i=e.call(this,r)||this,i.enqueueSnackbar=function(a,s){s===void 0&&(s={});var o=s,l=o.key,u=o.preventDuplicate,d=tm(o,["key","preventDuplicate"]),f=SA(l),p=f?l:new Date().getTime()+Math.random(),g=v9e(d,i.props,Fg),O=Fi({key:p},d,{message:a,open:!0,entered:!1,requestClose:!1,variant:g("variant"),anchorOrigin:g("anchorOrigin"),autoHideDuration:g("autoHideDuration")});return d.persist&&(O.autoHideDuration=void 0),i.setState(function(S){if(u===void 0&&i.props.preventDuplicate||u){var T=function(_){return f?_.key===l:_.message===a},w=S.queue.findIndex(T)>-1,x=S.snacks.findIndex(T)>-1;if(w||x)return S}return i.handleDisplaySnack(Fi({},S,{queue:[].concat(S.queue,[O])}))}),p},i.handleDisplaySnack=function(a){var s=a.snacks;return s.length>=i.maxSnack?i.handleDismissOldest(a):i.processQueue(a)},i.processQueue=function(a){var s=a.queue,o=a.snacks;return s.length>0?Fi({},a,{snacks:[].concat(o,[s[0]]),queue:s.slice(1,s.length)}):a},i.handleDismissOldest=function(a){if(a.snacks.some(function(d){return!d.open||d.requestClose}))return a;var s=!1,o=!1,l=a.snacks.reduce(function(d,f){return d+(f.open&&f.persist?1:0)},0);l===i.maxSnack&&(o=!0);var u=a.snacks.map(function(d){return!s&&(!d.persist||o)?(s=!0,d.entered?(d.onClose&&d.onClose(null,w0.MAXSNACK,d.key),i.props.onClose&&i.props.onClose(null,w0.MAXSNACK,d.key),Fi({},d,{open:!1})):Fi({},d,{requestClose:!0})):Fi({},d)});return Fi({},a,{snacks:u})},i.handleEnteredSnack=function(a,s,o){if(!SA(o))throw new Error("handleEnteredSnack Cannot be called with undefined key");i.setState(function(l){var u=l.snacks;return{snacks:u.map(function(d){return d.key===o?Fi({},d,{entered:!0}):Fi({},d)})}})},i.handleCloseSnack=function(a,s,o){if(i.props.onClose&&i.props.onClose(a,s,o),s!==w0.CLICKAWAY){var l=o===void 0;i.setState(function(u){var d=u.snacks,f=u.queue;return{snacks:d.map(function(p){return!l&&p.key!==o?Fi({},p):p.entered?Fi({},p,{open:!1}):Fi({},p,{requestClose:!0})}),queue:f.filter(function(p){return p.key!==o})}})}},i.closeSnackbar=function(a){var s=i.state.snacks.find(function(o){return o.key===a});SA(a)&&s&&s.onClose&&s.onClose(null,w0.INSTRUCTED,a),i.handleCloseSnack(null,w0.INSTRUCTED,a)},i.handleExitedSnack=function(a,s,o){var l=s||o;if(!SA(l))throw new Error("handleExitedSnack Cannot be called with undefined key");i.setState(function(u){var d=i.processQueue(Fi({},u,{snacks:u.snacks.filter(function(f){return f.key!==l})}));return d.queue.length===0?d:i.handleDismissOldest(d)})},i.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:i.enqueueSnackbar.bind(NZ(i)),closeSnackbar:i.closeSnackbar.bind(NZ(i))}},i}var n=t.prototype;return n.render=function(){var i=this,a=this.state.contextValue,s=this.props,o=s.iconVariant,l=s.dense,u=l===void 0?Fg.dense:l,d=s.hideIconVariant,f=d===void 0?Fg.hideIconVariant:d,p=s.domRoot,g=s.children,O=s.classes,S=O===void 0?{}:O,T=tm(s,["maxSnack","preventDuplicate","variant","anchorOrigin","iconVariant","dense","hideIconVariant","domRoot","children","classes"]),w=this.state.snacks.reduce(function(k,_){var R,N=b9e(_.anchorOrigin),D=k[N]||[];return Fi({},k,(R={},R[N]=[].concat(D,[_]),R))},{}),x=Object.keys(w).map(function(k){var _=w[k];return sn.createElement(L9e,{key:k,dense:u,anchorOrigin:_[0].anchorOrigin,className:mw(S.containerRoot,S[Z4.toContainerAnchorOrigin(k)])},_.map(function(R){return sn.createElement(N9e,Object.assign({},T,{key:R.key,snack:R,dense:u,iconVariant:o,hideIconVariant:f,classes:y9e(S),onClose:i.handleCloseSnack,onExited:u2([i.handleExitedSnack,i.props.onExited]),onEntered:u2([i.handleEnteredSnack,i.props.onEntered])}))}))});return sn.createElement(Fle.Provider,{value:a},g,p?aO.createPortal(x,p):x)},p9e(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||Fg.maxSnack}}]),t}(M.Component),CT=function(){return M.useContext(Fle)};const $9e={data:null},Ule=P1({name:"document",initialState:$9e,reducers:{setDocumentData:(e,t)=>{e.data=t.payload}}}),{setDocumentData:_C}=Ule.actions,mR=e=>e.document,F9e=Ule.reducer;var vO=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(){}},Pv=typeof window>"u"||"Deno"in globalThis;function tc(){}function B9e(e,t){return typeof e=="function"?e(t):e}function p8(e){return typeof e=="number"&&e>=0&&e!==1/0}function zle(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Uy(e,t){return typeof e=="function"?e(t):e}function hd(e,t){return typeof e=="function"?e(t):e}function MZ(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:a,queryKey:s,stale:o}=e;if(s){if(r){if(t.queryHash!==fF(s,t.options))return!1}else if(!gw(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||i&&i!==t.state.fetchStatus||a&&!a(t))}function $Z(e,t){const{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(v1(t.options.mutationKey)!==v1(a))return!1}else if(!gw(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function fF(e,t){return((t==null?void 0:t.queryKeyHashFn)||v1)(e)}function v1(e){return JSON.stringify(e,(t,n)=>m8(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function gw(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!gw(e[n],t[n])):!1}function jle(e,t){if(e===t)return e;const n=FZ(e)&&FZ(t);if(n||m8(e)&&m8(t)){const r=n?e:Object.keys(e),i=r.length,a=n?t:Object.keys(t),s=a.length,o=n?[]:{};let l=0;for(let u=0;u{setTimeout(t,e)})}function g8(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?jle(e,t):t}function z9e(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function j9e(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Hle=Symbol();function Qle(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Hle?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Wg,_0,rv,hre,H9e=(hre=class extends vO{constructor(){super();Un(this,Wg);Un(this,_0);Un(this,rv);un(this,rv,t=>{if(!Pv&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){Ce(this,_0)||this.setEventListener(Ce(this,rv))}onUnsubscribe(){var t;this.hasListeners()||((t=Ce(this,_0))==null||t.call(this),un(this,_0,void 0))}setEventListener(t){var n;un(this,rv,t),(n=Ce(this,_0))==null||n.call(this),un(this,_0,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){Ce(this,Wg)!==t&&(un(this,Wg,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof Ce(this,Wg)=="boolean"?Ce(this,Wg):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Wg=new WeakMap,_0=new WeakMap,rv=new WeakMap,hre),hF=new H9e,iv,C0,av,pre,Q9e=(pre=class extends vO{constructor(){super();Un(this,iv,!0);Un(this,C0);Un(this,av);un(this,av,t=>{if(!Pv&&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(){Ce(this,C0)||this.setEventListener(Ce(this,av))}onUnsubscribe(){var t;this.hasListeners()||((t=Ce(this,C0))==null||t.call(this),un(this,C0,void 0))}setEventListener(t){var n;un(this,av,t),(n=Ce(this,C0))==null||n.call(this),un(this,C0,t(this.setOnline.bind(this)))}setOnline(t){Ce(this,iv)!==t&&(un(this,iv,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return Ce(this,iv)}},iv=new WeakMap,C0=new WeakMap,av=new WeakMap,pre),RC=new Q9e;function W9e(e){return Math.min(1e3*2**e,3e4)}function Wle(e){return(e??"online")==="online"?RC.isOnline():!0}var Vle=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function nD(e){return e instanceof Vle}function qle(e){let t=!1,n=0,r=!1,i,a,s;const o=new Promise((w,x)=>{a=w,s=x}),l=w=>{var x;r||(O(new Vle(w)),(x=e.abort)==null||x.call(e))},u=()=>{t=!0},d=()=>{t=!1},f=()=>hF.isFocused()&&(e.networkMode==="always"||RC.isOnline())&&e.canRun(),p=()=>Wle(e.networkMode)&&e.canRun(),g=w=>{var x;r||(r=!0,(x=e.onSuccess)==null||x.call(e,w),i==null||i(),a(w))},O=w=>{var x;r||(r=!0,(x=e.onError)==null||x.call(e,w),i==null||i(),s(w))},S=()=>new Promise(w=>{var x;i=k=>{(r||f())&&w(k)},(x=e.onPause)==null||x.call(e)}).then(()=>{var w;i=void 0,r||(w=e.onContinue)==null||w.call(e)}),T=()=>{if(r)return;let w;const x=n===0?e.initialPromise:void 0;try{w=x??e.fn()}catch(k){w=Promise.reject(k)}Promise.resolve(w).then(g).catch(k=>{var L;if(r)return;const _=e.retry??(Pv?0:3),R=e.retryDelay??W9e,N=typeof R=="function"?R(n,k):R,D=_===!0||typeof _=="number"&&n<_||typeof _=="function"&&_(n,k);if(t||!D){O(k);return}n++,(L=e.onFail)==null||L.call(e,n,k),U9e(N).then(()=>f()?void 0:S()).then(()=>{t?O(k):T()})})};return{promise:o,cancel:l,continue:()=>(i==null||i(),o),cancelRetry:u,continueRetry:d,canStart:p,start:()=>(p()?T():S().then(T),o)}}function V9e(){let e=[],t=0,n=p=>{p()},r=p=>{p()},i=p=>setTimeout(p,0);const a=p=>{i=p},s=p=>{let g;t++;try{g=p()}finally{t--,t||u()}return g},o=p=>{t?e.push(p):i(()=>{n(p)})},l=p=>(...g)=>{o(()=>{p(...g)})},u=()=>{const p=e;e=[],p.length&&i(()=>{r(()=>{p.forEach(g=>{n(g)})})})};return{batch:s,batchCalls:l,schedule:o,setNotifyFunction:p=>{n=p},setBatchNotifyFunction:p=>{r=p},setScheduler:a}}var rs=V9e(),Vg,mre,Gle=(mre=class{constructor(){Un(this,Vg)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),p8(this.gcTime)&&un(this,Vg,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Pv?1/0:5*60*1e3))}clearGcTimeout(){Ce(this,Vg)&&(clearTimeout(Ce(this,Vg)),un(this,Vg,void 0))}},Vg=new WeakMap,mre),sv,ov,Ju,fo,tT,qg,od,Ph,gre,q9e=(gre=class extends Gle{constructor(t){super();Un(this,od);Un(this,sv);Un(this,ov);Un(this,Ju);Un(this,fo);Un(this,tT);Un(this,qg);un(this,qg,!1),un(this,tT,t.defaultOptions),this.setOptions(t.options),this.observers=[],un(this,Ju,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,un(this,sv,G9e(this.options)),this.state=t.state??Ce(this,sv),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=Ce(this,fo))==null?void 0:t.promise}setOptions(t){this.options={...Ce(this,tT),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&Ce(this,Ju).remove(this)}setData(t,n){const r=g8(this.state.data,t,this.options);return cr(this,od,Ph).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){cr(this,od,Ph).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=Ce(this,fo))==null?void 0:r.promise;return(i=Ce(this,fo))==null||i.cancel(t),n?n.then(tc).catch(tc):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Ce(this,sv))}isActive(){return this.observers.some(t=>hd(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!zle(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=Ce(this,fo))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=Ce(this,fo))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),Ce(this,Ju).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(Ce(this,fo)&&(Ce(this,qg)?Ce(this,fo).cancel({revert:!0}):Ce(this,fo).cancelRetry()),this.scheduleGc()),Ce(this,Ju).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||cr(this,od,Ph).call(this,{type:"invalidate"})}fetch(t,n){var l,u,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(Ce(this,fo))return Ce(this,fo).continueRetry(),Ce(this,fo).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(p=>p.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(un(this,qg,!0),r.signal)})},a=()=>{const f=Qle(this.options,n),p={queryKey:this.queryKey,meta:this.meta};return i(p),un(this,qg,!1),this.options.persister?this.options.persister(f,p,this):f(p)},s={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};i(s),(l=this.options.behavior)==null||l.onFetch(s,this),un(this,ov,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=s.fetchOptions)==null?void 0:u.meta))&&cr(this,od,Ph).call(this,{type:"fetch",meta:(d=s.fetchOptions)==null?void 0:d.meta});const o=f=>{var p,g,O,S;nD(f)&&f.silent||cr(this,od,Ph).call(this,{type:"error",error:f}),nD(f)||((g=(p=Ce(this,Ju).config).onError)==null||g.call(p,f,this),(S=(O=Ce(this,Ju).config).onSettled)==null||S.call(O,this.state.data,f,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return un(this,fo,qle({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var p,g,O,S;if(f===void 0){o(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(T){o(T);return}(g=(p=Ce(this,Ju).config).onSuccess)==null||g.call(p,f,this),(S=(O=Ce(this,Ju).config).onSettled)==null||S.call(O,f,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:o,onFail:(f,p)=>{cr(this,od,Ph).call(this,{type:"failed",failureCount:f,error:p})},onPause:()=>{cr(this,od,Ph).call(this,{type:"pause"})},onContinue:()=>{cr(this,od,Ph).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),Ce(this,fo).start()}},sv=new WeakMap,ov=new WeakMap,Ju=new WeakMap,fo=new WeakMap,tT=new WeakMap,qg=new WeakMap,od=new WeakSet,Ph=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,...Yle(r.data,this.options),fetchMeta:t.meta??null};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 nD(i)&&i.revert&&Ce(this,ov)?{...Ce(this,ov),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),rs.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),Ce(this,Ju).notify({query:this,type:"updated",action:t})})},gre);function Yle(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Wle(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function G9e(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,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 df,bre,Zle=(bre=class extends vO{constructor(t={}){super();Un(this,df);this.config=t,un(this,df,new Map)}build(t,n,r){const i=n.queryKey,a=n.queryHash??fF(i,n);let s=this.get(a);return s||(s=new q9e({cache:this,queryKey:i,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){Ce(this,df).has(t.queryHash)||(Ce(this,df).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=Ce(this,df).get(t.queryHash);n&&(t.destroy(),n===t&&Ce(this,df).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){rs.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return Ce(this,df).get(t)}getAll(){return[...Ce(this,df).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>MZ(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>MZ(t,r)):n}notify(t){rs.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){rs.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){rs.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},df=new WeakMap,bre),ff,Mo,Gg,hf,d0,yre,Y9e=(yre=class extends Gle{constructor(t){super();Un(this,hf);Un(this,ff);Un(this,Mo);Un(this,Gg);this.mutationId=t.mutationId,un(this,Mo,t.mutationCache),un(this,ff,[]),this.state=t.state||Xle(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){Ce(this,ff).includes(t)||(Ce(this,ff).push(t),this.clearGcTimeout(),Ce(this,Mo).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){un(this,ff,Ce(this,ff).filter(n=>n!==t)),this.scheduleGc(),Ce(this,Mo).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){Ce(this,ff).length||(this.state.status==="pending"?this.scheduleGc():Ce(this,Mo).remove(this))}continue(){var t;return((t=Ce(this,Gg))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,a,s,o,l,u,d,f,p,g,O,S,T,w,x,k,_,R,N,D;un(this,Gg,qle({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(L,j)=>{cr(this,hf,d0).call(this,{type:"failed",failureCount:L,error:j})},onPause:()=>{cr(this,hf,d0).call(this,{type:"pause"})},onContinue:()=>{cr(this,hf,d0).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Ce(this,Mo).canRun(this)}));const n=this.state.status==="pending",r=!Ce(this,Gg).canStart();try{if(!n){cr(this,hf,d0).call(this,{type:"pending",variables:t,isPaused:r}),await((a=(i=Ce(this,Mo).config).onMutate)==null?void 0:a.call(i,t,this));const j=await((o=(s=this.options).onMutate)==null?void 0:o.call(s,t));j!==this.state.context&&cr(this,hf,d0).call(this,{type:"pending",context:j,variables:t,isPaused:r})}const L=await Ce(this,Gg).start();return await((u=(l=Ce(this,Mo).config).onSuccess)==null?void 0:u.call(l,L,t,this.state.context,this)),await((f=(d=this.options).onSuccess)==null?void 0:f.call(d,L,t,this.state.context)),await((g=(p=Ce(this,Mo).config).onSettled)==null?void 0:g.call(p,L,null,this.state.variables,this.state.context,this)),await((S=(O=this.options).onSettled)==null?void 0:S.call(O,L,null,t,this.state.context)),cr(this,hf,d0).call(this,{type:"success",data:L}),L}catch(L){try{throw await((w=(T=Ce(this,Mo).config).onError)==null?void 0:w.call(T,L,t,this.state.context,this)),await((k=(x=this.options).onError)==null?void 0:k.call(x,L,t,this.state.context)),await((R=(_=Ce(this,Mo).config).onSettled)==null?void 0:R.call(_,void 0,L,this.state.variables,this.state.context,this)),await((D=(N=this.options).onSettled)==null?void 0:D.call(N,void 0,L,t,this.state.context)),L}finally{cr(this,hf,d0).call(this,{type:"error",error:L})}}finally{Ce(this,Mo).runNext(this)}}},ff=new WeakMap,Mo=new WeakMap,Gg=new WeakMap,hf=new WeakSet,d0=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:t.isPaused,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),rs.batch(()=>{Ce(this,ff).forEach(r=>{r.onMutationUpdate(t)}),Ce(this,Mo).notify({mutation:this,type:"updated",action:t})})},yre);function Xle(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var su,nT,vre,Z9e=(vre=class extends vO{constructor(t={}){super();Un(this,su);Un(this,nT);this.config=t,un(this,su,new Map),un(this,nT,Date.now())}build(t,n,r){const i=new Y9e({mutationCache:this,mutationId:++Uk(this,nT)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=wA(t),r=Ce(this,su).get(n)??[];r.push(t),Ce(this,su).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=wA(t);if(Ce(this,su).has(n)){const i=(r=Ce(this,su).get(n))==null?void 0:r.filter(a=>a!==t);i&&(i.length===0?Ce(this,su).delete(n):Ce(this,su).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=Ce(this,su).get(wA(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=Ce(this,su).get(wA(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){rs.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...Ce(this,su).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>$Z(n,r))}findAll(t={}){return this.getAll().filter(n=>$Z(t,n))}notify(t){rs.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return rs.batch(()=>Promise.all(t.map(n=>n.continue().catch(tc))))}},su=new WeakMap,nT=new WeakMap,vre);function wA(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function b8(e){return{onFetch:(t,n)=>{const r=async()=>{var O,S,T,w,x;const i=t.options,a=(T=(S=(O=t.fetchOptions)==null?void 0:O.meta)==null?void 0:S.fetchMore)==null?void 0:T.direction,s=((w=t.state.data)==null?void 0:w.pages)||[],o=((x=t.state.data)==null?void 0:x.pageParams)||[],l={pages:[],pageParams:[]};let u=!1;const d=k=>{Object.defineProperty(k,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},f=Qle(t.options,t.fetchOptions),p=async(k,_,R)=>{if(u)return Promise.reject();if(_==null&&k.pages.length)return Promise.resolve(k);const N={queryKey:t.queryKey,pageParam:_,direction:R?"backward":"forward",meta:t.options.meta};d(N);const D=await f(N),{maxPages:L}=t.options,j=R?j9e:z9e;return{pages:j(k.pages,D,L),pageParams:j(k.pageParams,_,L)}};let g;if(a&&s.length){const k=a==="backward",_=k?Kle:y8,R={pages:s,pageParams:o},N=_(i,R);g=await p(R,N,k)}else{g=await p(l,o[0]??i.initialPageParam);const k=e??s.length;for(let _=1;_{var i,a;return(a=(i=t.options).persister)==null?void 0:a.call(i,r,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=r}}}function y8(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Kle(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}function X9e(e,t){return t?y8(e,t)!=null:!1}function K9e(e,t){return!t||!e.getPreviousPageParam?!1:Kle(e,t)!=null}var Sa,R0,I0,lv,uv,N0,cv,dv,Ore,J9e=(Ore=class{constructor(e={}){Un(this,Sa);Un(this,R0);Un(this,I0);Un(this,lv);Un(this,uv);Un(this,N0);Un(this,cv);Un(this,dv);un(this,Sa,e.queryCache||new Zle),un(this,R0,e.mutationCache||new Z9e),un(this,I0,e.defaultOptions||{}),un(this,lv,new Map),un(this,uv,new Map),un(this,N0,0)}mount(){Uk(this,N0)._++,Ce(this,N0)===1&&(un(this,cv,hF.subscribe(async e=>{e&&(await this.resumePausedMutations(),Ce(this,Sa).onFocus())})),un(this,dv,RC.subscribe(async e=>{e&&(await this.resumePausedMutations(),Ce(this,Sa).onOnline())})))}unmount(){var e,t;Uk(this,N0)._--,Ce(this,N0)===0&&((e=Ce(this,cv))==null||e.call(this),un(this,cv,void 0),(t=Ce(this,dv))==null||t.call(this),un(this,dv,void 0))}isFetching(e){return Ce(this,Sa).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Ce(this,R0).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Ce(this,Sa).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=Ce(this,Sa).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(Uy(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return Ce(this,Sa).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=Ce(this,Sa).get(r.queryHash),a=i==null?void 0:i.state.data,s=B9e(t,a);if(s!==void 0)return Ce(this,Sa).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return rs.batch(()=>Ce(this,Sa).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Ce(this,Sa).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=Ce(this,Sa);rs.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=Ce(this,Sa),r={type:"active",...e};return rs.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=rs.batch(()=>Ce(this,Sa).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(tc).catch(tc)}invalidateQueries(e={},t={}){return rs.batch(()=>{if(Ce(this,Sa).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=rs.batch(()=>Ce(this,Sa).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let a=i.fetch(void 0,n);return n.throwOnError||(a=a.catch(tc)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(tc)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=Ce(this,Sa).build(this,t);return n.isStaleByTime(Uy(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(tc).catch(tc)}fetchInfiniteQuery(e){return e.behavior=b8(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(tc).catch(tc)}resumePausedMutations(){return RC.isOnline()?Ce(this,R0).resumePausedMutations():Promise.resolve()}getQueryCache(){return Ce(this,Sa)}getMutationCache(){return Ce(this,R0)}getDefaultOptions(){return Ce(this,I0)}setDefaultOptions(e){un(this,I0,e)}setQueryDefaults(e,t){Ce(this,lv).set(v1(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Ce(this,lv).values()];let n={};return t.forEach(r=>{gw(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){Ce(this,uv).set(v1(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Ce(this,uv).values()];let n={};return t.forEach(r=>{gw(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...Ce(this,I0).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=fF(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===Hle&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...Ce(this,I0).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Ce(this,Sa).clear(),Ce(this,R0).clear()}},Sa=new WeakMap,R0=new WeakMap,I0=new WeakMap,lv=new WeakMap,uv=new WeakMap,N0=new WeakMap,cv=new WeakMap,dv=new WeakMap,Ore),gl,_r,rT,$o,Yg,fv,pf,iT,hv,pv,Zg,Xg,D0,mv,ri,PE,v8,O8,S8,E8,w8,T8,x8,eue,Sre,Jle=(Sre=class extends vO{constructor(t,n){super();Un(this,ri);Un(this,gl);Un(this,_r);Un(this,rT);Un(this,$o);Un(this,Yg);Un(this,fv);Un(this,pf);Un(this,iT);Un(this,hv);Un(this,pv);Un(this,Zg);Un(this,Xg);Un(this,D0);Un(this,mv,new Set);this.options=n,un(this,gl,t),un(this,pf,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(Ce(this,_r).addObserver(this),UZ(Ce(this,_r),this.options)?cr(this,ri,PE).call(this):this.updateResult(),cr(this,ri,E8).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return k8(Ce(this,_r),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return k8(Ce(this,_r),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,cr(this,ri,w8).call(this),cr(this,ri,T8).call(this),Ce(this,_r).removeObserver(this)}setOptions(t,n){const r=this.options,i=Ce(this,_r);if(this.options=Ce(this,gl).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof hd(this.options.enabled,Ce(this,_r))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");cr(this,ri,x8).call(this),Ce(this,_r).setOptions(this.options),r._defaulted&&!CC(this.options,r)&&Ce(this,gl).getQueryCache().notify({type:"observerOptionsUpdated",query:Ce(this,_r),observer:this});const a=this.hasListeners();a&&zZ(Ce(this,_r),i,this.options,r)&&cr(this,ri,PE).call(this),this.updateResult(n),a&&(Ce(this,_r)!==i||hd(this.options.enabled,Ce(this,_r))!==hd(r.enabled,Ce(this,_r))||Uy(this.options.staleTime,Ce(this,_r))!==Uy(r.staleTime,Ce(this,_r)))&&cr(this,ri,v8).call(this);const s=cr(this,ri,O8).call(this);a&&(Ce(this,_r)!==i||hd(this.options.enabled,Ce(this,_r))!==hd(r.enabled,Ce(this,_r))||s!==Ce(this,D0))&&cr(this,ri,S8).call(this,s)}getOptimisticResult(t){const n=Ce(this,gl).getQueryCache().build(Ce(this,gl),t),r=this.createResult(n,t);return t$e(this,r)&&(un(this,$o,r),un(this,fv,this.options),un(this,Yg,Ce(this,_r).state)),r}getCurrentResult(){return Ce(this,$o)}trackResult(t,n){const r={};return Object.keys(t).forEach(i=>{Object.defineProperty(r,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),n==null||n(i),t[i])})}),r}trackProp(t){Ce(this,mv).add(t)}getCurrentQuery(){return Ce(this,_r)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=Ce(this,gl).defaultQueryOptions(t),r=Ce(this,gl).getQueryCache().build(Ce(this,gl),n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){return cr(this,ri,PE).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),Ce(this,$o)))}createResult(t,n){var D;const r=Ce(this,_r),i=this.options,a=Ce(this,$o),s=Ce(this,Yg),o=Ce(this,fv),u=t!==r?t.state:Ce(this,rT),{state:d}=t;let f={...d},p=!1,g;if(n._optimisticResults){const L=this.hasListeners(),j=!L&&UZ(t,n),B=L&&zZ(t,r,n,i);(j||B)&&(f={...f,...Yle(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:O,errorUpdatedAt:S,status:T}=f;if(n.select&&f.data!==void 0)if(a&&f.data===(s==null?void 0:s.data)&&n.select===Ce(this,iT))g=Ce(this,hv);else try{un(this,iT,n.select),g=n.select(f.data),g=g8(a==null?void 0:a.data,g,n),un(this,hv,g),un(this,pf,null)}catch(L){un(this,pf,L)}else g=f.data;if(n.placeholderData!==void 0&&g===void 0&&T==="pending"){let L;if(a!=null&&a.isPlaceholderData&&n.placeholderData===(o==null?void 0:o.placeholderData))L=a.data;else if(L=typeof n.placeholderData=="function"?n.placeholderData((D=Ce(this,pv))==null?void 0:D.state.data,Ce(this,pv)):n.placeholderData,n.select&&L!==void 0)try{L=n.select(L),un(this,pf,null)}catch(j){un(this,pf,j)}L!==void 0&&(T="success",g=g8(a==null?void 0:a.data,L,n),p=!0)}Ce(this,pf)&&(O=Ce(this,pf),g=Ce(this,hv),S=Date.now(),T="error");const w=f.fetchStatus==="fetching",x=T==="pending",k=T==="error",_=x&&w,R=g!==void 0;return{status:T,fetchStatus:f.fetchStatus,isPending:x,isSuccess:T==="success",isError:k,isInitialLoading:_,isLoading:_,data:g,dataUpdatedAt:f.dataUpdatedAt,error:O,errorUpdatedAt:S,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:w,isRefetching:w&&!x,isLoadingError:k&&!R,isPaused:f.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:k&&R,isStale:pF(t,n),refetch:this.refetch}}updateResult(t){const n=Ce(this,$o),r=this.createResult(Ce(this,_r),this.options);if(un(this,Yg,Ce(this,_r).state),un(this,fv,this.options),Ce(this,Yg).data!==void 0&&un(this,pv,Ce(this,_r)),CC(r,n))return;un(this,$o,r);const i={},a=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,o=typeof s=="function"?s():s;if(o==="all"||!o&&!Ce(this,mv).size)return!0;const l=new Set(o??Ce(this,mv));return this.options.throwOnError&&l.add("error"),Object.keys(Ce(this,$o)).some(u=>{const d=u;return Ce(this,$o)[d]!==n[d]&&l.has(d)})};(t==null?void 0:t.listeners)!==!1&&a()&&(i.listeners=!0),cr(this,ri,eue).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&cr(this,ri,E8).call(this)}},gl=new WeakMap,_r=new WeakMap,rT=new WeakMap,$o=new WeakMap,Yg=new WeakMap,fv=new WeakMap,pf=new WeakMap,iT=new WeakMap,hv=new WeakMap,pv=new WeakMap,Zg=new WeakMap,Xg=new WeakMap,D0=new WeakMap,mv=new WeakMap,ri=new WeakSet,PE=function(t){cr(this,ri,x8).call(this);let n=Ce(this,_r).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(tc)),n},v8=function(){cr(this,ri,w8).call(this);const t=Uy(this.options.staleTime,Ce(this,_r));if(Pv||Ce(this,$o).isStale||!p8(t))return;const r=zle(Ce(this,$o).dataUpdatedAt,t)+1;un(this,Zg,setTimeout(()=>{Ce(this,$o).isStale||this.updateResult()},r))},O8=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(Ce(this,_r)):this.options.refetchInterval)??!1},S8=function(t){cr(this,ri,T8).call(this),un(this,D0,t),!(Pv||hd(this.options.enabled,Ce(this,_r))===!1||!p8(Ce(this,D0))||Ce(this,D0)===0)&&un(this,Xg,setInterval(()=>{(this.options.refetchIntervalInBackground||hF.isFocused())&&cr(this,ri,PE).call(this)},Ce(this,D0)))},E8=function(){cr(this,ri,v8).call(this),cr(this,ri,S8).call(this,cr(this,ri,O8).call(this))},w8=function(){Ce(this,Zg)&&(clearTimeout(Ce(this,Zg)),un(this,Zg,void 0))},T8=function(){Ce(this,Xg)&&(clearInterval(Ce(this,Xg)),un(this,Xg,void 0))},x8=function(){const t=Ce(this,gl).getQueryCache().build(Ce(this,gl),this.options);if(t===Ce(this,_r))return;const n=Ce(this,_r);un(this,_r,t),un(this,rT,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},eue=function(t){rs.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(Ce(this,$o))}),Ce(this,gl).getQueryCache().notify({query:Ce(this,_r),type:"observerResultsUpdated"})})},Sre);function e$e(e,t){return hd(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function UZ(e,t){return e$e(e,t)||e.state.data!==void 0&&k8(e,t,t.refetchOnMount)}function k8(e,t,n){if(hd(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&pF(e,t)}return!1}function zZ(e,t,n,r){return(e!==t||hd(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&pF(e,n)}function pF(e,t){return hd(t.enabled,e)!==!1&&e.isStaleByTime(Uy(t.staleTime,e))}function t$e(e,t){return!CC(e.getCurrentResult(),t)}var n$e=class extends Jle{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:b8()},t)}getOptimisticResult(e){return e.behavior=b8(),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 O,S;const{state:n}=e,r=super.createResult(e,t),{isFetching:i,isRefetching:a,isError:s,isRefetchError:o}=r,l=(S=(O=n.fetchMeta)==null?void 0:O.fetchMore)==null?void 0:S.direction,u=s&&l==="forward",d=i&&l==="forward",f=s&&l==="backward",p=i&&l==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:X9e(t,n.data),hasPreviousPage:K9e(t,n.data),isFetchNextPageError:u,isFetchingNextPage:d,isFetchPreviousPageError:f,isFetchingPreviousPage:p,isRefetchError:o&&!u&&!f,isRefetching:a&&!d&&!p}}},P0,L0,bl,jh,ap,X4,A8,Ere,r$e=(Ere=class extends vO{constructor(n,r){super();Un(this,ap);Un(this,P0);Un(this,L0);Un(this,bl);Un(this,jh);un(this,P0,n),this.setOptions(r),this.bindMethods(),cr(this,ap,X4).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=Ce(this,P0).defaultMutationOptions(n),CC(this.options,r)||Ce(this,P0).getMutationCache().notify({type:"observerOptionsUpdated",mutation:Ce(this,bl),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&v1(r.mutationKey)!==v1(this.options.mutationKey)?this.reset():((i=Ce(this,bl))==null?void 0:i.state.status)==="pending"&&Ce(this,bl).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=Ce(this,bl))==null||n.removeObserver(this)}onMutationUpdate(n){cr(this,ap,X4).call(this),cr(this,ap,A8).call(this,n)}getCurrentResult(){return Ce(this,L0)}reset(){var n;(n=Ce(this,bl))==null||n.removeObserver(this),un(this,bl,void 0),cr(this,ap,X4).call(this),cr(this,ap,A8).call(this)}mutate(n,r){var i;return un(this,jh,r),(i=Ce(this,bl))==null||i.removeObserver(this),un(this,bl,Ce(this,P0).getMutationCache().build(Ce(this,P0),this.options)),Ce(this,bl).addObserver(this),Ce(this,bl).execute(n)}},P0=new WeakMap,L0=new WeakMap,bl=new WeakMap,jh=new WeakMap,ap=new WeakSet,X4=function(){var r;const n=((r=Ce(this,bl))==null?void 0:r.state)??Xle();un(this,L0,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},A8=function(n){rs.batch(()=>{var r,i,a,s,o,l,u,d;if(Ce(this,jh)&&this.hasListeners()){const f=Ce(this,L0).variables,p=Ce(this,L0).context;(n==null?void 0:n.type)==="success"?((i=(r=Ce(this,jh)).onSuccess)==null||i.call(r,n.data,f,p),(s=(a=Ce(this,jh)).onSettled)==null||s.call(a,n.data,null,f,p)):(n==null?void 0:n.type)==="error"&&((l=(o=Ce(this,jh)).onError)==null||l.call(o,n.error,f,p),(d=(u=Ce(this,jh)).onSettled)==null||d.call(u,void 0,n.error,f,p))}this.listeners.forEach(f=>{f(Ce(this,L0))})})},Ere),tue=M.createContext(void 0),RT=e=>{const t=M.useContext(tue);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},i$e=({client:e,children:t})=>(M.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),I.jsx(tue.Provider,{value:e,children:t})),nue=M.createContext(!1),a$e=()=>M.useContext(nue);nue.Provider;function s$e(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var o$e=M.createContext(s$e()),l$e=()=>M.useContext(o$e);function rue(e,t){return typeof e=="function"?e(...t):!!e}function u$e(){}var c$e=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},d$e=e=>{M.useEffect(()=>{e.clearReset()},[e])},f$e=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&rue(n,[e.error,r]),h$e=e=>{e.suspense&&(typeof e.staleTime!="number"&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},p$e=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,m$e=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function iue(e,t,n){var u,d,f,p;const r=RT(),i=a$e(),a=l$e(),s=r.defaultQueryOptions(e);(d=(u=r.getDefaultOptions().queries)==null?void 0:u._experimental_beforeQuery)==null||d.call(u,s),s._optimisticResults=i?"isRestoring":"optimistic",h$e(s),c$e(s,a),d$e(a);const[o]=M.useState(()=>new t(r,s)),l=o.getOptimisticResult(s);if(M.useSyncExternalStore(M.useCallback(g=>{const O=i?()=>{}:o.subscribe(rs.batchCalls(g));return o.updateResult(),O},[o,i]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),M.useEffect(()=>{o.setOptions(s,{listeners:!1})},[s,o]),p$e(s,l))throw m$e(s,o,a);if(f$e({result:l,errorResetBoundary:a,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash)}))throw l.error;return(p=(f=r.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||p.call(f,s,l),s.notifyOnChangeProps?l:o.trackResult(l)}function OO(e,t){return iue(e,Jle)}function kp(e,t){const n=RT(),[r]=M.useState(()=>new r$e(n,e));M.useEffect(()=>{r.setOptions(e)},[r,e]);const i=M.useSyncExternalStore(M.useCallback(s=>r.subscribe(rs.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=M.useCallback((s,o)=>{r.mutate(s,o).catch(u$e)},[r]);if(i.error&&rue(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}function mF(e,t){return iue(e,n$e)}const g$e=()=>kp({mutationFn:async e=>(await rr.post("/files",e)).data}),b$e=()=>kp({mutationFn:async e=>rr.put(e.url,new Blob([e.file]),{headers:{Authorization:void 0,"Content-Type":e.file.type}})}),y$e=()=>kp({mutationFn:async e=>{const{exportType:t,content:n,fileName:r}=e;return await rr.post("/files/export-markdown",{exportType:t,content:n,fileName:r},{responseType:"blob",headers:{Accept:"application/octet-stream"}})}}),v$e=()=>{const{enqueueSnackbar:e}=CT(),t=Pr(xp),n=Pr(mR),r=y$e(),i=M.useCallback(async l=>{var u,d,f;try{const p=((d=(u=t.doc)==null?void 0:u.getRoot().content)==null?void 0:d.toString())||"",g=((f=n.data)==null?void 0:f.title)||"codepair_document";e(`${l.toUpperCase()} file export started`,{variant:"info"});const O=await r.mutateAsync({exportType:l,content:p,fileName:g}),S=O.headers["content-disposition"],T=S==null?void 0:S.match(/filename="?(.+)"?\s*$/i),w=T?T[1]:`${g}.${l}`,x=new Blob([O.data],{type:O.headers["content-type"]}),k=window.URL.createObjectURL(x),_=document.createElement("a");_.href=k,_.setAttribute("download",w),document.body.appendChild(_),_.click(),document.body.removeChild(_),window.URL.revokeObjectURL(k),e(`${l.toUpperCase()} file exported successfully`,{variant:"success"})}catch(p){console.error("Error:",p),e(`Failed to export ${l.toUpperCase()} file`,{variant:"error"})}},[t,n,e,r]);return{handleExportToPDF:()=>i("pdf"),handleExportToHTML:()=>i("html"),handleExportToMarkdown:()=>i("markdown")}};function O$e(){const[e,t]=M.useState(null),n=o=>{t(o.currentTarget)},r=()=>{t(null)},{handleExportToPDF:i,handleExportToHTML:a,handleExportToMarkdown:s}=v$e();return I.jsxs(Hs,{children:[I.jsx(So,{"aria-controls":"download-menu","aria-haspopup":"true",onClick:n,children:I.jsx(f9e,{})}),I.jsxs(poe,{id:"download-menu",anchorEl:e,keepMounted:!0,open:!!e,onClose:r,children:[I.jsx(Od,{onClick:i,children:"Download as PDF"}),I.jsx(Od,{onClick:a,children:"Download as HTML"}),I.jsx(Od,{onClick:s,children:"Download as Markdown"})]})]})}var gF={},S$e=Pi;Object.defineProperty(gF,"__esModule",{value:!0});var aue=gF.default=void 0,E$e=S$e(na()),w$e=I;aue=gF.default=(0,E$e.default)((0,w$e.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");function _8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.type==="checkbox",wy=e=>e instanceof Date,jo=e=>e==null;const sue=e=>typeof e=="object";var Qa=e=>!jo(e)&&!Array.isArray(e)&&sue(e)&&!wy(e),oue=e=>Qa(e)&&e.target?IT(e.target)?e.target.checked:e.target.value:e,C$e=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,lue=(e,t)=>e.has(C$e(t)),R$e=e=>{const t=e.constructor&&e.constructor.prototype;return Qa(t)&&t.hasOwnProperty("isPrototypeOf")},bF=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function hl(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(!(bF&&(e instanceof Blob||e instanceof FileList))&&(n||Qa(e)))if(t=n?[]:{},!n&&!R$e(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=hl(e[r]));else return e;return t}var gR=e=>Array.isArray(e)?e.filter(Boolean):[],Ta=e=>e===void 0,Xt=(e,t,n)=>{if(!t||!Qa(e))return n;const r=gR(t.split(/[,[\].]+?/)).reduce((i,a)=>jo(i)?i:i[a],e);return Ta(r)||r===e?Ta(e[t])?n:e[t]:r},rc=e=>typeof e=="boolean",yF=e=>/^\w*$/.test(e),uue=e=>gR(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Oi=(e,t,n)=>{let r=-1;const i=yF(t)?[t]:uue(t),a=i.length,s=a-1;for(;++rsn.useContext(cue),due=e=>{const{children:t,...n}=e;return sn.createElement(cue.Provider,{value:n},t)};var fue=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const s=a;return t._proxyFormState[s]!==gd.all&&(t._proxyFormState[s]=!r||gd.all),n&&(n[s]=!0),e[s]}});return i},yl=e=>Qa(e)&&!Object.keys(e).length,hue=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return yl(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(s=>t[s]===(!r||gd.all))},c2=e=>Array.isArray(e)?e:[e],pue=(e,t,n)=>!e||!t||e===t||c2(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function OF(e){const t=sn.useRef(e);t.current=e,sn.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function I$e(e){const t=vF(),{control:n=t.control,disabled:r,name:i,exact:a}=e||{},[s,o]=sn.useState(n._formState),l=sn.useRef(!0),u=sn.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=sn.useRef(i);return d.current=i,OF({disabled:r,next:f=>l.current&&pue(d.current,f.name,a)&&hue(f,u.current,n._updateFormState)&&o({...n._formState,...f}),subject:n._subjects.state}),sn.useEffect(()=>(l.current=!0,u.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),fue(s,n,u.current,!1)}var wf=e=>typeof e=="string",mue=(e,t,n,r,i)=>wf(e)?(r&&t.watch.add(e),Xt(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),Xt(n,a))):(r&&(t.watchAll=!0),n);function gue(e){const t=vF(),{control:n=t.control,name:r,defaultValue:i,disabled:a,exact:s}=e||{},o=sn.useRef(r);o.current=r,OF({disabled:a,subject:n._subjects.values,next:d=>{pue(o.current,d.name,s)&&u(hl(mue(o.current,n._names,d.values||n._formValues,!1,i)))}});const[l,u]=sn.useState(n._getWatch(r,i));return sn.useEffect(()=>n._removeUnmounted()),l}function Vf(e){const t=vF(),{name:n,disabled:r,control:i=t.control,shouldUnregister:a}=e,s=lue(i._names.array,n),o=gue({control:i,name:n,defaultValue:Xt(i._formValues,n,Xt(i._defaultValues,n,e.defaultValue)),exact:!0}),l=I$e({control:i,name:n,exact:!0}),u=sn.useRef(i.register(n,{...e.rules,value:o,...rc(e.disabled)?{disabled:e.disabled}:{}}));return sn.useEffect(()=>{const d=i._options.shouldUnregister||a,f=(p,g)=>{const O=Xt(i._fields,p);O&&O._f&&(O._f.mount=g)};if(f(n,!0),d){const p=hl(Xt(i._options.defaultValues,n));Oi(i._defaultValues,n,p),Ta(Xt(i._formValues,n))&&Oi(i._formValues,n,p)}return()=>{(s?d&&!i._state.action:d)?i.unregister(n):f(n,!1)}},[n,i,s,a]),sn.useEffect(()=>{Xt(i._fields,n)&&i._updateDisabledField({disabled:r,fields:i._fields,name:n,value:Xt(i._fields,n)._f.value})},[r,n,i]),{field:{name:n,value:o,...rc(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:sn.useCallback(d=>u.current.onChange({target:{value:oue(d),name:n},type:IC.CHANGE}),[n]),onBlur:sn.useCallback(()=>u.current.onBlur({target:{value:Xt(i._formValues,n),name:n},type:IC.BLUR}),[n,i]),ref:sn.useCallback(d=>{const f=Xt(i._fields,n);f&&d&&(f._f.ref={focus:()=>d.focus(),select:()=>d.select(),setCustomValidity:p=>d.setCustomValidity(p),reportValidity:()=>d.reportValidity()})},[i._fields,n])},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Xt(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!Xt(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Xt(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Xt(l.validatingFields,n)},error:{enumerable:!0,get:()=>Xt(l.errors,n)}})}}var N$e=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},HZ=e=>({isOnSubmit:!e||e===gd.onSubmit,isOnBlur:e===gd.onBlur,isOnChange:e===gd.onChange,isOnAll:e===gd.all,isOnTouch:e===gd.onTouched}),QZ=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const d2=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const a=Xt(e,i);if(a){const{_f:s,...o}=a;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],i)&&!r)return!0;if(s.ref&&t(s.ref,s.name)&&!r)return!0;if(d2(o,t))break}else if(Qa(o)&&d2(o,t))break}}};var D$e=(e,t,n)=>{const r=c2(Xt(e,n));return Oi(r,"root",t[n]),Oi(e,n,r),e},SF=e=>e.type==="file",qh=e=>typeof e=="function",NC=e=>{if(!bF)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},K4=e=>wf(e),EF=e=>e.type==="radio",DC=e=>e instanceof RegExp;const WZ={value:!1,isValid:!1},VZ={value:!0,isValid:!0};var bue=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&&!Ta(e[0].attributes.value)?Ta(e[0].value)||e[0].value===""?VZ:{value:e[0].value,isValid:!0}:VZ:WZ}return WZ};const qZ={isValid:!1,value:null};var yue=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,qZ):qZ;function GZ(e,t,n="validate"){if(K4(e)||Array.isArray(e)&&e.every(K4)||rc(e)&&!e)return{type:n,message:K4(e)?e:"",ref:t}}var Ub=e=>Qa(e)&&!DC(e)?e:{value:e,message:""},YZ=async(e,t,n,r,i)=>{const{ref:a,refs:s,required:o,maxLength:l,minLength:u,min:d,max:f,pattern:p,validate:g,name:O,valueAsNumber:S,mount:T,disabled:w}=e._f,x=Xt(t,O);if(!T||w)return{};const k=s?s[0]:a,_=W=>{r&&k.reportValidity&&(k.setCustomValidity(rc(W)?"":W||""),k.reportValidity())},R={},N=EF(a),D=IT(a),L=N||D,j=(S||SF(a))&&Ta(a.value)&&Ta(x)||NC(a)&&a.value===""||x===""||Array.isArray(x)&&!x.length,B=N$e.bind(null,O,n,R),V=(W,re,ee,q=Ch.maxLength,te=Ch.minLength)=>{const K=W?re:ee;R[O]={type:W?q:te,message:K,ref:a,...B(W?q:te,K)}};if(i?!Array.isArray(x)||!x.length:o&&(!L&&(j||jo(x))||rc(x)&&!x||D&&!bue(s).isValid||N&&!yue(s).isValid)){const{value:W,message:re}=K4(o)?{value:!!o,message:o}:Ub(o);if(W&&(R[O]={type:Ch.required,message:re,ref:k,...B(Ch.required,re)},!n))return _(re),R}if(!j&&(!jo(d)||!jo(f))){let W,re;const ee=Ub(f),q=Ub(d);if(!jo(x)&&!isNaN(x)){const te=a.valueAsNumber||x&&+x;jo(ee.value)||(W=te>ee.value),jo(q.value)||(re=tenew Date(new Date().toDateString()+" "+H),G=a.type=="time",ie=a.type=="week";wf(ee.value)&&x&&(W=G?K(x)>K(ee.value):ie?x>ee.value:te>new Date(ee.value)),wf(q.value)&&x&&(re=G?K(x)+W.value,q=!jo(re.value)&&x.length<+re.value;if((ee||q)&&(V(ee,W.message,re.message),!n))return _(R[O].message),R}if(p&&!j&&wf(x)){const{value:W,message:re}=Ub(p);if(DC(W)&&!x.match(W)&&(R[O]={type:Ch.pattern,message:re,ref:a,...B(Ch.pattern,re)},!n))return _(re),R}if(g){if(qh(g)){const W=await g(x,t),re=GZ(W,k);if(re&&(R[O]={...re,...B(Ch.validate,re.message)},!n))return _(re.message),R}else if(Qa(g)){let W={};for(const re in g){if(!yl(W)&&!n)break;const ee=GZ(await g[re](x,t),k,re);ee&&(W={...ee,...B(re,ee.message)},_(ee.message),n&&(R[O]=W))}if(!yl(W)&&(R[O]={ref:k,...W},!n))return R}}return _(!0),R};function P$e(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{let e=[];return{get observers(){return e},next:i=>{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}},PC=e=>jo(e)||!sue(e);function T0(e,t){if(PC(e)||PC(t))return e===t;if(wy(e)&&wy(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const s=t[i];if(wy(a)&&wy(s)||Qa(a)&&Qa(s)||Array.isArray(a)&&Array.isArray(s)?!T0(a,s):a!==s)return!1}}return!0}var vue=e=>e.type==="select-multiple",M$e=e=>EF(e)||IT(e),iD=e=>NC(e)&&e.isConnected,Oue=e=>{for(const t in e)if(qh(e[t]))return!0;return!1};function LC(e,t={}){const n=Array.isArray(e);if(Qa(e)||n)for(const r in e)Array.isArray(e[r])||Qa(e[r])&&!Oue(e[r])?(t[r]=Array.isArray(e[r])?[]:{},LC(e[r],t[r])):jo(e[r])||(t[r]=!0);return t}function Sue(e,t,n){const r=Array.isArray(e);if(Qa(e)||r)for(const i in e)Array.isArray(e[i])||Qa(e[i])&&!Oue(e[i])?Ta(t)||PC(n[i])?n[i]=Array.isArray(e[i])?LC(e[i],[]):{...LC(e[i])}:Sue(e[i],jo(t)?{}:t[i],n[i]):n[i]=!T0(e[i],t[i]);return n}var TA=(e,t)=>Sue(e,t,LC(t)),Eue=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Ta(e)?e:t?e===""?NaN:e&&+e:n&&wf(e)?new Date(e):r?r(e):e;function aD(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return SF(t)?t.files:EF(t)?yue(e.refs).value:vue(t)?[...t.selectedOptions].map(({value:n})=>n):IT(t)?bue(e.refs).value:Eue(Ta(t.value)?e.ref.value:t.value,e)}var $$e=(e,t,n,r)=>{const i={};for(const a of e){const s=Xt(t,a);s&&Oi(i,a,s._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},iE=e=>Ta(e)?e:DC(e)?e.source:Qa(e)?DC(e.value)?e.value.source:e.value:e;const ZZ="AsyncFunction";var F$e=e=>(!e||!e.validate)&&!!(qh(e.validate)&&e.validate.constructor.name===ZZ||Qa(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===ZZ)),B$e=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function XZ(e,t,n){const r=Xt(e,n);if(r||yF(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),s=Xt(t,a),o=Xt(e,a);if(s&&!Array.isArray(s)&&n!==a)return{name:n};if(o&&o.type)return{name:a,error:o};i.pop()}return{name:n}}var U$e=(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,z$e=(e,t)=>!gR(Xt(e,t)).length&&Ja(e,t);const j$e={mode:gd.onSubmit,reValidateMode:gd.onChange,shouldFocusError:!0};function H$e(e={}){let t={...j$e,...e},n={submitCount:0,isDirty:!1,isLoading:qh(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=Qa(t.defaultValues)||Qa(t.values)?hl(t.defaultValues||t.values)||{}:{},a=t.shouldUnregister?{}:hl(i),s={action:!1,mount:!1,watch:!1},o={mount:new Set,unMount:new Set,array:new Set,watch:new Set},l,u=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={values:rD(),array:rD(),state:rD()},p=HZ(t.mode),g=HZ(t.reValidateMode),O=t.criteriaMode===gd.all,S=de=>_e=>{clearTimeout(u),u=setTimeout(de,_e)},T=async de=>{if(d.isValid||de){const _e=t.resolver?yl((await L()).errors):await B(r,!0);_e!==n.isValid&&f.state.next({isValid:_e})}},w=(de,_e)=>{(d.isValidating||d.validatingFields)&&((de||Array.from(o.mount)).forEach(Ne=>{Ne&&(_e?Oi(n.validatingFields,Ne,_e):Ja(n.validatingFields,Ne))}),f.state.next({validatingFields:n.validatingFields,isValidating:!yl(n.validatingFields)}))},x=(de,_e=[],Ne,et,dt=!0,tt=!0)=>{if(et&&Ne){if(s.action=!0,tt&&Array.isArray(Xt(r,de))){const yt=Ne(Xt(r,de),et.argA,et.argB);dt&&Oi(r,de,yt)}if(tt&&Array.isArray(Xt(n.errors,de))){const yt=Ne(Xt(n.errors,de),et.argA,et.argB);dt&&Oi(n.errors,de,yt),z$e(n.errors,de)}if(d.touchedFields&&tt&&Array.isArray(Xt(n.touchedFields,de))){const yt=Ne(Xt(n.touchedFields,de),et.argA,et.argB);dt&&Oi(n.touchedFields,de,yt)}d.dirtyFields&&(n.dirtyFields=TA(i,a)),f.state.next({name:de,isDirty:W(de,_e),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Oi(a,de,_e)},k=(de,_e)=>{Oi(n.errors,de,_e),f.state.next({errors:n.errors})},_=de=>{n.errors=de,f.state.next({errors:n.errors,isValid:!1})},R=(de,_e,Ne,et)=>{const dt=Xt(r,de);if(dt){const tt=Xt(a,de,Ta(Ne)?Xt(i,de):Ne);Ta(tt)||et&&et.defaultChecked||_e?Oi(a,de,_e?tt:aD(dt._f)):q(de,tt),s.mount&&T()}},N=(de,_e,Ne,et,dt)=>{let tt=!1,yt=!1;const tn={name:de},Fe=!!(Xt(r,de)&&Xt(r,de)._f&&Xt(r,de)._f.disabled);if(!Ne||et){d.isDirty&&(yt=n.isDirty,n.isDirty=tn.isDirty=W(),tt=yt!==tn.isDirty);const we=Fe||T0(Xt(i,de),_e);yt=!!(!Fe&&Xt(n.dirtyFields,de)),we||Fe?Ja(n.dirtyFields,de):Oi(n.dirtyFields,de,!0),tn.dirtyFields=n.dirtyFields,tt=tt||d.dirtyFields&&yt!==!we}if(Ne){const we=Xt(n.touchedFields,de);we||(Oi(n.touchedFields,de,Ne),tn.touchedFields=n.touchedFields,tt=tt||d.touchedFields&&we!==Ne)}return tt&&dt&&f.state.next(tn),tt?tn:{}},D=(de,_e,Ne,et)=>{const dt=Xt(n.errors,de),tt=d.isValid&&rc(_e)&&n.isValid!==_e;if(e.delayError&&Ne?(l=S(()=>k(de,Ne)),l(e.delayError)):(clearTimeout(u),l=null,Ne?Oi(n.errors,de,Ne):Ja(n.errors,de)),(Ne?!T0(dt,Ne):dt)||!yl(et)||tt){const yt={...et,...tt&&rc(_e)?{isValid:_e}:{},errors:n.errors,name:de};n={...n,...yt},f.state.next(yt)}},L=async de=>{w(de,!0);const _e=await t.resolver(a,t.context,$$e(de||o.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return w(de),_e},j=async de=>{const{errors:_e}=await L(de);if(de)for(const Ne of de){const et=Xt(_e,Ne);et?Oi(n.errors,Ne,et):Ja(n.errors,Ne)}else n.errors=_e;return _e},B=async(de,_e,Ne={valid:!0})=>{for(const et in de){const dt=de[et];if(dt){const{_f:tt,...yt}=dt;if(tt){const tn=o.array.has(tt.name),Fe=dt._f&&F$e(dt._f);Fe&&d.validatingFields&&w([et],!0);const we=await YZ(dt,a,O,t.shouldUseNativeValidation&&!_e,tn);if(Fe&&d.validatingFields&&w([et]),we[tt.name]&&(Ne.valid=!1,_e))break;!_e&&(Xt(we,tt.name)?tn?D$e(n.errors,we,tt.name):Oi(n.errors,tt.name,we[tt.name]):Ja(n.errors,tt.name))}!yl(yt)&&await B(yt,_e,Ne)}}return Ne.valid},V=()=>{for(const de of o.unMount){const _e=Xt(r,de);_e&&(_e._f.refs?_e._f.refs.every(Ne=>!iD(Ne)):!iD(_e._f.ref))&&ae(de)}o.unMount=new Set},W=(de,_e)=>(de&&_e&&Oi(a,de,_e),!T0(Re(),i)),re=(de,_e,Ne)=>mue(de,o,{...s.mount?a:Ta(_e)?i:wf(de)?{[de]:_e}:_e},Ne,_e),ee=de=>gR(Xt(s.mount?a:i,de,e.shouldUnregister?Xt(i,de,[]):[])),q=(de,_e,Ne={})=>{const et=Xt(r,de);let dt=_e;if(et){const tt=et._f;tt&&(!tt.disabled&&Oi(a,de,Eue(_e,tt)),dt=NC(tt.ref)&&jo(_e)?"":_e,vue(tt.ref)?[...tt.ref.options].forEach(yt=>yt.selected=dt.includes(yt.value)):tt.refs?IT(tt.ref)?tt.refs.length>1?tt.refs.forEach(yt=>(!yt.defaultChecked||!yt.disabled)&&(yt.checked=Array.isArray(dt)?!!dt.find(tn=>tn===yt.value):dt===yt.value)):tt.refs[0]&&(tt.refs[0].checked=!!dt):tt.refs.forEach(yt=>yt.checked=yt.value===dt):SF(tt.ref)?tt.ref.value="":(tt.ref.value=dt,tt.ref.type||f.values.next({name:de,values:{...a}})))}(Ne.shouldDirty||Ne.shouldTouch)&&N(de,dt,Ne.shouldTouch,Ne.shouldDirty,!0),Ne.shouldValidate&&H(de)},te=(de,_e,Ne)=>{for(const et in _e){const dt=_e[et],tt=`${de}.${et}`,yt=Xt(r,tt);(o.array.has(de)||!PC(dt)||yt&&!yt._f)&&!wy(dt)?te(tt,dt,Ne):q(tt,dt,Ne)}},K=(de,_e,Ne={})=>{const et=Xt(r,de),dt=o.array.has(de),tt=hl(_e);Oi(a,de,tt),dt?(f.array.next({name:de,values:{...a}}),(d.isDirty||d.dirtyFields)&&Ne.shouldDirty&&f.state.next({name:de,dirtyFields:TA(i,a),isDirty:W(de,tt)})):et&&!et._f&&!jo(tt)?te(de,tt,Ne):q(de,tt,Ne),QZ(de,o)&&f.state.next({...n}),f.values.next({name:s.mount?de:void 0,values:{...a}})},G=async de=>{s.mount=!0;const _e=de.target;let Ne=_e.name,et=!0;const dt=Xt(r,Ne),tt=()=>_e.type?aD(dt._f):oue(de),yt=tn=>{et=Number.isNaN(tn)||T0(tn,Xt(a,Ne,tn))};if(dt){let tn,Fe;const we=tt(),be=de.type===IC.BLUR||de.type===IC.FOCUS_OUT,xe=!B$e(dt._f)&&!t.resolver&&!Xt(n.errors,Ne)&&!dt._f.deps||U$e(be,Xt(n.touchedFields,Ne),n.isSubmitted,g,p),Ue=QZ(Ne,o,be);Oi(a,Ne,we),be?(dt._f.onBlur&&dt._f.onBlur(de),l&&l(0)):dt._f.onChange&&dt._f.onChange(de);const It=N(Ne,we,be,!1),Gt=!yl(It)||Ue;if(!be&&f.values.next({name:Ne,type:de.type,values:{...a}}),xe)return d.isValid&&(e.mode==="onBlur"?be&&T():T()),Gt&&f.state.next({name:Ne,...Ue?{}:It});if(!be&&Ue&&f.state.next({...n}),t.resolver){const{errors:rt}=await L([Ne]);if(yt(we),et){const Vt=XZ(n.errors,r,Ne),Qt=XZ(rt,r,Vt.name||Ne);tn=Qt.error,Ne=Qt.name,Fe=yl(rt)}}else w([Ne],!0),tn=(await YZ(dt,a,O,t.shouldUseNativeValidation))[Ne],w([Ne]),yt(we),et&&(tn?Fe=!1:d.isValid&&(Fe=await B(r,!0)));et&&(dt._f.deps&&H(dt._f.deps),D(Ne,Fe,tn,It))}},ie=(de,_e)=>{if(Xt(n.errors,_e)&&de.focus)return de.focus(),1},H=async(de,_e={})=>{let Ne,et;const dt=c2(de);if(t.resolver){const tt=await j(Ta(de)?de:dt);Ne=yl(tt),et=de?!dt.some(yt=>Xt(tt,yt)):Ne}else de?(et=(await Promise.all(dt.map(async tt=>{const yt=Xt(r,tt);return await B(yt&&yt._f?{[tt]:yt}:yt)}))).every(Boolean),!(!et&&!n.isValid)&&T()):et=Ne=await B(r);return f.state.next({...!wf(de)||d.isValid&&Ne!==n.isValid?{}:{name:de},...t.resolver||!de?{isValid:Ne}:{},errors:n.errors}),_e.shouldFocus&&!et&&d2(r,ie,de?dt:o.mount),et},Re=de=>{const _e={...s.mount?a:i};return Ta(de)?_e:wf(de)?Xt(_e,de):de.map(Ne=>Xt(_e,Ne))},Se=(de,_e)=>({invalid:!!Xt((_e||n).errors,de),isDirty:!!Xt((_e||n).dirtyFields,de),error:Xt((_e||n).errors,de),isValidating:!!Xt(n.validatingFields,de),isTouched:!!Xt((_e||n).touchedFields,de)}),Z=de=>{de&&c2(de).forEach(_e=>Ja(n.errors,_e)),f.state.next({errors:de?n.errors:{}})},ke=(de,_e,Ne)=>{const et=(Xt(r,de,{_f:{}})._f||{}).ref,dt=Xt(n.errors,de)||{},{ref:tt,message:yt,type:tn,...Fe}=dt;Oi(n.errors,de,{...Fe,..._e,ref:et}),f.state.next({name:de,errors:n.errors,isValid:!1}),Ne&&Ne.shouldFocus&&et&&et.focus&&et.focus()},$e=(de,_e)=>qh(de)?f.values.subscribe({next:Ne=>de(re(void 0,_e),Ne)}):re(de,_e,!0),ae=(de,_e={})=>{for(const Ne of de?c2(de):o.mount)o.mount.delete(Ne),o.array.delete(Ne),_e.keepValue||(Ja(r,Ne),Ja(a,Ne)),!_e.keepError&&Ja(n.errors,Ne),!_e.keepDirty&&Ja(n.dirtyFields,Ne),!_e.keepTouched&&Ja(n.touchedFields,Ne),!_e.keepIsValidating&&Ja(n.validatingFields,Ne),!t.shouldUnregister&&!_e.keepDefaultValue&&Ja(i,Ne);f.values.next({values:{...a}}),f.state.next({...n,..._e.keepDirty?{isDirty:W()}:{}}),!_e.keepIsValid&&T()},Je=({disabled:de,name:_e,field:Ne,fields:et,value:dt})=>{if(rc(de)&&s.mount||de){const tt=de?void 0:Ta(dt)?aD(Ne?Ne._f:Xt(et,_e)._f):dt;Oi(a,_e,tt),N(_e,tt,!1,!1,!0)}},We=(de,_e={})=>{let Ne=Xt(r,de);const et=rc(_e.disabled)||rc(e.disabled);return Oi(r,de,{...Ne||{},_f:{...Ne&&Ne._f?Ne._f:{ref:{name:de}},name:de,mount:!0,..._e}}),o.mount.add(de),Ne?Je({field:Ne,disabled:rc(_e.disabled)?_e.disabled:e.disabled,name:de,value:_e.value}):R(de,!0,_e.value),{...et?{disabled:_e.disabled||e.disabled}:{},...t.progressive?{required:!!_e.required,min:iE(_e.min),max:iE(_e.max),minLength:iE(_e.minLength),maxLength:iE(_e.maxLength),pattern:iE(_e.pattern)}:{},name:de,onChange:G,onBlur:G,ref:dt=>{if(dt){We(de,_e),Ne=Xt(r,de);const tt=Ta(dt.value)&&dt.querySelectorAll&&dt.querySelectorAll("input,select,textarea")[0]||dt,yt=M$e(tt),tn=Ne._f.refs||[];if(yt?tn.find(Fe=>Fe===tt):tt===Ne._f.ref)return;Oi(r,de,{_f:{...Ne._f,...yt?{refs:[...tn.filter(iD),tt,...Array.isArray(Xt(i,de))?[{}]:[]],ref:{type:tt.type,name:de}}:{ref:tt}}}),R(de,!1,void 0,tt)}else Ne=Xt(r,de,{}),Ne._f&&(Ne._f.mount=!1),(t.shouldUnregister||_e.shouldUnregister)&&!(lue(o.array,de)&&s.action)&&o.unMount.add(de)}}},Xe=()=>t.shouldFocusError&&d2(r,ie,o.mount),At=de=>{rc(de)&&(f.state.next({disabled:de}),d2(r,(_e,Ne)=>{const et=Xt(r,Ne);et&&(_e.disabled=et._f.disabled||de,Array.isArray(et._f.refs)&&et._f.refs.forEach(dt=>{dt.disabled=et._f.disabled||de}))},0,!1))},st=(de,_e)=>async Ne=>{let et;Ne&&(Ne.preventDefault&&Ne.preventDefault(),Ne.persist&&Ne.persist());let dt=hl(a);if(f.state.next({isSubmitting:!0}),t.resolver){const{errors:tt,values:yt}=await L();n.errors=tt,dt=yt}else await B(r);if(Ja(n.errors,"root"),yl(n.errors)){f.state.next({errors:{}});try{await de(dt,Ne)}catch(tt){et=tt}}else _e&&await _e({...n.errors},Ne),Xe(),setTimeout(Xe);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:yl(n.errors)&&!et,submitCount:n.submitCount+1,errors:n.errors}),et)throw et},Lt=(de,_e={})=>{Xt(r,de)&&(Ta(_e.defaultValue)?K(de,hl(Xt(i,de))):(K(de,_e.defaultValue),Oi(i,de,hl(_e.defaultValue))),_e.keepTouched||Ja(n.touchedFields,de),_e.keepDirty||(Ja(n.dirtyFields,de),n.isDirty=_e.defaultValue?W(de,hl(Xt(i,de))):W()),_e.keepError||(Ja(n.errors,de),d.isValid&&T()),f.state.next({...n}))},Ht=(de,_e={})=>{const Ne=de?hl(de):i,et=hl(Ne),dt=yl(de),tt=dt?i:et;if(_e.keepDefaultValues||(i=Ne),!_e.keepValues){if(_e.keepDirtyValues)for(const yt of o.mount)Xt(n.dirtyFields,yt)?Oi(tt,yt,Xt(a,yt)):K(yt,Xt(tt,yt));else{if(bF&&Ta(de))for(const yt of o.mount){const tn=Xt(r,yt);if(tn&&tn._f){const Fe=Array.isArray(tn._f.refs)?tn._f.refs[0]:tn._f.ref;if(NC(Fe)){const we=Fe.closest("form");if(we){we.reset();break}}}}r={}}a=e.shouldUnregister?_e.keepDefaultValues?hl(i):{}:hl(tt),f.array.next({values:{...tt}}),f.values.next({values:{...tt}})}o={mount:_e.keepDirtyValues?o.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!d.isValid||!!_e.keepIsValid||!!_e.keepDirtyValues,s.watch=!!e.shouldUnregister,f.state.next({submitCount:_e.keepSubmitCount?n.submitCount:0,isDirty:dt?!1:_e.keepDirty?n.isDirty:!!(_e.keepDefaultValues&&!T0(de,i)),isSubmitted:_e.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:dt?{}:_e.keepDirtyValues?_e.keepDefaultValues&&a?TA(i,a):n.dirtyFields:_e.keepDefaultValues&&de?TA(i,de):_e.keepDirty?n.dirtyFields:{},touchedFields:_e.keepTouched?n.touchedFields:{},errors:_e.keepErrors?n.errors:{},isSubmitSuccessful:_e.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},ft=(de,_e)=>Ht(qh(de)?de(a):de,_e);return{control:{register:We,unregister:ae,getFieldState:Se,handleSubmit:st,setError:ke,_executeSchema:L,_getWatch:re,_getDirty:W,_updateValid:T,_removeUnmounted:V,_updateFieldArray:x,_updateDisabledField:Je,_getFieldArray:ee,_reset:Ht,_resetDefaultValues:()=>qh(t.defaultValues)&&t.defaultValues().then(de=>{ft(de,t.resetOptions),f.state.next({isLoading:!1})}),_updateFormState:de=>{n={...n,...de}},_disableForm:At,_subjects:f,_proxyFormState:d,_setErrors:_,get _fields(){return r},get _formValues(){return a},get _state(){return s},set _state(de){s=de},get _defaultValues(){return i},get _names(){return o},set _names(de){o=de},get _formState(){return n},set _formState(de){n=de},get _options(){return t},set _options(de){t={...t,...de}}},trigger:H,register:We,handleSubmit:st,watch:$e,setValue:K,getValues:Re,reset:ft,resetField:Lt,clearErrors:Z,unregister:ae,setError:ke,setFocus:(de,_e={})=>{const Ne=Xt(r,de),et=Ne&&Ne._f;if(et){const dt=et.refs?et.refs[0]:et.ref;dt.focus&&(dt.focus(),_e.shouldSelect&&dt.select())}},getFieldState:Se}}function wue(e={}){const t=sn.useRef(),n=sn.useRef(),[r,i]=sn.useState({isDirty:!1,isValidating:!1,isLoading:qh(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:qh(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...H$e(e),formState:r});const a=t.current.control;return a._options=e,OF({subject:a._subjects.state,next:s=>{hue(s,a._proxyFormState,a._updateFormState,!0)&&i({...a._formState})}}),sn.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),sn.useEffect(()=>{if(a._proxyFormState.isDirty){const s=a._getDirty();s!==r.isDirty&&a._subjects.state.next({isDirty:s})}},[a,r.isDirty]),sn.useEffect(()=>{e.values&&!T0(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values,i(s=>({...s}))):a._resetDefaultValues()},[e.values,a]),sn.useEffect(()=>{e.errors&&a._setErrors(e.errors)},[e.errors,a]),sn.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),sn.useEffect(()=>{e.shouldUnregister&&a._subjects.values.next({values:a._getWatch()})},[e.shouldUnregister,a]),t.current.formState=fue(r,a),t.current}var wF={},Q$e=Pi;Object.defineProperty(wF,"__esModule",{value:!0});var Tue=wF.default=void 0,W$e=Q$e(na()),V$e=I;Tue=wF.default=(0,W$e.default)((0,V$e.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 TF={},q$e=Pi;Object.defineProperty(TF,"__esModule",{value:!0});var xue=TF.default=void 0,G$e=q$e(na()),Y$e=I;xue=TF.default=(0,G$e.default)((0,Y$e.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 C8(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 iFe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function aFe(e,t){return Z$e(e)||eFe(e,t)||Aue(e,t)||tFe()}function kue(e){return X$e(e)||J$e(e)||Aue(e)||nFe()}function sFe(e){"@swc/helpers - typeof";return e&&typeof Symbol<"u"&&e.constructor===Symbol?"symbol":typeof e}function Aue(e,t){if(e){if(typeof e=="string")return C8(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 C8(e,t)}}var _ue=M.forwardRef(function(e,t){var n=e.rules,r=n===void 0?{}:n,i=e.parseError,a=e.type,s=e.required,o=e.name,l=e.control,u=e.component,d=u===void 0?vT:u,f=e.inputRef,p=e.transform,g=$u(e,["rules","parseError","type","required","name","control","component","inputRef","transform"]),O=Ap(),S=i||O,T=Hn({},r,s&&!r.required&&{required:"This field is required"},a==="email"&&!r.pattern&&{pattern:{value:/^(([^<>()\[\]\\.,;:\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"}}),w=Vf({name:o,control:l,disabled:g.disabled,rules:T}),x=w.field,k=w.fieldState,_=k.error,R=Wf({value:x.value,onChange:x.onChange,transform:{input:typeof(p==null?void 0:p.input)=="function"?p.input:function(j){return j??""},output:typeof(p==null?void 0:p.output)=="function"?p.output:function(j){var B=j.target.value;return a!=="number"?B:B===""?null:B==null?B:Number(B)}}}),N=R.value,D=R.onChange,L=Sr(x.ref,f);return I.jsx(d,Ei(Hn({},g),{name:x.name,value:N,onChange:function(j){D(j),typeof g.onChange=="function"&&g.onChange(j)},onBlur:x.onBlur,required:s,type:a,error:!!_,helperText:_?typeof S=="function"?S(_):_.message:g.helperText,ref:t,inputRef:L}))});_ue.displayName="TextFieldElement";var NT=_ue;function SO(e){var t=e.handleSubmit,n=e.children,r=e.FormProps,i=e.formContext,a=e.onSuccess,s=e.onError,o=$u(e,["handleSubmit","children","FormProps","formContext","onSuccess","onError"]);return i?(typeof a=="function"&&typeof t=="function"&&console.warn("Property `onSuccess` will be ignored because handleSubmit is provided"),I.jsx(due,Ei(Hn({},i),{children:I.jsx("form",Ei(Hn({noValidate:!0},r),{onSubmit:t||(a?i.handleSubmit(a,s):function(){return console.log("submit handler `onSuccess` is missing")}),children:n}))}))):I.jsx(oFe,Hn({onSuccess:a,onError:s,FormProps:r,children:n},o))}function oFe(e){var t=e.onSuccess,n=e.onError,r=e.FormProps,i=e.children,a=$u(e,["onSuccess","onError","FormProps","children"]),s=wue(Hn({},a)),o=s.handleSubmit;return I.jsx(due,Ei(Hn({},s),{children:I.jsx("form",Ei(Hn({onSubmit:o(t||function(){return console.log("submit handler `onSuccess` is missing")},n),noValidate:!0},r),{children:i}))}))}var lFe=M.forwardRef(function(e,t){var n=e.name,r=e.rules,i=r===void 0?{}:r,a=e.required,s=e.parseError,o=e.label,l=e.control,u=e.helperText,d=e.labelProps,f=e.inputRef,p=e.transform,g=$u(e,["name","rules","required","parseError","label","control","helperText","labelProps","inputRef","transform"]),O=Ap(),S=s||O,T=Hn({},i,a&&!i.required&&{required:"This field is required"}),w=Vf({name:n,control:l,disabled:g.disabled,rules:T}),x=w.field,k=w.fieldState,_=k.error,R=Wf({value:x.value,onChange:x.onChange,transform:{input:p==null?void 0:p.input,output:typeof(p==null?void 0:p.output)=="function"?p==null?void 0:p.output:function(B,V){return V}}}),N=R.value,D=R.onChange,L=Sr(x.ref,f),j=_?typeof S=="function"?S(_):_.message:u;return I.jsxs(Mc,{required:a,error:!!_,ref:t,children:[I.jsx(L$,{row:!0,children:I.jsx(ow,Ei(Hn({},d),{label:o||"",control:I.jsx(J5,Ei(Hn({},g),{color:g.color||"primary",sx:kue(Array.isArray(g.sx)?g.sx:[g.sx]).concat([{color:_?"error.main":void 0}]),value:N,checked:!!N,onChange:function(B,V){D(B,V),typeof g.onChange=="function"&&g.onChange(B,V)},inputRef:L}))}))}),j&&I.jsx(mO,{error:!!_,children:j})]})});lFe.displayName="CheckboxElement";var Cue=M.forwardRef(function(e,t){var n,r=e.name,i=e.required,a=e.valueKey,s=a===void 0?"id":a,o=e.labelKey,l=o===void 0?"label":o,u=e.options,d=u===void 0?[]:u,f=e.parseError,p=e.type,g=e.objectOnChange,O=e.rules,S=O===void 0?{}:O,T=e.control,w=e.inputRef,x=e.transform,k=$u(e,["name","required","valueKey","labelKey","options","parseError","type","objectOnChange","rules","control","inputRef","transform"]),_=Ap(),R=f||_,N=!!(!((n=k.SelectProps)===null||n===void 0)&&n.native),D=Hn({},S,i&&!S.required&&{required:"This field is required"}),L=Vf({name:r,rules:D,disabled:k.disabled,control:T}),j=L.field,B=L.fieldState,V=B.error,W=Wf({value:j.value,onChange:j.onChange,transform:{input:typeof(x==null?void 0:x.input)=="function"?x.input:function(te){var K,G;return(G=(K=te==null?void 0:te[s])!==null&&K!==void 0?K:te)!==null&&G!==void 0?G:""},output:typeof(x==null?void 0:x.output)=="function"?x.output:function(te){var K=te.target.value;return p==="number"&&K&&(K=Number(K)),K}}}),re=W.value,ee=W.onChange,q=Sr(j.ref,w);return p==="number"&&(typeof re>"u"?"undefined":sFe(re))<"u"&&(k.InputLabelProps=k.InputLabelProps||{},k.InputLabelProps.shrink=!0),I.jsxs(vT,Ei(Hn({},k),{name:r,value:re,onBlur:j.onBlur,ref:t,onChange:function(te){if(ee(te),typeof k.onChange=="function"){var K=te.target.value;p==="number"&&K&&(K=Number(K)),g&&(K=d.find(function(G){return G[s]===K})),k.onChange(K)}},select:!0,required:i,error:!!V,helperText:V?typeof R=="function"?R(V):V.message:k.helperText,inputRef:q,children:[N&&I.jsx("option",{}),d.map(function(te){var K,G="".concat(r,"_").concat(te[s]),ie={value:(K=te==null?void 0:te[s])!==null&&K!==void 0?K:te,disabled:Sl(te,"disabled")?!!te.disabled:!1,children:te[l]};return N?I.jsx("option",Hn({},ie),G):I.jsx(Od,Hn({},ie),G)})]}))});Cue.displayName="SelectElement";var R8=Cue,uFe=M.forwardRef(function(e,t){var n=e.helperText,r=e.options,i=e.label,a=e.name,s=e.parseError,o=e.required,l=e.labelKey,u=l===void 0?"label":l,d=e.valueKey,f=d===void 0?"id":d,p=e.returnObject,g=e.disabled,O=e.row,S=e.control,T=e.checkboxColor,w=e.rules,x=e.labelProps,k=e.transform,_=e.defaultValue,R=_===void 0?[]:_,N=$u(e,["helperText","options","label","name","parseError","required","labelKey","valueKey","returnObject","disabled","row","control","checkboxColor","rules","labelProps","transform","defaultValue"]),D=Hf(),L=Ap(),j=s||L,B=Vf({name:a,rules:o?{required:"This field is required"}:w,disabled:g,control:S,defaultValue:R}),V=B.field,W=B.fieldState,re=W.error,ee=W.invalid,q=Wf({value:V.value,onChange:V.onChange,transform:{input:typeof(k==null?void 0:k.input)=="function"?k.input:function(H){return Array.isArray(H)?H:[]},output:k==null?void 0:k.output}}),te=q.value,K=q.onChange,G=function(H){var Re=Sl(H,f)?H[f]:H,Se=te.findIndex(function(ke){var $e=Sl(ke,f)?ke[f]:ke;return Re===$e}),Z=(Se===-1?kue(te).concat([H]):te.filter(function(ke,$e){return Se!==$e})).map(function(ke){return p||!Sl(ke,f)?ke:ke[f]});K(Z),typeof N.onChange=="function"&&N.onChange(Z)},ie=re?typeof j=="function"?j(re):re.message:n;return I.jsxs(Mc,{error:ee,required:o,ref:t,children:[i?I.jsx(tR,{children:i}):null,I.jsx(L$,{row:O,children:r.map(function(H){var Re=Sl(H,f)?H[f]:H,Se=Sl(H,u)?H[u]:H,Z=te.some(function(ke){return(Sl(ke,f)?ke[f]:ke)===Re});return M.createElement(ow,Ei(Hn({},x),{control:I.jsx(J5,{sx:{color:re?D.palette.error.main:void 0},color:T,value:Re,checked:Z,disabled:g,onChange:function(){return G(H)}}),label:"".concat(Se),key:"".concat(Re)}))})}),ie&&I.jsx(mO,{children:ie})]})});uFe.displayName="CheckboxButtonGroup";var cFe=48,dFe=8,fFe=M.forwardRef(function(e,t){var n,r,i,a,s,o=e.options,l=e.label,u=l===void 0?"":l,d=e.itemKey,f=d===void 0?"id":d,p=e.itemValue,g=p===void 0?"":p,O=e.itemLabel,S=O===void 0?"label":O,T=e.required,w=T===void 0?!1:T,x=e.rules,k=x===void 0?{}:x,_=e.parseError,R=e.name,N=e.menuMaxHeight,D=N===void 0?cFe*4.5+dFe:N,L=e.menuMaxWidth,j=L===void 0?250:L,B=e.minWidth,V=B===void 0?120:B,W=e.helperText,re=e.showChips,ee=e.preserveOrder,q=e.control,te=e.showCheckbox,K=e.formControlProps,G=e.inputRef,ie=e.transform,H=e.inputLabelProps,Re=$u(e,["options","label","itemKey","itemValue","itemLabel","required","rules","parseError","name","menuMaxHeight","menuMaxWidth","minWidth","helperText","showChips","preserveOrder","control","showCheckbox","formControlProps","inputRef","transform","inputLabelProps"]),Se=Ap(),Z=_||Se,ke=function(Ot){var zt,de;return(de=(zt=o.find(function(_e){var Ne;return((Ne=_e[g||f])!==null&&Ne!==void 0?Ne:_e)===Ot}))===null||zt===void 0?void 0:zt[S])!==null&&de!==void 0?de:Ot},$e=Hn({},k,w&&!k.required&&{required:"This field is required"}),ae=Vf({name:R,rules:$e,disabled:Re.disabled,control:q}),Je=ae.field,We=ae.fieldState,Xe=We.error,At=Wf({value:Je.value,onChange:Je.onChange,transform:{input:typeof(ie==null?void 0:ie.input)=="function"?ie.input:function(Ot){return Array.isArray(Ot)?Ot:[]},output:ie==null?void 0:ie.output}}),st=At.value,Lt=At.onChange,Ht=Sr(Je.ref,G),ft=Xe?typeof Z=="function"?Z(Xe):Xe.message:W,Et;return I.jsxs(Mc,Ei(Hn({},K),{style:Hn({minWidth:V},K==null?void 0:K.style),variant:Re.variant,fullWidth:Re.fullWidth,error:!!Xe,size:Re.size,ref:t,children:[u&&I.jsx(coe,Ei(Hn({},H),{size:Re.size==="small"?"small":H==null?void 0:H.size,error:!!Xe,htmlFor:Re.id||"select-multi-select-".concat(R),required:w,children:u})),I.jsx(z$,Ei(Hn({},Re),{id:Re.id||"select-multi-select-".concat(R),multiple:!0,label:u||void 0,error:!!Xe,value:st,required:w,onChange:Lt,onBlur:Je.onBlur,MenuProps:Ei(Hn({},Re.MenuProps),{slotProps:Ei(Hn({},(n=Re.MenuProps)===null||n===void 0?void 0:n.slotProps),{paper:Hn({},(Et=(i=Re.MenuProps)===null||i===void 0||(r=i.slotProps)===null||r===void 0?void 0:r.paper)!==null&&Et!==void 0?Et:{style:Hn({maxHeight:D,width:j},Sl((s=Re.MenuProps)===null||s===void 0||(a=s.slotProps)===null||a===void 0?void 0:a.paper,"style")&&typeof Re.MenuProps.slotProps.paper.style=="object"&&Hn({},Re.MenuProps.slotProps.paper.style))})})}),renderValue:typeof Re.renderValue=="function"?Re.renderValue:re?function(Ot){return I.jsx("div",{style:{display:"flex",flexWrap:"wrap"},children:(ee?o.filter(function(zt){return Ot.includes(zt)}):Ot||[]).map(function(zt){return I.jsx(noe,{label:ke(zt),style:{display:"flex",flexWrap:"wrap"},onDelete:function(){Lt((Array.isArray(st)?st:[]).filter(function(de){return de!==zt}))},deleteIcon:I.jsx(Tue,{onMouseDown:function(de){de.stopPropagation()}})},zt)})})}:function(Ot){return Array.isArray(Ot)?Ot.map(ke).join(", "):""},inputRef:Ht,children:o.map(function(Ot){var zt=Ot[g||f]||Ot,de=Array.isArray(st)?st.some(function(_e){return _e===zt}):!1;return I.jsxs(Od,{value:zt,sx:{fontWeight:function(_e){return de?_e.typography.fontWeightBold:_e.typography.fontWeightRegular}},children:[te&&I.jsx(J5,{checked:de}),I.jsx(Kh,{primary:Ot[S]||Ot})]},zt)})})),ft&&I.jsx(mO,{error:!!Xe,children:ft})]}))});fFe.displayName="MultiSelectElement";var Rue=M.forwardRef(function(e,t){var n=e.iconColor,r=e.renderIcon,i=r===void 0?function(u){return u?I.jsx(dF,{}):I.jsx(xue,{})}:r,a=$u(e,["iconColor","renderIcon"]),s=aFe(M.useState(!0),2),o=s[0],l=s[1];return I.jsx(NT,Ei(Hn({},a),{ref:t,InputProps:{endAdornment:I.jsx(YP,{position:"end",children:I.jsx(So,{onMouseDown:function(u){return u.preventDefault()},onClick:function(){return l(!o)},tabIndex:-1,color:n??"default",children:i(o)})})},type:o?"password":"text"}))});Rue.displayName="PasswordElement";var hFe=Rue,pFe=M.forwardRef(function(e,t){var n=e.helperText,r=e.options,i=e.label,a=e.name,s=e.parseError,o=e.labelKey,l=o===void 0?"label":o,u=e.valueKey,d=u===void 0?"id":u,f=e.disabledKey,p=f===void 0?"disabled":f,g=e.required,O=e.emptyOptionLabel,S=e.returnObject,T=e.row,w=e.control,x=e.type,k=e.labelProps,_=e.disabled,R=e.formLabelProps,N=e.transform,D=e.rules,L=D===void 0?{}:D,j=$u(e,["helperText","options","label","name","parseError","labelKey","valueKey","disabledKey","required","emptyOptionLabel","returnObject","row","control","type","labelProps","disabled","formLabelProps","transform","rules"]),B=Hf(),V=Ap(),W=s||V,re=Hn({},L,g&&!L.required&&{required:"This field is required"}),ee=Vf({name:a,rules:re,disabled:_,control:w}),q=ee.field,te=ee.fieldState,K=te.error,G=Wf({value:q.value,onChange:q.onChange,transform:{input:typeof(N==null?void 0:N.input)=="function"?N.input:function(Z){return Z||""},output:typeof(N==null?void 0:N.output)=="function"?N==null?void 0:N.output:function(Z,ke){return ke&&x==="number"?Number(ke):ke}}}),ie=G.value,H=G.onChange,Re=K?typeof W=="function"?W(K):K.message:n,Se=function(Z,ke){var $e=S?r.find(function(ae){return ae[d]===ke}):ke;H(Z,$e),typeof j.onChange=="function"&&j.onChange($e)};return I.jsxs(Mc,{error:!!K,ref:t,children:[i&&I.jsx(tR,Ei(Hn({},R),{required:g,error:!!K,children:i})),I.jsxs($Ne,{onChange:Se,name:a,row:T,value:ie,children:[O&&I.jsx(ow,Ei(Hn({},k),{control:I.jsx(EY,{sx:{color:K?B.palette.error.main:void 0},checked:!ie}),label:O,value:""})),r.map(function(Z){var ke=Z[d],$e=Z[p]||!1;ke===void 0&&console.error("RadioButtonGroup: valueKey ".concat(d," does not exist on option"),Z);var ae=S?ie==null?void 0:ie[d]:ie;x==="number"&&(ae=Number(ae));var Je=ae===ke;return M.createElement(ow,Ei(Hn({},k),{control:I.jsx(EY,{sx:{color:K?B.palette.error.main:void 0},disabled:_||$e,checked:Je}),value:ke,label:Z[l],key:ke}))})]}),Re&&I.jsx(mO,{children:Re})]})});pFe.displayName="RadioButtonGroup";var mFe=M.forwardRef(function(e,t){var n=e.name,r=e.control,i=e.switchProps,a=e.transform,s=$u(e,["name","control","switchProps","transform"]),o=Vf({name:n,control:r,disabled:s.disabled}),l=o.field,u=Wf({value:l.value,onChange:l.onChange,transform:{input:a==null?void 0:a.input,output:typeof(a==null?void 0:a.output)=="function"?a.output:function(g,O){return O}}}),d=u.value,f=u.onChange,p=Sr(l.ref,i==null?void 0:i.ref);return I.jsx(ow,Hn({ref:t,control:I.jsx(LDe,Ei(Hn({},i),{name:l.name,value:d,onChange:function(g,O){f(g,O),typeof(i==null?void 0:i.onChange)=="function"&&i.onChange(g,O)},onBlur:function(g){l.onBlur(),typeof(i==null?void 0:i.onBlur)=="function"&&(i==null||i.onBlur(g))},ref:p,checked:!!d}))},s))});mFe.displayName="SwitchElement";var gFe=M.forwardRef(function(e,t){var n=e.passwordFieldName,r=e.customInvalidFieldMessage,i=e.control,a=$u(e,["passwordFieldName","customInvalidFieldMessage","control"]),s=gue({name:n,control:i});return I.jsx(hFe,Ei(Hn({control:i},a),{ref:t,rules:{validate:function(o){return o===s||(r??"Password should match")}}}))});gFe.displayName="PasswordRepeatElement";var bFe=M.forwardRef(function(e,t){var n=e.textFieldProps,r=e.autocompleteProps,i=e.name,a=e.control,s=e.options,o=e.loading,l=e.showCheckbox,u=e.rules,d=e.loadingIndicator,f=e.required,p=e.multiple,g=e.label,O=e.parseError,S=e.transform,T=e.matchId,w=Ap(),x=O||w,k=Hn({},u,f&&{required:(u==null?void 0:u.required)||"This field is required"}),_=Vf({name:i,control:a,disabled:r==null?void 0:r.disabled,rules:k}),R=_.field,N=_.fieldState,D=N.error,L=function(K){return typeof(r==null?void 0:r.getOptionLabel)=="function"?r.getOptionLabel(K):Sl(K,"label")?"".concat(K==null?void 0:K.label):"".concat(K)},j=function(K,G){if(typeof(r==null?void 0:r.isOptionEqualToValue)=="function")return r.isOptionEqualToValue(K,G);var ie=Sl(K,"id")?K.id:K,H=Sl(G,"id")?G.id:G;return ie===H},B=function(K){return s.find(function(G){return T&&Sl(G,"id")?G.id===K:j(G,K)})},V=Wf({value:R.value,onChange:R.onChange,transform:{input:typeof(S==null?void 0:S.input)=="function"?S.input:function(K){var G;return p?(Array.isArray(K)?K:[]).map(B):(G=B(K))!==null&&G!==void 0?G:null},output:typeof(S==null?void 0:S.output)=="function"?S.output:function(K,G){if(p){var ie=Array.isArray(G)?G:[];return T?ie.map(function(H){return Sl(H,"id")?H.id:H}):ie}return T&&Sl(G,"id")?G.id:G}}}),W=V.value,re=V.onChange,ee=Sr(R.ref,n==null?void 0:n.inputRef),q=d||I.jsx(kd,{color:"inherit",size:20}),te;return I.jsx(a5e,Ei(Hn({},r),{value:W,loading:o,multiple:p,options:s,disableCloseOnSelect:typeof(r==null?void 0:r.disableCloseOnSelect)=="boolean"?r.disableCloseOnSelect:!!p,isOptionEqualToValue:j,getOptionLabel:L,onChange:function(K,G,ie,H){re(K,G,ie,H),r!=null&&r.onChange&&r.onChange(K,G,ie,H)},ref:t,renderOption:(te=r==null?void 0:r.renderOption)!==null&&te!==void 0?te:l?function(K,G,ie){var H=ie.selected;return I.jsxs("li",Ei(Hn({},K),{children:[I.jsx(J5,{sx:{marginRight:1},checked:H}),L(G)]}))}:void 0,onBlur:function(K){R.onBlur(),typeof(r==null?void 0:r.onBlur)=="function"&&r.onBlur(K)},renderInput:function(K){return I.jsx(vT,Ei(Hn({name:i,required:u!=null&&u.required?!0:f,label:g},n,K),{error:!!D,InputLabelProps:Hn({},K.InputLabelProps,n==null?void 0:n.InputLabelProps),InputProps:Hn(Ei(Hn({},K.InputProps),{endAdornment:I.jsxs(I.Fragment,{children:[o?q:null,K.InputProps.endAdornment]})}),n==null?void 0:n.InputProps),inputProps:Hn({},K.inputProps,n==null?void 0:n.inputProps),helperText:D?typeof x=="function"?x(D):D.message:n==null?void 0:n.helperText,inputRef:ee}))}}))});bFe.displayName="AutocompleteElement";var yFe=M.forwardRef(function(e,t){var n=e.name,r=e.control,i=e.label,a=e.rules,s=a===void 0?{}:a,o=e.parseError,l=e.required,u=e.formControlProps,d=e.transform,f=$u(e,["name","control","label","rules","parseError","required","formControlProps","transform"]),p=Ap(),g=o||p,O=Hn({},s,l&&!s.required&&{required:"This field is required"}),S=Vf({name:n,control:r,disabled:f.disabled,rules:O}),T=S.field,w=S.fieldState,x=w.error,k=w.invalid,_=Wf({value:T.value,onChange:T.onChange,transform:d}),R=_.value,N=_.onChange,D=x?typeof g=="function"?g(x):x.message:null;return I.jsxs(Mc,Ei(Hn({error:k,required:l,fullWidth:!0},u),{ref:t,children:[i&&I.jsx(tR,{component:"legend",error:k,children:i}),I.jsx(ODe,Ei(Hn({},f),{value:R,onChange:N,valueLabelDisplay:f.valueLabelDisplay||"auto"})),D&&I.jsx(mO,{error:k,children:D})]}))});yFe.displayName="SliderElement";var vFe=M.forwardRef(function(e,t){var n=e.rules,r=n===void 0?{}:n,i=e.parseError,a=e.required,s=e.name,o=e.control,l=e.rows,u=e.resizeStyle,d=e.inputRef,f=e.inputProps,p=e.transform,g=$u(e,["rules","parseError","required","name","control","rows","resizeStyle","inputRef","inputProps","transform"]),O=Ap(),S=i||O,T=Hn({},r,a&&!r.required&&{required:"This field is required"}),w=Vf({name:s,control:o,rules:T,disabled:g.disabled}),x=w.field,k=w.fieldState,_=k.error,R=Wf({value:x.value,onChange:x.onChange,transform:{input:typeof(p==null?void 0:p.input)=="function"?p.input:function(j){return j??""},output:typeof(p==null?void 0:p.output)=="function"?p.output:function(j){return j.target.value}}}),N=R.value,D=R.onChange,L=Sr(x.ref,d);return I.jsx(vT,Ei(Hn({},g),{name:s,value:N,onChange:function(j){D(j),typeof g.onChange=="function"&&g.onChange(j)},onBlur:x.onBlur,required:a,error:!!_,helperText:_?typeof S=="function"?S(_):_.message:g.helperText,inputRef:L,multiline:!0,InputProps:{inputComponent:roe,inputProps:Hn({minRows:l,style:{resize:u||"both"}},f||{})},ref:t}))});vFe.displayName="TextareaAutosizeElement";const zy=["No Limit","30 minutes","1 hour","8 hours","24 hours","7 days"];//! moment.js + 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},g9e=function(t){return rn.createElement(rm,Object.assign({},t),rn.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`}))},EA={fontSize:20,marginInlineEnd:8},b9e={default:void 0,success:rn.createElement(h9e,{style:EA}),warning:rn.createElement(p9e,{style:EA}),error:rn.createElement(m9e,{style:EA}),info:rn.createElement(g9e,{style:EA})};function d2(e,t){return e.reduce(function(n,r){return r==null?n:function(){for(var a=arguments.length,s=new Array(a),o=0;o .MuiCollapse-container, & > .MuiCollapse-root",wrapper:"& > .MuiCollapse-container > .MuiCollapse-wrapper, & > .MuiCollapse-root > .MuiCollapse-wrapper"},GN=16,pg="SnackbarContainer",cd={root:pg+"-root",rootDense:pg+"-rootDense",top:pg+"-top",bottom:pg+"-bottom",left:pg+"-left",right:pg+"-right",center:pg+"-center"},E9e=lt("div")(function(e){var t,n,r,i,a,s,o=e.theme;return s={},s["&."+cd.root]=(t={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:o.zIndex.snackbar,height:"auto",width:"auto",transition:"top 300ms ease 0ms, right 300ms ease 0ms, bottom 300ms ease 0ms, left 300ms ease 0ms, margin 300ms ease 0ms, max-width 300ms ease 0ms",pointerEvents:"none"},t[qN.container]={pointerEvents:"all"},t[qN.wrapper]={padding:Sh.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},t.maxWidth="calc(100% - "+Sh.view.default*2+"px)",t[o.breakpoints.down("sm")]={width:"100%",maxWidth:"calc(100% - "+GN*2+"px)"},t),s["&."+cd.rootDense]=(n={},n[qN.wrapper]={padding:Sh.snackbar.dense+"px 0px"},n),s["&."+cd.top]={top:Sh.view.default-Sh.snackbar.default,flexDirection:"column"},s["&."+cd.bottom]={bottom:Sh.view.default-Sh.snackbar.default,flexDirection:"column-reverse"},s["&."+cd.left]=(r={left:Sh.view.default},r[o.breakpoints.up("sm")]={alignItems:"flex-start"},r[o.breakpoints.down("sm")]={left:GN+"px"},r),s["&."+cd.right]=(i={right:Sh.view.default},i[o.breakpoints.up("sm")]={alignItems:"flex-end"},i[o.breakpoints.down("sm")]={right:GN+"px"},i),s["&."+cd.center]=(a={left:"50%",transform:"translateX(-50%)"},a[o.breakpoints.up("sm")]={alignItems:"center"},a),s}),w9e=function(t){var n=t.className,r=t.anchorOrigin,i=t.dense,a=q0(t,["className","anchorOrigin","dense"]),s=bw(cd[r.vertical],cd[r.horizontal],cd.root,n,i&&cd.rootDense);return rn.createElement(E9e,Object.assign({className:s},a))},T9e=rn.memo(w9e),x9e=function(e){i9e(t,e);function t(r){var i;return i=e.call(this,r)||this,i.enqueueSnackbar=function(a,s){s===void 0&&(s={});var o=s,l=o.key,u=o.preventDuplicate,d=q0(o,["key","preventDuplicate"]),f=SA(l),p=f?l:new Date().getTime()+Math.random(),g=l9e(d,i.props,zg),O=Li({key:p},d,{message:a,open:!0,entered:!1,requestClose:!1,variant:g("variant"),anchorOrigin:g("anchorOrigin"),autoHideDuration:g("autoHideDuration")});return d.persist&&(O.autoHideDuration=void 0),i.setState(function(S){if(u===void 0&&i.props.preventDuplicate||u){var T=function(_){return f?_.key===l:_.message===a},w=S.queue.findIndex(T)>-1,x=S.snacks.findIndex(T)>-1;if(w||x)return S}return i.handleDisplaySnack(Li({},S,{queue:[].concat(S.queue,[O])}))}),p},i.handleDisplaySnack=function(a){var s=a.snacks;return s.length>=i.maxSnack?i.handleDismissOldest(a):i.processQueue(a)},i.processQueue=function(a){var s=a.queue,o=a.snacks;return s.length>0?Li({},a,{snacks:[].concat(o,[s[0]]),queue:s.slice(1,s.length)}):a},i.handleDismissOldest=function(a){if(a.snacks.some(function(d){return!d.open||d.requestClose}))return a;var s=!1,o=!1,l=a.snacks.reduce(function(d,f){return d+(f.open&&f.persist?1:0)},0);l===i.maxSnack&&(o=!0);var u=a.snacks.map(function(d){return!s&&(!d.persist||o)?(s=!0,d.entered?(d.onClose&&d.onClose(null,g0.MAXSNACK,d.key),i.props.onClose&&i.props.onClose(null,g0.MAXSNACK,d.key),Li({},d,{open:!1})):Li({},d,{requestClose:!0})):Li({},d)});return Li({},a,{snacks:u})},i.handleEnteredSnack=function(a,s,o){if(!SA(o))throw new Error("handleEnteredSnack Cannot be called with undefined key");i.setState(function(l){var u=l.snacks;return{snacks:u.map(function(d){return d.key===o?Li({},d,{entered:!0}):Li({},d)})}})},i.handleCloseSnack=function(a,s,o){if(i.props.onClose&&i.props.onClose(a,s,o),s!==g0.CLICKAWAY){var l=o===void 0;i.setState(function(u){var d=u.snacks,f=u.queue;return{snacks:d.map(function(p){return!l&&p.key!==o?Li({},p):p.entered?Li({},p,{open:!1}):Li({},p,{requestClose:!0})}),queue:f.filter(function(p){return p.key!==o})}})}},i.closeSnackbar=function(a){var s=i.state.snacks.find(function(o){return o.key===a});SA(a)&&s&&s.onClose&&s.onClose(null,g0.INSTRUCTED,a),i.handleCloseSnack(null,g0.INSTRUCTED,a)},i.handleExitedSnack=function(a,s,o){var l=s||o;if(!SA(l))throw new Error("handleExitedSnack Cannot be called with undefined key");i.setState(function(u){var d=i.processQueue(Li({},u,{snacks:u.snacks.filter(function(f){return f.key!==l})}));return d.queue.length===0?d:i.handleDismissOldest(d)})},i.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:i.enqueueSnackbar.bind(EZ(i)),closeSnackbar:i.closeSnackbar.bind(EZ(i))}},i}var n=t.prototype;return n.render=function(){var i=this,a=this.state.contextValue,s=this.props,o=s.iconVariant,l=s.dense,u=l===void 0?zg.dense:l,d=s.hideIconVariant,f=d===void 0?zg.hideIconVariant:d,p=s.domRoot,g=s.children,O=s.classes,S=O===void 0?{}:O,T=q0(s,["maxSnack","preventDuplicate","variant","anchorOrigin","iconVariant","dense","hideIconVariant","domRoot","children","classes"]),w=this.state.snacks.reduce(function(k,_){var R,N=s9e(_.anchorOrigin),P=k[N]||[];return Li({},k,(R={},R[N]=[].concat(P,[_]),R))},{}),x=Object.keys(w).map(function(k){var _=w[k];return rn.createElement(T9e,{key:k,dense:u,anchorOrigin:_[0].anchorOrigin,className:bw(S.containerRoot,S[Z4.toContainerAnchorOrigin(k)])},_.map(function(R){return rn.createElement(S9e,Object.assign({},T,{key:R.key,snack:R,dense:u,iconVariant:o,hideIconVariant:f,classes:o9e(S),onClose:i.handleCloseSnack,onExited:d2([i.handleExitedSnack,i.props.onExited]),onEntered:d2([i.handleEnteredSnack,i.props.onEntered])}))}))});return rn.createElement(Cle.Provider,{value:a},g,p?Yv.createPortal(x,p):x)},r9e(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||zg.maxSnack}}]),t}(M.Component),IT=function(){return M.useContext(Cle)};const k9e={data:null},Ile=M1({name:"document",initialState:k9e,reducers:{setDocumentData:(e,t)=>{e.data=t.payload}}}),{setDocumentData:_3}=Ile.actions,hR=e=>e.document,A9e=Ile.reducer;var uO=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(){}},kv=typeof window>"u"||"Deno"in globalThis;function ec(){}function _9e(e,t){return typeof e=="function"?e(t):e}function o8(e){return typeof e=="number"&&e>=0&&e!==1/0}function Nle(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ny(e,t){return typeof e=="function"?e(t):e}function hd(e,t){return typeof e=="function"?e(t):e}function kZ(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:a,queryKey:s,stale:o}=e;if(s){if(r){if(t.queryHash!==rF(s,t.options))return!1}else if(!yw(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||i&&i!==t.state.fetchStatus||a&&!a(t))}function AZ(e,t){const{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(E1(t.options.mutationKey)!==E1(a))return!1}else if(!yw(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function rF(e,t){return((t==null?void 0:t.queryKeyHashFn)||E1)(e)}function E1(e){return JSON.stringify(e,(t,n)=>l8(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function yw(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!yw(e[n],t[n])):!1}function Dle(e,t){if(e===t)return e;const n=_Z(e)&&_Z(t);if(n||l8(e)&&l8(t)){const r=n?e:Object.keys(e),i=r.length,a=n?t:Object.keys(t),s=a.length,o=n?[]:{};let l=0;for(let u=0;u{setTimeout(t,e)})}function u8(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Dle(e,t):t}function R9e(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function I9e(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Ple=Symbol();function Lle(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Ple?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Gg,O0,Yy,ire,N9e=(ire=class extends uO{constructor(){super();Fn(this,Gg);Fn(this,O0);Fn(this,Yy);on(this,Yy,t=>{if(!kv&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){Ce(this,O0)||this.setEventListener(Ce(this,Yy))}onUnsubscribe(){var t;this.hasListeners()||((t=Ce(this,O0))==null||t.call(this),on(this,O0,void 0))}setEventListener(t){var n;on(this,Yy,t),(n=Ce(this,O0))==null||n.call(this),on(this,O0,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){Ce(this,Gg)!==t&&(on(this,Gg,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof Ce(this,Gg)=="boolean"?Ce(this,Gg):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Gg=new WeakMap,O0=new WeakMap,Yy=new WeakMap,ire),iF=new N9e,Zy,S0,Xy,are,D9e=(are=class extends uO{constructor(){super();Fn(this,Zy,!0);Fn(this,S0);Fn(this,Xy);on(this,Xy,t=>{if(!kv&&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(){Ce(this,S0)||this.setEventListener(Ce(this,Xy))}onUnsubscribe(){var t;this.hasListeners()||((t=Ce(this,S0))==null||t.call(this),on(this,S0,void 0))}setEventListener(t){var n;on(this,Xy,t),(n=Ce(this,S0))==null||n.call(this),on(this,S0,t(this.setOnline.bind(this)))}setOnline(t){Ce(this,Zy)!==t&&(on(this,Zy,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return Ce(this,Zy)}},Zy=new WeakMap,S0=new WeakMap,Xy=new WeakMap,are),R3=new D9e;function P9e(e){return Math.min(1e3*2**e,3e4)}function Mle(e){return(e??"online")==="online"?R3.isOnline():!0}var $le=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function YN(e){return e instanceof $le}function Fle(e){let t=!1,n=0,r=!1,i,a,s;const o=new Promise((w,x)=>{a=w,s=x}),l=w=>{var x;r||(O(new $le(w)),(x=e.abort)==null||x.call(e))},u=()=>{t=!0},d=()=>{t=!1},f=()=>iF.isFocused()&&(e.networkMode==="always"||R3.isOnline())&&e.canRun(),p=()=>Mle(e.networkMode)&&e.canRun(),g=w=>{var x;r||(r=!0,(x=e.onSuccess)==null||x.call(e,w),i==null||i(),a(w))},O=w=>{var x;r||(r=!0,(x=e.onError)==null||x.call(e,w),i==null||i(),s(w))},S=()=>new Promise(w=>{var x;i=k=>{(r||f())&&w(k)},(x=e.onPause)==null||x.call(e)}).then(()=>{var w;i=void 0,r||(w=e.onContinue)==null||w.call(e)}),T=()=>{if(r)return;let w;const x=n===0?e.initialPromise:void 0;try{w=x??e.fn()}catch(k){w=Promise.reject(k)}Promise.resolve(w).then(g).catch(k=>{var L;if(r)return;const _=e.retry??(kv?0:3),R=e.retryDelay??P9e,N=typeof R=="function"?R(n,k):R,P=_===!0||typeof _=="number"&&n<_||typeof _=="function"&&_(n,k);if(t||!P){O(k);return}n++,(L=e.onFail)==null||L.call(e,n,k),C9e(N).then(()=>f()?void 0:S()).then(()=>{t?O(k):T()})})};return{promise:o,cancel:l,continue:()=>(i==null||i(),o),cancelRetry:u,continueRetry:d,canStart:p,start:()=>(p()?T():S().then(T),o)}}function L9e(){let e=[],t=0,n=p=>{p()},r=p=>{p()},i=p=>setTimeout(p,0);const a=p=>{i=p},s=p=>{let g;t++;try{g=p()}finally{t--,t||u()}return g},o=p=>{t?e.push(p):i(()=>{n(p)})},l=p=>(...g)=>{o(()=>{p(...g)})},u=()=>{const p=e;e=[],p.length&&i(()=>{r(()=>{p.forEach(g=>{n(g)})})})};return{batch:s,batchCalls:l,schedule:o,setNotifyFunction:p=>{n=p},setBatchNotifyFunction:p=>{r=p},setScheduler:a}}var rs=L9e(),Yg,sre,Ble=(sre=class{constructor(){Fn(this,Yg)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),o8(this.gcTime)&&on(this,Yg,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(kv?1/0:5*60*1e3))}clearGcTimeout(){Ce(this,Yg)&&(clearTimeout(Ce(this,Yg)),on(this,Yg,void 0))}},Yg=new WeakMap,sre),Ky,Jy,Ku,uo,rT,Zg,od,_h,ore,M9e=(ore=class extends Ble{constructor(t){super();Fn(this,od);Fn(this,Ky);Fn(this,Jy);Fn(this,Ku);Fn(this,uo);Fn(this,rT);Fn(this,Zg);on(this,Zg,!1),on(this,rT,t.defaultOptions),this.setOptions(t.options),this.observers=[],on(this,Ku,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,on(this,Ky,$9e(this.options)),this.state=t.state??Ce(this,Ky),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=Ce(this,uo))==null?void 0:t.promise}setOptions(t){this.options={...Ce(this,rT),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&Ce(this,Ku).remove(this)}setData(t,n){const r=u8(this.state.data,t,this.options);return lr(this,od,_h).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){lr(this,od,_h).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=Ce(this,uo))==null?void 0:r.promise;return(i=Ce(this,uo))==null||i.cancel(t),n?n.then(ec).catch(ec):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Ce(this,Ky))}isActive(){return this.observers.some(t=>hd(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!Nle(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=Ce(this,uo))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=Ce(this,uo))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),Ce(this,Ku).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(Ce(this,uo)&&(Ce(this,Zg)?Ce(this,uo).cancel({revert:!0}):Ce(this,uo).cancelRetry()),this.scheduleGc()),Ce(this,Ku).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||lr(this,od,_h).call(this,{type:"invalidate"})}fetch(t,n){var l,u,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(Ce(this,uo))return Ce(this,uo).continueRetry(),Ce(this,uo).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(p=>p.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(on(this,Zg,!0),r.signal)})},a=()=>{const f=Lle(this.options,n),p={queryKey:this.queryKey,meta:this.meta};return i(p),on(this,Zg,!1),this.options.persister?this.options.persister(f,p,this):f(p)},s={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};i(s),(l=this.options.behavior)==null||l.onFetch(s,this),on(this,Jy,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=s.fetchOptions)==null?void 0:u.meta))&&lr(this,od,_h).call(this,{type:"fetch",meta:(d=s.fetchOptions)==null?void 0:d.meta});const o=f=>{var p,g,O,S;YN(f)&&f.silent||lr(this,od,_h).call(this,{type:"error",error:f}),YN(f)||((g=(p=Ce(this,Ku).config).onError)==null||g.call(p,f,this),(S=(O=Ce(this,Ku).config).onSettled)==null||S.call(O,this.state.data,f,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return on(this,uo,Fle({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var p,g,O,S;if(f===void 0){o(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(T){o(T);return}(g=(p=Ce(this,Ku).config).onSuccess)==null||g.call(p,f,this),(S=(O=Ce(this,Ku).config).onSettled)==null||S.call(O,f,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:o,onFail:(f,p)=>{lr(this,od,_h).call(this,{type:"failed",failureCount:f,error:p})},onPause:()=>{lr(this,od,_h).call(this,{type:"pause"})},onContinue:()=>{lr(this,od,_h).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),Ce(this,uo).start()}},Ky=new WeakMap,Jy=new WeakMap,Ku=new WeakMap,uo=new WeakMap,rT=new WeakMap,Zg=new WeakMap,od=new WeakSet,_h=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,...Ule(r.data,this.options),fetchMeta:t.meta??null};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 YN(i)&&i.revert&&Ce(this,Jy)?{...Ce(this,Jy),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),rs.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),Ce(this,Ku).notify({query:this,type:"updated",action:t})})},ore);function Ule(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Mle(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function $9e(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,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 of,lre,zle=(lre=class extends uO{constructor(t={}){super();Fn(this,of);this.config=t,on(this,of,new Map)}build(t,n,r){const i=n.queryKey,a=n.queryHash??rF(i,n);let s=this.get(a);return s||(s=new M9e({cache:this,queryKey:i,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){Ce(this,of).has(t.queryHash)||(Ce(this,of).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=Ce(this,of).get(t.queryHash);n&&(t.destroy(),n===t&&Ce(this,of).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){rs.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return Ce(this,of).get(t)}getAll(){return[...Ce(this,of).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>kZ(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>kZ(t,r)):n}notify(t){rs.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){rs.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){rs.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},of=new WeakMap,lre),lf,Fo,Xg,uf,i0,ure,F9e=(ure=class extends Ble{constructor(t){super();Fn(this,uf);Fn(this,lf);Fn(this,Fo);Fn(this,Xg);this.mutationId=t.mutationId,on(this,Fo,t.mutationCache),on(this,lf,[]),this.state=t.state||jle(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){Ce(this,lf).includes(t)||(Ce(this,lf).push(t),this.clearGcTimeout(),Ce(this,Fo).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){on(this,lf,Ce(this,lf).filter(n=>n!==t)),this.scheduleGc(),Ce(this,Fo).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){Ce(this,lf).length||(this.state.status==="pending"?this.scheduleGc():Ce(this,Fo).remove(this))}continue(){var t;return((t=Ce(this,Xg))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,a,s,o,l,u,d,f,p,g,O,S,T,w,x,k,_,R,N,P;on(this,Xg,Fle({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(L,j)=>{lr(this,uf,i0).call(this,{type:"failed",failureCount:L,error:j})},onPause:()=>{lr(this,uf,i0).call(this,{type:"pause"})},onContinue:()=>{lr(this,uf,i0).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Ce(this,Fo).canRun(this)}));const n=this.state.status==="pending",r=!Ce(this,Xg).canStart();try{if(!n){lr(this,uf,i0).call(this,{type:"pending",variables:t,isPaused:r}),await((a=(i=Ce(this,Fo).config).onMutate)==null?void 0:a.call(i,t,this));const j=await((o=(s=this.options).onMutate)==null?void 0:o.call(s,t));j!==this.state.context&&lr(this,uf,i0).call(this,{type:"pending",context:j,variables:t,isPaused:r})}const L=await Ce(this,Xg).start();return await((u=(l=Ce(this,Fo).config).onSuccess)==null?void 0:u.call(l,L,t,this.state.context,this)),await((f=(d=this.options).onSuccess)==null?void 0:f.call(d,L,t,this.state.context)),await((g=(p=Ce(this,Fo).config).onSettled)==null?void 0:g.call(p,L,null,this.state.variables,this.state.context,this)),await((S=(O=this.options).onSettled)==null?void 0:S.call(O,L,null,t,this.state.context)),lr(this,uf,i0).call(this,{type:"success",data:L}),L}catch(L){try{throw await((w=(T=Ce(this,Fo).config).onError)==null?void 0:w.call(T,L,t,this.state.context,this)),await((k=(x=this.options).onError)==null?void 0:k.call(x,L,t,this.state.context)),await((R=(_=Ce(this,Fo).config).onSettled)==null?void 0:R.call(_,void 0,L,this.state.variables,this.state.context,this)),await((P=(N=this.options).onSettled)==null?void 0:P.call(N,void 0,L,t,this.state.context)),L}finally{lr(this,uf,i0).call(this,{type:"error",error:L})}}finally{Ce(this,Fo).runNext(this)}}},lf=new WeakMap,Fo=new WeakMap,Xg=new WeakMap,uf=new WeakSet,i0=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:t.isPaused,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),rs.batch(()=>{Ce(this,lf).forEach(r=>{r.onMutationUpdate(t)}),Ce(this,Fo).notify({mutation:this,type:"updated",action:t})})},ure);function jle(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var nu,iT,cre,B9e=(cre=class extends uO{constructor(t={}){super();Fn(this,nu);Fn(this,iT);this.config=t,on(this,nu,new Map),on(this,iT,Date.now())}build(t,n,r){const i=new F9e({mutationCache:this,mutationId:++Uk(this,iT)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=wA(t),r=Ce(this,nu).get(n)??[];r.push(t),Ce(this,nu).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=wA(t);if(Ce(this,nu).has(n)){const i=(r=Ce(this,nu).get(n))==null?void 0:r.filter(a=>a!==t);i&&(i.length===0?Ce(this,nu).delete(n):Ce(this,nu).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=Ce(this,nu).get(wA(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=Ce(this,nu).get(wA(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){rs.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...Ce(this,nu).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>AZ(n,r))}findAll(t={}){return this.getAll().filter(n=>AZ(t,n))}notify(t){rs.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return rs.batch(()=>Promise.all(t.map(n=>n.continue().catch(ec))))}},nu=new WeakMap,iT=new WeakMap,cre);function wA(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function c8(e){return{onFetch:(t,n)=>{const r=async()=>{var O,S,T,w,x;const i=t.options,a=(T=(S=(O=t.fetchOptions)==null?void 0:O.meta)==null?void 0:S.fetchMore)==null?void 0:T.direction,s=((w=t.state.data)==null?void 0:w.pages)||[],o=((x=t.state.data)==null?void 0:x.pageParams)||[],l={pages:[],pageParams:[]};let u=!1;const d=k=>{Object.defineProperty(k,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},f=Lle(t.options,t.fetchOptions),p=async(k,_,R)=>{if(u)return Promise.reject();if(_==null&&k.pages.length)return Promise.resolve(k);const N={queryKey:t.queryKey,pageParam:_,direction:R?"backward":"forward",meta:t.options.meta};d(N);const P=await f(N),{maxPages:L}=t.options,j=R?I9e:R9e;return{pages:j(k.pages,P,L),pageParams:j(k.pageParams,_,L)}};let g;if(a&&s.length){const k=a==="backward",_=k?Hle:d8,R={pages:s,pageParams:o},N=_(i,R);g=await p(R,N,k)}else{g=await p(l,o[0]??i.initialPageParam);const k=e??s.length;for(let _=1;_{var i,a;return(a=(i=t.options).persister)==null?void 0:a.call(i,r,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=r}}}function d8(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Hle(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}function U9e(e,t){return t?d8(e,t)!=null:!1}function z9e(e,t){return!t||!e.getPreviousPageParam?!1:Hle(e,t)!=null}var Sa,E0,w0,ev,tv,T0,nv,rv,dre,j9e=(dre=class{constructor(e={}){Fn(this,Sa);Fn(this,E0);Fn(this,w0);Fn(this,ev);Fn(this,tv);Fn(this,T0);Fn(this,nv);Fn(this,rv);on(this,Sa,e.queryCache||new zle),on(this,E0,e.mutationCache||new B9e),on(this,w0,e.defaultOptions||{}),on(this,ev,new Map),on(this,tv,new Map),on(this,T0,0)}mount(){Uk(this,T0)._++,Ce(this,T0)===1&&(on(this,nv,iF.subscribe(async e=>{e&&(await this.resumePausedMutations(),Ce(this,Sa).onFocus())})),on(this,rv,R3.subscribe(async e=>{e&&(await this.resumePausedMutations(),Ce(this,Sa).onOnline())})))}unmount(){var e,t;Uk(this,T0)._--,Ce(this,T0)===0&&((e=Ce(this,nv))==null||e.call(this),on(this,nv,void 0),(t=Ce(this,rv))==null||t.call(this),on(this,rv,void 0))}isFetching(e){return Ce(this,Sa).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Ce(this,E0).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Ce(this,Sa).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=Ce(this,Sa).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(Ny(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return Ce(this,Sa).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=Ce(this,Sa).get(r.queryHash),a=i==null?void 0:i.state.data,s=_9e(t,a);if(s!==void 0)return Ce(this,Sa).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return rs.batch(()=>Ce(this,Sa).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Ce(this,Sa).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=Ce(this,Sa);rs.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=Ce(this,Sa),r={type:"active",...e};return rs.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=rs.batch(()=>Ce(this,Sa).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(ec).catch(ec)}invalidateQueries(e={},t={}){return rs.batch(()=>{if(Ce(this,Sa).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=rs.batch(()=>Ce(this,Sa).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let a=i.fetch(void 0,n);return n.throwOnError||(a=a.catch(ec)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(ec)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=Ce(this,Sa).build(this,t);return n.isStaleByTime(Ny(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ec).catch(ec)}fetchInfiniteQuery(e){return e.behavior=c8(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ec).catch(ec)}resumePausedMutations(){return R3.isOnline()?Ce(this,E0).resumePausedMutations():Promise.resolve()}getQueryCache(){return Ce(this,Sa)}getMutationCache(){return Ce(this,E0)}getDefaultOptions(){return Ce(this,w0)}setDefaultOptions(e){on(this,w0,e)}setQueryDefaults(e,t){Ce(this,ev).set(E1(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Ce(this,ev).values()];let n={};return t.forEach(r=>{yw(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){Ce(this,tv).set(E1(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Ce(this,tv).values()];let n={};return t.forEach(r=>{yw(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...Ce(this,w0).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=rF(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===Ple&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...Ce(this,w0).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Ce(this,Sa).clear(),Ce(this,E0).clear()}},Sa=new WeakMap,E0=new WeakMap,w0=new WeakMap,ev=new WeakMap,tv=new WeakMap,T0=new WeakMap,nv=new WeakMap,rv=new WeakMap,dre),bl,_r,aT,Bo,Kg,iv,cf,sT,av,sv,Jg,e1,x0,ov,ei,ME,f8,h8,p8,m8,g8,b8,y8,Wle,fre,Qle=(fre=class extends uO{constructor(t,n){super();Fn(this,ei);Fn(this,bl);Fn(this,_r);Fn(this,aT);Fn(this,Bo);Fn(this,Kg);Fn(this,iv);Fn(this,cf);Fn(this,sT);Fn(this,av);Fn(this,sv);Fn(this,Jg);Fn(this,e1);Fn(this,x0);Fn(this,ov,new Set);this.options=n,on(this,bl,t),on(this,cf,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(Ce(this,_r).addObserver(this),RZ(Ce(this,_r),this.options)?lr(this,ei,ME).call(this):this.updateResult(),lr(this,ei,m8).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return v8(Ce(this,_r),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return v8(Ce(this,_r),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,lr(this,ei,g8).call(this),lr(this,ei,b8).call(this),Ce(this,_r).removeObserver(this)}setOptions(t,n){const r=this.options,i=Ce(this,_r);if(this.options=Ce(this,bl).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof hd(this.options.enabled,Ce(this,_r))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");lr(this,ei,y8).call(this),Ce(this,_r).setOptions(this.options),r._defaulted&&!C3(this.options,r)&&Ce(this,bl).getQueryCache().notify({type:"observerOptionsUpdated",query:Ce(this,_r),observer:this});const a=this.hasListeners();a&&IZ(Ce(this,_r),i,this.options,r)&&lr(this,ei,ME).call(this),this.updateResult(n),a&&(Ce(this,_r)!==i||hd(this.options.enabled,Ce(this,_r))!==hd(r.enabled,Ce(this,_r))||Ny(this.options.staleTime,Ce(this,_r))!==Ny(r.staleTime,Ce(this,_r)))&&lr(this,ei,f8).call(this);const s=lr(this,ei,h8).call(this);a&&(Ce(this,_r)!==i||hd(this.options.enabled,Ce(this,_r))!==hd(r.enabled,Ce(this,_r))||s!==Ce(this,x0))&&lr(this,ei,p8).call(this,s)}getOptimisticResult(t){const n=Ce(this,bl).getQueryCache().build(Ce(this,bl),t),r=this.createResult(n,t);return Q9e(this,r)&&(on(this,Bo,r),on(this,iv,this.options),on(this,Kg,Ce(this,_r).state)),r}getCurrentResult(){return Ce(this,Bo)}trackResult(t,n){const r={};return Object.keys(t).forEach(i=>{Object.defineProperty(r,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),n==null||n(i),t[i])})}),r}trackProp(t){Ce(this,ov).add(t)}getCurrentQuery(){return Ce(this,_r)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=Ce(this,bl).defaultQueryOptions(t),r=Ce(this,bl).getQueryCache().build(Ce(this,bl),n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){return lr(this,ei,ME).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),Ce(this,Bo)))}createResult(t,n){var P;const r=Ce(this,_r),i=this.options,a=Ce(this,Bo),s=Ce(this,Kg),o=Ce(this,iv),u=t!==r?t.state:Ce(this,aT),{state:d}=t;let f={...d},p=!1,g;if(n._optimisticResults){const L=this.hasListeners(),j=!L&&RZ(t,n),B=L&&IZ(t,r,n,i);(j||B)&&(f={...f,...Ule(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:O,errorUpdatedAt:S,status:T}=f;if(n.select&&f.data!==void 0)if(a&&f.data===(s==null?void 0:s.data)&&n.select===Ce(this,sT))g=Ce(this,av);else try{on(this,sT,n.select),g=n.select(f.data),g=u8(a==null?void 0:a.data,g,n),on(this,av,g),on(this,cf,null)}catch(L){on(this,cf,L)}else g=f.data;if(n.placeholderData!==void 0&&g===void 0&&T==="pending"){let L;if(a!=null&&a.isPlaceholderData&&n.placeholderData===(o==null?void 0:o.placeholderData))L=a.data;else if(L=typeof n.placeholderData=="function"?n.placeholderData((P=Ce(this,sv))==null?void 0:P.state.data,Ce(this,sv)):n.placeholderData,n.select&&L!==void 0)try{L=n.select(L),on(this,cf,null)}catch(j){on(this,cf,j)}L!==void 0&&(T="success",g=u8(a==null?void 0:a.data,L,n),p=!0)}Ce(this,cf)&&(O=Ce(this,cf),g=Ce(this,av),S=Date.now(),T="error");const w=f.fetchStatus==="fetching",x=T==="pending",k=T==="error",_=x&&w,R=g!==void 0;return{status:T,fetchStatus:f.fetchStatus,isPending:x,isSuccess:T==="success",isError:k,isInitialLoading:_,isLoading:_,data:g,dataUpdatedAt:f.dataUpdatedAt,error:O,errorUpdatedAt:S,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:w,isRefetching:w&&!x,isLoadingError:k&&!R,isPaused:f.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:k&&R,isStale:aF(t,n),refetch:this.refetch}}updateResult(t){const n=Ce(this,Bo),r=this.createResult(Ce(this,_r),this.options);if(on(this,Kg,Ce(this,_r).state),on(this,iv,this.options),Ce(this,Kg).data!==void 0&&on(this,sv,Ce(this,_r)),C3(r,n))return;on(this,Bo,r);const i={},a=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,o=typeof s=="function"?s():s;if(o==="all"||!o&&!Ce(this,ov).size)return!0;const l=new Set(o??Ce(this,ov));return this.options.throwOnError&&l.add("error"),Object.keys(Ce(this,Bo)).some(u=>{const d=u;return Ce(this,Bo)[d]!==n[d]&&l.has(d)})};(t==null?void 0:t.listeners)!==!1&&a()&&(i.listeners=!0),lr(this,ei,Wle).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&lr(this,ei,m8).call(this)}},bl=new WeakMap,_r=new WeakMap,aT=new WeakMap,Bo=new WeakMap,Kg=new WeakMap,iv=new WeakMap,cf=new WeakMap,sT=new WeakMap,av=new WeakMap,sv=new WeakMap,Jg=new WeakMap,e1=new WeakMap,x0=new WeakMap,ov=new WeakMap,ei=new WeakSet,ME=function(t){lr(this,ei,y8).call(this);let n=Ce(this,_r).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(ec)),n},f8=function(){lr(this,ei,g8).call(this);const t=Ny(this.options.staleTime,Ce(this,_r));if(kv||Ce(this,Bo).isStale||!o8(t))return;const r=Nle(Ce(this,Bo).dataUpdatedAt,t)+1;on(this,Jg,setTimeout(()=>{Ce(this,Bo).isStale||this.updateResult()},r))},h8=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(Ce(this,_r)):this.options.refetchInterval)??!1},p8=function(t){lr(this,ei,b8).call(this),on(this,x0,t),!(kv||hd(this.options.enabled,Ce(this,_r))===!1||!o8(Ce(this,x0))||Ce(this,x0)===0)&&on(this,e1,setInterval(()=>{(this.options.refetchIntervalInBackground||iF.isFocused())&&lr(this,ei,ME).call(this)},Ce(this,x0)))},m8=function(){lr(this,ei,f8).call(this),lr(this,ei,p8).call(this,lr(this,ei,h8).call(this))},g8=function(){Ce(this,Jg)&&(clearTimeout(Ce(this,Jg)),on(this,Jg,void 0))},b8=function(){Ce(this,e1)&&(clearInterval(Ce(this,e1)),on(this,e1,void 0))},y8=function(){const t=Ce(this,bl).getQueryCache().build(Ce(this,bl),this.options);if(t===Ce(this,_r))return;const n=Ce(this,_r);on(this,_r,t),on(this,aT,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Wle=function(t){rs.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(Ce(this,Bo))}),Ce(this,bl).getQueryCache().notify({query:Ce(this,_r),type:"observerResultsUpdated"})})},fre);function H9e(e,t){return hd(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function RZ(e,t){return H9e(e,t)||e.state.data!==void 0&&v8(e,t,t.refetchOnMount)}function v8(e,t,n){if(hd(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&aF(e,t)}return!1}function IZ(e,t,n,r){return(e!==t||hd(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&aF(e,n)}function aF(e,t){return hd(t.enabled,e)!==!1&&e.isStaleByTime(Ny(t.staleTime,e))}function Q9e(e,t){return!C3(e.getCurrentResult(),t)}var W9e=class extends Qle{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:c8()},t)}getOptimisticResult(e){return e.behavior=c8(),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 O,S;const{state:n}=e,r=super.createResult(e,t),{isFetching:i,isRefetching:a,isError:s,isRefetchError:o}=r,l=(S=(O=n.fetchMeta)==null?void 0:O.fetchMore)==null?void 0:S.direction,u=s&&l==="forward",d=i&&l==="forward",f=s&&l==="backward",p=i&&l==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:U9e(t,n.data),hasPreviousPage:z9e(t,n.data),isFetchNextPageError:u,isFetchingNextPage:d,isFetchPreviousPageError:f,isFetchingPreviousPage:p,isRefetchError:o&&!u&&!f,isRefetching:a&&!d&&!p}}},k0,A0,yl,Mh,Kh,X4,O8,hre,V9e=(hre=class extends uO{constructor(n,r){super();Fn(this,Kh);Fn(this,k0);Fn(this,A0);Fn(this,yl);Fn(this,Mh);on(this,k0,n),this.setOptions(r),this.bindMethods(),lr(this,Kh,X4).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=Ce(this,k0).defaultMutationOptions(n),C3(this.options,r)||Ce(this,k0).getMutationCache().notify({type:"observerOptionsUpdated",mutation:Ce(this,yl),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&E1(r.mutationKey)!==E1(this.options.mutationKey)?this.reset():((i=Ce(this,yl))==null?void 0:i.state.status)==="pending"&&Ce(this,yl).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=Ce(this,yl))==null||n.removeObserver(this)}onMutationUpdate(n){lr(this,Kh,X4).call(this),lr(this,Kh,O8).call(this,n)}getCurrentResult(){return Ce(this,A0)}reset(){var n;(n=Ce(this,yl))==null||n.removeObserver(this),on(this,yl,void 0),lr(this,Kh,X4).call(this),lr(this,Kh,O8).call(this)}mutate(n,r){var i;return on(this,Mh,r),(i=Ce(this,yl))==null||i.removeObserver(this),on(this,yl,Ce(this,k0).getMutationCache().build(Ce(this,k0),this.options)),Ce(this,yl).addObserver(this),Ce(this,yl).execute(n)}},k0=new WeakMap,A0=new WeakMap,yl=new WeakMap,Mh=new WeakMap,Kh=new WeakSet,X4=function(){var r;const n=((r=Ce(this,yl))==null?void 0:r.state)??jle();on(this,A0,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},O8=function(n){rs.batch(()=>{var r,i,a,s,o,l,u,d;if(Ce(this,Mh)&&this.hasListeners()){const f=Ce(this,A0).variables,p=Ce(this,A0).context;(n==null?void 0:n.type)==="success"?((i=(r=Ce(this,Mh)).onSuccess)==null||i.call(r,n.data,f,p),(s=(a=Ce(this,Mh)).onSettled)==null||s.call(a,n.data,null,f,p)):(n==null?void 0:n.type)==="error"&&((l=(o=Ce(this,Mh)).onError)==null||l.call(o,n.error,f,p),(d=(u=Ce(this,Mh)).onSettled)==null||d.call(u,void 0,n.error,f,p))}this.listeners.forEach(f=>{f(Ce(this,A0))})})},hre),Vle=M.createContext(void 0),NT=e=>{const t=M.useContext(Vle);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},q9e=({client:e,children:t})=>(M.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),I.jsx(Vle.Provider,{value:e,children:t})),qle=M.createContext(!1),G9e=()=>M.useContext(qle);qle.Provider;function Y9e(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Z9e=M.createContext(Y9e()),X9e=()=>M.useContext(Z9e);function Gle(e,t){return typeof e=="function"?e(...t):!!e}function K9e(){}var J9e=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},e$e=e=>{M.useEffect(()=>{e.clearReset()},[e])},t$e=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&Gle(n,[e.error,r]),n$e=e=>{e.suspense&&(typeof e.staleTime!="number"&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},r$e=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,i$e=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Yle(e,t,n){var u,d,f,p;const r=NT(),i=G9e(),a=X9e(),s=r.defaultQueryOptions(e);(d=(u=r.getDefaultOptions().queries)==null?void 0:u._experimental_beforeQuery)==null||d.call(u,s),s._optimisticResults=i?"isRestoring":"optimistic",n$e(s),J9e(s,a),e$e(a);const[o]=M.useState(()=>new t(r,s)),l=o.getOptimisticResult(s);if(M.useSyncExternalStore(M.useCallback(g=>{const O=i?()=>{}:o.subscribe(rs.batchCalls(g));return o.updateResult(),O},[o,i]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),M.useEffect(()=>{o.setOptions(s,{listeners:!1})},[s,o]),r$e(s,l))throw i$e(s,o,a);if(t$e({result:l,errorResetBoundary:a,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash)}))throw l.error;return(p=(f=r.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||p.call(f,s,l),s.notifyOnChangeProps?l:o.trackResult(l)}function cO(e,t){return Yle(e,Qle)}function Op(e,t){const n=NT(),[r]=M.useState(()=>new V9e(n,e));M.useEffect(()=>{r.setOptions(e)},[r,e]);const i=M.useSyncExternalStore(M.useCallback(s=>r.subscribe(rs.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=M.useCallback((s,o)=>{r.mutate(s,o).catch(K9e)},[r]);if(i.error&&Gle(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}function sF(e,t){return Yle(e,W9e)}const a$e=()=>Op({mutationFn:async e=>(await tr.post("/files",e)).data}),s$e=()=>Op({mutationFn:async e=>tr.put(e.url,new Blob([e.file]),{headers:{Authorization:void 0,"Content-Type":e.file.type}})}),o$e=()=>Op({mutationFn:async e=>{const{exportType:t,content:n,fileName:r}=e;return await tr.post("/files/export-markdown",{exportType:t,content:n,fileName:r},{responseType:"blob",headers:{Accept:"application/octet-stream"}})}}),l$e=()=>{const{enqueueSnackbar:e}=IT(),t=Pr(vp),n=Pr(hR),r=o$e(),i=M.useCallback(async l=>{var u,d,f;try{const p=((d=(u=t.doc)==null?void 0:u.getRoot().content)==null?void 0:d.toString())||"",g=((f=n.data)==null?void 0:f.title)||"codepair_document";e(`${l.toUpperCase()} file export started`,{variant:"info"});const O=await r.mutateAsync({exportType:l,content:p,fileName:g}),S=O.headers["content-disposition"],T=S==null?void 0:S.match(/filename="?(.+)"?\s*$/i),w=T?T[1]:`${g}.${l}`,x=new Blob([O.data],{type:O.headers["content-type"]}),k=window.URL.createObjectURL(x),_=document.createElement("a");_.href=k,_.setAttribute("download",w),document.body.appendChild(_),_.click(),document.body.removeChild(_),window.URL.revokeObjectURL(k),e(`${l.toUpperCase()} file exported successfully`,{variant:"success"})}catch(p){console.error("Error:",p),e(`Failed to export ${l.toUpperCase()} file`,{variant:"error"})}},[t,n,e,r]);return{handleExportToPDF:()=>i("pdf"),handleExportToHTML:()=>i("html"),handleExportToMarkdown:()=>i("markdown")}};function u$e(){const[e,t]=M.useState(null),n=o=>{t(o.currentTarget)},r=()=>{t(null)},{handleExportToPDF:i,handleExportToHTML:a,handleExportToMarkdown:s}=l$e();return I.jsxs(Gs,{children:[I.jsx(Oo,{"aria-controls":"download-menu","aria-haspopup":"true",onClick:n,children:I.jsx(t9e,{})}),I.jsxs(aoe,{id:"download-menu",anchorEl:e,keepMounted:!0,open:!!e,onClose:r,children:[I.jsx(Od,{onClick:i,children:"Download as PDF"}),I.jsx(Od,{onClick:a,children:"Download as HTML"}),I.jsx(Od,{onClick:s,children:"Download as Markdown"})]})]})}var oF={},c$e=Ii;Object.defineProperty(oF,"__esModule",{value:!0});var Zle=oF.default=void 0,d$e=c$e(ta()),f$e=I;Zle=oF.default=(0,d$e.default)((0,f$e.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");function S8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.type==="checkbox",my=e=>e instanceof Date,Qo=e=>e==null;const Xle=e=>typeof e=="object";var Wa=e=>!Qo(e)&&!Array.isArray(e)&&Xle(e)&&!my(e),Kle=e=>Wa(e)&&e.target?DT(e.target)?e.target.checked:e.target.value:e,y$e=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Jle=(e,t)=>e.has(y$e(t)),v$e=e=>{const t=e.constructor&&e.constructor.prototype;return Wa(t)&&t.hasOwnProperty("isPrototypeOf")},lF=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function pl(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(!(lF&&(e instanceof Blob||e instanceof FileList))&&(n||Wa(e)))if(t=n?[]:{},!n&&!v$e(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=pl(e[r]));else return e;return t}var pR=e=>Array.isArray(e)?e.filter(Boolean):[],Ta=e=>e===void 0,Zt=(e,t,n)=>{if(!t||!Wa(e))return n;const r=pR(t.split(/[,[\].]+?/)).reduce((i,a)=>Qo(i)?i:i[a],e);return Ta(r)||r===e?Ta(e[t])?n:e[t]:r},nc=e=>typeof e=="boolean",uF=e=>/^\w*$/.test(e),eue=e=>pR(e.replace(/["|']|\]/g,"").split(/\.|\[/)),bi=(e,t,n)=>{let r=-1;const i=uF(t)?[t]:eue(t),a=i.length,s=a-1;for(;++rrn.useContext(tue),nue=e=>{const{children:t,...n}=e;return rn.createElement(tue.Provider,{value:n},t)};var rue=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const s=a;return t._proxyFormState[s]!==gd.all&&(t._proxyFormState[s]=!r||gd.all),n&&(n[s]=!0),e[s]}});return i},vl=e=>Wa(e)&&!Object.keys(e).length,iue=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return vl(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(s=>t[s]===(!r||gd.all))},f2=e=>Array.isArray(e)?e:[e],aue=(e,t,n)=>!e||!t||e===t||f2(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function dF(e){const t=rn.useRef(e);t.current=e,rn.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function O$e(e){const t=cF(),{control:n=t.control,disabled:r,name:i,exact:a}=e||{},[s,o]=rn.useState(n._formState),l=rn.useRef(!0),u=rn.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=rn.useRef(i);return d.current=i,dF({disabled:r,next:f=>l.current&&aue(d.current,f.name,a)&&iue(f,u.current,n._updateFormState)&&o({...n._formState,...f}),subject:n._subjects.state}),rn.useEffect(()=>(l.current=!0,u.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),rue(s,n,u.current,!1)}var vf=e=>typeof e=="string",sue=(e,t,n,r,i)=>vf(e)?(r&&t.watch.add(e),Zt(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),Zt(n,a))):(r&&(t.watchAll=!0),n);function oue(e){const t=cF(),{control:n=t.control,name:r,defaultValue:i,disabled:a,exact:s}=e||{},o=rn.useRef(r);o.current=r,dF({disabled:a,subject:n._subjects.values,next:d=>{aue(o.current,d.name,s)&&u(pl(sue(o.current,n._names,d.values||n._formValues,!1,i)))}});const[l,u]=rn.useState(n._getWatch(r,i));return rn.useEffect(()=>n._removeUnmounted()),l}function Hf(e){const t=cF(),{name:n,disabled:r,control:i=t.control,shouldUnregister:a}=e,s=Jle(i._names.array,n),o=oue({control:i,name:n,defaultValue:Zt(i._formValues,n,Zt(i._defaultValues,n,e.defaultValue)),exact:!0}),l=O$e({control:i,name:n,exact:!0}),u=rn.useRef(i.register(n,{...e.rules,value:o,...nc(e.disabled)?{disabled:e.disabled}:{}}));return rn.useEffect(()=>{const d=i._options.shouldUnregister||a,f=(p,g)=>{const O=Zt(i._fields,p);O&&O._f&&(O._f.mount=g)};if(f(n,!0),d){const p=pl(Zt(i._options.defaultValues,n));bi(i._defaultValues,n,p),Ta(Zt(i._formValues,n))&&bi(i._formValues,n,p)}return()=>{(s?d&&!i._state.action:d)?i.unregister(n):f(n,!1)}},[n,i,s,a]),rn.useEffect(()=>{Zt(i._fields,n)&&i._updateDisabledField({disabled:r,fields:i._fields,name:n,value:Zt(i._fields,n)._f.value})},[r,n,i]),{field:{name:n,value:o,...nc(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:rn.useCallback(d=>u.current.onChange({target:{value:Kle(d),name:n},type:I3.CHANGE}),[n]),onBlur:rn.useCallback(()=>u.current.onBlur({target:{value:Zt(i._formValues,n),name:n},type:I3.BLUR}),[n,i]),ref:rn.useCallback(d=>{const f=Zt(i._fields,n);f&&d&&(f._f.ref={focus:()=>d.focus(),select:()=>d.select(),setCustomValidity:p=>d.setCustomValidity(p),reportValidity:()=>d.reportValidity()})},[i._fields,n])},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Zt(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!Zt(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Zt(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Zt(l.validatingFields,n)},error:{enumerable:!0,get:()=>Zt(l.errors,n)}})}}var S$e=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},DZ=e=>({isOnSubmit:!e||e===gd.onSubmit,isOnBlur:e===gd.onBlur,isOnChange:e===gd.onChange,isOnAll:e===gd.all,isOnTouch:e===gd.onTouched}),PZ=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const h2=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const a=Zt(e,i);if(a){const{_f:s,...o}=a;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],i)&&!r)return!0;if(s.ref&&t(s.ref,s.name)&&!r)return!0;if(h2(o,t))break}else if(Wa(o)&&h2(o,t))break}}};var E$e=(e,t,n)=>{const r=f2(Zt(e,n));return bi(r,"root",t[n]),bi(e,n,r),e},fF=e=>e.type==="file",zh=e=>typeof e=="function",N3=e=>{if(!lF)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},K4=e=>vf(e),hF=e=>e.type==="radio",D3=e=>e instanceof RegExp;const LZ={value:!1,isValid:!1},MZ={value:!0,isValid:!0};var lue=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&&!Ta(e[0].attributes.value)?Ta(e[0].value)||e[0].value===""?MZ:{value:e[0].value,isValid:!0}:MZ:LZ}return LZ};const $Z={isValid:!1,value:null};var uue=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,$Z):$Z;function FZ(e,t,n="validate"){if(K4(e)||Array.isArray(e)&&e.every(K4)||nc(e)&&!e)return{type:n,message:K4(e)?e:"",ref:t}}var Nb=e=>Wa(e)&&!D3(e)?e:{value:e,message:""},BZ=async(e,t,n,r,i)=>{const{ref:a,refs:s,required:o,maxLength:l,minLength:u,min:d,max:f,pattern:p,validate:g,name:O,valueAsNumber:S,mount:T,disabled:w}=e._f,x=Zt(t,O);if(!T||w)return{};const k=s?s[0]:a,_=W=>{r&&k.reportValidity&&(k.setCustomValidity(nc(W)?"":W||""),k.reportValidity())},R={},N=hF(a),P=DT(a),L=N||P,j=(S||fF(a))&&Ta(a.value)&&Ta(x)||N3(a)&&a.value===""||x===""||Array.isArray(x)&&!x.length,B=S$e.bind(null,O,n,R),V=(W,re,ee,q=wh.maxLength,ne=wh.minLength)=>{const K=W?re:ee;R[O]={type:W?q:ne,message:K,ref:a,...B(W?q:ne,K)}};if(i?!Array.isArray(x)||!x.length:o&&(!L&&(j||Qo(x))||nc(x)&&!x||P&&!lue(s).isValid||N&&!uue(s).isValid)){const{value:W,message:re}=K4(o)?{value:!!o,message:o}:Nb(o);if(W&&(R[O]={type:wh.required,message:re,ref:k,...B(wh.required,re)},!n))return _(re),R}if(!j&&(!Qo(d)||!Qo(f))){let W,re;const ee=Nb(f),q=Nb(d);if(!Qo(x)&&!isNaN(x)){const ne=a.valueAsNumber||x&&+x;Qo(ee.value)||(W=ne>ee.value),Qo(q.value)||(re=nenew Date(new Date().toDateString()+" "+H),G=a.type=="time",ie=a.type=="week";vf(ee.value)&&x&&(W=G?K(x)>K(ee.value):ie?x>ee.value:ne>new Date(ee.value)),vf(q.value)&&x&&(re=G?K(x)+W.value,q=!Qo(re.value)&&x.length<+re.value;if((ee||q)&&(V(ee,W.message,re.message),!n))return _(R[O].message),R}if(p&&!j&&vf(x)){const{value:W,message:re}=Nb(p);if(D3(W)&&!x.match(W)&&(R[O]={type:wh.pattern,message:re,ref:a,...B(wh.pattern,re)},!n))return _(re),R}if(g){if(zh(g)){const W=await g(x,t),re=FZ(W,k);if(re&&(R[O]={...re,...B(wh.validate,re.message)},!n))return _(re.message),R}else if(Wa(g)){let W={};for(const re in g){if(!vl(W)&&!n)break;const ee=FZ(await g[re](x,t),k,re);ee&&(W={...ee,...B(re,ee.message)},_(ee.message),n&&(R[O]=W))}if(!vl(W)&&(R[O]={ref:k,...W},!n))return R}}return _(!0),R};function w$e(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{let e=[];return{get observers(){return e},next:i=>{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}},P3=e=>Qo(e)||!Xle(e);function b0(e,t){if(P3(e)||P3(t))return e===t;if(my(e)&&my(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const s=t[i];if(my(a)&&my(s)||Wa(a)&&Wa(s)||Array.isArray(a)&&Array.isArray(s)?!b0(a,s):a!==s)return!1}}return!0}var cue=e=>e.type==="select-multiple",x$e=e=>hF(e)||DT(e),XN=e=>N3(e)&&e.isConnected,due=e=>{for(const t in e)if(zh(e[t]))return!0;return!1};function L3(e,t={}){const n=Array.isArray(e);if(Wa(e)||n)for(const r in e)Array.isArray(e[r])||Wa(e[r])&&!due(e[r])?(t[r]=Array.isArray(e[r])?[]:{},L3(e[r],t[r])):Qo(e[r])||(t[r]=!0);return t}function fue(e,t,n){const r=Array.isArray(e);if(Wa(e)||r)for(const i in e)Array.isArray(e[i])||Wa(e[i])&&!due(e[i])?Ta(t)||P3(n[i])?n[i]=Array.isArray(e[i])?L3(e[i],[]):{...L3(e[i])}:fue(e[i],Qo(t)?{}:t[i],n[i]):n[i]=!b0(e[i],t[i]);return n}var TA=(e,t)=>fue(e,t,L3(t)),hue=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Ta(e)?e:t?e===""?NaN:e&&+e:n&&vf(e)?new Date(e):r?r(e):e;function KN(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return fF(t)?t.files:hF(t)?uue(e.refs).value:cue(t)?[...t.selectedOptions].map(({value:n})=>n):DT(t)?lue(e.refs).value:hue(Ta(t.value)?e.ref.value:t.value,e)}var k$e=(e,t,n,r)=>{const i={};for(const a of e){const s=Zt(t,a);s&&bi(i,a,s._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},sE=e=>Ta(e)?e:D3(e)?e.source:Wa(e)?D3(e.value)?e.value.source:e.value:e;const UZ="AsyncFunction";var A$e=e=>(!e||!e.validate)&&!!(zh(e.validate)&&e.validate.constructor.name===UZ||Wa(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===UZ)),_$e=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function zZ(e,t,n){const r=Zt(e,n);if(r||uF(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),s=Zt(t,a),o=Zt(e,a);if(s&&!Array.isArray(s)&&n!==a)return{name:n};if(o&&o.type)return{name:a,error:o};i.pop()}return{name:n}}var C$e=(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,R$e=(e,t)=>!pR(Zt(e,t)).length&&Ka(e,t);const I$e={mode:gd.onSubmit,reValidateMode:gd.onChange,shouldFocusError:!0};function N$e(e={}){let t={...I$e,...e},n={submitCount:0,isDirty:!1,isLoading:zh(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=Wa(t.defaultValues)||Wa(t.values)?pl(t.defaultValues||t.values)||{}:{},a=t.shouldUnregister?{}:pl(i),s={action:!1,mount:!1,watch:!1},o={mount:new Set,unMount:new Set,array:new Set,watch:new Set},l,u=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={values:ZN(),array:ZN(),state:ZN()},p=DZ(t.mode),g=DZ(t.reValidateMode),O=t.criteriaMode===gd.all,S=de=>_e=>{clearTimeout(u),u=setTimeout(de,_e)},T=async de=>{if(d.isValid||de){const _e=t.resolver?vl((await L()).errors):await B(r,!0);_e!==n.isValid&&f.state.next({isValid:_e})}},w=(de,_e)=>{(d.isValidating||d.validatingFields)&&((de||Array.from(o.mount)).forEach(Ne=>{Ne&&(_e?bi(n.validatingFields,Ne,_e):Ka(n.validatingFields,Ne))}),f.state.next({validatingFields:n.validatingFields,isValidating:!vl(n.validatingFields)}))},x=(de,_e=[],Ne,Ke,ut=!0,Je=!0)=>{if(Ke&&Ne){if(s.action=!0,Je&&Array.isArray(Zt(r,de))){const gt=Ne(Zt(r,de),Ke.argA,Ke.argB);ut&&bi(r,de,gt)}if(Je&&Array.isArray(Zt(n.errors,de))){const gt=Ne(Zt(n.errors,de),Ke.argA,Ke.argB);ut&&bi(n.errors,de,gt),R$e(n.errors,de)}if(d.touchedFields&&Je&&Array.isArray(Zt(n.touchedFields,de))){const gt=Ne(Zt(n.touchedFields,de),Ke.argA,Ke.argB);ut&&bi(n.touchedFields,de,gt)}d.dirtyFields&&(n.dirtyFields=TA(i,a)),f.state.next({name:de,isDirty:W(de,_e),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else bi(a,de,_e)},k=(de,_e)=>{bi(n.errors,de,_e),f.state.next({errors:n.errors})},_=de=>{n.errors=de,f.state.next({errors:n.errors,isValid:!1})},R=(de,_e,Ne,Ke)=>{const ut=Zt(r,de);if(ut){const Je=Zt(a,de,Ta(Ne)?Zt(i,de):Ne);Ta(Je)||Ke&&Ke.defaultChecked||_e?bi(a,de,_e?Je:KN(ut._f)):q(de,Je),s.mount&&T()}},N=(de,_e,Ne,Ke,ut)=>{let Je=!1,gt=!1;const Jt={name:de},Fe=!!(Zt(r,de)&&Zt(r,de)._f&&Zt(r,de)._f.disabled);if(!Ne||Ke){d.isDirty&&(gt=n.isDirty,n.isDirty=Jt.isDirty=W(),Je=gt!==Jt.isDirty);const we=Fe||b0(Zt(i,de),_e);gt=!!(!Fe&&Zt(n.dirtyFields,de)),we||Fe?Ka(n.dirtyFields,de):bi(n.dirtyFields,de,!0),Jt.dirtyFields=n.dirtyFields,Je=Je||d.dirtyFields&>!==!we}if(Ne){const we=Zt(n.touchedFields,de);we||(bi(n.touchedFields,de,Ne),Jt.touchedFields=n.touchedFields,Je=Je||d.touchedFields&&we!==Ne)}return Je&&ut&&f.state.next(Jt),Je?Jt:{}},P=(de,_e,Ne,Ke)=>{const ut=Zt(n.errors,de),Je=d.isValid&&nc(_e)&&n.isValid!==_e;if(e.delayError&&Ne?(l=S(()=>k(de,Ne)),l(e.delayError)):(clearTimeout(u),l=null,Ne?bi(n.errors,de,Ne):Ka(n.errors,de)),(Ne?!b0(ut,Ne):ut)||!vl(Ke)||Je){const gt={...Ke,...Je&&nc(_e)?{isValid:_e}:{},errors:n.errors,name:de};n={...n,...gt},f.state.next(gt)}},L=async de=>{w(de,!0);const _e=await t.resolver(a,t.context,k$e(de||o.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return w(de),_e},j=async de=>{const{errors:_e}=await L(de);if(de)for(const Ne of de){const Ke=Zt(_e,Ne);Ke?bi(n.errors,Ne,Ke):Ka(n.errors,Ne)}else n.errors=_e;return _e},B=async(de,_e,Ne={valid:!0})=>{for(const Ke in de){const ut=de[Ke];if(ut){const{_f:Je,...gt}=ut;if(Je){const Jt=o.array.has(Je.name),Fe=ut._f&&A$e(ut._f);Fe&&d.validatingFields&&w([Ke],!0);const we=await BZ(ut,a,O,t.shouldUseNativeValidation&&!_e,Jt);if(Fe&&d.validatingFields&&w([Ke]),we[Je.name]&&(Ne.valid=!1,_e))break;!_e&&(Zt(we,Je.name)?Jt?E$e(n.errors,we,Je.name):bi(n.errors,Je.name,we[Je.name]):Ka(n.errors,Je.name))}!vl(gt)&&await B(gt,_e,Ne)}}return Ne.valid},V=()=>{for(const de of o.unMount){const _e=Zt(r,de);_e&&(_e._f.refs?_e._f.refs.every(Ne=>!XN(Ne)):!XN(_e._f.ref))&&ae(de)}o.unMount=new Set},W=(de,_e)=>(de&&_e&&bi(a,de,_e),!b0(Re(),i)),re=(de,_e,Ne)=>sue(de,o,{...s.mount?a:Ta(_e)?i:vf(de)?{[de]:_e}:_e},Ne,_e),ee=de=>pR(Zt(s.mount?a:i,de,e.shouldUnregister?Zt(i,de,[]):[])),q=(de,_e,Ne={})=>{const Ke=Zt(r,de);let ut=_e;if(Ke){const Je=Ke._f;Je&&(!Je.disabled&&bi(a,de,hue(_e,Je)),ut=N3(Je.ref)&&Qo(_e)?"":_e,cue(Je.ref)?[...Je.ref.options].forEach(gt=>gt.selected=ut.includes(gt.value)):Je.refs?DT(Je.ref)?Je.refs.length>1?Je.refs.forEach(gt=>(!gt.defaultChecked||!gt.disabled)&&(gt.checked=Array.isArray(ut)?!!ut.find(Jt=>Jt===gt.value):ut===gt.value)):Je.refs[0]&&(Je.refs[0].checked=!!ut):Je.refs.forEach(gt=>gt.checked=gt.value===ut):fF(Je.ref)?Je.ref.value="":(Je.ref.value=ut,Je.ref.type||f.values.next({name:de,values:{...a}})))}(Ne.shouldDirty||Ne.shouldTouch)&&N(de,ut,Ne.shouldTouch,Ne.shouldDirty,!0),Ne.shouldValidate&&H(de)},ne=(de,_e,Ne)=>{for(const Ke in _e){const ut=_e[Ke],Je=`${de}.${Ke}`,gt=Zt(r,Je);(o.array.has(de)||!P3(ut)||gt&&!gt._f)&&!my(ut)?ne(Je,ut,Ne):q(Je,ut,Ne)}},K=(de,_e,Ne={})=>{const Ke=Zt(r,de),ut=o.array.has(de),Je=pl(_e);bi(a,de,Je),ut?(f.array.next({name:de,values:{...a}}),(d.isDirty||d.dirtyFields)&&Ne.shouldDirty&&f.state.next({name:de,dirtyFields:TA(i,a),isDirty:W(de,Je)})):Ke&&!Ke._f&&!Qo(Je)?ne(de,Je,Ne):q(de,Je,Ne),PZ(de,o)&&f.state.next({...n}),f.values.next({name:s.mount?de:void 0,values:{...a}})},G=async de=>{s.mount=!0;const _e=de.target;let Ne=_e.name,Ke=!0;const ut=Zt(r,Ne),Je=()=>_e.type?KN(ut._f):Kle(de),gt=Jt=>{Ke=Number.isNaN(Jt)||b0(Jt,Zt(a,Ne,Jt))};if(ut){let Jt,Fe;const we=Je(),be=de.type===I3.BLUR||de.type===I3.FOCUS_OUT,xe=!_$e(ut._f)&&!t.resolver&&!Zt(n.errors,Ne)&&!ut._f.deps||C$e(be,Zt(n.touchedFields,Ne),n.isSubmitted,g,p),Ue=PZ(Ne,o,be);bi(a,Ne,we),be?(ut._f.onBlur&&ut._f.onBlur(de),l&&l(0)):ut._f.onChange&&ut._f.onChange(de);const Ct=N(Ne,we,be,!1),qt=!vl(Ct)||Ue;if(!be&&f.values.next({name:Ne,type:de.type,values:{...a}}),xe)return d.isValid&&(e.mode==="onBlur"?be&&T():T()),qt&&f.state.next({name:Ne,...Ue?{}:Ct});if(!be&&Ue&&f.state.next({...n}),t.resolver){const{errors:tt}=await L([Ne]);if(gt(we),Ke){const Wt=zZ(n.errors,r,Ne),Ht=zZ(tt,r,Wt.name||Ne);Jt=Ht.error,Ne=Ht.name,Fe=vl(tt)}}else w([Ne],!0),Jt=(await BZ(ut,a,O,t.shouldUseNativeValidation))[Ne],w([Ne]),gt(we),Ke&&(Jt?Fe=!1:d.isValid&&(Fe=await B(r,!0)));Ke&&(ut._f.deps&&H(ut._f.deps),P(Ne,Fe,Jt,Ct))}},ie=(de,_e)=>{if(Zt(n.errors,_e)&&de.focus)return de.focus(),1},H=async(de,_e={})=>{let Ne,Ke;const ut=f2(de);if(t.resolver){const Je=await j(Ta(de)?de:ut);Ne=vl(Je),Ke=de?!ut.some(gt=>Zt(Je,gt)):Ne}else de?(Ke=(await Promise.all(ut.map(async Je=>{const gt=Zt(r,Je);return await B(gt&>._f?{[Je]:gt}:gt)}))).every(Boolean),!(!Ke&&!n.isValid)&&T()):Ke=Ne=await B(r);return f.state.next({...!vf(de)||d.isValid&&Ne!==n.isValid?{}:{name:de},...t.resolver||!de?{isValid:Ne}:{},errors:n.errors}),_e.shouldFocus&&!Ke&&h2(r,ie,de?ut:o.mount),Ke},Re=de=>{const _e={...s.mount?a:i};return Ta(de)?_e:vf(de)?Zt(_e,de):de.map(Ne=>Zt(_e,Ne))},Se=(de,_e)=>({invalid:!!Zt((_e||n).errors,de),isDirty:!!Zt((_e||n).dirtyFields,de),error:Zt((_e||n).errors,de),isValidating:!!Zt(n.validatingFields,de),isTouched:!!Zt((_e||n).touchedFields,de)}),Z=de=>{de&&f2(de).forEach(_e=>Ka(n.errors,_e)),f.state.next({errors:de?n.errors:{}})},ke=(de,_e,Ne)=>{const Ke=(Zt(r,de,{_f:{}})._f||{}).ref,ut=Zt(n.errors,de)||{},{ref:Je,message:gt,type:Jt,...Fe}=ut;bi(n.errors,de,{...Fe,..._e,ref:Ke}),f.state.next({name:de,errors:n.errors,isValid:!1}),Ne&&Ne.shouldFocus&&Ke&&Ke.focus&&Ke.focus()},$e=(de,_e)=>zh(de)?f.values.subscribe({next:Ne=>de(re(void 0,_e),Ne)}):re(de,_e,!0),ae=(de,_e={})=>{for(const Ne of de?f2(de):o.mount)o.mount.delete(Ne),o.array.delete(Ne),_e.keepValue||(Ka(r,Ne),Ka(a,Ne)),!_e.keepError&&Ka(n.errors,Ne),!_e.keepDirty&&Ka(n.dirtyFields,Ne),!_e.keepTouched&&Ka(n.touchedFields,Ne),!_e.keepIsValidating&&Ka(n.validatingFields,Ne),!t.shouldUnregister&&!_e.keepDefaultValue&&Ka(i,Ne);f.values.next({values:{...a}}),f.state.next({...n,..._e.keepDirty?{isDirty:W()}:{}}),!_e.keepIsValid&&T()},Xe=({disabled:de,name:_e,field:Ne,fields:Ke,value:ut})=>{if(nc(de)&&s.mount||de){const Je=de?void 0:Ta(ut)?KN(Ne?Ne._f:Zt(Ke,_e)._f):ut;bi(a,_e,Je),N(_e,Je,!1,!1,!0)}},We=(de,_e={})=>{let Ne=Zt(r,de);const Ke=nc(_e.disabled)||nc(e.disabled);return bi(r,de,{...Ne||{},_f:{...Ne&&Ne._f?Ne._f:{ref:{name:de}},name:de,mount:!0,..._e}}),o.mount.add(de),Ne?Xe({field:Ne,disabled:nc(_e.disabled)?_e.disabled:e.disabled,name:de,value:_e.value}):R(de,!0,_e.value),{...Ke?{disabled:_e.disabled||e.disabled}:{},...t.progressive?{required:!!_e.required,min:sE(_e.min),max:sE(_e.max),minLength:sE(_e.minLength),maxLength:sE(_e.maxLength),pattern:sE(_e.pattern)}:{},name:de,onChange:G,onBlur:G,ref:ut=>{if(ut){We(de,_e),Ne=Zt(r,de);const Je=Ta(ut.value)&&ut.querySelectorAll&&ut.querySelectorAll("input,select,textarea")[0]||ut,gt=x$e(Je),Jt=Ne._f.refs||[];if(gt?Jt.find(Fe=>Fe===Je):Je===Ne._f.ref)return;bi(r,de,{_f:{...Ne._f,...gt?{refs:[...Jt.filter(XN),Je,...Array.isArray(Zt(i,de))?[{}]:[]],ref:{type:Je.type,name:de}}:{ref:Je}}}),R(de,!1,void 0,Je)}else Ne=Zt(r,de,{}),Ne._f&&(Ne._f.mount=!1),(t.shouldUnregister||_e.shouldUnregister)&&!(Jle(o.array,de)&&s.action)&&o.unMount.add(de)}}},Ye=()=>t.shouldFocusError&&h2(r,ie,o.mount),xt=de=>{nc(de)&&(f.state.next({disabled:de}),h2(r,(_e,Ne)=>{const Ke=Zt(r,Ne);Ke&&(_e.disabled=Ke._f.disabled||de,Array.isArray(Ke._f.refs)&&Ke._f.refs.forEach(ut=>{ut.disabled=Ke._f.disabled||de}))},0,!1))},it=(de,_e)=>async Ne=>{let Ke;Ne&&(Ne.preventDefault&&Ne.preventDefault(),Ne.persist&&Ne.persist());let ut=pl(a);if(f.state.next({isSubmitting:!0}),t.resolver){const{errors:Je,values:gt}=await L();n.errors=Je,ut=gt}else await B(r);if(Ka(n.errors,"root"),vl(n.errors)){f.state.next({errors:{}});try{await de(ut,Ne)}catch(Je){Ke=Je}}else _e&&await _e({...n.errors},Ne),Ye(),setTimeout(Ye);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:vl(n.errors)&&!Ke,submitCount:n.submitCount+1,errors:n.errors}),Ke)throw Ke},Pt=(de,_e={})=>{Zt(r,de)&&(Ta(_e.defaultValue)?K(de,pl(Zt(i,de))):(K(de,_e.defaultValue),bi(i,de,pl(_e.defaultValue))),_e.keepTouched||Ka(n.touchedFields,de),_e.keepDirty||(Ka(n.dirtyFields,de),n.isDirty=_e.defaultValue?W(de,pl(Zt(i,de))):W()),_e.keepError||(Ka(n.errors,de),d.isValid&&T()),f.state.next({...n}))},jt=(de,_e={})=>{const Ne=de?pl(de):i,Ke=pl(Ne),ut=vl(de),Je=ut?i:Ke;if(_e.keepDefaultValues||(i=Ne),!_e.keepValues){if(_e.keepDirtyValues)for(const gt of o.mount)Zt(n.dirtyFields,gt)?bi(Je,gt,Zt(a,gt)):K(gt,Zt(Je,gt));else{if(lF&&Ta(de))for(const gt of o.mount){const Jt=Zt(r,gt);if(Jt&&Jt._f){const Fe=Array.isArray(Jt._f.refs)?Jt._f.refs[0]:Jt._f.ref;if(N3(Fe)){const we=Fe.closest("form");if(we){we.reset();break}}}}r={}}a=e.shouldUnregister?_e.keepDefaultValues?pl(i):{}:pl(Je),f.array.next({values:{...Je}}),f.values.next({values:{...Je}})}o={mount:_e.keepDirtyValues?o.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!d.isValid||!!_e.keepIsValid||!!_e.keepDirtyValues,s.watch=!!e.shouldUnregister,f.state.next({submitCount:_e.keepSubmitCount?n.submitCount:0,isDirty:ut?!1:_e.keepDirty?n.isDirty:!!(_e.keepDefaultValues&&!b0(de,i)),isSubmitted:_e.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:ut?{}:_e.keepDirtyValues?_e.keepDefaultValues&&a?TA(i,a):n.dirtyFields:_e.keepDefaultValues&&de?TA(i,de):_e.keepDirty?n.dirtyFields:{},touchedFields:_e.keepTouched?n.touchedFields:{},errors:_e.keepErrors?n.errors:{},isSubmitSuccessful:_e.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},ct=(de,_e)=>jt(zh(de)?de(a):de,_e);return{control:{register:We,unregister:ae,getFieldState:Se,handleSubmit:it,setError:ke,_executeSchema:L,_getWatch:re,_getDirty:W,_updateValid:T,_removeUnmounted:V,_updateFieldArray:x,_updateDisabledField:Xe,_getFieldArray:ee,_reset:jt,_resetDefaultValues:()=>zh(t.defaultValues)&&t.defaultValues().then(de=>{ct(de,t.resetOptions),f.state.next({isLoading:!1})}),_updateFormState:de=>{n={...n,...de}},_disableForm:xt,_subjects:f,_proxyFormState:d,_setErrors:_,get _fields(){return r},get _formValues(){return a},get _state(){return s},set _state(de){s=de},get _defaultValues(){return i},get _names(){return o},set _names(de){o=de},get _formState(){return n},set _formState(de){n=de},get _options(){return t},set _options(de){t={...t,...de}}},trigger:H,register:We,handleSubmit:it,watch:$e,setValue:K,getValues:Re,reset:ct,resetField:Pt,clearErrors:Z,unregister:ae,setError:ke,setFocus:(de,_e={})=>{const Ne=Zt(r,de),Ke=Ne&&Ne._f;if(Ke){const ut=Ke.refs?Ke.refs[0]:Ke.ref;ut.focus&&(ut.focus(),_e.shouldSelect&&ut.select())}},getFieldState:Se}}function pue(e={}){const t=rn.useRef(),n=rn.useRef(),[r,i]=rn.useState({isDirty:!1,isValidating:!1,isLoading:zh(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:zh(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...N$e(e),formState:r});const a=t.current.control;return a._options=e,dF({subject:a._subjects.state,next:s=>{iue(s,a._proxyFormState,a._updateFormState,!0)&&i({...a._formState})}}),rn.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),rn.useEffect(()=>{if(a._proxyFormState.isDirty){const s=a._getDirty();s!==r.isDirty&&a._subjects.state.next({isDirty:s})}},[a,r.isDirty]),rn.useEffect(()=>{e.values&&!b0(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values,i(s=>({...s}))):a._resetDefaultValues()},[e.values,a]),rn.useEffect(()=>{e.errors&&a._setErrors(e.errors)},[e.errors,a]),rn.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),rn.useEffect(()=>{e.shouldUnregister&&a._subjects.values.next({values:a._getWatch()})},[e.shouldUnregister,a]),t.current.formState=rue(r,a),t.current}var pF={},D$e=Ii;Object.defineProperty(pF,"__esModule",{value:!0});var mue=pF.default=void 0,P$e=D$e(ta()),L$e=I;mue=pF.default=(0,P$e.default)((0,L$e.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 mF={},M$e=Ii;Object.defineProperty(mF,"__esModule",{value:!0});var gue=mF.default=void 0,$$e=M$e(ta()),F$e=I;gue=mF.default=(0,$$e.default)((0,F$e.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 E8(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 q$e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function G$e(e,t){return B$e(e)||H$e(e,t)||yue(e,t)||Q$e()}function bue(e){return U$e(e)||j$e(e)||yue(e)||W$e()}function Y$e(e){"@swc/helpers - typeof";return e&&typeof Symbol<"u"&&e.constructor===Symbol?"symbol":typeof e}function yue(e,t){if(e){if(typeof e=="string")return E8(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 E8(e,t)}}var vue=M.forwardRef(function(e,t){var n=e.rules,r=n===void 0?{}:n,i=e.parseError,a=e.type,s=e.required,o=e.name,l=e.control,u=e.component,d=u===void 0?ST:u,f=e.inputRef,p=e.transform,g=Pu(e,["rules","parseError","type","required","name","control","component","inputRef","transform"]),O=Sp(),S=i||O,T=zn({},r,s&&!r.required&&{required:"This field is required"},a==="email"&&!r.pattern&&{pattern:{value:/^(([^<>()\[\]\\.,;:\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"}}),w=Hf({name:o,control:l,disabled:g.disabled,rules:T}),x=w.field,k=w.fieldState,_=k.error,R=jf({value:x.value,onChange:x.onChange,transform:{input:typeof(p==null?void 0:p.input)=="function"?p.input:function(j){return j??""},output:typeof(p==null?void 0:p.output)=="function"?p.output:function(j){var B=j.target.value;return a!=="number"?B:B===""?null:B==null?B:Number(B)}}}),N=R.value,P=R.onChange,L=vr(x.ref,f);return I.jsx(d,vi(zn({},g),{name:x.name,value:N,onChange:function(j){P(j),typeof g.onChange=="function"&&g.onChange(j)},onBlur:x.onBlur,required:s,type:a,error:!!_,helperText:_?typeof S=="function"?S(_):_.message:g.helperText,ref:t,inputRef:L}))});vue.displayName="TextFieldElement";var PT=vue;function dO(e){var t=e.handleSubmit,n=e.children,r=e.FormProps,i=e.formContext,a=e.onSuccess,s=e.onError,o=Pu(e,["handleSubmit","children","FormProps","formContext","onSuccess","onError"]);return i?(typeof a=="function"&&typeof t=="function"&&console.warn("Property `onSuccess` will be ignored because handleSubmit is provided"),I.jsx(nue,vi(zn({},i),{children:I.jsx("form",vi(zn({noValidate:!0},r),{onSubmit:t||(a?i.handleSubmit(a,s):function(){return console.log("submit handler `onSuccess` is missing")}),children:n}))}))):I.jsx(Z$e,zn({onSuccess:a,onError:s,FormProps:r,children:n},o))}function Z$e(e){var t=e.onSuccess,n=e.onError,r=e.FormProps,i=e.children,a=Pu(e,["onSuccess","onError","FormProps","children"]),s=pue(zn({},a)),o=s.handleSubmit;return I.jsx(nue,vi(zn({},s),{children:I.jsx("form",vi(zn({onSubmit:o(t||function(){return console.log("submit handler `onSuccess` is missing")},n),noValidate:!0},r),{children:i}))}))}var X$e=M.forwardRef(function(e,t){var n=e.name,r=e.rules,i=r===void 0?{}:r,a=e.required,s=e.parseError,o=e.label,l=e.control,u=e.helperText,d=e.labelProps,f=e.inputRef,p=e.transform,g=Pu(e,["name","rules","required","parseError","label","control","helperText","labelProps","inputRef","transform"]),O=Sp(),S=s||O,T=zn({},i,a&&!i.required&&{required:"This field is required"}),w=Hf({name:n,control:l,disabled:g.disabled,rules:T}),x=w.field,k=w.fieldState,_=k.error,R=jf({value:x.value,onChange:x.onChange,transform:{input:p==null?void 0:p.input,output:typeof(p==null?void 0:p.output)=="function"?p==null?void 0:p.output:function(B,V){return V}}}),N=R.value,P=R.onChange,L=vr(x.ref,f),j=_?typeof S=="function"?S(_):_.message:u;return I.jsxs(Lc,{required:a,error:!!_,ref:t,children:[I.jsx(k$,{row:!0,children:I.jsx(uw,vi(zn({},d),{label:o||"",control:I.jsx(X5,vi(zn({},g),{color:g.color||"primary",sx:bue(Array.isArray(g.sx)?g.sx:[g.sx]).concat([{color:_?"error.main":void 0}]),value:N,checked:!!N,onChange:function(B,V){P(B,V),typeof g.onChange=="function"&&g.onChange(B,V)},inputRef:L}))}))}),j&&I.jsx(aO,{error:!!_,children:j})]})});X$e.displayName="CheckboxElement";var Oue=M.forwardRef(function(e,t){var n,r=e.name,i=e.required,a=e.valueKey,s=a===void 0?"id":a,o=e.labelKey,l=o===void 0?"label":o,u=e.options,d=u===void 0?[]:u,f=e.parseError,p=e.type,g=e.objectOnChange,O=e.rules,S=O===void 0?{}:O,T=e.control,w=e.inputRef,x=e.transform,k=Pu(e,["name","required","valueKey","labelKey","options","parseError","type","objectOnChange","rules","control","inputRef","transform"]),_=Sp(),R=f||_,N=!!(!((n=k.SelectProps)===null||n===void 0)&&n.native),P=zn({},S,i&&!S.required&&{required:"This field is required"}),L=Hf({name:r,rules:P,disabled:k.disabled,control:T}),j=L.field,B=L.fieldState,V=B.error,W=jf({value:j.value,onChange:j.onChange,transform:{input:typeof(x==null?void 0:x.input)=="function"?x.input:function(ne){var K,G;return(G=(K=ne==null?void 0:ne[s])!==null&&K!==void 0?K:ne)!==null&&G!==void 0?G:""},output:typeof(x==null?void 0:x.output)=="function"?x.output:function(ne){var K=ne.target.value;return p==="number"&&K&&(K=Number(K)),K}}}),re=W.value,ee=W.onChange,q=vr(j.ref,w);return p==="number"&&(typeof re>"u"?"undefined":Y$e(re))<"u"&&(k.InputLabelProps=k.InputLabelProps||{},k.InputLabelProps.shrink=!0),I.jsxs(ST,vi(zn({},k),{name:r,value:re,onBlur:j.onBlur,ref:t,onChange:function(ne){if(ee(ne),typeof k.onChange=="function"){var K=ne.target.value;p==="number"&&K&&(K=Number(K)),g&&(K=d.find(function(G){return G[s]===K})),k.onChange(K)}},select:!0,required:i,error:!!V,helperText:V?typeof R=="function"?R(V):V.message:k.helperText,inputRef:q,children:[N&&I.jsx("option",{}),d.map(function(ne){var K,G="".concat(r,"_").concat(ne[s]),ie={value:(K=ne==null?void 0:ne[s])!==null&&K!==void 0?K:ne,disabled:El(ne,"disabled")?!!ne.disabled:!1,children:ne[l]};return N?I.jsx("option",zn({},ie),G):I.jsx(Od,zn({},ie),G)})]}))});Oue.displayName="SelectElement";var w8=Oue,K$e=M.forwardRef(function(e,t){var n=e.helperText,r=e.options,i=e.label,a=e.name,s=e.parseError,o=e.required,l=e.labelKey,u=l===void 0?"label":l,d=e.valueKey,f=d===void 0?"id":d,p=e.returnObject,g=e.disabled,O=e.row,S=e.control,T=e.checkboxColor,w=e.rules,x=e.labelProps,k=e.transform,_=e.defaultValue,R=_===void 0?[]:_,N=Pu(e,["helperText","options","label","name","parseError","required","labelKey","valueKey","returnObject","disabled","row","control","checkboxColor","rules","labelProps","transform","defaultValue"]),P=Uf(),L=Sp(),j=s||L,B=Hf({name:a,rules:o?{required:"This field is required"}:w,disabled:g,control:S,defaultValue:R}),V=B.field,W=B.fieldState,re=W.error,ee=W.invalid,q=jf({value:V.value,onChange:V.onChange,transform:{input:typeof(k==null?void 0:k.input)=="function"?k.input:function(H){return Array.isArray(H)?H:[]},output:k==null?void 0:k.output}}),ne=q.value,K=q.onChange,G=function(H){var Re=El(H,f)?H[f]:H,Se=ne.findIndex(function(ke){var $e=El(ke,f)?ke[f]:ke;return Re===$e}),Z=(Se===-1?bue(ne).concat([H]):ne.filter(function(ke,$e){return Se!==$e})).map(function(ke){return p||!El(ke,f)?ke:ke[f]});K(Z),typeof N.onChange=="function"&&N.onChange(Z)},ie=re?typeof j=="function"?j(re):re.message:n;return I.jsxs(Lc,{error:ee,required:o,ref:t,children:[i?I.jsx(J5,{children:i}):null,I.jsx(k$,{row:O,children:r.map(function(H){var Re=El(H,f)?H[f]:H,Se=El(H,u)?H[u]:H,Z=ne.some(function(ke){return(El(ke,f)?ke[f]:ke)===Re});return M.createElement(uw,vi(zn({},x),{control:I.jsx(X5,{sx:{color:re?P.palette.error.main:void 0},color:T,value:Re,checked:Z,disabled:g,onChange:function(){return G(H)}}),label:"".concat(Se),key:"".concat(Re)}))})}),ie&&I.jsx(aO,{children:ie})]})});K$e.displayName="CheckboxButtonGroup";var J$e=48,eFe=8,tFe=M.forwardRef(function(e,t){var n,r,i,a,s,o=e.options,l=e.label,u=l===void 0?"":l,d=e.itemKey,f=d===void 0?"id":d,p=e.itemValue,g=p===void 0?"":p,O=e.itemLabel,S=O===void 0?"label":O,T=e.required,w=T===void 0?!1:T,x=e.rules,k=x===void 0?{}:x,_=e.parseError,R=e.name,N=e.menuMaxHeight,P=N===void 0?J$e*4.5+eFe:N,L=e.menuMaxWidth,j=L===void 0?250:L,B=e.minWidth,V=B===void 0?120:B,W=e.helperText,re=e.showChips,ee=e.preserveOrder,q=e.control,ne=e.showCheckbox,K=e.formControlProps,G=e.inputRef,ie=e.transform,H=e.inputLabelProps,Re=Pu(e,["options","label","itemKey","itemValue","itemLabel","required","rules","parseError","name","menuMaxHeight","menuMaxWidth","minWidth","helperText","showChips","preserveOrder","control","showCheckbox","formControlProps","inputRef","transform","inputLabelProps"]),Se=Sp(),Z=_||Se,ke=function(yt){var Ut,de;return(de=(Ut=o.find(function(_e){var Ne;return((Ne=_e[g||f])!==null&&Ne!==void 0?Ne:_e)===yt}))===null||Ut===void 0?void 0:Ut[S])!==null&&de!==void 0?de:yt},$e=zn({},k,w&&!k.required&&{required:"This field is required"}),ae=Hf({name:R,rules:$e,disabled:Re.disabled,control:q}),Xe=ae.field,We=ae.fieldState,Ye=We.error,xt=jf({value:Xe.value,onChange:Xe.onChange,transform:{input:typeof(ie==null?void 0:ie.input)=="function"?ie.input:function(yt){return Array.isArray(yt)?yt:[]},output:ie==null?void 0:ie.output}}),it=xt.value,Pt=xt.onChange,jt=vr(Xe.ref,G),ct=Ye?typeof Z=="function"?Z(Ye):Ye.message:W,Ot;return I.jsxs(Lc,vi(zn({},K),{style:zn({minWidth:V},K==null?void 0:K.style),variant:Re.variant,fullWidth:Re.fullWidth,error:!!Ye,size:Re.size,ref:t,children:[u&&I.jsx(toe,vi(zn({},H),{size:Re.size==="small"?"small":H==null?void 0:H.size,error:!!Ye,htmlFor:Re.id||"select-multi-select-".concat(R),required:w,children:u})),I.jsx(N$,vi(zn({},Re),{id:Re.id||"select-multi-select-".concat(R),multiple:!0,label:u||void 0,error:!!Ye,value:it,required:w,onChange:Pt,onBlur:Xe.onBlur,MenuProps:vi(zn({},Re.MenuProps),{slotProps:vi(zn({},(n=Re.MenuProps)===null||n===void 0?void 0:n.slotProps),{paper:zn({},(Ot=(i=Re.MenuProps)===null||i===void 0||(r=i.slotProps)===null||r===void 0?void 0:r.paper)!==null&&Ot!==void 0?Ot:{style:zn({maxHeight:P,width:j},El((s=Re.MenuProps)===null||s===void 0||(a=s.slotProps)===null||a===void 0?void 0:a.paper,"style")&&typeof Re.MenuProps.slotProps.paper.style=="object"&&zn({},Re.MenuProps.slotProps.paper.style))})})}),renderValue:typeof Re.renderValue=="function"?Re.renderValue:re?function(yt){return I.jsx("div",{style:{display:"flex",flexWrap:"wrap"},children:(ee?o.filter(function(Ut){return yt.includes(Ut)}):yt||[]).map(function(Ut){return I.jsx(qse,{label:ke(Ut),style:{display:"flex",flexWrap:"wrap"},onDelete:function(){Pt((Array.isArray(it)?it:[]).filter(function(de){return de!==Ut}))},deleteIcon:I.jsx(mue,{onMouseDown:function(de){de.stopPropagation()}})},Ut)})})}:function(yt){return Array.isArray(yt)?yt.map(ke).join(", "):""},inputRef:jt,children:o.map(function(yt){var Ut=yt[g||f]||yt,de=Array.isArray(it)?it.some(function(_e){return _e===Ut}):!1;return I.jsxs(Od,{value:Ut,sx:{fontWeight:function(_e){return de?_e.typography.fontWeightBold:_e.typography.fontWeightRegular}},children:[ne&&I.jsx(X5,{checked:de}),I.jsx(Vh,{primary:yt[S]||yt})]},Ut)})})),ct&&I.jsx(aO,{error:!!Ye,children:ct})]}))});tFe.displayName="MultiSelectElement";var Sue=M.forwardRef(function(e,t){var n=e.iconColor,r=e.renderIcon,i=r===void 0?function(u){return u?I.jsx(nF,{}):I.jsx(gue,{})}:r,a=Pu(e,["iconColor","renderIcon"]),s=G$e(M.useState(!0),2),o=s[0],l=s[1];return I.jsx(PT,vi(zn({},a),{ref:t,InputProps:{endAdornment:I.jsx(jP,{position:"end",children:I.jsx(Oo,{onMouseDown:function(u){return u.preventDefault()},onClick:function(){return l(!o)},tabIndex:-1,color:n??"default",children:i(o)})})},type:o?"password":"text"}))});Sue.displayName="PasswordElement";var nFe=Sue,rFe=M.forwardRef(function(e,t){var n=e.helperText,r=e.options,i=e.label,a=e.name,s=e.parseError,o=e.labelKey,l=o===void 0?"label":o,u=e.valueKey,d=u===void 0?"id":u,f=e.disabledKey,p=f===void 0?"disabled":f,g=e.required,O=e.emptyOptionLabel,S=e.returnObject,T=e.row,w=e.control,x=e.type,k=e.labelProps,_=e.disabled,R=e.formLabelProps,N=e.transform,P=e.rules,L=P===void 0?{}:P,j=Pu(e,["helperText","options","label","name","parseError","labelKey","valueKey","disabledKey","required","emptyOptionLabel","returnObject","row","control","type","labelProps","disabled","formLabelProps","transform","rules"]),B=Uf(),V=Sp(),W=s||V,re=zn({},L,g&&!L.required&&{required:"This field is required"}),ee=Hf({name:a,rules:re,disabled:_,control:w}),q=ee.field,ne=ee.fieldState,K=ne.error,G=jf({value:q.value,onChange:q.onChange,transform:{input:typeof(N==null?void 0:N.input)=="function"?N.input:function(Z){return Z||""},output:typeof(N==null?void 0:N.output)=="function"?N==null?void 0:N.output:function(Z,ke){return ke&&x==="number"?Number(ke):ke}}}),ie=G.value,H=G.onChange,Re=K?typeof W=="function"?W(K):K.message:n,Se=function(Z,ke){var $e=S?r.find(function(ae){return ae[d]===ke}):ke;H(Z,$e),typeof j.onChange=="function"&&j.onChange($e)};return I.jsxs(Lc,{error:!!K,ref:t,children:[i&&I.jsx(J5,vi(zn({},R),{required:g,error:!!K,children:i})),I.jsxs(kNe,{onChange:Se,name:a,row:T,value:ie,children:[O&&I.jsx(uw,vi(zn({},k),{control:I.jsx(fY,{sx:{color:K?B.palette.error.main:void 0},checked:!ie}),label:O,value:""})),r.map(function(Z){var ke=Z[d],$e=Z[p]||!1;ke===void 0&&console.error("RadioButtonGroup: valueKey ".concat(d," does not exist on option"),Z);var ae=S?ie==null?void 0:ie[d]:ie;x==="number"&&(ae=Number(ae));var Xe=ae===ke;return M.createElement(uw,vi(zn({},k),{control:I.jsx(fY,{sx:{color:K?B.palette.error.main:void 0},disabled:_||$e,checked:Xe}),value:ke,label:Z[l],key:ke}))})]}),Re&&I.jsx(aO,{children:Re})]})});rFe.displayName="RadioButtonGroup";var iFe=M.forwardRef(function(e,t){var n=e.name,r=e.control,i=e.switchProps,a=e.transform,s=Pu(e,["name","control","switchProps","transform"]),o=Hf({name:n,control:r,disabled:s.disabled}),l=o.field,u=jf({value:l.value,onChange:l.onChange,transform:{input:a==null?void 0:a.input,output:typeof(a==null?void 0:a.output)=="function"?a.output:function(g,O){return O}}}),d=u.value,f=u.onChange,p=vr(l.ref,i==null?void 0:i.ref);return I.jsx(uw,zn({ref:t,control:I.jsx(TDe,vi(zn({},i),{name:l.name,value:d,onChange:function(g,O){f(g,O),typeof(i==null?void 0:i.onChange)=="function"&&i.onChange(g,O)},onBlur:function(g){l.onBlur(),typeof(i==null?void 0:i.onBlur)=="function"&&(i==null||i.onBlur(g))},ref:p,checked:!!d}))},s))});iFe.displayName="SwitchElement";var aFe=M.forwardRef(function(e,t){var n=e.passwordFieldName,r=e.customInvalidFieldMessage,i=e.control,a=Pu(e,["passwordFieldName","customInvalidFieldMessage","control"]),s=oue({name:n,control:i});return I.jsx(nFe,vi(zn({control:i},a),{ref:t,rules:{validate:function(o){return o===s||(r??"Password should match")}}}))});aFe.displayName="PasswordRepeatElement";var sFe=M.forwardRef(function(e,t){var n=e.textFieldProps,r=e.autocompleteProps,i=e.name,a=e.control,s=e.options,o=e.loading,l=e.showCheckbox,u=e.rules,d=e.loadingIndicator,f=e.required,p=e.multiple,g=e.label,O=e.parseError,S=e.transform,T=e.matchId,w=Sp(),x=O||w,k=zn({},u,f&&{required:(u==null?void 0:u.required)||"This field is required"}),_=Hf({name:i,control:a,disabled:r==null?void 0:r.disabled,rules:k}),R=_.field,N=_.fieldState,P=N.error,L=function(K){return typeof(r==null?void 0:r.getOptionLabel)=="function"?r.getOptionLabel(K):El(K,"label")?"".concat(K==null?void 0:K.label):"".concat(K)},j=function(K,G){if(typeof(r==null?void 0:r.isOptionEqualToValue)=="function")return r.isOptionEqualToValue(K,G);var ie=El(K,"id")?K.id:K,H=El(G,"id")?G.id:G;return ie===H},B=function(K){return s.find(function(G){return T&&El(G,"id")?G.id===K:j(G,K)})},V=jf({value:R.value,onChange:R.onChange,transform:{input:typeof(S==null?void 0:S.input)=="function"?S.input:function(K){var G;return p?(Array.isArray(K)?K:[]).map(B):(G=B(K))!==null&&G!==void 0?G:null},output:typeof(S==null?void 0:S.output)=="function"?S.output:function(K,G){if(p){var ie=Array.isArray(G)?G:[];return T?ie.map(function(H){return El(H,"id")?H.id:H}):ie}return T&&El(G,"id")?G.id:G}}}),W=V.value,re=V.onChange,ee=vr(R.ref,n==null?void 0:n.inputRef),q=d||I.jsx(kd,{color:"inherit",size:20}),ne;return I.jsx(GCe,vi(zn({},r),{value:W,loading:o,multiple:p,options:s,disableCloseOnSelect:typeof(r==null?void 0:r.disableCloseOnSelect)=="boolean"?r.disableCloseOnSelect:!!p,isOptionEqualToValue:j,getOptionLabel:L,onChange:function(K,G,ie,H){re(K,G,ie,H),r!=null&&r.onChange&&r.onChange(K,G,ie,H)},ref:t,renderOption:(ne=r==null?void 0:r.renderOption)!==null&&ne!==void 0?ne:l?function(K,G,ie){var H=ie.selected;return I.jsxs("li",vi(zn({},K),{children:[I.jsx(X5,{sx:{marginRight:1},checked:H}),L(G)]}))}:void 0,onBlur:function(K){R.onBlur(),typeof(r==null?void 0:r.onBlur)=="function"&&r.onBlur(K)},renderInput:function(K){return I.jsx(ST,vi(zn({name:i,required:u!=null&&u.required?!0:f,label:g},n,K),{error:!!P,InputLabelProps:zn({},K.InputLabelProps,n==null?void 0:n.InputLabelProps),InputProps:zn(vi(zn({},K.InputProps),{endAdornment:I.jsxs(I.Fragment,{children:[o?q:null,K.InputProps.endAdornment]})}),n==null?void 0:n.InputProps),inputProps:zn({},K.inputProps,n==null?void 0:n.inputProps),helperText:P?typeof x=="function"?x(P):P.message:n==null?void 0:n.helperText,inputRef:ee}))}}))});sFe.displayName="AutocompleteElement";var oFe=M.forwardRef(function(e,t){var n=e.name,r=e.control,i=e.label,a=e.rules,s=a===void 0?{}:a,o=e.parseError,l=e.required,u=e.formControlProps,d=e.transform,f=Pu(e,["name","control","label","rules","parseError","required","formControlProps","transform"]),p=Sp(),g=o||p,O=zn({},s,l&&!s.required&&{required:"This field is required"}),S=Hf({name:n,control:r,disabled:f.disabled,rules:O}),T=S.field,w=S.fieldState,x=w.error,k=w.invalid,_=jf({value:T.value,onChange:T.onChange,transform:d}),R=_.value,N=_.onChange,P=x?typeof g=="function"?g(x):x.message:null;return I.jsxs(Lc,vi(zn({error:k,required:l,fullWidth:!0},u),{ref:t,children:[i&&I.jsx(J5,{component:"legend",error:k,children:i}),I.jsx(uDe,vi(zn({},f),{value:R,onChange:N,valueLabelDisplay:f.valueLabelDisplay||"auto"})),P&&I.jsx(aO,{error:k,children:P})]}))});oFe.displayName="SliderElement";var lFe=M.forwardRef(function(e,t){var n=e.rules,r=n===void 0?{}:n,i=e.parseError,a=e.required,s=e.name,o=e.control,l=e.rows,u=e.resizeStyle,d=e.inputRef,f=e.inputProps,p=e.transform,g=Pu(e,["rules","parseError","required","name","control","rows","resizeStyle","inputRef","inputProps","transform"]),O=Sp(),S=i||O,T=zn({},r,a&&!r.required&&{required:"This field is required"}),w=Hf({name:s,control:o,rules:T,disabled:g.disabled}),x=w.field,k=w.fieldState,_=k.error,R=jf({value:x.value,onChange:x.onChange,transform:{input:typeof(p==null?void 0:p.input)=="function"?p.input:function(j){return j??""},output:typeof(p==null?void 0:p.output)=="function"?p.output:function(j){return j.target.value}}}),N=R.value,P=R.onChange,L=vr(x.ref,d);return I.jsx(ST,vi(zn({},g),{name:s,value:N,onChange:function(j){P(j),typeof g.onChange=="function"&&g.onChange(j)},onBlur:x.onBlur,required:a,error:!!_,helperText:_?typeof S=="function"?S(_):_.message:g.helperText,inputRef:L,multiline:!0,InputProps:{inputComponent:Gse,inputProps:zn({minRows:l,style:{resize:u||"both"}},f||{})},ref:t}))});lFe.displayName="TextareaAutosizeElement";const Dy=["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 Iue;function nn(){return Iue.apply(null,arguments)}function OFe(e){Iue=e}function Ad(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function a1(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function jr(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function xF(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(jr(e,t))return!1;return!0}function pl(e){return e===void 0}function hp(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function DT(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Nue(e,t){var n=[],r,i=e.length;for(r=0;r>>0,r;for(r=0;r0)for(n=0;n>>0,r;for(r=0;r0)for(n=0;n=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var CF=/(\[[^\[]*\])|(\\)?([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,xA=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,oD={},jy={};function Rn(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(jy[e]=i),t&&(jy[t[0]]=function(){return jf(i.apply(this,arguments),t[1],t[2])}),n&&(jy[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function xFe(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function kFe(e){var t=e.match(CF),n,r;for(n=0,r=t.length;n=0&&xA.test(e);)e=e.replace(xA,r),xA.lastIndex=0,n-=1;return e}var AFe={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 _Fe(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(CF).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var CFe="Invalid date";function RFe(){return this._invalidDate}var IFe="%d",NFe=/\d{1,2}/;function DFe(e){return this._ordinal.replace("%d",e)}var PFe={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 LFe(e,t,n,r){var i=this._relativeTime[n];return Gf(i)?i(e,t,n,r):i.replace(/%d/i,e)}function MFe(e,t){var n=this._relativeTime[e>0?"future":"past"];return Gf(n)?n(t):n.replace(/%s/i,t)}var eX={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 Bc(e){return typeof e=="string"?eX[e]||eX[e.toLowerCase()]:void 0}function RF(e){var t={},n,r;for(r in e)jr(e,r)&&(n=Bc(r),n&&(t[n]=e[r]));return t}var $Fe={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 FFe(e){var t=[],n;for(n in e)jr(e,n)&&t.push({unit:n,priority:$Fe[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var Mue=/\d/,Fu=/\d\d/,$ue=/\d{3}/,IF=/\d{4}/,yR=/[+-]?\d{6}/,Hi=/\d\d?/,Fue=/\d\d\d\d?/,Bue=/\d\d\d\d\d\d?/,vR=/\d{1,3}/,NF=/\d{1,4}/,OR=/[+-]?\d{1,6}/,EO=/\d+/,SR=/[+-]?\d+/,BFe=/Z|[+-]\d\d:?\d\d/gi,ER=/Z|[+-]\d\d(?::?\d\d)?/gi,UFe=/[+-]?\d+(\.\d{1,3})?/,LT=/[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,wO=/^[1-9]\d?/,DF=/^([1-9]\d|\d)/,MC;MC={};function dn(e,t,n){MC[e]=Gf(t)?t:function(r,i){return r&&n?n:t}}function zFe(e,t){return jr(MC,e)?MC[e](t._strict,t._locale):new RegExp(jFe(e))}function jFe(e){return Jh(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,a){return n||r||i||a}))}function Jh(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function lc(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function xr(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=lc(t)),n}var P8={};function gi(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),hp(t)&&(r=function(a,s){s[t]=xr(a)}),i=e.length,n=0;n68?1900:2e3)};var Uue=TO("FullYear",!0);function VFe(){return wR(this.year())}function TO(e,t){return function(n){return n!=null?(zue(this,e,n),nn.updateOffset(this,t),this):bw(this,e)}}function bw(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 zue(e,t,n){var r,i,a,s,o;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}a=n,s=e.month(),o=e.date(),o=o===29&&s===1&&!wR(a)?28:o,i?r.setUTCFullYear(a,s,o):r.setFullYear(a,s,o)}}function qFe(e){return e=Bc(e),Gf(this[e])?this[e]():this}function GFe(e,t){if(typeof e=="object"){e=RF(e);var n=FFe(e),r,i=n.length;for(r=0;r=0?(o=new Date(e+400,t,n,r,i,a,s),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,r,i,a,s),o}function yw(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 $C(e,t,n){var r=7+t-n,i=(7+yw(e,0,r).getUTCDay()-t)%7;return-i+r-1}function que(e,t,n,r,i){var a=(7+n-r)%7,s=$C(e,r,i),o=1+7*(t-1)+a+s,l,u;return o<=0?(l=e-1,u=f2(l)+o):o>f2(e)?(l=e+1,u=o-f2(e)):(l=e,u=o),{year:l,dayOfYear:u}}function vw(e,t,n){var r=$C(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,a,s;return i<1?(s=e.year()-1,a=i+ep(s,t,n)):i>ep(e.year(),t,n)?(a=i-ep(e.year(),t,n),s=e.year()+1):(s=e.year(),a=i),{week:a,year:s}}function ep(e,t,n){var r=$C(e,t,n),i=$C(e+1,t,n);return(f2(e)-r+i)/7}Rn("w",["ww",2],"wo","week");Rn("W",["WW",2],"Wo","isoWeek");dn("w",Hi,wO);dn("ww",Hi,Fu);dn("W",Hi,wO);dn("WW",Hi,Fu);MT(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=xr(e)});function oBe(e){return vw(e,this._week.dow,this._week.doy).week}var lBe={dow:0,doy:6};function uBe(){return this._week.dow}function cBe(){return this._week.doy}function dBe(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function fBe(e){var t=vw(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}Rn("d",0,"do","day");Rn("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});Rn("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});Rn("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});Rn("e",0,0,"weekday");Rn("E",0,0,"isoWeekday");dn("d",Hi);dn("e",Hi);dn("E",Hi);dn("dd",function(e,t){return t.weekdaysMinRegex(e)});dn("ddd",function(e,t){return t.weekdaysShortRegex(e)});dn("dddd",function(e,t){return t.weekdaysRegex(e)});MT(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:sr(n).invalidWeekday=e});MT(["d","e","E"],function(e,t,n,r){t[r]=xr(e)});function hBe(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function pBe(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function LF(e,t){return e.slice(t,7).concat(e.slice(0,t))}var mBe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Gue="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),gBe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),bBe=LT,yBe=LT,vBe=LT;function OBe(e,t){var n=Ad(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?LF(n,this._week.dow):e?n[e.day()]:n}function SBe(e){return e===!0?LF(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function EBe(e){return e===!0?LF(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function wBe(e,t,n){var r,i,a,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=qf([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?t==="dddd"?(i=Ca.call(this._weekdaysParse,s),i!==-1?i:null):t==="ddd"?(i=Ca.call(this._shortWeekdaysParse,s),i!==-1?i:null):(i=Ca.call(this._minWeekdaysParse,s),i!==-1?i:null):t==="dddd"?(i=Ca.call(this._weekdaysParse,s),i!==-1||(i=Ca.call(this._shortWeekdaysParse,s),i!==-1)?i:(i=Ca.call(this._minWeekdaysParse,s),i!==-1?i:null)):t==="ddd"?(i=Ca.call(this._shortWeekdaysParse,s),i!==-1||(i=Ca.call(this._weekdaysParse,s),i!==-1)?i:(i=Ca.call(this._minWeekdaysParse,s),i!==-1?i:null)):(i=Ca.call(this._minWeekdaysParse,s),i!==-1||(i=Ca.call(this._weekdaysParse,s),i!==-1)?i:(i=Ca.call(this._shortWeekdaysParse,s),i!==-1?i:null))}function TBe(e,t,n){var r,i,a;if(this._weekdaysParseExact)return wBe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=qf([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function xBe(e){if(!this.isValid())return e!=null?this:NaN;var t=bw(this,"Day");return e!=null?(e=hBe(e,this.localeData()),this.add(e-t,"d")):t}function kBe(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 ABe(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=pBe(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function _Be(e){return this._weekdaysParseExact?(jr(this,"_weekdaysRegex")||MF.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(jr(this,"_weekdaysRegex")||(this._weekdaysRegex=bBe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function CBe(e){return this._weekdaysParseExact?(jr(this,"_weekdaysRegex")||MF.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(jr(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=yBe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function RBe(e){return this._weekdaysParseExact?(jr(this,"_weekdaysRegex")||MF.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(jr(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=vBe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function MF(){function e(d,f){return f.length-d.length}var t=[],n=[],r=[],i=[],a,s,o,l,u;for(a=0;a<7;a++)s=qf([2e3,1]).day(a),o=Jh(this.weekdaysMin(s,"")),l=Jh(this.weekdaysShort(s,"")),u=Jh(this.weekdays(s,"")),t.push(o),n.push(l),r.push(u),i.push(o),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 $F(){return this.hours()%12||12}function IBe(){return this.hours()||24}Rn("H",["HH",2],0,"hour");Rn("h",["hh",2],0,$F);Rn("k",["kk",2],0,IBe);Rn("hmm",0,0,function(){return""+$F.apply(this)+jf(this.minutes(),2)});Rn("hmmss",0,0,function(){return""+$F.apply(this)+jf(this.minutes(),2)+jf(this.seconds(),2)});Rn("Hmm",0,0,function(){return""+this.hours()+jf(this.minutes(),2)});Rn("Hmmss",0,0,function(){return""+this.hours()+jf(this.minutes(),2)+jf(this.seconds(),2)});function Yue(e,t){Rn(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Yue("a",!0);Yue("A",!1);function Zue(e,t){return t._meridiemParse}dn("a",Zue);dn("A",Zue);dn("H",Hi,DF);dn("h",Hi,wO);dn("k",Hi,wO);dn("HH",Hi,Fu);dn("hh",Hi,Fu);dn("kk",Hi,Fu);dn("hmm",Fue);dn("hmmss",Bue);dn("Hmm",Fue);dn("Hmmss",Bue);gi(["H","HH"],ss);gi(["k","kk"],function(e,t,n){var r=xr(e);t[ss]=r===24?0:r});gi(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});gi(["h","hh"],function(e,t,n){t[ss]=xr(e),sr(n).bigHour=!0});gi("hmm",function(e,t,n){var r=e.length-2;t[ss]=xr(e.substr(0,r)),t[bd]=xr(e.substr(r)),sr(n).bigHour=!0});gi("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[ss]=xr(e.substr(0,r)),t[bd]=xr(e.substr(r,2)),t[Yh]=xr(e.substr(i)),sr(n).bigHour=!0});gi("Hmm",function(e,t,n){var r=e.length-2;t[ss]=xr(e.substr(0,r)),t[bd]=xr(e.substr(r))});gi("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[ss]=xr(e.substr(0,r)),t[bd]=xr(e.substr(r,2)),t[Yh]=xr(e.substr(i))});function NBe(e){return(e+"").toLowerCase().charAt(0)==="p"}var DBe=/[ap]\.?m?\.?/i,PBe=TO("Hours",!0);function LBe(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var Xue={calendar:wFe,longDateFormat:AFe,invalidDate:CFe,ordinal:IFe,dayOfMonthOrdinalParse:NFe,relativeTime:PFe,months:ZFe,monthsShort:jue,week:lBe,weekdays:mBe,weekdaysMin:gBe,weekdaysShort:Gue,meridiemParse:DBe},Ki={},aE={},Ow;function MBe(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(i=TR(a.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&MBe(a,r)>=n-1)break;n--}t++}return Ow}function FBe(e){return!!(e&&e.match("^[^/\\\\]*$"))}function TR(e){var t=null,n;if(Ki[e]===void 0&&typeof D_<"u"&&D_&&D_.exports&&FBe(e))try{t=Ow._abbr,n=require,n("./locale/"+e),nm(t)}catch{Ki[e]=null}return Ki[e]}function nm(e,t){var n;return e&&(pl(t)?n=_p(e):n=FF(e,t),n?Ow=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ow._abbr}function FF(e,t){if(t!==null){var n,r=Xue;if(t.abbr=e,Ki[e]!=null)Pue("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=Ki[e]._config;else if(t.parentLocale!=null)if(Ki[t.parentLocale]!=null)r=Ki[t.parentLocale]._config;else if(n=TR(t.parentLocale),n!=null)r=n._config;else return aE[t.parentLocale]||(aE[t.parentLocale]=[]),aE[t.parentLocale].push({name:e,config:t}),null;return Ki[e]=new _F(N8(r,t)),aE[e]&&aE[e].forEach(function(i){FF(i.name,i.config)}),nm(e),Ki[e]}else return delete Ki[e],null}function BBe(e,t){if(t!=null){var n,r,i=Xue;Ki[e]!=null&&Ki[e].parentLocale!=null?Ki[e].set(N8(Ki[e]._config,t)):(r=TR(e),r!=null&&(i=r._config),t=N8(i,t),r==null&&(t.abbr=e),n=new _F(t),n.parentLocale=Ki[e],Ki[e]=n),nm(e)}else Ki[e]!=null&&(Ki[e].parentLocale!=null?(Ki[e]=Ki[e].parentLocale,e===nm()&&nm(e)):Ki[e]!=null&&delete Ki[e]);return Ki[e]}function _p(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ow;if(!Ad(e)){if(t=TR(e),t)return t;e=[e]}return $Be(e)}function UBe(){return D8(Ki)}function BF(e){var t,n=e._a;return n&&sr(e).overflow===-2&&(t=n[Gh]<0||n[Gh]>11?Gh:n[Of]<1||n[Of]>PF(n[yo],n[Gh])?Of:n[ss]<0||n[ss]>24||n[ss]===24&&(n[bd]!==0||n[Yh]!==0||n[Bg]!==0)?ss:n[bd]<0||n[bd]>59?bd:n[Yh]<0||n[Yh]>59?Yh:n[Bg]<0||n[Bg]>999?Bg:-1,sr(e)._overflowDayOfYear&&(tOf)&&(t=Of),sr(e)._overflowWeeks&&t===-1&&(t=QFe),sr(e)._overflowWeekday&&t===-1&&(t=WFe),sr(e).overflow=t),e}var zBe=/^\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)?)?$/,jBe=/^\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)?)?$/,HBe=/Z|[+-]\d\d(?::?\d\d)?/,kA=[["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]],lD=[["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/]],QBe=/^\/?Date\((-?\d+)/i,WBe=/^(?:(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}))$/,VBe={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 Kue(e){var t,n,r=e._i,i=zBe.exec(r)||jBe.exec(r),a,s,o,l,u=kA.length,d=lD.length;if(i){for(sr(e).iso=!0,t=0,n=u;tf2(s)||e._dayOfYear===0)&&(sr(e)._overflowDayOfYear=!0),n=yw(s,0,e._dayOfYear),e._a[Gh]=n.getUTCMonth(),e._a[Of]=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[ss]===24&&e._a[bd]===0&&e._a[Yh]===0&&e._a[Bg]===0&&(e._nextDay=!0,e._a[ss]=0),e._d=(e._useUTC?yw:sBe).apply(null,r),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ss]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(sr(e).weekdayMismatch=!0)}}function eUe(e){var t,n,r,i,a,s,o,l,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,s=4,n=Xb(t.GG,e._a[yo],vw(ji(),1,4).year),r=Xb(t.W,1),i=Xb(t.E,1),(i<1||i>7)&&(l=!0)):(a=e._locale._week.dow,s=e._locale._week.doy,u=vw(ji(),a,s),n=Xb(t.gg,e._a[yo],u.year),r=Xb(t.w,u.week),t.d!=null?(i=t.d,(i<0||i>6)&&(l=!0)):t.e!=null?(i=t.e+a,(t.e<0||t.e>6)&&(l=!0)):i=a),r<1||r>ep(n,a,s)?sr(e)._overflowWeeks=!0:l!=null?sr(e)._overflowWeekday=!0:(o=que(n,r,i,a,s),e._a[yo]=o.year,e._dayOfYear=o.dayOfYear)}nn.ISO_8601=function(){};nn.RFC_2822=function(){};function zF(e){if(e._f===nn.ISO_8601){Kue(e);return}if(e._f===nn.RFC_2822){Jue(e);return}e._a=[],sr(e).empty=!0;var t=""+e._i,n,r,i,a,s,o=t.length,l=0,u,d;for(i=Lue(e._f,e._locale).match(CF)||[],d=i.length,n=0;n0&&sr(e).unusedInput.push(s),t=t.slice(t.indexOf(r)+r.length),l+=r.length),jy[a]?(r?sr(e).empty=!1:sr(e).unusedTokens.push(a),HFe(a,r,e)):e._strict&&!r&&sr(e).unusedTokens.push(a);sr(e).charsLeftOver=o-l,t.length>0&&sr(e).unusedInput.push(t),e._a[ss]<=12&&sr(e).bigHour===!0&&e._a[ss]>0&&(sr(e).bigHour=void 0),sr(e).parsedDateParts=e._a.slice(0),sr(e).meridiem=e._meridiem,e._a[ss]=tUe(e._locale,e._a[ss],e._meridiem),u=sr(e).era,u!==null&&(e._a[yo]=e._locale.erasConvertYear(u,e._a[yo])),UF(e),BF(e)}function tUe(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 nUe(e){var t,n,r,i,a,s,o=!1,l=e._f.length;if(l===0){sr(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;ithis?this:e:bR()});function nce(e,t){var n,r;if(t.length===1&&Ad(t[0])&&(t=t[0]),!t.length)return ji();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function wUe(){if(!pl(this._isDSTShifted))return this._isDSTShifted;var e={},t;return AF(e,this),e=ece(e),e._a?(t=e._isUTC?qf(e._a):ji(e._a),this._isDSTShifted=this.isValid()&&pUe(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function TUe(){return this.isValid()?!this._isUTC:!1}function xUe(){return this.isValid()?this._isUTC:!1}function ice(){return this.isValid()?this._isUTC&&this._offset===0:!1}var kUe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,AUe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Pd(e,t){var n=e,r=null,i,a,s;return e_(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:hp(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=kUe.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:xr(r[Of])*i,h:xr(r[ss])*i,m:xr(r[bd])*i,s:xr(r[Yh])*i,ms:xr(L8(r[Bg]*1e3))*i}):(r=AUe.exec(e))?(i=r[1]==="-"?-1:1,n={y:fg(r[2],i),M:fg(r[3],i),w:fg(r[4],i),d:fg(r[5],i),h:fg(r[6],i),m:fg(r[7],i),s:fg(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(s=_Ue(ji(n.from),ji(n.to)),n={},n.ms=s.milliseconds,n.M=s.months),a=new xR(n),e_(e)&&jr(e,"_locale")&&(a._locale=e._locale),e_(e)&&jr(e,"_isValid")&&(a._isValid=e._isValid),a}Pd.fn=xR.prototype;Pd.invalid=hUe;function fg(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function nX(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 _Ue(e,t){var n;return e.isValid()&&t.isValid()?(t=HF(t,e),e.isBefore(t)?n=nX(e,t):(n=nX(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function ace(e,t){return function(n,r){var i,a;return r!==null&&!isNaN(+r)&&(Pue(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=r,r=a),i=Pd(n,r),sce(this,i,e),this}}function sce(e,t,n,r){var i=t._milliseconds,a=L8(t._days),s=L8(t._months);e.isValid()&&(r=r??!0,s&&Que(e,bw(e,"Month")+s*n),a&&zue(e,"Date",bw(e,"Date")+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&nn.updateOffset(e,a||s))}var CUe=ace(1,"add"),RUe=ace(-1,"subtract");function oce(e){return typeof e=="string"||e instanceof String}function IUe(e){return _d(e)||DT(e)||oce(e)||hp(e)||DUe(e)||NUe(e)||e===null||e===void 0}function NUe(e){var t=a1(e)&&!xF(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,a,s=r.length;for(i=0;in.valueOf():n.valueOf()9999?J4(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Gf(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",J4(n,"Z")):J4(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function qUe(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(n+r+i+a)}function GUe(e){e||(e=this.isUtc()?nn.defaultFormatUtc:nn.defaultFormat);var t=J4(this,e);return this.localeData().postformat(t)}function YUe(e,t){return this.isValid()&&(_d(e)&&e.isValid()||ji(e).isValid())?Pd({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ZUe(e){return this.from(ji(),e)}function XUe(e,t){return this.isValid()&&(_d(e)&&e.isValid()||ji(e).isValid())?Pd({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function KUe(e){return this.to(ji(),e)}function lce(e){var t;return e===void 0?this._locale._abbr:(t=_p(e),t!=null&&(this._locale=t),this)}var uce=Fc("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 cce(){return this._locale}var FC=1e3,Hy=60*FC,BC=60*Hy,dce=(365*400+97)*24*BC;function Qy(e,t){return(e%t+t)%t}function fce(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-dce:new Date(e,t,n).valueOf()}function hce(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-dce:Date.UTC(e,t,n)}function JUe(e){var t,n;if(e=Bc(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?hce:fce,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-=Qy(t+(this._isUTC?0:this.utcOffset()*Hy),BC);break;case"minute":t=this._d.valueOf(),t-=Qy(t,Hy);break;case"second":t=this._d.valueOf(),t-=Qy(t,FC);break}return this._d.setTime(t),nn.updateOffset(this,!0),this}function eze(e){var t,n;if(e=Bc(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?hce:fce,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+=BC-Qy(t+(this._isUTC?0:this.utcOffset()*Hy),BC)-1;break;case"minute":t=this._d.valueOf(),t+=Hy-Qy(t,Hy)-1;break;case"second":t=this._d.valueOf(),t+=FC-Qy(t,FC)-1;break}return this._d.setTime(t),nn.updateOffset(this,!0),this}function tze(){return this._d.valueOf()-(this._offset||0)*6e4}function nze(){return Math.floor(this.valueOf()/1e3)}function rze(){return new Date(this.valueOf())}function ize(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function aze(){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 sze(){return this.isValid()?this.toISOString():null}function oze(){return kF(this)}function lze(){return U0({},sr(this))}function uze(){return sr(this).overflow}function cze(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Rn("N",0,0,"eraAbbr");Rn("NN",0,0,"eraAbbr");Rn("NNN",0,0,"eraAbbr");Rn("NNNN",0,0,"eraName");Rn("NNNNN",0,0,"eraNarrow");Rn("y",["y",1],"yo","eraYear");Rn("y",["yy",2],0,"eraYear");Rn("y",["yyy",3],0,"eraYear");Rn("y",["yyyy",4],0,"eraYear");dn("N",QF);dn("NN",QF);dn("NNN",QF);dn("NNNN",Sze);dn("NNNNN",Eze);gi(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?sr(n).era=i:sr(n).invalidEra=e});dn("y",EO);dn("yy",EO);dn("yyy",EO);dn("yyyy",EO);dn("yo",wze);gi(["y","yy","yyy","yyyy"],yo);gi(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[yo]=n._locale.eraYearOrdinalParse(e,i):t[yo]=parseInt(e,10)});function dze(e,t){var n,r,i,a=this._eras||_p("en")._eras;for(n=0,r=a.length;n=0)return a[r]}function hze(e,t){var n=e.since<=e.until?1:-1;return t===void 0?nn(e.since).year():nn(e.since).year()+(t-e.offset)*n}function pze(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;ea&&(t=a),Rze.call(this,e,t,n,r,i))}function Rze(e,t,n,r,i){var a=que(e,t,n,r,i),s=yw(a.year,0,a.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}Rn("Q",0,"Qo","quarter");dn("Q",Mue);gi("Q",function(e,t){t[Gh]=(xr(e)-1)*3});function Ize(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Rn("D",["DD",2],"Do","date");dn("D",Hi,wO);dn("DD",Hi,Fu);dn("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});gi(["D","DD"],Of);gi("Do",function(e,t){t[Of]=xr(e.match(Hi)[0])});var mce=TO("Date",!0);Rn("DDD",["DDDD",3],"DDDo","dayOfYear");dn("DDD",vR);dn("DDDD",$ue);gi(["DDD","DDDD"],function(e,t,n){n._dayOfYear=xr(e)});function Nze(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}Rn("m",["mm",2],0,"minute");dn("m",Hi,DF);dn("mm",Hi,Fu);gi(["m","mm"],bd);var Dze=TO("Minutes",!1);Rn("s",["ss",2],0,"second");dn("s",Hi,DF);dn("ss",Hi,Fu);gi(["s","ss"],Yh);var Pze=TO("Seconds",!1);Rn("S",0,0,function(){return~~(this.millisecond()/100)});Rn(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Rn(0,["SSS",3],0,"millisecond");Rn(0,["SSSS",4],0,function(){return this.millisecond()*10});Rn(0,["SSSSS",5],0,function(){return this.millisecond()*100});Rn(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Rn(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Rn(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Rn(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});dn("S",vR,Mue);dn("SS",vR,Fu);dn("SSS",vR,$ue);var z0,gce;for(z0="SSSS";z0.length<=9;z0+="S")dn(z0,EO);function Lze(e,t){t[Bg]=xr(("0."+e)*1e3)}for(z0="S";z0.length<=9;z0+="S")gi(z0,Lze);gce=TO("Milliseconds",!1);Rn("z",0,0,"zoneAbbr");Rn("zz",0,0,"zoneName");function Mze(){return this._isUTC?"UTC":""}function $ze(){return this._isUTC?"Coordinated Universal Time":""}var Ft=PT.prototype;Ft.add=CUe;Ft.calendar=MUe;Ft.clone=$Ue;Ft.diff=QUe;Ft.endOf=eze;Ft.format=GUe;Ft.from=YUe;Ft.fromNow=ZUe;Ft.to=XUe;Ft.toNow=KUe;Ft.get=qFe;Ft.invalidAt=uze;Ft.isAfter=FUe;Ft.isBefore=BUe;Ft.isBetween=UUe;Ft.isSame=zUe;Ft.isSameOrAfter=jUe;Ft.isSameOrBefore=HUe;Ft.isValid=oze;Ft.lang=uce;Ft.locale=lce;Ft.localeData=cce;Ft.max=oUe;Ft.min=sUe;Ft.parsingFlags=lze;Ft.set=GFe;Ft.startOf=JUe;Ft.subtract=RUe;Ft.toArray=ize;Ft.toObject=aze;Ft.toDate=rze;Ft.toISOString=VUe;Ft.inspect=qUe;typeof Symbol<"u"&&Symbol.for!=null&&(Ft[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});Ft.toJSON=sze;Ft.toString=WUe;Ft.unix=nze;Ft.valueOf=tze;Ft.creationData=cze;Ft.eraName=pze;Ft.eraNarrow=mze;Ft.eraAbbr=gze;Ft.eraYear=bze;Ft.year=Uue;Ft.isLeapYear=VFe;Ft.weekYear=Tze;Ft.isoWeekYear=xze;Ft.quarter=Ft.quarters=Ize;Ft.month=Wue;Ft.daysInMonth=rBe;Ft.week=Ft.weeks=dBe;Ft.isoWeek=Ft.isoWeeks=fBe;Ft.weeksInYear=_ze;Ft.weeksInWeekYear=Cze;Ft.isoWeeksInYear=kze;Ft.isoWeeksInISOWeekYear=Aze;Ft.date=mce;Ft.day=Ft.days=xBe;Ft.weekday=kBe;Ft.isoWeekday=ABe;Ft.dayOfYear=Nze;Ft.hour=Ft.hours=PBe;Ft.minute=Ft.minutes=Dze;Ft.second=Ft.seconds=Pze;Ft.millisecond=Ft.milliseconds=gce;Ft.utcOffset=gUe;Ft.utc=yUe;Ft.local=vUe;Ft.parseZone=OUe;Ft.hasAlignedHourOffset=SUe;Ft.isDST=EUe;Ft.isLocal=TUe;Ft.isUtcOffset=xUe;Ft.isUtc=ice;Ft.isUTC=ice;Ft.zoneAbbr=Mze;Ft.zoneName=$ze;Ft.dates=Fc("dates accessor is deprecated. Use date instead.",mce);Ft.months=Fc("months accessor is deprecated. Use month instead",Wue);Ft.years=Fc("years accessor is deprecated. Use year instead",Uue);Ft.zone=Fc("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",bUe);Ft.isDSTShifted=Fc("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",wUe);function Fze(e){return ji(e*1e3)}function Bze(){return ji.apply(null,arguments).parseZone()}function bce(e){return e}var Hr=_F.prototype;Hr.calendar=TFe;Hr.longDateFormat=_Fe;Hr.invalidDate=RFe;Hr.ordinal=DFe;Hr.preparse=bce;Hr.postformat=bce;Hr.relativeTime=LFe;Hr.pastFuture=MFe;Hr.set=EFe;Hr.eras=dze;Hr.erasParse=fze;Hr.erasConvertYear=hze;Hr.erasAbbrRegex=vze;Hr.erasNameRegex=yze;Hr.erasNarrowRegex=Oze;Hr.months=JFe;Hr.monthsShort=eBe;Hr.monthsParse=nBe;Hr.monthsRegex=aBe;Hr.monthsShortRegex=iBe;Hr.week=oBe;Hr.firstDayOfYear=cBe;Hr.firstDayOfWeek=uBe;Hr.weekdays=OBe;Hr.weekdaysMin=EBe;Hr.weekdaysShort=SBe;Hr.weekdaysParse=TBe;Hr.weekdaysRegex=_Be;Hr.weekdaysShortRegex=CBe;Hr.weekdaysMinRegex=RBe;Hr.isPM=NBe;Hr.meridiem=LBe;function UC(e,t,n,r){var i=_p(),a=qf().set(r,t);return i[n](a,e)}function yce(e,t,n){if(hp(e)&&(t=e,e=void 0),e=e||"",t!=null)return UC(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=UC(e,r,n,"month");return i}function VF(e,t,n,r){typeof e=="boolean"?(hp(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,hp(t)&&(n=t,t=void 0),t=t||"");var i=_p(),a=e?i._week.dow:0,s,o=[];if(n!=null)return UC(t,(n+a)%7,r,"day");for(s=0;s<7;s++)o[s]=UC(t,(s+a)%7,r,"day");return o}function Uze(e,t){return yce(e,t,"months")}function zze(e,t){return yce(e,t,"monthsShort")}function jze(e,t,n){return VF(e,t,n,"weekdays")}function Hze(e,t,n){return VF(e,t,n,"weekdaysShort")}function Qze(e,t,n){return VF(e,t,n,"weekdaysMin")}nm("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=xr(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});nn.lang=Fc("moment.lang is deprecated. Use moment.locale instead.",nm);nn.langData=Fc("moment.langData is deprecated. Use moment.localeData instead.",_p);var Rh=Math.abs;function Wze(){var e=this._data;return this._milliseconds=Rh(this._milliseconds),this._days=Rh(this._days),this._months=Rh(this._months),e.milliseconds=Rh(e.milliseconds),e.seconds=Rh(e.seconds),e.minutes=Rh(e.minutes),e.hours=Rh(e.hours),e.months=Rh(e.months),e.years=Rh(e.years),this}function vce(e,t,n,r){var i=Pd(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function Vze(e,t){return vce(this,e,t,1)}function qze(e,t){return vce(this,e,t,-1)}function rX(e){return e<0?Math.floor(e):Math.ceil(e)}function Gze(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,a,s,o,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=rX($8(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=lc(e/1e3),r.seconds=i%60,a=lc(i/60),r.minutes=a%60,s=lc(a/60),r.hours=s%24,t+=lc(s/24),l=lc(Oce(t)),n+=l,t-=rX($8(l)),o=lc(n/12),n%=12,r.days=t,r.months=n,r.years=o,this}function Oce(e){return e*4800/146097}function $8(e){return e*146097/4800}function Yze(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=Bc(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+Oce(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round($8(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 Cp(e){return function(){return this.as(e)}}var Sce=Cp("ms"),Zze=Cp("s"),Xze=Cp("m"),Kze=Cp("h"),Jze=Cp("d"),eje=Cp("w"),tje=Cp("M"),nje=Cp("Q"),rje=Cp("y"),ije=Sce;function aje(){return Pd(this)}function sje(e){return e=Bc(e),this.isValid()?this[e+"s"]():NaN}function L1(e){return function(){return this.isValid()?this._data[e]:NaN}}var oje=L1("milliseconds"),lje=L1("seconds"),uje=L1("minutes"),cje=L1("hours"),dje=L1("days"),fje=L1("months"),hje=L1("years");function pje(){return lc(this.days()/7)}var Mh=Math.round,Ty={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function mje(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function gje(e,t,n,r){var i=Pd(e).abs(),a=Mh(i.as("s")),s=Mh(i.as("m")),o=Mh(i.as("h")),l=Mh(i.as("d")),u=Mh(i.as("M")),d=Mh(i.as("w")),f=Mh(i.as("y")),p=a<=n.ss&&["s",a]||a0,p[4]=r,mje.apply(null,p)}function bje(e){return e===void 0?Mh:typeof e=="function"?(Mh=e,!0):!1}function yje(e,t){return Ty[e]===void 0?!1:t===void 0?Ty[e]:(Ty[e]=t,e==="s"&&(Ty.ss=t-1),!0)}function vje(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Ty,i,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},Ty,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),a=gje(this,!n,r,i),n&&(a=i.pastFuture(+this,a)),i.postformat(a)}var uD=Math.abs;function zb(e){return(e>0)-(e<0)||+e}function AR(){if(!this.isValid())return this.localeData().invalidDate();var e=uD(this._milliseconds)/1e3,t=uD(this._days),n=uD(this._months),r,i,a,s,o=this.asSeconds(),l,u,d,f;return o?(r=lc(e/60),i=lc(r/60),e%=60,r%=60,a=lc(n/12),n%=12,s=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=o<0?"-":"",u=zb(this._months)!==zb(o)?"-":"",d=zb(this._days)!==zb(o)?"-":"",f=zb(this._milliseconds)!==zb(o)?"-":"",l+"P"+(a?u+a+"Y":"")+(n?u+n+"M":"")+(t?d+t+"D":"")+(i||r||e?"T":"")+(i?f+i+"H":"")+(r?f+r+"M":"")+(e?f+s+"S":"")):"P0D"}var Lr=xR.prototype;Lr.isValid=fUe;Lr.abs=Wze;Lr.add=Vze;Lr.subtract=qze;Lr.as=Yze;Lr.asMilliseconds=Sce;Lr.asSeconds=Zze;Lr.asMinutes=Xze;Lr.asHours=Kze;Lr.asDays=Jze;Lr.asWeeks=eje;Lr.asMonths=tje;Lr.asQuarters=nje;Lr.asYears=rje;Lr.valueOf=ije;Lr._bubble=Gze;Lr.clone=aje;Lr.get=sje;Lr.milliseconds=oje;Lr.seconds=lje;Lr.minutes=uje;Lr.hours=cje;Lr.days=dje;Lr.weeks=pje;Lr.months=fje;Lr.years=hje;Lr.humanize=vje;Lr.toISOString=AR;Lr.toString=AR;Lr.toJSON=AR;Lr.locale=lce;Lr.localeData=cce;Lr.toIsoString=Fc("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",AR);Lr.lang=uce;Rn("X",0,0,"unix");Rn("x",0,0,"valueOf");dn("x",SR);dn("X",UFe);gi("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});gi("x",function(e,t,n){n._d=new Date(xr(e))});//! moment.js -nn.version="2.30.1";OFe(ji);nn.fn=Ft;nn.min=lUe;nn.max=uUe;nn.now=cUe;nn.utc=qf;nn.unix=Fze;nn.months=Uze;nn.isDate=DT;nn.locale=nm;nn.invalid=bR;nn.duration=Pd;nn.isMoment=_d;nn.weekdays=jze;nn.parseZone=Bze;nn.localeData=_p;nn.isDuration=e_;nn.monthsShort=zze;nn.weekdaysMin=Qze;nn.defineLocale=FF;nn.updateLocale=BBe;nn.locales=UBe;nn.weekdaysShort=Hze;nn.normalizeUnits=Bc;nn.relativeTimeRounding=bje;nn.relativeTimeThreshold=yje;nn.calendarFormat=LUe;nn.prototype=Ft;nn.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"};const Ece=e=>["workspaces",e,"documents"],Oje=(e,t)=>["workpsaces",e,"documents",t],Sje=e=>mF({queryKey:Ece(e||""),queryFn:async({pageParam:n})=>(await rr.get(`/workspaces/${e}/documents`,{params:{cursor:n,page_size:30}})).data,enabled:!!e,initialPageParam:void 0,getPreviousPageParam:n=>n.cursor??void 0,getNextPageParam:n=>n.cursor??void 0}),Eje=(e,t)=>{const n=Mu(),r=OO({queryKey:Oje(e||"",t||""),enabled:!!(e&&t),queryFn:async()=>(await rr.get(`/workspaces/${e}/documents/${t}`)).data,meta:{errorMessage:"This is a non-existent or unauthorized document."}});return M.useEffect(()=>(r.data&&n(_C(r.data)),()=>{n(_C(null))}),[n,r.data]),r},wje=e=>{const t=RT();return kp({mutationFn:async n=>(await rr.post(`/workspaces/${e}/documents`,n)).data,onSuccess:()=>{t.invalidateQueries({queryKey:Ece(e)})}})},Tje=(e,t)=>kp({mutationFn:async n=>(await rr.post(`/workspaces/${e}/documents/${t}/share-token`,n)).data});var F8=(e=>(e.READ="READ",e.EDIT="EDIT",e))(F8||{});const M1={};M1.write=async e=>{await navigator.clipboard.writeText(e)};M1.read=async()=>navigator.clipboard.readText();M1.readSync=()=>{throw new Error("`.readSync()` is not supported in browsers!")};M1.writeSync=()=>{throw new Error("`.writeSync()` is not supported in browsers!")};var qF={},xje=Pi;Object.defineProperty(qF,"__esModule",{value:!0});var _R=qF.default=void 0,kje=xje(na()),Aje=I;_R=qF.default=(0,kje.default)((0,Aje.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy");var GF={},_je=Pi;Object.defineProperty(GF,"__esModule",{value:!0});var CR=GF.default=void 0,Cje=_je(na()),Rje=I;CR=GF.default=(0,Cje.default)((0,Rje.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");function Ije(e){var d,f;const{...t}=e,n=Cm(),[r,i]=M.useState(null),a=Pr(mR),{mutateAsync:s}=Tje(((d=a.data)==null?void 0:d.workspaceId)||"",((f=a.data)==null?void 0:f.id)||""),{enqueueSnackbar:o}=CT(),l=async p=>{let g;if(p.expiredString===zy[0])g=null;else{const[S,T]=p.expiredString.split(" ");g=nn().add(Number(S),T).toDate()}const{sharingToken:O}=await s({role:p.role,expiredAt:g});i(`${window.location.origin}/${n.workspaceSlug}/${n.documentId}/share?token=${O}`)},u=async()=>{r&&(await M1.write(r),o("URL Copied!",{variant:"success"}))};return I.jsx(pO,{disableAutoFocus:!0,...t,children:I.jsxs(Hs,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:[I.jsx(So,{sx:{position:"absolute",top:28,right:28},onClick:p=>{var g;return(g=e.onClose)==null?void 0:g.call(e,p,"backdropClick")},children:I.jsx(CR,{})}),I.jsxs(zn,{gap:1,children:[I.jsx(Tr,{variant:"subtitle1",children:"Share Link"}),I.jsx(Mc,{children:I.jsx(SO,{defaultValues:{expiredString:zy[0],role:Object.values(F8)[0]},onSuccess:l,children:I.jsxs(zn,{gap:2,children:[I.jsx(R8,{label:"Role",name:"role",options:Object.values(F8).map(p=>({id:p,label:p})),size:"small",sx:{width:1},variant:"filled"}),I.jsx(R8,{label:"Expired Date",name:"expiredString",options:zy.map(p=>({id:p,label:p})),size:"small",sx:{width:1},variant:"filled"}),I.jsx(go,{type:"submit",variant:"contained",children:"Generate"})]})})}),!!r&&I.jsxs(zn,{direction:"row",alignItems:"center",gap:2,children:[I.jsx(Tr,{variant:"body1",width:1,noWrap:!0,children:r}),I.jsx(B0,{title:"Copy URL",children:I.jsx(So,{onClick:u,children:I.jsx(_R,{})})})]})]})]})})}function Nje(){const[e,t]=M.useState(!1),n=()=>{t(r=>!r)};return I.jsxs(I.Fragment,{children:[I.jsx(So,{onClick:n,color:"inherit",children:I.jsx(aue,{})}),I.jsx(Ije,{open:e,onClose:n})]})}var YF={},Dje=Pi;Object.defineProperty(YF,"__esModule",{value:!0});var ZF=YF.default=void 0,Pje=Dje(na()),Lje=I;ZF=YF.default=(0,Pje.default)((0,Lje.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 XF={},Mje=Pi;Object.defineProperty(XF,"__esModule",{value:!0});var KF=XF.default=void 0,$je=Mje(na()),Fje=I;KF=XF.default=(0,$je.default)((0,Fje.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 $T(){const e=wse("(prefers-color-scheme: dark)"),t=Pr(tF);return M.useMemo(()=>{const r=e?"dark":"light";return t.theme==="default"?r:t.theme},[t.theme,e])}function Bje(){const e=Mu(),t=$T(),n=()=>{e(ile(t=="light"?"dark":"light"))};return I.jsx(So,{onClick:n,color:"inherit",children:t==="light"?I.jsx(KF,{}):I.jsx(ZF,{})})}class vr{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]=Lv(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),n_.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]=Lv(this,t,n);let r=[];return this.decompose(t,n,r,0),n_.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 h2(this),a=new h2(t);for(let s=n,o=n;;){if(i.next(s),a.next(s),s=0,i.lineBreak!=a.lineBreak||i.done!=a.done||i.value!=a.value)return!1;if(o+=i.value.length,i.done||o>=r)return!0}}iter(t=1){return new h2(this,t)}iterRange(t,n=this.length){return new wce(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 Tce(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]?vr.empty:t.length<=32?new Ra(t):n_.from(Ra.split(t,[]))}}class Ra extends vr{constructor(t,n=Uje(t)){super(),this.text=t,this.length=n}get lines(){return this.text.length}get children(){return null}lineInner(t,n,r,i){for(let a=0;;a++){let s=this.text[a],o=i+s.length;if((n?r:o)>=t)return new zje(i,o,r,s);i=o+1,r++}}decompose(t,n,r,i){let a=t<=0&&n>=this.length?this:new Ra(iX(this.text,t,n),Math.min(n,this.length)-Math.max(0,t));if(i&1){let s=r.pop(),o=r_(a.text,s.text.slice(),0,a.length);if(o.length<=32)r.push(new Ra(o,s.length+a.length));else{let l=o.length>>1;r.push(new Ra(o.slice(0,l)),new Ra(o.slice(l)))}}else r.push(a)}replace(t,n,r){if(!(r instanceof Ra))return super.replace(t,n,r);[t,n]=Lv(this,t,n);let i=r_(this.text,r_(r.text,iX(this.text,0,t)),n),a=this.length+r.length-(n-t);return i.length<=32?new Ra(i,a):n_.from(Ra.split(i,[]),a)}sliceString(t,n=this.length,r=` -`){[t,n]=Lv(this,t,n);let i="";for(let a=0,s=0;a<=n&&st&&s&&(i+=r),ta&&(i+=o.slice(Math.max(0,t-a),n-a)),a=l+1}return i}flatten(t){for(let n of this.text)t.push(n)}scanIdentical(){return 0}static split(t,n){let r=[],i=-1;for(let a of t)r.push(a),i+=a.length+1,r.length==32&&(n.push(new Ra(r,i)),r=[],i=-1);return i>-1&&n.push(new Ra(r,i)),n}}let n_=class Kb extends vr{constructor(t,n){super(),this.children=t,this.length=n,this.lines=0;for(let r of t)this.lines+=r.lines}lineInner(t,n,r,i){for(let a=0;;a++){let s=this.children[a],o=i+s.length,l=r+s.lines-1;if((n?l:o)>=t)return s.lineInner(t,n,r,i);i=o+1,r=l+1}}decompose(t,n,r,i){for(let a=0,s=0;s<=n&&a=s){let u=i&((s<=t?1:0)|(l>=n?2:0));s>=t&&l<=n&&!u?r.push(o):o.decompose(t-s,n-s,r,u)}s=l+1}}replace(t,n,r){if([t,n]=Lv(this,t,n),r.lines=a&&n<=o){let l=s.replace(t-a,n-a,r),u=this.lines-s.lines+l.lines;if(l.lines>4&&l.lines>u>>6){let d=this.children.slice();return d[i]=l,new Kb(d,this.length-(n-t)+r.length)}return super.replace(a,o,l)}a=o+1}return super.replace(t,n,r)}sliceString(t,n=this.length,r=` -`){[t,n]=Lv(this,t,n);let i="";for(let a=0,s=0;at&&a&&(i+=r),ts&&(i+=o.sliceString(t-s,n-s,r)),s=l+1}return i}flatten(t){for(let n of this.children)n.flatten(t)}scanIdentical(t,n){if(!(t instanceof Kb))return 0;let r=0,[i,a,s,o]=n>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;i+=n,a+=n){if(i==s||a==o)return r;let l=this.children[i],u=t.children[a];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 g of t)r+=g.lines;if(r<32){let g=[];for(let O of t)O.flatten(g);return new Ra(g,n)}let i=Math.max(32,r>>5),a=i<<1,s=i>>1,o=[],l=0,u=-1,d=[];function f(g){let O;if(g.lines>a&&g instanceof Kb)for(let S of g.children)f(S);else g.lines>s&&(l>s||!l)?(p(),o.push(g)):g instanceof Ra&&l&&(O=d[d.length-1])instanceof Ra&&g.lines+O.lines<=32?(l+=g.lines,u+=g.length+1,d[d.length-1]=new Ra(O.text.concat(g.text),O.length+1+g.length)):(l+g.lines>i&&p(),l+=g.lines,u+=g.length+1,d.push(g))}function p(){l!=0&&(o.push(d.length==1?d[0]:Kb.from(d,u)),u=-1,l=d.length=0)}for(let g of t)f(g);return p(),o.length==1?o[0]:new Kb(o,n)}};vr.empty=new Ra([""],0);function Uje(e){let t=-1;for(let n of e)t+=n.length+1;return t}function r_(e,t,n=0,r=1e9){for(let i=0,a=0,s=!0;a=n&&(l>r&&(o=o.slice(0,r-i)),i0?1:(t instanceof Ra?t.text.length:t.children.length)<<1]}nextInner(t,n){for(this.done=this.lineBreak=!1;;){let r=this.nodes.length-1,i=this.nodes[r],a=this.offsets[r],s=a>>1,o=i instanceof Ra?i.text.length:i.children.length;if(s==(n>0?o:0)){if(r==0)return this.done=!0,this.value="",this;n>0&&this.offsets[r-1]++,this.nodes.pop(),this.offsets.pop()}else if((a&1)==(n>0?0:1)){if(this.offsets[r]+=n,t==0)return this.lineBreak=!0,this.value=` -`,this;t--}else if(i instanceof Ra){let l=i.text[s+(n<0?-1:0)];if(this.offsets[r]+=n,l.length>Math.max(0,t))return this.value=t==0?l:n>0?l.slice(t):l.slice(0,l.length-t),this;t-=l.length}else{let l=i.children[s+(n<0?-1:0)];t>l.length?(t-=l.length,this.offsets[r]+=n):(n<0&&this.offsets[r]--,this.nodes.push(l),this.offsets.push(n>0?1:(l instanceof Ra?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 wce{constructor(t,n,r){this.value="",this.done=!1,this.cursor=new h2(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 Tce{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"&&(vr.prototype[Symbol.iterator]=function(){return this.iter()},h2.prototype[Symbol.iterator]=wce.prototype[Symbol.iterator]=Tce.prototype[Symbol.iterator]=function(){return this});let zje=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 Lv(e,t,n){return t=Math.max(0,Math.min(e.length,t)),[t,Math.max(t,Math.min(e.length,n))]}let Wy="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 Wy[t-1]<=e;return!1}function aX(e){return e>=127462&&e<=127487}const sX=8205;function Bs(e,t,n=!0,r=!0){return(n?xce:Hje)(e,t,r)}function xce(e,t,n){if(t==e.length)return t;t&&kce(e.charCodeAt(t))&&Ace(e.charCodeAt(t-1))&&t--;let r=Ps(e,t);for(t+=cc(r);t=0&&aX(Ps(e,s));)a++,s-=2;if(a%2==0)break;t+=2}else break}return t}function Hje(e,t,n){for(;t>0;){let r=xce(e,t-2,n);if(r=56320&&e<57344}function Ace(e){return e>=55296&&e<56320}function Ps(e,t){let n=e.charCodeAt(t);if(!Ace(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return kce(r)?(n-55296<<10)+(r-56320)+65536:n}function JF(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}function cc(e){return e<65536?1:2}const B8=/\r\n?|\n/;var Ms=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(Ms||(Ms={}));class Mf{constructor(t){this.sections=t}get length(){let t=0;for(let n=0;nt)return a+(t-i);a+=o}else{if(r!=Ms.Simple&&u>=t&&(r==Ms.TrackDel&&it||r==Ms.TrackBefore&&it))return null;if(u>t||u==t&&n<0&&!o)return t==i||n<0?a:a+l;a+=l}i=u}if(t>i)throw new RangeError(`Position ${t} is out of range for changeset of length ${i}`);return a}touchesRange(t,n=t){for(let r=0,i=0;r=0&&i<=n&&o>=t)return in?"cover":!0;i=o}return!1}toString(){let t="";for(let n=0;n=0?":"+i:"")}return t}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(n=>typeof n!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Mf(t)}static create(t){return new Mf(t)}}class ns extends Mf{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 U8(this,(n,r,i,a,s)=>t=t.replace(i,i+(r-n),s),!1),t}mapDesc(t,n=!1){return z8(this,t,n,!0)}invert(t){let n=this.sections.slice(),r=[];for(let i=0,a=0;i=0){n[i]=o,n[i+1]=s;let l=i>>1;for(;r.length0&&j0(r,n,a.text),a.forward(d),o+=d}let u=t[s++];for(;o>1].toJSON()))}return t}static of(t,n,r){let i=[],a=[],s=0,o=null;function l(d=!1){if(!d&&!i.length)return;sp||f<0||p>n)throw new RangeError(`Invalid change range ${f} to ${p} (in doc of length ${n})`);let O=g?typeof g=="string"?vr.of(g.split(r||B8)):g:vr.empty,S=O.length;if(f==p&&S==0)return;fs&&ho(i,f-s,-1),ho(i,p-f,S),j0(a,i,O),s=p}}return u(t),l(!o),o}static empty(t){return new ns(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw new RangeError("Invalid JSON representation of ChangeSet");let n=[],r=[];for(let i=0;io&&typeof s!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(a.length==1)n.push(a[0],0);else{for(;r.length=0&&n<=0&&n==e[i+1]?e[i]+=t:t==0&&e[i]==0?e[i+1]+=n:r?(e[i]+=t,e[i+1]+=n):e.push(t,n)}function j0(e,t,n){if(n.length==0)return;let r=t.length-2>>1;if(r>1])),!(n||s==e.sections.length||e.sections[s+1]<0);)o=e.sections[s++],l=e.sections[s++];t(i,u,a,d,f),i=u,a=d}}}function z8(e,t,n,r=!1){let i=[],a=r?[]:null,s=new Sw(e),o=new Sw(t);for(let l=-1;;)if(s.ins==-1&&o.ins==-1){let u=Math.min(s.len,o.len);ho(i,u,-1),s.forward(u),o.forward(u)}else if(o.ins>=0&&(s.ins<0||l==s.i||s.off==0&&(o.len=0&&l=0){let u=0,d=s.len;for(;d;)if(o.ins==-1){let f=Math.min(d,o.len);u+=f,d-=f,o.forward(f)}else if(o.ins==0&&o.lenl||s.ins>=0&&s.len>l)&&(o||r.length>u),a.forward2(l),s.forward(l)}}}}class Sw{constructor(t){this.set=t,this.i=0,this.next()}next(){let{sections:t}=this.set;this.i>1;return n>=t.length?vr.empty:t[n]}textBit(t){let{inserted:n}=this.set,r=this.i-2>>1;return r>=n.length&&!t?vr.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 Ug{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 Ug(r,i,this.flags)}extend(t,n=t){if(t<=this.anchor&&n>=this.anchor)return ht.range(t,n);let r=Math.abs(t-this.anchor)>Math.abs(n-this.anchor)?t:n;return ht.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 ht.range(t.anchor,t.head)}static create(t,n,r){return new Ug(t,n,r)}}class ht{constructor(t,n){this.ranges=t,this.mainIndex=n}map(t,n=-1){return t.empty?this:ht.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 ht(t.ranges.map(n=>Ug.fromJSON(n)),t.main)}static single(t,n=t){return new ht([ht.range(t,n)],0)}static create(t,n=0){if(t.length==0)throw new RangeError("A selection needs at least one range");for(let r=0,i=0;it?8:0)|a)}static normalized(t,n=0){let r=t[n];t.sort((i,a)=>i.from-a.from),n=t.indexOf(r);for(let i=1;ia.head?ht.range(l,o):ht.range(o,l))}}return new ht(t,n)}}function Cce(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let eB=0;class an{constructor(t,n,r,i,a){this.combine=t,this.compareInput=n,this.compare=r,this.isStatic=i,this.id=eB++,this.default=t([]),this.extensions=typeof a=="function"?a(this):a}get reader(){return this}static define(t={}){return new an(t.combine||(n=>n),t.compareInput||((n,r)=>n===r),t.compare||(t.combine?(n,r)=>n===r:tB),!!t.static,t.enables)}of(t){return new i_([],this,0,t)}compute(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new i_(t,this,1,n)}computeN(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new i_(t,this,2,n)}from(t,n){return n||(n=r=>r),this.compute([t],r=>n(r.field(t)))}}function tB(e,t){return e==t||e.length==t.length&&e.every((n,r)=>n===t[r])}class i_{constructor(t,n,r,i){this.dependencies=t,this.facet=n,this.type=r,this.value=i,this.id=eB++}dynamicSlot(t){var n;let r=this.value,i=this.facet.compareInput,a=this.id,s=t[a]>>1,o=this.type==2,l=!1,u=!1,d=[];for(let f of this.dependencies)f=="doc"?l=!0:f=="selection"?u=!0:((n=t[f.id])!==null&&n!==void 0?n:1)&1||d.push(t[f.id]);return{create(f){return f.values[s]=r(f),1},update(f,p){if(l&&p.docChanged||u&&(p.docChanged||p.selection)||j8(f,d)){let g=r(f);if(o?!oX(g,f.values[s],i):!i(g,f.values[s]))return f.values[s]=g,1}return 0},reconfigure:(f,p)=>{let g,O=p.config.address[a];if(O!=null){let S=jC(p,O);if(this.dependencies.every(T=>T instanceof an?p.facet(T)===f.facet(T):T instanceof ws?p.field(T,!1)==f.field(T,!1):!0)||(o?oX(g=r(f),S,i):i(g=r(f),S)))return f.values[s]=S,0}else g=r(f);return f.values[s]=g,1}}}}function oX(e,t,n){if(e.length!=t.length)return!1;for(let r=0;re[l.id]),i=n.map(l=>l.type),a=r.filter(l=>!(l&1)),s=e[t.id]>>1;function o(l){let u=[];for(let d=0;dr===i),t);return t.provide&&(n.provides=t.provide(n)),n}create(t){let n=t.facet(lX).find(r=>r.field==this);return((n==null?void 0:n.create)||this.createF)(t)}slot(t){let n=t[this.id]>>1;return{create:r=>(r.values[n]=this.create(r),1),update:(r,i)=>{let a=r.values[n],s=this.updateF(a,i);return this.compareF(a,s)?0:(r.values[n]=s,1)},reconfigure:(r,i)=>i.config.address[this.id]!=null?(r.values[n]=i.field(this),0):(r.values[n]=this.create(r),1)}}init(t){return[this,lX.of({field:this,create:t})]}get extension(){return this}}const kg={lowest:4,low:3,default:2,high:1,highest:0};function oE(e){return t=>new Rce(t,e)}const Rp={highest:oE(kg.highest),high:oE(kg.high),default:oE(kg.default),low:oE(kg.low),lowest:oE(kg.lowest)};class Rce{constructor(t,n){this.inner=t,this.prec=n}}class RR{of(t){return new H8(this,t)}reconfigure(t){return RR.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class H8{constructor(t,n){this.compartment=t,this.inner=n}}class zC{constructor(t,n,r,i,a,s){for(this.base=t,this.compartments=n,this.dynamicSlots=r,this.address=i,this.staticValues=a,this.facets=s,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(t,n,r){let i=[],a=Object.create(null),s=new Map;for(let p of Wje(t,n,s))p instanceof ws?i.push(p):(a[p.facet.id]||(a[p.facet.id]=[])).push(p);let o=Object.create(null),l=[],u=[];for(let p of i)o[p.id]=u.length<<1,u.push(g=>p.slot(g));let d=r==null?void 0:r.config.facets;for(let p in a){let g=a[p],O=g[0].facet,S=d&&d[p]||[];if(g.every(T=>T.type==0))if(o[O.id]=l.length<<1|1,tB(S,g))l.push(r.facet(O));else{let T=O.combine(g.map(w=>w.value));l.push(r&&O.compare(T,r.facet(O))?r.facet(O):T)}else{for(let T of g)T.type==0?(o[T.id]=l.length<<1|1,l.push(T.value)):(o[T.id]=u.length<<1,u.push(w=>T.dynamicSlot(w)));o[O.id]=u.length<<1,u.push(T=>Qje(T,O,g))}}let f=u.map(p=>p(o));return new zC(t,s,f,o,l,a)}}function Wje(e,t,n){let r=[[],[],[],[],[]],i=new Map;function a(s,o){let l=i.get(s);if(l!=null){if(l<=o)return;let u=r[l].indexOf(s);u>-1&&r[l].splice(u,1),s instanceof H8&&n.delete(s.compartment)}if(i.set(s,o),Array.isArray(s))for(let u of s)a(u,o);else if(s instanceof H8){if(n.has(s.compartment))throw new RangeError("Duplicate use of compartment in extensions");let u=t.get(s.compartment)||s.inner;n.set(s.compartment,u),a(u,o)}else if(s instanceof Rce)a(s.inner,s.prec);else if(s instanceof ws)r[o].push(s),s.provides&&a(s.provides,o);else if(s instanceof i_)r[o].push(s),s.facet.extensions&&a(s.facet.extensions,kg.default);else{let u=s.extension;if(!u)throw new Error(`Unrecognized extension value in extension set (${s}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);a(u,o)}}return a(e,kg.default),r.reduce((s,o)=>s.concat(o))}function p2(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 jC(e,t){return t&1?e.config.staticValues[t>>1]:e.values[t>>1]}const Ice=an.define(),Q8=an.define({combine:e=>e.some(t=>t),static:!0}),Nce=an.define({combine:e=>e.length?e[0]:void 0,static:!0}),Dce=an.define(),Pce=an.define(),Lce=an.define(),Mce=an.define({combine:e=>e.length?e[0]:!1});class Ld{constructor(t,n){this.type=t,this.value=n}static define(){return new Vje}}class Vje{of(t){return new Ld(this,t)}}class qje{constructor(t){this.map=t}of(t){return new Zn(this,t)}}class Zn{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 Zn(this.type,n)}is(t){return this.type==t}static define(t={}){return new qje(t.map||(n=>n))}static mapEffects(t,n){if(!t.length)return t;let r=[];for(let i of t){let a=i.map(n);a&&r.push(a)}return r}}Zn.reconfigure=Zn.define();Zn.appendConfig=Zn.define();let os=class LE{constructor(t,n,r,i,a,s){this.startState=t,this.changes=n,this.selection=r,this.effects=i,this.annotations=a,this.scrollIntoView=s,this._doc=null,this._state=null,r&&Cce(r,n.newLength),a.some(o=>o.type==LE.time)||(this.annotations=a.concat(LE.time.of(Date.now())))}static create(t,n,r,i,a,s){return new LE(t,n,r,i,a,s)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(t){for(let n of this.annotations)if(n.type==t)return n.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let n=this.annotation(LE.userEvent);return!!(n&&(n==t||n.length>t.length&&n.slice(0,t.length)==t&&n[t.length]=="."))}};os.time=Ld.define();os.userEvent=Ld.define();os.addToHistory=Ld.define();os.remote=Ld.define();function Gje(e,t){let n=[];for(let r=0,i=0;;){let a,s;if(r=e[r]))a=e[r++],s=e[r++];else if(i=0;i--){let a=r[i](e);a instanceof os?e=a:Array.isArray(a)&&a.length==1&&a[0]instanceof os?e=a[0]:e=Fce(t,Vy(a),!1)}return e}function Zje(e){let t=e.startState,n=t.facet(Lce),r=e;for(let i=n.length-1;i>=0;i--){let a=n[i](e);a&&Object.keys(a).length&&(r=$ce(r,W8(t,a,e.changes.newLength),!0))}return r==e?e:os.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}const Xje=[];function Vy(e){return e==null?Xje:Array.isArray(e)?e:[e]}var ea=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(ea||(ea={}));const Kje=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let V8;try{V8=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function Jje(e){if(V8)return V8.test(e);for(let t=0;t"€"&&(n.toUpperCase()!=n.toLowerCase()||Kje.test(n)))return!0}return!1}function eHe(e){return t=>{if(!/\S/.test(t))return ea.Space;if(Jje(t))return ea.Word;for(let n=0;n-1)return ea.Word;return ea.Other}}class Dr{constructor(t,n,r,i,a,s){this.config=t,this.doc=n,this.selection=r,this.values=i,this.status=t.statusTemplate.slice(),this.computeSlot=a,s&&(s._state=this);for(let o=0;oi.set(u,l)),n=null),i.set(o.value.compartment,o.value.extension)):o.is(Zn.reconfigure)?(n=null,r=o.value):o.is(Zn.appendConfig)&&(n=null,r=Vy(r).concat(o.value));let a;n?a=t.startState.values.slice():(n=zC.resolve(r,i,this),a=new Dr(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(l,u)=>u.reconfigure(l,this),null).values);let s=t.startState.facet(Q8)?t.newSelection:t.newSelection.asSingle();new Dr(n,t.newDoc,s,a,(o,l)=>l.update(o,t),t)}replaceSelection(t){return typeof t=="string"&&(t=this.toText(t)),this.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:t},range:ht.cursor(n.from+t.length)}))}changeByRange(t){let n=this.selection,r=t(n.ranges[0]),i=this.changes(r.changes),a=[r.range],s=Vy(r.effects);for(let o=1;os.spec.fromJSON(o,l)))}}return Dr.create({doc:t.doc,selection:ht.fromJSON(t.selection),extensions:n.extensions?i.concat([n.extensions]):i})}static create(t={}){let n=zC.resolve(t.extensions||[],new Map),r=t.doc instanceof vr?t.doc:vr.of((t.doc||"").split(n.staticFacet(Dr.lineSeparator)||B8)),i=t.selection?t.selection instanceof ht?t.selection:ht.single(t.selection.anchor,t.selection.head):ht.single(0);return Cce(i,r.length),n.staticFacet(Q8)||(i=i.asSingle()),new Dr(n,r,i,n.dynamicSlots.map(()=>null),(a,s)=>s.create(a),null)}get tabSize(){return this.facet(Dr.tabSize)}get lineBreak(){return this.facet(Dr.lineSeparator)||` -`}get readOnly(){return this.facet(Mce)}phrase(t,...n){for(let r of this.facet(Dr.phrases))if(Object.prototype.hasOwnProperty.call(r,t)){t=r[t];break}return n.length&&(t=t.replace(/\$(\$|\d*)/g,(r,i)=>{if(i=="$")return"$";let a=+(i||1);return!a||a>n.length?r:n[a-1]})),t}languageDataAt(t,n,r=-1){let i=[];for(let a of this.facet(Ice))for(let s of a(this,n,r))Object.prototype.hasOwnProperty.call(s,t)&&i.push(s[t]);return i}charCategorizer(t){return eHe(this.languageDataAt("wordChars",t).join(""))}wordAt(t){let{text:n,from:r,length:i}=this.doc.lineAt(t),a=this.charCategorizer(t),s=t-r,o=t-r;for(;s>0;){let l=Bs(n,s,!1);if(a(n.slice(l,s))!=ea.Word)break;s=l}for(;oe.length?e[0]:4});Dr.lineSeparator=Nce;Dr.readOnly=Mce;Dr.phrases=an.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])}});Dr.languageData=Ice;Dr.changeFilter=Dce;Dr.transactionFilter=Pce;Dr.transactionExtender=Lce;RR.reconfigure=Zn.define();function Yf(e,t,n={}){let r={};for(let i of e)for(let a of Object.keys(i)){let s=i[a],o=r[a];if(o===void 0)r[a]=s;else if(!(o===s||s===void 0))if(Object.hasOwnProperty.call(n,a))r[a]=n[a](o,s);else throw new Error("Config merge conflict for field "+a)}for(let i in t)r[i]===void 0&&(r[i]=t[i]);return r}class O1{eq(t){return this==t}range(t,n=t){return q8.create(t,n,this)}}O1.prototype.startSide=O1.prototype.endSide=0;O1.prototype.point=!1;O1.prototype.mapMode=Ms.TrackDel;let q8=class Bce{constructor(t,n,r){this.from=t,this.to=n,this.value=r}static create(t,n,r){return new Bce(t,n,r)}};function G8(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class nB{constructor(t,n,r,i){this.from=t,this.to=n,this.value=r,this.maxPoint=i}get length(){return this.to[this.to.length-1]}findIndex(t,n,r,i=0){let a=r?this.to:this.from;for(let s=i,o=a.length;;){if(s==o)return s;let l=s+o>>1,u=a[l]-t||(r?this.value[l].endSide:this.value[l].startSide)-n;if(l==s)return u>=0?s:o;u>=0?o=l:s=l+1}}between(t,n,r,i){for(let a=this.findIndex(n,-1e9,!0),s=this.findIndex(r,1e9,!1,a);ag||p==g&&u.startSide>0&&u.endSide<=0)continue;(g-p||u.endSide-u.startSide)<0||(s<0&&(s=p),u.point&&(o=Math.max(o,g-p)),r.push(u),i.push(p-s),a.push(g-s))}return{mapped:r.length?new nB(i,a,r,o):null,pos:s}}}class Cr{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 Cr(t,n,r,i)}get length(){let t=this.chunk.length-1;return t<0?0:Math.max(this.chunkEnd(t),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let t=this.nextLayer.size;for(let n of this.chunk)t+=n.value.length;return t}chunkEnd(t){return this.chunkPos[t]+this.chunk[t].length}update(t){let{add:n=[],sort:r=!1,filterFrom:i=0,filterTo:a=this.length}=t,s=t.filter;if(n.length==0&&!s)return this;if(r&&(n=n.slice().sort(G8)),this.isEmpty)return n.length?Cr.of(n):this;let o=new Uce(this,null,-1).goto(0),l=0,u=[],d=new hm;for(;o.value||l=0){let f=n[l++];d.addInner(f.from,f.to,f.value)||u.push(f)}else o.rangeIndex==1&&o.chunkIndexthis.chunkEnd(o.chunkIndex)||ao.to||a=a&&t<=a+s.length&&s.between(a,t-a,n-a,r)===!1)return}this.nextLayer.between(t,n,r)}}iter(t=0){return Ew.from([this]).goto(t)}get isEmpty(){return this.nextLayer==this}static iter(t,n=0){return Ew.from(t).goto(n)}static compare(t,n,r,i,a=-1){let s=t.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=a),o=n.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=a),l=uX(s,o,r),u=new lE(s,l,a),d=new lE(o,l,a);r.iterGaps((f,p,g)=>cX(u,f,d,p,g,i)),r.empty&&r.length==0&&cX(u,0,d,0,0,i)}static eq(t,n,r=0,i){i==null&&(i=999999999);let a=t.filter(d=>!d.isEmpty&&n.indexOf(d)<0),s=n.filter(d=>!d.isEmpty&&t.indexOf(d)<0);if(a.length!=s.length)return!1;if(!a.length)return!0;let o=uX(a,s),l=new lE(a,o,0).goto(r),u=new lE(s,o,0).goto(r);for(;;){if(l.to!=u.to||!Y8(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,a=-1){let s=new lE(t,null,a).goto(n),o=n,l=s.openStart;for(;;){let u=Math.min(s.to,r);if(s.point){let d=s.activeForPoint(s.to),f=s.pointFromo&&(i.span(o,u,s.active,l),l=s.openEnd(u));if(s.to>r)return l+(s.point&&s.to>r?1:0);o=s.to,s.next()}}static of(t,n=!1){let r=new hm;for(let i of t instanceof q8?[t]:n?tHe(t):t)r.add(i.from,i.to,i.value);return r.finish()}static join(t){if(!t.length)return Cr.empty;let n=t[t.length-1];for(let r=t.length-2;r>=0;r--)for(let i=t[r];i!=Cr.empty;i=i.nextLayer)n=new Cr(i.chunkPos,i.chunk,n,Math.max(i.maxPoint,n.maxPoint));return n}}Cr.empty=new Cr([],[],null,-1);function tHe(e){if(e.length>1)for(let t=e[0],n=1;n0)return e.slice().sort(G8);t=r}return e}Cr.empty.nextLayer=Cr.empty;class hm{finishChunk(t){this.chunks.push(new nB(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 hm)).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(Cr.empty)}finishInner(t){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return t;let n=Cr.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(t):t,this.setMaxPoint);return this.from=null,n}}function uX(e,t,n){let r=new Map;for(let a of e)for(let s=0;s=this.minPoint)break}}setRangeIndex(t){if(t==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=r&&i.push(new Uce(s,n,r,a));return i.length==1?i[0]:new Ew(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--)cD(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--)cD(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(),cD(this.heap,0)}}}function cD(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 lE{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=Ew.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){AA(this.active,t),AA(this.activeTo,t),AA(this.activeRank,t),this.minActive=dX(this.active,this.activeTo)}addActive(t){let n=0,{value:r,to:i,rank:a}=this.cursor;for(;n0;)n++;_A(this.active,n,r),_A(this.activeTo,n,i),_A(this.activeRank,n,a),t&&_A(t,n,this.cursor.from),this.minActive=dX(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&&AA(r,i)}else if(this.cursor.value)if(this.cursor.from>t){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let a=this.cursor.value;if(!a.point)this.addActive(r),this.cursor.next();else if(n&&this.cursor.to==this.to&&this.cursor.from=0&&r[i]=0&&!(this.activeRank[r]t||this.activeTo[r]==t&&this.active[r].endSide>=this.point.endSide)&&n.push(this.active[r]);return n.reverse()}openEnd(t){let n=0;for(let r=this.activeTo.length-1;r>=0&&this.activeTo[r]>t;r--)n++;return n}}function cX(e,t,n,r,i,a){e.goto(t),n.goto(r);let s=r+i,o=r,l=r-t;for(;;){let u=e.to+l-n.to||e.endSide-n.endSide,d=u<0?e.to+l:n.to,f=Math.min(d,s);if(e.point||n.point?e.point&&n.point&&(e.point==n.point||e.point.eq(n.point))&&Y8(e.activeForPoint(e.to),n.activeForPoint(n.to))||a.comparePoint(o,f,e.point,n.point):f>o&&!Y8(e.active,n.active)&&a.compareRange(o,f,e.active,n.active),d>s)break;o=d,u<=0&&e.next(),u>=0&&n.next()}}function Y8(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 dX(e,t){let n=-1,r=1e9;for(let i=0;i=t)return i;if(i==e.length)break;a+=e.charCodeAt(i)==9?n-a%n:1,i=Bs(e,i)}return r===!0?-1:e.length}const X8="ͼ",fX=typeof Symbol>"u"?"__"+X8:Symbol.for(X8),K8=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),hX=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class pm{constructor(t,n){this.rules=[];let{finish:r}=n||{};function i(s){return/^@/.test(s)?[s]:s.split(/,\s*/)}function a(s,o,l,u){let d=[],f=/^@(\w+)\b/.exec(s[0]),p=f&&f[1]=="keyframes";if(f&&o==null)return l.push(s[0]+";");for(let g in o){let O=o[g];if(/&/.test(g))a(g.split(/,\s*/).map(S=>s.map(T=>S.replace(/&/,T))).reduce((S,T)=>S.concat(T)),O,l);else if(O&&typeof O=="object"){if(!f)throw new RangeError("The value of a property ("+g+") should be a primitive value.");a(i(g),O,d,p)}else O!=null&&d.push(g.replace(/_.*/,"").replace(/[A-Z]/g,S=>"-"+S.toLowerCase())+": "+O+";")}(d.length||p)&&l.push((r&&!f&&!u?s.map(r):s).join(", ")+" {"+d.join(" ")+"}")}for(let s in t)a(i(s),t[s],this.rules)}getRules(){return this.rules.join(` -`)}static newName(){let t=hX[fX]||1;return hX[fX]=t+1,X8+t.toString(36)}static mount(t,n,r){let i=t[K8],a=r&&r.nonce;i?a&&i.setNonce(a):i=new nHe(t,a),i.mount(Array.isArray(n)?n:[n],t)}}let pX=new Map;class nHe{constructor(t,n){let r=t.ownerDocument||t,i=r.defaultView;if(!t.head&&t.adoptedStyleSheets&&i.CSSStyleSheet){let a=pX.get(r);if(a)return t[K8]=a;this.sheet=new i.CSSStyleSheet,pX.set(r,this)}else this.styleTag=r.createElement("style"),n&&this.styleTag.setAttribute("nonce",n);this.modules=[],t[K8]=this}mount(t,n){let r=this.sheet,i=0,a=0;for(let s=0;s-1&&(this.modules.splice(l,1),a--,l=-1),l==-1){if(this.modules.splice(a++,0,o),r)for(let u=0;u",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},rHe=typeof navigator<"u"&&/Mac/.test(navigator.platform),iHe=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Ls=0;Ls<10;Ls++)mm[48+Ls]=mm[96+Ls]=String(Ls);for(var Ls=1;Ls<=24;Ls++)mm[Ls+111]="F"+Ls;for(var Ls=65;Ls<=90;Ls++)mm[Ls]=String.fromCharCode(Ls+32),ww[Ls]=String.fromCharCode(Ls);for(var dD in mm)ww.hasOwnProperty(dD)||(ww[dD]=mm[dD]);function aHe(e){var t=rHe&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||iHe&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?ww:mm)[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 Tw(e){let t;return e.nodeType==11?t=e.getSelection?e:e.ownerDocument:t=e,t.getSelection()}function J8(e,t){return t?e==t||e.contains(t.nodeType!=1?t.parentNode:t):!1}function sHe(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function a_(e,t){if(!t.anchorNode)return!1;try{return J8(e,t.anchorNode)}catch{return!1}}function xw(e){return e.nodeType==3?E1(e,0,e.nodeValue.length).getClientRects():e.nodeType==1?e.getClientRects():[]}function m2(e,t,n,r){return n?mX(e,t,n,r,-1)||mX(e,t,n,r,1):!1}function S1(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t}function HC(e){return e.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}function mX(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:pp(e))){if(e.nodeName=="DIV")return!1;let a=e.parentNode;if(!a||a.nodeType!=1)return!1;t=S1(e)+(i<0?0:1),e=a}else if(e.nodeType==1){if(e=e.childNodes[t+(i<0?-1:0)],e.nodeType==1&&e.contentEditable=="false")return!1;t=i<0?pp(e):0}else return!1}}function pp(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function IR(e,t){let n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}function oHe(e){let t=e.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}function zce(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 lHe(e,t,n,r,i,a,s,o){let l=e.ownerDocument,u=l.defaultView||window;for(let d=e,f=!1;d&&!f;)if(d.nodeType==1){let p,g=d==l.body,O=1,S=1;if(g)p=oHe(u);else{if(/^(fixed|sticky)$/.test(getComputedStyle(d).position)&&(f=!0),d.scrollHeight<=d.clientHeight&&d.scrollWidth<=d.clientWidth){d=d.assignedSlot||d.parentNode;continue}let x=d.getBoundingClientRect();({scaleX:O,scaleY:S}=zce(d,x)),p={left:x.left,right:x.left+d.clientWidth*O,top:x.top,bottom:x.top+d.clientHeight*S}}let T=0,w=0;if(i=="nearest")t.top0&&t.bottom>p.bottom+w&&(w=t.bottom-p.bottom+w+s)):t.bottom>p.bottom&&(w=t.bottom-p.bottom+s,n<0&&t.top-w0&&t.right>p.right+T&&(T=t.right-p.right+T+a)):t.right>p.right&&(T=t.right-p.right+a,n<0&&t.lefti.clientHeight&&(r=i),!n&&i.scrollWidth>i.clientWidth&&(n=i),i=i.assignedSlot||i.parentNode;else if(i.nodeType==11)i=i.host;else break;return{x:n,y:r}}class cHe{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?pp(n):0),r,Math.min(t.focusOffset,r?pp(r):0))}set(t,n,r,i){this.anchorNode=t,this.anchorOffset=n,this.focusNode=r,this.focusOffset=i}}let jb=null;function jce(e){if(e.setActive)return e.setActive();if(jb)return e.focus(jb);let t=[];for(let n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(jb==null?{get preventScroll(){return jb={preventScroll:!0},!0}}:void 0),!jb){jb=!1;for(let n=0;nMath.max(1,e.scrollHeight-e.clientHeight-4)}function Wce(e,t){for(let n=e,r=t;;){if(n.nodeType==3&&r>0)return{node:n,offset:r};if(n.nodeType==1&&r>0){if(n.contentEditable=="false")return null;n=n.childNodes[r-1],r=pp(n)}else if(n.parentNode&&!HC(n))r=S1(n),n=n.parentNode;else return null}}function Vce(e,t){for(let n=e,r=t;;){if(n.nodeType==3&&rn)return f.domBoundsAround(t,n,u);if(p>=t&&i==-1&&(i=l,a=u),u>n&&f.dom.parentNode==this.dom){s=l,o=d;break}d=p,u=p+f.breakAfter}return{from:a,to:o<0?r+this.length:o,startDOM:(i?this.children[i-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:s=0?this.children[s].dom:null}}markDirty(t=!1){this.flags|=2,this.markParentsDirty(t)}markParentsDirty(t){for(let n=this.parent;n;n=n.parent){if(t&&(n.flags|=2),n.flags&1)return;n.flags|=1,t=!1}}setParent(t){this.parent!=t&&(this.parent=t,this.flags&7&&this.markParentsDirty(!0))}setDOM(t){this.dom!=t&&(this.dom&&(this.dom.cmView=null),this.dom=t,t.cmView=this)}get rootView(){for(let t=this;;){let n=t.parent;if(!n)return t;t=n}}replaceChildren(t,n,r=rB){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 Gce(e,t,n,r,i,a,s,o,l){let{children:u}=e,d=u.length?u[t]:null,f=a.length?a[a.length-1]:null,p=f?f.breakAfter:s;if(!(t==r&&d&&!s&&!p&&a.length<2&&d.merge(n,i,a.length?f:null,n==0,o,l))){if(r0&&(!s&&a.length&&d.merge(n,d.length,a[0],!1,o,0)?d.breakAfter=a.shift().breakAfter:(n2);var cn={mac:OX||/Mac/.test(El.platform),windows:/Win/.test(El.platform),linux:/Linux|X11/.test(El.platform),ie:NR,ie_version:Zce?eL.documentMode||6:nL?+nL[1]:tL?+tL[1]:0,gecko:yX,gecko_version:yX?+(/Firefox\/(\d+)/.exec(El.userAgent)||[0,0])[1]:0,chrome:!!fD,chrome_version:fD?+fD[1]:0,ios:OX,android:/Android\b/.test(El.userAgent),webkit:vX,safari:Xce,webkit_version:vX?+(/\bAppleWebKit\/(\d+)/.exec(El.userAgent)||[0,0])[1]:0,tabSize:eL.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const hHe=256;class Rd extends wi{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 Rd)||this.length-(n-t)+r.length>hHe||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 Rd(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 mo(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 pHe(this.dom,t,n)}}class mp extends wi{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(Hce(t),this.mark.class&&(t.className=this.mark.class),this.mark.attrs)for(let n in this.mark.attrs)t.setAttribute(n,this.mark.attrs[n]);return t}canReuseDOM(t){return super.canReuseDOM(t)&&!((this.flags|t.flags)&8)}reuseDOM(t){t.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(t),this.flags|=6)}sync(t,n){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(t,n)}merge(t,n,r,i,a,s){return r&&(!(r instanceof mp&&r.mark.eq(this.mark))||t&&a<=0||nt&&n.push(r=t&&(i=a),r=l,a++}let s=this.length-t;return this.length=t,i>-1&&(this.children.length=i,this.markDirty()),new mp(this.mark,n,s)}domAtPos(t){return Kce(this,t)}coordsAt(t,n){return ede(this,t,n)}}function pHe(e,t,n){let r=e.nodeValue.length;t>r&&(t=r);let i=t,a=t,s=0;t==0&&n<0||t==r&&n>=0?cn.chrome||cn.gecko||(t?(i--,s=1):a=0)?0:o.length-1];return cn.safari&&!s&&l.width==0&&(l=Array.prototype.find.call(o,u=>u.width)||l),s?IR(l,s<0):l||null}class H0 extends wi{static create(t,n,r){return new H0(t,n,r)}constructor(t,n,r){super(),this.widget=t,this.length=n,this.side=r,this.prevWidget=null}split(t){let n=H0.create(this.widget,this.length-t,this.side);return this.length-=t,n}sync(t){(!this.dom||!this.widget.updateDOM(this.dom,t))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(t)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(t,n,r,i,a,s){return r&&(!(r instanceof H0)||!this.widget.compare(r.widget)||t>0&&a<=0||n0)?mo.before(this.dom):mo.after(this.dom,t==this.length)}domBoundsAround(){return null}coordsAt(t,n){let r=this.widget.coordsAt(this.dom,t,n);if(r)return r;let i=this.dom.getClientRects(),a=null;if(!i.length)return null;let s=this.side?this.side<0:t>0;for(let o=s?i.length-1:0;a=i[o],!(t>0?o==0:o==i.length-1||a.top0?mo.before(this.dom):mo.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(t){return this.dom.getBoundingClientRect()}get overrideDOMText(){return vr.empty}get isHidden(){return!0}}Rd.prototype.children=H0.prototype.children=Mv.prototype.children=rB;function Kce(e,t){let n=e.dom,{children:r}=e,i=0;for(let a=0;ia&&t0;a--){let s=r[a-1];if(s.dom.parentNode==n)return s.domAtPos(s.length)}for(let a=i;a0&&t instanceof mp&&i.length&&(r=i[i.length-1])instanceof mp&&r.mark.eq(t.mark)?Jce(r,t.children[0],n-1):(i.push(t),t.setParent(e)),e.length+=t.length}function ede(e,t,n){let r=null,i=-1,a=null,s=-1;function o(u,d){for(let f=0,p=0;f=d&&(g.children.length?o(g,d-p):(!a||a.isHidden&&n>0)&&(O>d||p==O&&g.getSide()>0)?(a=g,s=d-p):(p-1?1:0)!=i.length-(n&&i.indexOf(n)>-1?1:0))return!1;for(let a of r)if(a!=n&&(i.indexOf(a)==-1||e[a]!==t[a]))return!1;return!0}function iL(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 gHe(e){let t=Object.create(null);for(let n=0;n0?3e8:-4e8:n>0?1e8:-1e8,new gm(t,n,n,r,t.widget||null,!1)}static replace(t){let n=!!t.block,r,i;if(t.isBlockGap)r=-5e8,i=4e8;else{let{start:a,end:s}=tde(t,n);r=(a?n?-3e8:-1:5e8)-1,i=(s?n?2e8:1:-6e8)+1}return new gm(t,r,i,n,t.widget||null,!0)}static line(t){return new BT(t)}static set(t,n=!1){return Cr.of(t,n)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}gn.none=Cr.empty;class FT extends gn{constructor(t){let{start:n,end:r}=tde(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 FT&&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))&&QC(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)}}FT.prototype.point=!1;class BT extends gn{constructor(t){super(-2e8,-2e8,null,t)}eq(t){return t instanceof BT&&this.spec.class==t.spec.class&&QC(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)}}BT.prototype.mapMode=Ms.TrackBefore;BT.prototype.point=!0;class gm extends gn{constructor(t,n,r,i,a,s){super(n,r,a,t),this.block=i,this.isReplace=s,this.mapMode=i?n<=0?Ms.TrackBefore:Ms.TrackAfter:Ms.TrackDel}get type(){return this.startSide!=this.endSide?Go.WidgetRange:this.startSide<=0?Go.WidgetBefore:Go.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(t){return t instanceof gm&&bHe(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)}}gm.prototype.point=!0;function tde(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 bHe(e,t){return e==t||!!(e&&t&&e.compare(t))}function aL(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 za extends wi{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(t,n,r,i,a,s){if(r){if(!(r instanceof za))return!1;this.dom||r.transferDOM(this)}return i&&this.setDeco(r?r.attrs:null),Yce(this,t,n,r?r.children.slice():[],a,s),!0}split(t){let n=new za;if(n.breakAfter=this.breakAfter,this.length==0)return n;let{i:r,off:i}=this.childPos(t);i&&(n.append(this.children[r].split(i),0),this.children[r].merge(i,this.children[r].length,null,!1,0,0),r++);for(let a=r;a0&&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){QC(this.attrs,t)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=t)}append(t,n){Jce(this,t,n)}addLineDeco(t){let n=t.spec.attributes,r=t.spec.class;n&&(this.attrs=rL(n,this.attrs||{})),r&&(this.attrs=rL({class:r},this.attrs||{}))}domAtPos(t){return Kce(this,t)}reuseDOM(t){t.nodeName=="DIV"&&(this.setDOM(t),this.flags|=6)}sync(t,n){var r;this.dom?this.flags&4&&(Hce(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&&(iL(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&&wi.get(i)instanceof mp;)i=i.lastChild;if(!i||!this.length||i.nodeName!="BR"&&((r=wi.get(i))===null||r===void 0?void 0:r.isEditable)==!1&&(!cn.ios||!this.children.some(a=>a instanceof Rd))){let a=document.createElement("BR");a.cmIgnore=!0,this.dom.appendChild(a)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let t=0,n;for(let r of this.children){if(!(r instanceof Rd)||/[^ -~]/.test(r.text))return null;let i=xw(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=ede(this,t,n);if(!this.children.length&&r&&this.parent){let{heightOracle:i}=this.parent.view.viewState,a=r.bottom-r.top;if(Math.abs(a-i.lineHeight)<2&&i.textHeight=n){if(a instanceof za)return a;if(s>n)break}i=s+a.breakAfter}return null}}class tp extends wi{constructor(t,n,r){super(),this.widget=t,this.length=n,this.deco=r,this.breakAfter=0,this.prevWidget=null}merge(t,n,r,i,a,s){return r&&(!(r instanceof tp)||!this.widget.compare(r.widget)||t>0&&a<=0||n0}}class sL extends Md{constructor(t){super(),this.height=t}toDOM(){let t=document.createElement("div");return t.className="cm-gap",this.updateDOM(t),t}eq(t){return t.height==this.height}updateDOM(t){return t.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}class g2{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 tp&&t.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new za),this.atCursorPos=!0),this.curLine}flushBuffer(t=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(CA(new Mv(-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 tp)&&this.getLine()}buildText(t,n,r){for(;t>0;){if(this.textOff==this.text.length){let{value:a,lineBreak:s,done:o}=this.cursor.next(this.skip);if(this.skip=0,o)throw new Error("Ran out of text content when drawing inline views");if(s){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,t--;continue}else this.text=a,this.textOff=0}let i=Math.min(this.text.length-this.textOff,t,512);this.flushBuffer(n.slice(n.length-r)),this.getLine().append(CA(new Rd(this.text.slice(this.textOff,this.textOff+i)),n),r),this.atCursorPos=!0,this.textOff+=i,t-=i,r=0}}span(t,n,r,i){this.buildText(n-t,r,i),this.pos=n,this.openStart<0&&(this.openStart=i)}point(t,n,r,i,a,s){if(this.disallowBlockEffectsFor[s]&&r instanceof gm){if(r.block)throw new RangeError("Block decorations may not be specified via plugins");if(n>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let o=n-t;if(r instanceof gm)if(r.block)r.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new tp(r.widget||$v.block,o,r));else{let l=H0.create(r.widget||$v.inline,o,o?0:r.startSide),u=this.atCursorPos&&!l.isEditable&&a<=i.length&&(t0),d=!l.isEditable&&(ti.length||r.startSide<=0),f=this.getLine();this.pendingBuffer==2&&!u&&!l.isEditable&&(this.pendingBuffer=0),this.flushBuffer(i),u&&(f.append(CA(new Mv(1),i),a),a=i.length+Math.max(0,a-i.length)),f.append(CA(l,i),a),this.atCursorPos=d,this.pendingBuffer=d?ti.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=i.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(r);o&&(this.textOff+o<=this.text.length?this.textOff+=o:(this.skip+=o-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=n),this.openStart<0&&(this.openStart=a)}static build(t,n,r,i,a){let s=new g2(t,n,r,a);return s.openEnd=Cr.spans(i,n,r,s),s.openStart<0&&(s.openStart=s.openEnd),s.finish(s.openEnd),s}}function CA(e,t){for(let n of t)e=new mp(n,[e],e.length);return e}class $v extends Md{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}}$v.inline=new $v("span");$v.block=new $v("div");var zi=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(zi||(zi={}));const w1=zi.LTR,iB=zi.RTL;function nde(e){let t=[];for(let n=0;n=n){if(o.level==r)return s;(a<0||(i!=0?i<0?o.fromn:t[a].level>o.level))&&(a=s)}}if(a<0)throw new RangeError("Index out of range");return a}}function ide(e,t){if(e.length!=t.length)return!1;for(let n=0;n=0;S-=3)if(tf[S+1]==-g){let T=tf[S+2],w=T&2?i:T&4?T&1?a:i:0;w&&(Si[f]=Si[tf[S]]=w),o=S;break}}else{if(tf.length==189)break;tf[o++]=f,tf[o++]=p,tf[o++]=l}else if((O=Si[f])==2||O==1){let S=O==i;l=S?0:1;for(let T=o-3;T>=0;T-=3){let w=tf[T+2];if(w&2)break;if(S)tf[T+2]|=2;else{if(w&4)break;tf[T+2]|=4}}}}}function wHe(e,t,n,r){for(let i=0,a=r;i<=n.length;i++){let s=i?n[i-1].to:e,o=il;)O==T&&(O=n[--S].from,T=S?n[S-1].to:e),Si[--O]=g;l=d}else a=u,l++}}}function lL(e,t,n,r,i,a,s){let o=r%2?2:1;if(r%2==i%2)for(let l=t,u=0;ll&&s.push(new Q0(l,S.from,g));let T=S.direction==w1!=!(g%2);uL(e,T?r+1:r,i,S.inner,S.from,S.to,s),l=S.to}O=S.to}else{if(O==n||(d?Si[O]!=o:Si[O]==o))break;O++}p?lL(e,l,O,r+1,i,p,s):lt;){let d=!0,f=!1;if(!u||l>a[u-1].to){let S=Si[l-1];S!=o&&(d=!1,f=S==16)}let p=!d&&o==1?[]:null,g=d?r:r+1,O=l;e:for(;;)if(u&&O==a[u-1].to){if(f)break e;let S=a[--u];if(!d)for(let T=S.from,w=u;;){if(T==t)break e;if(w&&a[w-1].to==T)T=a[--w].from;else{if(Si[T-1]==o)break e;break}}if(p)p.push(S);else{S.toSi.length;)Si[Si.length]=256;let r=[],i=t==w1?0:1;return uL(e,i,i,n,0,e.length,r),r}function ade(e){return[new Q0(0,e,0)]}let sde="";function xHe(e,t,n,r,i){var a;let s=r.head-e.from,o=Q0.find(t,s,(a=r.bidiLevel)!==null&&a!==void 0?a:-1,r.assoc),l=t[o],u=l.side(i,n);if(s==u){let p=o+=i?1:-1;if(p<0||p>=t.length)return null;l=t[o=p],s=l.side(!i,n),u=l.side(i,n)}let d=Bs(e.text,s,l.forward(i,n));(dl.to)&&(d=u),sde=e.text.slice(Math.min(s,d),Math.max(s,d));let f=o==(i?t.length-1:0)?null:t[o+(i?1:-1)];return f&&d==u&&f.level+(i?0:1)e.some(t=>t)}),pde=an.define({combine:e=>e.some(t=>t)}),mde=an.define();class Gy{constructor(t,n="nearest",r="nearest",i=5,a=5,s=!1){this.range=t,this.y=n,this.x=r,this.yMargin=i,this.xMargin=a,this.isSnapshot=s}map(t){return t.empty?this:new Gy(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 Gy(ht.cursor(t.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const RA=Zn.define({map:(e,t)=>e.map(t)}),gde=Zn.define();function xl(e,t,n){let r=e.facet(cde);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 x0=an.define({combine:e=>e.length?e[0]:!0});let AHe=0;const ME=an.define();class ha{constructor(t,n,r,i,a){this.id=t,this.create=n,this.domEventHandlers=r,this.domEventObservers=i,this.extension=a(this)}static define(t,n){const{eventHandlers:r,eventObservers:i,provide:a,decorations:s}=n||{};return new ha(AHe++,t,r,i,o=>{let l=[ME.of(o)];return s&&l.push(kw.of(u=>{let d=u.plugin(o);return d?s(d):gn.none})),a&&l.push(a(o)),l})}static fromClass(t,n){return ha.define(r=>new t(r),n)}}class hD{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(xl(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){xl(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){xl(t.state,r,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const bde=an.define(),oB=an.define(),kw=an.define(),yde=an.define(),lB=an.define(),vde=an.define();function EX(e,t){let n=e.state.facet(vde);if(!n.length)return n;let r=n.map(a=>a instanceof Function?a(e):a),i=[];return Cr.spans(r,t.from,t.to,{point(){},span(a,s,o,l){let u=a-t.from,d=s-t.from,f=i;for(let p=o.length-1;p>=0;p--,l--){let g=o[p].spec.bidiIsolate,O;if(g==null&&(g=kHe(t.text,u,d)),l>0&&f.length&&(O=f[f.length-1]).to==u&&O.direction==g)O.to=d,f=O.inner;else{let S={from:u,to:d,direction:g,inner:[]};f.push(S),f=S.inner}}}}),i}const Ode=an.define();function Sde(e){let t=0,n=0,r=0,i=0;for(let a of e.state.facet(Ode)){let s=a(e);s&&(s.left!=null&&(t=Math.max(t,s.left)),s.right!=null&&(n=Math.max(n,s.right)),s.top!=null&&(r=Math.max(r,s.top)),s.bottom!=null&&(i=Math.max(i,s.bottom)))}return{left:t,right:n,top:r,bottom:i}}const $E=an.define();class Sc{constructor(t,n,r,i){this.fromA=t,this.toA=n,this.fromB=r,this.toB=i}join(t){return new Sc(Math.min(this.fromA,t.fromA),Math.max(this.toA,t.toA),Math.min(this.fromB,t.fromB),Math.max(this.toB,t.toB))}addToSet(t){let n=t.length,r=this;for(;n>0;n--){let i=t[n-1];if(!(i.fromA>r.toA)){if(i.toAd)break;a+=2}if(!l)return r;new Sc(l.fromA,l.toA,l.fromB,l.toB).addToSet(r),s=l.toA,o=l.toB}}}class WC{constructor(t,n,r){this.view=t,this.state=n,this.transactions=r,this.flags=0,this.startState=t.state,this.changes=ns.empty(this.startState.doc.length);for(let a of r)this.changes=this.changes.compose(a.changes);let i=[];this.changes.iterChangedRanges((a,s,o,l)=>i.push(new Sc(a,s,o,l))),this.changedRanges=i}static create(t,n,r){return new WC(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 wX extends wi{get length(){return this.view.state.doc.length}constructor(t){super(),this.view=t,this.decorations=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.editContextFormatting=gn.none,this.lastCompositionAfterCursor=!1,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 za],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new Sc(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:d})=>dthis.minWidthTo)?(this.minWidthFrom=t.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=t.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(t);let i=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(!((n=this.domChanged)===null||n===void 0)&&n.newSel?i=this.domChanged.newSel.head:!PHe(t.changes,this.hasComposition)&&!t.selectionSet&&(i=t.state.selection.main.head));let a=i>-1?CHe(this.view,t.changes,i):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:u,to:d}=this.hasComposition;r=new Sc(u,d,t.changes.mapPos(u,-1),t.changes.mapPos(d,1)).addToSet(r.slice())}this.hasComposition=a?{from:a.range.fromB,to:a.range.toB}:null,(cn.ie||cn.chrome)&&!a&&t&&t.state.doc.lines!=t.startState.doc.lines&&(this.forceSelection=!0);let s=this.decorations,o=this.updateDeco(),l=NHe(s,o,t.changes);return r=Sc.extendWithRanges(r,l),!(this.flags&7)&&r.length==0?!1:(this.updateInner(r,t.startState.doc.length,a),t.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(t,n,r){this.view.viewState.mustMeasureContent=!0,this.updateChildren(t,n,r);let{observer:i}=this.view;i.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let s=cn.chrome||cn.ios?{node:i.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,s),this.flags&=-8,s&&(s.written||i.selectionRange.focusNode!=s.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(s=>s.flags&=-9);let a=[];if(this.view.viewport.from||this.view.viewport.to=0?i[s]:null;if(!o)break;let{fromA:l,toA:u,fromB:d,toB:f}=o,p,g,O,S;if(r&&r.range.fromBd){let _=g2.build(this.view.state.doc,d,r.range.fromB,this.decorations,this.dynamicDecorationMap),R=g2.build(this.view.state.doc,r.range.toB,f,this.decorations,this.dynamicDecorationMap);g=_.breakAtStart,O=_.openStart,S=R.openEnd;let N=this.compositionView(r);R.breakAtStart?N.breakAfter=1:R.content.length&&N.merge(N.length,N.length,R.content[0],!1,R.openStart,0)&&(N.breakAfter=R.content[0].breakAfter,R.content.shift()),_.content.length&&N.merge(0,0,_.content[_.content.length-1],!0,0,_.openEnd)&&_.content.pop(),p=_.content.concat(N).concat(R.content)}else({content:p,breakAtStart:g,openStart:O,openEnd:S}=g2.build(this.view.state.doc,d,f,this.decorations,this.dynamicDecorationMap));let{i:T,off:w}=a.findPos(u,1),{i:x,off:k}=a.findPos(l,-1);Gce(this,x,k,T,w,p,g,O,S)}r&&this.fixCompositionDOM(r)}updateEditContextFormatting(t){this.editContextFormatting=this.editContextFormatting.map(t.changes);for(let n of t.transactions)for(let r of n.effects)r.is(gde)&&(this.editContextFormatting=r.value)}compositionView(t){let n=new Rd(t.text.nodeValue);n.flags|=8;for(let{deco:i}of t.marks)n=new mp(i,[n],n.length);let r=new za;return r.append(n,0),r}fixCompositionDOM(t){let n=(a,s)=>{s.flags|=8|(s.children.some(l=>l.flags&7)?1:0),this.markedForComposition.add(s);let o=wi.get(a);o&&o!=s&&(o.dom=null),s.setDOM(a)},r=this.childPos(t.range.fromB,1),i=this.children[r.i];n(t.line,i);for(let a=t.marks.length-1;a>=-1;a--)r=i.childPos(r.off,1),i=i.children[r.i],n(a>=0?t.marks[a].node:t.text,i)}updateSelection(t=!1,n=!1){(t||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let r=this.view.root.activeElement,i=r==this.dom,a=!i&&a_(this.dom,this.view.observer.selectionRange)&&!(r&&this.dom.contains(r));if(!(i||n||a))return;let s=this.forceSelection;this.forceSelection=!1;let o=this.view.state.selection.main,l=this.moveToLine(this.domAtPos(o.anchor)),u=o.empty?l:this.moveToLine(this.domAtPos(o.head));if(cn.gecko&&o.empty&&!this.hasComposition&&_He(l)){let f=document.createTextNode("");this.view.observer.ignore(()=>l.node.insertBefore(f,l.node.childNodes[l.offset]||null)),l=u=new mo(f,0),s=!0}let d=this.view.observer.selectionRange;(s||!d.focusNode||(!m2(l.node,l.offset,d.anchorNode,d.anchorOffset)||!m2(u.node,u.offset,d.focusNode,d.focusOffset))&&!this.suppressWidgetCursorChange(d,o))&&(this.view.observer.ignore(()=>{cn.android&&cn.chrome&&this.dom.contains(d.focusNode)&&DHe(d.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let f=Tw(this.view.root);if(f)if(o.empty){if(cn.gecko){let p=RHe(l.node,l.offset);if(p&&p!=3){let g=(p==1?Wce:Vce)(l.node,l.offset);g&&(l=new mo(g.node,g.offset))}}f.collapse(l.node,l.offset),o.bidiLevel!=null&&f.caretBidiLevel!==void 0&&(f.caretBidiLevel=o.bidiLevel)}else if(f.extend){f.collapse(l.node,l.offset);try{f.extend(u.node,u.offset)}catch{}}else{let p=document.createRange();o.anchor>o.head&&([l,u]=[u,l]),p.setEnd(u.node,u.offset),p.setStart(l.node,l.offset),f.removeAllRanges(),f.addRange(p)}a&&this.view.root.activeElement==this.dom&&(this.dom.blur(),r&&r.focus())}),this.view.observer.setSelectionRange(l,u)),this.impreciseAnchor=l.precise?null:new mo(d.anchorNode,d.anchorOffset),this.impreciseHead=u.precise?null:new mo(d.focusNode,d.focusOffset)}suppressWidgetCursorChange(t,n){return this.hasComposition&&n.empty&&m2(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=Tw(t.root),{anchorNode:i,anchorOffset:a}=t.observer.selectionRange;if(!r||!n.empty||!n.assoc||!r.modify)return;let s=za.find(this,n.head);if(!s)return;let o=s.posAtStart;if(n.head==o||n.head==o+s.length)return;let l=this.coordsAt(n.head,-1),u=this.coordsAt(n.head,1);if(!l||!u||l.bottom>u.top)return;let d=this.domAtPos(n.head+n.assoc);r.collapse(d.node,d.offset),r.modify("move",n.assoc<0?"forward":"backward","lineboundary"),t.observer.readSelectionRange();let f=t.observer.selectionRange;t.docView.posFromDOM(f.anchorNode,f.anchorOffset)!=n.from&&r.collapse(i,a)}moveToLine(t){let n=this.dom,r;if(t.node!=n)return t;for(let i=t.offset;!r&&i=0;i--){let a=wi.get(n.childNodes[i]);a instanceof za&&(r=a.domAtPos(a.length))}return r?new mo(r.node,r.offset,!0):t}nearest(t){for(let n=t;n;){let r=wi.get(n);if(r&&r.rootView==this)return r;n=n.parentNode}return null}posFromDOM(t,n){let r=this.nearest(t);if(!r)throw new RangeError("Trying to find position for a DOM position outside of the document");return r.localPosFromDOM(t,n)+r.posAtStart}domAtPos(t){let{i:n,off:r}=this.childCursor().findPos(t,-1);for(;n=0;s--){let o=this.children[s],l=a-o.breakAfter,u=l-o.length;if(lt||o.covers(1))&&(!r||o instanceof za&&!(r instanceof za&&n>=0)))r=o,i=u;else if(r&&u==t&&l==t&&o instanceof tp&&Math.abs(n)<2){if(o.deco.startSide<0)break;s&&(r=null)}a=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 za))return null;for(;i.children.length;){let{i:o,off:l}=i.childPos(r,1);for(;;o++){if(o==i.children.length)return null;if((i=i.children[o]).length)break}r=l}if(!(i instanceof Rd))return null;let a=Bs(i.text,r);if(a==r)return null;let s=E1(i.dom,r,a).getClientRects();for(let o=0;oMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,o=-1,l=this.view.textDirection==zi.LTR;for(let u=0,d=0;di)break;if(u>=r){let g=f.dom.getBoundingClientRect();if(n.push(g.height),s){let O=f.dom.lastChild,S=O?xw(O):[];if(S.length){let T=S[S.length-1],w=l?T.right-g.left:g.right-T.left;w>o&&(o=w,this.minWidth=a,this.minWidthFrom=u,this.minWidthTo=p)}}}u=p+f.breakAfter}return n}textDirectionAt(t){let{i:n}=this.childPos(t,1);return getComputedStyle(this.children[n].dom).direction=="rtl"?zi.RTL:zi.LTR}measureTextSize(){for(let a of this.children)if(a instanceof za){let s=a.measureTextSize();if(s)return s}let t=document.createElement("div"),n,r,i;return t.className="cm-line",t.style.width="99999px",t.style.position="absolute",t.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(t);let a=xw(t.firstChild)[0];n=t.getBoundingClientRect().height,r=a?a.width/27:7,i=a?a.height:n,t.remove()}),{lineHeight:n,charWidth:r,textHeight:i}}childCursor(t=this.length){let n=this.children.length;return n&&(t-=this.children[--n].length),new qce(this.children,t,n)}computeBlockGapDeco(){let t=[],n=this.view.viewState;for(let r=0,i=0;;i++){let a=i==n.viewports.length?null:n.viewports[i],s=a?a.from-1:this.length;if(s>r){let o=(n.lineBlockAt(s).bottom-n.lineBlockAt(r).top)/this.view.scaleY;t.push(gn.replace({widget:new sL(o),block:!0,inclusive:!0,isBlockGap:!0}).range(r,s))}if(!a)break;r=a.to+1}return gn.set(t)}updateDeco(){let t=1,n=this.view.state.facet(kw).map(a=>(this.dynamicDecorationMap[t++]=typeof a=="function")?a(this.view):a),r=!1,i=this.view.state.facet(yde).map((a,s)=>{let o=typeof a=="function";return o&&(r=!0),o?a(this.view):a});for(i.length&&(this.dynamicDecorationMap[t++]=r,n.push(Cr.join(i))),this.decorations=[this.editContextFormatting,...n,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];tn.anchor?-1:1),i;if(!r)return;!n.empty&&(i=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(r={left:Math.min(r.left,i.left),top:Math.min(r.top,i.top),right:Math.max(r.right,i.right),bottom:Math.max(r.bottom,i.bottom)});let a=Sde(this.view),s={left:r.left-a.left,top:r.top-a.top,right:r.right+a.right,bottom:r.bottom+a.bottom},{offsetWidth:o,offsetHeight:l}=this.view.scrollDOM;lHe(this.view.scrollDOM,s,n.head{rt.from&&(n=!0)}),n}function LHe(e,t,n=1){let r=e.charCategorizer(t),i=e.doc.lineAt(t),a=t-i.from;if(i.length==0)return ht.cursor(t);a==0?n=1:a==i.length&&(n=-1);let s=a,o=a;n<0?s=Bs(i.text,a,!1):o=Bs(i.text,a);let l=r(i.text.slice(s,o));for(;s>0;){let u=Bs(i.text,s,!1);if(r(i.text.slice(u,s))!=l)break;s=u}for(;oe?t.left-e:Math.max(0,e-t.right)}function $He(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function pD(e,t){return e.topt.top+1}function TX(e,t){return te.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function dL(e,t,n){let r,i,a,s,o=!1,l,u,d,f;for(let O=e.firstChild;O;O=O.nextSibling){let S=xw(O);for(let T=0;Tk||s==k&&a>x){r=O,i=w,a=x,s=k;let _=k?n0?T0)}x==0?n>w.bottom&&(!d||d.bottomw.top)&&(u=O,f=w):d&&pD(d,w)?d=xX(d,w.bottom):f&&pD(f,w)&&(f=TX(f,w.top))}}if(d&&d.bottom>=n?(r=l,i=d):f&&f.top<=n&&(r=u,i=f),!r)return{node:e,offset:0};let p=Math.max(i.left,Math.min(i.right,t));if(r.nodeType==3)return kX(r,p,n);if(o&&r.contentEditable!="false")return dL(r,p,n);let g=Array.prototype.indexOf.call(e.childNodes,r)+(t>=(i.left+i.right)/2?1:0);return{node:e,offset:g}}function kX(e,t,n){let r=e.nodeValue.length,i=-1,a=1e9,s=0;for(let o=0;on?d.top-n:n-d.bottom)-1;if(d.left-1<=t&&d.right+1>=t&&f=(d.left+d.right)/2,g=p;if((cn.chrome||cn.gecko)&&E1(e,o).getBoundingClientRect().left==d.right&&(g=!p),f<=0)return{node:e,offset:o+(g?1:0)};i=o+(g?1:0),a=f}}}return{node:e,offset:i>-1?i:s>0?e.nodeValue.length:0}}function wde(e,t,n,r=-1){var i,a;let s=e.contentDOM.getBoundingClientRect(),o=s.top+e.viewState.paddingTop,l,{docHeight:u}=e.viewState,{x:d,y:f}=t,p=f-o;if(p<0)return 0;if(p>u)return e.state.doc.length;for(let _=e.viewState.heightOracle.textHeight/2,R=!1;l=e.elementAtHeight(p),l.type!=Go.Text;)for(;p=r>0?l.bottom+_:l.top-_,!(p>=0&&p<=u);){if(R)return n?null:0;R=!0,r=-r}f=o+p;let g=l.from;if(ge.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:n?null:AX(e,s,l,d,f);let O=e.dom.ownerDocument,S=e.root.elementFromPoint?e.root:O,T=S.elementFromPoint(d,f);T&&!e.contentDOM.contains(T)&&(T=null),T||(d=Math.max(s.left+1,Math.min(s.right-1,d)),T=S.elementFromPoint(d,f),T&&!e.contentDOM.contains(T)&&(T=null));let w,x=-1;if(T&&((i=e.docView.nearest(T))===null||i===void 0?void 0:i.isEditable)!=!1){if(O.caretPositionFromPoint){let _=O.caretPositionFromPoint(d,f);_&&({offsetNode:w,offset:x}=_)}else if(O.caretRangeFromPoint){let _=O.caretRangeFromPoint(d,f);_&&({startContainer:w,startOffset:x}=_,(!e.contentDOM.contains(w)||cn.safari&&FHe(w,x,d)||cn.chrome&&BHe(w,x,d))&&(w=void 0))}}if(!w||!e.docView.dom.contains(w)){let _=za.find(e.docView,g);if(!_)return p>l.top+l.height/2?l.to:l.from;({node:w,offset:x}=dL(_.dom,d,f))}let k=e.docView.nearest(w);if(!k)return null;if(k.isWidget&&((a=k.dom)===null||a===void 0?void 0:a.nodeType)==1){let _=k.dom.getBoundingClientRect();return t.y<_.top||t.y<=_.bottom&&t.x<=(_.left+_.right)/2?k.posAtStart:k.posAtEnd}else return k.localPosFromDOM(w,x)+k.posAtStart}function AX(e,t,n,r,i){let a=Math.round((r-t.left)*e.defaultCharacterWidth);if(e.lineWrapping&&n.height>e.defaultLineHeight*1.5){let o=e.viewState.heightOracle.textHeight,l=Math.floor((i-n.top-(e.defaultLineHeight-o)*.5)/o);a+=l*e.viewState.heightOracle.lineLength}let s=e.state.sliceDoc(n.from,n.to);return n.from+Z8(s,a,e.state.tabSize)}function FHe(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 E1(e,r-1,r).getBoundingClientRect().left>n}function BHe(e,t,n){if(t!=0)return!1;for(let i=e;;){let a=i.parentNode;if(!a||a.nodeType!=1||a.firstChild!=i)return!1;if(a.classList.contains("cm-line"))break;i=a}let r=e.nodeType==1?e.getBoundingClientRect():E1(e,0,Math.max(e.nodeValue.length,1)).getBoundingClientRect();return n-r.left>5}function fL(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==Go.Text))return r}return n}function UHe(e,t,n,r){let i=fL(e,t.head),a=!r||i.type!=Go.Text||!(e.lineWrapping||i.widgetLineBreaks)?null:e.coordsAtPos(t.assoc<0&&t.head>i.from?t.head-1:t.head);if(a){let s=e.dom.getBoundingClientRect(),o=e.textDirectionAt(i.from),l=e.posAtCoords({x:n==(o==zi.LTR)?s.right-1:s.left+1,y:(a.top+a.bottom)/2});if(l!=null)return ht.cursor(l,n?-1:1)}return ht.cursor(n?i.to:i.from,n?-1:1)}function _X(e,t,n,r){let i=e.state.doc.lineAt(t.head),a=e.bidiSpans(i),s=e.textDirectionAt(i.from);for(let o=t,l=null;;){let u=xHe(i,a,s,o,n),d=sde;if(!u){if(i.number==(n?e.state.doc.lines:1))return o;d=` -`,i=e.state.doc.line(i.number+(n?1:-1)),a=e.bidiSpans(i),u=e.visualLineSide(i,!n)}if(l){if(!l(d))return o}else{if(!r)return u;l=r(d)}o=u}}function zHe(e,t,n){let r=e.state.charCategorizer(t),i=r(n);return a=>{let s=r(a);return i==ea.Space&&(i=s),i==s}}function jHe(e,t,n,r){let i=t.head,a=n?1:-1;if(i==(n?e.state.doc.length:0))return ht.cursor(i,t.assoc);let s=t.goalColumn,o,l=e.contentDOM.getBoundingClientRect(),u=e.coordsAtPos(i,t.assoc||-1),d=e.documentTop;if(u)s==null&&(s=u.left-l.left),o=a<0?u.top:u.bottom;else{let g=e.viewState.lineBlockAt(i);s==null&&(s=Math.min(l.right-l.left,e.defaultCharacterWidth*(i-g.from))),o=(a<0?g.top:g.bottom)+d}let f=l.left+s,p=r??e.viewState.heightOracle.textHeight>>1;for(let g=0;;g+=10){let O=o+(p+g)*a,S=wde(e,{x:f,y:O},!1,a);if(Ol.bottom||(a<0?Si)){let T=e.docView.coordsForChar(S),w=!T||O{if(t>a&&ti(e)),n.from,t.head>n.from?-1:1);return r==n.from?n:ht.cursor(r,ra)&&this.lineBreak(),i=s}return this.findPointBefore(r,n),this}readTextNode(t){let n=t.nodeValue;for(let r of this.points)r.node==t&&(r.pos=this.text.length+Math.min(r.offset,n.length));for(let r=0,i=this.lineSeparator?null:/\r\n?|\n/g;;){let a=-1,s=1,o;if(this.lineSeparator?(a=n.indexOf(this.lineSeparator,r),s=this.lineSeparator.length):(o=i.exec(n))&&(a=o.index,s=o[0].length),this.append(n.slice(r,a<0?n.length:a)),a<0)break;if(this.lineBreak(),s>1)for(let l of this.points)l.node==t&&l.pos>this.text.length&&(l.pos-=s-1);r=a+s}}readNode(t){if(t.cmIgnore)return;let n=wi.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+(QHe(t,r.node,r.offset)?n:0))}}function QHe(e,t,n){for(;;){if(!t||n-1;let{impreciseHead:a,impreciseAnchor:s}=t.docView;if(t.state.readOnly&&n>-1)this.newSel=null;else if(n>-1&&(this.bounds=t.docView.domBoundsAround(n,r,0))){let o=a||s?[]:GHe(t),l=new HHe(o,t.state);l.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=l.text,this.newSel=YHe(o,this.bounds.from)}else{let o=t.observer.selectionRange,l=a&&a.node==o.focusNode&&a.offset==o.focusOffset||!J8(t.contentDOM,o.focusNode)?t.state.selection.main.head:t.docView.posFromDOM(o.focusNode,o.focusOffset),u=s&&s.node==o.anchorNode&&s.offset==o.anchorOffset||!J8(t.contentDOM,o.anchorNode)?t.state.selection.main.anchor:t.docView.posFromDOM(o.anchorNode,o.anchorOffset),d=t.viewport;if((cn.ios||cn.chrome)&&t.state.selection.main.empty&&l!=u&&(d.from>0||d.toDate.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:s,to:o}=t.bounds,l=i.from,u=null;(a===8||cn.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))}:(cn.mac||cn.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=ht.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:vr.of([" "])}):cn.chrome&&n&&n.from==n.to&&n.from==i.head&&n.insert.toString()==` - `&&e.lineWrapping&&(r&&(r=ht.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:vr.of([" "])}),n)return uB(e,n,r,a);if(r&&!r.main.eq(i)){let s=!1,o="select";return e.inputState.lastSelectionTime>Date.now()-50&&(e.inputState.lastSelectionOrigin=="select"&&(s=!0),o=e.inputState.lastSelectionOrigin),e.dispatch({selection:r,scrollIntoView:s,userEvent:o}),!0}else return!1}function uB(e,t,n,r=-1){if(cn.ios&&e.inputState.flushIOSKey(t))return!0;let i=e.state.selection.main;if(cn.android&&(t.to==i.to&&(t.from==i.from||t.from==i.from-1&&e.state.sliceDoc(t.from,i.from)==" ")&&t.insert.length==1&&t.insert.lines==2&&qy(e.contentDOM,"Enter",13)||(t.from==i.from-1&&t.to==i.to&&t.insert.length==0||r==8&&t.insert.lengthi.head)&&qy(e.contentDOM,"Backspace",8)||t.from==i.from&&t.to==i.to+1&&t.insert.length==0&&qy(e.contentDOM,"Delete",46)))return!0;let a=t.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let s,o=()=>s||(s=VHe(e,t,n));return e.state.facet(dde).some(l=>l(e,t.from,t.to,a,o))||e.dispatch(o()),!0}function VHe(e,t,n){let r,i=e.state,a=i.selection.main;if(t.from>=a.from&&t.to<=a.to&&t.to-t.from>=(a.to-a.from)/3&&(!n||n.main.empty&&n.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let o=a.fromt.to?i.sliceDoc(t.to,a.to):"";r=i.replaceSelection(e.state.toText(o+t.insert.sliceString(0,void 0,e.state.lineBreak)+l))}else{let o=i.changes(t),l=n&&n.main.to<=o.newLength?n.main:void 0;if(i.selection.ranges.length>1&&e.inputState.composing>=0&&t.to<=a.to&&t.to>=a.to-10){let u=e.state.sliceDoc(t.from,t.to),d,f=n&&Ede(e,n.main.head);if(f){let O=t.insert.length-(t.to-t.from);d={from:f.from,to:f.to-O}}else d=e.state.doc.lineAt(a.head);let p=a.to-t.to,g=a.to-a.from;r=i.changeByRange(O=>{if(O.from==a.from&&O.to==a.to)return{changes:o,range:l||O.map(o)};let S=O.to-p,T=S-u.length;if(O.to-O.from!=g||e.state.sliceDoc(T,S)!=u||O.to>=d.from&&O.from<=d.to)return{range:O};let w=i.changes({from:T,to:S,insert:t.insert}),x=O.to-a.to;return{changes:w,range:l?ht.range(Math.max(0,l.anchor+x),Math.max(0,l.head+x)):O.map(w)}})}else r={changes:o,selection:l&&i.selection.replaceRange(l)}}let s="input.type";return(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,s+=".compose",e.inputState.compositionFirstChange&&(s+=".start",e.inputState.compositionFirstChange=!1)),i.update(r,{userEvent:s,scrollIntoView:!0})}function qHe(e,t,n,r){let i=Math.min(e.length,t.length),a=0;for(;a0&&o>0&&e.charCodeAt(s-1)==t.charCodeAt(o-1);)s--,o--;if(r=="end"){let l=Math.max(0,a-Math.min(s,o));n-=s+l-a}if(s=s?a-n:0;a-=l,o=a+(o-s),s=a}else if(o=o?a-n:0;a-=l,s=a+(s-o),o=a}return{from:a,toA:s,toB:o}}function GHe(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:a}=e.observer.selectionRange;return n&&(t.push(new CX(n,r)),(i!=n||a!=r)&&t.push(new CX(i,a))),t}function YHe(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?ht.single(n+t,r+t):null}class ZHe{setSelectionOrigin(t){this.lastSelectionOrigin=t,this.lastSelectionTime=Date.now()}constructor(t){this.view=t,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=t.hasFocus,cn.safari&&t.contentDOM.addEventListener("input",()=>null),cn.gecko&&fQe(t.contentDOM.ownerDocument)}handleEvent(t){!iQe(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=XHe(t),r=this.handlers,i=this.view.contentDOM;for(let a in n)if(a!="scroll"){let s=!n[a].handlers.length,o=r[a];o&&s!=!o.handlers.length&&(i.removeEventListener(a,this.handleEvent),o=null),o||i.addEventListener(a,this.handleEvent,{passive:s})}for(let a in r)a!="scroll"&&!n[a]&&i.removeEventListener(a,this.handleEvent);this.handlers=n}keydown(t){if(this.lastKeyCode=t.keyCode,this.lastKeyTime=Date.now(),t.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&t.keyCode!=27&&kde.indexOf(t.keyCode)<0&&(this.tabFocusMode=-1),cn.android&&cn.chrome&&!t.synthetic&&(t.keyCode==13||t.keyCode==8))return this.view.observer.delayAndroidKey(t.key,t.keyCode),!0;let n;return cn.ios&&!t.synthetic&&!t.altKey&&!t.metaKey&&((n=xde.find(r=>r.keyCode==t.keyCode))&&!t.ctrlKey||KHe.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(t){let n=this.pendingIOSKey;return!n||n.key=="Enter"&&t&&t.from0?!0:cn.safari&&!cn.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.view.observer.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 RX(e,t){return(n,r)=>{try{return t.call(e,r,n)}catch(i){xl(n.state,i)}}}function XHe(e){let t=Object.create(null);function n(r){return t[r]||(t[r]={observers:[],handlers:[]})}for(let r of e){let i=r.spec;if(i&&i.domEventHandlers)for(let a in i.domEventHandlers){let s=i.domEventHandlers[a];s&&n(a).handlers.push(RX(r.value,s))}if(i&&i.domEventObservers)for(let a in i.domEventObservers){let s=i.domEventObservers[a];s&&n(a).observers.push(RX(r.value,s))}}for(let r in Id)n(r).handlers.push(Id[r]);for(let r in Cc)n(r).observers.push(Cc[r]);return t}const xde=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],KHe="dthko",kde=[16,17,18,20,91,92,224,225],IA=6;function NA(e){return Math.max(0,e)*.7+8}function JHe(e,t){return Math.max(Math.abs(e.clientX-t.clientX),Math.abs(e.clientY-t.clientY))}class eQe{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.scrollParents=uHe(t.contentDOM),this.atoms=t.state.facet(lB).map(s=>s(t));let a=t.contentDOM.ownerDocument;a.addEventListener("mousemove",this.move=this.move.bind(this)),a.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=n.shiftKey,this.multiple=t.state.facet(Dr.allowMultipleSelections)&&tQe(t,n),this.dragging=rQe(t,n)&&Cde(n)==1?null:!1}start(t){this.dragging===!1&&this.select(t)}move(t){if(t.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&JHe(this.startEvent,t)<10)return;this.select(this.lastEvent=t);let n=0,r=0,i=0,a=0,s=this.view.win.innerWidth,o=this.view.win.innerHeight;this.scrollParents.x&&({left:i,right:s}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:a,bottom:o}=this.scrollParents.y.getBoundingClientRect());let l=Sde(this.view);t.clientX-l.left<=i+IA?n=-NA(i-t.clientX):t.clientX+l.right>=s-IA&&(n=NA(t.clientX-s)),t.clientY-l.top<=a+IA?r=-NA(a-t.clientY):t.clientY+l.bottom>=o-IA&&(r=NA(t.clientY-o)),this.setScrollSpeed(n,r)}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(){let{x:t,y:n}=this.scrollSpeed;t&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=t,t=0),n&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=n,n=0),(t||n)&&this.view.win.scrollBy(t,n),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(t){let n=null;for(let r=0;rn.isUserEvent("input.type"))?this.destroy():this.style.update(t)&&setTimeout(()=>this.select(this.lastEvent),20)}}function tQe(e,t){let n=e.state.facet(ode);return n.length?n[0](t):cn.mac?t.metaKey:t.ctrlKey}function nQe(e,t){let n=e.state.facet(lde);return n.length?n[0](t):cn.mac?!t.altKey:!t.ctrlKey}function rQe(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let r=Tw(e.root);if(!r||r.rangeCount==0)return!0;let i=r.getRangeAt(0).getClientRects();for(let a=0;a=t.clientX&&s.top<=t.clientY&&s.bottom>=t.clientY)return!0}return!1}function iQe(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=wi.get(n))&&r.ignoreEvent(t))return!1;return!0}const Id=Object.create(null),Cc=Object.create(null),Ade=cn.ie&&cn.ie_version<15||cn.ios&&cn.webkit_version<604;function aQe(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(),_de(e,n.value)},50)}function DR(e,t,n){for(let r of e.facet(t))n=r(n,e);return n}function _de(e,t){t=DR(e.state,aB,t);let{state:n}=e,r,i=1,a=n.toText(t),s=a.lines==n.selection.ranges.length;if(hL!=null&&n.selection.ranges.every(l=>l.empty)&&hL==a.toString()){let l=-1;r=n.changeByRange(u=>{let d=n.doc.lineAt(u.from);if(d.from==l)return{range:u};l=d.from;let f=n.toText((s?a.line(i++).text:t)+n.lineBreak);return{changes:{from:d.from,insert:f},range:ht.cursor(u.from+f.length)}})}else s?r=n.changeByRange(l=>{let u=a.line(i++);return{changes:{from:l.from,to:l.to,insert:u.text},range:ht.cursor(l.from+u.length)}}):r=n.replaceSelection(a);e.dispatch(r,{userEvent:"input.paste",scrollIntoView:!0})}Cc.scroll=e=>{e.inputState.lastScrollTop=e.scrollDOM.scrollTop,e.inputState.lastScrollLeft=e.scrollDOM.scrollLeft};Id.keydown=(e,t)=>(e.inputState.setSelectionOrigin("select"),t.keyCode==27&&e.inputState.tabFocusMode!=0&&(e.inputState.tabFocusMode=Date.now()+2e3),!1);Cc.touchstart=(e,t)=>{e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")};Cc.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")};Id.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(ude))if(n=r(e,t),n)break;if(!n&&t.button==0&&(n=lQe(e,t)),n){let r=!e.hasFocus;e.inputState.startMouseSelection(new eQe(e,t,n,r)),r&&e.observer.ignore(()=>{jce(e.contentDOM);let a=e.root.activeElement;a&&!a.contains(e.contentDOM)&&a.blur()});let i=e.inputState.mouseSelection;if(i)return i.start(t),i.dragging===!1}return!1};function IX(e,t,n,r){if(r==1)return ht.cursor(t,n);if(r==2)return LHe(e.state,t,n);{let i=za.find(e.docView,t),a=e.state.doc.lineAt(i?i.posAtEnd:t),s=i?i.posAtStart:a.from,o=i?i.posAtEnd:a.to;return ot>=n.top&&t<=n.bottom&&e>=n.left&&e<=n.right;function sQe(e,t,n,r){let i=za.find(e.docView,t);if(!i)return 1;let a=t-i.posAtStart;if(a==0)return 1;if(a==i.length)return-1;let s=i.coordsAt(a,-1);if(s&&NX(n,r,s))return-1;let o=i.coordsAt(a,1);return o&&NX(n,r,o)?1:s&&s.bottom>=r?-1:1}function DX(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:n,bias:sQe(e,n,t.clientX,t.clientY)}}const oQe=cn.ie&&cn.ie_version<=11;let PX=null,LX=0,MX=0;function Cde(e){if(!oQe)return e.detail;let t=PX,n=MX;return PX=e,MX=Date.now(),LX=!t||n>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(LX+1)%3:1}function lQe(e,t){let n=DX(e,t),r=Cde(t),i=e.state.selection;return{update(a){a.docChanged&&(n.pos=a.changes.mapPos(n.pos),i=i.map(a.changes))},get(a,s,o){let l=DX(e,a),u,d=IX(e,l.pos,l.bias,r);if(n.pos!=l.pos&&!s){let f=IX(e,n.pos,n.bias,r),p=Math.min(f.from,d.from),g=Math.max(f.to,d.to);d=p1&&(u=uQe(i,l.pos))?u:o?i.addRange(d):ht.create([d])}}}function uQe(e,t){for(let n=0;n=t)return ht.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}Id.dragstart=(e,t)=>{let{selection:{main:n}}=e.state;if(t.target.draggable){let i=e.docView.nearest(t.target);if(i&&i.isWidget){let a=i.posAtStart,s=a+i.length;(a>=n.to||s<=n.from)&&(n=ht.range(a,s))}}let{inputState:r}=e;return r.mouseSelection&&(r.mouseSelection.dragging=!0),r.draggedContent=n,t.dataTransfer&&(t.dataTransfer.setData("Text",DR(e.state,sB,e.state.sliceDoc(n.from,n.to))),t.dataTransfer.effectAllowed="copyMove"),!1};Id.dragend=e=>(e.inputState.draggedContent=null,!1);function $X(e,t,n,r){if(n=DR(e.state,aB,n),!n)return;let i=e.posAtCoords({x:t.clientX,y:t.clientY},!1),{draggedContent:a}=e.inputState,s=r&&a&&nQe(e,t)?{from:a.from,to:a.to}:null,o={from:i,insert:n},l=e.state.changes(s?[s,o]:o);e.focus(),e.dispatch({changes:l,selection:{anchor:l.mapPos(i,-1),head:l.mapPos(i,1)},userEvent:s?"move.drop":"input.drop"}),e.inputState.draggedContent=null}Id.drop=(e,t)=>{if(!t.dataTransfer)return!1;if(e.state.readOnly)return!0;let n=t.dataTransfer.files;if(n&&n.length){let r=Array(n.length),i=0,a=()=>{++i==n.length&&$X(e,t,r.filter(s=>s!=null).join(e.state.lineBreak),!1)};for(let s=0;s{/[\x00-\x08\x0e-\x1f]{2}/.test(o.result)||(r[s]=o.result),a()},o.readAsText(n[s])}return!0}else{let r=t.dataTransfer.getData("Text");if(r)return $X(e,t,r,!0),!0}return!1};Id.paste=(e,t)=>{if(e.state.readOnly)return!0;e.observer.flush();let n=Ade?null:t.clipboardData;return n?(_de(e,n.getData("text/plain")||n.getData("text/uri-list")),!0):(aQe(e),!1)};function cQe(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 dQe(e){let t=[],n=[],r=!1;for(let i of e.selection.ranges)i.empty||(t.push(e.sliceDoc(i.from,i.to)),n.push(i));if(!t.length){let i=-1;for(let{from:a}of e.selection.ranges){let s=e.doc.lineAt(a);s.number>i&&(t.push(s.text),n.push({from:s.from,to:Math.min(e.doc.length,s.to+1)})),i=s.number}r=!0}return{text:DR(e,sB,t.join(e.lineBreak)),ranges:n,linewise:r}}let hL=null;Id.copy=Id.cut=(e,t)=>{let{text:n,ranges:r,linewise:i}=dQe(e.state);if(!n&&!i)return!1;hL=i?n:null,t.type=="cut"&&!e.state.readOnly&&e.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"});let a=Ade?null:t.clipboardData;return a?(a.clearData(),a.setData("text/plain",n),!0):(cQe(e,n),!1)};const Rde=Ld.define();function Ide(e,t){let n=[];for(let r of e.facet(fde)){let i=r(e,t);i&&n.push(i)}return n?e.update({effects:n,annotations:Rde.of(!0)}):null}function Nde(e){setTimeout(()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let n=Ide(e.state,t);n?e.dispatch(n):e.update([])}},10)}Cc.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),Nde(e)};Cc.blur=e=>{e.observer.clearSelectionRange(),Nde(e)};Cc.compositionstart=Cc.compositionupdate=e=>{e.observer.editContext||(e.inputState.compositionFirstChange==null&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0))};Cc.compositionend=e=>{e.observer.editContext||(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,cn.chrome&&cn.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then(()=>e.observer.flush()):setTimeout(()=>{e.inputState.composing<0&&e.docView.hasComposition&&e.update([])},50))};Cc.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()};Id.beforeinput=(e,t)=>{var n,r;if(t.inputType=="insertReplacementText"&&e.observer.editContext){let a=(n=t.dataTransfer)===null||n===void 0?void 0:n.getData("text/plain"),s=t.getTargetRanges();if(a&&s.length){let o=s[0],l=e.posAtDOM(o.startContainer,o.startOffset),u=e.posAtDOM(o.endContainer,o.endOffset);return uB(e,{from:l,to:u,insert:e.state.toText(a)},null),!0}}let i;if(cn.chrome&&cn.android&&(i=xde.find(a=>a.inputType==t.inputType))&&(e.observer.delayAndroidKey(i.key,i.keyCode),i.key=="Backspace"||i.key=="Delete")){let a=((r=window.visualViewport)===null||r===void 0?void 0:r.height)||0;setTimeout(()=>{var s;(((s=window.visualViewport)===null||s===void 0?void 0:s.height)||0)>a+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())},100)}return cn.ios&&t.inputType=="deleteContentForward"&&e.observer.flushSoon(),cn.safari&&t.inputType=="insertText"&&e.inputState.composing>=0&&setTimeout(()=>Cc.compositionend(e,t),20),!1};const FX=new Set;function fQe(e){FX.has(e)||(FX.add(e),e.addEventListener("copy",()=>{}),e.addEventListener("cut",()=>{}))}const BX=["pre-wrap","normal","pre-line","break-spaces"];let Fv=!1;function UX(){Fv=!1}class hQe{constructor(t){this.lineWrapping=t,this.doc=vr.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}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 BX.indexOf(t)>-1!=this.lineWrapping}mustRefreshForHeights(t){let n=!1;for(let r=0;r-1,l=Math.round(n)!=Math.round(this.lineHeight)||this.lineWrapping!=o;if(this.lineWrapping=o,this.lineHeight=n,this.charWidth=r,this.textHeight=i,this.lineLength=a,l){this.heightSamples={};for(let u=0;u0}set outdated(t){this.flags=(t?2:0)|this.flags&-3}setHeight(t){this.height!=t&&(Math.abs(this.height-t)>o_&&(Fv=!0),this.height=t)}replace(t,n,r){return Yo.of(r)}decomposeLeft(t,n){n.push(this)}decomposeRight(t,n){n.push(this)}applyChanges(t,n,r,i){let a=this,s=r.doc;for(let o=i.length-1;o>=0;o--){let{fromA:l,toA:u,fromB:d,toB:f}=i[o],p=a.lineAt(l,Bi.ByPosNoHeight,r.setDoc(n),0,0),g=p.to>=u?p:a.lineAt(u,Bi.ByPosNoHeight,r,0,0);for(f+=g.to-u,u=g.to;o>0&&p.from<=i[o-1].toA;)l=i[o-1].fromA,d=i[o-1].fromB,o--,la*2){let o=t[n-1];o.break?t.splice(--n,1,o.left,null,o.right):t.splice(--n,1,o.left,o.right),r+=1+o.break,i-=o.size}else if(a>i*2){let o=t[r];o.break?t.splice(r,1,o.left,null,o.right):t.splice(r,1,o.left,o.right),r+=2+o.break,a-=o.size}else break;else if(i=a&&s(this.blockAt(0,r,i,a))}updateHeight(t,n=0,r=!1,i){return i&&i.from<=n&&i.more&&this.setHeight(i.heights[i.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class lu extends Dde{constructor(t,n){super(t,n,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(t,n,r,i){return new Sf(i,this.length,r,this.height,this.breaks)}replace(t,n,r){let i=r[0];return r.length==1&&(i instanceof lu||i instanceof Ns&&i.flags&4)&&Math.abs(this.length-i.length)<10?(i instanceof Ns?i=new lu(i.length,this.height):i.height=this.height,this.outdated||(i.outdated=!1),i):Yo.of(r)}updateHeight(t,n=0,r=!1,i){return i&&i.from<=n&&i.more?this.setHeight(i.heights[i.index++]):(r||this.outdated)&&this.setHeight(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 Ns extends Yo{constructor(t){super(t,0)}heightMetrics(t,n){let r=t.doc.lineAt(n).number,i=t.doc.lineAt(n+this.length).number,a=i-r+1,s,o=0;if(t.lineWrapping){let l=Math.min(this.height,t.lineHeight*a);s=l/a,this.length>a+1&&(o=(this.height-l)/(this.length-a-1))}else s=this.height/a;return{firstLine:r,lastLine:i,perLine:s,perChar:o}}blockAt(t,n,r,i){let{firstLine:a,lastLine:s,perLine:o,perChar:l}=this.heightMetrics(n,i);if(n.lineWrapping){let u=i+(t0){let a=r[r.length-1];a instanceof Ns?r[r.length-1]=new Ns(a.length+i):r.push(null,new Ns(i-1))}if(t>0){let a=r[0];a instanceof Ns?r[0]=new Ns(t+a.length):r.unshift(new Ns(t-1),null)}return Yo.of(r)}decomposeLeft(t,n){n.push(new Ns(t-1),null)}decomposeRight(t,n){n.push(null,new Ns(this.length-t-1))}updateHeight(t,n=0,r=!1,i){let a=n+this.length;if(i&&i.from<=n+this.length&&i.more){let s=[],o=Math.max(n,i.from),l=-1;for(i.from>n&&s.push(new Ns(i.from-n-1).updateHeight(t,n));o<=a&&i.more;){let d=t.doc.lineAt(o).length;s.length&&s.push(null);let f=i.heights[i.index++];l==-1?l=f:Math.abs(f-l)>=o_&&(l=-2);let p=new lu(d,f);p.outdated=!1,s.push(p),o+=d+1}o<=a&&s.push(null,new Ns(a-o).updateHeight(t,o));let u=Yo.of(s);return(l<0||Math.abs(u.height-this.height)>=o_||Math.abs(l-this.heightMetrics(t,n).perLine)>=o_)&&(Fv=!0),VC(this,u)}else(r||this.outdated)&&(this.setHeight(t.heightForGap(n,n+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class mQe extends Yo{constructor(t,n,r){super(t.length+n+r.length,t.height+r.height,n|(t.outdated||r.outdated?2:0)),this.left=t,this.right=r,this.size=t.size+r.size}get break(){return this.flags&1}blockAt(t,n,r,i){let a=r+this.left.height;return to))return u;let d=n==Bi.ByPosNoHeight?Bi.ByPosNoHeight:Bi.ByPos;return l?u.join(this.right.lineAt(o,d,r,s,o)):this.left.lineAt(o,d,r,i,a).join(u)}forEachLine(t,n,r,i,a,s){let o=i+this.left.height,l=a+this.left.length+this.break;if(this.break)t=l&&this.right.forEachLine(t,n,r,o,l,s);else{let u=this.lineAt(l,Bi.ByPos,r,i,a);t=t&&u.from<=n&&s(u),n>u.to&&this.right.forEachLine(u.to+1,n,r,o,l,s)}}replace(t,n,r){let i=this.left.length+this.break;if(nthis.left.length)return this.balanced(this.left,this.right.replace(t-i,n-i,r));let a=[];t>0&&this.decomposeLeft(t,a);let s=a.length;for(let o of r)a.push(o);if(t>0&&zX(a,s-1),n=r&&n.push(null)),t>r&&this.right.decomposeLeft(t-r,n)}decomposeRight(t,n){let r=this.left.length,i=r+this.break;if(t>=i)return this.right.decomposeRight(t-i,n);t2*n.size||n.size>2*t.size?Yo.of(this.break?[t,null,n]:[t,n]):(this.left=VC(this.left,t),this.right=VC(this.right,n),this.setHeight(t.height+n.height),this.outdated=t.outdated||n.outdated,this.size=t.size+n.size,this.length=t.length+this.break+n.length,this)}updateHeight(t,n=0,r=!1,i){let{left:a,right:s}=this,o=n+a.length+this.break,l=null;return i&&i.from<=n+a.length&&i.more?l=a=a.updateHeight(t,n,r,i):a.updateHeight(t,n,r),i&&i.from<=o+s.length&&i.more?l=s=s.updateHeight(t,o,r,i):s.updateHeight(t,o,r),l?this.balanced(a,s):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function zX(e,t){let n,r;e[t]==null&&(n=e[t-1])instanceof Ns&&(r=e[t+1])instanceof Ns&&e.splice(t-1,3,new Ns(n.length+1+r.length))}const gQe=5;class cB{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 lu?i.length+=r-this.pos:(r>this.pos||!this.isCovered)&&this.nodes.push(new lu(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=gQe)&&this.addLineDeco(i,a,s)}else n>t&&this.span(t,n);this.lineEnd>-1&&this.lineEnd-1)return;let{from:t,to:n}=this.oracle.doc.lineAt(this.pos);this.lineStart=t,this.lineEnd=n,this.writtenTot&&this.nodes.push(new lu(this.pos-t,-1)),this.writtenTo=this.pos}blankContent(t,n){let r=new Ns(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 lu)return t;let n=new lu(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 lu)&&!this.isCovered?this.nodes.push(new lu(0,-1)):(this.writtenTod.clientHeight||d.scrollWidth>d.clientWidth)&&f.overflow!="visible"){let p=d.getBoundingClientRect();a=Math.max(a,p.left),s=Math.min(s,p.right),o=Math.max(o,p.top),l=Math.min(u==e.parentNode?i.innerHeight:l,p.bottom)}u=f.position=="absolute"||f.position=="fixed"?d.offsetParent:d.parentNode}else if(u.nodeType==11)u=u.host;else break;return{left:a-n.left,right:Math.max(a,s)-n.left,top:o-(n.top+t),bottom:Math.max(o,l)-(n.top+t)}}function OQe(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}class gD{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 hQe(n),this.stateDeco=t.facet(kw).filter(r=>typeof r!="function"),this.heightMap=Yo.empty().applyChanges(this.stateDeco,vr.empty,this.heightOracle.setDoc(t.doc),[new Sc(0,0,0,t.doc.length)]);for(let r=0;r<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());r++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=gn.set(this.lineGaps.map(r=>r.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let t=[this.viewport],{main:n}=this.state.selection;for(let r=0;r<=1;r++){let i=r?n.head:n.anchor;if(!t.some(({from:a,to:s})=>i>=a&&i<=s)){let{from:a,to:s}=this.lineBlockAt(i);t.push(new DA(a,s))}}return this.viewports=t.sort((r,i)=>r.from-i.from),this.updateScaler()}updateScaler(){let t=this.scaler;return this.scaler=this.heightMap.height<=7e6?HX:new dB(this.heightOracle,this.heightMap,this.viewports),t.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,t=>{this.viewportLines.push(BE(t,this.scaler))})}update(t,n=null){this.state=t.state;let r=this.stateDeco;this.stateDeco=this.state.facet(kw).filter(d=>typeof d!="function");let i=t.changedRanges,a=Sc.extendWithRanges(i,bQe(r,this.stateDeco,t?t.changes:ns.empty(this.state.doc.length))),s=this.heightMap.height,o=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);UX(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,t.startState.doc,this.heightOracle.setDoc(this.state.doc),a),(this.heightMap.height!=s||Fv)&&(t.flags|=2),o?(this.scrollAnchorPos=t.changes.mapPos(o.from,-1),this.scrollAnchorHeight=o.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let l=a.length?this.mapViewport(this.viewport,t.changes):this.viewport;(n&&(n.range.headl.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,n));let u=l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,t.flags|=this.updateForViewport(),(u||!t.changes.empty||t.flags&2)&&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(pde)&&(this.mustEnforceCursorAssoc=!0)}measure(t){let n=t.contentDOM,r=window.getComputedStyle(n),i=this.heightOracle,a=r.whiteSpace;this.defaultTextDirection=r.direction=="rtl"?zi.RTL:zi.LTR;let s=this.heightOracle.mustRefreshForWrapping(a),o=n.getBoundingClientRect(),l=s||this.mustMeasureContent||this.contentDOMHeight!=o.height;this.contentDOMHeight=o.height,this.mustMeasureContent=!1;let u=0,d=0;if(o.width&&o.height){let{scaleX:_,scaleY:R}=zce(n,o);(_>.005&&Math.abs(this.scaleX-_)>.005||R>.005&&Math.abs(this.scaleY-R)>.005)&&(this.scaleX=_,this.scaleY=R,u|=8,s=l=!0)}let f=(parseInt(r.paddingTop)||0)*this.scaleY,p=(parseInt(r.paddingBottom)||0)*this.scaleY;(this.paddingTop!=f||this.paddingBottom!=p)&&(this.paddingTop=f,this.paddingBottom=p,u|=10),this.editorWidth!=t.scrollDOM.clientWidth&&(i.lineWrapping&&(l=!0),this.editorWidth=t.scrollDOM.clientWidth,u|=8);let g=t.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=g&&(this.scrollAnchorHeight=-1,this.scrollTop=g),this.scrolledToBottom=Qce(t.scrollDOM);let O=(this.printing?OQe:vQe)(n,this.paddingTop),S=O.top-this.pixelViewport.top,T=O.bottom-this.pixelViewport.bottom;this.pixelViewport=O;let w=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(w!=this.inView&&(this.inView=w,w&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;let x=o.width;if((this.contentDOMWidth!=x||this.editorHeight!=t.scrollDOM.clientHeight)&&(this.contentDOMWidth=o.width,this.editorHeight=t.scrollDOM.clientHeight,u|=8),l){let _=t.docView.measureVisibleLineHeights(this.viewport);if(i.mustRefreshForHeights(_)&&(s=!0),s||i.lineWrapping&&Math.abs(x-this.contentDOMWidth)>i.charWidth){let{lineHeight:R,charWidth:N,textHeight:D}=t.docView.measureTextSize();s=R>0&&i.refresh(a,R,N,D,x/N,_),s&&(t.docView.minWidth=0,u|=8)}S>0&&T>0?d=Math.max(S,T):S<0&&T<0&&(d=Math.min(S,T)),UX();for(let R of this.viewports){let N=R.from==this.viewport.from?_:t.docView.measureVisibleLineHeights(R);this.heightMap=(s?Yo.empty().applyChanges(this.stateDeco,vr.empty,this.heightOracle,[new Sc(0,0,0,t.state.doc.length)]):this.heightMap).updateHeight(i,0,s,new pQe(R.from,N))}Fv&&(u|=2)}let k=!this.viewportIsAppropriate(this.viewport,d)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return k&&(u&2&&(u|=this.updateScaler()),this.viewport=this.getViewport(d,this.scrollTarget),u|=this.updateForViewport()),(u&2||k)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(s?[]: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,a=this.heightOracle,{visibleTop:s,visibleBottom:o}=this,l=new DA(i.lineAt(s-r*1e3,Bi.ByHeight,a,0,0).from,i.lineAt(o+(1-r)*1e3,Bi.ByHeight,a,0,0).to);if(n){let{head:u}=n.range;if(ul.to){let d=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),f=i.lineAt(u,Bi.ByPos,a,0,0),p;n.y=="center"?p=(f.top+f.bottom)/2-d/2:n.y=="start"||n.y=="nearest"&&u=o+Math.max(10,Math.min(r,250)))&&i>s-2*1e3&&a>1,s=i<<1;if(this.defaultTextDirection!=zi.LTR&&!r)return[];let o=[],l=(d,f,p,g)=>{if(f-dd&&ww.from>=p.from&&w.to<=p.to&&Math.abs(w.from-d)w.fromx));if(!T){if(fw.from<=f&&w.to>=f)){let w=n.moveToLineBoundary(ht.cursor(f),!1,!0).head;w>d&&(f=w)}T=new gD(d,f,this.gapSize(p,d,f,g))}o.push(T)},u=d=>{if(d.lengthd.from&&l(d.from,g,d,f),On.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let n=[];Cr.spans(t,this.viewport.from,this.viewport.to,{span(i,a){n.push({from:i,to:a})},point(){}},20);let r=n.length!=this.visibleRanges.length||this.visibleRanges.some((i,a)=>i.from!=n[a].from||i.to!=n[a].to);return this.visibleRanges=n,r?4:0}lineBlockAt(t){return t>=this.viewport.from&&t<=this.viewport.to&&this.viewportLines.find(n=>n.from<=t&&n.to>=t)||BE(this.heightMap.lineAt(t,Bi.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(t){return t>=this.viewportLines[0].top&&t<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(n=>n.top<=t&&n.bottom>=t)||BE(this.heightMap.lineAt(this.scaler.fromDOM(t),Bi.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 BE(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 DA{constructor(t,n){this.from=t,this.to=n}}function EQe(e,t,n){let r=[],i=e,a=0;return Cr.spans(n,e,t,{span(){},point(s,o){s>i&&(r.push({from:i,to:s}),a+=s-i),i=o}},20),i=1)return t[t.length-1].to;let r=Math.floor(e*n);for(let i=0;;i++){let{from:a,to:s}=t[i],o=s-a;if(r<=o)return a+r;r-=o}}function LA(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 wQe(e,t){for(let n of e)if(t(n))return n}const HX={toDOM(e){return e},fromDOM(e){return e},scale:1,eq(e){return e==this}};class dB{constructor(t,n,r){let i=0,a=0,s=0;this.viewports=r.map(({from:o,to:l})=>{let u=n.lineAt(o,Bi.ByPos,t,0,0).top,d=n.lineAt(l,Bi.ByPos,t,0,0).bottom;return i+=d-u,{from:o,to:l,top:u,bottom:d,domTop:0,domBottom:0}}),this.scale=(7e6-i)/(n.height-i);for(let o of this.viewports)o.domTop=s+(o.top-a)*this.scale,s=o.domBottom=o.domTop+(o.bottom-o.top),a=o.bottom}toDOM(t){for(let n=0,r=0,i=0;;n++){let a=nn.from==t.viewports[r].from&&n.to==t.viewports[r].to):!1}}function BE(e,t){if(t.scale==1)return e;let n=t.toDOM(e.top),r=t.toDOM(e.bottom);return new Sf(e.from,e.length,n,r-n,Array.isArray(e._content)?e._content.map(i=>BE(i,t)):e._content)}const MA=an.define({combine:e=>e.join(" ")}),pL=an.define({combine:e=>e.indexOf(!0)>-1}),mL=pm.newName(),Pde=pm.newName(),Lde=pm.newName(),Mde={"&light":"."+Pde,"&dark":"."+Lde};function gL(e,t,n){return new pm(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 TQe=gL("."+mL,{"&":{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,overflowAnchor:"none"},".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,zIndex:300},"&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"}},Mde),xQe={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},bD=cn.ie&&cn.ie_version<=11;class kQe{constructor(t){this.view=t,this.active=!1,this.editContext=null,this.selectionRange=new cHe,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.printQuery=null,this.parentCheck=-1,this.dom=t.contentDOM,this.observer=new MutationObserver(n=>{for(let r of n)this.queue.push(r);(cn.ie&&cn.ie_version<=11||cn.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()}),window.EditContext&&t.constructor.EDIT_CONTEXT!==!1&&!(cn.chrome&&cn.chrome_version<126)&&(this.editContext=new _Qe(t),t.state.facet(x0)&&(t.contentDOM.editContext=this.editContext.editContext)),bD&&(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),window.matchMedia&&(this.printQuery=window.matchMedia("print")),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.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(t)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(t){(t.type=="change"||!t.type)&&!t.matches||(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(x0)?r.root.activeElement!=this.dom:!a_(r.dom,i))return;let a=i.anchorNode&&r.docView.nearest(i.anchorNode);if(a&&a.ignoreEvent(t)){n||(this.selectionChanged=!1);return}(cn.ie&&cn.ie_version<=11||cn.android&&cn.chrome)&&!r.state.selection.main.empty&&i.focusNode&&m2(i.focusNode,i.focusOffset,i.anchorNode,i.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:t}=this,n=Tw(t.root);if(!n)return!1;let r=cn.safari&&t.root.nodeType==11&&sHe(this.dom.ownerDocument)==this.dom&&AQe(this.view,n)||n;if(!r||this.selectionRange.eq(r))return!1;let i=a_(this.dom,r);return i&&!this.selectionChanged&&t.inputState.lastFocusTime>Date.now()-200&&t.inputState.lastTouchTime{let a=this.delayedAndroidKey;a&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=a.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&a.force&&qy(this.dom,a.key,a.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(i)}(!this.delayedAndroidKey||t=="Enter")&&(this.delayedAndroidKey={key:t,keyCode:n,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}processRecords(){let t=this.pendingRecords();t.length&&(this.queue=[]);let n=-1,r=-1,i=!1;for(let a of t){let s=this.readMutation(a);s&&(s.typeOver&&(i=!0),n==-1?{from:n,to:r}=s:(n=Math.min(s.from,n),r=Math.max(s.to,r)))}return{from:n,to:r,typeOver:i}}readChange(){let{from:t,to:n,typeOver:r}=this.processRecords(),i=this.selectionChanged&&a_(this.dom,this.selectionRange);if(t<0&&!i)return null;t>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let a=new WHe(this.view,t,n,r);return this.view.docView.domChanged={newSel:a.newSel?a.newSel.main:null},a}flush(t=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;t&&this.readSelectionRange();let n=this.readChange();if(!n)return this.view.requestMeasure(),!1;let r=this.view.state,i=Tde(this.view,n);return this.view.state==r&&(n.domChanged||n.newSel&&!n.newSel.main.eq(this.view.state.selection.main))&&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=QX(n,t.previousSibling||t.target.previousSibling,-1),i=QX(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),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):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),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):t.removeEventListener("beforeprint",this.onPrint),t.document.removeEventListener("selectionchange",this.onSelectionChange)}update(t){this.editContext&&(this.editContext.update(t),t.startState.facet(x0)!=t.state.facet(x0)&&(t.view.contentDOM.editContext=t.state.facet(x0)?this.editContext.editContext:null))}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),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}}function QX(e,t,n){for(;t;){let r=wi.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 WX(e,t){let n=t.startContainer,r=t.startOffset,i=t.endContainer,a=t.endOffset,s=e.docView.domAtPos(e.state.selection.main.anchor);return m2(s.node,s.offset,i,a)&&([n,r,i,a]=[i,a,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:a}}function AQe(e,t){if(t.getComposedRanges){let i=t.getComposedRanges(e.root)[0];if(i)return WX(e,i)}let n=null;function r(i){i.preventDefault(),i.stopImmediatePropagation(),n=i.getTargetRanges()[0]}return e.contentDOM.addEventListener("beforeinput",r,!0),e.dom.ownerDocument.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",r,!0),n?WX(e,n):null}class _Qe{constructor(t){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.resetRange(t.state);let n=this.editContext=new window.EditContext({text:t.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,t.state.selection.main.anchor))),selectionEnd:this.toContextPos(t.state.selection.main.head)});this.handlers.textupdate=r=>{let{anchor:i}=t.state.selection.main,a={from:this.toEditorPos(r.updateRangeStart),to:this.toEditorPos(r.updateRangeEnd),insert:vr.of(r.text.split(` -`))};a.from==this.from&&ithis.to&&(a.to=i),!(a.from==a.to&&!a.insert.length)&&(this.pendingContextChange=a,t.state.readOnly||uB(t,a,ht.single(this.toEditorPos(r.selectionStart),this.toEditorPos(r.selectionEnd))),this.pendingContextChange&&(this.revertPending(t.state),this.setSelection(t.state)))},this.handlers.characterboundsupdate=r=>{let i=[],a=null;for(let s=this.toEditorPos(r.rangeStart),o=this.toEditorPos(r.rangeEnd);s{let i=[];for(let a of r.getTextFormats()){let s=a.underlineStyle,o=a.underlineThickness;if(s!="None"&&o!="None"){let l=`text-decoration: underline ${s=="Dashed"?"dashed ":s=="Squiggle"?"wavy ":""}${o=="Thin"?1:2}px`;i.push(gn.mark({attributes:{style:l}}).range(this.toEditorPos(a.rangeStart),this.toEditorPos(a.rangeEnd)))}}t.dispatch({effects:gde.of(gn.set(i))})},this.handlers.compositionstart=()=>{t.inputState.composing<0&&(t.inputState.composing=0,t.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{t.inputState.composing=-1,t.inputState.compositionFirstChange=null};for(let r in this.handlers)n.addEventListener(r,this.handlers[r]);this.measureReq={read:r=>{this.editContext.updateControlBounds(r.contentDOM.getBoundingClientRect());let i=Tw(r.root);i&&i.rangeCount&&this.editContext.updateSelectionBounds(i.getRangeAt(0).getBoundingClientRect())}}}applyEdits(t){let n=0,r=!1,i=this.pendingContextChange;return t.changes.iterChanges((a,s,o,l,u)=>{if(r)return;let d=u.length-(s-a);if(i&&s>=i.to)if(i.from==a&&i.to==s&&i.insert.eq(u)){i=this.pendingContextChange=null,n+=d,this.to+=d;return}else i=null,this.revertPending(t.state);if(a+=n,s+=n,s<=this.from)this.from+=d,this.to+=d;else if(athis.to||this.to-this.from+u.length>3e4){r=!0;return}this.editContext.updateText(this.toContextPos(a),this.toContextPos(s),u.toString()),this.to+=d}n+=d}),i&&!r&&this.revertPending(t.state),!r}update(t){let n=this.pendingContextChange;!this.applyEdits(t)||!this.rangeIsValid(t.state)?(this.pendingContextChange=null,this.resetRange(t.state),this.editContext.updateText(0,this.editContext.text.length,t.state.doc.sliceString(this.from,this.to)),this.setSelection(t.state)):(t.docChanged||t.selectionSet||n)&&this.setSelection(t.state),(t.geometryChanged||t.docChanged||t.selectionSet)&&t.view.requestMeasure(this.measureReq)}resetRange(t){let{head:n}=t.selection.main;this.from=Math.max(0,n-1e4),this.to=Math.min(t.doc.length,n+1e4)}revertPending(t){let n=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(n.from),this.toContextPos(n.from+n.insert.length),t.doc.sliceString(n.from,n.to))}setSelection(t){let{main:n}=t.selection,r=this.toContextPos(Math.max(this.from,Math.min(this.to,n.anchor))),i=this.toContextPos(n.head);(this.editContext.selectionStart!=r||this.editContext.selectionEnd!=i)&&this.editContext.updateSelection(r,i)}rangeIsValid(t){let{head:n}=t.selection.main;return!(this.from>0&&n-this.from<500||this.to1e4*3)}toEditorPos(t){return t+this.from}toContextPos(t){return t-this.from}destroy(){for(let t in this.handlers)this.editContext.removeEventListener(t,this.handlers[t])}}class Kt{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={}){var n;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:r}=t;this.dispatchTransactions=t.dispatchTransactions||r&&(i=>i.forEach(a=>r(a,this)))||(i=>this.update(i)),this.dispatch=this.dispatch.bind(this),this._root=t.root||dHe(t.parent)||document,this.viewState=new jX(t.state||Dr.create(t)),t.scrollTo&&t.scrollTo.is(RA)&&(this.viewState.scrollTarget=t.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(ME).map(i=>new hD(i));for(let i of this.plugins)i.update(this);this.observer=new kQe(this),this.inputState=new ZHe(this),this.inputState.ensureHandlers(this.plugins),this.docView=new wX(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),!((n=document.fonts)===null||n===void 0)&&n.ready&&document.fonts.ready.then(()=>this.requestMeasure())}dispatch(...t){let n=t.length==1&&t[0]instanceof os?t:t.length==1&&Array.isArray(t[0])?t[0]:[this.state.update(...t)];this.dispatchTransactions(n,this)}update(t){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let n=!1,r=!1,i,a=this.state;for(let p of t){if(p.startState!=a)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");a=p.state}if(this.destroyed){this.viewState.state=a;return}let s=this.hasFocus,o=0,l=null;t.some(p=>p.annotation(Rde))?(this.inputState.notifiedFocused=s,o=1):s!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=s,l=Ide(a,s),l||(o=1));let u=this.observer.delayedAndroidKey,d=null;if(u?(this.observer.clearDelayedAndroidKey(),d=this.observer.readChange(),(d&&!this.state.doc.eq(a.doc)||!this.state.selection.eq(a.selection))&&(d=null)):this.observer.clear(),a.facet(Dr.phrases)!=this.state.facet(Dr.phrases))return this.setState(a);i=WC.create(this,a,t),i.flags|=o;let f=this.viewState.scrollTarget;try{this.updateState=2;for(let p of t){if(f&&(f=f.map(p.changes)),p.scrollIntoView){let{main:g}=p.state.selection;f=new Gy(g.empty?g:ht.cursor(g.head,g.head>g.anchor?-1:1))}for(let g of p.effects)g.is(RA)&&(f=g.value.clip(this.state))}this.viewState.update(i,f),this.bidiCache=qC.update(this.bidiCache,i.changes),i.empty||(this.updatePlugins(i),this.inputState.update(i)),n=this.docView.update(i),this.state.facet($E)!=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(MA)!=i.state.facet(MA)&&(this.viewState.mustMeasureContent=!0),(n||r||f||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),n&&this.docViewUpdate(),!i.empty)for(let p of this.state.facet(cL))try{p(i)}catch(g){xl(this.state,g,"update listener")}(l||d)&&Promise.resolve().then(()=>{l&&this.state==l.startState&&this.dispatch(l),d&&!Tde(this,d)&&u.force&&qy(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 jX(t),this.plugins=t.facet(ME).map(r=>new hD(r)),this.pluginMap.clear();for(let r of this.plugins)r.update(this);this.docView.destroy(),this.docView=new wX(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(ME),r=t.state.facet(ME);if(n!=r){let i=[];for(let a of r){let s=n.indexOf(a);if(s<0)i.push(new hD(a));else{let o=this.plugins[s];o.mustUpdate=t,i.push(o)}}for(let a of this.plugins)a.mustUpdate!=t&&a.destroy(this);this.plugins=i,this.pluginMap.clear()}else for(let i of this.plugins)i.mustUpdate=t;for(let i=0;i-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,t&&this.observer.forceFlush();let n=null,r=this.scrollDOM,i=r.scrollTop*this.scaleY,{scrollAnchorPos:a,scrollAnchorHeight:s}=this.viewState;Math.abs(i-this.viewState.scrollTop)>1&&(s=-1),this.viewState.scrollAnchorHeight=-1;try{for(let o=0;;o++){if(s<0)if(Qce(r))a=-1,s=this.viewState.heightMap.height;else{let g=this.viewState.scrollAnchorAt(i);a=g.from,s=g.top}this.updateState=1;let l=this.viewState.measure(this);if(!l&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(o>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let u=[];l&4||([this.measureRequests,u]=[u,this.measureRequests]);let d=u.map(g=>{try{return g.read(this)}catch(O){return xl(this.state,O),VX}}),f=WC.create(this,this.state,[]),p=!1;f.flags|=l,n?n.flags|=l:n=f,this.updateState=2,f.empty||(this.updatePlugins(f),this.inputState.update(f),this.updateAttrs(),p=this.docView.update(f),p&&this.docViewUpdate());for(let g=0;g1||O<-1){i=i+O,r.scrollTop=i/this.scaleY,s=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(n&&!n.empty)for(let o of this.state.facet(cL))o(n)}get themeClasses(){return mL+" "+(this.state.facet(pL)?Lde:Pde)+" "+this.state.facet(MA)}updateAttrs(){let t=qX(this,bde,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),n={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(x0)?"true":"false",class:"cm-content",style:`${cn.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(n["aria-readonly"]="true"),qX(this,oB,n);let r=this.observer.ignore(()=>{let i=iL(this.contentDOM,this.contentAttrs,n),a=iL(this.dom,this.editorAttrs,t);return i||a});return this.editorAttrs=t,this.contentAttrs=n,r}showAnnouncements(t){let n=!0;for(let r of t)for(let i of r.effects)if(i.is(Kt.announce)){n&&(this.announceDOM.textContent=""),n=!1;let a=this.announceDOM.appendChild(document.createElement("div"));a.textContent=i.value}}mountStyles(){this.styleModules=this.state.facet($E);let t=this.state.facet(Kt.cspNonce);pm.mount(this.root,this.styleModules.concat(TQe).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 mD(this,t,_X(this,t,n,r))}moveByGroup(t,n){return mD(this,t,_X(this,t,n,r=>zHe(this,t.head,r)))}visualLineSide(t,n){let r=this.bidiSpans(t),i=this.textDirectionAt(t.from),a=r[n?r.length-1:0];return ht.cursor(a.side(n,i)+t.from,a.forward(!n,i)?1:-1)}moveToLineBoundary(t,n,r=!0){return UHe(this,t,n,r)}moveVertically(t,n,r){return mD(this,t,jHe(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(),wde(this,t,n)}coordsAtPos(t,n=1){this.readMeasured();let r=this.docView.coordsAt(t,n);if(!r||r.left==r.right)return r;let i=this.state.doc.lineAt(t),a=this.bidiSpans(i),s=a[Q0.find(a,t-i.from,-1,n)];return IR(r,s.dir==zi.LTR==n>0)}coordsForChar(t){return this.readMeasured(),this.docView.coordsForChar(t)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(t){return!this.state.facet(hde)||tthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(t))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(t){if(t.length>CQe)return ade(t.length);let n=this.textDirectionAt(t.from),r;for(let a of this.bidiCache)if(a.from==t.from&&a.dir==n&&(a.fresh||ide(a.isolates,r=EX(this,t))))return a.order;r||(r=EX(this,t));let i=THe(t.text,n,r);return this.bidiCache.push(new qC(t.from,t.to,n,r,!0,i)),i}get hasFocus(){var t;return(this.dom.ownerDocument.hasFocus()||cn.safari&&((t=this.inputState)===null||t===void 0?void 0:t.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{jce(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(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();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 RA.of(new Gy(typeof t=="number"?ht.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 RA.of(new Gy(ht.cursor(r.from),"start","start",r.top-t,n,!0))}setTabFocusMode(t){t==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof t=="boolean"?this.inputState.tabFocusMode=t?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+t)}static domEventHandlers(t){return ha.define(()=>({}),{eventHandlers:t})}static domEventObservers(t){return ha.define(()=>({}),{eventObservers:t})}static theme(t,n){let r=pm.newName(),i=[MA.of(r),$E.of(gL(`.${r}`,t))];return n&&n.dark&&i.push(pL.of(!0)),i}static baseTheme(t){return Rp.lowest($E.of(gL("."+mL,t,Mde)))}static findFromDOM(t){var n;let r=t.querySelector(".cm-content"),i=r&&wi.get(r)||wi.get(t);return((n=i==null?void 0:i.rootView)===null||n===void 0?void 0:n.view)||null}}Kt.styleModule=$E;Kt.inputHandler=dde;Kt.clipboardInputFilter=aB;Kt.clipboardOutputFilter=sB;Kt.scrollHandler=mde;Kt.focusChangeEffect=fde;Kt.perLineTextDirection=hde;Kt.exceptionSink=cde;Kt.updateListener=cL;Kt.editable=x0;Kt.mouseSelectionStyle=ude;Kt.dragMovesSelection=lde;Kt.clickAddsSelectionRange=ode;Kt.decorations=kw;Kt.outerDecorations=yde;Kt.atomicRanges=lB;Kt.bidiIsolatedRanges=vde;Kt.scrollMargins=Ode;Kt.darkTheme=pL;Kt.cspNonce=an.define({combine:e=>e.length?e[0]:""});Kt.contentAttributes=oB;Kt.editorAttributes=bde;Kt.lineWrapping=Kt.contentAttributes.of({class:"cm-lineWrapping"});Kt.announce=Zn.define();const CQe=4096,VX={};class qC{constructor(t,n,r,i,a,s){this.from=t,this.to=n,this.dir=r,this.isolates=i,this.fresh=a,this.order=s}static update(t,n){if(n.empty&&!t.some(a=>a.fresh))return t;let r=[],i=t.length?t[t.length-1].dir:zi.LTR;for(let a=Math.max(0,t.length-10);a=0;i--){let a=r[i],s=typeof a=="function"?a(e):a;s&&rL(s,n)}return n}const RQe=cn.mac?"mac":cn.windows?"win":cn.linux?"linux":"key";function IQe(e,t){const n=e.split(/-(?!$)/);let r=n[n.length-1];r=="Space"&&(r=" ");let i,a,s,o;for(let l=0;lr.concat(i),[]))),n}function DQe(e,t,n){return Fde($de(e.state),t,e,n)}let k0=null;const PQe=4e3;function LQe(e,t=RQe){let n=Object.create(null),r=Object.create(null),i=(s,o)=>{let l=r[s];if(l==null)r[s]=o;else if(l!=o)throw new Error("Key binding "+s+" is used both as a regular binding and as a multi-stroke prefix")},a=(s,o,l,u,d)=>{var f,p;let g=n[s]||(n[s]=Object.create(null)),O=o.split(/ (?!$)/).map(w=>IQe(w,t));for(let w=1;w{let _=k0={view:k,prefix:x,scope:s};return setTimeout(()=>{k0==_&&(k0=null)},PQe),!0}]})}let S=O.join(" ");i(S,!1);let T=g[S]||(g[S]={preventDefault:!1,stopPropagation:!1,run:((p=(f=g._any)===null||f===void 0?void 0:f.run)===null||p===void 0?void 0:p.slice())||[]});l&&T.run.push(l),u&&(T.preventDefault=!0),d&&(T.stopPropagation=!0)};for(let s of e){let o=s.scope?s.scope.split(" "):["editor"];if(s.any)for(let u of o){let d=n[u]||(n[u]=Object.create(null));d._any||(d._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:f}=s;for(let p in d)d[p].run.push(g=>f(g,bL))}let l=s[t]||s.key;if(l)for(let u of o)a(u,l,s.run,s.preventDefault,s.stopPropagation),s.shift&&a(u,"Shift-"+l,s.shift,s.preventDefault,s.stopPropagation)}return n}let bL=null;function Fde(e,t,n,r){bL=t;let i=aHe(t),a=Ps(i,0),s=cc(a)==i.length&&i!=" ",o="",l=!1,u=!1,d=!1;k0&&k0.view==n&&k0.scope==r&&(o=k0.prefix+" ",kde.indexOf(t.keyCode)<0&&(u=!0,k0=null));let f=new Set,p=T=>{if(T){for(let w of T.run)if(!f.has(w)&&(f.add(w),w(n)))return T.stopPropagation&&(d=!0),!0;T.preventDefault&&(T.stopPropagation&&(d=!0),u=!0)}return!1},g=e[r],O,S;return g&&(p(g[o+$A(i,t,!s)])?l=!0:s&&(t.altKey||t.metaKey||t.ctrlKey)&&!(cn.windows&&t.ctrlKey&&t.altKey)&&(O=mm[t.keyCode])&&O!=i?(p(g[o+$A(O,t,!0)])||t.shiftKey&&(S=ww[t.keyCode])!=i&&S!=O&&p(g[o+$A(S,t,!1)]))&&(l=!0):s&&t.shiftKey&&p(g[o+$A(i,t,!0)])&&(l=!0),!l&&p(g._any)&&(l=!0)),u&&(l=!0),l&&d&&t.stopPropagation(),bL=null,l}class UT{constructor(t,n,r,i,a){this.className=t,this.left=n,this.top=r,this.width=i,this.height=a}draw(){let t=document.createElement("div");return t.className=this.className,this.adjust(t),t}update(t,n){return n.className!=this.className?!1:(this.adjust(t),!0)}adjust(t){t.style.left=this.left+"px",t.style.top=this.top+"px",this.width!=null&&(t.style.width=this.width+"px"),t.style.height=this.height+"px"}eq(t){return this.left==t.left&&this.top==t.top&&this.width==t.width&&this.height==t.height&&this.className==t.className}static forRange(t,n,r){if(r.empty){let i=t.coordsAtPos(r.head,r.assoc||1);if(!i)return[];let a=Bde(t);return[new UT(n,i.left-a.left,i.top-a.top,null,i.bottom-i.top)]}else return MQe(t,n,r)}}function Bde(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==zi.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}function YX(e,t,n,r){let i=e.coordsAtPos(t,n*2);if(!i)return r;let a=e.dom.getBoundingClientRect(),s=(i.top+i.bottom)/2,o=e.posAtCoords({x:a.left+1,y:s}),l=e.posAtCoords({x:a.right-1,y:s});return o==null||l==null?r:{from:Math.max(r.from,Math.min(o,l)),to:Math.min(r.to,Math.max(o,l))}}function MQe(e,t,n){if(n.to<=e.viewport.from||n.from>=e.viewport.to)return[];let r=Math.max(n.from,e.viewport.from),i=Math.min(n.to,e.viewport.to),a=e.textDirection==zi.LTR,s=e.contentDOM,o=s.getBoundingClientRect(),l=Bde(e),u=s.querySelector(".cm-line"),d=u&&window.getComputedStyle(u),f=o.left+(d?parseInt(d.paddingLeft)+Math.min(0,parseInt(d.textIndent)):0),p=o.right-(d?parseInt(d.paddingRight):0),g=fL(e,r),O=fL(e,i),S=g.type==Go.Text?g:null,T=O.type==Go.Text?O:null;if(S&&(e.lineWrapping||g.widgetLineBreaks)&&(S=YX(e,r,1,S)),T&&(e.lineWrapping||O.widgetLineBreaks)&&(T=YX(e,i,-1,T)),S&&T&&S.from==T.from&&S.to==T.to)return x(k(n.from,n.to,S));{let R=S?k(n.from,null,S):_(g,!1),N=T?k(null,n.to,T):_(O,!0),D=[];return(S||g).to<(T||O).from-(S&&T?1:0)||g.widgetLineBreaks>1&&R.bottom+e.defaultLineHeight/2W&&ee.from=te)break;H>q&&V(Math.max(ie,q),R==null&&ie<=W,Math.min(H,te),N==null&&H>=re,G.dir)}if(q=K.to+1,q>=te)break}return B.length==0&&V(W,R==null,re,N==null,e.textDirection),{top:L,bottom:j,horizontal:B}}function _(R,N){let D=o.top+(N?R.top:R.bottom);return{top:D,bottom:D,horizontal:[]}}}function $Qe(e,t){return e.constructor==t.constructor&&e.eq(t)}class FQe{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(l_)!=t.state.facet(l_)&&this.setOrder(t.state),(this.layer.update(t,this.dom)||t.geometryChanged)&&(this.scale(),t.view.requestMeasure(this.measureReq))}docViewUpdate(t){this.layer.updateOnDocViewUpdate!==!1&&t.requestMeasure(this.measureReq)}setOrder(t){let n=0,r=t.facet(l_);for(;n!$Qe(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 l_=an.define();function Ude(e){return[ha.define(t=>new FQe(t,e)),l_.of(e)]}const zde=!cn.ios,Aw=an.define({combine(e){return Yf(e,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(t,n)=>Math.min(t,n),drawRangeCursor:(t,n)=>t||n})}});function BQe(e={}){return[Aw.of(e),UQe,zQe,jQe,pde.of(!0)]}function jde(e){return e.startState.facet(Aw)!=e.state.facet(Aw)}const UQe=Ude({above:!0,markers(e){let{state:t}=e,n=t.facet(Aw),r=[];for(let i of t.selection.ranges){let a=i==t.selection.main;if(i.empty?!a||zde:n.drawRangeCursor){let s=a?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",o=i.empty?i:ht.cursor(i.head,i.head>i.anchor?-1:1);for(let l of UT.forRange(e,s,o))r.push(l)}}return r},update(e,t){e.transactions.some(r=>r.selection)&&(t.style.animationName=t.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let n=jde(e);return n&&ZX(e.state,t),e.docChanged||e.selectionSet||n},mount(e,t){ZX(t.state,e)},class:"cm-cursorLayer"});function ZX(e,t){t.style.animationDuration=e.facet(Aw).cursorBlinkRate+"ms"}const zQe=Ude({above:!1,markers(e){return e.state.selection.ranges.map(t=>t.empty?[]:UT.forRange(e,"cm-selectionBackground",t)).reduce((t,n)=>t.concat(n))},update(e,t){return e.docChanged||e.selectionSet||e.viewportChanged||jde(e)},class:"cm-selectionLayer"}),yL={".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"}},".cm-content":{"& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}};zde&&(yL[".cm-line"].caretColor=yL[".cm-content"].caretColor="transparent !important");const jQe=Rp.highest(Kt.theme(yL)),Hde=Zn.define({map(e,t){return e==null?null:t.mapPos(e)}}),UE=ws.define({create(){return null},update(e,t){return e!=null&&(e=t.changes.mapPos(e)),t.effects.reduce((n,r)=>r.is(Hde)?r.value:n,e)}}),HQe=ha.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(UE);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(UE)!=n||e.docChanged||e.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:e}=this,t=e.state.field(UE),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(UE)!=e&&this.view.dispatch({effects:Hde.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 QQe(){return[UE,HQe]}function XX(e,t,n,r,i){t.lastIndex=0;for(let a=e.iterRange(n,r),s=n,o;!a.next().done;s+=a.value.length)if(!a.lineBreak)for(;o=t.exec(a.value);)i(s+o.index,o)}function WQe(e,t){let n=e.visibleRanges;if(n.length==1&&n[0].from==e.viewport.from&&n[0].to==e.viewport.to)return n;let r=[];for(let{from:i,to:a}of n)i=Math.max(e.state.doc.lineAt(i).from,i-t),a=Math.min(e.state.doc.lineAt(a).to,a+t),r.length&&r[r.length-1].to>=i?r[r.length-1].to=a:r.push({from:i,to:a});return r}class VQe{constructor(t){const{regexp:n,decoration:r,decorate:i,boundary:a,maxLength:s=1e3}=t;if(!n.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=n,i)this.addMatch=(o,l,u,d)=>i(d,u,u+o[0].length,o,l);else if(typeof r=="function")this.addMatch=(o,l,u,d)=>{let f=r(o,l,u);f&&d(u,u+o[0].length,f)};else if(r)this.addMatch=(o,l,u,d)=>d(u,u+o[0].length,r);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=a,this.maxLength=s}createDeco(t){let n=new hm,r=n.add.bind(n);for(let{from:i,to:a}of WQe(t,this.maxLength))XX(t.state.doc,this.regexp,i,a,(s,o)=>this.addMatch(o,t,s,r));return n.finish()}updateDeco(t,n){let r=1e9,i=-1;return t.docChanged&&t.changes.iterChanges((a,s,o,l)=>{l>t.view.viewport.from&&o1e3?this.createDeco(t.view):i>-1?this.updateRange(t.view,n.map(t.changes),r,i):n}updateRange(t,n,r,i){for(let a of t.visibleRanges){let s=Math.max(a.from,r),o=Math.min(a.to,i);if(o>s){let l=t.state.doc.lineAt(s),u=l.tol.from;s--)if(this.boundary.test(l.text[s-1-l.from])){d=s;break}for(;op.push(w.range(S,T));if(l==u)for(this.regexp.lastIndex=d-l.from;(g=this.regexp.exec(l.text))&&g.indexthis.addMatch(T,t,S,O));n=n.update({filterFrom:d,filterTo:f,filter:(S,T)=>Sf,add:p})}}return n}}const vL=/x/.unicode!=null?"gu":"g",qQe=new RegExp(`[\0-\b ---Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,vL),GQe={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 yD=null;function YQe(){var e;if(yD==null&&typeof document<"u"&&document.body){let t=document.body.style;yD=((e=t.tabSize)!==null&&e!==void 0?e:t.MozTabSize)!=null}return yD||!1}const u_=an.define({combine(e){let t=Yf(e,{render:null,specialChars:qQe,addSpecialChars:null});return(t.replaceTabs=!YQe())&&(t.specialChars=new RegExp(" |"+t.specialChars.source,vL)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,vL)),t}});function ZQe(e={}){return[u_.of(e),XQe()]}let KX=null;function XQe(){return KX||(KX=ha.fromClass(class{constructor(e){this.view=e,this.decorations=gn.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(u_)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new VQe({regexp:e.specialChars,decoration:(t,n,r)=>{let{doc:i}=n.state,a=Ps(t[0],0);if(a==9){let s=i.lineAt(r),o=n.state.tabSize,l=Cd(s.text,o,r-s.from);return gn.replace({widget:new tWe((o-l%o)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[a]||(this.decorationCache[a]=gn.replace({widget:new eWe(e,a)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(u_);e.startState.facet(u_)!=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 KQe="•";function JQe(e){return e>=32?KQe:e==10?"␤":String.fromCharCode(9216+e)}class eWe extends Md{constructor(t,n){super(),this.options=t,this.code=n}eq(t){return t.code==this.code}toDOM(t){let n=JQe(this.code),r=t.state.phrase("Control character")+" "+(GQe[this.code]||"0x"+this.code.toString(16)),i=this.options.render&&this.options.render(this.code,r,n);if(i)return i;let a=document.createElement("span");return a.textContent=n,a.title=r,a.setAttribute("aria-label",r),a.className="cm-specialChar",a}ignoreEvent(){return!1}}class tWe extends Md{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 nWe(){return iWe}const rWe=gn.line({class:"cm-activeLine"}),iWe=ha.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(rWe.range(i.from)),t=i.from)}return gn.set(n)}},{decorations:e=>e.decorations}),OL=2e3;function aWe(e,t,n){let r=Math.min(t.line,n.line),i=Math.max(t.line,n.line),a=[];if(t.off>OL||n.off>OL||t.col<0||n.col<0){let s=Math.min(t.off,n.off),o=Math.max(t.off,n.off);for(let l=r;l<=i;l++){let u=e.doc.line(l);u.length<=o&&a.push(ht.range(u.from+s,u.to+o))}}else{let s=Math.min(t.col,n.col),o=Math.max(t.col,n.col);for(let l=r;l<=i;l++){let u=e.doc.line(l),d=Z8(u.text,s,e.tabSize,!0);if(d<0)a.push(ht.cursor(u.to));else{let f=Z8(u.text,o,e.tabSize);a.push(ht.range(u.from+d,u.from+f))}}}return a}function sWe(e,t){let n=e.coordsAtPos(e.viewport.from);return n?Math.round(Math.abs((n.left-t)/e.defaultCharacterWidth)):-1}function JX(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1),r=e.state.doc.lineAt(n),i=n-r.from,a=i>OL?-1:i==r.length?sWe(e,t.clientX):Cd(r.text,e.state.tabSize,n-r.from);return{line:r.number,col:a,off:i}}function oWe(e,t){let n=JX(e,t),r=e.state.selection;return n?{update(i){if(i.docChanged){let a=i.changes.mapPos(i.startState.doc.line(n.line).from),s=i.state.doc.lineAt(a);n={line:s.number,col:n.col,off:Math.min(n.off,s.length)},r=r.map(i.changes)}},get(i,a,s){let o=JX(e,i);if(!o)return r;let l=aWe(e.state,n,o);return l.length?s?ht.create(l.concat(r.ranges)):ht.create(l):r}}:null}function lWe(e){let t=n=>n.altKey&&n.button==0;return Kt.mouseSelectionStyle.of((n,r)=>t(r)?oWe(n,r):null)}const uWe={Alt:[18,e=>!!e.altKey],Control:[17,e=>!!e.ctrlKey],Shift:[16,e=>!!e.shiftKey],Meta:[91,e=>!!e.metaKey]},cWe={style:"cursor: crosshair"};function dWe(e={}){let[t,n]=uWe[e.key||"Alt"],r=ha.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,Kt.contentAttributes.of(i=>{var a;return!((a=i.plugin(r))===null||a===void 0)&&a.isDown?cWe:null})]}const uE="-10000px";class Qde{constructor(t,n,r,i){this.facet=n,this.createTooltipView=r,this.removeTooltipView=i,this.input=t.state.facet(n),this.tooltips=this.input.filter(s=>s);let a=null;this.tooltipViews=this.tooltips.map(s=>a=r(s,a))}update(t,n){var r;let i=t.state.facet(this.facet),a=i.filter(l=>l);if(i===this.input){for(let l of this.tooltipViews)l.update&&l.update(t);return!1}let s=[],o=n?[]:null;for(let l=0;ln[u]=l),n.length=o.length),this.input=i,this.tooltips=a,this.tooltipViews=s,!0}}function fWe(e){let{win:t}=e;return{top:0,left:0,bottom:t.innerHeight,right:t.innerWidth}}const vD=an.define({combine:e=>{var t,n,r;return{position:cn.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)||fWe}}}),eK=new WeakMap,fB=ha.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(vD);this.position=t.position,this.parent=t.parent,this.classes=e.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new Qde(e,hB,(n,r)=>this.createTooltip(n,r),n=>{this.resizeObserver&&this.resizeObserver.unobserve(n.dom),n.dom.remove()}),this.above=this.manager.tooltips.map(n=>!!n.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(n=>{Date.now()>this.lastTransaction-50&&n.length>0&&n[n.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),e.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let e of this.manager.tooltipViews)this.intersectionObserver.observe(e.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(e,this.above);t&&this.observeIntersection();let n=t||e.geometryChanged,r=e.state.facet(vD);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,t){let n=e.create(this.view),r=t?t.dom:null;if(n.dom.classList.add("cm-tooltip"),e.arrow&&!n.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let i=document.createElement("div");i.className="cm-tooltip-arrow",n.dom.appendChild(i)}return n.dom.style.position=this.position,n.dom.style.top=uE,n.dom.style.left="0px",this.container.insertBefore(n.dom,r),n.mount&&n.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(n.dom),n}destroy(){var e,t,n;this.view.win.removeEventListener("resize",this.measureSoon);for(let r of this.manager.tooltipViews)r.dom.remove(),(e=r.destroy)===null||e===void 0||e.call(r);this.parent&&this.container.remove(),(t=this.resizeObserver)===null||t===void 0||t.disconnect(),(n=this.intersectionObserver)===null||n===void 0||n.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let e=this.view.dom.getBoundingClientRect(),t=1,n=1,r=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:i}=this.manager.tooltipViews[0];if(cn.gecko)r=i.offsetParent!=this.container.ownerDocument.body;else if(i.style.top==uE&&i.style.left=="0px"){let a=i.getBoundingClientRect();r=Math.abs(a.top+1e4)>1||Math.abs(a.left)>1}}if(r||this.position=="absolute")if(this.parent){let i=this.parent.getBoundingClientRect();i.width&&i.height&&(t=i.width/this.parent.offsetWidth,n=i.height/this.parent.offsetHeight)}else({scaleX:t,scaleY:n}=this.view.viewState);return{editor:e,parent:this.parent?this.container.getBoundingClientRect():e,pos:this.manager.tooltips.map((i,a)=>{let s=this.manager.tooltipViews[a];return s.getCoords?s.getCoords(i.pos):this.view.coordsAtPos(i.pos)}),size:this.manager.tooltipViews.map(({dom:i})=>i.getBoundingClientRect()),space:this.view.state.facet(vD).tooltipSpace(this.view),scaleX:t,scaleY:n,makeAbsolute:r}}writeMeasure(e){var t;if(e.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let o of this.manager.tooltipViews)o.dom.style.position="absolute"}let{editor:n,space:r,scaleX:i,scaleY:a}=e,s=[];for(let o=0;o=Math.min(n.bottom,r.bottom)||f.rightMath.min(n.right,r.right)+.1){d.style.top=uE;continue}let g=l.arrow?u.dom.querySelector(".cm-tooltip-arrow"):null,O=g?7:0,S=p.right-p.left,T=(t=eK.get(u))!==null&&t!==void 0?t:p.bottom-p.top,w=u.offset||pWe,x=this.view.textDirection==zi.LTR,k=p.width>r.right-r.left?x?r.left:r.right-p.width:x?Math.max(r.left,Math.min(f.left-(g?14:0)+w.x,r.right-S)):Math.min(Math.max(r.left,f.left-S+(g?14:0)-w.x),r.right-S),_=this.above[o];!l.strictSide&&(_?f.top-(p.bottom-p.top)-w.yr.bottom)&&_==r.bottom-f.bottom>f.top-r.top&&(_=this.above[o]=!_);let R=(_?f.top-r.top:r.bottom-f.bottom)-O;if(Rk&&L.topN&&(N=_?L.top-T-2-O:L.bottom+O+2);if(this.position=="absolute"?(d.style.top=(N-e.parent.top)/a+"px",d.style.left=(k-e.parent.left)/i+"px"):(d.style.top=N/a+"px",d.style.left=k/i+"px"),g){let L=f.left+(x?w.x:-w.x)-(k+14-7);g.style.left=L/i+"px"}u.overlap!==!0&&s.push({left:k,top:N,right:D,bottom:N+T}),d.classList.toggle("cm-tooltip-above",_),d.classList.toggle("cm-tooltip-below",!_),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=uE}},{eventObservers:{scroll(){this.maybeMeasure()}}}),hWe=Kt.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"}}}),pWe={x:0,y:0},hB=an.define({enables:[fB,hWe]}),GC=an.define({combine:e=>e.reduce((t,n)=>t.concat(n),[])});class PR{static create(t){return new PR(t)}constructor(t){this.view=t,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new Qde(t,GC,(n,r)=>this.createHostedView(n,r),n=>n.dom.remove())}createHostedView(t,n){let r=t.create(this.view);return r.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(r.dom,n?n.dom.nextSibling:this.dom.firstChild),this.mounted&&r.mount&&r.mount(this.view),r}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 mWe=hB.compute([GC],e=>{let t=e.facet(GC);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:PR.create,above:t[0].above,arrow:t.some(n=>n.arrow)}});class gWe{constructor(t,n,r,i,a){this.view=t,this.source=n,this.field=r,this.setHover=i,this.hoverTime=a,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:t.dom,time:0},this.checkHover=this.checkHover.bind(this),t.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),t.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let t=Date.now()-this.lastMove.time;to.bottom||n.xo.right+t.defaultCharacterWidth)return;let l=t.bidiSpans(t.state.doc.lineAt(i)).find(d=>d.from<=i&&d.to>=i),u=l&&l.dir==zi.RTL?-1:1;a=n.x{this.pending==o&&(this.pending=null,l&&!(Array.isArray(l)&&!l.length)&&t.dispatch({effects:this.setHover.of(Array.isArray(l)?l:[l])}))},l=>xl(t.state,l,"hover tooltip"))}else s&&!(Array.isArray(s)&&!s.length)&&t.dispatch({effects:this.setHover.of(Array.isArray(s)?s:[s])})}get tooltip(){let t=this.view.plugin(fB),n=t?t.manager.tooltips.findIndex(r=>r.create==PR.create):-1;return n>-1?t.manager.tooltipViews[n]:null}mousemove(t){var n,r;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:i,tooltip:a}=this;if(i.length&&a&&!bWe(a.dom,t)||this.pending){let{pos:s}=i[0]||this.pending,o=(r=(n=i[0])===null||n===void 0?void 0:n.end)!==null&&r!==void 0?r:s;(s==o?this.view.posAtCoords(this.lastMove)!=s:!yWe(this.view,s,o,t.clientX,t.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(t){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:n}=this;if(n.length){let{tooltip:r}=this;r&&r.dom.contains(t.relatedTarget)?this.watchTooltipLeave(r.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(t){let n=r=>{t.removeEventListener("mouseleave",n),this.active.length&&!this.view.dom.contains(r.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};t.addEventListener("mouseleave",n)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const FA=4;function bWe(e,t){let{left:n,right:r,top:i,bottom:a}=e.getBoundingClientRect(),s;if(s=e.querySelector(".cm-tooltip-arrow")){let o=s.getBoundingClientRect();i=Math.min(o.top,i),a=Math.max(o.bottom,a)}return t.clientX>=n-FA&&t.clientX<=r+FA&&t.clientY>=i-FA&&t.clientY<=a+FA}function yWe(e,t,n,r,i,a){let s=e.scrollDOM.getBoundingClientRect(),o=e.documentTop+e.documentPadding.top+e.contentHeight;if(s.left>r||s.righti||Math.min(s.bottom,o)=t&&l<=n}function vWe(e,t={}){let n=Zn.define(),r=ws.define({create(){return[]},update(i,a){if(i.length&&(t.hideOnChange&&(a.docChanged||a.selection)?i=[]:t.hideOn&&(i=i.filter(s=>!t.hideOn(a,s))),a.docChanged)){let s=[];for(let o of i){let l=a.changes.mapPos(o.pos,-1,Ms.TrackDel);if(l!=null){let u=Object.assign(Object.create(null),o);u.pos=l,u.end!=null&&(u.end=a.changes.mapPos(u.end)),s.push(u)}}i=s}for(let s of a.effects)s.is(n)&&(i=s.value),s.is(OWe)&&(i=[]);return i},provide:i=>GC.from(i)});return{active:r,extension:[r,ha.define(i=>new gWe(i,e,r,n,t.hoverTime||300)),mWe]}}function Wde(e,t){let n=e.plugin(fB);if(!n)return null;let r=n.manager.tooltips.indexOf(t);return r<0?null:n.manager.tooltipViews[r]}const OWe=Zn.define(),tK=an.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 _w(e,t){let n=e.plugin(Vde),r=n?n.specs.indexOf(t):-1;return r>-1?n.panels[r]:null}const Vde=ha.fromClass(class{constructor(e){this.input=e.state.facet(Cw),this.specs=this.input.filter(n=>n),this.panels=this.specs.map(n=>n(e));let t=e.state.facet(tK);this.top=new BA(e,!0,t.topContainer),this.bottom=new BA(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(tK);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new BA(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new BA(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=e.state.facet(Cw);if(n!=this.input){let r=n.filter(l=>l),i=[],a=[],s=[],o=[];for(let l of r){let u=this.specs.indexOf(l),d;u<0?(d=l(e.view),o.push(d)):(d=this.panels[u],d.update&&d.update(e)),i.push(d),(d.top?a:s).push(d)}this.specs=r,this.panels=i,this.top.sync(a),this.bottom.sync(s);for(let l of o)l.dom.classList.add("cm-panel"),l.mount&&l.mount()}else for(let r of this.panels)r.update&&r.update(e)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:e=>Kt.scrollMargins.of(t=>{let n=t.plugin(e);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}})});class BA{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=nK(t);t=t.nextSibling}else this.dom.insertBefore(n.dom,t);for(;t;)t=nK(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 nK(e){let t=e.nextSibling;return e.remove(),t}const Cw=an.define({enables:Vde});class gp extends O1{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return!1}destroy(t){}}gp.prototype.elementClass="";gp.prototype.toDOM=void 0;gp.prototype.mapMode=Ms.TrackBefore;gp.prototype.startSide=gp.prototype.endSide=-1;gp.prototype.point=!0;const c_=an.define(),SWe=an.define(),EWe={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>Cr.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},b2=an.define();function wWe(e){return[qde(),b2.of(Object.assign(Object.assign({},EWe),e))]}const rK=an.define({combine:e=>e.some(t=>t)});function qde(e){return[TWe]}const TWe=ha.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(b2).map(t=>new aK(e,t));for(let t of this.gutters)this.dom.appendChild(t.dom);this.fixed=!e.state.facet(rK),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/this.view.scaleY+"px"),this.view.state.facet(rK)!=!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=Cr.iter(this.view.state.facet(c_),this.view.viewport.from),r=[],i=this.gutters.map(a=>new xWe(a,this.view.viewport,-this.view.documentPadding.top));for(let a of this.view.viewportLineBlocks)if(r.length&&(r=[]),Array.isArray(a.type)){let s=!0;for(let o of a.type)if(o.type==Go.Text&&s){SL(n,r,o.from);for(let l of i)l.line(this.view,o,r);s=!1}else if(o.widget)for(let l of i)l.widget(this.view,o)}else if(a.type==Go.Text){SL(n,r,a.from);for(let s of i)s.line(this.view,a,r)}else if(a.widget)for(let s of i)s.widget(this.view,a);for(let a of i)a.finish();e&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(e){let t=e.startState.facet(b2),n=e.state.facet(b2),r=e.docChanged||e.heightChanged||e.viewportChanged||!Cr.eq(e.startState.facet(c_),e.state.facet(c_),e.view.viewport.from,e.view.viewport.to);if(t==n)for(let i of this.gutters)i.update(e)&&(r=!0);else{r=!0;let i=[];for(let a of n){let s=t.indexOf(a);s<0?i.push(new aK(this.view,a)):(this.gutters[s].update(e),i.push(this.gutters[s]))}for(let a of this.gutters)a.dom.remove(),i.indexOf(a)<0&&a.destroy();for(let a of i)this.dom.appendChild(a.dom);this.gutters=i}return r}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove()}},{provide:e=>Kt.scrollMargins.of(t=>{let n=t.plugin(e);return!n||n.gutters.length==0||!n.fixed?null:t.textDirection==zi.LTR?{left:n.dom.offsetWidth*t.scaleX}:{right:n.dom.offsetWidth*t.scaleX}})});function iK(e){return Array.isArray(e)?e:[e]}function SL(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}class xWe{constructor(t,n,r){this.gutter=t,this.height=r,this.i=0,this.cursor=Cr.iter(t.markers,n.from)}addElement(t,n,r){let{gutter:i}=this,a=(n.top-this.height)/t.scaleY,s=n.height/t.scaleY;if(this.i==i.elements.length){let o=new Gde(t,s,a,r);i.elements.push(o),i.dom.appendChild(o.dom)}else i.elements[this.i].update(t,s,a,r);this.height=n.bottom,this.i++}line(t,n,r){let i=[];SL(this.cursor,i,n.from),r.length&&(i=i.concat(r));let a=this.gutter.config.lineMarker(t,n,i);a&&i.unshift(a);let s=this.gutter;i.length==0&&!s.config.renderEmptyElements||this.addElement(t,n,i)}widget(t,n){let r=this.gutter.config.widgetMarker(t,n.widget,n),i=r?[r]:null;for(let a of t.state.facet(SWe)){let s=a(t,n.widget,n);s&&(i||(i=[])).push(s)}i&&this.addElement(t,n,i)}finish(){let t=this.gutter;for(;t.elements.length>this.i;){let n=t.elements.pop();t.dom.removeChild(n.dom),n.destroy()}}}class aK{constructor(t,n){this.view=t,this.config=n,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let r in n.domEventHandlers)this.dom.addEventListener(r,i=>{let a=i.target,s;if(a!=this.dom&&this.dom.contains(a)){for(;a.parentNode!=this.dom;)a=a.parentNode;let l=a.getBoundingClientRect();s=(l.top+l.bottom)/2}else s=i.clientY;let o=t.lineBlockAtHeight(s-t.documentTop);n.domEventHandlers[r](t,o,i)&&i.preventDefault()});this.markers=iK(n.markers(t)),n.initialSpacer&&(this.spacer=new Gde(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=iK(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!Cr.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 Gde{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":""),kWe(this.markers,i)||this.setMarkers(t,i)}setMarkers(t,n){let r="cm-gutterElement",i=this.dom.firstChild;for(let a=0,s=0;;){let o=s,l=aa(o,l,u)||s(o,l,u):s}return r}})}});class OD extends gp{constructor(t){super(),this.number=t}eq(t){return this.number==t.number}toDOM(){return document.createTextNode(this.number)}}function SD(e,t){return e.state.facet(xy).formatNumber(t,e.state)}const CWe=b2.compute([xy],e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(t){return t.state.facet(AWe)},lineMarker(t,n,r){return r.some(i=>i.toDOM)?null:new OD(SD(t,t.state.doc.lineAt(n.from).number))},widgetMarker:(t,n,r)=>{for(let i of t.state.facet(_We)){let a=i(t,n,r);if(a)return a}return null},lineMarkerChange:t=>t.startState.facet(xy)!=t.state.facet(xy),initialSpacer(t){return new OD(SD(t,sK(t.state.doc.lines)))},updateSpacer(t,n){let r=SD(n.view,sK(n.view.state.doc.lines));return r==t.number?t:new OD(r)},domEventHandlers:e.facet(xy).domEventHandlers}));function RWe(e={}){return[xy.of(e),qde(),CWe]}function sK(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(IWe.range(i)))}return Cr.of(t)});function DWe(){return NWe}const Yde=1024;let PWe=0;class pc{constructor(t,n){this.from=t,this.to=n}}class qn{constructor(t={}){this.id=PWe++,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=ls.match(t)),n=>{let r=t(n);return r===void 0?null:[this,r]}}}qn.closedBy=new qn({deserialize:e=>e.split(" ")});qn.openedBy=new qn({deserialize:e=>e.split(" ")});qn.group=new qn({deserialize:e=>e.split(" ")});qn.isolate=new qn({deserialize:e=>{if(e&&e!="rtl"&&e!="ltr"&&e!="auto")throw new RangeError("Invalid value for isolate: "+e);return e||"auto"}});qn.contextHash=new qn({perNode:!0});qn.lookAhead=new qn({perNode:!0});qn.mounted=new qn({perNode:!0});class Rw{constructor(t,n,r){this.tree=t,this.overlay=n,this.parser=r}static get(t){return t&&t.props&&t.props[qn.mounted.id]}}const LWe=Object.create(null);class ls{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):LWe,r=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(t.name==null?8:0),i=new ls(t.name||"",n,t.id,r);if(t.props){for(let a of t.props)if(Array.isArray(a)||(a=a(i)),a){if(a[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[a[0].id]=a[1]}}return i}prop(t){return this.props[t.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(t){if(typeof t=="string"){if(this.name==t)return!0;let n=this.prop(qn.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(qn.group),a=-1;a<(i?i.length:0);a++){let s=n[a<0?r.name:i[a]];if(s)return s}}}}ls.none=new ls("",Object.create(null),0,8);class zT{constructor(t){this.types=t;for(let n=0;n0;for(let l=this.cursor(s|Ri.IncludeAnonymous);;){let u=!1;if(l.from<=a&&l.to>=i&&(!o&&l.type.isAnonymous||n(l)!==!1)){if(l.firstChild())continue;u=!0}for(;u&&r&&(o||!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:gB(ls.none,this.children,this.positions,0,this.children.length,0,this.length,(n,r,i)=>new ni(this.type,n,r,i,this.propValues),t.makeTree||((n,r,i)=>new ni(ls.none,n,r,i)))}static build(t){return BWe(t)}}ni.empty=new ni(ls.none,[],[],0);class pB{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 pB(this.buffer,this.index)}}class bm{constructor(t,n,r){this.buffer=t,this.length=n,this.set=r}get type(){return ls.none}toString(){let t=[];for(let n=0;n0));l=s[l+3]);return o}slice(t,n,r){let i=this.buffer,a=new Uint16Array(n-t),s=0;for(let o=t,l=0;o=t&&nt;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function Iw(e,t,n,r){for(var i;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to0?o.length:-1;t!=u;t+=n){let d=o[t],f=l[t]+s.from;if(Zde(i,r,f,f+d.length)){if(d instanceof bm){if(a&Ri.ExcludeBuffers)continue;let p=d.findChild(0,d.buffer.length,n,r-f,i);if(p>-1)return new Tf(new MWe(s,d,t,f),null,p)}else if(a&Ri.IncludeAnonymous||!d.type.isAnonymous||mB(d)){let p;if(!(a&Ri.IgnoreMounts)&&(p=Rw.get(d))&&!p.overlay)return new vo(p.tree,f,t,s);let g=new vo(d,f,t,s);return a&Ri.IncludeAnonymous||!g.type.isAnonymous?g:g.nextChild(n<0?d.children.length-1:0,n,r,i)}}}if(a&Ri.IncludeAnonymous||!s.type.isAnonymous||(s.index>=0?t=s.index+n:t=n<0?-1:s._parent._tree.children.length,s=s._parent,!s))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}enter(t,n,r=0){let i;if(!(r&Ri.IgnoreOverlays)&&(i=Rw.get(this._tree))&&i.overlay){let a=t-this.from;for(let{from:s,to:o}of i.overlay)if((n>0?s<=a:s=a:o>a))return new vo(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 lK(e,t,n,r){let i=e.cursor(),a=[];if(!i.firstChild())return a;if(n!=null){for(let s=!1;!s;)if(s=i.type.is(n),!i.nextSibling())return a}for(;;){if(r!=null&&i.type.is(r))return a;if(i.type.is(t)&&a.push(i.node),!i.nextSibling())return r==null?a:[]}}function EL(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 MWe{constructor(t,n,r,i){this.parent=t,this.buffer=n,this.index=r,this.start=i}}class Tf extends Xde{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(t,n,r){super(),this.context=t,this._parent=n,this.index=r,this.type=t.buffer.set.types[t.buffer.buffer[r]]}child(t,n,r){let{buffer:i}=this.context,a=i.findChild(this.index+4,i.buffer[this.index+3],t,n-this.context.start,r);return a<0?null:new Tf(this.context,this,a)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(t){return this.child(1,t,2)}childBefore(t){return this.child(-1,t,-2)}enter(t,n,r=0){if(r&Ri.ExcludeBuffers)return null;let{buffer:i}=this.context,a=i.findChild(this.index+4,i.buffer[this.index+3],n>0?1:-1,t-this.context.start,n);return a<0?null:new Tf(this.context,this,a)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}get nextSibling(){let{buffer:t}=this.context,n=t.buffer[this.index+3];return n<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new Tf(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 Tf(this.context,this._parent,t.findChild(n,this.index,-1,0,4))}get tree(){return null}toTree(){let t=[],n=[],{buffer:r}=this.context,i=this.index+4,a=r.buffer[this.index+3];if(a>i){let s=r.buffer[this.index+1];t.push(r.slice(i,a,s)),n.push(0)}return new ni(this.type,t,n,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function Kde(e){if(!e.length)return null;let t=0,n=e[0];for(let a=1;an.from||s.to=t){let o=new vo(s.tree,s.overlay[0].from+a.from,-1,a);(i||(i=[r])).push(Iw(o,t,n,!1))}}return i?Kde(i):r}class YC{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 vo)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 vo?(this.buffer=null,this.yieldNode(t)):(this.buffer=t.context,this.yieldBuf(t.index,t.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(t,n,r){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree._tree.children.length-1:0,t,n,r,this.mode));let{buffer:i}=this.buffer,a=i.findChild(this.index+4,i.buffer[this.index+3],t,n-this.buffer.start,r);return a<0?!1:(this.stack.push(this.index),this.yieldBuf(a))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(t){return this.enterChild(1,t,2)}childBefore(t){return this.enterChild(-1,t,-2)}enter(t,n,r=this.mode){return this.buffer?r&Ri.ExcludeBuffers?!1:this.enterChild(1,t,n):this.yield(this._tree.enter(t,n,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&Ri.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let t=this.mode&Ri.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(t)}sibling(t){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+t,t,0,4,this.mode)):!1;let{buffer:n}=this.buffer,r=this.stack.length-1;if(t<0){let i=r<0?0:this.stack[r]+4;if(this.index!=i)return this.yieldBuf(n.findChild(i,this.index,-1,0,4))}else{let i=n.buffer[this.index+3];if(i<(r<0?n.buffer.length:n.buffer[this.stack[r]+3]))return this.yieldBuf(i)}return r<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+t,t,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(t){let n,r,{buffer:i}=this;if(i){if(t>0){if(this.index-1)for(let a=n+t,s=t<0?-1:r._tree.children.length;a!=s;a+=t){let o=r._tree.children[a];if(this.mode&Ri.IncludeAnonymous||o instanceof bm||!o.type.isAnonymous||mB(o))return!1}return!0}move(t,n){if(n&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}next(t=!0){return this.move(1,t)}prev(t=!0){return this.move(-1,t)}moveTo(t,n=0){for(;(this.from==this.to||(n<1?this.from>=t:this.from>t)||(n>-1?this.to<=t:this.to=0;){for(let s=t;s;s=s._parent)if(s.index==i){if(i==this.index)return s;n=s,r=a+1;break e}i=this.stack[--a]}for(let i=r;i=0;a--){if(a<0)return EL(this.node,t,i);let s=r[n.buffer[this.stack[a]]];if(!s.isAnonymous){if(t[i]&&t[i]!=s.name)return!1;i--}}return!0}}function mB(e){return e.children.some(t=>t instanceof bm||!t.type.isAnonymous||mB(t))}function BWe(e){var t;let{buffer:n,nodeSet:r,maxBufferLength:i=Yde,reused:a=[],minRepeatType:s=r.types.length}=e,o=Array.isArray(n)?new pB(n,n.length):n,l=r.types,u=0,d=0;function f(R,N,D,L,j,B){let{id:V,start:W,end:re,size:ee}=o,q=d;for(;ee<0;)if(o.next(),ee==-1){let H=a[V];D.push(H),L.push(W-R);return}else if(ee==-3){u=V;return}else if(ee==-4){d=V;return}else throw new RangeError(`Unrecognized record size: ${ee}`);let te=l[V],K,G,ie=W-R;if(re-W<=i&&(G=T(o.pos-N,j))){let H=new Uint16Array(G.size-G.skip),Re=o.pos-G.size,Se=H.length;for(;o.pos>Re;)Se=w(G.start,H,Se);K=new bm(H,re-G.start,r),ie=G.start-R}else{let H=o.pos-ee;o.next();let Re=[],Se=[],Z=V>=s?V:-1,ke=0,$e=re;for(;o.pos>H;)Z>=0&&o.id==Z&&o.size>=0?(o.end<=$e-i&&(O(Re,Se,W,ke,o.end,$e,Z,q),ke=Re.length,$e=o.end),o.next()):B>2500?p(W,H,Re,Se):f(W,H,Re,Se,Z,B+1);if(Z>=0&&ke>0&&ke-1&&ke>0){let ae=g(te);K=gB(te,Re,Se,0,Re.length,0,re-W,ae,ae)}else K=S(te,Re,Se,re-W,q-re)}D.push(K),L.push(ie)}function p(R,N,D,L){let j=[],B=0,V=-1;for(;o.pos>N;){let{id:W,start:re,end:ee,size:q}=o;if(q>4)o.next();else{if(V>-1&&re=0;ee-=3)W[q++]=j[ee],W[q++]=j[ee+1]-re,W[q++]=j[ee+2]-re,W[q++]=q;D.push(new bm(W,j[2]-re,r)),L.push(re-R)}}function g(R){return(N,D,L)=>{let j=0,B=N.length-1,V,W;if(B>=0&&(V=N[B])instanceof ni){if(!B&&V.type==R&&V.length==L)return V;(W=V.prop(qn.lookAhead))&&(j=D[B]+V.length+W)}return S(R,N,D,L,j)}}function O(R,N,D,L,j,B,V,W){let re=[],ee=[];for(;R.length>L;)re.push(R.pop()),ee.push(N.pop()+D-j);R.push(S(r.types[V],re,ee,B-j,W-B)),N.push(j-D)}function S(R,N,D,L,j=0,B){if(u){let V=[qn.contextHash,u];B=B?[V].concat(B):[V]}if(j>25){let V=[qn.lookAhead,j];B=B?[V].concat(B):[V]}return new ni(R,N,D,L,B)}function T(R,N){let D=o.fork(),L=0,j=0,B=0,V=D.end-i,W={size:0,start:0,skip:0};e:for(let re=D.pos-R;D.pos>re;){let ee=D.size;if(D.id==N&&ee>=0){W.size=L,W.start=j,W.skip=B,B+=4,L+=4,D.next();continue}let q=D.pos-ee;if(ee<0||q=s?4:0,K=D.start;for(D.next();D.pos>q;){if(D.size<0)if(D.size==-3)te+=4;else break e;else D.id>=s&&(te+=4);D.next()}j=K,L+=ee,B+=te}return(N<0||L==R)&&(W.size=L,W.start=j,W.skip=B),W.size>4?W:void 0}function w(R,N,D){let{id:L,start:j,end:B,size:V}=o;if(o.next(),V>=0&&L4){let re=o.pos-(V-4);for(;o.pos>re;)D=w(R,N,D)}N[--D]=W,N[--D]=B-R,N[--D]=j-R,N[--D]=L}else V==-3?u=L:V==-4&&(d=L);return D}let x=[],k=[];for(;o.pos>0;)f(e.start||0,e.bufferStart||0,x,k,-1,0);let _=(t=e.length)!==null&&t!==void 0?t:x.length?k[0]+x[0].length:0;return new ni(l[e.topID],x.reverse(),k.reverse(),_)}const uK=new WeakMap;function d_(e,t){if(!e.isAnonymous||t instanceof bm||t.type!=e)return 1;let n=uK.get(t);if(n==null){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof ni)){n=1;break}n+=d_(e,r)}uK.set(t,n)}return n}function gB(e,t,n,r,i,a,s,o,l){let u=0;for(let O=r;O=d)break;N+=D}if(k==_+1){if(N>d){let D=O[_];g(D.children,D.positions,0,D.children.length,S[_]+x);continue}f.push(O[_])}else{let D=S[k-1]+O[k-1].length-R;f.push(gB(e,O,S,_,k,R,D,null,l))}p.push(R+x-a)}}return g(t,n,r,i,0),(o||l)(f,p,s)}class Jde{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 Tf?this.setBuffer(t.context.buffer,t.index,n):t instanceof vo&&this.map.set(t.tree,n)}get(t){return t instanceof Tf?this.getBuffer(t.context.buffer,t.index):t instanceof vo?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 np{constructor(t,n,r,i,a=!1,s=!1){this.from=t,this.to=n,this.tree=r,this.offset=i,this.open=(a?1:0)|(s?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(t,n=[],r=!1){let i=[new np(0,t.length,t,0,!1,r)];for(let a of n)a.to>t.length&&i.push(a);return i}static applyChanges(t,n,r=128){if(!n.length)return t;let i=[],a=1,s=t.length?t[0]:null;for(let o=0,l=0,u=0;;o++){let d=o=r)for(;s&&s.from=p.from||f<=p.to||u){let g=Math.max(p.from,l)-u,O=Math.min(p.to,f)-u;p=g>=O?null:new np(g,O,p.tree,p.offset+u,o>0,!!d)}if(p&&i.push(p),s.to>f)break;s=anew pc(i.from,i.to)):[new pc(0,0)]:[new pc(0,t.length)],this.createParse(t,n||[],r)}parse(t,n,r){let i=this.startParse(t,n,r);for(;;){let a=i.advance();if(a)return a}}};class UWe{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 efe(e){return(t,n,r,i)=>new jWe(t,e,n,r,i)}class cK{constructor(t,n,r,i,a){this.parser=t,this.parse=n,this.overlay=r,this.target=i,this.from=a}}function dK(e){if(!e.length||e.some(t=>t.from>=t.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(e))}class zWe{constructor(t,n,r,i,a,s,o){this.parser=t,this.predicate=n,this.mounts=r,this.index=i,this.start=a,this.target=s,this.prev=o,this.depth=0,this.ranges=[]}}const wL=new qn({perNode:!0});class jWe{constructor(t,n,r,i,a){this.nest=n,this.input=r,this.fragments=i,this.ranges=a,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=t}advance(){if(this.baseParse){let r=this.baseParse.advance();if(!r)return null;if(this.baseParse=null,this.baseTree=r,this.startInner(),this.stoppedAt!=null)for(let i of this.inner)i.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let r=this.baseTree;return this.stoppedAt!=null&&(r=new ni(r.type,r.children,r.positions,r.length,r.propValues.concat([[wL,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[qn.mounted.id]=new Rw(n,t.overlay,t.parser),t.target.props=r}return null}get parsedPos(){if(this.baseParse)return 0;let t=this.input.length;for(let n=this.innerDone;n=this.stoppedAt)o=!1;else if(t.hasNode(i)){if(n){let u=n.mounts.find(d=>d.frag.from<=i.from&&d.frag.to>=i.to&&d.mount.overlay);if(u)for(let d of u.mount.overlay){let f=d.from+u.pos,p=d.to+u.pos;f>=i.from&&p<=i.to&&!n.ranges.some(g=>g.fromf)&&n.ranges.push({from:f,to:p})}}o=!1}else if(r&&(s=HWe(r.ranges,i.from,i.to)))o=s!=2;else if(!i.type.isAnonymous&&(a=this.nest(i,this.input))&&(i.fromnew pc(f.from-i.from,f.to-i.from)):null,i.tree,d.length?d[0].from:i.from)),a.overlay?d.length&&(r={ranges:d,depth:0,prev:r}):o=!1}}else n&&(l=n.predicate(i))&&(l===!0&&(l=new pc(i.from,i.to)),l.fromnew pc(d.from-n.start,d.to-n.start)),n.target,u[0].from))),n=n.prev}r&&!--r.depth&&(r=r.prev)}}}}function HWe(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 fK(e,t,n,r,i,a){if(t=t&&n.enter(r,1,Ri.IgnoreOverlays|Ri.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 ni)n=n.children[0];else break}return!1}}let WWe=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(wL))!==null&&n!==void 0?n:r.to,this.inner=new hK(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(wL))!==null&&t!==void 0?t:n.to,this.inner=new hK(n.tree,-n.offset)}}findMounts(t,n){var r;let i=[];if(this.inner){this.inner.cursor.moveTo(t,1);for(let a=this.inner.cursor.node;a;a=a.parent){let s=(r=a.tree)===null||r===void 0?void 0:r.prop(qn.mounted);if(s&&s.parser==n)for(let o=this.fragI;o=a.to)break;l.tree==this.curFrag.tree&&i.push({frag:l,pos:a.from-l.offset,mount:s})}}}return i}};function pK(e,t){let n=null,r=t;for(let i=1,a=0;i=o)break;l.to<=s||(n||(r=n=t.slice()),l.fromo&&n.splice(a+1,0,new pc(o,l.to))):l.to>o?n[a--]=new pc(o,l.to):n.splice(a--,1))}}return r}function VWe(e,t,n,r){let i=0,a=0,s=!1,o=!1,l=-1e9,u=[];for(;;){let d=i==e.length?1e9:s?e[i].to:e[i].from,f=a==t.length?1e9:o?t[a].to:t[a].from;if(s!=o){let p=Math.max(l,n),g=Math.min(d,f,r);pnew pc(p.from+r,p.to+r)),f=VWe(t,d,l,u);for(let p=0,g=l;;p++){let O=p==f.length,S=O?u:f[p].from;if(S>g&&n.push(new np(g,S,i.tree,-s,a.from>=g||a.openStart,a.to<=S||a.openEnd)),O)break;g=f[p].to}}else n.push(new np(l,u,i.tree,-s,a.from>=s||a.openStart,a.to<=o||a.openEnd))}return n}let qWe=0;class pu{constructor(t,n,r,i){this.name=t,this.set=n,this.base=r,this.modified=i,this.id=qWe++}toString(){let{name:t}=this;for(let n of this.modified)n.name&&(t=`${n.name}(${t})`);return t}static define(t,n){let r=typeof t=="string"?t:"?";if(t instanceof pu&&(n=t),n!=null&&n.base)throw new Error("Can not derive from a modified tag");let i=new pu(r,[],null,[]);if(i.set.push(i),n)for(let a of n.set)i.set.push(a);return i}static defineModifier(t){let n=new ZC(t);return r=>r.modified.indexOf(n)>-1?r:ZC.get(r.base||r,r.modified.concat(n).sort((i,a)=>i.id-a.id))}}let GWe=0;class ZC{constructor(t){this.name=t,this.instances=[],this.id=GWe++}static get(t,n){if(!n.length)return t;let r=n[0].instances.find(o=>o.base==t&&YWe(n,o.modified));if(r)return r;let i=[],a=new pu(t.name,i,t,n);for(let o of n)o.instances.push(a);let s=ZWe(n);for(let o of t.set)if(!o.modified.length)for(let l of s)i.push(ZC.get(o,l));return a}}function YWe(e,t){return e.length==t.length&&e.every((n,r)=>n==t[r])}function ZWe(e){let t=[[]];for(let n=0;nr.length-n.length)}function kO(e){let t=Object.create(null);for(let n in e){let r=e[n];Array.isArray(r)||(r=[r]);for(let i of n.split(" "))if(i){let a=[],s=2,o=i;for(let f=0;;){if(o=="..."&&f>0&&f+3==i.length){s=1;break}let p=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(o);if(!p)throw new RangeError("Invalid path: "+i);if(a.push(p[0]=="*"?"":p[0][0]=='"'?JSON.parse(p[0]):p[0]),f+=p[0].length,f==i.length)break;let g=i[f++];if(f==i.length&&g=="!"){s=0;break}if(g!="/")throw new RangeError("Invalid path: "+i);o=i.slice(f)}let l=a.length-1,u=a[l];if(!u)throw new RangeError("Invalid path: "+i);let d=new XC(r,s,l>0?a.slice(0,l):null);t[u]=d.sort(t[u])}}return tfe.add(t)}const tfe=new qn;class XC{constructor(t,n,r,i){this.tags=t,this.mode=n,this.context=r,this.next=i}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(t){return!t||t.depth{let s=i;for(let o of a)for(let l of o.set){let u=n[l.id];if(u){s=s?s+" "+u:u;break}}return s},scope:r}}function XWe(e,t){let n=null;for(let r of e){let i=r.style(t);i&&(n=n?n+" "+i:i)}return n}function KWe(e,t,n,r=0,i=e.length){let a=new JWe(r,Array.isArray(t)?t:[t],n);a.highlightRange(e.cursor(),r,i,"",a.highlighters),a.flush(i)}class JWe{constructor(t,n,r){this.at=t,this.highlighters=n,this.span=r,this.class=""}startSpan(t,n){n!=this.class&&(this.flush(t),t>this.at&&(this.at=t),this.class=n)}flush(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}highlightRange(t,n,r,i,a){let{type:s,from:o,to:l}=t;if(o>=r||l<=n)return;s.isTop&&(a=this.highlighters.filter(g=>!g.scope||g.scope(s)));let u=i,d=eVe(t)||XC.empty,f=XWe(a,d.tags);if(f&&(u&&(u+=" "),u+=f,d.mode==1&&(i+=(i?" ":"")+f)),this.startSpan(Math.max(n,o),u),d.opaque)return;let p=t.tree&&t.tree.prop(qn.mounted);if(p&&p.overlay){let g=t.node.enter(p.overlay[0].from+o,1),O=this.highlighters.filter(T=>!T.scope||T.scope(p.tree.type)),S=t.firstChild();for(let T=0,w=o;;T++){let x=T=k||!t.nextSibling())););if(!x||k>r)break;w=x.to+o,w>n&&(this.highlightRange(g.cursor(),Math.max(n,x.from+o),Math.min(r,w),"",O),this.startSpan(Math.min(r,w),u))}S&&t.parent()}else if(t.firstChild()){p&&(i="");do if(!(t.to<=n)){if(t.from>=r)break;this.highlightRange(t,n,r,i,a),this.startSpan(Math.min(r,t.to),u)}while(t.nextSibling());t.parent()}}}function eVe(e){let t=e.type.prop(tfe);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}const Zt=pu.define,zA=Zt(),g0=Zt(),gK=Zt(g0),bK=Zt(g0),b0=Zt(),jA=Zt(b0),ED=Zt(b0),sf=Zt(),hg=Zt(sf),nf=Zt(),rf=Zt(),TL=Zt(),cE=Zt(TL),HA=Zt(),ge={comment:zA,lineComment:Zt(zA),blockComment:Zt(zA),docComment:Zt(zA),name:g0,variableName:Zt(g0),typeName:gK,tagName:Zt(gK),propertyName:bK,attributeName:Zt(bK),className:Zt(g0),labelName:Zt(g0),namespace:Zt(g0),macroName:Zt(g0),literal:b0,string:jA,docString:Zt(jA),character:Zt(jA),attributeValue:Zt(jA),number:ED,integer:Zt(ED),float:Zt(ED),bool:Zt(b0),regexp:Zt(b0),escape:Zt(b0),color:Zt(b0),url:Zt(b0),keyword:nf,self:Zt(nf),null:Zt(nf),atom:Zt(nf),unit:Zt(nf),modifier:Zt(nf),operatorKeyword:Zt(nf),controlKeyword:Zt(nf),definitionKeyword:Zt(nf),moduleKeyword:Zt(nf),operator:rf,derefOperator:Zt(rf),arithmeticOperator:Zt(rf),logicOperator:Zt(rf),bitwiseOperator:Zt(rf),compareOperator:Zt(rf),updateOperator:Zt(rf),definitionOperator:Zt(rf),typeOperator:Zt(rf),controlOperator:Zt(rf),punctuation:TL,separator:Zt(TL),bracket:cE,angleBracket:Zt(cE),squareBracket:Zt(cE),paren:Zt(cE),brace:Zt(cE),content:sf,heading:hg,heading1:Zt(hg),heading2:Zt(hg),heading3:Zt(hg),heading4:Zt(hg),heading5:Zt(hg),heading6:Zt(hg),contentSeparator:Zt(sf),list:Zt(sf),quote:Zt(sf),emphasis:Zt(sf),strong:Zt(sf),link:Zt(sf),monospace:Zt(sf),strikethrough:Zt(sf),inserted:Zt(),deleted:Zt(),changed:Zt(),invalid:Zt(),meta:HA,documentMeta:Zt(HA),annotation:Zt(HA),processingInstruction:Zt(HA),definition:pu.defineModifier("definition"),constant:pu.defineModifier("constant"),function:pu.defineModifier("function"),standard:pu.defineModifier("standard"),local:pu.defineModifier("local"),special:pu.defineModifier("special")};for(let e in ge){let t=ge[e];t instanceof pu&&(t.name=e)}nfe([{tag:ge.link,class:"tok-link"},{tag:ge.heading,class:"tok-heading"},{tag:ge.emphasis,class:"tok-emphasis"},{tag:ge.strong,class:"tok-strong"},{tag:ge.keyword,class:"tok-keyword"},{tag:ge.atom,class:"tok-atom"},{tag:ge.bool,class:"tok-bool"},{tag:ge.url,class:"tok-url"},{tag:ge.labelName,class:"tok-labelName"},{tag:ge.inserted,class:"tok-inserted"},{tag:ge.deleted,class:"tok-deleted"},{tag:ge.literal,class:"tok-literal"},{tag:ge.string,class:"tok-string"},{tag:ge.number,class:"tok-number"},{tag:[ge.regexp,ge.escape,ge.special(ge.string)],class:"tok-string2"},{tag:ge.variableName,class:"tok-variableName"},{tag:ge.local(ge.variableName),class:"tok-variableName tok-local"},{tag:ge.definition(ge.variableName),class:"tok-variableName tok-definition"},{tag:ge.special(ge.variableName),class:"tok-variableName2"},{tag:ge.definition(ge.propertyName),class:"tok-propertyName tok-definition"},{tag:ge.typeName,class:"tok-typeName"},{tag:ge.namespace,class:"tok-namespace"},{tag:ge.className,class:"tok-className"},{tag:ge.macroName,class:"tok-macroName"},{tag:ge.propertyName,class:"tok-propertyName"},{tag:ge.operator,class:"tok-operator"},{tag:ge.comment,class:"tok-comment"},{tag:ge.meta,class:"tok-meta"},{tag:ge.invalid,class:"tok-invalid"},{tag:ge.punctuation,class:"tok-punctuation"}]);var wD;const zg=new qn;function yB(e){return an.define({combine:e?t=>t.concat(e):void 0})}const vB=new qn;class mc{constructor(t,n,r=[],i=""){this.data=t,this.name=i,Dr.prototype.hasOwnProperty("tree")||Object.defineProperty(Dr.prototype,"tree",{get(){return Di(this)}}),this.parser=n,this.extension=[ym.of(this),Dr.languageData.of((a,s,o)=>{let l=yK(a,s,o),u=l.type.prop(zg);if(!u)return[];let d=a.facet(u),f=l.type.prop(vB);if(f){let p=l.resolve(s-l.from,o);for(let g of f)if(g.test(p,a)){let O=a.facet(g.facet);return g.type=="replace"?O:O.concat(d)}}return d})].concat(r)}isActiveAt(t,n,r=-1){return yK(t,n,r).type.prop(zg)==this.data}findRegions(t){let n=t.facet(ym);if((n==null?void 0:n.data)==this.data)return[{from:0,to:t.doc.length}];if(!n||!n.allowsNesting)return[];let r=[],i=(a,s)=>{if(a.prop(zg)==this.data){r.push({from:s,to:s+a.length});return}let o=a.prop(qn.mounted);if(o){if(o.tree.prop(zg)==this.data){if(o.overlay)for(let l of o.overlay)r.push({from:l.from+s,to:l.to+s});else r.push({from:s,to:s+a.length});return}else if(o.overlay){let l=r.length;if(i(o.tree,o.overlay[0].from+s),r.length>l)return}}for(let l=0;lr.isTop?n:void 0)]}),t.name)}configure(t,n){return new Bv(this.data,this.parser.configure(t),n||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Di(e){let t=e.field(mc.state,!1);return t?t.tree:ni.empty}class tVe{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 dE=null;class Nw{constructor(t,n,r=[],i,a,s,o,l){this.parser=t,this.state=n,this.fragments=r,this.tree=i,this.treeLen=a,this.viewport=s,this.skipped=o,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(t,n,r){return new Nw(t,n,[],ni.empty,0,r,[],null)}startParse(){return this.parser.startParse(new tVe(this.state.doc),this.fragments)}work(t,n){return n!=null&&n>=this.state.doc.length&&(n=void 0),this.tree!=ni.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(np.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let n=dE;dE=this;try{return t()}finally{dE=n}}withoutTempSkipped(t){for(let n;n=this.tempSkipped.pop();)t=vK(t,n.from,n.to);return t}changes(t,n){let{fragments:r,tree:i,treeLen:a,viewport:s,skipped:o}=this;if(this.takeTree(),!t.empty){let l=[];if(t.iterChangedRanges((u,d,f,p)=>l.push({fromA:u,toA:d,fromB:f,toB:p})),r=np.applyChanges(r,l),i=ni.empty,a=0,s={from:t.mapPos(s.from,-1),to:t.mapPos(s.to,1)},this.skipped.length){o=[];for(let u of this.skipped){let d=t.mapPos(u.from,1),f=t.mapPos(u.to,-1);dt.from&&(this.fragments=vK(this.fragments,i,a),this.skipped.splice(r--,1))}return this.skipped.length>=n?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(t,n){this.skipped.push({from:t,to:n})}static getSkippingParser(t){return new class extends bB{createParse(n,r,i){let a=i[0].from,s=i[i.length-1].to;return{parsedPos:a,advance(){let l=dE;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=s,new ni(ls.none,[],[],s-a)},stoppedAt:null,stopAt(){}}}}}isDone(t){t=Math.min(t,this.state.doc.length);let n=this.fragments;return this.treeLen>=t&&n.length&&n[0].from==0&&n[0].to>=t}static get(){return dE}}function vK(e,t,n){return np.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class Uv{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 Uv(n)}static init(t){let n=Math.min(3e3,t.doc.length),r=Nw.create(t.facet(ym).parser,t,{from:0,to:n});return r.work(20,n)||r.takeTree(),new Uv(r)}}mc.state=ws.define({create:Uv.init,update(e,t){for(let n of t.effects)if(n.is(mc.setState))return n.value;return t.startState.facet(ym)!=t.state.facet(ym)?Uv.init(t.state):e.apply(t)}});let rfe=e=>{let t=setTimeout(()=>e(),500);return()=>clearTimeout(t)};typeof requestIdleCallback<"u"&&(rfe=e=>{let t=-1,n=setTimeout(()=>{t=requestIdleCallback(e,{timeout:400})},100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});const TD=typeof navigator<"u"&&(!((wD=navigator.scheduling)===null||wD===void 0)&&wD.isInputPending)?()=>navigator.scheduling.isInputPending():null,nVe=ha.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(mc.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(mc.state);(n.tree!=n.context.tree||!n.context.isDone(t.doc.length))&&(this.working=rfe(this.work))}work(t){this.working=null;let n=Date.now();if(this.chunkEndi+1e3,l=a.context.work(()=>TD&&TD()||Date.now()>s,i+(o?0:1e5));this.chunkBudget-=Date.now()-n,(l||this.chunkBudget<=0)&&(a.context.takeTree(),this.view.dispatch({effects:mc.setState.of(new Uv(a.context))})),this.chunkBudget>0&&!(l&&!o)&&this.scheduleWork(),this.checkAsyncSchedule(a.context)}checkAsyncSchedule(t){t.scheduleOn&&(this.workScheduled++,t.scheduleOn.then(()=>this.scheduleWork()).catch(n=>xl(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()}}}),ym=an.define({combine(e){return e.length?e[0]:null},enables:e=>[mc.state,nVe,Kt.contentAttributes.compute([e],t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}})]});class Dw{constructor(t,n=[]){this.language=t,this.support=n,this.extension=[t,n]}}class KC{constructor(t,n,r,i,a,s=void 0){this.name=t,this.alias=n,this.extensions=r,this.filename=i,this.loadFunc=a,this.support=s,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(t=>this.support=t,t=>{throw this.loading=null,t}))}static of(t){let{load:n,support:r}=t;if(!n){if(!r)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");n=()=>Promise.resolve(r)}return new KC(t.name,(t.alias||[]).concat(t.name).map(i=>i.toLowerCase()),t.extensions||[],t.filename,n,r)}static matchFilename(t,n){for(let i of t)if(i.filename&&i.filename.test(n))return i;let r=/\.([^.]+)$/.exec(n);if(r){for(let i of t)if(i.extensions.indexOf(r[1])>-1)return i}return null}static matchLanguageName(t,n,r=!0){n=n.toLowerCase();for(let i of t)if(i.alias.some(a=>a==n))return i;if(r)for(let i of t)for(let a of i.alias){let s=n.indexOf(a);if(s>-1&&(a.length>2||!/\w/.test(n[s-1])&&!/\w/.test(n[s+a.length])))return i}return null}}const rVe=an.define(),jT=an.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 JC(e){let t=e.facet(jT);return t.charCodeAt(0)==9?e.tabSize*t.length:t.length}function Pw(e,t){let n="",r=e.tabSize,i=e.facet(jT)[0];if(i==" "){for(;t>=r;)n+=" ",t-=r;i=" "}for(let a=0;a=t?iVe(e,n,t):null}class LR{constructor(t,n={}){this.state=t,this.options=n,this.unit=JC(t)}lineAt(t,n=1){let r=this.state.doc.lineAt(t),{simulateBreak:i,simulateDoubleBreak:a}=this.options;return i!=null&&i>=r.from&&i<=r.to?a&&i==t?{text:"",from:t}:(n<0?i-1&&(a+=s-this.countColumn(r,r.search(/\S|$/))),a}countColumn(t,n=t.length){return Cd(t,this.state.tabSize,n)}lineIndent(t,n=1){let{text:r,from:i}=this.lineAt(t,n),a=this.options.overrideIndentation;if(a){let s=a(i);if(s>-1)return s}return this.countColumn(r,r.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const HT=new qn;function iVe(e,t,n){let r=t.resolveStack(n),i=r.node.enterUnfinishedNodesBefore(n);if(i!=r.node){let a=[];for(let s=i;s!=r.node;s=s.parent)a.push(s);for(let s=a.length-1;s>=0;s--)r={node:a[s],next:r}}return ife(r,e,n)}function ife(e,t,n){for(let r=e;r;r=r.next){let i=sVe(r.node);if(i)return i(SB.create(t,n,r))}return 0}function aVe(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}function sVe(e){let t=e.type.prop(HT);if(t)return t;let n=e.firstChild,r;if(n&&(r=n.type.prop(qn.closedBy))){let i=e.lastChild,a=i&&r.indexOf(i.name)>-1;return s=>afe(s,!0,1,void 0,a&&!aVe(s)?i.from:void 0)}return e.parent==null?oVe:null}function oVe(){return 0}class SB extends LR{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 SB(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(lVe(r,t))break;n=this.state.doc.lineAt(r.from)}return this.lineIndent(n.from)}continue(){return ife(this.context.next,this.base,this.pos)}}function lVe(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}function uVe(e){let t=e.node,n=t.childAfter(t.from),r=t.lastChild;if(!n)return null;let i=e.options.simulateBreak,a=e.state.doc.lineAt(n.from),s=i==null||i<=a.from?a.to:Math.min(a.to,i);for(let o=n.to;;){let l=t.childAfter(o);if(!l||l==r)return null;if(!l.type.isSkipped)return l.fromafe(r,t,n,e)}function afe(e,t,n,r,i){let a=e.textAfter,s=a.match(/^\s*/)[0].length,o=r&&a.slice(s,s+r.length)==r||i==e.pos+s,l=t?uVe(e):null;return l?o?e.column(l.from):e.column(l.to):e.baseIndent+(o?0:e.unit*n)}const dVe=e=>e.baseIndent;function f_({except:e,units:t=1}={}){return n=>{let r=e&&e.test(n.textAfter);return n.baseIndent+(r?0:t*n.unit)}}const fVe=200;function hVe(){return Dr.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+fVe)return e;let a=n.sliceString(i.from,r);if(!t.some(u=>u.test(a)))return e;let{state:s}=e,o=-1,l=[];for(let{head:u}of s.selection.ranges){let d=s.doc.lineAt(u);if(d.from==o)continue;o=d.from;let f=OB(s,d.from);if(f==null)continue;let p=/^\s*/.exec(d.text)[0],g=Pw(s,f);p!=g&&l.push({from:d.from,to:d.from+p.length,insert:g})}return l.length?[e,{changes:l,sequential:!0}]:e})}const sfe=an.define(),AO=new qn;function ofe(e){let t=e.firstChild,n=e.lastChild;return t&&t.ton)continue;if(a&&o.from=t&&u.to>n&&(a=u)}}return a}function mVe(e){let t=e.lastChild;return t&&t.to==e.to&&t.type.isError}function e3(e,t,n){for(let r of e.facet(sfe)){let i=r(e,t,n);if(i)return i}return pVe(e,t,n)}function lfe(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 MR=Zn.define({map:lfe}),QT=Zn.define({map:lfe});function ufe(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 T1=ws.define({create(){return gn.none},update(e,t){e=e.map(t.changes);for(let n of t.effects)if(n.is(MR)&&!gVe(e,n.value.from,n.value.to)){let{preparePlaceholder:r}=t.state.facet(ffe),i=r?gn.replace({widget:new wVe(r(t.state,n.value))}):OK;e=e.update({add:[i.range(n.value.from,n.value.to)]})}else n.is(QT)&&(e=e.update({filter:(r,i)=>n.value.from!=r||n.value.to!=i,filterFrom:n.value.from,filterTo:n.value.to}));if(t.selection){let n=!1,{head:r}=t.selection.main;e.between(r,r,(i,a)=>{ir&&(n=!0)}),n&&(e=e.update({filterFrom:r,filterTo:r,filter:(i,a)=>a<=r||i>=r}))}return e},provide:e=>Kt.decorations.from(e),toJSON(e,t){let n=[];return e.between(0,t.doc.length,(r,i)=>{n.push(r,i)}),n},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let n=0;n{(!i||i.from>a)&&(i={from:a,to:s})}),i}function gVe(e,t,n){let r=!1;return e.between(t,t,(i,a)=>{i==t&&a==n&&(r=!0)}),r}function cfe(e,t){return e.field(T1,!1)?t:t.concat(Zn.appendConfig.of(hfe()))}const bVe=e=>{for(let t of ufe(e)){let n=e3(e.state,t.from,t.to);if(n)return e.dispatch({effects:cfe(e.state,[MR.of(n),dfe(e,n)])}),!0}return!1},yVe=e=>{if(!e.state.field(T1,!1))return!1;let t=[];for(let n of ufe(e)){let r=t3(e.state,n.from,n.to);r&&t.push(QT.of(r),dfe(e,r,!1))}return t.length&&e.dispatch({effects:t}),t.length>0};function dfe(e,t,n=!0){let r=e.state.doc.lineAt(t.from).number,i=e.state.doc.lineAt(t.to).number;return Kt.announce.of(`${e.state.phrase(n?"Folded lines":"Unfolded lines")} ${r} ${e.state.phrase("to")} ${i}.`)}const vVe=e=>{let{state:t}=e,n=[];for(let r=0;r{let t=e.state.field(T1,!1);if(!t||!t.size)return!1;let n=[];return t.between(0,e.state.doc.length,(r,i)=>{n.push(QT.of({from:r,to:i}))}),e.dispatch({effects:n}),!0},SVe=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:bVe},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:yVe},{key:"Ctrl-Alt-[",run:vVe},{key:"Ctrl-Alt-]",run:OVe}],EVe={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},ffe=an.define({combine(e){return Yf(e,EVe)}});function hfe(e){return[T1,kVe]}function pfe(e,t){let{state:n}=e,r=n.facet(ffe),i=s=>{let o=e.lineBlockAt(e.posAtDOM(s.target)),l=t3(e.state,o.from,o.to);l&&e.dispatch({effects:QT.of(l)}),s.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(e,i,t);let a=document.createElement("span");return a.textContent=r.placeholderText,a.setAttribute("aria-label",n.phrase("folded code")),a.title=n.phrase("unfold"),a.className="cm-foldPlaceholder",a.onclick=i,a}const OK=gn.replace({widget:new class extends Md{toDOM(e){return pfe(e,null)}}});class wVe extends Md{constructor(t){super(),this.value=t}eq(t){return this.value==t.value}toDOM(t){return pfe(t,this.value)}}const TVe={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class xD extends gp{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 xVe(e={}){let t=Object.assign(Object.assign({},TVe),e),n=new xD(t,!0),r=new xD(t,!1),i=ha.fromClass(class{constructor(s){this.from=s.viewport.from,this.markers=this.buildMarkers(s)}update(s){(s.docChanged||s.viewportChanged||s.startState.facet(ym)!=s.state.facet(ym)||s.startState.field(T1,!1)!=s.state.field(T1,!1)||Di(s.startState)!=Di(s.state)||t.foldingChanged(s))&&(this.markers=this.buildMarkers(s.view))}buildMarkers(s){let o=new hm;for(let l of s.viewportLineBlocks){let u=t3(s.state,l.from,l.to)?r:e3(s.state,l.from,l.to)?n:null;u&&o.add(l.from,l.from,u)}return o.finish()}}),{domEventHandlers:a}=t;return[i,wWe({class:"cm-foldGutter",markers(s){var o;return((o=s.plugin(i))===null||o===void 0?void 0:o.markers)||Cr.empty},initialSpacer(){return new xD(t,!1)},domEventHandlers:Object.assign(Object.assign({},a),{click:(s,o,l)=>{if(a.click&&a.click(s,o,l))return!0;let u=t3(s.state,o.from,o.to);if(u)return s.dispatch({effects:QT.of(u)}),!0;let d=e3(s.state,o.from,o.to);return d?(s.dispatch({effects:MR.of(d)}),!0):!1}})}),hfe()]}const kVe=Kt.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 WT{constructor(t,n){this.specs=t;let r;function i(o){let l=pm.newName();return(r||(r=Object.create(null)))["."+l]=o,l}const a=typeof n.all=="string"?n.all:n.all?i(n.all):void 0,s=n.scope;this.scope=s instanceof mc?o=>o.prop(zg)==s.data:s?o=>o==s:void 0,this.style=nfe(t.map(o=>({tag:o.tag,class:o.class||i(Object.assign({},o,{tag:null}))})),{all:a}).style,this.module=r?new pm(r):null,this.themeType=n.themeType}static define(t,n){return new WT(t,n||{})}}const xL=an.define(),mfe=an.define({combine(e){return e.length?[e[0]]:null}});function kD(e){let t=e.facet(xL);return t.length?t:e.facet(mfe)}function gfe(e,t){let n=[_Ve],r;return e instanceof WT&&(e.module&&n.push(Kt.styleModule.of(e.module)),r=e.themeType),t!=null&&t.fallback?n.push(mfe.of(e)):r?n.push(xL.computeN([Kt.darkTheme],i=>i.facet(Kt.darkTheme)==(r=="dark")?[e]:[])):n.push(xL.of(e)),n}class AVe{constructor(t){this.markCache=Object.create(null),this.tree=Di(t.state),this.decorations=this.buildDeco(t,kD(t.state)),this.decoratedTo=t.viewport.to}update(t){let n=Di(t.state),r=kD(t.state),i=r!=kD(t.startState),{viewport:a}=t.view,s=t.changes.mapPos(this.decoratedTo,1);n.length=a.to?(this.decorations=this.decorations.map(t.changes),this.decoratedTo=s):(n!=this.tree||t.viewportChanged||i)&&(this.tree=n,this.decorations=this.buildDeco(t.view,r),this.decoratedTo=a.to)}buildDeco(t,n){if(!n||!this.tree.length)return gn.none;let r=new hm;for(let{from:i,to:a}of t.visibleRanges)KWe(this.tree,n,(s,o,l)=>{r.add(s,o,this.markCache[l]||(this.markCache[l]=gn.mark({class:l})))},i,a);return r.finish()}}const _Ve=Rp.high(ha.fromClass(AVe,{decorations:e=>e.decorations})),CVe=WT.define([{tag:ge.meta,color:"#404740"},{tag:ge.link,textDecoration:"underline"},{tag:ge.heading,textDecoration:"underline",fontWeight:"bold"},{tag:ge.emphasis,fontStyle:"italic"},{tag:ge.strong,fontWeight:"bold"},{tag:ge.strikethrough,textDecoration:"line-through"},{tag:ge.keyword,color:"#708"},{tag:[ge.atom,ge.bool,ge.url,ge.contentSeparator,ge.labelName],color:"#219"},{tag:[ge.literal,ge.inserted],color:"#164"},{tag:[ge.string,ge.deleted],color:"#a11"},{tag:[ge.regexp,ge.escape,ge.special(ge.string)],color:"#e40"},{tag:ge.definition(ge.variableName),color:"#00f"},{tag:ge.local(ge.variableName),color:"#30a"},{tag:[ge.typeName,ge.namespace],color:"#085"},{tag:ge.className,color:"#167"},{tag:[ge.special(ge.variableName),ge.macroName],color:"#256"},{tag:ge.definition(ge.propertyName),color:"#00c"},{tag:ge.comment,color:"#940"},{tag:ge.invalid,color:"#f00"}]),RVe=Kt.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),bfe=1e4,yfe="()[]{}",vfe=an.define({combine(e){return Yf(e,{afterCursor:!0,brackets:yfe,maxScanDistance:bfe,renderMatch:DVe})}}),IVe=gn.mark({class:"cm-matchingBracket"}),NVe=gn.mark({class:"cm-nonmatchingBracket"});function DVe(e){let t=[],n=e.matched?IVe:NVe;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 PVe=ws.define({create(){return gn.none},update(e,t){if(!t.docChanged&&!t.selection)return e;let n=[],r=t.state.facet(vfe);for(let i of t.state.selection.ranges){if(!i.empty)continue;let a=xf(t.state,i.head,-1,r)||i.head>0&&xf(t.state,i.head-1,1,r)||r.afterCursor&&(xf(t.state,i.head,1,r)||i.headKt.decorations.from(e)}),LVe=[PVe,RVe];function MVe(e={}){return[vfe.of(e),LVe]}const Ofe=new qn;function kL(e,t,n){let r=e.prop(t<0?qn.openedBy:qn.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 AL(e){let t=e.type.prop(Ofe);return t?t(e.node):e}function xf(e,t,n,r={}){let i=r.maxScanDistance||bfe,a=r.brackets||yfe,s=Di(e),o=s.resolveInner(t,n);for(let l=o;l;l=l.parent){let u=kL(l.type,n,a);if(u&&l.from0?t>=d.from&&td.from&&t<=d.to))return $Ve(e,t,n,l,d,u,a)}}return FVe(e,t,n,s,o.type,i,a)}function $Ve(e,t,n,r,i,a,s){let o=r.parent,l={from:i.from,to:i.to},u=0,d=o==null?void 0:o.cursor();if(d&&(n<0?d.childBefore(r.from):d.childAfter(r.to)))do if(n<0?d.to<=r.from:d.from>=r.to){if(u==0&&a.indexOf(d.type.name)>-1&&d.from0)return null;let u={from:n<0?t-1:t,to:n>0?t+1:t},d=e.doc.iterRange(t,n>0?e.doc.length:0),f=0;for(let p=0;!d.next().done&&p<=a;){let g=d.value;n<0&&(p+=g.length);let O=t+p*n;for(let S=n>0?0:g.length-1,T=n>0?g.length:-1;S!=T;S+=n){let w=s.indexOf(g[S]);if(!(w<0||r.resolveInner(O+S,1).type!=i))if(w%2==0==n>0)f++;else{if(f==1)return{start:u,end:{from:O+S,to:O+S+1},matched:w>>1==l>>1};f--}}n>0&&(p+=g.length)}return d.done?{start:u,matched:!1}:null}const BVe=Object.create(null),SK=[ls.none],EK=[],wK=Object.create(null),UVe=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"]])UVe[e]=zVe(BVe,t);function AD(e,t){EK.indexOf(e)>-1||(EK.push(e),console.warn(t))}function zVe(e,t){let n=[];for(let o of t.split(" ")){let l=[];for(let u of o.split(".")){let d=e[u]||ge[u];d?typeof d=="function"?l.length?l=l.map(d):AD(u,`Modifier ${u} used at start of tag`):l.length?AD(u,`Tag ${u} used as modifier`):l=Array.isArray(d)?d:[d]:AD(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(o=>o.id),a=wK[i];if(a)return a.id;let s=wK[i]=ls.define({id:SK.length,name:r,props:[kO({[r]:n})]});return SK.push(s),s.id}zi.RTL,zi.LTR;const jVe=e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=wB(e.state,n.from);return r.line?HVe(e):r.block?WVe(e):!1};function EB(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 HVe=EB(GVe,0),QVe=EB(Sfe,0),WVe=EB((e,t)=>Sfe(e,t,qVe(t)),0);function wB(e,t){let n=e.languageDataAt("commentTokens",t);return n.length?n[0]:{}}const fE=50;function VVe(e,{open:t,close:n},r,i){let a=e.sliceDoc(r-fE,r),s=e.sliceDoc(i,i+fE),o=/\s*$/.exec(a)[0].length,l=/^\s*/.exec(s)[0].length,u=a.length-o;if(a.slice(u-t.length,u)==t&&s.slice(l,l+n.length)==n)return{open:{pos:r-o,margin:o&&1},close:{pos:i+l,margin:l&&1}};let d,f;i-r<=2*fE?d=f=e.sliceDoc(r,i):(d=e.sliceDoc(r,r+fE),f=e.sliceDoc(i-fE,i));let p=/^\s*/.exec(d)[0].length,g=/\s*$/.exec(f)[0].length,O=f.length-g-n.length;return d.slice(p,p+t.length)==t&&f.slice(O,O+n.length)==n?{open:{pos:r+p+t.length,margin:/\s/.test(d.charAt(p+t.length))?1:0},close:{pos:i-g-n.length,margin:/\s/.test(f.charAt(O-1))?1:0}}:null}function qVe(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),i=n.to<=r.to?r:e.doc.lineAt(n.to),a=t.length-1;a>=0&&t[a].to>r.from?t[a].to=i.to:t.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to})}return t}function Sfe(e,t,n=t.selection.ranges){let r=n.map(a=>wB(t,a.from).block);if(!r.every(a=>a))return null;let i=n.map((a,s)=>VVe(t,r[s],a.from,a.to));if(e!=2&&!i.every(a=>a))return{changes:t.changes(n.map((a,s)=>i[s]?[]:[{from:a.from,insert:r[s].open+" "},{from:a.to,insert:" "+r[s].close}]))};if(e!=1&&i.some(a=>a)){let a=[];for(let s=0,o;si&&(a==s||s>f.from)){i=f.from;let p=/^\s*/.exec(f.text)[0].length,g=p==f.length,O=f.text.slice(p,p+u.length)==u?p:-1;pa.comment<0&&(!a.empty||a.single))){let a=[];for(let{line:o,token:l,indent:u,empty:d,single:f}of r)(f||!d)&&a.push({from:o.from+u,insert:l+" "});let s=t.changes(a);return{changes:s,selection:t.selection.map(s,1)}}else if(e!=1&&r.some(a=>a.comment>=0)){let a=[];for(let{line:s,comment:o,token:l}of r)if(o>=0){let u=s.from+o,d=u+l.length;s.text[d-s.from]==" "&&d++,a.push({from:u,to:d})}return{changes:a}}return null}const _L=Ld.define(),YVe=Ld.define(),ZVe=an.define(),Efe=an.define({combine(e){return Yf(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)})}}),wfe=ws.define({create(){return kf.empty},update(e,t){let n=t.state.facet(Efe),r=t.annotation(_L);if(r){let l=kl.fromTransaction(t,r.selection),u=r.side,d=u==0?e.undone:e.done;return l?d=n3(d,d.length,n.minDepth,l):d=kfe(d,t.startState.selection),new kf(u==0?r.rest:d,u==0?d:r.rest)}let i=t.annotation(YVe);if((i=="full"||i=="before")&&(e=e.isolate()),t.annotation(os.addToHistory)===!1)return t.changes.empty?e:e.addMapping(t.changes.desc);let a=kl.fromTransaction(t),s=t.annotation(os.time),o=t.annotation(os.userEvent);return a?e=e.addChanges(a,s,o,n,t):t.selection&&(e=e.addSelection(t.startState.selection,s,o,n.newGroupDelay)),(i=="full"||i=="after")&&(e=e.isolate()),e},toJSON(e){return{done:e.done.map(t=>t.toJSON()),undone:e.undone.map(t=>t.toJSON())}},fromJSON(e){return new kf(e.done.map(kl.fromJSON),e.undone.map(kl.fromJSON))}});function XVe(e={}){return[wfe,Efe.of(e),Kt.domEventHandlers({beforeinput(t,n){let r=t.inputType=="historyUndo"?Tfe:t.inputType=="historyRedo"?CL:null;return r?(t.preventDefault(),r(n)):!1}})]}function $R(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return!1;let i=n.field(wfe,!1);if(!i)return!1;let a=i.pop(e,n,t);return a?(r(a),!0):!1}}const Tfe=$R(0,!1),CL=$R(1,!1),KVe=$R(0,!0),JVe=$R(1,!0);class kl{constructor(t,n,r,i,a){this.changes=t,this.effects=n,this.mapped=r,this.startSelection=i,this.selectionsAfter=a}setSelAfter(t){return new kl(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 kl(t.changes&&ns.fromJSON(t.changes),[],t.mapped&&Mf.fromJSON(t.mapped),t.startSelection&&ht.fromJSON(t.startSelection),t.selectionsAfter.map(ht.fromJSON))}static fromTransaction(t,n){let r=gc;for(let i of t.startState.facet(ZVe)){let a=i(t);a.length&&(r=r.concat(a))}return!r.length&&t.changes.empty?null:new kl(t.changes.invert(t.startState.doc),r,void 0,n||t.startState.selection,gc)}static selection(t){return new kl(void 0,gc,void 0,void 0,t)}}function n3(e,t,n,r){let i=t+1>n+20?t-n-1:0,a=e.slice(i,t);return a.push(r),a}function eqe(e,t){let n=[],r=!1;return e.iterChangedRanges((i,a)=>n.push(i,a)),t.iterChangedRanges((i,a,s,o)=>{for(let l=0;l=u&&s<=d&&(r=!0)}}),r}function tqe(e,t){return e.ranges.length==t.ranges.length&&e.ranges.filter((n,r)=>n.empty!=t.ranges[r].empty).length===0}function xfe(e,t){return e.length?t.length?e.concat(t):e:t}const gc=[],nqe=200;function kfe(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-nqe));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),n3(e,e.length-1,1e9,n.setSelAfter(r)))}else return[kl.selection([t])]}function rqe(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 _D(e,t){if(!e.length)return e;let n=e.length,r=gc;for(;n;){let i=iqe(e[n-1],t,r);if(i.changes&&!i.changes.empty||i.effects.length){let a=e.slice(0,n);return a[n-1]=i,a}else t=i.mapped,n--,r=i.selectionsAfter}return r.length?[kl.selection(r)]:gc}function iqe(e,t,n){let r=xfe(e.selectionsAfter.length?e.selectionsAfter.map(o=>o.map(t)):gc,n);if(!e.changes)return kl.selection(r);let i=e.changes.map(t),a=t.mapDesc(e.changes,!0),s=e.mapped?e.mapped.composeDesc(a):a;return new kl(i,Zn.mapEffects(e.effects,t),s,e.startSelection.map(a),r)}const aqe=/^(input\.type|delete)($|\.)/;class kf{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 kf(this.done,this.undone):this}addChanges(t,n,r,i,a){let s=this.done,o=s[s.length-1];return o&&o.changes&&!o.changes.empty&&t.changes&&(!r||aqe.test(r))&&(!o.selectionsAfter.length&&n-this.prevTime0&&n-this.prevTimen.empty?e.moveByChar(n,t):FR(n,t))}function wo(e){return e.textDirectionAt(e.state.selection.main.head)==zi.LTR}const _fe=e=>Afe(e,!wo(e)),Cfe=e=>Afe(e,wo(e));function Rfe(e,t){return $d(e,n=>n.empty?e.moveByGroup(n,t):FR(n,t))}const oqe=e=>Rfe(e,!wo(e)),lqe=e=>Rfe(e,wo(e));function uqe(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 BR(e,t,n){let r=Di(e).resolveInner(t.head),i=n?qn.closedBy:qn.openedBy;for(let l=t.head;;){let u=n?r.childAfter(l):r.childBefore(l);if(!u)break;uqe(e,u,i)?r=u:l=n?u.to:u.from}let a=r.type.prop(i),s,o;return a&&(s=n?xf(e,r.from,1):xf(e,r.to,-1))&&s.matched?o=n?s.end.to:s.end.from:o=n?r.to:r.from,ht.cursor(o,n?-1:1)}const cqe=e=>$d(e,t=>BR(e.state,t,!wo(e))),dqe=e=>$d(e,t=>BR(e.state,t,wo(e)));function Ife(e,t){return $d(e,n=>{if(!n.empty)return FR(n,t);let r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)})}const Nfe=e=>Ife(e,!1),Dfe=e=>Ife(e,!0);function Pfe(e){let t=e.scrollDOM.clientHeights.empty?e.moveVertically(s,t,n.height):FR(s,t));if(i.eq(r.selection))return!1;let a;if(n.selfScroll){let s=e.coordsAtPos(r.selection.main.head),o=e.scrollDOM.getBoundingClientRect(),l=o.top+n.marginTop,u=o.bottom-n.marginBottom;s&&s.top>l&&s.bottomLfe(e,!1),RL=e=>Lfe(e,!0);function Rm(e,t,n){let r=e.lineBlockAt(t.head),i=e.moveToLineBoundary(t,n);if(i.head==t.head&&i.head!=(n?r.to:r.from)&&(i=e.moveToLineBoundary(t,n,!1)),!n&&i.head==r.from&&r.length){let a=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;a&&t.head!=r.from+a&&(i=ht.cursor(r.from+a))}return i}const fqe=e=>$d(e,t=>Rm(e,t,!0)),hqe=e=>$d(e,t=>Rm(e,t,!1)),pqe=e=>$d(e,t=>Rm(e,t,!wo(e))),mqe=e=>$d(e,t=>Rm(e,t,wo(e))),gqe=e=>$d(e,t=>ht.cursor(e.lineBlockAt(t.head).from,1)),bqe=e=>$d(e,t=>ht.cursor(e.lineBlockAt(t.head).to,-1));function yqe(e,t,n){let r=!1,i=_O(e.selection,a=>{let s=xf(e,a.head,-1)||xf(e,a.head,1)||a.head>0&&xf(e,a.head-1,1)||a.headyqe(e,t);function Uc(e,t){let n=_O(e.state.selection,r=>{let i=t(r);return ht.range(r.anchor,i.head,i.goalColumn,i.bidiLevel||void 0)});return n.eq(e.state.selection)?!1:(e.dispatch(Zf(e.state,n)),!0)}function Mfe(e,t){return Uc(e,n=>e.moveByChar(n,t))}const $fe=e=>Mfe(e,!wo(e)),Ffe=e=>Mfe(e,wo(e));function Bfe(e,t){return Uc(e,n=>e.moveByGroup(n,t))}const Oqe=e=>Bfe(e,!wo(e)),Sqe=e=>Bfe(e,wo(e)),Eqe=e=>Uc(e,t=>BR(e.state,t,!wo(e))),wqe=e=>Uc(e,t=>BR(e.state,t,wo(e)));function Ufe(e,t){return Uc(e,n=>e.moveVertically(n,t))}const zfe=e=>Ufe(e,!1),jfe=e=>Ufe(e,!0);function Hfe(e,t){return Uc(e,n=>e.moveVertically(n,t,Pfe(e).height))}const xK=e=>Hfe(e,!1),kK=e=>Hfe(e,!0),Tqe=e=>Uc(e,t=>Rm(e,t,!0)),xqe=e=>Uc(e,t=>Rm(e,t,!1)),kqe=e=>Uc(e,t=>Rm(e,t,!wo(e))),Aqe=e=>Uc(e,t=>Rm(e,t,wo(e))),_qe=e=>Uc(e,t=>ht.cursor(e.lineBlockAt(t.head).from)),Cqe=e=>Uc(e,t=>ht.cursor(e.lineBlockAt(t.head).to)),AK=({state:e,dispatch:t})=>(t(Zf(e,{anchor:0})),!0),_K=({state:e,dispatch:t})=>(t(Zf(e,{anchor:e.doc.length})),!0),CK=({state:e,dispatch:t})=>(t(Zf(e,{anchor:e.selection.main.anchor,head:0})),!0),RK=({state:e,dispatch:t})=>(t(Zf(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0),Rqe=({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0),Iqe=({state:e,dispatch:t})=>{let n=UR(e).map(({from:r,to:i})=>ht.range(r,Math.min(i+1,e.doc.length)));return t(e.update({selection:ht.create(n),userEvent:"select"})),!0},Nqe=({state:e,dispatch:t})=>{let n=_O(e.selection,r=>{var i;let a=Di(e).resolveStack(r.from,1);for(let s=a;s;s=s.next){let{node:o}=s;if((o.from=r.to||o.to>r.to&&o.from<=r.from)&&(!((i=o.parent)===null||i===void 0)&&i.parent))return ht.range(o.to,o.from)}return r});return t(Zf(e,n)),!0},Dqe=({state:e,dispatch:t})=>{let n=e.selection,r=null;return n.ranges.length>1?r=ht.create([n.main]):n.main.empty||(r=ht.create([ht.cursor(n.main.head)])),r?(t(Zf(e,r)),!0):!1};function VT(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:r}=e,i=r.changeByRange(a=>{let{from:s,to:o}=a;if(s==o){let l=t(a);ls&&(n="delete.forward",l=QA(e,l,!0)),s=Math.min(s,l),o=Math.max(o,l)}else s=QA(e,s,!1),o=QA(e,o,!0);return s==o?{range:a}:{changes:{from:s,to:o},range:ht.cursor(s,si(e)))r.between(t,t,(i,a)=>{it&&(t=n?a:i)});return t}const Qfe=(e,t,n)=>VT(e,r=>{let i=r.from,{state:a}=e,s=a.doc.lineAt(i),o,l;if(n&&!t&&i>s.from&&iQfe(e,!1,!0),Wfe=e=>Qfe(e,!0,!1),Vfe=(e,t)=>VT(e,n=>{let r=n.head,{state:i}=e,a=i.doc.lineAt(r),s=i.charCategorizer(r);for(let o=null;;){if(r==(t?a.to:a.from)){r==n.head&&a.number!=(t?i.doc.lines:1)&&(r+=t?1:-1);break}let l=Bs(a.text,r-a.from,t)+a.from,u=a.text.slice(Math.min(r,l)-a.from,Math.max(r,l)-a.from),d=s(u);if(o!=null&&d!=o)break;(u!=" "||r!=n.head)&&(o=d),r=l}return r}),qfe=e=>Vfe(e,!1),Pqe=e=>Vfe(e,!0),Lqe=e=>VT(e,t=>{let n=e.lineBlockAt(t.head).to;return t.headVT(e,t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}),$qe=e=>VT(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:vr.of(["",""])},range:ht.cursor(r.from)}));return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0},Bqe=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(r=>{if(!r.empty||r.from==0||r.from==e.doc.length)return{range:r};let i=r.from,a=e.doc.lineAt(i),s=i==a.from?i-1:Bs(a.text,i-a.from,!1)+a.from,o=i==a.to?i+1:Bs(a.text,i-a.from,!0)+a.from;return{changes:{from:s,to:o,insert:e.doc.slice(i,o).append(e.doc.slice(s,i))},range:ht.cursor(o)}});return n.changes.empty?!1:(t(e.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function UR(e){let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.from),a=e.doc.lineAt(r.to);if(!r.empty&&r.to==a.from&&(a=e.doc.lineAt(r.to-1)),n>=i.number){let s=t[t.length-1];s.to=a.to,s.ranges.push(r)}else t.push({from:i.from,to:a.to,ranges:[r]});n=a.number+1}return t}function Gfe(e,t,n){if(e.readOnly)return!1;let r=[],i=[];for(let a of UR(e)){if(n?a.to==e.doc.length:a.from==0)continue;let s=e.doc.lineAt(n?a.to+1:a.from-1),o=s.length+1;if(n){r.push({from:a.to,to:s.to},{from:a.from,insert:s.text+e.lineBreak});for(let l of a.ranges)i.push(ht.range(Math.min(e.doc.length,l.anchor+o),Math.min(e.doc.length,l.head+o)))}else{r.push({from:s.from,to:a.from},{from:a.to,insert:e.lineBreak+s.text});for(let l of a.ranges)i.push(ht.range(l.anchor-o,l.head-o))}}return r.length?(t(e.update({changes:r,scrollIntoView:!0,selection:ht.create(i,e.selection.mainIndex),userEvent:"move.line"})),!0):!1}const Uqe=({state:e,dispatch:t})=>Gfe(e,t,!1),zqe=({state:e,dispatch:t})=>Gfe(e,t,!0);function Yfe(e,t,n){if(e.readOnly)return!1;let r=[];for(let i of UR(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 jqe=({state:e,dispatch:t})=>Yfe(e,t,!1),Hqe=({state:e,dispatch:t})=>Yfe(e,t,!0),Qqe=e=>{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(UR(t).map(({from:i,to:a})=>(i>0?i--:a{let a;if(e.lineWrapping){let s=e.lineBlockAt(i.head),o=e.coordsAtPos(i.head,i.assoc||1);o&&(a=s.bottom+e.documentTop-o.bottom+e.defaultLineHeight/2)}return e.moveVertically(i,!0,a)}).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0};function Wqe(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n=Di(e).resolveInner(t),r=n.childBefore(t),i=n.childAfter(t),a;return r&&i&&r.to<=t&&i.from>=t&&(a=r.type.prop(qn.closedBy))&&a.indexOf(i.name)>-1&&e.doc.lineAt(r.to).from==e.doc.lineAt(i.from).from&&!/\S/.test(e.sliceDoc(r.to,i.from))?{from:r.to,to:i.from}:null}const Vqe=Zfe(!1),qqe=Zfe(!0);function Zfe(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let r=t.changeByRange(i=>{let{from:a,to:s}=i,o=t.doc.lineAt(a),l=!e&&a==s&&Wqe(t,a);e&&(a=s=(s<=o.to?o:t.doc.lineAt(s)).to);let u=new LR(t,{simulateBreak:a,simulateDoubleBreak:!!l}),d=OB(u,a);for(d==null&&(d=Cd(/^\s*/.exec(t.doc.lineAt(a).text)[0],t.tabSize));so.from&&a{let i=[];for(let s=r.from;s<=r.to;){let o=e.doc.lineAt(s);o.number>n&&(r.empty||r.to>o.from)&&(t(o,i,r),n=o.number),s=o.to+1}let a=e.changes(i);return{changes:i,range:ht.range(a.mapPos(r.anchor,1),a.mapPos(r.head,1))}})}const Gqe=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),r=new LR(e,{overrideIndentation:a=>{let s=n[a];return s??-1}}),i=TB(e,(a,s,o)=>{let l=OB(r,a.from);if(l==null)return;/\S/.test(a.text)||(l=0);let u=/^\s*/.exec(a.text)[0],d=Pw(e,l);(u!=d||o.frome.readOnly?!1:(t(e.update(TB(e,(n,r)=>{r.push({from:n.from,insert:e.facet(jT)})}),{userEvent:"input.indent"})),!0),Kfe=({state:e,dispatch:t})=>e.readOnly?!1:(t(e.update(TB(e,(n,r)=>{let i=/^\s*/.exec(n.text)[0];if(!i)return;let a=Cd(i,e.tabSize),s=0,o=Pw(e,Math.max(0,a-JC(e)));for(;s(e.setTabFocusMode(),!0),Zqe=[{key:"Ctrl-b",run:_fe,shift:$fe,preventDefault:!0},{key:"Ctrl-f",run:Cfe,shift:Ffe},{key:"Ctrl-p",run:Nfe,shift:zfe},{key:"Ctrl-n",run:Dfe,shift:jfe},{key:"Ctrl-a",run:gqe,shift:_qe},{key:"Ctrl-e",run:bqe,shift:Cqe},{key:"Ctrl-d",run:Wfe},{key:"Ctrl-h",run:IL},{key:"Ctrl-k",run:Lqe},{key:"Ctrl-Alt-h",run:qfe},{key:"Ctrl-o",run:Fqe},{key:"Ctrl-t",run:Bqe},{key:"Ctrl-v",run:RL}],Xqe=[{key:"ArrowLeft",run:_fe,shift:$fe,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:oqe,shift:Oqe,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:pqe,shift:kqe,preventDefault:!0},{key:"ArrowRight",run:Cfe,shift:Ffe,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:lqe,shift:Sqe,preventDefault:!0},{mac:"Cmd-ArrowRight",run:mqe,shift:Aqe,preventDefault:!0},{key:"ArrowUp",run:Nfe,shift:zfe,preventDefault:!0},{mac:"Cmd-ArrowUp",run:AK,shift:CK},{mac:"Ctrl-ArrowUp",run:TK,shift:xK},{key:"ArrowDown",run:Dfe,shift:jfe,preventDefault:!0},{mac:"Cmd-ArrowDown",run:_K,shift:RK},{mac:"Ctrl-ArrowDown",run:RL,shift:kK},{key:"PageUp",run:TK,shift:xK},{key:"PageDown",run:RL,shift:kK},{key:"Home",run:hqe,shift:xqe,preventDefault:!0},{key:"Mod-Home",run:AK,shift:CK},{key:"End",run:fqe,shift:Tqe,preventDefault:!0},{key:"Mod-End",run:_K,shift:RK},{key:"Enter",run:Vqe},{key:"Mod-a",run:Rqe},{key:"Backspace",run:IL,shift:IL},{key:"Delete",run:Wfe},{key:"Mod-Backspace",mac:"Alt-Backspace",run:qfe},{key:"Mod-Delete",mac:"Alt-Delete",run:Pqe},{mac:"Mod-Backspace",run:Mqe},{mac:"Mod-Delete",run:$qe}].concat(Zqe.map(e=>({mac:e.key,run:e.run,shift:e.shift}))),Kqe=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:cqe,shift:Eqe},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:dqe,shift:wqe},{key:"Alt-ArrowUp",run:Uqe},{key:"Shift-Alt-ArrowUp",run:jqe},{key:"Alt-ArrowDown",run:zqe},{key:"Shift-Alt-ArrowDown",run:Hqe},{key:"Escape",run:Dqe},{key:"Mod-Enter",run:qqe},{key:"Alt-l",mac:"Ctrl-l",run:Iqe},{key:"Mod-i",run:Nqe,preventDefault:!0},{key:"Mod-[",run:Kfe},{key:"Mod-]",run:Xfe},{key:"Mod-Alt-\\",run:Gqe},{key:"Shift-Mod-k",run:Qqe},{key:"Shift-Mod-\\",run:vqe},{key:"Mod-/",run:jVe},{key:"Alt-A",run:QVe},{key:"Ctrl-m",mac:"Shift-Alt-m",run:Yqe}].concat(Xqe),Jqe={key:"Tab",run:Xfe,shift:Kfe};function _i(){var e=arguments[0];typeof e=="string"&&(e=document.createElement(e));var t=1,n=arguments[1];if(n&&typeof n=="object"&&n.nodeType==null&&!Array.isArray(n)){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var i=n[r];typeof i=="string"?e.setAttribute(r,i):i!=null&&(e[r]=i)}t++}for(;te.normalize("NFKD"):e=>e;class zv{constructor(t,n,r=0,i=t.length,a,s){this.test=s,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=t.iterRange(r,i),this.bufferStart=r,this.normalize=a?o=>a(IK(o)):IK,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 Ps(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=JF(t),r=this.bufferStart+this.bufferPos;this.bufferPos+=cc(t);let i=this.normalize(n);for(let a=0,s=r;;a++){let o=i.charCodeAt(a),l=this.match(o,s,this.bufferPos+this.bufferStart);if(a==i.length-1){if(l)return this.value=l,this;break}s==r&&athis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let t=this.matchPos-this.curLineStart;;){this.re.lastIndex=t;let n=this.matchPos<=this.to&&this.re.exec(this.curLine);if(n){let r=this.curLineStart+n.index,i=r+n[0].length;if(this.matchPos=r3(this.text,i+(r==i?1:0)),r==this.curLineStart+this.curLine.length&&this.nextLine(),(rthis.value.to)&&(!this.test||this.test(r,i,n)))return this.value={from:r,to:i,match:n},this;t=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length=r||i.to<=n){let o=new Yy(n,t.sliceString(n,r));return CD.set(t,o),o}if(i.from==n&&i.to==r)return i;let{text:a,from:s}=i;return s>n&&(a=t.sliceString(n,s)+a,s=n),i.to=this.to?this.to:this.text.lineAt(t).to}next(){for(;;){let t=this.re.lastIndex=this.matchPos-this.flat.from,n=this.re.exec(this.flat.text);if(n&&!n[0]&&n.index==t&&(this.re.lastIndex=t+1,n=this.re.exec(this.flat.text)),n){let r=this.flat.from+n.index,i=r+n[0].length;if((this.flat.to>=this.to||n.index+n[0].length<=this.flat.text.length-10)&&(!this.test||this.test(r,i,n)))return this.value={from:r,to:i,match:n},this.matchPos=r3(this.text,i+(r==i?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Yy.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(the.prototype[Symbol.iterator]=nhe.prototype[Symbol.iterator]=function(){return this});function eGe(e){try{return new RegExp(e,xB),!0}catch{return!1}}function r3(e,t){if(t>=e.length)return t;let n=e.lineAt(t),r;for(;t=56320&&r<57344;)t++;return t}function NL(e){let t=String(e.state.doc.lineAt(e.state.selection.main.head).number),n=_i("input",{class:"cm-textfield",name:"line",value:t}),r=_i("form",{class:"cm-gotoLine",onkeydown:a=>{a.keyCode==27?(a.preventDefault(),e.dispatch({effects:i3.of(!1)}),e.focus()):a.keyCode==13&&(a.preventDefault(),i())},onsubmit:a=>{a.preventDefault(),i()}},_i("label",e.state.phrase("Go to line"),": ",n)," ",_i("button",{class:"cm-button",type:"submit"},e.state.phrase("go")));function i(){let a=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.value);if(!a)return;let{state:s}=e,o=s.doc.lineAt(s.selection.main.head),[,l,u,d,f]=a,p=d?+d.slice(1):0,g=u?+u:o.number;if(u&&f){let T=g/100;l&&(T=T*(l=="-"?-1:1)+o.number/s.doc.lines),g=Math.round(s.doc.lines*T)}else u&&l&&(g=g*(l=="-"?-1:1)+o.number);let O=s.doc.line(Math.max(1,Math.min(s.doc.lines,g))),S=ht.cursor(O.from+Math.max(0,Math.min(p,O.length)));e.dispatch({effects:[i3.of(!1),Kt.scrollIntoView(S.from,{y:"center"})],selection:S}),e.focus()}return{dom:r}}const i3=Zn.define(),NK=ws.define({create(){return!0},update(e,t){for(let n of t.effects)n.is(i3)&&(e=n.value);return e},provide:e=>Cw.from(e,t=>t?NL:null)}),tGe=e=>{let t=_w(e,NL);if(!t){let n=[i3.of(!0)];e.state.field(NK,!1)==null&&n.push(Zn.appendConfig.of([NK,nGe])),e.dispatch({effects:n}),t=_w(e,NL)}return t&&t.dom.querySelector("input").select(),!0},nGe=Kt.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),rGe={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},iGe=an.define({combine(e){return Yf(e,rGe,{highlightWordAroundCursor:(t,n)=>t||n,minSelectionLength:Math.min,maxMatches:Math.min})}});function aGe(e){return[cGe,uGe]}const sGe=gn.mark({class:"cm-selectionMatch"}),oGe=gn.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function DK(e,t,n,r){return(n==0||e(t.sliceDoc(n-1,n))!=ea.Word)&&(r==t.doc.length||e(t.sliceDoc(r,r+1))!=ea.Word)}function lGe(e,t,n,r){return e(t.sliceDoc(n,n+1))==ea.Word&&e(t.sliceDoc(r-1,r))==ea.Word}const uGe=ha.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(iGe),{state:n}=e,r=n.selection;if(r.ranges.length>1)return gn.none;let i=r.main,a,s=null;if(i.empty){if(!t.highlightWordAroundCursor)return gn.none;let l=n.wordAt(i.head);if(!l)return gn.none;s=n.charCategorizer(i.head),a=n.sliceDoc(l.from,l.to)}else{let l=i.to-i.from;if(l200)return gn.none;if(t.wholeWords){if(a=n.sliceDoc(i.from,i.to),s=n.charCategorizer(i.head),!(DK(s,n,i.from,i.to)&&lGe(s,n,i.from,i.to)))return gn.none}else if(a=n.sliceDoc(i.from,i.to),!a)return gn.none}let o=[];for(let l of e.visibleRanges){let u=new zv(n.doc,a,l.from,l.to);for(;!u.next().done;){let{from:d,to:f}=u.value;if((!s||DK(s,n,d,f))&&(i.empty&&d<=i.from&&f>=i.to?o.push(oGe.range(d,f)):(d>=i.to||f<=i.from)&&o.push(sGe.range(d,f)),o.length>t.maxMatches))return gn.none}}return gn.set(o)}},{decorations:e=>e.decorations}),cGe=Kt.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),dGe=({state:e,dispatch:t})=>{let{selection:n}=e,r=ht.create(n.ranges.map(i=>e.wordAt(i.head)||ht.cursor(i.head)),n.mainIndex);return r.eq(n)?!1:(t(e.update({selection:r})),!0)};function fGe(e,t){let{main:n,ranges:r}=e.selection,i=e.wordAt(n.head),a=i&&i.from==n.from&&i.to==n.to;for(let s=!1,o=new zv(e.doc,t,r[r.length-1].to);;)if(o.next(),o.done){if(s)return null;o=new zv(e.doc,t,0,Math.max(0,r[r.length-1].from-1)),s=!0}else{if(s&&r.some(l=>l.from==o.value.from))continue;if(a){let l=e.wordAt(o.value.from);if(!l||l.from!=o.value.from||l.to!=o.value.to)continue}return o.value}}const hGe=({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some(a=>a.from===a.to))return dGe({state:e,dispatch:t});let r=e.sliceDoc(n[0].from,n[0].to);if(e.selection.ranges.some(a=>e.sliceDoc(a.from,a.to)!=r))return!1;let i=fGe(e,r);return i?(t(e.update({selection:e.selection.addRange(ht.range(i.from,i.to),!1),effects:Kt.scrollIntoView(i.to)})),!0):!1},CO=an.define({combine(e){return Yf(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:t=>new xGe(t),scrollToMatch:t=>Kt.scrollIntoView(t)})}});class rhe{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||eGe(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 bGe(this):new mGe(this)}getCursor(t,n=0,r){let i=t.doc?t:Dr.create({doc:t});return r==null&&(r=i.doc.length),this.regexp?ey(this,i,n,r):Jb(this,i,n,r)}}class ihe{constructor(t){this.spec=t}}function Jb(e,t,n,r){return new zv(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:i=>i.toLowerCase(),e.wholeWord?pGe(t.doc,t.charCategorizer(t.selection.main.head)):void 0)}function pGe(e,t){return(n,r,i,a)=>((a>n||a+i.length=n)return null;i.push(r.value)}return i}highlight(t,n,r,i){let a=Jb(this.spec,t,Math.max(0,n-this.spec.unquoted.length),Math.min(r+this.spec.unquoted.length,t.doc.length));for(;!a.next().done;)i(a.value.from,a.value.to)}}function ey(e,t,n,r){return new the(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?gGe(t.charCategorizer(t.selection.main.head)):void 0},n,r)}function a3(e,t){return e.slice(Bs(e,t,!1),t)}function s3(e,t){return e.slice(t,Bs(e,t))}function gGe(e){return(t,n,r)=>!r[0].length||(e(a3(r.input,r.index))!=ea.Word||e(s3(r.input,r.index))!=ea.Word)&&(e(s3(r.input,r.index+r[0].length))!=ea.Word||e(a3(r.input,r.index+r[0].length))!=ea.Word)}class bGe extends ihe{nextMatch(t,n,r){let i=ey(this.spec,t,r,t.doc.length).next();return i.done&&(i=ey(this.spec,t,0,n).next()),i.done?null:i.value}prevMatchInRange(t,n,r){for(let i=1;;i++){let a=Math.max(n,r-i*1e4),s=ey(this.spec,t,a,r),o=null;for(;!s.next().done;)o=s.value;if(o&&(a==n||o.from>a+10))return o;if(a==n)return null}}prevMatch(t,n,r){return this.prevMatchInRange(t,0,n)||this.prevMatchInRange(t,r,t.doc.length)}getReplacement(t){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,(n,r)=>r=="$"?"$":r=="&"?t.match[0]:r!="0"&&+r=n)return null;i.push(r.value)}return i}highlight(t,n,r,i){let a=ey(this.spec,t,Math.max(0,n-250),Math.min(r+250,t.doc.length));for(;!a.next().done;)i(a.value.from,a.value.to)}}const Lw=Zn.define(),kB=Zn.define(),rm=ws.define({create(e){return new RD(DL(e).create(),null)},update(e,t){for(let n of t.effects)n.is(Lw)?e=new RD(n.value.create(),e.panel):n.is(kB)&&(e=new RD(e.query,n.value?AB:null));return e},provide:e=>Cw.from(e,t=>t.panel)});class RD{constructor(t,n){this.query=t,this.panel=n}}const yGe=gn.mark({class:"cm-searchMatch"}),vGe=gn.mark({class:"cm-searchMatch cm-searchMatch-selected"}),OGe=ha.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(rm))}update(e){let t=e.state.field(rm);(t!=e.startState.field(rm)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return gn.none;let{view:n}=this,r=new hm;for(let i=0,a=n.visibleRanges,s=a.length;ia[i+1].from-2*250;)l=a[++i].to;e.highlight(n.state,o,l,(u,d)=>{let f=n.state.selection.ranges.some(p=>p.from==u&&p.to==d);r.add(u,d,f?vGe:yGe)})}return r.finish()}},{decorations:e=>e.decorations});function qT(e){return t=>{let n=t.state.field(rm,!1);return n&&n.query.spec.valid?e(t,n):ohe(t)}}const o3=qT((e,{query:t})=>{let{to:n}=e.state.selection.main,r=t.nextMatch(e.state,n,n);if(!r)return!1;let i=ht.single(r.from,r.to),a=e.state.facet(CO);return e.dispatch({selection:i,effects:[_B(e,r),a.scrollToMatch(i.main,e)],userEvent:"select.search"}),she(e),!0}),l3=qT((e,{query:t})=>{let{state:n}=e,{from:r}=n.selection.main,i=t.prevMatch(n,r,r);if(!i)return!1;let a=ht.single(i.from,i.to),s=e.state.facet(CO);return e.dispatch({selection:a,effects:[_B(e,i),s.scrollToMatch(a.main,e)],userEvent:"select.search"}),she(e),!0}),SGe=qT((e,{query:t})=>{let n=t.matchAll(e.state,1e3);return!n||!n.length?!1:(e.dispatch({selection:ht.create(n.map(r=>ht.range(r.from,r.to))),userEvent:"select.search.matches"}),!0)}),EGe=({state:e,dispatch:t})=>{let n=e.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:r,to:i}=n.main,a=[],s=0;for(let o=new zv(e.doc,e.sliceDoc(r,i));!o.next().done;){if(a.length>1e3)return!1;o.value.from==r&&(s=a.length),a.push(ht.range(o.value.from,o.value.to))}return t(e.update({selection:ht.create(a,s),userEvent:"select.search.matches"})),!0},PK=qT((e,{query:t})=>{let{state:n}=e,{from:r,to:i}=n.selection.main;if(n.readOnly)return!1;let a=t.nextMatch(n,r,r);if(!a)return!1;let s=[],o,l,u=[];if(a.from==r&&a.to==i&&(l=n.toText(t.getReplacement(a)),s.push({from:a.from,to:a.to,insert:l}),a=t.nextMatch(n,a.from,a.to),u.push(Kt.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(r).number)+"."))),a){let d=s.length==0||s[0].from>=a.to?0:a.to-a.from-l.length;o=ht.single(a.from-d,a.to-d),u.push(_B(e,a)),u.push(n.facet(CO).scrollToMatch(o.main,e))}return e.dispatch({changes:s,selection:o,effects:u,userEvent:"input.replace"}),!0}),wGe=qT((e,{query:t})=>{if(e.state.readOnly)return!1;let n=t.matchAll(e.state,1e9).map(i=>{let{from:a,to:s}=i;return{from:a,to:s,insert:t.getReplacement(i)}});if(!n.length)return!1;let r=e.state.phrase("replaced $ matches",n.length)+".";return e.dispatch({changes:n,effects:Kt.announce.of(r),userEvent:"input.replace.all"}),!0});function AB(e){return e.state.facet(CO).createPanel(e)}function DL(e,t){var n,r,i,a,s;let o=e.selection.main,l=o.empty||o.to>o.from+100?"":e.sliceDoc(o.from,o.to);if(t&&!l)return t;let u=e.facet(CO);return new rhe({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:(a=t==null?void 0:t.regexp)!==null&&a!==void 0?a:u.regexp,wholeWord:(s=t==null?void 0:t.wholeWord)!==null&&s!==void 0?s:u.wholeWord})}function ahe(e){let t=_w(e,AB);return t&&t.dom.querySelector("[main-field]")}function she(e){let t=ahe(e);t&&t==e.root.activeElement&&t.select()}const ohe=e=>{let t=e.state.field(rm,!1);if(t&&t.panel){let n=ahe(e);if(n&&n!=e.root.activeElement){let r=DL(e.state,t.query.spec);r.valid&&e.dispatch({effects:Lw.of(r)}),n.focus(),n.select()}}else e.dispatch({effects:[kB.of(!0),t?Lw.of(DL(e.state,t.query.spec)):Zn.appendConfig.of(AGe)]});return!0},lhe=e=>{let t=e.state.field(rm,!1);if(!t||!t.panel)return!1;let n=_w(e,AB);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:kB.of(!1)}),!0},TGe=[{key:"Mod-f",run:ohe,scope:"editor search-panel"},{key:"F3",run:o3,shift:l3,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:o3,shift:l3,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:lhe,scope:"editor search-panel"},{key:"Mod-Shift-l",run:EGe},{key:"Mod-Alt-g",run:tGe},{key:"Mod-d",run:hGe,preventDefault:!0}];class xGe{constructor(t){this.view=t;let n=this.query=t.state.field(rm).query.spec;this.commit=this.commit.bind(this),this.searchField=_i("input",{value:n.search,placeholder:nu(t,"Find"),"aria-label":nu(t,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=_i("input",{value:n.replace,placeholder:nu(t,"Replace"),"aria-label":nu(t,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=_i("input",{type:"checkbox",name:"case",form:"",checked:n.caseSensitive,onchange:this.commit}),this.reField=_i("input",{type:"checkbox",name:"re",form:"",checked:n.regexp,onchange:this.commit}),this.wordField=_i("input",{type:"checkbox",name:"word",form:"",checked:n.wholeWord,onchange:this.commit});function r(i,a,s){return _i("button",{class:"cm-button",name:i,onclick:a,type:"button"},s)}this.dom=_i("div",{onkeydown:i=>this.keydown(i),class:"cm-search"},[this.searchField,r("next",()=>o3(t),[nu(t,"next")]),r("prev",()=>l3(t),[nu(t,"previous")]),r("select",()=>SGe(t),[nu(t,"all")]),_i("label",null,[this.caseField,nu(t,"match case")]),_i("label",null,[this.reField,nu(t,"regexp")]),_i("label",null,[this.wordField,nu(t,"by word")]),...t.state.readOnly?[]:[_i("br"),this.replaceField,r("replace",()=>PK(t),[nu(t,"replace")]),r("replaceAll",()=>wGe(t),[nu(t,"replace all")])],_i("button",{name:"close",onclick:()=>lhe(t),"aria-label":nu(t,"close"),type:"button"},["×"])])}commit(){let t=new rhe({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:Lw.of(t)}))}keydown(t){DQe(this.view,t,"search-panel")?t.preventDefault():t.keyCode==13&&t.target==this.searchField?(t.preventDefault(),(t.shiftKey?l3:o3)(this.view)):t.keyCode==13&&t.target==this.replaceField&&(t.preventDefault(),PK(this.view))}update(t){for(let n of t.transactions)for(let r of n.effects)r.is(Lw)&&!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(CO).top}}function nu(e,t){return e.state.phrase(t)}const WA=30,VA=/[\s\.,:;?!]/;function _B(e,{from:t,to:n}){let r=e.state.doc.lineAt(t),i=e.state.doc.lineAt(n).to,a=Math.max(r.from,t-WA),s=Math.min(i,n+WA),o=e.state.sliceDoc(a,s);if(a!=r.from){for(let l=0;lo.length-WA;l--)if(!VA.test(o[l-1])&&VA.test(o[l])){o=o.slice(0,l);break}}return Kt.announce.of(`${e.state.phrase("current match")}. ${o} ${e.state.phrase("on line")} ${r.number}.`)}const kGe=Kt.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"}}),AGe=[rm,Rp.low(OGe),kGe];class CB{constructor(t,n,r,i){this.state=t,this.pos=n,this.explicit=r,this.view=i,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(t){let n=Di(this.state).resolveInner(this.pos,-1);for(;n&&t.indexOf(n.name)<0;)n=n.parent;return n?{from:n.from,to:this.pos,text:this.state.sliceDoc(n.from,this.pos),type:n.type}:null}matchBefore(t){let n=this.state.doc.lineAt(this.pos),r=Math.max(n.from,this.pos-250),i=n.text.slice(r-n.from,this.pos-n.from),a=i.search(che(t,!1));return a<0?null:{from:r+a,to:this.pos,text:i.slice(a)}}get aborted(){return this.abortListeners==null}addEventListener(t,n,r){t=="abort"&&this.abortListeners&&(this.abortListeners.push(n),r&&r.onDocChange&&(this.abortOnDocChange=!0))}}function LK(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 _Ge(e){let t=Object.create(null),n=Object.create(null);for(let{label:i}of e){t[i[0]]=!0;for(let a=1;atypeof i=="string"?{label:i}:i),[n,r]=t.every(i=>/^\w+$/.test(i.label))?[/\w*$/,/\w+$/]:_Ge(t);return i=>{let a=i.matchBefore(r);return a||i.explicit?{from:a?a.from:i.pos,options:t,validFor:n}:null}}function CGe(e,t){return n=>{for(let r=Di(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 MK{constructor(t,n,r,i){this.completion=t,this.source=n,this.match=r,this.score=i}}function im(e){return e.selection.main.from}function che(e,t){var n;let{source:r}=e,i=t&&r[0]!="^",a=r[r.length-1]!="$";return!i&&!a?e:new RegExp(`${i?"^":""}(?:${r})${a?"$":""}`,(n=e.flags)!==null&&n!==void 0?n:e.ignoreCase?"i":"")}const RB=Ld.define();function RGe(e,t,n,r){let{main:i}=e.selection,a=n-i.from,s=r-i.from;return Object.assign(Object.assign({},e.changeByRange(o=>o!=i&&n!=r&&e.sliceDoc(o.from+a,o.from+s)!=e.sliceDoc(n,r)?{range:o}:{changes:{from:o.from+a,to:r==i.from?o.to:o.from+s,insert:t},range:ht.cursor(o.from+a+t.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}const $K=new WeakMap;function IGe(e){if(!Array.isArray(e))return e;let t=$K.get(e);return t||$K.set(e,t=uhe(e)),t}const u3=Zn.define(),Mw=Zn.define();class NGe{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&&R<=57||R>=97&&R<=122?2:R>=65&&R<=90?1:0:(N=JF(R))!=N.toLowerCase()?1:N!=N.toUpperCase()?2:0;(!x||D==1&&T||_==0&&D!=0)&&(n[f]==R||r[f]==R&&(p=!0)?s[f++]=x:s.length&&(w=!1)),_=D,x+=cc(R)}return f==l&&s[0]==0&&w?this.result(-100+(p?-200:0),s,t):g==l&&O==0?this.ret(-200-t.length+(S==t.length?0:-100),[0,S]):o>-1?this.ret(-700-t.length,[o,o+this.pattern.length]):g==l?this.ret(-900-t.length,[O,S]):f==l?this.result(-100+(p?-200:0)+-700+(w?0:-1100),s,t):n.length==2?null:this.result((i[0]?-700:0)+-200+-1100,i,t)}result(t,n,r){let i=[],a=0;for(let s of n){let o=s+(this.astral?cc(Ps(r,s)):1);a&&i[a-1]==s?i[a-1]=o:(i[a++]=s,i[a++]=o)}return this.ret(t-r.length,i)}}class DGe{constructor(t){this.pattern=t,this.matched=[],this.score=0,this.folded=t.toLowerCase()}match(t){if(t.length!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:PGe,filterStrict:!1,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=>FK(t(r),n(r)),optionClass:(t,n)=>r=>FK(t(r),n(r)),addToOptions:(t,n)=>t.concat(n),filterStrict:(t,n)=>t||n})}});function FK(e,t){return e?t?e+" "+t:e:t}function PGe(e,t,n,r,i,a){let s=e.textDirection==zi.RTL,o=s,l=!1,u="top",d,f,p=t.left-i.left,g=i.right-t.right,O=r.right-r.left,S=r.bottom-r.top;if(o&&p=S||x>t.top?d=n.bottom-t.top:(u="bottom",d=t.bottom-n.top)}let T=(t.bottom-t.top)/a.offsetHeight,w=(t.right-t.left)/a.offsetWidth;return{style:`${u}: ${d/T}px; max-width: ${f/w}px`,class:"cm-completionInfo-"+(l?s?"left-narrow":"right-narrow":o?"left":"right")}}function LGe(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(n){let r=document.createElement("div");return r.classList.add("cm-completionIcon"),n.type&&r.classList.add(...n.type.split(/\s+/g).map(i=>"cm-completionIcon-"+i)),r.setAttribute("aria-hidden","true"),r},position:20}),t.push({render(n,r,i,a){let s=document.createElement("span");s.className="cm-completionLabel";let o=n.displayLabel||n.label,l=0;for(let u=0;ul&&s.appendChild(document.createTextNode(o.slice(l,d)));let p=s.appendChild(document.createElement("span"));p.appendChild(document.createTextNode(o.slice(d,f))),p.className="cm-completionMatchedText",l=f}return ln.position-r.position).map(n=>n.render)}function ID(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 MGe{constructor(t,n,r){this.view=t,this.stateField=n,this.applyCompletion=r,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:l=>this.placeInfo(l),key:this},this.space=null,this.currentClass="";let i=t.state.field(n),{options:a,selected:s}=i.open,o=t.state.facet($s);this.optionContent=LGe(o),this.optionClass=o.optionClass,this.tooltipClass=o.tooltipClass,this.range=ID(a.length,s,o.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(t.state),this.dom.addEventListener("mousedown",l=>{let{options:u}=t.state.field(n).open;for(let d=l.target,f;d&&d!=this.dom;d=d.parentNode)if(d.nodeName=="LI"&&(f=/-(\d+)$/.exec(d.id))&&+f[1]{let u=t.state.field(this.stateField,!1);u&&u.tooltip&&t.state.facet($s).closeOnBlur&&l.relatedTarget!=t.contentDOM&&t.dispatch({effects:Mw.of(null)})}),this.showOptions(a,i.id)}mount(){this.updateSel()}showOptions(t,n){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(t,n,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(t){var n;let r=t.state.field(this.stateField),i=t.startState.field(this.stateField);if(this.updateTooltipClass(t.state),r!=i){let{options:a,selected:s,disabled:o}=r.open;(!i.open||i.open.options!=a)&&(this.range=ID(a.length,s,t.state.facet($s).maxRenderedOptions),this.showOptions(a,r.id)),this.updateSel(),o!=((n=i.open)===null||n===void 0?void 0:n.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!o)}}updateTooltipClass(t){let n=this.tooltipClass(t);if(n!=this.currentClass){for(let r of this.currentClass.split(" "))r&&this.dom.classList.remove(r);for(let r of n.split(" "))r&&this.dom.classList.add(r);this.currentClass=n}}positioned(t){this.space=t,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let t=this.view.state.field(this.stateField),n=t.open;if((n.selected>-1&&n.selected=this.range.to)&&(this.range=ID(n.options.length,n.selected,this.view.state.facet($s).maxRenderedOptions),this.showOptions(n.options,t.id)),this.updateSelectedOption(n.selected)){this.destroyInfo();let{completion:r}=n.options[n.selected],{info:i}=r;if(!i)return;let a=typeof i=="string"?document.createTextNode(i):i(r);if(!a)return;"then"in a?a.then(s=>{s&&this.view.state.field(this.stateField,!1)==t&&this.addInfoPane(s,r)}).catch(s=>xl(this.view.state,s,"completion info")):this.addInfoPane(a,r)}}addInfoPane(t,n){this.destroyInfo();let r=this.info=document.createElement("div");if(r.className="cm-tooltip cm-completionInfo",t.nodeType!=null)r.appendChild(t),this.infoDestroy=null;else{let{dom:i,destroy:a}=t;r.appendChild(i),this.infoDestroy=a||null}this.dom.appendChild(r),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(t){let n=null;for(let r=this.list.firstChild,i=this.range.from;r;r=r.nextSibling,i++)r.nodeName!="LI"||!r.id?i--:i==t?r.hasAttribute("aria-selected")||(r.setAttribute("aria-selected","true"),n=r):r.hasAttribute("aria-selected")&&r.removeAttribute("aria-selected");return n&&FGe(this.list,n),n}measureInfo(){let t=this.dom.querySelector("[aria-selected]");if(!t||!this.info)return null;let n=this.dom.getBoundingClientRect(),r=this.info.getBoundingClientRect(),i=t.getBoundingClientRect(),a=this.space;if(!a){let s=this.dom.ownerDocument.defaultView||window;a={left:0,top:0,right:s.innerWidth,bottom:s.innerHeight}}return i.top>Math.min(a.bottom,n.bottom)-10||i.bottomr.from||r.from==0))if(a=p,typeof u!="string"&&u.header)i.appendChild(u.header(u));else{let g=i.appendChild(document.createElement("completion-section"));g.textContent=p}}const d=i.appendChild(document.createElement("li"));d.id=n+"-"+s,d.setAttribute("role","option");let f=this.optionClass(o);f&&(d.className=f);for(let p of this.optionContent){let g=p(o,this.view.state,this.view,l);g&&d.appendChild(g)}}return r.from&&i.classList.add("cm-completionListIncompleteTop"),r.tonew MGe(n,e,t)}function FGe(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 BK(e){return(e.boost||0)*100+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}function BGe(e,t){let n=[],r=null,i=u=>{n.push(u);let{section:d}=u.completion;if(d){r||(r=[]);let f=typeof d=="string"?d:d.name;r.some(p=>p.name==f)||r.push(typeof d=="string"?{name:f}:d)}},a=t.facet($s);for(let u of e)if(u.hasResult()){let d=u.result.getMatch;if(u.result.filter===!1)for(let f of u.result.options)i(new MK(f,u.source,d?d(f):[],1e9-n.length));else{let f=t.sliceDoc(u.from,u.to),p,g=a.filterStrict?new DGe(f):new NGe(f);for(let O of u.result.options)if(p=g.match(O.label)){let S=O.displayLabel?d?d(O,p.matched):[]:p.matched;i(new MK(O,u.source,S,p.score+(O.boost||0)))}}}if(r){let u=Object.create(null),d=0,f=(p,g)=>{var O,S;return((O=p.rank)!==null&&O!==void 0?O:1e9)-((S=g.rank)!==null&&S!==void 0?S:1e9)||(p.namef.score-d.score||l(d.completion,f.completion))){let d=u.completion;!o||o.label!=d.label||o.detail!=d.detail||o.type!=null&&d.type!=null&&o.type!=d.type||o.apply!=d.apply||o.boost!=d.boost?s.push(u):BK(u.completion)>BK(o)&&(s[s.length-1]=u),o=u.completion}return s}class ky{constructor(t,n,r,i,a,s){this.options=t,this.attrs=n,this.tooltip=r,this.timestamp=i,this.selected=a,this.disabled=s}setSelected(t,n){return t==this.selected||t>=this.options.length?this:new ky(this.options,UK(n,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,n,r,i,a){let s=BGe(t,n);if(!s.length)return i&&t.some(l=>l.state==1)?new ky(i.options,i.attrs,i.tooltip,i.timestamp,i.selected,!0):null;let o=n.facet($s).selectOnOpen?0:-1;if(i&&i.selected!=o&&i.selected!=-1){let l=i.options[i.selected].completion;for(let u=0;uu.hasResult()?Math.min(l,u.from):l,1e8),create:WGe,above:a.aboveCursor},i?i.timestamp:Date.now(),o,!1)}map(t){return new ky(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:t.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class c3{constructor(t,n,r){this.active=t,this.id=n,this.open=r}static start(){return new c3(HGe,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(t){let{state:n}=t,r=n.facet($s),a=(r.override||n.languageDataAt("autocomplete",im(n)).map(IGe)).map(o=>(this.active.find(u=>u.source==o)||new yu(o,this.active.some(u=>u.state!=0)?1:0)).update(t,r));a.length==this.active.length&&a.every((o,l)=>o==this.active[l])&&(a=this.active);let s=this.open;s&&t.docChanged&&(s=s.map(t.changes)),t.selection||a.some(o=>o.hasResult()&&t.changes.touchesRange(o.from,o.to))||!UGe(a,this.active)?s=ky.build(a,n,this.id,s,r):s&&s.disabled&&!a.some(o=>o.state==1)&&(s=null),!s&&a.every(o=>o.state!=1)&&a.some(o=>o.hasResult())&&(a=a.map(o=>o.hasResult()?new yu(o.source,0):o));for(let o of t.effects)o.is(hhe)&&(s=s&&s.setSelected(o.value,this.id));return a==this.active&&s==this.open?this:new c3(a,this.id,s)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?zGe:jGe}}function UGe(e,t){if(e==t)return!0;for(let n=0,r=0;;){for(;n-1&&(n["aria-activedescendant"]=e+"-"+t),n}const HGe=[];function dhe(e,t){if(e.isUserEvent("input.complete")){let r=e.annotation(RB);if(r&&t.activateOnCompletion(r))return 12}let n=e.isUserEvent("input.type");return n&&t.activateOnTyping?5:n?1:e.isUserEvent("delete.backward")?2:e.selection?8:e.docChanged?16:0}class yu{constructor(t,n,r=-1){this.source=t,this.state=n,this.explicitPos=r}hasResult(){return!1}update(t,n){let r=dhe(t,n),i=this;(r&8||r&16&&this.touches(t))&&(i=new yu(i.source,0)),r&4&&i.state==0&&(i=new yu(this.source,1)),i=i.updateFor(t,r);for(let a of t.effects)if(a.is(u3))i=new yu(i.source,1,a.value?im(t.state):-1);else if(a.is(Mw))i=new yu(i.source,0);else if(a.is(fhe))for(let s of a.value)s.source==i.source&&(i=s);return i}updateFor(t,n){return this.map(t.changes)}map(t){return t.empty||this.explicitPos<0?this:new yu(this.source,this.state,t.mapPos(this.explicitPos))}touches(t){return t.changes.touchesRange(im(t.state))}}class Zy extends yu{constructor(t,n,r,i,a){super(t,2,n),this.result=r,this.from=i,this.to=a}hasResult(){return!0}updateFor(t,n){var r;if(!(n&3))return this.map(t.changes);let i=this.result;i.map&&!t.changes.empty&&(i=i.map(i,t.changes));let a=t.changes.mapPos(this.from),s=t.changes.mapPos(this.to,1),o=im(t.state);if((this.explicitPos<0?o<=a:os||!i||n&2&&im(t.startState)==this.from)return new yu(this.source,n&4?1:0);let l=this.explicitPos<0?-1:t.changes.mapPos(this.explicitPos);return QGe(i.validFor,t.state,a,s)?new Zy(this.source,l,i,a,s):i.update&&(i=i.update(i,a,s,new CB(t.state,o,l>=0)))?new Zy(this.source,l,i,i.from,(r=i.to)!==null&&r!==void 0?r:im(t.state)):new yu(this.source,1,l)}map(t){return t.empty?this:(this.result.map?this.result.map(this.result,t):this.result)?new Zy(this.source,this.explicitPos<0?-1:t.mapPos(this.explicitPos),this.result,t.mapPos(this.from),t.mapPos(this.to,1)):new yu(this.source,0)}touches(t){return t.changes.touchesRange(this.from,this.to)}}function QGe(e,t,n,r){if(!e)return!1;let i=t.sliceDoc(n,r);return typeof e=="function"?e(i,n,r,t):che(e,!0).test(i)}const fhe=Zn.define({map(e,t){return e.map(n=>n.map(t))}}),hhe=Zn.define(),wl=ws.define({create(){return c3.start()},update(e,t){return e.update(t)},provide:e=>[hB.from(e,t=>t.tooltip),Kt.contentAttributes.from(e,t=>t.attrs)]});function IB(e,t){const n=t.completion.apply||t.completion.label;let r=e.state.field(wl).active.find(i=>i.source==t.source);return r instanceof Zy?(typeof n=="string"?e.dispatch(Object.assign(Object.assign({},RGe(e.state,n,r.from,r.to)),{annotations:RB.of(t.completion)})):n(e,t.completion,r.from,r.to),!0):!1}const WGe=$Ge(wl,IB);function qA(e,t="option"){return n=>{let r=n.state.field(wl,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp-1?r.open.selected+i*(e?1:-1):e?0:s-1;return o<0?o=t=="page"?0:s-1:o>=s&&(o=t=="page"?s-1:0),n.dispatch({effects:hhe.of(o)}),!0}}const VGe=e=>{let t=e.state.field(wl,!1);return e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestampe.state.field(wl,!1)?(e.dispatch({effects:u3.of(!0)}),!0):!1,GGe=e=>{let t=e.state.field(wl,!1);return!t||!t.active.some(n=>n.state!=0)?!1:(e.dispatch({effects:Mw.of(null)}),!0)};class YGe{constructor(t,n){this.active=t,this.context=n,this.time=Date.now(),this.updates=[],this.done=void 0}}const ZGe=50,XGe=1e3,KGe=ha.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(wl).active)t.state==1&&this.startQuery(t)}update(e){let t=e.state.field(wl),n=e.state.facet($s);if(!e.selectionSet&&!e.docChanged&&e.startState.field(wl)==t)return;let r=e.transactions.some(a=>{let s=dhe(a,n);return s&8||(a.selection||a.docChanged)&&!(s&3)});for(let a=0;aZGe&&Date.now()-s.time>XGe){for(let o of s.context.abortListeners)try{o()}catch(l){xl(this.view.state,l)}s.context.abortListeners=null,this.running.splice(a--,1)}else s.updates.push(...e.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),e.transactions.some(a=>a.effects.some(s=>s.is(u3)))&&(this.pendingStart=!0);let i=this.pendingStart?50:n.activateOnTypingDelay;if(this.debounceUpdate=t.active.some(a=>a.state==1&&!this.running.some(s=>s.active.source==a.source))?setTimeout(()=>this.startUpdate(),i):-1,this.composing!=0)for(let a of e.transactions)a.isUserEvent("input.type")?this.composing=2:this.composing==2&&a.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:e}=this.view,t=e.field(wl);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=im(t),r=new CB(t,n,e.explicitPos==n,this.view),i=new YGe(e,r);this.running.push(i),Promise.resolve(e.source(r)).then(a=>{i.context.aborted||(i.done=a||null,this.scheduleAccept())},a=>{this.view.dispatch({effects:Mw.of(null)}),xl(this.view.state,a)})}scheduleAccept(){this.running.every(e=>e.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet($s).updateSyncTime))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],n=this.view.state.facet($s);for(let r=0;rs.source==i.active.source);if(a&&a.state==1)if(i.done==null){let s=new yu(i.active.source,0);for(let o of i.updates)s=s.update(o,n);s.state!=1&&t.push(s)}else this.startQuery(a)}t.length&&this.view.dispatch({effects:fhe.of(t)})}},{eventHandlers:{blur(e){let t=this.view.state.field(wl,!1);if(t&&t.tooltip&&this.view.state.facet($s).closeOnBlur){let n=t.open&&Wde(this.view,t.open.tooltip);(!n||!n.dom.contains(e.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:Mw.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:u3.of(!1)}),20),this.composing=0}}}),JGe=typeof navigator=="object"&&/Win/.test(navigator.platform),eYe=Rp.highest(Kt.domEventHandlers({keydown(e,t){let n=t.state.field(wl,!1);if(!n||!n.open||n.open.disabled||n.open.selected<0||e.key.length>1||e.ctrlKey&&!(JGe&&e.altKey)||e.metaKey)return!1;let r=n.open.options[n.open.selected],i=n.active.find(s=>s.source==r.source),a=r.completion.commitCharacters||i.result.commitCharacters;return a&&a.indexOf(e.key)>-1&&IB(t,r),!1}})),phe=Kt.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",whiteSpace:"pre-line"},".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 tYe{constructor(t,n,r,i){this.field=t,this.line=n,this.from=r,this.to=i}}class NB{constructor(t,n,r){this.field=t,this.from=n,this.to=r}map(t){let n=t.mapPos(this.from,-1,Ms.TrackDel),r=t.mapPos(this.to,1,Ms.TrackDel);return n==null||r==null?null:new NB(this.field,n,r)}}class DB{constructor(t,n){this.lines=t,this.fieldPositions=n}instantiate(t,n){let r=[],i=[n],a=t.doc.lineAt(n),s=/^\s*/.exec(a.text)[0];for(let l of this.lines){if(r.length){let u=s,d=/^\t*/.exec(l)[0].length;for(let f=0;fnew NB(l.field,i[l.line]+l.from,i[l.line]+l.to));return{text:r,ranges:o}}static parse(t){let n=[],r=[],i=[],a;for(let s of t.split(/\r\n?|\n/)){for(;a=/[#$]\{(?:(\d+)(?::([^}]*))?|((?:\\[{}]|[^}])*))\}/.exec(s);){let o=a[1]?+a[1]:null,l=a[2]||a[3]||"",u=-1,d=l.replace(/\\[{}]/g,f=>f[1]);for(let f=0;f=u&&p.field++}i.push(new tYe(u,r.length,a.index,a.index+d.length)),s=s.slice(0,a.index)+l+s.slice(a.index+a[0].length)}s=s.replace(/\\([{}])/g,(o,l,u)=>{for(let d of i)d.line==r.length&&d.from>u&&(d.from--,d.to--);return l}),r.push(s)}return new DB(r,i)}}let nYe=gn.widget({widget:new class extends Md{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),rYe=gn.mark({class:"cm-snippetField"});class RO{constructor(t,n){this.ranges=t,this.active=n,this.deco=gn.set(t.map(r=>(r.from==r.to?nYe:rYe).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 RO(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 GT=Zn.define({map(e,t){return e&&e.map(t)}}),iYe=Zn.define(),$w=ws.define({create(){return null},update(e,t){for(let n of t.effects){if(n.is(GT))return n.value;if(n.is(iYe)&&e)return new RO(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=>Kt.decorations.from(e,t=>t?t.deco:gn.none)});function PB(e,t){return ht.create(e.filter(n=>n.field==t).map(n=>ht.range(n.from,n.to)))}function aYe(e){let t=DB.parse(e);return(n,r,i,a)=>{let{text:s,ranges:o}=t.instantiate(n.state,i),l={changes:{from:i,to:a,insert:vr.of(s)},scrollIntoView:!0,annotations:r?[RB.of(r),os.userEvent.of("input.complete")]:void 0};if(o.length&&(l.selection=PB(o,0)),o.some(u=>u.field>0)){let u=new RO(o,0),d=l.effects=[GT.of(u)];n.state.field($w,!1)===void 0&&d.push(Zn.appendConfig.of([$w,cYe,dYe,phe]))}n.dispatch(n.state.update(l))}}function mhe(e){return({state:t,dispatch:n})=>{let r=t.field($w,!1);if(!r||e<0&&r.active==0)return!1;let i=r.active+e,a=e>0&&!r.ranges.some(s=>s.field==i+e);return n(t.update({selection:PB(r.ranges,i),effects:GT.of(a?null:new RO(r.ranges,i)),scrollIntoView:!0})),!0}}const sYe=({state:e,dispatch:t})=>e.field($w,!1)?(t(e.update({effects:GT.of(null)})),!0):!1,oYe=mhe(1),lYe=mhe(-1),uYe=[{key:"Tab",run:oYe,shift:lYe},{key:"Escape",run:sYe}],zK=an.define({combine(e){return e.length?e[0]:uYe}}),cYe=Rp.highest(xO.compute([zK],e=>e.facet(zK)));function ml(e,t){return Object.assign(Object.assign({},t),{apply:aYe(e)})}const dYe=Kt.domEventHandlers({mousedown(e,t){let n=t.state.field($w,!1),r;if(!n||(r=t.posAtCoords({x:e.clientX,y:e.clientY}))==null)return!1;let i=n.ranges.find(a=>a.from<=r&&a.to>=r);return!i||i.field==n.active?!1:(t.dispatch({selection:PB(n.ranges,i.field),effects:GT.of(n.ranges.some(a=>a.field>i.field)?new RO(n.ranges,i.field):null),scrollIntoView:!0}),!0)}}),Fw={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},jg=Zn.define({map(e,t){let n=t.mapPos(e,-1,Ms.TrackAfter);return n??void 0}}),LB=new class extends O1{};LB.startSide=1;LB.endSide=-1;const ghe=ws.define({create(){return Cr.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(jg)&&(e=e.update({add:[LB.range(n.value,n.value+1)]}));return e}});function fYe(){return[pYe,ghe]}const ND="()[]{}<>";function bhe(e){for(let t=0;t{if((hYe?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let i=e.state.selection.main;if(r.length>2||r.length==2&&cc(Ps(r,0))==1||t!=i.from||n!=i.to)return!1;let a=bYe(e.state,r);return a?(e.dispatch(a),!0):!1}),mYe=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let r=yhe(e,e.selection.main.head).brackets||Fw.brackets,i=null,a=e.changeByRange(s=>{if(s.empty){let o=yYe(e.doc,s.head);for(let l of r)if(l==o&&zR(e.doc,s.head)==bhe(Ps(l,0)))return{changes:{from:s.head-l.length,to:s.head+l.length},range:ht.cursor(s.head-l.length)}}return{range:i=s}});return i||t(e.update(a,{scrollIntoView:!0,userEvent:"delete.backward"})),!i},gYe=[{key:"Backspace",run:mYe}];function bYe(e,t){let n=yhe(e,e.selection.main.head),r=n.brackets||Fw.brackets;for(let i of r){let a=bhe(Ps(i,0));if(t==i)return a==i?SYe(e,i,r.indexOf(i+i+i)>-1,n):vYe(e,i,a,n.before||Fw.before);if(t==a&&vhe(e,e.selection.main.from))return OYe(e,i,a)}return null}function vhe(e,t){let n=!1;return e.field(ghe).between(0,e.doc.length,r=>{r==t&&(n=!0)}),n}function zR(e,t){let n=e.sliceString(t,t+2);return n.slice(0,cc(Ps(n,0)))}function yYe(e,t){let n=e.sliceString(t-2,t);return cc(Ps(n,0))==n.length?n:n.slice(1)}function vYe(e,t,n,r){let i=null,a=e.changeByRange(s=>{if(!s.empty)return{changes:[{insert:t,from:s.from},{insert:n,from:s.to}],effects:jg.of(s.to+t.length),range:ht.range(s.anchor+t.length,s.head+t.length)};let o=zR(e.doc,s.head);return!o||/\s/.test(o)||r.indexOf(o)>-1?{changes:{insert:t+n,from:s.head},effects:jg.of(s.head+t.length),range:ht.cursor(s.head+t.length)}:{range:i=s}});return i?null:e.update(a,{scrollIntoView:!0,userEvent:"input.type"})}function OYe(e,t,n){let r=null,i=e.changeByRange(a=>a.empty&&zR(e.doc,a.head)==n?{changes:{from:a.head,to:a.head+n.length,insert:n},range:ht.cursor(a.head+n.length)}:r={range:a});return r?null:e.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function SYe(e,t,n,r){let i=r.stringPrefixes||Fw.stringPrefixes,a=null,s=e.changeByRange(o=>{if(!o.empty)return{changes:[{insert:t,from:o.from},{insert:t,from:o.to}],effects:jg.of(o.to+t.length),range:ht.range(o.anchor+t.length,o.head+t.length)};let l=o.head,u=zR(e.doc,l),d;if(u==t){if(jK(e,l))return{changes:{insert:t+t,from:l},effects:jg.of(l+t.length),range:ht.cursor(l+t.length)};if(vhe(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:ht.cursor(l+p.length)}}}else{if(n&&e.sliceDoc(l-2*t.length,l)==t+t&&(d=HK(e,l-2*t.length,i))>-1&&jK(e,d))return{changes:{insert:t+t+t+t,from:l},effects:jg.of(l+t.length),range:ht.cursor(l+t.length)};if(e.charCategorizer(l)(u)!=ea.Word&&HK(e,l,i)>-1&&!EYe(e,l,t,i))return{changes:{insert:t+t,from:l},effects:jg.of(l+t.length),range:ht.cursor(l+t.length)}}return{range:a=o}});return a?null:e.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function jK(e,t){let n=Di(e).resolveInner(t+1);return n.parent&&n.from==t}function EYe(e,t,n,r){let i=Di(e).resolveInner(t,-1),a=r.reduce((s,o)=>Math.max(s,o.length),0);for(let s=0;s<5;s++){let o=e.sliceDoc(i.from,Math.min(i.to,i.from+n.length+a)),l=o.indexOf(n);if(!l||l>-1&&r.indexOf(o.slice(0,l))>-1){let d=i.firstChild;for(;d&&d.from==i.from&&d.to-d.from>n.length+l;){if(e.sliceDoc(d.to-n.length,d.to)==n)return!1;d=d.firstChild}return!0}let u=i.to==t&&i.parent;if(!u)break;i=u}return!1}function HK(e,t,n){let r=e.charCategorizer(t);if(r(e.sliceDoc(t-1,t))!=ea.Word)return t;for(let i of n){let a=t-i.length;if(e.sliceDoc(a,t)==i&&r(e.sliceDoc(a-1,a))!=ea.Word)return a}return-1}function wYe(e={}){return[eYe,wl,$s.of(e),KGe,TYe,phe]}const Ohe=[{key:"Ctrl-Space",run:qGe},{key:"Escape",run:GGe},{key:"ArrowDown",run:qA(!0)},{key:"ArrowUp",run:qA(!1)},{key:"PageDown",run:qA(!0,"page")},{key:"PageUp",run:qA(!1,"page")},{key:"Enter",run:VGe}],TYe=Rp.highest(xO.computeN([$s],e=>e.facet($s).defaultKeymap?[Ohe]:[]));class xYe{constructor(t,n,r){this.from=t,this.to=n,this.diagnostic=r}}class Ag{constructor(t,n,r){this.diagnostics=t,this.panel=n,this.selected=r}static init(t,n,r){let i=t,a=r.facet(Bw).markerFilter;a&&(i=a(i,r));let s=gn.set(i.map(o=>o.from==o.to||o.from==o.to-1&&r.doc.lineAt(o.from).to==o.from?gn.widget({widget:new PYe(o),diagnostic:o}).range(o.from):gn.mark({attributes:{class:"cm-lintRange cm-lintRange-"+o.severity+(o.markClass?" "+o.markClass:"")},diagnostic:o}).range(o.from,o.to)),!0);return new Ag(s,n,jv(s))}}function jv(e,t=null,n=0){let r=null;return e.between(n,1e9,(i,a,{spec:s})=>{if(!(t&&s.diagnostic!=t))return r=new xYe(i,a,s.diagnostic),!1}),r}function kYe(e,t){let n=t.pos,r=t.end||n,i=e.state.facet(Bw).hideOn(e,n,r);if(i!=null)return i;let a=e.startState.doc.lineAt(t.pos);return!!(e.effects.some(s=>s.is(She))||e.changes.touchesRange(a.from,Math.max(a.to,r)))}function AYe(e,t){return e.field(Eu,!1)?t:t.concat(Zn.appendConfig.of($Ye))}const She=Zn.define(),MB=Zn.define(),Ehe=Zn.define(),Eu=ws.define({create(){return new Ag(gn.none,null,null)},update(e,t){if(t.docChanged&&e.diagnostics.size){let n=e.diagnostics.map(t.changes),r=null,i=e.panel;if(e.selected){let a=t.changes.mapPos(e.selected.from,1);r=jv(n,e.selected.diagnostic,a)||jv(n,null,a)}!n.size&&i&&t.state.facet(Bw).autoPanel&&(i=null),e=new Ag(n,i,r)}for(let n of t.effects)if(n.is(She)){let r=t.state.facet(Bw).autoPanel?n.value.length?Uw.open:null:e.panel;e=Ag.init(n.value,r,t.state)}else n.is(MB)?e=new Ag(e.diagnostics,n.value?Uw.open:null,e.selected):n.is(Ehe)&&(e=new Ag(e.diagnostics,e.panel,n.value));return e},provide:e=>[Cw.from(e,t=>t.panel),Kt.decorations.from(e,t=>t.diagnostics)]}),_Ye=gn.mark({class:"cm-lintRange cm-lintRange-active"});function CYe(e,t,n){let{diagnostics:r}=e.state.field(Eu),i=[],a=2e8,s=0;r.between(t-(n<0?1:0),t+(n>0?1:0),(l,u,{spec:d})=>{t>=l&&t<=u&&(l==u||(t>l||n>0)&&(tThe(e,n,!1)))}const IYe=e=>{let t=e.state.field(Eu,!1);(!t||!t.panel)&&e.dispatch({effects:AYe(e.state,[MB.of(!0)])});let n=_w(e,Uw.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},QK=e=>{let t=e.state.field(Eu,!1);return!t||!t.panel?!1:(e.dispatch({effects:MB.of(!1)}),!0)},NYe=e=>{let t=e.state.field(Eu,!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)},DYe=[{key:"Mod-Shift-m",run:IYe,preventDefault:!0},{key:"F8",run:NYe}],Bw=an.define({combine(e){return Object.assign({sources:e.map(t=>t.source).filter(t=>t!=null)},Yf(e.map(t=>t.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{needsRefresh:(t,n)=>t?n?r=>t(r)||n(r):t:n}))}});function whe(e){let t=[];if(e)e:for(let{name:n}of e){for(let r=0;ra.toLowerCase()==i.toLowerCase())){t.push(i);continue e}}t.push("")}return t}function The(e,t,n){var r;let i=n?whe(t.actions):[];return _i("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},_i("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage(e):t.message),(r=t.actions)===null||r===void 0?void 0:r.map((a,s)=>{let o=!1,l=p=>{if(p.preventDefault(),o)return;o=!0;let g=jv(e.state.field(Eu).diagnostics,t);g&&a.apply(e,g.from,g.to)},{name:u}=a,d=i[s]?u.indexOf(i[s]):-1,f=d<0?u:[u.slice(0,d),_i("u",u.slice(d,d+1)),u.slice(d+1)];return _i("button",{type:"button",class:"cm-diagnosticAction",onclick:l,onmousedown:l,"aria-label":` Action: ${u}${d<0?"":` (access key "${i[s]})"`}.`},f)}),t.source&&_i("div",{class:"cm-diagnosticSource"},t.source))}class PYe extends Md{constructor(t){super(),this.diagnostic=t}eq(t){return t.diagnostic==this.diagnostic}toDOM(){return _i("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class WK{constructor(t,n){this.diagnostic=n,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=The(t,n,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class Uw{constructor(t){this.view=t,this.items=[];let n=i=>{if(i.keyCode==27)QK(this.view),this.view.focus();else if(i.keyCode==38||i.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(i.keyCode==40||i.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(i.keyCode==36)this.moveSelection(0);else if(i.keyCode==35)this.moveSelection(this.items.length-1);else if(i.keyCode==13)this.view.focus();else if(i.keyCode>=65&&i.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:a}=this.items[this.selectedIndex],s=whe(a.actions);for(let o=0;o{for(let a=0;aQK(this.view)},"×")),this.update()}get selectedIndex(){let t=this.view.state.field(Eu).selected;if(!t)return-1;for(let n=0;n{let u=-1,d;for(let f=r;fr&&(this.items.splice(r,u-r),i=!0)),n&&d.diagnostic==n.diagnostic?d.dom.hasAttribute("aria-selected")||(d.dom.setAttribute("aria-selected","true"),a=d):d.dom.hasAttribute("aria-selected")&&d.dom.removeAttribute("aria-selected"),r++});r({sel:a.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:s,panel:o})=>{let l=o.height/this.list.offsetHeight;s.topo.bottom&&(this.list.scrollTop+=(s.bottom-o.bottom)/l)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),i&&this.sync()}sync(){let t=this.list.firstChild;function n(){let r=t;t=r.nextSibling,r.remove()}for(let r of this.items)if(r.dom.parentNode==this.list){for(;t!=r.dom;)n();t=r.dom.nextSibling}else this.list.insertBefore(r.dom,t);for(;t;)n()}moveSelection(t){if(this.selectedIndex<0)return;let n=this.view.state.field(Eu),r=jv(n.diagnostics,this.items[t].diagnostic);r&&this.view.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0,effects:Ehe.of(r)})}static open(t){return new Uw(t)}}function LYe(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(e)}')`}function GA(e){return LYe(``,'width="6" height="3"')}const MYe=Kt.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:GA("#d11")},".cm-lintRange-warning":{backgroundImage:GA("orange")},".cm-lintRange-info":{backgroundImage:GA("#999")},".cm-lintRange-hint":{backgroundImage:GA("#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}}}),$Ye=[Eu,Kt.decorations.compute([Eu],e=>{let{selected:t,panel:n}=e.field(Eu);return!t||!n||t.from==t.to?gn.none:gn.set([_Ye.range(t.from,t.to)])}),vWe(CYe,{hideOn:kYe}),MYe],FYe=[RWe(),DWe(),ZQe(),XVe(),xVe(),BQe(),QQe(),Dr.allowMultipleSelections.of(!0),hVe(),gfe(CVe,{fallback:!0}),MVe(),fYe(),wYe(),lWe(),dWe(),nWe(),aGe(),xO.of([...gYe,...Kqe,...TGe,...sqe,...SVe,...Ohe,...DYe])];function BYe(e){const{presenceList:t}=e,[n,r]=M.useState(null),i=!!n,a=Pr(xp),s=p=>{r(p.currentTarget)},o=()=>{r(null)},l=p=>{var O;const g=p.presence.cursor;g!==null&&((O=a.cmView)==null||O.dispatch({effects:Kt.scrollIntoView(g[0],{y:"center"})}))},u=4,d=t.slice(u),f=p=>I.jsx(B0,{title:p.presence.name,children:I.jsx(n1,{onClick:()=>l(p),alt:p.presence.name,sx:{bgcolor:p.presence.color},children:p.presence.name[0]})},p.clientID);return I.jsxs(I.Fragment,{children:[I.jsxs(O5e,{children:[t.slice(0,u).map(f),t.length>u&&I.jsxs(n1,{onClick:s,children:["+",t.length-u]})]}),I.jsx(gO,{open:i,anchorEl:n,onClose:o,anchorOrigin:{vertical:"bottom",horizontal:"left"},children:I.jsxs(Hs,{sx:{padding:2},children:[I.jsx(Tr,{variant:"subtitle2",children:"Additional Users"}),d.map(p=>I.jsxs(A6e,{sx:{paddingY:1},onClick:()=>l(p),children:[I.jsx(N6e,{children:I.jsx(n1,{sx:{bgcolor:p.presence.color,width:24,height:24,fontSize:12},children:p.presence.name[0]})}),I.jsx(Kh,{primary:p.presence.name,primaryTypographyProps:{variant:"body2"}})]},p.clientID))]})})]})}function UYe(){const e=Mu(),t=$c(),n=Pr(xp),r=Pr(pR),{presenceList:i}=a9e(n.doc);M.useEffect(()=>{n.shareRole==="READ"&&e(h8("read"))},[e,n.shareRole]);const a=o=>{o&&e(h8(o))},s=()=>{var o;t(`/${(o=r.data)==null?void 0:o.slug}`)};return I.jsx(E$,{position:"static",sx:{zIndex:100},children:I.jsx(j$,{children:I.jsxs(zn,{width:"100%",direction:"row",justifyContent:"space-between",children:[I.jsxs(zn,{direction:"row",spacing:1,alignItems:"center",children:[!n.shareRole&&I.jsx(B0,{title:"Back to Previous Page",children:I.jsx(So,{color:"inherit",onClick:s,children:I.jsx(Nle,{})})}),I.jsx(Hs,{children:n.shareRole!=="READ"&&I.jsxs(woe,{value:n.mode,exclusive:!0,onChange:(o,l)=>a(l),size:"small",children:[I.jsx(V4,{value:"edit","aria-label":"edit",children:I.jsx(B0,{title:"Edit Mode",children:I.jsx(Dle,{})})}),I.jsx(V4,{value:"both","aria-label":"both",children:I.jsx(B0,{title:"Both Mode",children:I.jsx(Ple,{})})}),I.jsx(V4,{value:"read","aria-label":"read",children:I.jsx(B0,{title:"Read Mode",children:I.jsx(dF,{})})})]})}),I.jsx(O$e,{})]}),I.jsxs(zn,{direction:"row",alignItems:"center",gap:1,children:[I.jsx(BYe,{presenceList:i}),!n.shareRole&&I.jsx(Nje,{}),I.jsx(Bje,{})]})]})})})}function zYe(){return I.jsxs(ta,{sx:{flexGrow:1},height:"100vh",children:[I.jsx(UYe,{}),I.jsx(iR,{})]})}function jYe(){return I.jsx(zn,{sx:{flexGrow:1,height:"100vh"},children:I.jsx(iR,{})})}var $B={},HYe=Pi;Object.defineProperty($B,"__esModule",{value:!0});var xhe=$B.default=void 0,QYe=HYe(na()),WYe=I;xhe=$B.default=(0,QYe.default)((0,WYe.jsx)("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"}),"Logout");var FB={},VYe=Pi;Object.defineProperty(FB,"__esModule",{value:!0});var khe=FB.default=void 0,qYe=VYe(na()),VK=I;khe=FB.default=(0,qYe.default)([(0,VK.jsx)("circle",{cx:"10",cy:"8",r:"4"},"0"),(0,VK.jsx)("path",{d:"M10.67 13.02c-.22-.01-.44-.02-.67-.02-2.42 0-4.68.67-6.61 1.82-.88.52-1.39 1.5-1.39 2.53V20h9.26c-.79-1.13-1.26-2.51-1.26-4 0-1.07.25-2.07.67-2.98M20.75 16c0-.22-.03-.42-.06-.63l1.14-1.01-1-1.73-1.45.49c-.32-.27-.68-.48-1.08-.63L18 11h-2l-.3 1.49c-.4.15-.76.36-1.08.63l-1.45-.49-1 1.73 1.14 1.01c-.03.21-.06.41-.06.63s.03.42.06.63l-1.14 1.01 1 1.73 1.45-.49c.32.27.68.48 1.08.63L16 21h2l.3-1.49c.4-.15.76-.36 1.08-.63l1.45.49 1-1.73-1.14-1.01c.03-.21.06-.41.06-.63M17 18c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"},"1")],"ManageAccounts");const GYe={accessToken:null},Ahe=P1({name:"auth",initialState:GYe,reducers:{setAccessToken:(e,t)=>{e.accessToken=t.payload}}}),{setAccessToken:BB}=Ahe.actions,YT=e=>e.auth,YYe=Ahe.reducer;function _he(e){const t=Mu(),n=$T(),r=$c(),i=()=>{t(BB(null)),t(f8(null))},a=()=>{r("/settings/profile")},s=()=>{t(ile(n=="light"?"dark":"light"))};return I.jsx(gO,{anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},...e,children:I.jsxs(uw,{children:[I.jsxs(Od,{onClick:s,children:[I.jsx(r1,{children:n==="light"?I.jsx(KF,{}):I.jsx(ZF,{})}),I.jsx(Kh,{children:"Appearance"})]}),I.jsxs(Od,{onClick:a,children:[I.jsx(r1,{children:I.jsx(khe,{fontSize:"small"})}),I.jsx(Kh,{children:"Profile"})]}),I.jsxs(Od,{onClick:i,children:[I.jsx(r1,{children:I.jsx(xhe,{fontSize:"small"})}),I.jsx(Kh,{children:"Logout"})]})]})})}function Che(e){return I.jsx(cm,{...e,children:I.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:[I.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"}),I.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"}),I.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 ZYe(){var o,l;const e=$c(),t=Pr(_T),[n,r]=M.useState(null),i=u=>{r(u.currentTarget)},a=()=>{r(null)},s=()=>{var u;e(`/${(u=t.data)==null?void 0:u.lastWorkspaceSlug}`)};return I.jsxs(E$,{position:"fixed",children:[I.jsx(j$,{children:I.jsxs(zn,{width:"100%",direction:"row-reverse",justifyContent:"space-between",alignItems:"center",children:[I.jsx(So,{onClick:i,children:I.jsx(n1,{children:(l=(o=t.data)==null?void 0:o.nickname)==null?void 0:l.charAt(0)})}),I.jsx(So,{onClick:s,children:I.jsx(Che,{})})]})}),I.jsx(_he,{open:!!n,anchorEl:n,onClose:a})]})}function XYe(){return I.jsxs(ta,{sx:{display:"flex"},children:[I.jsx(ZYe,{}),I.jsx(iR,{})]})}const KYe=e=>["workspaces",e],Rhe=()=>["workspaces"],UB=e=>{const t=Mu(),n=OO({queryKey:KYe(e||""),enabled:!!e,queryFn:async()=>(await rr.get(`/workspaces/${e}`)).data,meta:{errorMessage:"This is a non-existent or unauthorized Workspace."}});return M.useEffect(()=>(n.data&&t(IZ(n.data)),()=>{t(IZ(null))}),[t,n.data]),n},JYe=()=>mF({queryKey:Rhe(),queryFn:async({pageParam:t})=>(await rr.get("/workspaces",{params:{cursor:t}})).data,initialPageParam:void 0,getPreviousPageParam:t=>t.cursor??void 0,getNextPageParam:t=>t.cursor??void 0}),eZe=()=>{const e=RT();return kp({mutationFn:async t=>(await rr.post("/workspaces",t)).data,onSuccess:()=>{e.invalidateQueries({queryKey:Rhe()})}})},tZe=e=>kp({mutationFn:async t=>(await rr.post(`/workspaces/${e}/invite-token`,t)).data}),nZe=()=>kp({mutationFn:async e=>(await rr.post("/workspaces/join",e)).data});class zw extends M.Component{constructor(t){super(t),this.scrollListener=this.scrollListener.bind(this),this.eventListenerOptions=this.eventListenerOptions.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this)}componentDidMount(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}componentDidUpdate(){if(this.props.isReverse&&this.loadMore){const t=this.getParentElement(this.scrollComponent);t.scrollTop=t.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}componentWillUnmount(){this.detachScrollListener(),this.detachMousewheelListener()}isPassiveSupported(){let t=!1;const n={get passive(){t=!0}};try{document.addEventListener("test",null,n),document.removeEventListener("test",null,n)}catch{}return t}eventListenerOptions(){let t=this.props.useCapture;return this.isPassiveSupported()?t={useCapture:this.props.useCapture,passive:!0}:t={passive:!1},t}setDefaultLoader(t){this.defaultLoader=t}detachMousewheelListener(){let t=window;this.props.useWindow===!1&&(t=this.scrollComponent.parentNode),t.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}detachScrollListener(){let t=window;this.props.useWindow===!1&&(t=this.getParentElement(this.scrollComponent)),t.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}getParentElement(t){const n=this.props.getScrollParent&&this.props.getScrollParent();return n??(t&&t.parentNode)}filterProps(t){return t}attachScrollListener(){const t=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!t)return;let n=window;this.props.useWindow===!1&&(n=t),n.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),n.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),n.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}mousewheelListener(t){t.deltaY===1&&!this.isPassiveSupported()&&t.preventDefault()}scrollListener(){const t=this.scrollComponent,n=window,r=this.getParentElement(t);let i;if(this.props.useWindow){const a=document.documentElement||document.body.parentNode||document.body,s=n.pageYOffset!==void 0?n.pageYOffset:a.scrollTop;this.props.isReverse?i=s:i=this.calculateOffset(t,s)}else this.props.isReverse?i=r.scrollTop:i=t.scrollHeight-r.scrollTop-r.clientHeight;i{this.scrollComponent=w,d&&d(w)};const T=[n];return i&&(o?s?T.unshift(o):T.push(o):this.defaultLoader&&(s?T.unshift(this.defaultLoader):T.push(this.defaultLoader))),sn.createElement(r,S,T)}}Cs(zw,"propTypes",{children:tu.node.isRequired,element:tu.node,hasMore:tu.bool,initialLoad:tu.bool,isReverse:tu.bool,loader:tu.node,loadMore:tu.func.isRequired,pageStart:tu.number,ref:tu.func,getScrollParent:tu.func,threshold:tu.number,useCapture:tu.bool,useWindow:tu.bool}),Cs(zw,"defaultProps",{element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null});var zB={},rZe=Pi;Object.defineProperty(zB,"__esModule",{value:!0});var Ihe=zB.default=void 0,iZe=rZe(na()),aZe=I;Ihe=zB.default=(0,iZe.default)((0,aZe.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var jB={},sZe=Pi;Object.defineProperty(jB,"__esModule",{value:!0});var jR=jB.default=void 0,oZe=sZe(na()),lZe=I;jR=jB.default=(0,oZe.default)((0,lZe.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");function uZe(e,t){var n=M.useRef(!1),r=M.useRef(),i=M.useRef(e),a=M.useCallback(function(){return n.current},[]),s=M.useCallback(function(){n.current=!1,r.current&&clearTimeout(r.current),r.current=setTimeout(function(){n.current=!0,i.current()},t)},[t]),o=M.useCallback(function(){n.current=null,r.current&&clearTimeout(r.current)},[]);return M.useEffect(function(){i.current=e},[e]),M.useEffect(function(){return s(),o},[t]),[a,o,s]}function HR(e,t,n){n===void 0&&(n=[]);var r=uZe(e,t),i=r[0],a=r[1],s=r[2];return M.useEffect(s,n),[i,a]}const cZe=e=>["check","name-conflict",e],HB=e=>OO({queryKey:cZe(e||""),enabled:!!e,queryFn:async()=>(await rr.post("/check/name-conflict",{name:e})).data});function Nhe(e){const{title:t,onSuccess:n,enableConflictCheck:r,...i}=e,[a,s]=M.useState(""),[o,l]=M.useState(""),{data:u}=HB(o),d=M.useMemo(()=>r?a.length<2?"Title must be at least 2 characters":u!=null&&u.conflict?"Already Exists":null:null,[r,a.length,u==null?void 0:u.conflict]);HR(()=>{l(a)},500,[a]);const f=()=>{var O;(O=i==null?void 0:i.onClose)==null||O.call(i,new Event("Close Modal"),"escapeKeyDown")},p=async O=>{O.title.length>=2&&(await n(O),f())},g=O=>{r&&s(O.target.value)};return I.jsx(pO,{disableAutoFocus:!0,...i,children:I.jsxs(Hs,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:[I.jsx(So,{sx:{position:"absolute",top:28,right:28},onClick:f,children:I.jsx(CR,{})}),I.jsxs(zn,{gap:4,children:[I.jsxs(Tr,{variant:"h5",children:["Create New ",t]}),I.jsx(Mc,{children:I.jsx(SO,{defaultValues:{title:""},onSuccess:p,children:I.jsxs(zn,{gap:4,alignItems:"flex-end",children:[I.jsx(NT,{variant:"standard",name:"title",label:`Title of New ${t}`,required:!0,fullWidth:!0,inputProps:{maxLength:255},onChange:g,error:!!d,helperText:d}),I.jsx(go,{type:"submit",variant:"contained",size:"large",disabled:!!d,children:"OK"})]})})})]})]})})}function dZe(e){const{width:t,...n}=e,r=$c(),i=Cm(),{data:a,hasNextPage:s,fetchNextPage:o}=JYe(),{mutateAsync:l}=eZe(),u=M.useMemo(()=>(a==null?void 0:a.pages.reduce((T,w)=>T.concat(w.workspaces),[]))??[],[a==null?void 0:a.pages]),[d,f]=M.useState(!1),p=T=>{r(`/${T}`)},g=T=>{var w;i.workspaceSlug!==T&&(p(T),(w=n==null?void 0:n.onClose)==null||w.call(n,new Event("Close Popover"),"backdropClick"))},O=()=>{var T;f(w=>!w),n.open&&((T=n==null?void 0:n.onClose)==null||T.call(n,new Event("Close Popover"),"backdropClick"))},S=async T=>{const w=await l(T);p(w.slug)};return I.jsxs(I.Fragment,{children:[I.jsxs(gO,{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...n,children:[I.jsx(uw,{sx:{width:t},children:I.jsx(ta,{style:{maxHeight:300,overflow:"auto"},children:I.jsx(zw,{pageStart:0,loadMore:()=>o(),hasMore:s,loader:I.jsx(ta,{className:"loader",children:I.jsx(kd,{size:"sm"})},0),useWindow:!1,children:u.map(T=>I.jsxs(Od,{onClick:()=>g(T.slug),children:[I.jsx(Kh,{primaryTypographyProps:{noWrap:!0,variant:"body2"},children:T.title}),i.workspaceSlug===T.slug&&I.jsx($$,{children:I.jsx(Ihe,{fontSize:"small"})})]},T.id))})})}),I.jsx(Iv,{}),I.jsx(uw,{sx:{width:t},children:I.jsxs(Od,{onClick:O,children:[I.jsx(r1,{children:I.jsx(jR,{fontSize:"small",color:"primary"})}),I.jsx(Kh,{primaryTypographyProps:{color:"primary"},children:"Create Workspace"})]})})]}),I.jsx(Nhe,{open:d,title:"Workspace",onClose:O,onSuccess:S,enableConflictCheck:!0})]})}const d3=256,qK=64;var QB={},fZe=Pi;Object.defineProperty(QB,"__esModule",{value:!0});var Dhe=QB.default=void 0,hZe=fZe(na()),pZe=I;Dhe=QB.default=(0,hZe.default)((0,pZe.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");var WB={},mZe=Pi;Object.defineProperty(WB,"__esModule",{value:!0});var Phe=WB.default=void 0,gZe=mZe(na()),bZe=I;Phe=WB.default=(0,gZe.default)((0,bZe.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp");function yZe(){var d,f,p;const e=Pr(_T),t=Pr(pR),[n,r]=M.useState(null),[i,a]=M.useState(null),s=g=>{a(g.currentTarget)},o=()=>{a(null)},l=g=>{r(g.currentTarget)},u=()=>{r(null)};return I.jsxs(E$,{position:"fixed",children:[I.jsx(j$,{children:I.jsxs(zn,{width:"100%",direction:"row",justifyContent:"space-between",alignItems:"center",children:[I.jsx(go,{variant:"text",color:"inherit",sx:{width:d3,textAlign:"left"},onClick:l,children:I.jsxs(zn,{width:1,direction:"row",justifyContent:"space-between",alignItems:"center",children:[I.jsx(Tr,{variant:"h6",component:"span",noWrap:!0,children:(d=t.data)==null?void 0:d.title}),n?I.jsx(Phe,{}):I.jsx(Dhe,{})]})}),I.jsx(dZe,{open:!!n,anchorEl:n,onClose:u,width:d3}),I.jsx(So,{onClick:s,children:I.jsx(n1,{children:(p=(f=e.data)==null?void 0:f.nickname)==null?void 0:p.charAt(0)})})]})}),I.jsx(_he,{open:!!i,anchorEl:i,onClose:o})]})}var VB={},vZe=Pi;Object.defineProperty(VB,"__esModule",{value:!0});var Lhe=VB.default=void 0,OZe=vZe(na()),SZe=I;Lhe=VB.default=(0,OZe.default)((0,SZe.jsx)("path",{d:"M11 21H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h6zm2 0h6c1.1 0 2-.9 2-2v-7h-8zm8-11V5c0-1.1-.9-2-2-2h-6v7z"}),"SpaceDashboard");var qB={},EZe=Pi;Object.defineProperty(qB,"__esModule",{value:!0});var Mhe=qB.default=void 0,wZe=EZe(na()),TZe=I;Mhe=qB.default=(0,wZe.default)((0,TZe.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");var GB={},xZe=Pi;Object.defineProperty(GB,"__esModule",{value:!0});var $he=GB.default=void 0,kZe=xZe(na()),GK=I;$he=GB.default=(0,kZe.default)([(0,GK.jsx)("path",{d:"M6.41 6 5 7.41 9.58 12 5 16.59 6.41 18l6-6z"},"0"),(0,GK.jsx)("path",{d:"m13 6-1.41 1.41L16.17 12l-4.58 4.59L13 18l6-6z"},"1")],"KeyboardDoubleArrowRight");var YB={},AZe=Pi;Object.defineProperty(YB,"__esModule",{value:!0});var Fhe=YB.default=void 0,_Ze=AZe(na()),YK=I;Fhe=YB.default=(0,_Ze.default)([(0,YK.jsx)("path",{d:"M17.59 18 19 16.59 14.42 12 19 7.41 17.59 6l-6 6z"},"0"),(0,YK.jsx)("path",{d:"m11 18 1.41-1.41L7.83 12l4.58-4.59L11 6l-6 6z"},"1")],"KeyboardDoubleArrowLeft");function CZe(e){const{open:t}=e,n=_m(),r=Cm(),i=$c(),a=Mu(),[s,o]=M.useState(!1),l=M.useMemo(()=>n.pathname.split("/")[2]??"main",[n.pathname]),u=M.useMemo(()=>[{title:"Workspace",IconComponent:Lhe,selected:l==="main",moveTo:`/${r.workspaceSlug}`},{title:"Members",IconComponent:Mhe,selected:l==="member",moveTo:`/${r.workspaceSlug}/member`}],[l,r.workspaceSlug]),d=()=>{a(uLe(!t)),o(!1)},f=()=>{o(!0)},p=()=>{o(!1)};return I.jsxs(ta,{children:[I.jsx(ta,{sx:{width:t?d3:qK}}),I.jsx(Hs,{sx:{position:"fixed",top:0,left:0,height:"100vh",zIndex:10},children:I.jsx(S$,{orientation:"horizontal",in:s||t,collapsedSize:qK,children:I.jsxs(ta,{sx:{width:d3,overflow:"hidden"},children:[I.jsx(Bhe,{}),I.jsx(Hs,{square:!0,elevation:0,onMouseEnter:f,onMouseLeave:p,sx:{backgroundColor:"transparent"},children:I.jsxs(doe,{children:[I.jsx(fY,{onClick:d,children:I.jsx(r1,{children:t?I.jsx(Fhe,{}):I.jsx($he,{})})}),u.map((g,O)=>I.jsxs(fY,{onClick:()=>i(g.moveTo),selected:g.selected,children:[I.jsx(r1,{children:I.jsx(g.IconComponent,{color:g.selected?"primary":"inherit"})}),I.jsx(Kh,{primary:g.title})]},O))]})})]})})})]})}const Bhe=ct("div")(({theme:e})=>({display:"flex",alignItems:"center",padding:e.spacing(0,1),...e.mixins.toolbar,justifyContent:"flex-end"}));function RZe(){const{drawerOpen:e}=Pr(tF);return I.jsxs(ta,{sx:{display:"flex"},children:[I.jsx(yZe,{}),I.jsxs(zn,{direction:"row",sx:{width:"100%"},children:[I.jsx(CZe,{open:e}),I.jsxs(ta,{flexGrow:1,padding:3,children:[I.jsx(Bhe,{}),I.jsx(iR,{})]})]})]})}var IZe=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(r,i,a){n.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:a})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,i){if(1&i&&(r=n(r)),8&i||4&i&&typeof r=="object"&&r&&r.__esModule)return r;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:r}),2&i&&typeof r!="string")for(var s in r)n.d(a,s,(function(o){return r[o]}).bind(null,s));return a},n.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(i,"a",i),i},n.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},n.p="",n(n.s=4)}([function(e,t,n){e.exports=n(2)()},function(e,t){e.exports=M},function(e,t,n){var r=n(3);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function s(u,d,f,p,g,O){if(O!==r){var S=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw S.name="Invariant Violation",S}}function o(){return s}s.isRequired=s;var l={array:s,bool:s,func:s,number:s,object:s,string:s,symbol:s,any:s,arrayOf:o,element:s,elementType:s,instanceOf:o,node:s,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:a,resetWarningCache:i};return l.PropTypes=l,l}},function(e,t,n){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){n.r(t),n.d(t,"FacebookLoginButton",function(){return K}),n.d(t,"GoogleLoginButton",function(){return H}),n.d(t,"GithubLoginButton",function(){return Z}),n.d(t,"TwitterLoginButton",function(){return ae}),n.d(t,"AmazonLoginButton",function(){return Xe}),n.d(t,"InstagramLoginButton",function(){return Lt}),n.d(t,"LinkedInLoginButton",function(){return Et}),n.d(t,"MicrosoftLoginButton",function(){return de}),n.d(t,"BufferLoginButton",function(){return et}),n.d(t,"TelegramLoginButton",function(){return yt}),n.d(t,"AppleLoginButton",function(){return we}),n.d(t,"DiscordLoginButton",function(){return Ue}),n.d(t,"OktaLoginButton",function(){return rt}),n.d(t,"SlackLoginButton",function(){return jt}),n.d(t,"YahooLoginButton",function(){return Mr}),n.d(t,"createButton",function(){return re}),n.d(t,"createSvgIcon",function(){return q}),n.d(t,"ZaloLoginButton",function(){return Li}),n.d(t,"TikTokLoginButton",function(){return yi}),n.d(t,"MetamaskLoginButton",function(){return Vi});var r={};n.r(r),n.d(r,"FacebookLoginButton",function(){return K}),n.d(r,"GoogleLoginButton",function(){return H}),n.d(r,"GithubLoginButton",function(){return Z}),n.d(r,"TwitterLoginButton",function(){return ae}),n.d(r,"AmazonLoginButton",function(){return Xe}),n.d(r,"InstagramLoginButton",function(){return Lt}),n.d(r,"LinkedInLoginButton",function(){return Et}),n.d(r,"MicrosoftLoginButton",function(){return de}),n.d(r,"BufferLoginButton",function(){return et}),n.d(r,"TelegramLoginButton",function(){return yt}),n.d(r,"AppleLoginButton",function(){return we}),n.d(r,"DiscordLoginButton",function(){return Ue}),n.d(r,"OktaLoginButton",function(){return rt}),n.d(r,"SlackLoginButton",function(){return jt}),n.d(r,"YahooLoginButton",function(){return Mr}),n.d(r,"createButton",function(){return re}),n.d(r,"createSvgIcon",function(){return q}),n.d(r,"ZaloLoginButton",function(){return Li}),n.d(r,"TikTokLoginButton",function(){return yi}),n.d(r,"MetamaskLoginButton",function(){return Vi});var i=n(1),a=n.n(i),s=n(0),o=n.n(s),l=function(ze){var it=ze.name,le=ze.size,he=ze.format;return a.a.createElement("i",{className:he(it),style:{fontSize:le}})};l.propTypes={format:o.a.func,name:o.a.string.isRequired,size:o.a.oneOfType([o.a.string,o.a.number]).isRequired},l.defaultProps={format:function(ze){return"demo-icon icon-".concat(ze)},size:26};var u=l,d=function(ze){var it=ze.type,le=ze.size,he=ze.format,Le=ze.color,qe=Le===void 0?"#FFFFFF":Le;return typeof it=="string"?a.a.createElement(u,{format:he,name:it,size:le}):a.a.createElement(it,{size:le,color:qe})};d.propTypes={format:o.a.func,size:o.a.oneOfType([o.a.number,o.a.string]),type:o.a.oneOfType([o.a.string,o.a.node,o.a.func]),color:o.a.string};var f=d;function p(ze,it){var le=Object.keys(ze);if(Object.getOwnPropertySymbols){var he=Object.getOwnPropertySymbols(ze);it&&(he=he.filter(function(Le){return Object.getOwnPropertyDescriptor(ze,Le).enumerable})),le.push.apply(le,he)}return le}function g(ze){for(var it=1;it"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 le,he=R(ze);if(it){var Le=R(this).constructor;le=Reflect.construct(he,arguments,Le)}else le=he.apply(this,arguments);return _(this,le)}}function _(ze,it){return!it||S(it)!=="object"&&typeof it!="function"?function(le){if(le===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return le}(ze):it}function R(ze){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(it){return it.__proto__||Object.getPrototypeOf(it)})(ze)}var N=function(ze){(function(qe,gt){if(typeof gt!="function"&>!==null)throw new TypeError("Super expression must either be null or a function");qe.prototype=Object.create(gt&>.prototype,{constructor:{value:qe,writable:!0,configurable:!0}}),gt&&x(qe,gt)})(Le,ze);var it,le,he=k(Le);function Le(qe){var gt;return function(qt,Ie){if(!(qt instanceof Ie))throw new TypeError("Cannot call a class as a function")}(this,Le),(gt=he.call(this,qe)).state={focused:!1,hovered:!1},gt.handleMouseEnter=function(){gt.setState({hovered:!0}),typeof gt.props.onMouseEnter=="function"&>.props.onMouseEnter()},gt.handleMouseLeave=function(){gt.setState({hovered:!1}),typeof gt.props.onMouseLeave=="function"&>.props.onMouseLeave()},gt.handleFocus=function(){gt.setState({focused:!0})},gt.handleBlur=function(){gt.setState({focused:!1})},gt.handleClick=function(qt){typeof gt.props.onClick=="function"&>.props.onClick(qt)},gt}return it=Le,(le=[{key:"render",value:function(){var qe=this.props,gt=qe.activeStyle,qt=qe.align,Ie=qe.text,Te=qe.children,ot=Te===void 0?Ie:Te,Ye=qe.className,wt=qe.icon,Rt=qe.iconFormat,Yt=qe.iconSize,Qn=qe.iconColor,Yn=Qn===void 0?"#FFFFFF":Qn,qi=qe.preventActiveStyles,ii=qe.size,Uu=qe.style,ko=qe.disabled,$l=this.state,Fl=$l.focused,Bl=$l.hovered,xs=L(j.button,{activeStyle:qi?Uu:gt,customStyle:Uu,active:Bl||Fl,size:ii});return a.a.createElement("button",T({type:"button",style:xs,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur},{className:Ye},{disabled:ko}),a.a.createElement("div",{style:j.flex},!D(Yt)&&a.a.createElement("div",{style:{display:"flex",justifyContent:"center",minWidth:Yt}},a.a.createElement(f,{type:wt,size:Yt,format:Rt,color:Yn})),!D(Yt)&&a.a.createElement("div",{style:j.divider}),a.a.createElement("div",{style:{textAlign:qt,width:"100%"}},ot)))}}])&&w(it.prototype,le),Le}(i.Component),D=function(ze){return ze==="0"||ze==="0px"||ze===0},L=function(ze,it){var le=it.size,he=it.customStyle,Le=it.active,qe=it.activeStyle;return g(g(g({},ze),{},{height:le},he),Le&&qe)};N.propTypes={activeStyle:o.a.object,align:o.a.oneOf(["left","right","center"]),children:o.a.node,className:o.a.string,icon:o.a.oneOfType([o.a.string,o.a.node,o.a.func]),iconFormat:o.a.func,iconSize:o.a.string,iconColor:o.a.string,onClick:o.a.func,onMouseEnter:o.a.func,onMouseLeave:o.a.func,preventActiveStyles:o.a.bool,size:o.a.string,style:o.a.object,text:o.a.string,disabled:o.a.bool},N.defaultProps={align:"left",iconSize:"26px",preventActiveStyles:!1,size:"50px"};var j={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 B(ze,it){var le=Object.keys(ze);if(Object.getOwnPropertySymbols){var he=Object.getOwnPropertySymbols(ze);it&&(he=he.filter(function(Le){return Object.getOwnPropertyDescriptor(ze,Le).enumerable})),le.push.apply(le,he)}return le}function V(ze){for(var it=1;it{window.location.href=`https://codepair-api.yorkie.dev/auth/login/${t}`};return I.jsx(D$,{sx:{height:1},children:I.jsx(zn,{alignItems:"center",justifyContent:"center",sx:{height:1},children:I.jsx(Hs,{sx:{p:5,width:"small",boxShadow:2,maxWidth:"80%"},children:I.jsxs(zn,{gap:4,children:[I.jsxs(ta,{children:[I.jsxs(zn,{direction:"row",gap:1,children:[I.jsx(Che,{}),I.jsx(Tr,{variant:"h6",children:"Login"})]}),I.jsx(Tr,{variant:"body2",color:"text.secondary",maxWidth:320,children:"Real-time markdown editor for interviews, meetings and more..."})]}),I.jsxs(zn,{gap:2,children:[I.jsxs(Oy,{container:!0,spacing:1,alignItems:"center",children:[I.jsx(Oy,{item:!0,xs:!0,children:I.jsx(Iv,{sx:{width:1}})}),I.jsx(Oy,{item:!0,xs:"auto",children:I.jsx(Tr,{variant:"body2",color:"text.secondary",children:"Login with"})}),I.jsx(Oy,{item:!0,xs:!0,children:I.jsx(Iv,{sx:{width:1}})})]}),NZe.map(({SocailLoginComponent:t,provider:n})=>I.jsx(t,{size:"48px",onClick:()=>e(n)},n))]})]})})})})}function PZe(){const e=Mu(),t=$c(),[n]=Z$();return M.useEffect(()=>{const r=n.get("token");if(!r){t("/");return}e(BB(r))},[e,t,n]),I.jsx(ta,{})}const LZe=()=>{const e=$c(),t=()=>{e("/")};return I.jsxs(ta,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100vh",width:"100vw",textAlign:"center",bgcolor:"background.default",color:"text.primary",p:3},children:[I.jsx(Tr,{variant:"h1",component:"h1",gutterBottom:!0,children:"404"}),I.jsx(Tr,{variant:"h5",component:"p",gutterBottom:!0,children:"Page Not Found"}),I.jsx(Tr,{variant:"body1",component:"p",gutterBottom:!0,children:"The page you are looking for does not exist."}),I.jsx(go,{variant:"contained",color:"primary",onClick:t,sx:{mt:2},children:"Go to Home"})]})},Uhe=e=>["users",e],MZe=()=>{const e=Mu(),t=Pr(YT),n=OO({queryKey:Uhe(t.accessToken||""),enabled:!!t.accessToken,queryFn:async()=>(rr.defaults.headers.common.Authorization=`Bearer ${t.accessToken}`,(await rr.get("/users")).data)});return M.useEffect(()=>{n.isSuccess?e(f8(n.data)):n.isError&&(e(BB(null)),e(f8(null)),rr.defaults.headers.common.Authorization="")},[e,n.data,n.isError,n.isSuccess]),n},zhe=()=>{const e=Pr(YT),t=RT();return kp({mutationFn:async n=>(await rr.put("/users",n)).data,onSuccess:()=>{t.invalidateQueries({queryKey:Uhe(e.accessToken||"")})}})},DD=117;function $Ze(){var f,p,g,O,S,T,w,x;const e=Pr(_T),[t,n]=M.useState(((f=e.data)==null?void 0:f.nickname)||""),[r,i]=M.useState(""),{data:a}=HB(r),{mutateAsync:s}=zhe(),o=M.useMemo(()=>{var k;return r!=((k=e.data)==null?void 0:k.nickname)&&(a!=null&&a.conflict)?"Already Exists":null},[a==null?void 0:a.conflict,r,(p=e.data)==null?void 0:p.nickname]),l=M.useMemo(()=>{var k;return!!o||t===((k=e.data)==null?void 0:k.nickname)||t.length===0},[o,t,(g=e.data)==null?void 0:g.nickname]);HR(()=>{i(t)},500,[t]),M.useEffect(()=>{var k,_;(k=e.data)!=null&&k.nickname&&n(((_=e.data)==null?void 0:_.nickname)||"")},[(O=e.data)==null?void 0:O.nickname]);const u=k=>{n(k.target.value)},d=async k=>{await s(k)};return I.jsx(D$,{sx:{height:"calc(100vh - 88px)",width:"100%"},children:I.jsxs(zn,{alignItems:"center",justifyContent:"center",gap:6,sx:{height:1},children:[I.jsx(n1,{sx:{width:DD,height:DD,fontSize:DD/2},children:(T=(S=e.data)==null?void 0:S.nickname)==null?void 0:T.charAt(0).toUpperCase()}),I.jsx(zn,{width:310,children:I.jsxs(Mc,{children:[I.jsx(Tr,{variant:"body1",children:"User name"}),((w=e.data)==null?void 0:w.nickname)&&I.jsx(SO,{defaultValues:{nickname:(x=e.data)==null?void 0:x.nickname},onSuccess:d,children:I.jsxs(zn,{gap:3,children:[I.jsx(NT,{variant:"standard",name:"nickname",required:!0,fullWidth:!0,inputProps:{maxLength:255},onChange:u,error:!!o,helperText:o}),I.jsx(go,{type:"submit",variant:"contained",size:"large",disabled:l,children:"Save"})]})})]})})]})})}var ZB={},FZe=Pi;Object.defineProperty(ZB,"__esModule",{value:!0});var jhe=ZB.default=void 0,BZe=FZe(na()),ZK=I;jhe=ZB.default=(0,BZe.default)([(0,ZK.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,ZK.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");function UZe(e){const{document:t}=e,n=$c(),r=Cm(),i=()=>{n(`/${r.workspaceSlug}/${t.id}`)};return I.jsx(ooe,{sx:{width:"100%"},children:I.jsx(V5e,{onClick:i,children:I.jsxs(X5e,{children:[I.jsx(Tr,{variant:"h5",component:"div",noWrap:!0,children:t.title}),I.jsxs(zn,{direction:"row",alignItems:"center",gap:1,children:[I.jsx(jhe,{fontSize:"small",sx:{color:"text.secondary"}}),I.jsxs(Tr,{variant:"body2",color:"text.secondary",noWrap:!0,children:["Changed ",nn(t.updatedAt).fromNow()]})]})]})})})}function zZe(){const e=Cm(),t=$c(),{data:n,isLoading:r}=UB(e.workspaceSlug),{data:i,fetchNextPage:a,hasNextPage:s}=Sje(n==null?void 0:n.id),{mutateAsync:o}=wje((n==null?void 0:n.id)||""),[l,u]=M.useState(!1),d=M.useMemo(()=>(i==null?void 0:i.pages.reduce((g,O)=>g.concat(O.documents),[]))??[],[i==null?void 0:i.pages]);if(r)return I.jsx(hO,{open:!0,children:I.jsx(kd,{color:"inherit"})});const f=()=>{u(g=>!g)},p=async g=>{const O=await o(g);t(O.id)};return I.jsxs(zn,{gap:2,children:[I.jsxs(zn,{direction:"row",justifyContent:"space-between",alignItems:"center",px:2,children:[I.jsxs(Tr,{variant:"h5",fontWeight:"bold",children:[n==null?void 0:n.title," ",I.jsx(Tr,{component:"span",variant:"inherit",color:"primary",children:i==null?void 0:i.pages[0].totalLength})]}),I.jsx(go,{variant:"contained",startIcon:I.jsx(jR,{}),onClick:f,children:"New Note"})]}),I.jsx(zn,{style:{maxHeight:"calc(100vh - 144px)",overflow:"auto"},children:I.jsx(zw,{pageStart:0,loadMore:()=>a(),hasMore:s,loader:I.jsx(zn,{className:"loader",alignItems:"center",children:I.jsx(kd,{size:20})},0),useWindow:!1,children:I.jsx(ta,{p:2,width:1,children:I.jsx(Oy,{container:!0,spacing:{xs:2,md:3},columns:{xs:4,sm:8,md:12,lg:12},children:d.map(g=>I.jsx(Oy,{item:!0,xs:4,sm:4,md:4,lg:3,children:I.jsx(UZe,{document:g})},g.id))})})})}),I.jsx(Nhe,{open:l,title:"Note",onSuccess:p,onClose:f})]})}function f3(){return f3=Object.assign?Object.assign.bind():function(e){for(var t=1;tu?(j(u),B.current=u):(j(ke),B.current=ke),T&&T({position:B.current})}}},[r,t,S,O,p,d,L,o,u,T,a]),ie=M.useCallback(function(){r||(j(a),B.current=a)},[r,a]);return{position:L,endPosition:W,isDragging:R,separatorProps:f3({},ee,{onPointerDown:K,onKeyDown:G,onDoubleClick:ie}),setPosition:j,splitterProps:f3({},ee,{onPointerDown:K,onKeyDown:G,onDoubleClick:ie})}},VZe=function(e){var t=e.disabled,n=e.initial,r=e.min,i=e.max;return(0,e.children)(WZe({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 qZe=e=>{const t=M.useRef(e);return M.useEffect(()=>{t.current=e}),t},GZe=(e,t=100,n=!1)=>{const r=qZe(e),i=M.useRef(),a=[t,n,r];function s(){i.current&&clearTimeout(i.current),i.current=void 0}M.useEffect(()=>s,a);function o(){i.current=void 0}return M.useCallback(function(){const l=arguments,{current:u}=i;if(u===void 0&&n)return i.current=setTimeout(o,t),r.current.apply(null,l);u&&clearTimeout(u),i.current=setTimeout(()=>{i.current=void 0,r.current.apply(null,l)},t)},a)},YZe=(e,t,n)=>{const r=M.useState(e);return[r[0],GZe(r[1],t,n)]};function PD(e,t,n,r){const i=M.useRef(n),a=M.useRef(r);M.useEffect(()=>{i.current=n,a.current=r}),M.useEffect(()=>{const s=e&&"current"in e?e.current:e;if(!s)return;let o=0;function l(...d){o||i.current.apply(this,d)}s.addEventListener(t,l);const u=a.current;return()=>{o=1,s.removeEventListener(t,l),u&&u()}},[e,t])}const ZZe={},y2=typeof window>"u"?null:window,XZe=y2&&typeof y2.visualViewport<"u"?y2.visualViewport:null,XK=()=>[document.documentElement.clientWidth,document.documentElement.clientHeight],KZe=function(e){e===void 0&&(e=ZZe);const{wait:t,leading:n,initialWidth:r=0,initialHeight:i=0}=e,[a,s]=YZe(typeof document>"u"?[r,i]:XK,t,n),o=()=>s(XK);return PD(y2,"resize",o),PD(XZe,"resize",o),PD(y2,"orientationchange",o),a},JZe=e=>KZe(e)[0];class h3{static create(t,n,r,i,a){let s=i+(i<<8)+t+(n<<4)|0;return new h3(t,n,r,s,a,[],[])}constructor(t,n,r,i,a,s,o){this.type=t,this.value=n,this.from=r,this.hash=i,this.end=a,this.children=s,this.positions=o,this.hashProp=[[qn.contextHash,i]]}addChild(t,n){t.prop(qn.contextHash)!=this.hash&&(t=new ni(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 ni(t.types[this.type],this.children,this.positions,n-this.from).balance({makeTree:(i,a,s)=>new ni(ls.none,i,a,s,this.hashProp)})}}var Ut;(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"})(Ut||(Ut={}));class eXe{constructor(t,n){this.start=t,this.content=n,this.marks=[],this.parsers=[]}}class tXe{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 v2(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==Ut.OrderedList?JB:KB)(n,t,!1);return r>0&&(e.type!=Ut.BulletList||XB(n,t,!1)<0)&&n.text.charCodeAt(n.pos+r-1)==e.value}const Whe={[Ut.Blockquote](e,t,n){return n.next!=62?!1:(n.markers.push(Nr(Ut.QuoteMark,t.lineStart+n.pos,t.lineStart+n.pos+1)),n.moveBase(n.pos+(zc(n.text.charCodeAt(n.pos+1))?2:1)),e.end=t.lineStart+n.text.length,!0)},[Ut.ListItem](e,t,n){return n.indent-1?!1:(n.moveBaseColumn(n.baseIndent+e.value),!0)},[Ut.OrderedList]:KK,[Ut.BulletList]:KK,[Ut.Document](){return!0}};function zc(e){return e==32||e==9||e==10||e==13}function v2(e,t=0){for(;tn&&zc(e.charCodeAt(t-1));)t--;return t}function Vhe(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 Ghe(e,t){for(let n=e.stack.length-1;n>=0;n--)if(e.stack[n].type==t)return!0;return!1}function KB(e,t,n){return(e.next==45||e.next==43||e.next==42)&&(e.pos==e.text.length-1||zc(e.text.charCodeAt(e.pos+1)))&&(!n||Ghe(t,Ut.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 Yhe(e){if(e.next!=35)return-1;let t=e.pos+1;for(;t6?-1:n}function Zhe(e){if(e.next!=45&&e.next!=61||e.indent>=e.baseIndent+4)return-1;let t=e.pos+1;for(;t/,Khe=/\?>/,LL=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/,jhe=/\?>/,kL=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/i.exec(r);if(a)return e.append(Nr(Ut.Comment,n,n+1+a[0].length));let s=/^\?[^]*?\?>/.exec(r);if(s)return e.append(Nr(Ut.ProcessingInstruction,n,n+1+s[0].length));let o=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(r);return o?e.append(Nr(Ut.HTMLTag,n,n+1+o[0].length)):-1},Emphasis(e,t,n){if(t!=95&&t!=42)return-1;let r=n+1;for(;e.char(r)==t;)r++;let i=e.slice(n-1,n),a=e.slice(r,r+1),s=Hw.test(i),o=Hw.test(a),l=/\s|^$/.test(i),u=/\s|^$/.test(a),d=!u&&(!o||l||s),f=!l&&(!s||u||o),p=d&&(t==42||!f||s),g=f&&(t==42||!d||o);return e.append(new ic(t==95?ipe:ape,n,r,(p?1:0)|(g?2:0)))},HardBreak(e,t,n){if(t==92&&e.char(n+1)==10)return e.append(Nr(Ut.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(Nr(Ut.HardBreak,n,r+1))}return-1},Link(e,t,n){return t==91?e.append(new ic(ty,n,n+1,1)):-1},Image(e,t,n){return t==33&&e.char(n+1)==91?e.append(new ic($L,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 ic&&(i.type==ty||i.type==$L)){if(!i.side||e.skipSpace(i.to)==n&&!/[(\[]/.test(e.slice(n+1,n+2)))return e.parts[r]=null,-1;let a=e.takeContent(r),s=e.parts[r]=lXe(e,a,i.type==ty?Ut.Link:Ut.Image,i.from,n+1);if(i.type==ty)for(let o=0;ot?Nr(Ut.URL,t+n,a+n):a==e.length?null:!1}}function ope(e,t,n){let r=e.charCodeAt(t);if(r!=39&&r!=34&&r!=40)return!1;let i=r==40?41:r;for(let a=t+1,s=!1;a=this.end?-1:this.text.charCodeAt(t-this.offset)}get end(){return this.offset+this.text.length}slice(t,n){return this.text.slice(t-this.offset,n-this.offset)}append(t){return this.parts.push(t),t.to}addDelimiter(t,n,r,i,a){return this.append(new ic(t,n,r,(i?1:0)|(a?2:0)))}get hasOpenLink(){for(let t=this.parts.length-1;t>=0;t--){let n=this.parts[t];if(n instanceof ic&&(n.type==ty||n.type==$L))return!0}return!1}addElement(t){return this.append(t)}resolveMarkers(t){for(let r=t;r=t;l--){let S=this.parts[l];if(S instanceof ic&&S.side&1&&S.type==i.type&&!(a&&(i.side&1||S.side&2)&&(S.to-S.from+s)%3==0&&((S.to-S.from)%3||s%3))){o=S;break}}if(!o)continue;let u=i.type.resolve,d=[],f=o.from,p=i.to;if(a){let S=Math.min(2,o.to-o.from,s);f=o.to-S,p=i.from+S,u=S==1?"Emphasis":"StrongEmphasis"}o.type.mark&&d.push(this.elt(o.type.mark,f,o.to));for(let S=l+1;S=0;n--){let r=this.parts[n];if(r instanceof ic&&r.type==t)return n}return null}takeContent(t){let n=this.resolveMarkers(t);return this.parts.length=t,n}skipSpace(t){return v2(this.text,t-this.offset)+this.offset}elt(t,n,r,i){return typeof t=="string"?Nr(this.parser.getNodeType(t),n,r,i):new rpe(t,n)}}function FL(e,t){if(!t.length)return e;if(!e.length)return t;let n=e.slice(),r=0;for(let i of t){for(;r(t?t-1:0))return!1;if(this.fragmentEnd<0){let a=this.fragment.to;for(;a>0&&this.input.read(a-1,a)!=` -`;)a--;this.fragmentEnd=a?a-1:0}let r=this.cursor;r||(r=this.cursor=this.fragment.tree.cursor(),r.firstChild());let i=t+this.fragment.offset;for(;r.to<=i;)if(!r.parent())return!1;for(;;){if(r.from>=i)return this.fragment.from<=n;if(!r.childAfter(i))return!1}}matches(t){let n=this.cursor.tree;return n&&n.prop(qn.contextHash)==t}takeNodes(t){let n=this.cursor,r=this.fragment.offset,i=this.fragmentEnd-(this.fragment.openEnd?1:0),a=t.absoluteLineStart,s=a,o=t.block.children.length,l=s,u=o;for(;;){if(n.to-r>i){if(n.type.isAnonymous&&n.firstChild())continue;break}let d=upe(n.from-r,t.ranges);if(n.to-r<=t.ranges[t.rangeI].to)t.addNode(n.tree,d);else{let f=new ni(t.parser.nodeSet.types[Ut.Paragraph],[],[],0,t.block.hashProp);t.reusePlaceholders.set(f,n.tree),t.addNode(f,d)}if(n.type.is("Block")&&(cXe.indexOf(n.type.id)<0?(s=n.to-r,o=t.block.children.length):(s=l,o=u,l=n.to-r,u=t.block.children.length)),!n.nextSibling())break}for(;t.block.children.length>o;)t.block.children.pop(),t.block.positions.pop();return s-a}};function upe(e,t){let n=e;for(let r=1;rYA[e]),Object.keys(YA).map(e=>iXe[e]),Object.keys(YA),aXe,Whe,Object.keys(MD).map(e=>MD[e]),Object.keys(MD),[]);function pXe(e,t,n){let r=[];for(let i=e.firstChild,a=t;;i=i.nextSibling){let s=i?i.from:n;if(s>a&&r.push({from:a,to:s}),!i)break;a=i.to}return r}function mXe(e){let{codeParser:t,htmlParser:n}=e;return{wrap:efe((i,a)=>{let s=i.type.id;if(t&&(s==Ut.CodeBlock||s==Ut.FencedCode)){let o="";if(s==Ut.FencedCode){let u=i.node.getChild(Ut.CodeInfo);u&&(o=a.read(u.from,u.to))}let l=t(o);if(l)return{parser:l,overlay:u=>u.type.id==Ut.CodeText}}else if(n&&(s==Ut.HTMLBlock||s==Ut.HTMLTag))return{parser:n,overlay:pXe(i.node,i.from,i.to)};return null})}}const gXe={resolve:"Strikethrough",mark:"StrikethroughMark"},bXe={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":ge.strikethrough}},{name:"StrikethroughMark",style:ge.processingInstruction}],parseInline:[{name:"Strikethrough",parse(e,t,n){if(t!=126||e.char(n+1)!=126||e.char(n+2)==126)return-1;let r=e.slice(n-1,n),i=e.slice(n+2,n+3),a=/\s|^$/.test(r),s=/\s|^$/.test(i),o=Hw.test(r),l=Hw.test(i);return e.addDelimiter(gXe,n,n+2,!s&&(!l||a||o),!a&&(!o||s||l))},after:"Emphasis"}]};function O2(e,t,n=0,r,i=0){let a=0,s=!0,o=-1,l=-1,u=!1,d=()=>{r.push(e.elt("TableCell",i+o,i+l,e.parser.parseInline(t.slice(o,l),i+o)))};for(let f=n;f-1)&&a++,s=!1,r&&(o>-1&&d(),r.push(e.elt("TableDelimiter",f+i,f+i+1))),o=l=-1):(u||p!=32&&p!=9)&&(o<0&&(o=f),l=f+1),u=!u&&p==92}return o>-1&&(a++,r&&d()),a}function nJ(e,t){for(let n=t;ni instanceof rJ)||!nJ(t.text,t.basePos))return!1;let r=e.scanLine(e.absoluteLineEnd+1).text;return cpe.test(r)&&O2(e,t.text,t.basePos)==O2(e,r,t.basePos)},before:"SetextHeading"}]};class vXe{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 OXe={defineNodes:[{name:"Task",block:!0,style:ge.list},{name:"TaskMarker",style:ge.atom}],parseBlock:[{name:"TaskList",leaf(e,t){return/^\[[ xX]\][ \t]/.test(t.content)&&e.parentType().name=="ListItem"?new vXe:null},after:"SetextHeading"}]},iJ=/(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy,aJ=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,SXe=/[\w-]+\.[\w-]+($|\/)/,sJ=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,oJ=/\/[a-zA-Z\d@.]+/gy;function lJ(e,t,n,r){let i=0;for(let a=t;a-1)return-1;let r=t+n[0].length;for(;;){let i=e[r-1],a;if(/[?!.,:*_~]/.test(i)||i==")"&&lJ(e,t,r,")")>lJ(e,t,r,"("))r--;else if(i==";"&&(a=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(e.slice(t,r))))r=t+a.index;else break}return r}function uJ(e,t){sJ.lastIndex=t;let n=sJ.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 wXe={parseInline:[{name:"Autolink",parse(e,t,n){let r=n-e.offset;iJ.lastIndex=r;let i=iJ.exec(e.text),a=-1;if(!i)return-1;if(i[1]||i[2]){if(a=EXe(e.text,r+i[0].length),a>-1&&e.hasOpenLink){let s=/([^\[\]]|\[[^\]]*\])*/.exec(e.text.slice(r,a));a=r+s[0].length}}else i[3]?a=uJ(e.text,r):(a=uJ(e.text,r+i[0].length),a>-1&&i[0]=="xmpp:"&&(oJ.lastIndex=a,i=oJ.exec(e.text),i&&(a=i.index+i[0].length)));return a<0?-1:(e.addElement(e.elt("URL",n,a+e.offset)),a+e.offset)}}]},TXe=[yXe,OXe,bXe,wXe];function dpe(e,t,n){return(r,i,a)=>{if(i!=e||r.char(a+1)==e)return-1;let s=[r.elt(n,a,a+1)];for(let o=a+1;on%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,n,r=0){let i=t.parser.context;return new p3(t,[],n,r,r,0,[],0,i?new dJ(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,n){this.stack.push(this.state,n,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var n;let r=t>>19,i=t&65535,{parser:a}=this.p,s=this.reducePos=2e3&&!(!((n=this.p.parser.nodeSet.types[i])===null||n===void 0)&&n.isAnonymous)&&(u==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=d):this.p.lastBigReductionSizel;)this.stack.pop();this.reduceContext(i,u)}storeNode(t,n,r,i=4,a=!1){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&s.buffer[o-4]==0&&s.buffer[o-1]>-1){if(n==r)return;if(s.buffer[o-2]>=n){s.buffer[o-2]=r;return}}}if(!a||this.pos==r)this.buffer.push(t,n,r,i);else{let s=this.buffer.length;if(s>0&&this.buffer[s-4]!=0){let o=!1;for(let l=s;l>0&&this.buffer[l-2]>r;l-=4)if(this.buffer[l-1]>=0){o=!0;break}if(o)for(;s>0&&this.buffer[s-2]>r;)this.buffer[s]=this.buffer[s-4],this.buffer[s+1]=this.buffer[s-3],this.buffer[s+2]=this.buffer[s-2],this.buffer[s+3]=this.buffer[s-1],s-=4,i>4&&(i-=4)}this.buffer[s]=t,this.buffer[s+1]=n,this.buffer[s+2]=r,this.buffer[s+3]=i}}shift(t,n,r,i){if(t&131072)this.pushState(t&65535,this.pos);else if(t&262144)this.pos=i,this.shiftContext(n,r),n<=this.p.parser.maxNode&&this.buffer.push(n,r,i,4);else{let a=t,{parser:s}=this.p;(i>this.pos||n<=s.maxNode)&&(this.pos=i,s.stateFlag(a,1)||(this.reducePos=i)),this.pushState(a,r),this.shiftContext(n,r),n<=s.maxNode&&this.buffer.push(n,r,i,4)}}apply(t,n,r,i){t&65536?this.reduce(t):this.shift(t,n,r,i)}useNode(t,n){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=t)&&(this.p.reused.push(t),r++);let i=this.pos;this.reducePos=this.pos=i+t.length,this.pushState(n,i),this.buffer.push(r,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,n=t.buffer.length;for(;n>0&&t.buffer[n-2]>t.reducePos;)n-=4;let r=t.buffer.slice(n),i=t.bufferBase+n;for(;t&&i==t.bufferBase;)t=t.parent;return new p3(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 _Xe(this);;){let r=this.p.parser.stateSlot(n.state,4)||this.p.parser.hasAction(n.state,t);if(r==0)return!1;if(!(r&65536))return!0;n.reduce(r)}}recoverByInsert(t){if(this.stack.length>=300)return[];let n=this.p.parser.nextStates(this.state);if(n.length>8||this.stack.length>=120){let i=[];for(let a=0,s;al&1&&o==s)||i.push(n[a],s)}n=i}let r=[];for(let i=0;i>19,i=n&65535,a=this.stack.length-r*3;if(a<0||t.getGoto(this.stack[a],i,!1)<0){let s=this.findForcedReduction();if(s==null)return!1;n=s}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}findForcedReduction(){let{parser:t}=this.p,n=[],r=(i,a)=>{if(!n.includes(i))return n.push(i),t.allActions(i,s=>{if(!(s&393216))if(s&65536){let o=(s>>19)-a;if(o>1){let l=s&65535,u=this.stack.length-o*3;if(u>=0&&t.getGoto(this.stack[u],l,!1)>=0)return o<<19|65536|l}}else{let o=r(s,a+1);if(o!=null)return o}})};return r(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:t}=this.p;return t.data[t.stateSlot(this.state,1)]==65535&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let n=0;nthis.lookAhead&&(this.emitLookAhead(),this.lookAhead=t)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class dJ{constructor(t,n){this.tracker=t,this.context=n,this.hash=t.strict?t.hash(n):0}}class _Xe{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 m3{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 m3(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 m3(this.stack,this.pos,this.index)}}function zE(e,t=Uint16Array){if(typeof e!="string")return e;let n=null;for(let r=0,i=0;r=92&&s--,s>=34&&s--;let l=s-32;if(l>=46&&(l-=46,o=!0),a+=l,o)break;a*=46}n?n[i++]=a:n=new t(a)}return n}class h_{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const fJ=new h_;class CXe{constructor(t,n){this.input=t,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=fJ,this.rangeIndex=0,this.pos=this.chunkPos=n[0].from,this.range=n[0],this.end=n[n.length-1].to,this.readNext()}resolveOffset(t,n){let r=this.range,i=this.rangeIndex,a=this.pos+t;for(;ar.to:a>=r.to;){if(i==this.ranges.length-1)return null;let s=this.ranges[++i];a+=s.from-r.to,r=s}return a}clipPos(t){if(t>=this.range.from&&tt)return Math.max(t,n.from);return this.end}peek(t){let n=this.chunkOff+t,r,i;if(n>=0&&n=this.chunk2Pos&&ro.to&&(this.chunk2=this.chunk2.slice(0,o.to-r)),i=this.chunk2.charCodeAt(0)}}return r>=this.token.lookAhead&&(this.token.lookAhead=r+1),i}acceptToken(t,n=0){let r=n?this.resolveOffset(n,-1):this.pos;if(r==null||r=this.chunk2Pos&&this.posthis.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,n){if(n?(this.token=n,n.start=t,n.lookAhead=t+1,n.value=n.extended=-1):this.token=fJ,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 Xy{constructor(t,n){this.data=t,this.id=n}token(t,n){let{parser:r}=n.p;fpe(this.data,t,n,this.id,r.data,r.tokenPrecTable)}}Xy.prototype.contextual=Xy.prototype.fallback=Xy.prototype.extend=!1;class g3{constructor(t,n,r){this.precTable=n,this.elseToken=r,this.data=typeof t=="string"?zE(t):t}token(t,n){let r=t.pos,i=0;for(;;){let a=t.next<0,s=t.resolveOffset(1,1);if(fpe(this.data,t,n,0,this.data,this.precTable),t.token.value>-1)break;if(this.elseToken==null)return;if(a||i++,s==null)break;t.reset(s,t.token)}i&&(t.reset(r,t.token),t.acceptToken(this.elseToken,i))}}g3.prototype.contextual=Xy.prototype.fallback=Xy.prototype.extend=!1;class Fd{constructor(t,n={}){this.token=t,this.contextual=!!n.contextual,this.fallback=!!n.fallback,this.extend=!!n.extend}}function fpe(e,t,n,r,i,a){let s=0,o=1<0){let O=e[g];if(l.allows(O)&&(t.token.value==-1||t.token.value==O||RXe(O,t.token.value,i,a))){t.acceptToken(O);break}}let d=t.next,f=0,p=e[s+2];if(t.next<0&&p>f&&e[u+p*3-3]==65535){s=e[u+p*3-1];continue e}for(;f>1,O=u+g+(g<<1),S=e[O],T=e[O+1]||65536;if(d=T)f=g+1;else{s=e[O+2],t.advance();continue e}}break}}function hJ(e,t,n){for(let r=t,i;(i=e[r])!=65535;r++)if(i==n)return r-t;return-1}function RXe(e,t,n,r){let i=hJ(n,r,t);return i<0||hJ(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 IXe{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?pJ(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?pJ(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(tt)return this.nextStart=s,null;if(a instanceof ni){if(s==t){if(s=Math.max(this.safeFrom,t)&&(this.trees.push(a),this.start.push(s),this.index.push(0))}else this.index[n]++,this.nextStart=s+a.length}}}class NXe{constructor(t,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(r=>new h_)}getActions(t){let n=0,r=null,{parser:i}=t.p,{tokenizers:a}=i,s=i.stateSlot(t.state,3),o=t.curContext?t.curContext.hash:0,l=0;for(let u=0;uf.end+25&&(l=Math.max(f.lookAhead,l)),f.value!=0)){let p=n;if(f.extended>-1&&(n=this.addActions(t,f.extended,f.end,n)),n=this.addActions(t,f.value,f.end,n),!d.extend&&(r=f,n>p))break}}for(;this.actions.length>n;)this.actions.pop();return l&&t.setLookAhead(l),!r&&t.pos==this.stream.end&&(r=new h_,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 h_,{pos:r,p:i}=t;return n.start=r,n.end=Math.min(r+1,i.stream.end),n.value=r==i.stream.end?i.parser.eofTerm:0,n}updateCachedToken(t,n,r){let i=this.stream.clipPos(r.pos);if(n.token(this.stream.reset(i,t),r),t.value>-1){let{parser:a}=r.p;for(let s=0;s=0&&r.p.parser.dialect.allows(o>>1)){o&1?t.extended=o>>1:t.value=o>>1;break}}}else t.value=0,t.end=this.stream.clipPos(i+1)}putAction(t,n,r,i){for(let a=0;at.bufferLength*4?new IXe(r,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,n=this.minStackPos,r=this.stacks=[],i,a;if(this.bigReductionCount>300&&t.length==1){let[s]=t;for(;s.forceReduce()&&s.stack.length&&s.stack[s.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let s=0;sn)r.push(o);else{if(this.advanceStack(o,r,t))continue;{i||(i=[],a=[]),i.push(o);let l=this.tokens.getMainToken(o);a.push(l.value,l.end)}}break}}if(!r.length){let s=i&&LXe(i);if(s)return ru&&console.log("Finish with "+this.stackID(s)),this.stackToTree(s);if(this.parser.strict)throw ru&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+n);this.recovering||(this.recovering=5)}if(this.recovering&&i){let s=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,a,r);if(s)return ru&&console.log("Force-finish "+this.stackID(s)),this.stackToTree(s.forceAll())}if(this.recovering){let s=this.recovering==1?1:this.recovering*3;if(r.length>s)for(r.sort((o,l)=>l.score-o.score);r.length>s;)r.pop();r.some(o=>o.reducePos>n)&&this.recovering--}else if(r.length>1){e:for(let s=0;s500&&u.buffer.length>500)if((o.score-u.score||o.buffer.length-u.buffer.length)>0)r.splice(l--,1);else{r.splice(s--,1);continue e}}}r.length>12&&r.splice(12,r.length-12)}this.minStackPos=r[0].pos;for(let s=1;s ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let u=t.curContext&&t.curContext.tracker.strict,d=u?t.curContext.hash:0;for(let f=this.fragments.nodeAt(i);f;){let p=this.parser.nodeSet.types[f.type.id]==f.type?a.getGoto(t.state,f.type.id):-1;if(p>-1&&f.length&&(!u||(f.prop(qn.contextHash)||0)==d))return t.useNode(f,p),ru&&console.log(s+this.stackID(t)+` (via reuse of ${a.getName(f.type.id)})`),!0;if(!(f instanceof ni)||f.children.length==0||f.positions[0]>0)break;let g=f.children[0];if(g instanceof ni&&f.positions[0]==0)f=g;else break}}let o=a.stateSlot(t.state,4);if(o>0)return t.reduce(o),ru&&console.log(s+this.stackID(t)+` (via always-reduce ${a.getName(o&65535)})`),!0;if(t.stack.length>=8400)for(;t.stack.length>6e3&&t.forceReduce(););let l=this.tokens.getActions(t);for(let u=0;ui?n.push(O):r.push(O)}return!1}advanceFully(t,n){let r=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>r)return mJ(t,n),!0}}runRecovery(t,n,r){let i=null,a=!1;for(let s=0;s ":"";if(o.deadEnd&&(a||(a=!0,o.restart(),ru&&console.log(d+this.stackID(o)+" (restarted)"),this.advanceFully(o,r))))continue;let f=o.split(),p=d;for(let g=0;f.forceReduce()&&g<10&&(ru&&console.log(p+this.stackID(f)+" (via force-reduce)"),!this.advanceFully(f,r));g++)ru&&(p=this.stackID(f)+" -> ");for(let g of o.recoverByInsert(l))ru&&console.log(d+this.stackID(g)+" (via recover-insert)"),this.advanceFully(g,r);this.stream.end>o.pos?(u==o.pos&&(u++,l=0),o.recoverByDelete(l,u),ru&&console.log(d+this.stackID(o)+` (via recover-delete ${this.parser.getName(l)})`),mJ(o,r)):(!i||i.scoree;class hpe{constructor(t){this.start=t.start,this.shift=t.shift||FD,this.reduce=t.reduce||FD,this.reuse=t.reuse||FD,this.hash=t.hash||(()=>0),this.strict=t.strict!==!1}}class Qv extends bB{constructor(t){if(super(),this.wrappers=[],t.version!=14)throw new RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let n=t.nodeNames.split(" ");this.minRepeatTerm=n.length;for(let o=0;ot.topRules[o][1]),i=[];for(let o=0;o=0)a(d,l,o[u++]);else{let f=o[u+-d];for(let p=-d;p>0;p--)a(o[u++],l,f);u++}}}this.nodeSet=new zT(n.map((o,l)=>ls.define({name:l>=this.minRepeatTerm?void 0:o,id:l,props:i[l],top:r.indexOf(l)>-1,error:l==0,skipped:t.skippedNodes&&t.skippedNodes.indexOf(l)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=Yde;let s=zE(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let o=0;otypeof o=="number"?new Xy(s,o):o),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,n,r){let i=new DXe(this,t,n,r);for(let a of this.wrappers)i=a(i,t,n,r);return i}getGoto(t,n,r=!1){let i=this.goto;if(n>=i[0])return-1;for(let a=i[n+1];;){let s=i[a++],o=s&1,l=i[a++];if(o&&r)return l;for(let u=a+(s>>1);a0}validAction(t,n){return!!this.allActions(t,r=>r==n?!0:null)}allActions(t,n){let r=this.stateSlot(t,4),i=r?n(r):void 0;for(let a=this.stateSlot(t,1);i==null;a+=3){if(this.data[a]==65535)if(this.data[a+1]==1)a=Bh(this.data,a+2);else break;i=n(Bh(this.data,a+1))}return i}nextStates(t){let n=[];for(let r=this.stateSlot(t,1);;r+=3){if(this.data[r]==65535)if(this.data[r+1]==1)r=Bh(this.data,r+2);else break;if(!(this.data[r+2]&1)){let i=this.data[r+1];n.some((a,s)=>s&1&&a==i)||n.push(this.data[r],i)}}return n}configure(t){let n=Object.assign(Object.create(Qv.prototype),this);if(t.props&&(n.nodeSet=this.nodeSet.extend(...t.props)),t.top){let r=this.topRules[t.top];if(!r)throw new RangeError(`Invalid top rule name ${t.top}`);n.top=r}return t.tokenizers&&(n.tokenizers=this.tokenizers.map(r=>{let i=t.tokenizers.find(a=>a.from==r);return i?i.to:r})),t.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((r,i)=>{let a=t.specializers.find(o=>o.from==r.external);if(!a)return r;let s=Object.assign(Object.assign({},r),{external:a.to});return n.specializers[i]=gJ(s),s})),t.contextTracker&&(n.context=t.contextTracker),t.dialect&&(n.dialect=this.parseDialect(t.dialect)),t.strict!=null&&(n.strict=t.strict),t.wrap&&(n.wrappers=n.wrappers.concat(t.wrap)),t.bufferLength!=null&&(n.bufferLength=t.bufferLength),n}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let n=this.dynamicPrecedences;return n==null?0:n[t]||0}parseDialect(t){let n=Object.keys(this.dialects),r=n.map(()=>!1);if(t)for(let a of t.split(" ")){let s=n.indexOf(a);s>=0&&(r[s]=!0)}let i=null;for(let a=0;ar)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.scoree.external(n,r)<<1|t}return e.get}const MXe=54,$Xe=1,FXe=55,BXe=2,UXe=56,zXe=3,bJ=4,jXe=5,b3=6,ppe=7,mpe=8,gpe=9,bpe=10,HXe=11,QXe=12,WXe=13,BD=57,VXe=14,yJ=58,ype=20,qXe=22,vpe=23,GXe=24,BL=26,Ope=27,YXe=28,ZXe=31,XXe=34,KXe=36,JXe=37,eKe=0,tKe=1,nKe={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},rKe={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},vJ={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 iKe(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}function Spe(e){return e==9||e==10||e==13||e==32}let OJ=null,SJ=null,EJ=0;function UL(e,t){let n=e.pos+t;if(EJ==n&&SJ==e)return OJ;let r=e.peek(t);for(;Spe(r);)r=e.peek(++t);let i="";for(;iKe(r);)i+=String.fromCharCode(r),r=e.peek(++t);return SJ=e,EJ=n,OJ=i?i.toLowerCase():r==aKe||r==sKe?void 0:null}const Epe=60,y3=62,eU=47,aKe=63,sKe=33,oKe=45;function wJ(e,t){this.name=e,this.parent=t}const lKe=[b3,bpe,ppe,mpe,gpe],uKe=new hpe({start:null,shift(e,t,n,r){return lKe.indexOf(t)>-1?new wJ(UL(r,1)||"",e):e},reduce(e,t){return t==ype&&e?e.parent:e},reuse(e,t,n,r){let i=t.type.id;return i==b3||i==KXe?new wJ(UL(r,1)||"",e):e},strict:!1}),cKe=new Fd((e,t)=>{if(e.next!=Epe){e.next<0&&t.context&&e.acceptToken(BD);return}e.advance();let n=e.next==eU;n&&e.advance();let r=UL(e,0);if(r===void 0)return;if(!r)return e.acceptToken(n?VXe:b3);let i=t.context?t.context.name:null;if(n){if(r==i)return e.acceptToken(HXe);if(i&&rKe[i])return e.acceptToken(BD,-2);if(t.dialectEnabled(eKe))return e.acceptToken(QXe);for(let a=t.context;a;a=a.parent)if(a.name==r)return;e.acceptToken(WXe)}else{if(r=="script")return e.acceptToken(ppe);if(r=="style")return e.acceptToken(mpe);if(r=="textarea")return e.acceptToken(gpe);if(nKe.hasOwnProperty(r))return e.acceptToken(bpe);i&&vJ[i]&&vJ[i][r]?e.acceptToken(BD,-1):e.acceptToken(b3)}},{contextual:!0}),dKe=new Fd(e=>{for(let t=0,n=0;;n++){if(e.next<0){n&&e.acceptToken(yJ);break}if(e.next==oKe)t++;else if(e.next==y3&&t>=2){n>=3&&e.acceptToken(yJ,-2);break}else t=0;e.advance()}});function fKe(e){for(;e;e=e.parent)if(e.name=="svg"||e.name=="math")return!0;return!1}const hKe=new Fd((e,t)=>{if(e.next==eU&&e.peek(1)==y3){let n=t.dialectEnabled(tKe)||fKe(t.context);e.acceptToken(n?jXe:bJ,2)}else e.next==y3&&e.acceptToken(bJ,1)});function tU(e,t,n){let r=2+e.length;return new Fd(i=>{for(let a=0,s=0,o=0;;o++){if(i.next<0){o&&i.acceptToken(t);break}if(a==0&&i.next==Epe||a==1&&i.next==eU||a>=2&&as?i.acceptToken(t,-s):i.acceptToken(n,-(s-2));break}else if((i.next==10||i.next==13)&&o){i.acceptToken(t,1);break}else a=s=0;i.advance()}})}const pKe=tU("script",MXe,$Xe),mKe=tU("style",FXe,BXe),gKe=tU("textarea",UXe,zXe),bKe=kO({"Text RawText":ge.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":ge.angleBracket,TagName:ge.tagName,"MismatchedCloseTag/TagName":[ge.tagName,ge.invalid],AttributeName:ge.attributeName,"AttributeValue UnquotedAttributeValue":ge.attributeValue,Is:ge.definitionOperator,"EntityReference CharacterReference":ge.character,Comment:ge.blockComment,ProcessingInst:ge.processingInstruction,DoctypeDecl:ge.documentMeta}),yKe=Qv.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%ZQ&rO,59fO%fQ&rO,59iO%qQ&rO,59lO%|Q&rO,59nOOOa'#D^'#D^O&XOaO'#CxO&dOaO,59[OOOb'#D_'#D_O&lObO'#C{O&wObO,59[OOOd'#D`'#D`O'POdO'#DOO'[OdO,59[OOO`'#Da'#DaO'dO!rO,59[O'kQ#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'pO$fO,59oOOO`,59o,59oO'xQ#|O,59qO'}Q#|O,59rOOO`-E7W-E7WO(SQ&rO'#CsOOQW'#DZ'#DZO(bQ&rO1G.wOOOa1G.w1G.wOOO`1G/Y1G/YO(mQ&rO1G/QOOOb1G/Q1G/QO(xQ&rO1G/TOOOd1G/T1G/TO)TQ&rO1G/WOOO`1G/W1G/WO)`Q&rO1G/YOOOa-E7[-E7[O)kQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)pQ#tO'#C|OOOd-E7^-E7^O)uQ#tO'#DPOOO`-E7_-E7_O)zQ#|O,59mOOOp-E7`-E7`OOO`1G/Z1G/ZOOO`1G/]1G/]OOO`1G/^1G/^O*PQ,UO,59_OOQW-E7X-E7XOOOa7+$c7+$cOOO`7+$t7+$tOOOb7+$l7+$lOOOd7+$o7+$oOOO`7+$r7+$rO*[Q#|O,59eO*aQ#|O,59hO*fQ#|O,59kOOO`1G/X1G/XO*kO7[O'#CvO*|OMhO'#CvOOQW1G.y1G.yOOO`1G/P1G/POOO`1G/S1G/SOOO`1G/V1G/VOOOO'#D['#D[O+_O7[O,59bOOQW,59b,59bOOOO'#D]'#D]O+pOMhO,59bOOOO-E7Y-E7YOOQW1G.|1G.|OOOO-E7Z-E7Z",stateData:",]~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|OT}OhyO~OS!POT}OhyO~OS!ROT}OhyO~OS!TOT}OhyO~OS}OT}OhyO~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!dOSgXTgXhgX~OS!fOT!gOhyO~OS!hOT!gOhyO~OS!iOT!gOhyO~OS!jOT!gOhyO~OS!gOT!gOhyO~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{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!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:uKe,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:[bKe],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=o.type.id;if(u==YXe)return UD(o,l,n);if(u==ZXe)return UD(o,l,r);if(u==XXe)return UD(o,l,i);if(u==ype&&a.length){let d=o.node,f=d.firstChild,p=f&&TJ(f,l),g;if(p){for(let O of a)if(O.tag==p&&(!O.attrs||O.attrs(g||(g=wpe(f,l))))){let S=d.lastChild,T=S.type.id==JXe?S.from:d.to;if(T>f.to)return{parser:O.parser,overlay:[{from:f.to,to:T}]}}}}if(s&&u==vpe){let d=o.node,f;if(f=d.firstChild){let p=s[l.read(f.from,f.to)];if(p)for(let g of p){if(g.tagName&&g.tagName!=TJ(d.parent,l))continue;let O=d.lastChild;if(O.type.id==BL){let S=O.from+1,T=O.lastChild,w=O.to-(T&&T.isError?0:1);if(w>S)return{parser:g.parser,overlay:[{from:S,to:w}]}}else if(O.type.id==Ope)return{parser:g.parser,overlay:[{from:O.from,to:O.to}]}}}}return null})}const vKe=99,xJ=1,OKe=100,SKe=101,kJ=2,xpe=[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],EKe=58,wKe=40,kpe=95,TKe=91,p_=45,xKe=46,kKe=35,AKe=37,_Ke=38,CKe=92,RKe=10;function Qw(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function Ape(e){return e>=48&&e<=57}const IKe=new Fd((e,t)=>{for(let n=!1,r=0,i=0;;i++){let{next:a}=e;if(Qw(a)||a==p_||a==kpe||n&&Ape(a))!n&&(a!=p_||i>0)&&(n=!0),r===i&&a==p_&&r++,e.advance();else if(a==CKe&&e.peek(1)!=RKe)e.advance(),e.next>-1&&e.advance(),n=!0;else{n&&e.acceptToken(a==wKe?OKe:r==2&&t.canShift(kJ)?kJ:SKe);break}}}),NKe=new Fd(e=>{if(xpe.includes(e.peek(-1))){let{next:t}=e;(Qw(t)||t==kpe||t==kKe||t==xKe||t==TKe||t==EKe&&Qw(e.peek(1))||t==p_||t==_Ke)&&e.acceptToken(vKe)}}),DKe=new Fd(e=>{if(!xpe.includes(e.peek(-1))){let{next:t}=e;if(t==AKe&&(e.advance(),e.acceptToken(xJ)),Qw(t)){do e.advance();while(Qw(e.next)||Ape(e.next));e.acceptToken(xJ)}}}),PKe=kO({"AtKeyword import charset namespace keyframes media supports":ge.definitionKeyword,"from to selector":ge.keyword,NamespaceName:ge.namespace,KeyframeName:ge.labelName,KeyframeRangeName:ge.operatorKeyword,TagName:ge.tagName,ClassName:ge.className,PseudoClassName:ge.constant(ge.className),IdName:ge.labelName,"FeatureName PropertyName":ge.propertyName,AttributeName:ge.attributeName,NumberLiteral:ge.number,KeywordQuery:ge.keyword,UnaryQueryOp:ge.operatorKeyword,"CallTag ValueName":ge.atom,VariableName:ge.variableName,Callee:ge.operatorKeyword,Unit:ge.unit,"UniversalSelector NestingSelector":ge.definitionOperator,MatchOp:ge.compareOperator,"ChildOp SiblingOp, LogicOp":ge.logicOperator,BinOp:ge.arithmeticOperator,Important:ge.modifier,Comment:ge.blockComment,ColorLiteral:ge.color,"ParenthesizedContent StringLiteral":ge.string,":":ge.punctuation,"PseudoOp #":ge.derefOperator,"; ,":ge.separator,"( )":ge.paren,"[ ]":ge.squareBracket,"{ }":ge.brace}),LKe={__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},MKe={__proto__:null,"@import":118,"@media":142,"@charset":146,"@namespace":150,"@keyframes":156,"@supports":168},$Ke={__proto__:null,not:132,only:132},FKe=Qv.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:[NKe,DKe,IKe,1,2,3,4,new g3("m~RRYZ[z{a~~g~aO#^~~dP!P!Qg~lO#_~~",28,105)],topRules:{StyleSheet:[0,4],Styles:[1,86]},specialized:[{term:100,get:e=>LKe[e]||-1},{term:58,get:e=>MKe[e]||-1},{term:101,get:e=>$Ke[e]||-1}],tokenPrec:1200});let zD=null;function jD(){if(!zD&&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)));zD=t.sort().map(r=>({type:"property",label:r}))}return zD||[]}const AJ=["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})),_J=["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}))),BKe=["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})),s0=/^(\w[\w-]*|-\w[\w-]*|)$/,UKe=/^-(-[\w-]*)?$/;function zKe(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 CJ=new Jde,jKe=["Declaration"];function HKe(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function _pe(e,t,n){if(t.to-t.from>4096){let r=CJ.get(t);if(r)return r;let i=[],a=new Set,s=t.cursor(Ri.IncludeAnonymous);if(s.firstChild())do for(let o of _pe(e,s.node,n))a.has(o.label)||(a.add(o.label),i.push(o));while(s.nextSibling());return CJ.set(t,i),i}else{let r=[],i=new Set;return t.cursor().iterate(a=>{var s;if(n(a)&&a.matchContext(jKe)&&((s=a.node.nextSibling)===null||s===void 0?void 0:s.name)==":"){let o=e.sliceString(a.from,a.to);i.has(o)||(i.add(o),r.push({label:o,type:"variable"}))}}),r}}const QKe=e=>t=>{let{state:n,pos:r}=t,i=Di(n).resolveInner(r,-1),a=i.type.isError&&i.from==i.to-1&&n.doc.sliceString(i.from,i.to)=="-";if(i.name=="PropertyName"||(a||i.name=="TagName")&&/^(Block|Styles)$/.test(i.resolve(i.to).name))return{from:i.from,options:jD(),validFor:s0};if(i.name=="ValueName")return{from:i.from,options:_J,validFor:s0};if(i.name=="PseudoClassName")return{from:i.from,options:AJ,validFor:s0};if(e(i)||(t.explicit||a)&&zKe(i,n.doc))return{from:e(i)||a?i.from:r,options:_pe(n.doc,HKe(i),e),validFor:UKe};if(i.name=="TagName"){for(let{parent:l}=i;l;l=l.parent)if(l.name=="Block")return{from:i.from,options:jD(),validFor:s0};return{from:i.from,options:BKe,validFor:s0}}if(!t.explicit)return null;let s=i.resolve(r),o=s.childBefore(r);return o&&o.name==":"&&s.name=="PseudoClassSelector"?{from:r,options:AJ,validFor:s0}:o&&o.name==":"&&s.name=="Declaration"||s.name=="ArgList"?{from:r,options:_J,validFor:s0}:s.name=="Block"||s.name=="Styles"?{from:r,options:jD(),validFor:s0}:null},WKe=QKe(e=>e.name=="VariableName"),v3=Bv.define({name:"css",parser:FKe.configure({props:[HT.add({Declaration:f_()}),AO.add({"Block KeyframeList":ofe})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function VKe(){return new Dw(v3,v3.data.of({autocomplete:WKe}))}const qKe=312,RJ=1,GKe=2,YKe=3,ZKe=4,XKe=313,KKe=315,JKe=316,eJe=5,tJe=6,nJe=0,zL=[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],Cpe=125,rJe=59,jL=47,iJe=42,aJe=43,sJe=45,oJe=60,lJe=44,uJe=63,cJe=46,dJe=new hpe({start:!1,shift(e,t){return t==eJe||t==tJe||t==KKe?e:t==JKe},strict:!1}),fJe=new Fd((e,t)=>{let{next:n}=e;(n==Cpe||n==-1||t.context)&&e.acceptToken(XKe)},{contextual:!0,fallback:!0}),hJe=new Fd((e,t)=>{let{next:n}=e,r;zL.indexOf(n)>-1||n==jL&&((r=e.peek(1))==jL||r==iJe)||n!=Cpe&&n!=rJe&&n!=-1&&!t.context&&e.acceptToken(qKe)},{contextual:!0}),pJe=new Fd((e,t)=>{let{next:n}=e;if(n==aJe||n==sJe){if(e.advance(),n==e.next){e.advance();let r=!t.context&&t.canShift(RJ);e.acceptToken(r?RJ:GKe)}}else n==uJe&&e.peek(1)==cJe&&(e.advance(),e.advance(),(e.next<48||e.next>57)&&e.acceptToken(YKe))},{contextual:!0});function HD(e,t){return e>=65&&e<=90||e>=97&&e<=122||e==95||e>=192||!t&&e>=48&&e<=57}const mJe=new Fd((e,t)=>{if(e.next!=oJe||!t.dialectEnabled(nJe)||(e.advance(),e.next==jL))return;let n=0;for(;zL.indexOf(e.next)>-1;)e.advance(),n++;if(HD(e.next,!0)){for(e.advance(),n++;HD(e.next,!1);)e.advance(),n++;for(;zL.indexOf(e.next)>-1;)e.advance(),n++;if(e.next==lJe)return;for(let r=0;;r++){if(r==7){if(!HD(e.next,!0))return;break}if(e.next!="extends".charCodeAt(r))break;e.advance(),n++}}e.acceptToken(ZKe,-n)}),gJe=kO({"get set async static":ge.modifier,"for while do if else switch try catch finally return throw break continue default case":ge.controlKeyword,"in of await yield void typeof delete instanceof":ge.operatorKeyword,"let var const using function class extends":ge.definitionKeyword,"import export from":ge.moduleKeyword,"with debugger as new":ge.keyword,TemplateString:ge.special(ge.string),super:ge.atom,BooleanLiteral:ge.bool,this:ge.self,null:ge.null,Star:ge.modifier,VariableName:ge.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":ge.function(ge.variableName),VariableDefinition:ge.definition(ge.variableName),Label:ge.labelName,PropertyName:ge.propertyName,PrivatePropertyName:ge.special(ge.propertyName),"CallExpression/MemberExpression/PropertyName":ge.function(ge.propertyName),"FunctionDeclaration/VariableDefinition":ge.function(ge.definition(ge.variableName)),"ClassDeclaration/VariableDefinition":ge.definition(ge.className),PropertyDefinition:ge.definition(ge.propertyName),PrivatePropertyDefinition:ge.definition(ge.special(ge.propertyName)),UpdateOp:ge.updateOperator,"LineComment Hashbang":ge.lineComment,BlockComment:ge.blockComment,Number:ge.number,String:ge.string,Escape:ge.escape,ArithOp:ge.arithmeticOperator,LogicOp:ge.logicOperator,BitOp:ge.bitwiseOperator,CompareOp:ge.compareOperator,RegExp:ge.regexp,Equals:ge.definitionOperator,Arrow:ge.function(ge.punctuation),": Spread":ge.punctuation,"( )":ge.paren,"[ ]":ge.squareBracket,"{ }":ge.brace,"InterpolationStart InterpolationEnd":ge.special(ge.brace),".":ge.derefOperator,", ;":ge.separator,"@":ge.meta,TypeName:ge.typeName,TypeDefinition:ge.definition(ge.typeName),"type enum interface implements namespace module declare":ge.definitionKeyword,"abstract global Privacy readonly override":ge.modifier,"is keyof unique infer":ge.operatorKeyword,JSXAttributeValue:ge.attributeValue,JSXText:ge.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":ge.angleBracket,"JSXIdentifier JSXNameSpacedName":ge.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":ge.attributeName,"JSXBuiltin/JSXIdentifier":ge.standard(ge.tagName)}),bJe={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,extends:54,this:58,true:66,false:66,null:78,void:82,typeof:86,super:102,new:136,delete:148,yield:157,await:161,class:166,public:229,private:229,protected:229,readonly:231,instanceof:250,satisfies:253,in:254,const:256,import:290,keyof:345,unique:349,infer:355,is:391,abstract:411,implements:413,type:415,let:418,var:420,using:423,interface:429,enum:433,namespace:439,module:441,declare:445,global:449,for:468,of:477,while:480,with:484,do:488,if:492,else:494,switch:498,case:504,try:510,catch:514,finally:518,return:522,throw:526,break:530,continue:534,debugger:538},yJe={__proto__:null,async:123,get:125,set:127,declare:189,public:191,private:191,protected:191,static:193,abstract:195,override:197,readonly:203,accessor:205,new:395},vJe={__proto__:null,"<":187},OJe=Qv.deserialize({version:14,states:"$@QO%TQ^OOO%[Q^OOO'_Q`OOP(lOWOOO*zQ?NdO'#CiO+RO!bO'#CjO+aO#tO'#CjO+oO!0LbO'#D^O.QQ^O'#DdO.bQ^O'#DoO%[Q^O'#DwO0fQ^O'#EPOOQ?Mr'#EX'#EXO1PQWO'#EUOOQO'#Em'#EmOOQO'#Ih'#IhO1XQWO'#GpO1dQWO'#ElO1iQWO'#ElO3hQ?NdO'#JmO6[Q?NdO'#JnO6uQWO'#F[O6zQ&jO'#FsOOQ?Mr'#Fe'#FeO7VO,YO'#FeO7eQ7[O'#FzO9RQWO'#FyOOQ?Mr'#Jn'#JnOOQ?Mp'#Jm'#JmO9WQWO'#GtOOQU'#KZ'#KZO9cQWO'#IUO9hQ?MxO'#IVOOQU'#JZ'#JZOOQU'#IZ'#IZQ`Q^OOO`Q^OOO9pQMnO'#DsO9wQ^O'#D{O:OQ^O'#D}O9^QWO'#GpO:VQ7[O'#CoO:eQWO'#EkO:pQWO'#EvO:uQ7[O'#FdO;dQWO'#GpOOQO'#K['#K[O;iQWO'#K[O;wQWO'#GxO;wQWO'#GyO;wQWO'#G{O9^QWO'#HOOVQWO'#CeO>gQWO'#H_O>oQWO'#HeO>oQWO'#HgO`Q^O'#HiO>oQWO'#HkO>oQWO'#HnO>tQWO'#HtO>yQ?MyO'#HzO%[Q^O'#H|O?UQ?MyO'#IOO?aQ?MyO'#IQO9hQ?MxO'#ISO?lQ?NdO'#CiO@nQ`O'#DiQOQWOOO%[Q^O'#D}OAUQWO'#EQO:VQ7[O'#EkOAaQWO'#EkOAlQpO'#FdOOQU'#Cg'#CgOOQ?Mp'#Dn'#DnOOQ?Mp'#Jq'#JqO%[Q^O'#JqOOQO'#Jt'#JtOOQO'#Id'#IdOBlQ`O'#EdOOQ?Mp'#Ec'#EcOOQ?Mp'#Jx'#JxOChQ?NQO'#EdOCrQ`O'#ETOOQO'#Js'#JsODWQ`O'#JtOEeQ`O'#ETOCrQ`O'#EdPErO#@ItO'#CbPOOO)CDx)CDxOOOO'#I['#I[OE}O!bO,59UOOQ?Mr,59U,59UOOOO'#I]'#I]OF]O#tO,59UO%[Q^O'#D`OOOO'#I_'#I_OFkO!0LbO,59xOOQ?Mr,59x,59xOFyQ^O'#I`OG^QWO'#JoOI]QrO'#JoO+}Q^O'#JoOIdQWO,5:OOIzQWO'#EmOJXQWO'#KOOJdQWO'#J}OJdQWO'#J}OJlQWO,5;ZOJqQWO'#J|OOQ?Mv,5:Z,5:ZOJxQ^O,5:ZOLvQ?NdO,5:cOMgQWO,5:kONQQ?MxO'#J{ONXQWO'#JzO9WQWO'#JzONmQWO'#JzONuQWO,5;YONzQWO'#JzO!#PQrO'#JnOOQ?Mr'#Ci'#CiO%[Q^O'#EPO!#oQrO,5:pOOQQ'#Ju'#JuOOQO-EpOOQU'#Jc'#JcOOQU,5>q,5>qOOQU-EtQWO'#HTO9^QWO'#HVO!DgQWO'#HVO:VQ7[O'#HXO!DlQWO'#HXOOQU,5=m,5=mO!DqQWO'#HYO!ESQWO'#CoO!EXQWO,59PO!EcQWO,59PO!GhQ^O,59POOQU,59P,59PO!GxQ?MxO,59PO%[Q^O,59PO!JTQ^O'#HaOOQU'#Hb'#HbOOQU'#Hc'#HcO`Q^O,5=yO!JkQWO,5=yO`Q^O,5>PO`Q^O,5>RO!JpQWO,5>TO`Q^O,5>VO!JuQWO,5>YO!JzQ^O,5>`OOQU,5>f,5>fO%[Q^O,5>fO9hQ?MxO,5>hOOQU,5>j,5>jO# UQWO,5>jOOQU,5>l,5>lO# UQWO,5>lOOQU,5>n,5>nO# rQ`O'#D[O%[Q^O'#JqO# |Q`O'#JqO#!kQ`O'#DjO#!|Q`O'#DjO#%_Q^O'#DjO#%fQWO'#JpO#%nQWO,5:TO#%sQWO'#EqO#&RQWO'#KPO#&ZQWO,5;[O#&`Q`O'#DjO#&mQ`O'#ESOOQ?Mr,5:l,5:lO%[Q^O,5:lO#&tQWO,5:lO>tQWO,5;VO!A}Q`O,5;VO!BVQ7[O,5;VO:VQ7[O,5;VO#&|QWO,5@]O#'RQ(CYO,5:pOOQO-EzO+}Q^O,5>zOOQO,5?Q,5?QO#*ZQ^O'#I`OOQO-E<^-E<^O#*hQWO,5@ZO#*pQrO,5@ZO#*wQWO,5@iOOQ?Mr1G/j1G/jO%[Q^O,5@jO#+PQWO'#IfOOQO-EuQ?NdO1G0|O#>|Q?NdO1G0|O#AZQ07bO'#CiO#CUQ07bO1G1_O#C]Q07bO'#JnO#CpQ?NdO,5?WOOQ?Mp-EoQWO1G3oO$3VQ^O1G3qO$7ZQ^O'#HpOOQU1G3t1G3tO$7hQWO'#HvO>tQWO'#HxOOQU1G3z1G3zO$7pQ^O1G3zO9hQ?MxO1G4QOOQU1G4S1G4SOOQ?Mp'#G]'#G]O9hQ?MxO1G4UO9hQ?MxO1G4WO$;wQWO,5@]O!(oQ^O,5;]O9WQWO,5;]O>tQWO,5:UO!(oQ^O,5:UO!A}Q`O,5:UO$;|Q07bO,5:UOOQO,5;],5;]O$tQWO1G0qO!A}Q`O1G0qO!BVQ7[O1G0qOOQ?Mp1G5w1G5wO!ArQ?MxO1G0ZOOQO1G0j1G0jO%[Q^O1G0jO$=aQ?MxO1G0jO$=lQ?MxO1G0jO!A}Q`O1G0ZOCrQ`O1G0ZO$=zQ?MxO1G0jOOQO1G0Z1G0ZO$>`Q?NdO1G0jPOOO-EjQpO,5rQrO1G4fOOQO1G4l1G4lO%[Q^O,5>zO$>|QWO1G5uO$?UQWO1G6TO$?^QrO1G6UO9WQWO,5?QO$?hQ?NdO1G6RO%[Q^O1G6RO$?xQ?MxO1G6RO$@ZQWO1G6QO$@ZQWO1G6QO9WQWO1G6QO$@cQWO,5?TO9WQWO,5?TOOQO,5?T,5?TO$@wQWO,5?TO$(PQWO,5?TOOQO-E[OOQU,5>[,5>[O%[Q^O'#HqO%8mQWO'#HsOOQU,5>b,5>bO9WQWO,5>bOOQU,5>d,5>dOOQU7+)f7+)fOOQU7+)l7+)lOOQU7+)p7+)pOOQU7+)r7+)rO%8rQ`O1G5wO%9WQ07bO1G0wO%9bQWO1G0wOOQO1G/p1G/pO%9mQ07bO1G/pO>tQWO1G/pO!(oQ^O'#DjOOQO,5>{,5>{OOQO-E<_-E<_OOQO,5?R,5?ROOQO-EtQWO7+&]O!A}Q`O7+&]OOQO7+%u7+%uO$>`Q?NdO7+&UOOQO7+&U7+&UO%[Q^O7+&UO%9wQ?MxO7+&UO!ArQ?MxO7+%uO!A}Q`O7+%uO%:SQ?MxO7+&UO%:bQ?NdO7++mO%[Q^O7++mO%:rQWO7++lO%:rQWO7++lOOQO1G4o1G4oO9WQWO1G4oO%:zQWO1G4oOOQQ7+%z7+%zO#&wQWO<|O%[Q^O,5>|OOQO-E<`-E<`O%FwQWO1G5xOOQ?Mr<]OOQU,5>_,5>_O&8uQWO1G3|O9WQWO7+&cO!(oQ^O7+&cOOQO7+%[7+%[O&8zQ07bO1G6UO>tQWO7+%[OOQ?Mr<tQWO<`Q?NdO<pQ?NdO,5?_O&@xQ?NdO7+'zO&CWQrO1G4hO&CbQ07bO7+&^O&EcQ07bO,5=UO&GgQ07bO,5=WO&GwQ07bO,5=UO&HXQ07bO,5=WO&HiQ07bO,59rO&JlQ07bO,5tQWO7+)hO'(OQWO<`Q?NdOAN?[OOQOAN>{AN>{O%[Q^OAN?[OOQO<`Q?NdOG24vO#&wQWOLD,nOOQULD,nLD,nO!&_Q7[OLD,nO'5TQrOLD,nO'5[Q07bO7+'xO'6}Q07bO,5?]O'8}Q07bO,5?_O':}Q07bO7+'zO'kOh%VOk+aO![']O%f+`O~O!d+cOa(WX![(WX'u(WX!Y(WX~Oa%lO![XO'u%lO~Oh%VO!i%cO~Oh%VO!i%cO(O%eO~O!d#vO#h(tO~Ob+nO%g+oO(O+kO(QTO(TUO!Z)TP~O!Y+pO`)SX~O[+tO~O`+uO~O![%}O(O%eO(P!lO`)SP~Oh%VO#]+zO~Oh%VOk+}O![$|O~O![,PO~O},RO![XO~O%k%tO~O!u,WO~Oe,]O~Ob,^O(O#nO(QTO(TUO!Z)RP~Oe%{O~O%g!QO(O&WO~P=RO[,cO`,bO~OPYOQYOSfOdzOeyOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO!fuO!iZO!lYO!mYO!nYO!pvO!uxO!y]O%e}O(QTO(TUO([VO(j[O(yiO~O![!eO!r!gO$V!kO(O!dO~P!EkO`,bOa%lO'u%lO~OPYOQYOSfOd!jOe!iOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![!eO!fuO!iZO!lYO!mYO!nYO!pvO!u!hO$V!kO(O!dO(QTO(TUO([VO(j[O(yiO~Oa,hO!rwO#t!OO%i!OO%j!OO%k!OO~P!HTO!i&lO~O&Y,nO~O![,pO~O&k,rO&m,sOP&haQ&haS&haY&haa&had&hae&ham&hao&hap&haq&haw&hay&ha{&ha!P&ha!T&ha!U&ha![&ha!f&ha!i&ha!l&ha!m&ha!n&ha!p&ha!r&ha!u&ha!y&ha#t&ha$V&ha%e&ha%g&ha%i&ha%j&ha%k&ha%n&ha%p&ha%s&ha%t&ha%v&ha&S&ha&Y&ha&[&ha&^&ha&`&ha&c&ha&i&ha&o&ha&q&ha&s&ha&u&ha&w&ha's&ha(O&ha(Q&ha(T&ha([&ha(j&ha(y&ha!Z&ha&a&hab&ha&f&ha~O(O,xO~Oh!bX!Y!OX!Z!OX!d!OX!d!bX!i!bX#]!OX~O!Y!bX!Z!bX~P# ZO!d,}O#],|Oh(eX!Y#eX!Y(eX!Z#eX!Z(eX!d(eX!i(eX~Oh%VO!d-PO!i%cO!Y!^X!Z!^X~Op!nO!P!oO(QTO(TUO(`!mO~OP;POQ;POSfOdkOg'XX!Y'XX~P!+hO!Y.wOg(ka~OSfO![3uO$c3vO~O!Z3zO~Os3{O~P#.aOa$lq!Y$lq'u$lq's$lq!V$lq!h$lqs$lq![$lq%f$lq!d$lq~P!9mO!V3|O~P#.aO})zO!P){O(u%POk'ea(t'ea!Y'ea#]'ea~Og'ea#}'ea~P%)nO})zO!P){Ok'ga(t'ga(u'ga!Y'ga#]'ga~Og'ga#}'ga~P%*aO(m$YO~P#.aO!VfX!V$xX!YfX!Y$xX!d%PX#]fX~P!/gO(OQ#>g#@V#@e#@l#BR#Ba#C|#D[#Db#Dh#Dn#Dx#EO#EU#E`#Er#ExPPPPPPPPPP#FOPPPPPPP#Fs#Iz#KZ#Kb#KjPPP$!sP$!|$%t$,^$,a$,d$-P$-S$-Z$-cP$-i$-lP$.Y$.^$/U$0d$0i$1PPP$1U$1[$1`P$1c$1g$1k$2a$2x$3a$3e$3h$3k$3q$3t$3x$3|R!|RoqOXst!Z#d%k&o&q&r&t,k,p1|2PY!vQ']-]1a5eQ%rvQ%zyQ&R|Q&g!VS'T!e-TQ'c!iS'i!r!yU*e$|*V*jQ+i%{Q+v&TQ,[&aQ-Z'[Q-e'dQ-m'jQ0R*lQ1k,]R;v;T%QdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)y+R+V,h,k,p-a-i-w-}.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3^5b5m5}6O6R6f8R8X8h8rS#q];Q!r)Z$Z$n'U)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{ < 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 : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < 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 InstantiationExpression 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 InstantiationExpression 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:376,context:dJe,nodeProps:[["isolate",-8,5,6,14,34,36,48,50,52,""],["group",-26,9,17,19,65,204,208,212,213,215,218,221,231,233,239,241,243,245,248,254,260,262,264,266,268,270,271,"Statement",-34,13,14,29,32,33,39,48,51,52,54,59,67,69,73,77,79,81,82,107,108,117,118,135,138,140,141,142,143,144,146,147,166,167,169,"Expression",-23,28,30,34,38,40,42,171,173,175,176,178,179,180,182,183,184,186,187,188,198,200,202,203,"Type",-3,85,100,106,"ClassItem"],["openedBy",23,"<",35,"InterpolationStart",53,"[",57,"{",70,"(",159,"JSXStartCloseTag"],["closedBy",24,">",37,"InterpolationEnd",47,"]",58,"}",71,")",164,"JSXEndTag"]],propSources:[gJe],skippedNodes:[0,5,6,274],repeatNodeCount:37,tokenData:"$Fq07[R!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#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr(n%d_$h&j(Rp(U!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$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$h&j(U!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(U!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$h&j(RpOY(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(RpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z07[+rq$h&j(Rp(U!b'w0/lOX%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%Z07[.ST(S#S$h&j'x0/lO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c07[.n_$h&j(Rp(U!b'x0/lOY%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)3p/x`$h&j!m),Q(Rp(U!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(KW1V`#u(Ch$h&j(Rp(U!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(KW2d_#u(Ch$h&j(Rp(U!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'At3l_(Q':f$h&j(U!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$h&j(U!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$h&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$c`$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$c``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$c`$h&j(U!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ(U!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$c`(U!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k%9[:hh$h&j(Rp(U!bOY%ZYZ&cZq%Zqr`#P#o`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXWS$h&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSWSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWWS(U!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]WS$h&j(RpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWWS(RpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYWS(Rp(U!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%l^!Q^$h&j!U7`OY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@c!_!}!=y!}#O!CW#O#P!Dy#P#o!=y#o#p!@c#p;'S!=y;'S;=`!Ek<%lO!=y|#X#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#k!>|#k#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&c7`!@hX!U7`OY!@cZ!P!@c!P!Q!AT!Q!}!@c!}#O!Ar#O#P!Bq#P;'S!@c;'S;=`!CQ<%lO!@c7`!AYW!U7`#W#X!AT#Z#[!AT#]#^!AT#a#b!AT#g#h!AT#i#j!AT#j#k!AT#m#n!AT7`!AuVOY!ArZ#O!Ar#O#P!B[#P#Q!@c#Q;'S!Ar;'S;=`!Bk<%lO!Ar7`!B_SOY!ArZ;'S!Ar;'S;=`!Bk<%lO!Ar7`!BnP;=`<%l!Ar7`!BtSOY!@cZ;'S!@c;'S;=`!CQ<%lO!@c7`!CTP;=`<%l!@c^!Ezl$h&j(U!b!U7`OY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#W&}#W#X!Eq#X#Z&}#Z#[!Eq#[#]&}#]#^!Eq#^#a&}#a#b!Eq#b#g&}#g#h!Eq#h#i&}#i#j!Eq#j#k!Eq#k#m&}#m#n!Eq#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}8r!GyZ(U!b!U7`OY!GrZw!Grwx!@cx!P!Gr!P!Q!Hl!Q!}!Gr!}#O!JU#O#P!Bq#P;'S!Gr;'S;=`!J|<%lO!Gr8r!Hse(U!b!U7`OY'}Zw'}x#O'}#P#W'}#W#X!Hl#X#Z'}#Z#[!Hl#[#]'}#]#^!Hl#^#a'}#a#b!Hl#b#g'}#g#h!Hl#h#i'}#i#j!Hl#j#k!Hl#k#m'}#m#n!Hl#n;'S'};'S;=`(f<%lO'}8r!JZX(U!bOY!JUZw!JUwx!Arx#O!JU#O#P!B[#P#Q!Gr#Q;'S!JU;'S;=`!Jv<%lO!JU8r!JyP;=`<%l!JU8r!KPP;=`<%l!Gr>^!KZ^$h&j(U!bOY!KSYZ&cZw!KSwx!CWx!^!KS!^!_!JU!_#O!KS#O#P!DR#P#Q!^!LYP;=`<%l!KS>^!L`P;=`<%l!_#c#d#Bq#d#l%Z#l#m#Es#m#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#>j_$h&j(Rp(U!bp'9tOY%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'Ad#?rd$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#A]f$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Bzc$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Dbe$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#E|g$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Gpi$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x#Il_!d$b$h&j#})Lv(Rp(U!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)[#Jv_al$h&j(Rp(U!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%Z04f#LS^h#)`#O-bJe[e]||-1},{term:338,get:e=>yJe[e]||-1},{term:92,get:e=>vJe[e]||-1}],tokenPrec:14749}),Rpe=[ml("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),ml("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),ml("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),ml("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),ml("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),ml(`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=dC.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 Jr(this.parser.nodeSet.types[t],Dv,Dv,(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(CL(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?Qhe(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=CL(this.parser.parseInline(t.content,t.start),t.marks);this.addNode(this.buffer.writeElements(n,-t.start).finish(Bt.Paragraph,t.content.length),t.start)}elt(t,n,r,i){return typeof t=="string"?Nr(this.parser.getNodeType(t),n,r,i):new qhe(t,n)}get buffer(){return new Vhe(this.parser.nodeSet)}}function Qhe(e,t,n,r,i){let a=e[t].to,s=[],o=[],l=n.from+r;function u(d,f){for(;f?d>=a:d>a;){let p=e[t+1].from-a;r+=p,d+=p,t++,a=e[t].to}}for(let d=n.firstChild;d;d=d.nextSibling){u(d.from+r,!0);let f=d.from+r,p,g=i.get(d.tree);g?p=g:d.to+r>a?(p=Qhe(e,t,d,r,i),u(d.to+r,!1)):p=d.toTree(),s.push(p),o.push(f-l)}return u(n.to+r,!1),new Jr(n.type,s,o,n.to+r-l,n.tree?n.tree.propValues:void 0)}class jR extends sB{constructor(t,n,r,i,a,s,o,l,u){super(),this.nodeSet=t,this.blockParsers=n,this.leafBlockParsers=r,this.blockNames=i,this.endLeafBlock=a,this.skipContextMarkup=s,this.inlineParsers=o,this.inlineNames=l,this.wrappers=u,this.nodeTypes=Object.create(null);for(let d of t.types)this.nodeTypes[d.name]=d.id}createParse(t,n,r){let i=new VZe(this,t,n,r);for(let a of this.wrappers)i=a(i,t,n,r);return i}configure(t){let n=AL(t);if(!n)return this;let{nodeSet:r,skipContextMarkup:i}=this,a=this.blockParsers.slice(),s=this.leafBlockParsers.slice(),o=this.blockNames.slice(),l=this.inlineParsers.slice(),u=this.inlineNames.slice(),d=this.endLeafBlock.slice(),f=this.wrappers;if(mE(n.defineNodes)){i=Object.assign({},i);let p=r.types.slice(),g;for(let O of n.defineNodes){let{name:S,block:T,composite:w,style:x}=typeof O=="string"?{name:O}:O;if(p.some(R=>R.name==S))continue;w&&(i[p.length]=(R,N,P)=>w(N,P,R.value));let k=p.length,_=w?["Block","BlockContext"]:T?k>=Bt.ATXHeading1&&k<=Bt.SetextHeading2?["Block","LeafBlock","Heading"]:["Block","LeafBlock"]:void 0;p.push(ls.define({id:k,name:S,props:_&&[[Wn.group,_]]})),x&&(g||(g={}),Array.isArray(x)||x instanceof cu?g[S]=x:Object.assign(g,x))}r=new HT(p),g&&(r=r.extend(gO(g)))}if(mE(n.props)&&(r=r.extend(...n.props)),mE(n.remove))for(let p of n.remove){let g=this.blockNames.indexOf(p),O=this.inlineNames.indexOf(p);g>-1&&(a[g]=s[g]=void 0),O>-1&&(l[O]=void 0)}if(mE(n.parseBlock))for(let p of n.parseBlock){let g=o.indexOf(p.name);if(g>-1)a[g]=p.parse,s[g]=p.leaf;else{let O=p.before?ZA(o,p.before):p.after?ZA(o,p.after)+1:o.length-1;a.splice(O,0,p.parse),s.splice(O,0,p.leaf),o.splice(O,0,p.name)}p.endLeaf&&d.push(p.endLeaf)}if(mE(n.parseInline))for(let p of n.parseInline){let g=u.indexOf(p.name);if(g>-1)l[g]=p.parse;else{let O=p.before?ZA(u,p.before):p.after?ZA(u,p.after)+1:u.length-1;l.splice(O,0,p.parse),u.splice(O,0,p.name)}}return n.wrap&&(f=f.concat(n.wrap)),new jR(r,a,s,o,d,i,l,u,f)}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 GZe(this,t,n);e:for(let i=n;i=0){i=o;continue e}}i++}return r.resolveMarkers(0)}}function mE(e){return e!=null&&e.length>0}function AL(e){if(!Array.isArray(e))return e;if(e.length==0)return null;let t=AL(e[0]);if(e.length==1)return t;let n=AL(e.slice(1));if(!n||!t)return t||n;let r=(s,o)=>(s||Dv).concat(o||Dv),i=t.wrap,a=n.wrap;return{props:r(t.props,n.props),defineNodes:r(t.defineNodes,n.defineNodes),parseBlock:r(t.parseBlock,n.parseBlock),parseInline:r(t.parseInline,n.parseInline),remove:r(t.remove,n.remove),wrap:i?a?(s,o,l,u)=>i(a(s,o,l,u),o,l,u):i:a}}function ZA(e,t){let n=e.indexOf(t);if(n<0)throw new RangeError(`Position specified relative to unknown parser ${t}`);return n}let Whe=[ls.none];for(let e=1,t;t=Bt[e];e++)Whe[e]=ls.define({id:e,name:t,props:e>=Bt.Escape?[]:[[Wn.group,e in Lhe?["Block","BlockContext"]:["Block","LeafBlock"]]],top:t=="Document"});const Dv=[];let Vhe=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 Jr.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:t,length:n})}},Qw=class{constructor(t,n,r,i=Dv){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 Vhe(t).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}};class qhe{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 Dv}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 Nr(e,t,n,r){return new Qw(e,t,n,r)}const Ghe={resolve:"Emphasis",mark:"EmphasisMark"},Yhe={resolve:"Emphasis",mark:"EmphasisMark"},qb={},_L={};class rc{constructor(t,n,r,i){this.type=t,this.from=n,this.to=r,this.side=i}}const VK="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";let Ww=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{Ww=new RegExp("[\\p{Pc}|\\p{Pd}|\\p{Pe}|\\p{Pf}|\\p{Pi}|\\p{Po}|\\p{Ps}]","u")}catch{}const CD={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(Nr(Bt.Autolink,n,n+1+i[0].length,[Nr(Bt.LinkMark,n,n+1),Nr(Bt.URL,n+1,n+i[0].length),Nr(Bt.LinkMark,n+i[0].length,n+1+i[0].length)]));let a=/^!--[^>](?:-[^-]|[^-])*?-->/i.exec(r);if(a)return e.append(Nr(Bt.Comment,n,n+1+a[0].length));let s=/^\?[^]*?\?>/.exec(r);if(s)return e.append(Nr(Bt.ProcessingInstruction,n,n+1+s[0].length));let o=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(r);return o?e.append(Nr(Bt.HTMLTag,n,n+1+o[0].length)):-1},Emphasis(e,t,n){if(t!=95&&t!=42)return-1;let r=n+1;for(;e.char(r)==t;)r++;let i=e.slice(n-1,n),a=e.slice(r,r+1),s=Ww.test(i),o=Ww.test(a),l=/\s|^$/.test(i),u=/\s|^$/.test(a),d=!u&&(!o||l||s),f=!l&&(!s||u||o),p=d&&(t==42||!f||s),g=f&&(t==42||!d||o);return e.append(new rc(t==95?Ghe:Yhe,n,r,(p?1:0)|(g?2:0)))},HardBreak(e,t,n){if(t==92&&e.char(n+1)==10)return e.append(Nr(Bt.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(Nr(Bt.HardBreak,n,r+1))}return-1},Link(e,t,n){return t==91?e.append(new rc(qb,n,n+1,1)):-1},Image(e,t,n){return t==33&&e.char(n+1)==91?e.append(new rc(_L,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 rc&&(i.type==qb||i.type==_L)){if(!i.side||e.skipSpace(i.to)==n&&!/[(\[]/.test(e.slice(n+1,n+2)))return e.parts[r]=null,-1;let a=e.takeContent(r),s=e.parts[r]=qZe(e,a,i.type==qb?Bt.Link:Bt.Image,i.from,n+1);if(i.type==qb)for(let o=0;ot?Nr(Bt.URL,t+n,a+n):a==e.length?null:!1}}function Xhe(e,t,n){let r=e.charCodeAt(t);if(r!=39&&r!=34&&r!=40)return!1;let i=r==40?41:r;for(let a=t+1,s=!1;a=this.end?-1:this.text.charCodeAt(t-this.offset)}get end(){return this.offset+this.text.length}slice(t,n){return this.text.slice(t-this.offset,n-this.offset)}append(t){return this.parts.push(t),t.to}addDelimiter(t,n,r,i,a){return this.append(new rc(t,n,r,(i?1:0)|(a?2:0)))}get hasOpenLink(){for(let t=this.parts.length-1;t>=0;t--){let n=this.parts[t];if(n instanceof rc&&(n.type==qb||n.type==_L))return!0}return!1}addElement(t){return this.append(t)}resolveMarkers(t){for(let r=t;r=t;l--){let S=this.parts[l];if(S instanceof rc&&S.side&1&&S.type==i.type&&!(a&&(i.side&1||S.side&2)&&(S.to-S.from+s)%3==0&&((S.to-S.from)%3||s%3))){o=S;break}}if(!o)continue;let u=i.type.resolve,d=[],f=o.from,p=i.to;if(a){let S=Math.min(2,o.to-o.from,s);f=o.to-S,p=i.from+S,u=S==1?"Emphasis":"StrongEmphasis"}o.type.mark&&d.push(this.elt(o.type.mark,f,o.to));for(let S=l+1;S=0;n--){let r=this.parts[n];if(r instanceof rc&&r.type==t)return n}return null}takeContent(t){let n=this.resolveMarkers(t);return this.parts.length=t,n}skipSpace(t){return S2(this.text,t-this.offset)+this.offset}elt(t,n,r,i){return typeof t=="string"?Nr(this.parser.getNodeType(t),n,r,i):new qhe(t,n)}}function CL(e,t){if(!t.length)return e;if(!e.length)return t;let n=e.slice(),r=0;for(let i of t){for(;r(t?t-1:0))return!1;if(this.fragmentEnd<0){let a=this.fragment.to;for(;a>0&&this.input.read(a-1,a)!=` +`;)a--;this.fragmentEnd=a?a-1:0}let r=this.cursor;r||(r=this.cursor=this.fragment.tree.cursor(),r.firstChild());let i=t+this.fragment.offset;for(;r.to<=i;)if(!r.parent())return!1;for(;;){if(r.from>=i)return this.fragment.from<=n;if(!r.childAfter(i))return!1}}matches(t){let n=this.cursor.tree;return n&&n.prop(Wn.contextHash)==t}takeNodes(t){let n=this.cursor,r=this.fragment.offset,i=this.fragmentEnd-(this.fragment.openEnd?1:0),a=t.absoluteLineStart,s=a,o=t.block.children.length,l=s,u=o;for(;;){if(n.to-r>i){if(n.type.isAnonymous&&n.firstChild())continue;break}let d=Jhe(n.from-r,t.ranges);if(n.to-r<=t.ranges[t.rangeI].to)t.addNode(n.tree,d);else{let f=new Jr(t.parser.nodeSet.types[Bt.Paragraph],[],[],0,t.block.hashProp);t.reusePlaceholders.set(f,n.tree),t.addNode(f,d)}if(n.type.is("Block")&&(YZe.indexOf(n.type.id)<0?(s=n.to-r,o=t.block.children.length):(s=l,o=u,l=n.to-r,u=t.block.children.length)),!n.nextSibling())break}for(;t.block.children.length>o;)t.block.children.pop(),t.block.positions.pop();return s-a}};function Jhe(e,t){let n=e;for(let r=1;rYA[e]),Object.keys(YA).map(e=>HZe[e]),Object.keys(YA),QZe,Lhe,Object.keys(CD).map(e=>CD[e]),Object.keys(CD),[]);function JZe(e,t,n){let r=[];for(let i=e.firstChild,a=t;;i=i.nextSibling){let s=i?i.from:n;if(s>a&&r.push({from:a,to:s}),!i)break;a=i.to}return r}function eXe(e){let{codeParser:t,htmlParser:n}=e;return{wrap:Hde((i,a)=>{let s=i.type.id;if(t&&(s==Bt.CodeBlock||s==Bt.FencedCode)){let o="";if(s==Bt.FencedCode){let u=i.node.getChild(Bt.CodeInfo);u&&(o=a.read(u.from,u.to))}let l=t(o);if(l)return{parser:l,overlay:u=>u.type.id==Bt.CodeText}}else if(n&&(s==Bt.HTMLBlock||s==Bt.HTMLTag))return{parser:n,overlay:JZe(i.node,i.from,i.to)};return null})}}const tXe={resolve:"Strikethrough",mark:"StrikethroughMark"},nXe={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":ge.strikethrough}},{name:"StrikethroughMark",style:ge.processingInstruction}],parseInline:[{name:"Strikethrough",parse(e,t,n){if(t!=126||e.char(n+1)!=126||e.char(n+2)==126)return-1;let r=e.slice(n-1,n),i=e.slice(n+2,n+3),a=/\s|^$/.test(r),s=/\s|^$/.test(i),o=Ww.test(r),l=Ww.test(i);return e.addDelimiter(tXe,n,n+2,!s&&(!l||a||o),!a&&(!o||s||l))},after:"Emphasis"}]};function E2(e,t,n=0,r,i=0){let a=0,s=!0,o=-1,l=-1,u=!1,d=()=>{r.push(e.elt("TableCell",i+o,i+l,e.parser.parseInline(t.slice(o,l),i+o)))};for(let f=n;f-1)&&a++,s=!1,r&&(o>-1&&d(),r.push(e.elt("TableDelimiter",f+i,f+i+1))),o=l=-1):(u||p!=32&&p!=9)&&(o<0&&(o=f),l=f+1),u=!u&&p==92}return o>-1&&(a++,r&&d()),a}function qK(e,t){for(let n=t;ni instanceof GK)||!qK(t.text,t.basePos))return!1;let r=e.scanLine(e.absoluteLineEnd+1).text;return epe.test(r)&&E2(e,t.text,t.basePos)==E2(e,r,t.basePos)},before:"SetextHeading"}]};class iXe{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 aXe={defineNodes:[{name:"Task",block:!0,style:ge.list},{name:"TaskMarker",style:ge.atom}],parseBlock:[{name:"TaskList",leaf(e,t){return/^\[[ xX]\][ \t]/.test(t.content)&&e.parentType().name=="ListItem"?new iXe:null},after:"SetextHeading"}]},YK=/(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy,ZK=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,sXe=/[\w-]+\.[\w-]+($|\/)/,XK=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,KK=/\/[a-zA-Z\d@.]+/gy;function JK(e,t,n,r){let i=0;for(let a=t;a-1)return-1;let r=t+n[0].length;for(;;){let i=e[r-1],a;if(/[?!.,:*_~]/.test(i)||i==")"&&JK(e,t,r,")")>JK(e,t,r,"("))r--;else if(i==";"&&(a=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(e.slice(t,r))))r=t+a.index;else break}return r}function eJ(e,t){XK.lastIndex=t;let n=XK.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 lXe={parseInline:[{name:"Autolink",parse(e,t,n){let r=n-e.offset;YK.lastIndex=r;let i=YK.exec(e.text),a=-1;if(!i)return-1;if(i[1]||i[2]){if(a=oXe(e.text,r+i[0].length),a>-1&&e.hasOpenLink){let s=/([^\[\]]|\[[^\]]*\])*/.exec(e.text.slice(r,a));a=r+s[0].length}}else i[3]?a=eJ(e.text,r):(a=eJ(e.text,r+i[0].length),a>-1&&i[0]=="xmpp:"&&(KK.lastIndex=a,i=KK.exec(e.text),i&&(a=i.index+i[0].length)));return a<0?-1:(e.addElement(e.elt("URL",n,a+e.offset)),a+e.offset)}}]},uXe=[rXe,aXe,nXe,lXe];function tpe(e,t,n){return(r,i,a)=>{if(i!=e||r.char(a+1)==e)return-1;let s=[r.elt(n,a,a+1)];for(let o=a+1;on%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,n,r=0){let i=t.parser.context;return new fC(t,[],n,r,r,0,[],0,i?new nJ(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,n){this.stack.push(this.state,n,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var n;let r=t>>19,i=t&65535,{parser:a}=this.p,s=this.reducePos=2e3&&!(!((n=this.p.parser.nodeSet.types[i])===null||n===void 0)&&n.isAnonymous)&&(u==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=d):this.p.lastBigReductionSizel;)this.stack.pop();this.reduceContext(i,u)}storeNode(t,n,r,i=4,a=!1){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&s.buffer[o-4]==0&&s.buffer[o-1]>-1){if(n==r)return;if(s.buffer[o-2]>=n){s.buffer[o-2]=r;return}}}if(!a||this.pos==r)this.buffer.push(t,n,r,i);else{let s=this.buffer.length;if(s>0&&this.buffer[s-4]!=0){let o=!1;for(let l=s;l>0&&this.buffer[l-2]>r;l-=4)if(this.buffer[l-1]>=0){o=!0;break}if(o)for(;s>0&&this.buffer[s-2]>r;)this.buffer[s]=this.buffer[s-4],this.buffer[s+1]=this.buffer[s-3],this.buffer[s+2]=this.buffer[s-2],this.buffer[s+3]=this.buffer[s-1],s-=4,i>4&&(i-=4)}this.buffer[s]=t,this.buffer[s+1]=n,this.buffer[s+2]=r,this.buffer[s+3]=i}}shift(t,n,r,i){if(t&131072)this.pushState(t&65535,this.pos);else if(t&262144)this.pos=i,this.shiftContext(n,r),n<=this.p.parser.maxNode&&this.buffer.push(n,r,i,4);else{let a=t,{parser:s}=this.p;(i>this.pos||n<=s.maxNode)&&(this.pos=i,s.stateFlag(a,1)||(this.reducePos=i)),this.pushState(a,r),this.shiftContext(n,r),n<=s.maxNode&&this.buffer.push(n,r,i,4)}}apply(t,n,r,i){t&65536?this.reduce(t):this.shift(t,n,r,i)}useNode(t,n){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=t)&&(this.p.reused.push(t),r++);let i=this.pos;this.reducePos=this.pos=i+t.length,this.pushState(n,i),this.buffer.push(r,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,n=t.buffer.length;for(;n>0&&t.buffer[n-2]>t.reducePos;)n-=4;let r=t.buffer.slice(n),i=t.bufferBase+n;for(;t&&i==t.bufferBase;)t=t.parent;return new fC(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 hXe(this);;){let r=this.p.parser.stateSlot(n.state,4)||this.p.parser.hasAction(n.state,t);if(r==0)return!1;if(!(r&65536))return!0;n.reduce(r)}}recoverByInsert(t){if(this.stack.length>=300)return[];let n=this.p.parser.nextStates(this.state);if(n.length>8||this.stack.length>=120){let i=[];for(let a=0,s;al&1&&o==s)||i.push(n[a],s)}n=i}let r=[];for(let i=0;i>19,i=n&65535,a=this.stack.length-r*3;if(a<0||t.getGoto(this.stack[a],i,!1)<0){let s=this.findForcedReduction();if(s==null)return!1;n=s}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}findForcedReduction(){let{parser:t}=this.p,n=[],r=(i,a)=>{if(!n.includes(i))return n.push(i),t.allActions(i,s=>{if(!(s&393216))if(s&65536){let o=(s>>19)-a;if(o>1){let l=s&65535,u=this.stack.length-o*3;if(u>=0&&t.getGoto(this.stack[u],l,!1)>=0)return o<<19|65536|l}}else{let o=r(s,a+1);if(o!=null)return o}})};return r(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:t}=this.p;return t.data[t.stateSlot(this.state,1)]==65535&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let n=0;nthis.lookAhead&&(this.emitLookAhead(),this.lookAhead=t)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class nJ{constructor(t,n){this.tracker=t,this.context=n,this.hash=t.strict?t.hash(n):0}}class hXe{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 hC{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 hC(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 hC(this.stack,this.pos,this.index)}}function HE(e,t=Uint16Array){if(typeof e!="string")return e;let n=null;for(let r=0,i=0;r=92&&s--,s>=34&&s--;let l=s-32;if(l>=46&&(l-=46,o=!0),a+=l,o)break;a*=46}n?n[i++]=a:n=new t(a)}return n}class h_{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const rJ=new h_;class pXe{constructor(t,n){this.input=t,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=rJ,this.rangeIndex=0,this.pos=this.chunkPos=n[0].from,this.range=n[0],this.end=n[n.length-1].to,this.readNext()}resolveOffset(t,n){let r=this.range,i=this.rangeIndex,a=this.pos+t;for(;ar.to:a>=r.to;){if(i==this.ranges.length-1)return null;let s=this.ranges[++i];a+=s.from-r.to,r=s}return a}clipPos(t){if(t>=this.range.from&&tt)return Math.max(t,n.from);return this.end}peek(t){let n=this.chunkOff+t,r,i;if(n>=0&&n=this.chunk2Pos&&ro.to&&(this.chunk2=this.chunk2.slice(0,o.to-r)),i=this.chunk2.charCodeAt(0)}}return r>=this.token.lookAhead&&(this.token.lookAhead=r+1),i}acceptToken(t,n=0){let r=n?this.resolveOffset(n,-1):this.pos;if(r==null||r=this.chunk2Pos&&this.posthis.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,n){if(n?(this.token=n,n.start=t,n.lookAhead=t+1,n.value=n.extended=-1):this.token=rJ,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 Hy{constructor(t,n){this.data=t,this.id=n}token(t,n){let{parser:r}=n.p;npe(this.data,t,n,this.id,r.data,r.tokenPrecTable)}}Hy.prototype.contextual=Hy.prototype.fallback=Hy.prototype.extend=!1;class pC{constructor(t,n,r){this.precTable=n,this.elseToken=r,this.data=typeof t=="string"?HE(t):t}token(t,n){let r=t.pos,i=0;for(;;){let a=t.next<0,s=t.resolveOffset(1,1);if(npe(this.data,t,n,0,this.data,this.precTable),t.token.value>-1)break;if(this.elseToken==null)return;if(a||i++,s==null)break;t.reset(s,t.token)}i&&(t.reset(r,t.token),t.acceptToken(this.elseToken,i))}}pC.prototype.contextual=Hy.prototype.fallback=Hy.prototype.extend=!1;class $d{constructor(t,n={}){this.token=t,this.contextual=!!n.contextual,this.fallback=!!n.fallback,this.extend=!!n.extend}}function npe(e,t,n,r,i,a){let s=0,o=1<0){let O=e[g];if(l.allows(O)&&(t.token.value==-1||t.token.value==O||mXe(O,t.token.value,i,a))){t.acceptToken(O);break}}let d=t.next,f=0,p=e[s+2];if(t.next<0&&p>f&&e[u+p*3-3]==65535){s=e[u+p*3-1];continue e}for(;f>1,O=u+g+(g<<1),S=e[O],T=e[O+1]||65536;if(d=T)f=g+1;else{s=e[O+2],t.advance();continue e}}break}}function iJ(e,t,n){for(let r=t,i;(i=e[r])!=65535;r++)if(i==n)return r-t;return-1}function mXe(e,t,n,r){let i=iJ(n,r,t);return i<0||iJ(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 gXe{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?aJ(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?aJ(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(tt)return this.nextStart=s,null;if(a instanceof Jr){if(s==t){if(s=Math.max(this.safeFrom,t)&&(this.trees.push(a),this.start.push(s),this.index.push(0))}else this.index[n]++,this.nextStart=s+a.length}}}class bXe{constructor(t,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(r=>new h_)}getActions(t){let n=0,r=null,{parser:i}=t.p,{tokenizers:a}=i,s=i.stateSlot(t.state,3),o=t.curContext?t.curContext.hash:0,l=0;for(let u=0;uf.end+25&&(l=Math.max(f.lookAhead,l)),f.value!=0)){let p=n;if(f.extended>-1&&(n=this.addActions(t,f.extended,f.end,n)),n=this.addActions(t,f.value,f.end,n),!d.extend&&(r=f,n>p))break}}for(;this.actions.length>n;)this.actions.pop();return l&&t.setLookAhead(l),!r&&t.pos==this.stream.end&&(r=new h_,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 h_,{pos:r,p:i}=t;return n.start=r,n.end=Math.min(r+1,i.stream.end),n.value=r==i.stream.end?i.parser.eofTerm:0,n}updateCachedToken(t,n,r){let i=this.stream.clipPos(r.pos);if(n.token(this.stream.reset(i,t),r),t.value>-1){let{parser:a}=r.p;for(let s=0;s=0&&r.p.parser.dialect.allows(o>>1)){o&1?t.extended=o>>1:t.value=o>>1;break}}}else t.value=0,t.end=this.stream.clipPos(i+1)}putAction(t,n,r,i){for(let a=0;at.bufferLength*4?new gXe(r,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,n=this.minStackPos,r=this.stacks=[],i,a;if(this.bigReductionCount>300&&t.length==1){let[s]=t;for(;s.forceReduce()&&s.stack.length&&s.stack[s.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let s=0;sn)r.push(o);else{if(this.advanceStack(o,r,t))continue;{i||(i=[],a=[]),i.push(o);let l=this.tokens.getMainToken(o);a.push(l.value,l.end)}}break}}if(!r.length){let s=i&&OXe(i);if(s)return Jl&&console.log("Finish with "+this.stackID(s)),this.stackToTree(s);if(this.parser.strict)throw Jl&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+n);this.recovering||(this.recovering=5)}if(this.recovering&&i){let s=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,a,r);if(s)return Jl&&console.log("Force-finish "+this.stackID(s)),this.stackToTree(s.forceAll())}if(this.recovering){let s=this.recovering==1?1:this.recovering*3;if(r.length>s)for(r.sort((o,l)=>l.score-o.score);r.length>s;)r.pop();r.some(o=>o.reducePos>n)&&this.recovering--}else if(r.length>1){e:for(let s=0;s500&&u.buffer.length>500)if((o.score-u.score||o.buffer.length-u.buffer.length)>0)r.splice(l--,1);else{r.splice(s--,1);continue e}}}r.length>12&&r.splice(12,r.length-12)}this.minStackPos=r[0].pos;for(let s=1;s ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let u=t.curContext&&t.curContext.tracker.strict,d=u?t.curContext.hash:0;for(let f=this.fragments.nodeAt(i);f;){let p=this.parser.nodeSet.types[f.type.id]==f.type?a.getGoto(t.state,f.type.id):-1;if(p>-1&&f.length&&(!u||(f.prop(Wn.contextHash)||0)==d))return t.useNode(f,p),Jl&&console.log(s+this.stackID(t)+` (via reuse of ${a.getName(f.type.id)})`),!0;if(!(f instanceof Jr)||f.children.length==0||f.positions[0]>0)break;let g=f.children[0];if(g instanceof Jr&&f.positions[0]==0)f=g;else break}}let o=a.stateSlot(t.state,4);if(o>0)return t.reduce(o),Jl&&console.log(s+this.stackID(t)+` (via always-reduce ${a.getName(o&65535)})`),!0;if(t.stack.length>=8400)for(;t.stack.length>6e3&&t.forceReduce(););let l=this.tokens.getActions(t);for(let u=0;ui?n.push(O):r.push(O)}return!1}advanceFully(t,n){let r=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>r)return sJ(t,n),!0}}runRecovery(t,n,r){let i=null,a=!1;for(let s=0;s ":"";if(o.deadEnd&&(a||(a=!0,o.restart(),Jl&&console.log(d+this.stackID(o)+" (restarted)"),this.advanceFully(o,r))))continue;let f=o.split(),p=d;for(let g=0;f.forceReduce()&&g<10&&(Jl&&console.log(p+this.stackID(f)+" (via force-reduce)"),!this.advanceFully(f,r));g++)Jl&&(p=this.stackID(f)+" -> ");for(let g of o.recoverByInsert(l))Jl&&console.log(d+this.stackID(g)+" (via recover-insert)"),this.advanceFully(g,r);this.stream.end>o.pos?(u==o.pos&&(u++,l=0),o.recoverByDelete(l,u),Jl&&console.log(d+this.stackID(o)+` (via recover-delete ${this.parser.getName(l)})`),sJ(o,r)):(!i||i.scoree;class rpe{constructor(t){this.start=t.start,this.shift=t.shift||ID,this.reduce=t.reduce||ID,this.reuse=t.reuse||ID,this.hash=t.hash||(()=>0),this.strict=t.strict!==!1}}class Pv extends sB{constructor(t){if(super(),this.wrappers=[],t.version!=14)throw new RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let n=t.nodeNames.split(" ");this.minRepeatTerm=n.length;for(let o=0;ot.topRules[o][1]),i=[];for(let o=0;o=0)a(d,l,o[u++]);else{let f=o[u+-d];for(let p=-d;p>0;p--)a(o[u++],l,f);u++}}}this.nodeSet=new HT(n.map((o,l)=>ls.define({name:l>=this.minRepeatTerm?void 0:o,id:l,props:i[l],top:r.indexOf(l)>-1,error:l==0,skipped:t.skippedNodes&&t.skippedNodes.indexOf(l)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=Fde;let s=HE(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let o=0;otypeof o=="number"?new Hy(s,o):o),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,n,r){let i=new yXe(this,t,n,r);for(let a of this.wrappers)i=a(i,t,n,r);return i}getGoto(t,n,r=!1){let i=this.goto;if(n>=i[0])return-1;for(let a=i[n+1];;){let s=i[a++],o=s&1,l=i[a++];if(o&&r)return l;for(let u=a+(s>>1);a0}validAction(t,n){return!!this.allActions(t,r=>r==n?!0:null)}allActions(t,n){let r=this.stateSlot(t,4),i=r?n(r):void 0;for(let a=this.stateSlot(t,1);i==null;a+=3){if(this.data[a]==65535)if(this.data[a+1]==1)a=Dh(this.data,a+2);else break;i=n(Dh(this.data,a+1))}return i}nextStates(t){let n=[];for(let r=this.stateSlot(t,1);;r+=3){if(this.data[r]==65535)if(this.data[r+1]==1)r=Dh(this.data,r+2);else break;if(!(this.data[r+2]&1)){let i=this.data[r+1];n.some((a,s)=>s&1&&a==i)||n.push(this.data[r],i)}}return n}configure(t){let n=Object.assign(Object.create(Pv.prototype),this);if(t.props&&(n.nodeSet=this.nodeSet.extend(...t.props)),t.top){let r=this.topRules[t.top];if(!r)throw new RangeError(`Invalid top rule name ${t.top}`);n.top=r}return t.tokenizers&&(n.tokenizers=this.tokenizers.map(r=>{let i=t.tokenizers.find(a=>a.from==r);return i?i.to:r})),t.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((r,i)=>{let a=t.specializers.find(o=>o.from==r.external);if(!a)return r;let s=Object.assign(Object.assign({},r),{external:a.to});return n.specializers[i]=oJ(s),s})),t.contextTracker&&(n.context=t.contextTracker),t.dialect&&(n.dialect=this.parseDialect(t.dialect)),t.strict!=null&&(n.strict=t.strict),t.wrap&&(n.wrappers=n.wrappers.concat(t.wrap)),t.bufferLength!=null&&(n.bufferLength=t.bufferLength),n}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let n=this.dynamicPrecedences;return n==null?0:n[t]||0}parseDialect(t){let n=Object.keys(this.dialects),r=n.map(()=>!1);if(t)for(let a of t.split(" ")){let s=n.indexOf(a);s>=0&&(r[s]=!0)}let i=null;for(let a=0;ar)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.scoree.external(n,r)<<1|t}return e.get}const SXe=54,EXe=1,wXe=55,TXe=2,xXe=56,kXe=3,lJ=4,AXe=5,mC=6,ipe=7,ape=8,spe=9,ope=10,_Xe=11,CXe=12,RXe=13,ND=57,IXe=14,uJ=58,lpe=20,NXe=22,upe=23,DXe=24,RL=26,cpe=27,PXe=28,LXe=31,MXe=34,$Xe=36,FXe=37,BXe=0,UXe=1,zXe={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},jXe={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},cJ={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 HXe(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}function dpe(e){return e==9||e==10||e==13||e==32}let dJ=null,fJ=null,hJ=0;function IL(e,t){let n=e.pos+t;if(hJ==n&&fJ==e)return dJ;let r=e.peek(t);for(;dpe(r);)r=e.peek(++t);let i="";for(;HXe(r);)i+=String.fromCharCode(r),r=e.peek(++t);return fJ=e,hJ=n,dJ=i?i.toLowerCase():r==QXe||r==WXe?void 0:null}const fpe=60,gC=62,HB=47,QXe=63,WXe=33,VXe=45;function pJ(e,t){this.name=e,this.parent=t}const qXe=[mC,ope,ipe,ape,spe],GXe=new rpe({start:null,shift(e,t,n,r){return qXe.indexOf(t)>-1?new pJ(IL(r,1)||"",e):e},reduce(e,t){return t==lpe&&e?e.parent:e},reuse(e,t,n,r){let i=t.type.id;return i==mC||i==$Xe?new pJ(IL(r,1)||"",e):e},strict:!1}),YXe=new $d((e,t)=>{if(e.next!=fpe){e.next<0&&t.context&&e.acceptToken(ND);return}e.advance();let n=e.next==HB;n&&e.advance();let r=IL(e,0);if(r===void 0)return;if(!r)return e.acceptToken(n?IXe:mC);let i=t.context?t.context.name:null;if(n){if(r==i)return e.acceptToken(_Xe);if(i&&jXe[i])return e.acceptToken(ND,-2);if(t.dialectEnabled(BXe))return e.acceptToken(CXe);for(let a=t.context;a;a=a.parent)if(a.name==r)return;e.acceptToken(RXe)}else{if(r=="script")return e.acceptToken(ipe);if(r=="style")return e.acceptToken(ape);if(r=="textarea")return e.acceptToken(spe);if(zXe.hasOwnProperty(r))return e.acceptToken(ope);i&&cJ[i]&&cJ[i][r]?e.acceptToken(ND,-1):e.acceptToken(mC)}},{contextual:!0}),ZXe=new $d(e=>{for(let t=0,n=0;;n++){if(e.next<0){n&&e.acceptToken(uJ);break}if(e.next==VXe)t++;else if(e.next==gC&&t>=2){n>=3&&e.acceptToken(uJ,-2);break}else t=0;e.advance()}});function XXe(e){for(;e;e=e.parent)if(e.name=="svg"||e.name=="math")return!0;return!1}const KXe=new $d((e,t)=>{if(e.next==HB&&e.peek(1)==gC){let n=t.dialectEnabled(UXe)||XXe(t.context);e.acceptToken(n?AXe:lJ,2)}else e.next==gC&&e.acceptToken(lJ,1)});function QB(e,t,n){let r=2+e.length;return new $d(i=>{for(let a=0,s=0,o=0;;o++){if(i.next<0){o&&i.acceptToken(t);break}if(a==0&&i.next==fpe||a==1&&i.next==HB||a>=2&&as?i.acceptToken(t,-s):i.acceptToken(n,-(s-2));break}else if((i.next==10||i.next==13)&&o){i.acceptToken(t,1);break}else a=s=0;i.advance()}})}const JXe=QB("script",SXe,EXe),eKe=QB("style",wXe,TXe),tKe=QB("textarea",xXe,kXe),nKe=gO({"Text RawText":ge.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":ge.angleBracket,TagName:ge.tagName,"MismatchedCloseTag/TagName":[ge.tagName,ge.invalid],AttributeName:ge.attributeName,"AttributeValue UnquotedAttributeValue":ge.attributeValue,Is:ge.definitionOperator,"EntityReference CharacterReference":ge.character,Comment:ge.blockComment,ProcessingInst:ge.processingInstruction,DoctypeDecl:ge.documentMeta}),rKe=Pv.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%ZQ&rO,59fO%fQ&rO,59iO%qQ&rO,59lO%|Q&rO,59nOOOa'#D^'#D^O&XOaO'#CxO&dOaO,59[OOOb'#D_'#D_O&lObO'#C{O&wObO,59[OOOd'#D`'#D`O'POdO'#DOO'[OdO,59[OOO`'#Da'#DaO'dO!rO,59[O'kQ#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'pO$fO,59oOOO`,59o,59oO'xQ#|O,59qO'}Q#|O,59rOOO`-E7W-E7WO(SQ&rO'#CsOOQW'#DZ'#DZO(bQ&rO1G.wOOOa1G.w1G.wOOO`1G/Y1G/YO(mQ&rO1G/QOOOb1G/Q1G/QO(xQ&rO1G/TOOOd1G/T1G/TO)TQ&rO1G/WOOO`1G/W1G/WO)`Q&rO1G/YOOOa-E7[-E7[O)kQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)pQ#tO'#C|OOOd-E7^-E7^O)uQ#tO'#DPOOO`-E7_-E7_O)zQ#|O,59mOOOp-E7`-E7`OOO`1G/Z1G/ZOOO`1G/]1G/]OOO`1G/^1G/^O*PQ,UO,59_OOQW-E7X-E7XOOOa7+$c7+$cOOO`7+$t7+$tOOOb7+$l7+$lOOOd7+$o7+$oOOO`7+$r7+$rO*[Q#|O,59eO*aQ#|O,59hO*fQ#|O,59kOOO`1G/X1G/XO*kO7[O'#CvO*|OMhO'#CvOOQW1G.y1G.yOOO`1G/P1G/POOO`1G/S1G/SOOO`1G/V1G/VOOOO'#D['#D[O+_O7[O,59bOOQW,59b,59bOOOO'#D]'#D]O+pOMhO,59bOOOO-E7Y-E7YOOQW1G.|1G.|OOOO-E7Z-E7Z",stateData:",]~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|OT}OhyO~OS!POT}OhyO~OS!ROT}OhyO~OS!TOT}OhyO~OS}OT}OhyO~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!dOSgXTgXhgX~OS!fOT!gOhyO~OS!hOT!gOhyO~OS!iOT!gOhyO~OS!jOT!gOhyO~OS!gOT!gOhyO~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{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!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:GXe,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:[nKe],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=o.type.id;if(u==PXe)return DD(o,l,n);if(u==LXe)return DD(o,l,r);if(u==MXe)return DD(o,l,i);if(u==lpe&&a.length){let d=o.node,f=d.firstChild,p=f&&mJ(f,l),g;if(p){for(let O of a)if(O.tag==p&&(!O.attrs||O.attrs(g||(g=hpe(f,l))))){let S=d.lastChild,T=S.type.id==FXe?S.from:d.to;if(T>f.to)return{parser:O.parser,overlay:[{from:f.to,to:T}]}}}}if(s&&u==upe){let d=o.node,f;if(f=d.firstChild){let p=s[l.read(f.from,f.to)];if(p)for(let g of p){if(g.tagName&&g.tagName!=mJ(d.parent,l))continue;let O=d.lastChild;if(O.type.id==RL){let S=O.from+1,T=O.lastChild,w=O.to-(T&&T.isError?0:1);if(w>S)return{parser:g.parser,overlay:[{from:S,to:w}]}}else if(O.type.id==cpe)return{parser:g.parser,overlay:[{from:O.from,to:O.to}]}}}}return null})}const iKe=99,gJ=1,aKe=100,sKe=101,bJ=2,mpe=[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],oKe=58,lKe=40,gpe=95,uKe=91,p_=45,cKe=46,dKe=35,fKe=37,hKe=38,pKe=92,mKe=10;function Vw(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function bpe(e){return e>=48&&e<=57}const gKe=new $d((e,t)=>{for(let n=!1,r=0,i=0;;i++){let{next:a}=e;if(Vw(a)||a==p_||a==gpe||n&&bpe(a))!n&&(a!=p_||i>0)&&(n=!0),r===i&&a==p_&&r++,e.advance();else if(a==pKe&&e.peek(1)!=mKe)e.advance(),e.next>-1&&e.advance(),n=!0;else{n&&e.acceptToken(a==lKe?aKe:r==2&&t.canShift(bJ)?bJ:sKe);break}}}),bKe=new $d(e=>{if(mpe.includes(e.peek(-1))){let{next:t}=e;(Vw(t)||t==gpe||t==dKe||t==cKe||t==uKe||t==oKe&&Vw(e.peek(1))||t==p_||t==hKe)&&e.acceptToken(iKe)}}),yKe=new $d(e=>{if(!mpe.includes(e.peek(-1))){let{next:t}=e;if(t==fKe&&(e.advance(),e.acceptToken(gJ)),Vw(t)){do e.advance();while(Vw(e.next)||bpe(e.next));e.acceptToken(gJ)}}}),vKe=gO({"AtKeyword import charset namespace keyframes media supports":ge.definitionKeyword,"from to selector":ge.keyword,NamespaceName:ge.namespace,KeyframeName:ge.labelName,KeyframeRangeName:ge.operatorKeyword,TagName:ge.tagName,ClassName:ge.className,PseudoClassName:ge.constant(ge.className),IdName:ge.labelName,"FeatureName PropertyName":ge.propertyName,AttributeName:ge.attributeName,NumberLiteral:ge.number,KeywordQuery:ge.keyword,UnaryQueryOp:ge.operatorKeyword,"CallTag ValueName":ge.atom,VariableName:ge.variableName,Callee:ge.operatorKeyword,Unit:ge.unit,"UniversalSelector NestingSelector":ge.definitionOperator,MatchOp:ge.compareOperator,"ChildOp SiblingOp, LogicOp":ge.logicOperator,BinOp:ge.arithmeticOperator,Important:ge.modifier,Comment:ge.blockComment,ColorLiteral:ge.color,"ParenthesizedContent StringLiteral":ge.string,":":ge.punctuation,"PseudoOp #":ge.derefOperator,"; ,":ge.separator,"( )":ge.paren,"[ ]":ge.squareBracket,"{ }":ge.brace}),OKe={__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},SKe={__proto__:null,"@import":118,"@media":142,"@charset":146,"@namespace":150,"@keyframes":156,"@supports":168},EKe={__proto__:null,not:132,only:132},wKe=Pv.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:[bKe,yKe,gKe,1,2,3,4,new pC("m~RRYZ[z{a~~g~aO#^~~dP!P!Qg~lO#_~~",28,105)],topRules:{StyleSheet:[0,4],Styles:[1,86]},specialized:[{term:100,get:e=>OKe[e]||-1},{term:58,get:e=>SKe[e]||-1},{term:101,get:e=>EKe[e]||-1}],tokenPrec:1200});let PD=null;function LD(){if(!PD&&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)));PD=t.sort().map(r=>({type:"property",label:r}))}return PD||[]}const yJ=["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})),vJ=["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}))),TKe=["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})),Jp=/^(\w[\w-]*|-\w[\w-]*|)$/,xKe=/^-(-[\w-]*)?$/;function kKe(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 OJ=new jde,AKe=["Declaration"];function _Ke(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function ype(e,t,n){if(t.to-t.from>4096){let r=OJ.get(t);if(r)return r;let i=[],a=new Set,s=t.cursor(Ai.IncludeAnonymous);if(s.firstChild())do for(let o of ype(e,s.node,n))a.has(o.label)||(a.add(o.label),i.push(o));while(s.nextSibling());return OJ.set(t,i),i}else{let r=[],i=new Set;return t.cursor().iterate(a=>{var s;if(n(a)&&a.matchContext(AKe)&&((s=a.node.nextSibling)===null||s===void 0?void 0:s.name)==":"){let o=e.sliceString(a.from,a.to);i.has(o)||(i.add(o),r.push({label:o,type:"variable"}))}}),r}}const CKe=e=>t=>{let{state:n,pos:r}=t,i=Ri(n).resolveInner(r,-1),a=i.type.isError&&i.from==i.to-1&&n.doc.sliceString(i.from,i.to)=="-";if(i.name=="PropertyName"||(a||i.name=="TagName")&&/^(Block|Styles)$/.test(i.resolve(i.to).name))return{from:i.from,options:LD(),validFor:Jp};if(i.name=="ValueName")return{from:i.from,options:vJ,validFor:Jp};if(i.name=="PseudoClassName")return{from:i.from,options:yJ,validFor:Jp};if(e(i)||(t.explicit||a)&&kKe(i,n.doc))return{from:e(i)||a?i.from:r,options:ype(n.doc,_Ke(i),e),validFor:xKe};if(i.name=="TagName"){for(let{parent:l}=i;l;l=l.parent)if(l.name=="Block")return{from:i.from,options:LD(),validFor:Jp};return{from:i.from,options:TKe,validFor:Jp}}if(!t.explicit)return null;let s=i.resolve(r),o=s.childBefore(r);return o&&o.name==":"&&s.name=="PseudoClassSelector"?{from:r,options:yJ,validFor:Jp}:o&&o.name==":"&&s.name=="Declaration"||s.name=="ArgList"?{from:r,options:vJ,validFor:Jp}:s.name=="Block"||s.name=="Styles"?{from:r,options:LD(),validFor:Jp}:null},RKe=CKe(e=>e.name=="VariableName"),bC=Cv.define({name:"css",parser:wKe.configure({props:[WT.add({Declaration:f_()}),bO.add({"Block KeyframeList":Zde})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function IKe(){return new Lw(bC,bC.data.of({autocomplete:RKe}))}const NKe=312,SJ=1,DKe=2,PKe=3,LKe=4,MKe=313,$Ke=315,FKe=316,BKe=5,UKe=6,zKe=0,NL=[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],vpe=125,jKe=59,DL=47,HKe=42,QKe=43,WKe=45,VKe=60,qKe=44,GKe=63,YKe=46,ZKe=new rpe({start:!1,shift(e,t){return t==BKe||t==UKe||t==$Ke?e:t==FKe},strict:!1}),XKe=new $d((e,t)=>{let{next:n}=e;(n==vpe||n==-1||t.context)&&e.acceptToken(MKe)},{contextual:!0,fallback:!0}),KKe=new $d((e,t)=>{let{next:n}=e,r;NL.indexOf(n)>-1||n==DL&&((r=e.peek(1))==DL||r==HKe)||n!=vpe&&n!=jKe&&n!=-1&&!t.context&&e.acceptToken(NKe)},{contextual:!0}),JKe=new $d((e,t)=>{let{next:n}=e;if(n==QKe||n==WKe){if(e.advance(),n==e.next){e.advance();let r=!t.context&&t.canShift(SJ);e.acceptToken(r?SJ:DKe)}}else n==GKe&&e.peek(1)==YKe&&(e.advance(),e.advance(),(e.next<48||e.next>57)&&e.acceptToken(PKe))},{contextual:!0});function MD(e,t){return e>=65&&e<=90||e>=97&&e<=122||e==95||e>=192||!t&&e>=48&&e<=57}const eJe=new $d((e,t)=>{if(e.next!=VKe||!t.dialectEnabled(zKe)||(e.advance(),e.next==DL))return;let n=0;for(;NL.indexOf(e.next)>-1;)e.advance(),n++;if(MD(e.next,!0)){for(e.advance(),n++;MD(e.next,!1);)e.advance(),n++;for(;NL.indexOf(e.next)>-1;)e.advance(),n++;if(e.next==qKe)return;for(let r=0;;r++){if(r==7){if(!MD(e.next,!0))return;break}if(e.next!="extends".charCodeAt(r))break;e.advance(),n++}}e.acceptToken(LKe,-n)}),tJe=gO({"get set async static":ge.modifier,"for while do if else switch try catch finally return throw break continue default case":ge.controlKeyword,"in of await yield void typeof delete instanceof":ge.operatorKeyword,"let var const using function class extends":ge.definitionKeyword,"import export from":ge.moduleKeyword,"with debugger as new":ge.keyword,TemplateString:ge.special(ge.string),super:ge.atom,BooleanLiteral:ge.bool,this:ge.self,null:ge.null,Star:ge.modifier,VariableName:ge.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":ge.function(ge.variableName),VariableDefinition:ge.definition(ge.variableName),Label:ge.labelName,PropertyName:ge.propertyName,PrivatePropertyName:ge.special(ge.propertyName),"CallExpression/MemberExpression/PropertyName":ge.function(ge.propertyName),"FunctionDeclaration/VariableDefinition":ge.function(ge.definition(ge.variableName)),"ClassDeclaration/VariableDefinition":ge.definition(ge.className),PropertyDefinition:ge.definition(ge.propertyName),PrivatePropertyDefinition:ge.definition(ge.special(ge.propertyName)),UpdateOp:ge.updateOperator,"LineComment Hashbang":ge.lineComment,BlockComment:ge.blockComment,Number:ge.number,String:ge.string,Escape:ge.escape,ArithOp:ge.arithmeticOperator,LogicOp:ge.logicOperator,BitOp:ge.bitwiseOperator,CompareOp:ge.compareOperator,RegExp:ge.regexp,Equals:ge.definitionOperator,Arrow:ge.function(ge.punctuation),": Spread":ge.punctuation,"( )":ge.paren,"[ ]":ge.squareBracket,"{ }":ge.brace,"InterpolationStart InterpolationEnd":ge.special(ge.brace),".":ge.derefOperator,", ;":ge.separator,"@":ge.meta,TypeName:ge.typeName,TypeDefinition:ge.definition(ge.typeName),"type enum interface implements namespace module declare":ge.definitionKeyword,"abstract global Privacy readonly override":ge.modifier,"is keyof unique infer":ge.operatorKeyword,JSXAttributeValue:ge.attributeValue,JSXText:ge.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":ge.angleBracket,"JSXIdentifier JSXNameSpacedName":ge.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":ge.attributeName,"JSXBuiltin/JSXIdentifier":ge.standard(ge.tagName)}),nJe={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,extends:54,this:58,true:66,false:66,null:78,void:82,typeof:86,super:102,new:136,delete:148,yield:157,await:161,class:166,public:229,private:229,protected:229,readonly:231,instanceof:250,satisfies:253,in:254,const:256,import:290,keyof:345,unique:349,infer:355,is:391,abstract:411,implements:413,type:415,let:418,var:420,using:423,interface:429,enum:433,namespace:439,module:441,declare:445,global:449,for:468,of:477,while:480,with:484,do:488,if:492,else:494,switch:498,case:504,try:510,catch:514,finally:518,return:522,throw:526,break:530,continue:534,debugger:538},rJe={__proto__:null,async:123,get:125,set:127,declare:189,public:191,private:191,protected:191,static:193,abstract:195,override:197,readonly:203,accessor:205,new:395},iJe={__proto__:null,"<":187},aJe=Pv.deserialize({version:14,states:"$@QO%TQ^OOO%[Q^OOO'_Q`OOP(lOWOOO*zQ?NdO'#CiO+RO!bO'#CjO+aO#tO'#CjO+oO!0LbO'#D^O.QQ^O'#DdO.bQ^O'#DoO%[Q^O'#DwO0fQ^O'#EPOOQ?Mr'#EX'#EXO1PQWO'#EUOOQO'#Em'#EmOOQO'#Ih'#IhO1XQWO'#GpO1dQWO'#ElO1iQWO'#ElO3hQ?NdO'#JmO6[Q?NdO'#JnO6uQWO'#F[O6zQ&jO'#FsOOQ?Mr'#Fe'#FeO7VO,YO'#FeO7eQ7[O'#FzO9RQWO'#FyOOQ?Mr'#Jn'#JnOOQ?Mp'#Jm'#JmO9WQWO'#GtOOQU'#KZ'#KZO9cQWO'#IUO9hQ?MxO'#IVOOQU'#JZ'#JZOOQU'#IZ'#IZQ`Q^OOO`Q^OOO9pQMnO'#DsO9wQ^O'#D{O:OQ^O'#D}O9^QWO'#GpO:VQ7[O'#CoO:eQWO'#EkO:pQWO'#EvO:uQ7[O'#FdO;dQWO'#GpOOQO'#K['#K[O;iQWO'#K[O;wQWO'#GxO;wQWO'#GyO;wQWO'#G{O9^QWO'#HOOVQWO'#CeO>gQWO'#H_O>oQWO'#HeO>oQWO'#HgO`Q^O'#HiO>oQWO'#HkO>oQWO'#HnO>tQWO'#HtO>yQ?MyO'#HzO%[Q^O'#H|O?UQ?MyO'#IOO?aQ?MyO'#IQO9hQ?MxO'#ISO?lQ?NdO'#CiO@nQ`O'#DiQOQWOOO%[Q^O'#D}OAUQWO'#EQO:VQ7[O'#EkOAaQWO'#EkOAlQpO'#FdOOQU'#Cg'#CgOOQ?Mp'#Dn'#DnOOQ?Mp'#Jq'#JqO%[Q^O'#JqOOQO'#Jt'#JtOOQO'#Id'#IdOBlQ`O'#EdOOQ?Mp'#Ec'#EcOOQ?Mp'#Jx'#JxOChQ?NQO'#EdOCrQ`O'#ETOOQO'#Js'#JsODWQ`O'#JtOEeQ`O'#ETOCrQ`O'#EdPErO#@ItO'#CbPOOO)CDx)CDxOOOO'#I['#I[OE}O!bO,59UOOQ?Mr,59U,59UOOOO'#I]'#I]OF]O#tO,59UO%[Q^O'#D`OOOO'#I_'#I_OFkO!0LbO,59xOOQ?Mr,59x,59xOFyQ^O'#I`OG^QWO'#JoOI]QrO'#JoO+}Q^O'#JoOIdQWO,5:OOIzQWO'#EmOJXQWO'#KOOJdQWO'#J}OJdQWO'#J}OJlQWO,5;ZOJqQWO'#J|OOQ?Mv,5:Z,5:ZOJxQ^O,5:ZOLvQ?NdO,5:cOMgQWO,5:kONQQ?MxO'#J{ONXQWO'#JzO9WQWO'#JzONmQWO'#JzONuQWO,5;YONzQWO'#JzO!#PQrO'#JnOOQ?Mr'#Ci'#CiO%[Q^O'#EPO!#oQrO,5:pOOQQ'#Ju'#JuOOQO-EpOOQU'#Jc'#JcOOQU,5>q,5>qOOQU-EtQWO'#HTO9^QWO'#HVO!DgQWO'#HVO:VQ7[O'#HXO!DlQWO'#HXOOQU,5=m,5=mO!DqQWO'#HYO!ESQWO'#CoO!EXQWO,59PO!EcQWO,59PO!GhQ^O,59POOQU,59P,59PO!GxQ?MxO,59PO%[Q^O,59PO!JTQ^O'#HaOOQU'#Hb'#HbOOQU'#Hc'#HcO`Q^O,5=yO!JkQWO,5=yO`Q^O,5>PO`Q^O,5>RO!JpQWO,5>TO`Q^O,5>VO!JuQWO,5>YO!JzQ^O,5>`OOQU,5>f,5>fO%[Q^O,5>fO9hQ?MxO,5>hOOQU,5>j,5>jO# UQWO,5>jOOQU,5>l,5>lO# UQWO,5>lOOQU,5>n,5>nO# rQ`O'#D[O%[Q^O'#JqO# |Q`O'#JqO#!kQ`O'#DjO#!|Q`O'#DjO#%_Q^O'#DjO#%fQWO'#JpO#%nQWO,5:TO#%sQWO'#EqO#&RQWO'#KPO#&ZQWO,5;[O#&`Q`O'#DjO#&mQ`O'#ESOOQ?Mr,5:l,5:lO%[Q^O,5:lO#&tQWO,5:lO>tQWO,5;VO!A}Q`O,5;VO!BVQ7[O,5;VO:VQ7[O,5;VO#&|QWO,5@]O#'RQ(CYO,5:pOOQO-EzO+}Q^O,5>zOOQO,5?Q,5?QO#*ZQ^O'#I`OOQO-E<^-E<^O#*hQWO,5@ZO#*pQrO,5@ZO#*wQWO,5@iOOQ?Mr1G/j1G/jO%[Q^O,5@jO#+PQWO'#IfOOQO-EuQ?NdO1G0|O#>|Q?NdO1G0|O#AZQ07bO'#CiO#CUQ07bO1G1_O#C]Q07bO'#JnO#CpQ?NdO,5?WOOQ?Mp-EoQWO1G3oO$3VQ^O1G3qO$7ZQ^O'#HpOOQU1G3t1G3tO$7hQWO'#HvO>tQWO'#HxOOQU1G3z1G3zO$7pQ^O1G3zO9hQ?MxO1G4QOOQU1G4S1G4SOOQ?Mp'#G]'#G]O9hQ?MxO1G4UO9hQ?MxO1G4WO$;wQWO,5@]O!(oQ^O,5;]O9WQWO,5;]O>tQWO,5:UO!(oQ^O,5:UO!A}Q`O,5:UO$;|Q07bO,5:UOOQO,5;],5;]O$tQWO1G0qO!A}Q`O1G0qO!BVQ7[O1G0qOOQ?Mp1G5w1G5wO!ArQ?MxO1G0ZOOQO1G0j1G0jO%[Q^O1G0jO$=aQ?MxO1G0jO$=lQ?MxO1G0jO!A}Q`O1G0ZOCrQ`O1G0ZO$=zQ?MxO1G0jOOQO1G0Z1G0ZO$>`Q?NdO1G0jPOOO-EjQpO,5rQrO1G4fOOQO1G4l1G4lO%[Q^O,5>zO$>|QWO1G5uO$?UQWO1G6TO$?^QrO1G6UO9WQWO,5?QO$?hQ?NdO1G6RO%[Q^O1G6RO$?xQ?MxO1G6RO$@ZQWO1G6QO$@ZQWO1G6QO9WQWO1G6QO$@cQWO,5?TO9WQWO,5?TOOQO,5?T,5?TO$@wQWO,5?TO$(PQWO,5?TOOQO-E[OOQU,5>[,5>[O%[Q^O'#HqO%8mQWO'#HsOOQU,5>b,5>bO9WQWO,5>bOOQU,5>d,5>dOOQU7+)f7+)fOOQU7+)l7+)lOOQU7+)p7+)pOOQU7+)r7+)rO%8rQ`O1G5wO%9WQ07bO1G0wO%9bQWO1G0wOOQO1G/p1G/pO%9mQ07bO1G/pO>tQWO1G/pO!(oQ^O'#DjOOQO,5>{,5>{OOQO-E<_-E<_OOQO,5?R,5?ROOQO-EtQWO7+&]O!A}Q`O7+&]OOQO7+%u7+%uO$>`Q?NdO7+&UOOQO7+&U7+&UO%[Q^O7+&UO%9wQ?MxO7+&UO!ArQ?MxO7+%uO!A}Q`O7+%uO%:SQ?MxO7+&UO%:bQ?NdO7++mO%[Q^O7++mO%:rQWO7++lO%:rQWO7++lOOQO1G4o1G4oO9WQWO1G4oO%:zQWO1G4oOOQQ7+%z7+%zO#&wQWO<|O%[Q^O,5>|OOQO-E<`-E<`O%FwQWO1G5xOOQ?Mr<]OOQU,5>_,5>_O&8uQWO1G3|O9WQWO7+&cO!(oQ^O7+&cOOQO7+%[7+%[O&8zQ07bO1G6UO>tQWO7+%[OOQ?Mr<tQWO<`Q?NdO<pQ?NdO,5?_O&@xQ?NdO7+'zO&CWQrO1G4hO&CbQ07bO7+&^O&EcQ07bO,5=UO&GgQ07bO,5=WO&GwQ07bO,5=UO&HXQ07bO,5=WO&HiQ07bO,59rO&JlQ07bO,5tQWO7+)hO'(OQWO<`Q?NdOAN?[OOQOAN>{AN>{O%[Q^OAN?[OOQO<`Q?NdOG24vO#&wQWOLD,nOOQULD,nLD,nO!&_Q7[OLD,nO'5TQrOLD,nO'5[Q07bO7+'xO'6}Q07bO,5?]O'8}Q07bO,5?_O':}Q07bO7+'zO'kOh%VOk+aO![']O%f+`O~O!d+cOa(WX![(WX'u(WX!Y(WX~Oa%lO![XO'u%lO~Oh%VO!i%cO~Oh%VO!i%cO(O%eO~O!d#vO#h(tO~Ob+nO%g+oO(O+kO(QTO(TUO!Z)TP~O!Y+pO`)SX~O[+tO~O`+uO~O![%}O(O%eO(P!lO`)SP~Oh%VO#]+zO~Oh%VOk+}O![$|O~O![,PO~O},RO![XO~O%k%tO~O!u,WO~Oe,]O~Ob,^O(O#nO(QTO(TUO!Z)RP~Oe%{O~O%g!QO(O&WO~P=RO[,cO`,bO~OPYOQYOSfOdzOeyOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO!fuO!iZO!lYO!mYO!nYO!pvO!uxO!y]O%e}O(QTO(TUO([VO(j[O(yiO~O![!eO!r!gO$V!kO(O!dO~P!EkO`,bOa%lO'u%lO~OPYOQYOSfOd!jOe!iOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![!eO!fuO!iZO!lYO!mYO!nYO!pvO!u!hO$V!kO(O!dO(QTO(TUO([VO(j[O(yiO~Oa,hO!rwO#t!OO%i!OO%j!OO%k!OO~P!HTO!i&lO~O&Y,nO~O![,pO~O&k,rO&m,sOP&haQ&haS&haY&haa&had&hae&ham&hao&hap&haq&haw&hay&ha{&ha!P&ha!T&ha!U&ha![&ha!f&ha!i&ha!l&ha!m&ha!n&ha!p&ha!r&ha!u&ha!y&ha#t&ha$V&ha%e&ha%g&ha%i&ha%j&ha%k&ha%n&ha%p&ha%s&ha%t&ha%v&ha&S&ha&Y&ha&[&ha&^&ha&`&ha&c&ha&i&ha&o&ha&q&ha&s&ha&u&ha&w&ha's&ha(O&ha(Q&ha(T&ha([&ha(j&ha(y&ha!Z&ha&a&hab&ha&f&ha~O(O,xO~Oh!bX!Y!OX!Z!OX!d!OX!d!bX!i!bX#]!OX~O!Y!bX!Z!bX~P# ZO!d,}O#],|Oh(eX!Y#eX!Y(eX!Z#eX!Z(eX!d(eX!i(eX~Oh%VO!d-PO!i%cO!Y!^X!Z!^X~Op!nO!P!oO(QTO(TUO(`!mO~OP;POQ;POSfOdkOg'XX!Y'XX~P!+hO!Y.wOg(ka~OSfO![3uO$c3vO~O!Z3zO~Os3{O~P#.aOa$lq!Y$lq'u$lq's$lq!V$lq!h$lqs$lq![$lq%f$lq!d$lq~P!9mO!V3|O~P#.aO})zO!P){O(u%POk'ea(t'ea!Y'ea#]'ea~Og'ea#}'ea~P%)nO})zO!P){Ok'ga(t'ga(u'ga!Y'ga#]'ga~Og'ga#}'ga~P%*aO(m$YO~P#.aO!VfX!V$xX!YfX!Y$xX!d%PX#]fX~P!/gO(OQ#>g#@V#@e#@l#BR#Ba#C|#D[#Db#Dh#Dn#Dx#EO#EU#E`#Er#ExPPPPPPPPPP#FOPPPPPPP#Fs#Iz#KZ#Kb#KjPPP$!sP$!|$%t$,^$,a$,d$-P$-S$-Z$-cP$-i$-lP$.Y$.^$/U$0d$0i$1PPP$1U$1[$1`P$1c$1g$1k$2a$2x$3a$3e$3h$3k$3q$3t$3x$3|R!|RoqOXst!Z#d%k&o&q&r&t,k,p1|2PY!vQ']-]1a5eQ%rvQ%zyQ&R|Q&g!VS'T!e-TQ'c!iS'i!r!yU*e$|*V*jQ+i%{Q+v&TQ,[&aQ-Z'[Q-e'dQ-m'jQ0R*lQ1k,]R;v;T%QdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)y+R+V,h,k,p-a-i-w-}.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3^5b5m5}6O6R6f8R8X8h8rS#q];Q!r)Z$Z$n'U)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{ < 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 : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < 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 InstantiationExpression 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 InstantiationExpression 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:376,context:ZKe,nodeProps:[["isolate",-8,5,6,14,34,36,48,50,52,""],["group",-26,9,17,19,65,204,208,212,213,215,218,221,231,233,239,241,243,245,248,254,260,262,264,266,268,270,271,"Statement",-34,13,14,29,32,33,39,48,51,52,54,59,67,69,73,77,79,81,82,107,108,117,118,135,138,140,141,142,143,144,146,147,166,167,169,"Expression",-23,28,30,34,38,40,42,171,173,175,176,178,179,180,182,183,184,186,187,188,198,200,202,203,"Type",-3,85,100,106,"ClassItem"],["openedBy",23,"<",35,"InterpolationStart",53,"[",57,"{",70,"(",159,"JSXStartCloseTag"],["closedBy",24,">",37,"InterpolationEnd",47,"]",58,"}",71,")",164,"JSXEndTag"]],propSources:[tJe],skippedNodes:[0,5,6,274],repeatNodeCount:37,tokenData:"$Fq07[R!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#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr(n%d_$h&j(Rp(U!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$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$h&j(U!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(U!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$h&j(RpOY(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(RpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z07[+rq$h&j(Rp(U!b'w0/lOX%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%Z07[.ST(S#S$h&j'x0/lO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c07[.n_$h&j(Rp(U!b'x0/lOY%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)3p/x`$h&j!m),Q(Rp(U!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(KW1V`#u(Ch$h&j(Rp(U!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(KW2d_#u(Ch$h&j(Rp(U!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'At3l_(Q':f$h&j(U!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$h&j(U!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$h&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$c`$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$c``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$c`$h&j(U!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ(U!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$c`(U!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k%9[:hh$h&j(Rp(U!bOY%ZYZ&cZq%Zqr`#P#o`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXWS$h&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSWSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWWS(U!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]WS$h&j(RpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWWS(RpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYWS(Rp(U!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%l^!Q^$h&j!U7`OY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@c!_!}!=y!}#O!CW#O#P!Dy#P#o!=y#o#p!@c#p;'S!=y;'S;=`!Ek<%lO!=y|#X#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#k!>|#k#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&c7`!@hX!U7`OY!@cZ!P!@c!P!Q!AT!Q!}!@c!}#O!Ar#O#P!Bq#P;'S!@c;'S;=`!CQ<%lO!@c7`!AYW!U7`#W#X!AT#Z#[!AT#]#^!AT#a#b!AT#g#h!AT#i#j!AT#j#k!AT#m#n!AT7`!AuVOY!ArZ#O!Ar#O#P!B[#P#Q!@c#Q;'S!Ar;'S;=`!Bk<%lO!Ar7`!B_SOY!ArZ;'S!Ar;'S;=`!Bk<%lO!Ar7`!BnP;=`<%l!Ar7`!BtSOY!@cZ;'S!@c;'S;=`!CQ<%lO!@c7`!CTP;=`<%l!@c^!Ezl$h&j(U!b!U7`OY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#W&}#W#X!Eq#X#Z&}#Z#[!Eq#[#]&}#]#^!Eq#^#a&}#a#b!Eq#b#g&}#g#h!Eq#h#i&}#i#j!Eq#j#k!Eq#k#m&}#m#n!Eq#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}8r!GyZ(U!b!U7`OY!GrZw!Grwx!@cx!P!Gr!P!Q!Hl!Q!}!Gr!}#O!JU#O#P!Bq#P;'S!Gr;'S;=`!J|<%lO!Gr8r!Hse(U!b!U7`OY'}Zw'}x#O'}#P#W'}#W#X!Hl#X#Z'}#Z#[!Hl#[#]'}#]#^!Hl#^#a'}#a#b!Hl#b#g'}#g#h!Hl#h#i'}#i#j!Hl#j#k!Hl#k#m'}#m#n!Hl#n;'S'};'S;=`(f<%lO'}8r!JZX(U!bOY!JUZw!JUwx!Arx#O!JU#O#P!B[#P#Q!Gr#Q;'S!JU;'S;=`!Jv<%lO!JU8r!JyP;=`<%l!JU8r!KPP;=`<%l!Gr>^!KZ^$h&j(U!bOY!KSYZ&cZw!KSwx!CWx!^!KS!^!_!JU!_#O!KS#O#P!DR#P#Q!^!LYP;=`<%l!KS>^!L`P;=`<%l!_#c#d#Bq#d#l%Z#l#m#Es#m#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#>j_$h&j(Rp(U!bp'9tOY%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'Ad#?rd$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#A]f$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Bzc$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Dbe$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#E|g$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Gpi$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x#Il_!d$b$h&j#})Lv(Rp(U!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)[#Jv_al$h&j(Rp(U!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%Z04f#LS^h#)`#O-nJe[e]||-1},{term:338,get:e=>rJe[e]||-1},{term:92,get:e=>iJe[e]||-1}],tokenPrec:14749}),Ope=[gl("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),gl("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),gl("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),gl("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),gl("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),gl(`try { \${} } catch (\${error}) { \${} -}`,{label:"try",detail:"/ catch block",type:"keyword"}),ml("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),ml(`if (\${}) { +}`,{label:"try",detail:"/ catch block",type:"keyword"}),gl("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),gl(`if (\${}) { \${} } else { \${} -}`,{label:"if",detail:"/ else block",type:"keyword"}),ml(`class \${name} { +}`,{label:"if",detail:"/ else block",type:"keyword"}),gl(`class \${name} { constructor(\${params}) { \${} } -}`,{label:"class",detail:"definition",type:"keyword"}),ml('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),ml('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],SJe=Rpe.concat([ml("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),ml("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),ml("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),IJ=new Jde,Ipe=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function pE(e){return(t,n)=>{let r=t.node.getChild("VariableDefinition");return r&&n(r,e),!0}}const EJe=["FunctionDeclaration"],wJe={FunctionDeclaration:pE("function"),ClassDeclaration:pE("class"),ClassExpression:()=>!0,EnumDeclaration:pE("constant"),TypeAliasDeclaration:pE("type"),NamespaceDeclaration:pE("namespace"),VariableDefinition(e,t){e.matchContext(EJe)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function Npe(e,t){let n=IJ.get(t);if(n)return n;let r=[],i=!0;function a(s,o){let l=e.sliceString(s.from,s.to);r.push({label:l,type:o})}return t.cursor(Ri.IncludeAnonymous).iterate(s=>{if(i)i=!1;else if(s.name){let o=wJe[s.name];if(o&&o(s,a)||Ipe.has(s.name))return!1}else if(s.to-s.from>8192){for(let o of Npe(e,s.node))r.push(o);return!1}}),IJ.set(t,r),r}const NJ=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,Dpe=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function TJe(e){let t=Di(e.state).resolveInner(e.pos,-1);if(Dpe.indexOf(t.name)>-1)return null;let n=t.name=="VariableName"||t.to-t.from<20&&NJ.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let i=t;i;i=i.parent)Ipe.has(i.name)&&(r=r.concat(Npe(e.state.doc,i)));return{options:r,from:n?t.from:e.pos,validFor:NJ}}const $f=Bv.define({name:"javascript",parser:OJe.configure({props:[HT.add({IfStatement:f_({except:/^\s*({|else\b)/}),TryStatement:f_({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:dVe,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:cVe({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":f_({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}}),AO.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":ofe,BlockComment(e){return{from:e.from+2,to:e.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),Ppe={test:e=>/^JSX/.test(e.name),facet:yB({commentTokens:{block:{open:"{/*",close:"*/}"}}})},Lpe=$f.configure({dialect:"ts"},"typescript"),Mpe=$f.configure({dialect:"jsx",props:[vB.add(e=>e.isTop?[Ppe]:void 0)]}),$pe=$f.configure({dialect:"jsx ts",props:[vB.add(e=>e.isTop?[Ppe]:void 0)]},"typescript");let Fpe=e=>({label:e,type:"keyword"});const Bpe="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(Fpe),xJe=Bpe.concat(["declare","implements","private","protected","public"].map(Fpe));function kJe(e={}){let t=e.jsx?e.typescript?$pe:Mpe:e.typescript?Lpe:$f,n=e.typescript?SJe.concat(xJe):Rpe.concat(Bpe);return new Dw(t,[$f.data.of({autocomplete:CGe(Dpe,uhe(n))}),$f.data.of({autocomplete:TJe}),e.jsx?CJe:[]])}function AJe(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 DJ(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 _Je=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),CJe=Kt.inputHandler.of((e,t,n,r,i)=>{if((_Je?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||r!=">"&&r!="/"||!$f.isActiveAt(e.state,t,-1))return!1;let a=i(),{state:s}=a,o=s.changeByRange(l=>{var u;let{head:d}=l,f=Di(s).resolveInner(d-1,-1),p;if(f.name=="JSXStartTag"&&(f=f.parent),!(s.doc.sliceString(d-1,d)!=r||f.name=="JSXAttributeValue"&&f.to>d)){if(r==">"&&f.name=="JSXFragmentTag")return{range:l,changes:{from:d,insert:""}};if(r=="/"&&f.name=="JSXStartCloseTag"){let g=f.parent,O=g.parent;if(O&&g.from==d-2&&((p=DJ(s.doc,O.firstChild,d))||((u=O.firstChild)===null||u===void 0?void 0:u.name)=="JSXFragmentTag")){let S=`${p}>`;return{range:ht.cursor(d+S.length,-1),changes:{from:d,insert:S}}}}else if(r==">"){let g=AJe(f);if(g&&g.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(s.doc.sliceString(d,d+2))&&(p=DJ(s.doc,g,d)))return{range:l,changes:{from:d,insert:``}}}}return{range:l}});return o.changes.empty?!1:(e.dispatch([a,s.update(o,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),mE=["_blank","_self","_top","_parent"],QD=["ascii","utf-8","utf-16","latin1","latin1"],WD=["get","post","put","delete"],VD=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],iu=["true","false"],kn={},RJe={a:{attrs:{href:null,ping:null,type:null,media:null,target:mE,hreflang:null}},abbr:kn,address:kn,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:kn,aside:kn,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:kn,base:{attrs:{href:null,target:mE}},bdi:kn,bdo:kn,blockquote:{attrs:{cite:null}},body:kn,br:kn,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:VD,formmethod:WD,formnovalidate:["novalidate"],formtarget:mE,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:kn,center:kn,cite:kn,code:kn,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:kn,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:kn,div:kn,dl:kn,dt:kn,em:kn,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:kn,figure:kn,footer:kn,form:{attrs:{action:null,name:null,"accept-charset":QD,autocomplete:["on","off"],enctype:VD,method:WD,novalidate:["novalidate"],target:mE}},h1:kn,h2:kn,h3:kn,h4:kn,h5:kn,h6:kn,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:kn,hgroup:kn,hr:kn,html:{attrs:{manifest:null}},i:kn,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:VD,formmethod:WD,formnovalidate:["novalidate"],formtarget:mE,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:kn,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:kn,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:kn,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:QD,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:kn,noscript:kn,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:kn,param:{attrs:{name:null,value:null}},pre:kn,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:kn,rt:kn,ruby:kn,samp:kn,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:QD}},section:kn,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:kn,source:{attrs:{src:null,type:null,media:null}},span:kn,strong:kn,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:kn,summary:kn,sup:kn,table:kn,tbody:kn,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:kn,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:kn,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:kn,time:{attrs:{datetime:null}},title:kn,tr:kn,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:kn,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:kn},Upe={accesskey:null,class:null,contenteditable:iu,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:iu,autocorrect:iu,autocapitalize:iu,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":iu,"aria-autocomplete":["inline","list","both","none"],"aria-busy":iu,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":iu,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":iu,"aria-hidden":iu,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":iu,"aria-multiselectable":iu,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":iu,"aria-relevant":null,"aria-required":iu,"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},zpe="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 zpe)Upe[e]=null;let Ww=class{constructor(t,n){this.tags=Object.assign(Object.assign({},RJe),t),this.globalAttrs=Object.assign(Object.assign({},Upe),n),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}};Ww.default=new Ww;function Wv(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 Vv(e,t=!1){for(;e;e=e.parent)if(e.name=="Element")if(t)t=!1;else return e;return null}function jpe(e,t,n){let r=n.tags[Wv(e,Vv(t))];return(r==null?void 0:r.children)||n.allTags}function nU(e,t){let n=[];for(let r=Vv(t);r&&!r.type.isTop;r=Vv(r.parent)){let i=Wv(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 Hpe=/^[:\-\.\w\u00b7-\uffff]*$/;function PJ(e,t,n,r,i){let a=/\s*>/.test(e.sliceDoc(i,i+5))?"":">",s=Vv(n,!0);return{from:r,to:i,options:jpe(e.doc,s,t).map(o=>({label:o,type:"type"})).concat(nU(e.doc,n).map((o,l)=>({label:"/"+o,apply:"/"+o+a,type:"type",boost:99-l}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function LJ(e,t,n,r){let i=/\s*>/.test(e.sliceDoc(r,r+5))?"":">";return{from:n,to:r,options:nU(e.doc,t).map((a,s)=>({label:a,apply:a+i,type:"type",boost:99-s})),validFor:Hpe}}function IJe(e,t,n,r){let i=[],a=0;for(let s of jpe(e.doc,n,t))i.push({label:"<"+s,type:"type"});for(let s of nU(e.doc,n))i.push({label:"",type:"type",boost:99-a++});return{from:r,to:r,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function NJe(e,t,n,r,i){let a=Vv(n),s=a?t.tags[Wv(e.doc,a)]:null,o=s&&s.attrs?Object.keys(s.attrs):[],l=s&&s.globalAttrs===!1?o:o.length?o.concat(t.globalAttrNames):t.globalAttrNames;return{from:r,to:i,options:l.map(u=>({label:u,type:"property"})),validFor:Hpe}}function DJe(e,t,n,r,i){var a;let s=(a=n.parent)===null||a===void 0?void 0:a.getChild("AttributeName"),o=[],l;if(s){let u=e.sliceDoc(s.from,s.to),d=t.globalAttrs[u];if(!d){let f=Vv(n),p=f?t.tags[Wv(e.doc,f)]:null;d=(p==null?void 0:p.attrs)&&p.attrs[u]}if(d){let f=e.sliceDoc(r,i).toLowerCase(),p='"',g='"';/^['"]/.test(f)?(l=f[0]=='"'?/^[^"]*$/:/^[^']*$/,p="",g=e.sliceDoc(i,i+1)==f[0]?"":f[0],f=f.slice(1),r++):l=/^[^\s<>='"]*$/;for(let O of d)o.push({label:O,apply:p+O+g,type:"constant"})}}return{from:r,to:i,options:o,validFor:l}}function Qpe(e,t){let{state:n,pos:r}=t,i=Di(n).resolveInner(r,-1),a=i.resolve(r);for(let s=r,o;a==i&&(o=i.childBefore(s));){let l=o.lastChild;if(!l||!l.type.isError||l.fromQpe(r,i)}const MJe=$f.parser.configure({top:"SingleExpression"}),Wpe=[{tag:"script",attrs:e=>e.type=="text/typescript"||e.lang=="ts",parser:Lpe.parser},{tag:"script",attrs:e=>e.type=="text/babel"||e.type=="text/jsx",parser:Mpe.parser},{tag:"script",attrs:e=>e.type=="text/typescript-jsx",parser:$pe.parser},{tag:"script",attrs(e){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type)},parser:MJe},{tag:"script",attrs(e){return!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type)},parser:$f.parser},{tag:"style",attrs(e){return(!e.lang||e.lang=="css")&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type))},parser:v3.parser}],Vpe=[{name:"style",parser:v3.parser.configure({top:"Styles"})}].concat(zpe.map(e=>({name:e,parser:$f.parser}))),qpe=Bv.define({name:"html",parser:yKe.configure({props:[HT.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:"-._"}}),m_=qpe.configure({wrap:Tpe(Wpe,Vpe)});function $Je(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=Tpe((e.nestedLanguages||[]).concat(Wpe),(e.nestedAttributes||[]).concat(Vpe)));let r=n?qpe.configure({wrap:n,dialect:t}):t?m_.configure({dialect:t}):m_;return new Dw(r,[m_.data.of({autocomplete:LJe(e)}),e.autoCloseTags!==!1?FJe:[],kJe().support,VKe().support])}const MJ=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),FJe=Kt.inputHandler.of((e,t,n,r,i)=>{if(e.composing||e.state.readOnly||t!=n||r!=">"&&r!="/"||!m_.isActiveAt(e.state,t,-1))return!1;let a=i(),{state:s}=a,o=s.changeByRange(l=>{var u,d,f;let p=s.doc.sliceString(l.from-1,l.to)==r,{head:g}=l,O=Di(s).resolveInner(g,-1),S;if(p&&r==">"&&O.name=="EndTag"){let T=O.parent;if(((d=(u=T.parent)===null||u===void 0?void 0:u.lastChild)===null||d===void 0?void 0:d.name)!="CloseTag"&&(S=Wv(s.doc,T.parent,g))&&!MJ.has(S)){let w=g+(s.doc.sliceString(g,g+1)===">"?1:0),x=``;return{range:l,changes:{from:g,to:w,insert:x}}}}else if(p&&r=="/"&&O.name=="IncompleteCloseTag"){let T=O.parent;if(O.from==g-2&&((f=T.lastChild)===null||f===void 0?void 0:f.name)!="CloseTag"&&(S=Wv(s.doc,T,g))&&!MJ.has(S)){let w=g+(s.doc.sliceString(g,g+1)===">"?1:0),x=`${S}>`;return{range:ht.cursor(g+x.length,-1),changes:{from:g,to:w,insert:x}}}}return{range:l}});return o.changes.empty?!1:(e.dispatch([a,s.update(o,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),Gpe=yB({commentTokens:{block:{open:""}}}),Ype=new qn,Zpe=hXe.configure({props:[AO.add(e=>!e.is("Block")||e.is("Document")||HL(e)!=null||BJe(e)?void 0:(t,n)=>({from:n.doc.lineAt(t.from).to,to:t.to})),Ype.add(HL),HT.add({Document:()=>null}),zg.add({Document:Gpe})]});function HL(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?+t[1]:void 0}function BJe(e){return e.name=="OrderedList"||e.name=="BulletList"}function UJe(e,t){let n=e;for(;;){let r=n.nextSibling,i;if(!r||(i=HL(r.type))!=null&&i<=t)break;n=r}return n.to}const zJe=sfe.of((e,t,n)=>{for(let r=Di(e).resolveInner(n,-1);r&&!(r.fromn)return{from:n,to:a}}return null});function rU(e){return new mc(Gpe,e,[zJe],"markdown")}const jJe=rU(Zpe),HJe=Zpe.configure([TXe,kXe,xXe,AXe,{props:[AO.add({Table:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}]),Xpe=rU(HJe);function QJe(e,t){return n=>{if(n&&e){let r=null;if(n=/\S*/.exec(n)[0],typeof e=="function"?r=e(n):r=KC.matchLanguageName(e,n,!0),r instanceof KC)return r.support?r.support.language.parser:Nw.getSkippingParser(r.load());if(r)return r.parser}return t?t.parser:null}}class XA{constructor(t,n,r,i,a,s,o){this.node=t,this.from=n,this.to=r,this.spaceBefore=i,this.spaceAfter=a,this.type=s,this.item=o}blank(t,n=!0){let r=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(t!=null){for(;r.length0;i--)r+=" ";return r+(n?this.spaceAfter:"")}}marker(t,n){let r=this.node.name=="OrderedList"?String(+Jpe(this.item,t)[2]+n):"";return this.spaceBefore+r+this.type+this.spaceAfter}}function Kpe(e,t){let n=[];for(let i=e;i&&i.name!="Document";i=i.parent)(i.name=="ListItem"||i.name=="Blockquote"||i.name=="FencedCode")&&n.push(i);let r=[];for(let i=n.length-1;i>=0;i--){let a=n[i],s,o=t.lineAt(a.from),l=a.from-o.from;if(a.name=="FencedCode")r.push(new XA(a,l,l,"","","",null));else if(a.name=="Blockquote"&&(s=/^ *>( ?)/.exec(o.text.slice(l))))r.push(new XA(a,l,l+s[0].length,"",s[1],">",null));else if(a.name=="ListItem"&&a.parent.name=="OrderedList"&&(s=/^( *)\d+([.)])( *)/.exec(o.text.slice(l)))){let u=s[3],d=s[0].length;u.length>=4&&(u=u.slice(0,u.length-4),d-=4),r.push(new XA(a.parent,l,l+d,s[1],u,s[2],a))}else if(a.name=="ListItem"&&a.parent.name=="BulletList"&&(s=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(o.text.slice(l)))){let u=s[4],d=s[0].length;u.length>4&&(u=u.slice(0,u.length-4),d-=4);let f=s[2];s[3]&&(f+=s[3].replace(/[xX]/," ")),r.push(new XA(a.parent,l,l+d,s[1],u,f,a))}}return r}function Jpe(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function qD(e,t,n,r=0){for(let i=-1,a=e;;){if(a.name=="ListItem"){let o=Jpe(a,t),l=+o[2];if(i>=0){if(l!=i+1)return;n.push({from:a.from+o[1].length,to:a.from+o[0].length,insert:String(i+2+r)})}i=l}let s=a.nextSibling;if(!s)break;a=s}}function iU(e,t){let n=/^[ \t]*/.exec(e)[0].length;if(!n||t.facet(jT)!=" ")return e;let r=Cd(e,4,n),i="";for(let a=r;a>0;)a>=4?(i+=" ",a-=4):(i+=" ",a--);return i+e.slice(n)}const WJe=({state:e,dispatch:t})=>{let n=Di(e),{doc:r}=e,i=null,a=e.changeByRange(s=>{if(!s.empty||!Xpe.isActiveAt(e,s.from))return i={range:s};let o=s.from,l=r.lineAt(o),u=Kpe(n.resolveInner(o,-1),r);for(;u.length&&u[u.length-1].from>o-l.from;)u.pop();if(!u.length)return i={range:s};let d=u[u.length-1];if(d.to-d.spaceAfter.length>o-l.from)return i={range:s};let f=o>=d.to-d.spaceAfter.length&&!/\S/.test(l.text.slice(d.to));if(d.item&&f){let T=d.node.firstChild,w=d.node.getChild("ListItem","ListItem");if(T.to>=o||w&&w.to0&&!/[^\s>]/.test(r.lineAt(l.from-1).text)){let x=u.length>1?u[u.length-2]:null,k,_="";x&&x.item?(k=l.from+x.from,_=x.marker(r,1)):k=l.from+(x?x.to:0);let R=[{from:k,to:o,insert:_}];return d.node.name=="OrderedList"&&qD(d.item,r,R,-2),x&&x.node.name=="OrderedList"&&qD(x.item,r,R),{range:ht.cursor(k+_.length),changes:R}}else{let x=FJ(u,e,l);return{range:ht.cursor(o+x.length+1),changes:{from:l.from,insert:x+e.lineBreak}}}}if(d.node.name=="Blockquote"&&f&&l.from){let T=r.lineAt(l.from-1),w=/>\s*$/.exec(T.text);if(w&&w.index==d.from){let x=e.changes([{from:T.from+w.index,to:T.to},{from:l.from+d.from,to:l.to}]);return{range:s.map(x),changes:x}}}let p=[];d.node.name=="OrderedList"&&qD(d.item,r,p);let g=d.item&&d.item.from]*/.exec(l.text)[0].length>=d.to)for(let T=0,w=u.length-1;T<=w;T++)O+=T==w&&!g?u[T].marker(r,1):u[T].blank(Tl.from&&/\s/.test(l.text.charAt(S-l.from-1));)S--;return O=iU(O,e),VJe(d.node,e.doc)&&(O=FJ(u,e,l)+e.lineBreak+O),p.push({from:S,to:o,insert:e.lineBreak+O}),{range:ht.cursor(S+O.length+1),changes:p}});return i?!1:(t(e.update(a,{scrollIntoView:!0,userEvent:"input"})),!0)};function $J(e){return e.name=="QuoteMark"||e.name=="ListMark"}function VJe(e,t){if(e.name!="OrderedList"&&e.name!="BulletList")return!1;let n=e.firstChild,r=e.getChild("ListItem","ListItem");if(!r)return!1;let i=t.lineAt(n.to),a=t.lineAt(r.from),s=/^[\s>]*$/.test(i.text);return i.number+(s?0:1){let n=Di(e),r=null,i=e.changeByRange(a=>{let s=a.from,{doc:o}=e;if(a.empty&&Xpe.isActiveAt(e,a.from)){let l=o.lineAt(s),u=Kpe(qJe(n,s),o);if(u.length){let d=u[u.length-1],f=d.to-d.spaceAfter.length+(d.spaceAfter?1:0);if(s-l.from>f&&!/\S/.test(l.text.slice(f,s-l.from)))return{range:ht.cursor(l.from+f),changes:{from:l.from+f,to:s}};if(s-l.from==f&&(!d.item||l.from<=d.item.from||!/\S/.test(l.text.slice(0,d.to)))){let p=l.from+d.from;if(d.item&&d.node.from{var{theme:t,settings:n={},styles:r=[]}=e,i={".cm-gutters":{}},a={};n.background&&(a.backgroundColor=n.background),n.backgroundImage&&(a.backgroundImage=n.backgroundImage),n.foreground&&(a.color=n.foreground),n.fontSize&&(a.fontSize=n.fontSize),(n.background||n.foreground)&&(i["&"]=a),n.fontFamily&&(i["&.cm-editor .cm-scroller"]={fontFamily:n.fontFamily}),n.gutterBackground&&(i[".cm-gutters"].backgroundColor=n.gutterBackground),n.gutterForeground&&(i[".cm-gutters"].color=n.gutterForeground),n.gutterBorder&&(i[".cm-gutters"].borderRightColor=n.gutterBorder),n.caret&&(i[".cm-content"]={caretColor:n.caret},i[".cm-cursor, .cm-dropCursor"]={borderLeftColor:n.caret});var s={};n.gutterActiveForeground&&(s.color=n.gutterActiveForeground),n.lineHighlight&&(i[".cm-activeLine"]={backgroundColor:n.lineHighlight},s.backgroundColor=n.lineHighlight),i[".cm-activeLineGutter"]=s,n.selection&&(i["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:n.selection+" !important"}),n.selectionMatch&&(i["& .cm-selectionMatch"]={backgroundColor:n.selectionMatch});var o=Kt.theme(i,{dark:t==="dark"}),l=WT.define(r),u=[o,gfe(l)];return u},JJe={background:"#fff",foreground:"#3D3D3D",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#AFAFAF",lineHighlight:"#d5e6ff69"},eet=[{tag:[ge.comment,ge.quote],color:"#707F8D"},{tag:[ge.typeName,ge.typeOperator],color:"#aa0d91"},{tag:[ge.keyword],color:"#aa0d91",fontWeight:"bold"},{tag:[ge.string,ge.meta],color:"#D23423"},{tag:[ge.name],color:"#032f62"},{tag:[ge.typeName],color:"#522BB2"},{tag:[ge.variableName],color:"#23575C"},{tag:[ge.definition(ge.variableName)],color:"#327A9E"},{tag:[ge.regexp,ge.link],color:"#0e0eff"}];function tet(e){var{theme:t="light",settings:n={},styles:r=[]}={};return e0e({theme:t,settings:Vh({},JJe,n),styles:[...eet,...r]})}var net=tet(),ret={background:"#292A30",foreground:"#CECFD0",caret:"#fff",selection:"#727377",selectionMatch:"#727377",lineHighlight:"#ffffff0f"},iet=[{tag:[ge.comment,ge.quote],color:"#7F8C98"},{tag:[ge.keyword],color:"#FF7AB2",fontWeight:"bold"},{tag:[ge.string,ge.meta],color:"#FF8170"},{tag:[ge.typeName],color:"#DABAFF"},{tag:[ge.definition(ge.variableName)],color:"#6BDFFF"},{tag:[ge.name],color:"#6BAA9F"},{tag:[ge.variableName],color:"#ACF2E4"},{tag:[ge.regexp,ge.link],color:"#FF8170"}],aet=e=>{var{theme:t="dark",settings:n={},styles:r=[]}={};return e0e({theme:t,settings:Vh({},ret,n),styles:[...iet,...r]})},set=aet(),t0e={exports:{}};(function(e,t){(function(r,i){e.exports=i(M)})(yf,function(n){return function(r){var i={};function a(s){if(i[s])return i[s].exports;var o=i[s]={i:s,l:!1,exports:{}};return r[s].call(o.exports,o,o.exports,a),o.l=!0,o.exports}return a.m=r,a.c=i,a.i=function(s){return s},a.d=function(s,o,l){a.o(s,o)||Object.defineProperty(s,o,{configurable:!1,enumerable:!0,get:l})},a.n=function(s){var o=s&&s.__esModule?function(){return s.default}:function(){return s};return a.d(o,"a",o),o},a.o=function(s,o){return Object.prototype.hasOwnProperty.call(s,o)},a.p="",a(a.s=10)}([function(r,i){var a=r.exports={},s,o;function l(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?s=setTimeout:s=l}catch{s=l}try{typeof clearTimeout=="function"?o=clearTimeout:o=u}catch{o=u}})();function d(_){if(s===setTimeout)return setTimeout(_,0);if((s===l||!s)&&setTimeout)return s=setTimeout,setTimeout(_,0);try{return s(_,0)}catch{try{return s.call(null,_,0)}catch{return s.call(this,_,0)}}}function f(_){if(o===clearTimeout)return clearTimeout(_);if((o===u||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(_);try{return o(_)}catch{try{return o.call(null,_)}catch{return o.call(this,_)}}}var p=[],g=!1,O,S=-1;function T(){!g||!O||(g=!1,O.length?p=O.concat(p):S=-1,p.length&&w())}function w(){if(!g){var _=d(T);g=!0;for(var R=p.length;R;){for(O=p,p=[];++S1)for(var N=1;N1?p-1:0),O=1;O2?g-2:0),S=2;S0&&N.syncScrollPosition(N.panes[re][0],V),N.panes[re].push(V))}),N.addEvents(V,W)},N.unregisterPane=function(V,W){W.forEach(function(re){N.findPane(V,re)&&(N.removeEvents(V),N.panes[re].splice(N.panes[re].indexOf(V),1))})},N.addEvents=function(V,W){V.onscroll=N.handlePaneScroll.bind(N,V,W)},N.removeEvents=function(V){V.onscroll=null},N.findPane=function(V,W){return N.panes[W]?N.panes[W].find(function(re){return re===V}):!1},N.handlePaneScroll=function(V,W){N.props.enabled&&window.requestAnimationFrame(function(){N.syncScrollPositions(V,W)})},N.syncScrollPositions=function(V,W){W.forEach(function(re){N.panes[re].forEach(function(ee){V!==ee&&(N.removeEvents(ee,re),N.syncScrollPosition(V,ee),window.requestAnimationFrame(function(){N.addEvents(ee,W)}))})}),N.props.onSync&&N.props.onSync(V)},R),S(N,D)}return s(k,[{key:"getContextValue",value:function(){return{registerPane:this.registerPane,unregisterPane:this.unregisterPane}}},{key:"syncScrollPosition",value:function(R,N){var D=R.scrollTop,L=R.scrollHeight,j=R.clientHeight,B=R.scrollLeft,V=R.scrollWidth,W=R.clientWidth,re=L-j,ee=V-W,q=this.props,te=q.proportional,K=q.vertical,G=q.horizontal,ie=N.scrollHeight-j,H=N.scrollWidth-W;K&&re>0&&(N.scrollTop=te?ie*D/re:D),G&&ee>0&&(N.scrollLeft=te?H*B/ee:B)}},{key:"render",value:function(){return l.default.createElement(p.default.Provider,{value:this.getContextValue()},l.default.Children.only(this.props.children))}}]),k}(o.Component);w.propTypes={onSync:d.default.func,children:d.default.element.isRequired,proportional:d.default.bool,vertical:d.default.bool,horizontal:d.default.bool,enabled:d.default.bool},w.defaultProps={proportional:!0,vertical:!0,horizontal:!0,enabled:!0},i.default=w,r.exports=i.default},function(r,i,a){Object.defineProperty(i,"__esModule",{value:!0});var s=function(){function w(x,k){for(var _=0;_"u"||Se===null)return""+Se;var Z=G(Se);if(Z==="object"){if(Se instanceof Date)return"date";if(Se instanceof RegExp)return"regexp"}return Z}function H(Se){var Z=ie(Se);switch(Z){case"array":case"object":return"an "+Z;case"boolean":case"date":case"regexp":return"a "+Z;default:return Z}}function Re(Se){return!Se.constructor||!Se.constructor.name?w:Se.constructor.name}return x.checkPropTypes=f,x.PropTypes=x,x}}).call(i,a(0))}])})})(t0e);var WL=t0e.exports,uu=(e=>(e.BOLD="bold",e.ITALIC="italic",e.CODE="code",e.STRIKETHROUGH="strikeThrough",e))(uu||{});const n0e=()=>{const{cmView:e}=Pr(xp),t=M.useCallback(s=>{switch(s){case"bold":return"**";case"italic":return"_";case"code":return"`";case"strikeThrough":return"~~"}},[]),n=M.useCallback((s,o)=>{const u=new Set(["*","_","`","~"]);return[...s.sliceDoc(Math.max(0,o-10),o)].reduce((f,p)=>u.has(p)?f+1:f,0)},[]),r=M.useCallback(s=>{const o=t(s),l=o.length;return({state:u,dispatch:d})=>{const f=u.changeByRange(p=>{const g=n(u,p.from),O=u.sliceDoc(p.from-g<0?0:p.from-g,p.from).indexOf(o),S=u.sliceDoc(p.to,p.to+g).indexOf(o),T=[O===-1?{from:p.from,insert:vr.of([o])}:{from:p.from-g+O,to:p.from-g+O+l,insert:vr.of([""])},S===-1?{from:p.to,insert:vr.of([o])}:{from:p.to+S,to:p.to+S+l,insert:vr.of([""])}],w=O===-1?l:-l,x=S===-1?l:-l;return{changes:T,range:ht.range(p.from+w,p.to+x)}});return d(u.update(f,{scrollIntoView:!0,annotations:os.userEvent.of("input")})),!0}},[t,n]),i=M.useCallback(()=>[Jqe,{key:"Mod-b",run:r("bold")},{key:"Mod-i",run:r("italic")},{key:"Mod-e",run:r("code")},{key:"Mod-Shift-x",run:r("strikeThrough")}],[r]),a=M.useCallback((s,o)=>(l,u)=>{if(!e)return;const d=new Set(s);d.has(u)?d.delete(u):d.add(u),o(f=>({...f,selectedFormats:d})),r(u)(e)},[e,r]);return{getFormatMarkerLength:n,applyFormat:r,setKeymapConfig:i,toggleButtonChangeHandler:a}},oet={yorkieIntelligence:null,fileUpload:null},r0e=P1({name:"setting",initialState:oet,reducers:{setYorkieIntelligence:(e,t)=>{e.yorkieIntelligence=t.payload},setFileUpload:(e,t)=>{e.fileUpload=t.payload}}}),{setYorkieIntelligence:uet,setFileUpload:cet}=r0e.actions,WR=e=>e.setting,det=r0e.reducer,BJ=async(e,t)=>await Promise.all(Array.from(e).map(n=>{if(n.type.startsWith("image/"))return new Promise((r,i)=>{const a=new FileReader;a.readAsDataURL(n),a.onload=function(){r(t(n))},a.onerror=function(s){i(s)}})})),UJ=(e,t,n)=>{if(!e)return;const i=t.state.selection.main.to,a=i,s=` +}`,{label:"class",detail:"definition",type:"keyword"}),gl('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),gl('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],sJe=Ope.concat([gl("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),gl("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),gl("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),EJ=new jde,Spe=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function gE(e){return(t,n)=>{let r=t.node.getChild("VariableDefinition");return r&&n(r,e),!0}}const oJe=["FunctionDeclaration"],lJe={FunctionDeclaration:gE("function"),ClassDeclaration:gE("class"),ClassExpression:()=>!0,EnumDeclaration:gE("constant"),TypeAliasDeclaration:gE("type"),NamespaceDeclaration:gE("namespace"),VariableDefinition(e,t){e.matchContext(oJe)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function Epe(e,t){let n=EJ.get(t);if(n)return n;let r=[],i=!0;function a(s,o){let l=e.sliceString(s.from,s.to);r.push({label:l,type:o})}return t.cursor(Ai.IncludeAnonymous).iterate(s=>{if(i)i=!1;else if(s.name){let o=lJe[s.name];if(o&&o(s,a)||Spe.has(s.name))return!1}else if(s.to-s.from>8192){for(let o of Epe(e,s.node))r.push(o);return!1}}),EJ.set(t,r),r}const wJ=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,wpe=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function uJe(e){let t=Ri(e.state).resolveInner(e.pos,-1);if(wpe.indexOf(t.name)>-1)return null;let n=t.name=="VariableName"||t.to-t.from<20&&wJ.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let i=t;i;i=i.parent)Spe.has(i.name)&&(r=r.concat(Epe(e.state.doc,i)));return{options:r,from:n?t.from:e.pos,validFor:wJ}}const Df=Cv.define({name:"javascript",parser:aJe.configure({props:[WT.add({IfStatement:f_({except:/^\s*({|else\b)/}),TryStatement:f_({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:KWe,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:XWe({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":f_({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}}),bO.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":Zde,BlockComment(e){return{from:e.from+2,to:e.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),Tpe={test:e=>/^JSX/.test(e.name),facet:oB({commentTokens:{block:{open:"{/*",close:"*/}"}}})},xpe=Df.configure({dialect:"ts"},"typescript"),kpe=Df.configure({dialect:"jsx",props:[lB.add(e=>e.isTop?[Tpe]:void 0)]}),Ape=Df.configure({dialect:"jsx ts",props:[lB.add(e=>e.isTop?[Tpe]:void 0)]},"typescript");let _pe=e=>({label:e,type:"keyword"});const Cpe="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(_pe),cJe=Cpe.concat(["declare","implements","private","protected","public"].map(_pe));function dJe(e={}){let t=e.jsx?e.typescript?Ape:kpe:e.typescript?xpe:Df,n=e.typescript?sJe.concat(cJe):Ope.concat(Cpe);return new Lw(t,[Df.data.of({autocomplete:pGe(wpe,Jfe(n))}),Df.data.of({autocomplete:uJe}),e.jsx?pJe:[]])}function fJe(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 TJ(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 hJe=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),pJe=en.inputHandler.of((e,t,n,r,i)=>{if((hJe?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||r!=">"&&r!="/"||!Df.isActiveAt(e.state,t,-1))return!1;let a=i(),{state:s}=a,o=s.changeByRange(l=>{var u;let{head:d}=l,f=Ri(s).resolveInner(d-1,-1),p;if(f.name=="JSXStartTag"&&(f=f.parent),!(s.doc.sliceString(d-1,d)!=r||f.name=="JSXAttributeValue"&&f.to>d)){if(r==">"&&f.name=="JSXFragmentTag")return{range:l,changes:{from:d,insert:""}};if(r=="/"&&f.name=="JSXStartCloseTag"){let g=f.parent,O=g.parent;if(O&&g.from==d-2&&((p=TJ(s.doc,O.firstChild,d))||((u=O.firstChild)===null||u===void 0?void 0:u.name)=="JSXFragmentTag")){let S=`${p}>`;return{range:dt.cursor(d+S.length,-1),changes:{from:d,insert:S}}}}else if(r==">"){let g=fJe(f);if(g&&g.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(s.doc.sliceString(d,d+2))&&(p=TJ(s.doc,g,d)))return{range:l,changes:{from:d,insert:``}}}}return{range:l}});return o.changes.empty?!1:(e.dispatch([a,s.update(o,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),bE=["_blank","_self","_top","_parent"],$D=["ascii","utf-8","utf-16","latin1","latin1"],FD=["get","post","put","delete"],BD=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],eu=["true","false"],Tn={},mJe={a:{attrs:{href:null,ping:null,type:null,media:null,target:bE,hreflang:null}},abbr:Tn,address:Tn,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:Tn,aside:Tn,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:Tn,base:{attrs:{href:null,target:bE}},bdi:Tn,bdo:Tn,blockquote:{attrs:{cite:null}},body:Tn,br:Tn,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:BD,formmethod:FD,formnovalidate:["novalidate"],formtarget:bE,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:Tn,center:Tn,cite:Tn,code:Tn,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:Tn,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:Tn,div:Tn,dl:Tn,dt:Tn,em:Tn,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:Tn,figure:Tn,footer:Tn,form:{attrs:{action:null,name:null,"accept-charset":$D,autocomplete:["on","off"],enctype:BD,method:FD,novalidate:["novalidate"],target:bE}},h1:Tn,h2:Tn,h3:Tn,h4:Tn,h5:Tn,h6:Tn,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:Tn,hgroup:Tn,hr:Tn,html:{attrs:{manifest:null}},i:Tn,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:BD,formmethod:FD,formnovalidate:["novalidate"],formtarget:bE,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:Tn,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:Tn,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:Tn,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:$D,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:Tn,noscript:Tn,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:Tn,param:{attrs:{name:null,value:null}},pre:Tn,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:Tn,rt:Tn,ruby:Tn,samp:Tn,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:$D}},section:Tn,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:Tn,source:{attrs:{src:null,type:null,media:null}},span:Tn,strong:Tn,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:Tn,summary:Tn,sup:Tn,table:Tn,tbody:Tn,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:Tn,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:Tn,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:Tn,time:{attrs:{datetime:null}},title:Tn,tr:Tn,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:Tn,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:Tn},Rpe={accesskey:null,class:null,contenteditable:eu,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:eu,autocorrect:eu,autocapitalize:eu,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":eu,"aria-autocomplete":["inline","list","both","none"],"aria-busy":eu,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":eu,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":eu,"aria-hidden":eu,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":eu,"aria-multiselectable":eu,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":eu,"aria-relevant":null,"aria-required":eu,"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},Ipe="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 Ipe)Rpe[e]=null;let qw=class{constructor(t,n){this.tags=Object.assign(Object.assign({},mJe),t),this.globalAttrs=Object.assign(Object.assign({},Rpe),n),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}};qw.default=new qw;function Lv(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 Mv(e,t=!1){for(;e;e=e.parent)if(e.name=="Element")if(t)t=!1;else return e;return null}function Npe(e,t,n){let r=n.tags[Lv(e,Mv(t))];return(r==null?void 0:r.children)||n.allTags}function WB(e,t){let n=[];for(let r=Mv(t);r&&!r.type.isTop;r=Mv(r.parent)){let i=Lv(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 Dpe=/^[:\-\.\w\u00b7-\uffff]*$/;function xJ(e,t,n,r,i){let a=/\s*>/.test(e.sliceDoc(i,i+5))?"":">",s=Mv(n,!0);return{from:r,to:i,options:Npe(e.doc,s,t).map(o=>({label:o,type:"type"})).concat(WB(e.doc,n).map((o,l)=>({label:"/"+o,apply:"/"+o+a,type:"type",boost:99-l}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function kJ(e,t,n,r){let i=/\s*>/.test(e.sliceDoc(r,r+5))?"":">";return{from:n,to:r,options:WB(e.doc,t).map((a,s)=>({label:a,apply:a+i,type:"type",boost:99-s})),validFor:Dpe}}function gJe(e,t,n,r){let i=[],a=0;for(let s of Npe(e.doc,n,t))i.push({label:"<"+s,type:"type"});for(let s of WB(e.doc,n))i.push({label:"",type:"type",boost:99-a++});return{from:r,to:r,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function bJe(e,t,n,r,i){let a=Mv(n),s=a?t.tags[Lv(e.doc,a)]:null,o=s&&s.attrs?Object.keys(s.attrs):[],l=s&&s.globalAttrs===!1?o:o.length?o.concat(t.globalAttrNames):t.globalAttrNames;return{from:r,to:i,options:l.map(u=>({label:u,type:"property"})),validFor:Dpe}}function yJe(e,t,n,r,i){var a;let s=(a=n.parent)===null||a===void 0?void 0:a.getChild("AttributeName"),o=[],l;if(s){let u=e.sliceDoc(s.from,s.to),d=t.globalAttrs[u];if(!d){let f=Mv(n),p=f?t.tags[Lv(e.doc,f)]:null;d=(p==null?void 0:p.attrs)&&p.attrs[u]}if(d){let f=e.sliceDoc(r,i).toLowerCase(),p='"',g='"';/^['"]/.test(f)?(l=f[0]=='"'?/^[^"]*$/:/^[^']*$/,p="",g=e.sliceDoc(i,i+1)==f[0]?"":f[0],f=f.slice(1),r++):l=/^[^\s<>='"]*$/;for(let O of d)o.push({label:O,apply:p+O+g,type:"constant"})}}return{from:r,to:i,options:o,validFor:l}}function Ppe(e,t){let{state:n,pos:r}=t,i=Ri(n).resolveInner(r,-1),a=i.resolve(r);for(let s=r,o;a==i&&(o=i.childBefore(s));){let l=o.lastChild;if(!l||!l.type.isError||l.fromPpe(r,i)}const SJe=Df.parser.configure({top:"SingleExpression"}),Lpe=[{tag:"script",attrs:e=>e.type=="text/typescript"||e.lang=="ts",parser:xpe.parser},{tag:"script",attrs:e=>e.type=="text/babel"||e.type=="text/jsx",parser:kpe.parser},{tag:"script",attrs:e=>e.type=="text/typescript-jsx",parser:Ape.parser},{tag:"script",attrs(e){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type)},parser:SJe},{tag:"script",attrs(e){return!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type)},parser:Df.parser},{tag:"style",attrs(e){return(!e.lang||e.lang=="css")&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type))},parser:bC.parser}],Mpe=[{name:"style",parser:bC.parser.configure({top:"Styles"})}].concat(Ipe.map(e=>({name:e,parser:Df.parser}))),$pe=Cv.define({name:"html",parser:rKe.configure({props:[WT.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:"-._"}}),m_=$pe.configure({wrap:ppe(Lpe,Mpe)});function EJe(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=ppe((e.nestedLanguages||[]).concat(Lpe),(e.nestedAttributes||[]).concat(Mpe)));let r=n?$pe.configure({wrap:n,dialect:t}):t?m_.configure({dialect:t}):m_;return new Lw(r,[m_.data.of({autocomplete:OJe(e)}),e.autoCloseTags!==!1?wJe:[],dJe().support,IKe().support])}const AJ=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),wJe=en.inputHandler.of((e,t,n,r,i)=>{if(e.composing||e.state.readOnly||t!=n||r!=">"&&r!="/"||!m_.isActiveAt(e.state,t,-1))return!1;let a=i(),{state:s}=a,o=s.changeByRange(l=>{var u,d,f;let p=s.doc.sliceString(l.from-1,l.to)==r,{head:g}=l,O=Ri(s).resolveInner(g,-1),S;if(p&&r==">"&&O.name=="EndTag"){let T=O.parent;if(((d=(u=T.parent)===null||u===void 0?void 0:u.lastChild)===null||d===void 0?void 0:d.name)!="CloseTag"&&(S=Lv(s.doc,T.parent,g))&&!AJ.has(S)){let w=g+(s.doc.sliceString(g,g+1)===">"?1:0),x=``;return{range:l,changes:{from:g,to:w,insert:x}}}}else if(p&&r=="/"&&O.name=="IncompleteCloseTag"){let T=O.parent;if(O.from==g-2&&((f=T.lastChild)===null||f===void 0?void 0:f.name)!="CloseTag"&&(S=Lv(s.doc,T,g))&&!AJ.has(S)){let w=g+(s.doc.sliceString(g,g+1)===">"?1:0),x=`${S}>`;return{range:dt.cursor(g+x.length,-1),changes:{from:g,to:w,insert:x}}}}return{range:l}});return o.changes.empty?!1:(e.dispatch([a,s.update(o,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),Fpe=oB({commentTokens:{block:{open:""}}}),Bpe=new Wn,Upe=KZe.configure({props:[bO.add(e=>!e.is("Block")||e.is("Document")||PL(e)!=null||TJe(e)?void 0:(t,n)=>({from:n.doc.lineAt(t.from).to,to:t.to})),Bpe.add(PL),WT.add({Document:()=>null}),Qg.add({Document:Fpe})]});function PL(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?+t[1]:void 0}function TJe(e){return e.name=="OrderedList"||e.name=="BulletList"}function xJe(e,t){let n=e;for(;;){let r=n.nextSibling,i;if(!r||(i=PL(r.type))!=null&&i<=t)break;n=r}return n.to}const kJe=Yde.of((e,t,n)=>{for(let r=Ri(e).resolveInner(n,-1);r&&!(r.fromn)return{from:n,to:a}}return null});function VB(e){return new pc(Fpe,e,[kJe],"markdown")}const AJe=VB(Upe),_Je=Upe.configure([uXe,dXe,cXe,fXe,{props:[bO.add({Table:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}]),zpe=VB(_Je);function CJe(e,t){return n=>{if(n&&e){let r=null;if(n=/\S*/.exec(n)[0],typeof e=="function"?r=e(n):r=Z3.matchLanguageName(e,n,!0),r instanceof Z3)return r.support?r.support.language.parser:Pw.getSkippingParser(r.load());if(r)return r.parser}return t?t.parser:null}}class XA{constructor(t,n,r,i,a,s,o){this.node=t,this.from=n,this.to=r,this.spaceBefore=i,this.spaceAfter=a,this.type=s,this.item=o}blank(t,n=!0){let r=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(t!=null){for(;r.length0;i--)r+=" ";return r+(n?this.spaceAfter:"")}}marker(t,n){let r=this.node.name=="OrderedList"?String(+Hpe(this.item,t)[2]+n):"";return this.spaceBefore+r+this.type+this.spaceAfter}}function jpe(e,t){let n=[];for(let i=e;i&&i.name!="Document";i=i.parent)(i.name=="ListItem"||i.name=="Blockquote"||i.name=="FencedCode")&&n.push(i);let r=[];for(let i=n.length-1;i>=0;i--){let a=n[i],s,o=t.lineAt(a.from),l=a.from-o.from;if(a.name=="FencedCode")r.push(new XA(a,l,l,"","","",null));else if(a.name=="Blockquote"&&(s=/^ *>( ?)/.exec(o.text.slice(l))))r.push(new XA(a,l,l+s[0].length,"",s[1],">",null));else if(a.name=="ListItem"&&a.parent.name=="OrderedList"&&(s=/^( *)\d+([.)])( *)/.exec(o.text.slice(l)))){let u=s[3],d=s[0].length;u.length>=4&&(u=u.slice(0,u.length-4),d-=4),r.push(new XA(a.parent,l,l+d,s[1],u,s[2],a))}else if(a.name=="ListItem"&&a.parent.name=="BulletList"&&(s=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(o.text.slice(l)))){let u=s[4],d=s[0].length;u.length>4&&(u=u.slice(0,u.length-4),d-=4);let f=s[2];s[3]&&(f+=s[3].replace(/[xX]/," ")),r.push(new XA(a.parent,l,l+d,s[1],u,f,a))}}return r}function Hpe(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function UD(e,t,n,r=0){for(let i=-1,a=e;;){if(a.name=="ListItem"){let o=Hpe(a,t),l=+o[2];if(i>=0){if(l!=i+1)return;n.push({from:a.from+o[1].length,to:a.from+o[0].length,insert:String(i+2+r)})}i=l}let s=a.nextSibling;if(!s)break;a=s}}function qB(e,t){let n=/^[ \t]*/.exec(e)[0].length;if(!n||t.facet(QT)!=" ")return e;let r=Bf(e,4,n),i="";for(let a=r;a>0;)a>=4?(i+=" ",a-=4):(i+=" ",a--);return i+e.slice(n)}const RJe=({state:e,dispatch:t})=>{let n=Ri(e),{doc:r}=e,i=null,a=e.changeByRange(s=>{if(!s.empty||!zpe.isActiveAt(e,s.from))return i={range:s};let o=s.from,l=r.lineAt(o),u=jpe(n.resolveInner(o,-1),r);for(;u.length&&u[u.length-1].from>o-l.from;)u.pop();if(!u.length)return i={range:s};let d=u[u.length-1];if(d.to-d.spaceAfter.length>o-l.from)return i={range:s};let f=o>=d.to-d.spaceAfter.length&&!/\S/.test(l.text.slice(d.to));if(d.item&&f){let T=d.node.firstChild,w=d.node.getChild("ListItem","ListItem");if(T.to>=o||w&&w.to0&&!/[^\s>]/.test(r.lineAt(l.from-1).text)){let x=u.length>1?u[u.length-2]:null,k,_="";x&&x.item?(k=l.from+x.from,_=x.marker(r,1)):k=l.from+(x?x.to:0);let R=[{from:k,to:o,insert:_}];return d.node.name=="OrderedList"&&UD(d.item,r,R,-2),x&&x.node.name=="OrderedList"&&UD(x.item,r,R),{range:dt.cursor(k+_.length),changes:R}}else{let x=CJ(u,e,l);return{range:dt.cursor(o+x.length+1),changes:{from:l.from,insert:x+e.lineBreak}}}}if(d.node.name=="Blockquote"&&f&&l.from){let T=r.lineAt(l.from-1),w=/>\s*$/.exec(T.text);if(w&&w.index==d.from){let x=e.changes([{from:T.from+w.index,to:T.to},{from:l.from+d.from,to:l.to}]);return{range:s.map(x),changes:x}}}let p=[];d.node.name=="OrderedList"&&UD(d.item,r,p);let g=d.item&&d.item.from]*/.exec(l.text)[0].length>=d.to)for(let T=0,w=u.length-1;T<=w;T++)O+=T==w&&!g?u[T].marker(r,1):u[T].blank(Tl.from&&/\s/.test(l.text.charAt(S-l.from-1));)S--;return O=qB(O,e),IJe(d.node,e.doc)&&(O=CJ(u,e,l)+e.lineBreak+O),p.push({from:S,to:o,insert:e.lineBreak+O}),{range:dt.cursor(S+O.length+1),changes:p}});return i?!1:(t(e.update(a,{scrollIntoView:!0,userEvent:"input"})),!0)};function _J(e){return e.name=="QuoteMark"||e.name=="ListMark"}function IJe(e,t){if(e.name!="OrderedList"&&e.name!="BulletList")return!1;let n=e.firstChild,r=e.getChild("ListItem","ListItem");if(!r)return!1;let i=t.lineAt(n.to),a=t.lineAt(r.from),s=/^[\s>]*$/.test(i.text);return i.number+(s?0:1){let n=Ri(e),r=null,i=e.changeByRange(a=>{let s=a.from,{doc:o}=e;if(a.empty&&zpe.isActiveAt(e,a.from)){let l=o.lineAt(s),u=jpe(NJe(n,s),o);if(u.length){let d=u[u.length-1],f=d.to-d.spaceAfter.length+(d.spaceAfter?1:0);if(s-l.from>f&&!/\S/.test(l.text.slice(f,s-l.from)))return{range:dt.cursor(l.from+f),changes:{from:l.from+f,to:s}};if(s-l.from==f&&(!d.item||l.from<=d.item.from||!/\S/.test(l.text.slice(0,d.to)))){let p=l.from+d.from;if(d.item&&d.node.from{var{theme:t,settings:n={},styles:r=[]}=e,i={".cm-gutters":{}},a={};n.background&&(a.backgroundColor=n.background),n.backgroundImage&&(a.backgroundImage=n.backgroundImage),n.foreground&&(a.color=n.foreground),n.fontSize&&(a.fontSize=n.fontSize),(n.background||n.foreground)&&(i["&"]=a),n.fontFamily&&(i["&.cm-editor .cm-scroller"]={fontFamily:n.fontFamily}),n.gutterBackground&&(i[".cm-gutters"].backgroundColor=n.gutterBackground),n.gutterForeground&&(i[".cm-gutters"].color=n.gutterForeground),n.gutterBorder&&(i[".cm-gutters"].borderRightColor=n.gutterBorder),n.caret&&(i[".cm-content"]={caretColor:n.caret},i[".cm-cursor, .cm-dropCursor"]={borderLeftColor:n.caret});var s={};n.gutterActiveForeground&&(s.color=n.gutterActiveForeground),n.lineHighlight&&(i[".cm-activeLine"]={backgroundColor:n.lineHighlight},s.backgroundColor=n.lineHighlight),i[".cm-activeLineGutter"]=s,n.selection&&(i["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:n.selection+" !important"}),n.selectionMatch&&(i["& .cm-selectionMatch"]={backgroundColor:n.selectionMatch});var o=en.theme(i,{dark:t==="dark"}),l=qT.define(r),u=[o,afe(l)];return u},FJe={background:"#fff",foreground:"#3D3D3D",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#AFAFAF",lineHighlight:"#d5e6ff69"},BJe=[{tag:[ge.comment,ge.quote],color:"#707F8D"},{tag:[ge.typeName,ge.typeOperator],color:"#aa0d91"},{tag:[ge.keyword],color:"#aa0d91",fontWeight:"bold"},{tag:[ge.string,ge.meta],color:"#D23423"},{tag:[ge.name],color:"#032f62"},{tag:[ge.typeName],color:"#522BB2"},{tag:[ge.variableName],color:"#23575C"},{tag:[ge.definition(ge.variableName)],color:"#327A9E"},{tag:[ge.regexp,ge.link],color:"#0e0eff"}];function UJe(e){var{theme:t="light",settings:n={},styles:r=[]}={};return Qpe({theme:t,settings:Uh({},FJe,n),styles:[...BJe,...r]})}var zJe=UJe(),jJe={background:"#292A30",foreground:"#CECFD0",caret:"#fff",selection:"#727377",selectionMatch:"#727377",lineHighlight:"#ffffff0f"},HJe=[{tag:[ge.comment,ge.quote],color:"#7F8C98"},{tag:[ge.keyword],color:"#FF7AB2",fontWeight:"bold"},{tag:[ge.string,ge.meta],color:"#FF8170"},{tag:[ge.typeName],color:"#DABAFF"},{tag:[ge.definition(ge.variableName)],color:"#6BDFFF"},{tag:[ge.name],color:"#6BAA9F"},{tag:[ge.variableName],color:"#ACF2E4"},{tag:[ge.regexp,ge.link],color:"#FF8170"}],QJe=e=>{var{theme:t="dark",settings:n={},styles:r=[]}={};return Qpe({theme:t,settings:Uh({},jJe,n),styles:[...HJe,...r]})},WJe=QJe(),Wpe={exports:{}};(function(e,t){(function(r,i){e.exports=i(M)})(pf,function(n){return function(r){var i={};function a(s){if(i[s])return i[s].exports;var o=i[s]={i:s,l:!1,exports:{}};return r[s].call(o.exports,o,o.exports,a),o.l=!0,o.exports}return a.m=r,a.c=i,a.i=function(s){return s},a.d=function(s,o,l){a.o(s,o)||Object.defineProperty(s,o,{configurable:!1,enumerable:!0,get:l})},a.n=function(s){var o=s&&s.__esModule?function(){return s.default}:function(){return s};return a.d(o,"a",o),o},a.o=function(s,o){return Object.prototype.hasOwnProperty.call(s,o)},a.p="",a(a.s=10)}([function(r,i){var a=r.exports={},s,o;function l(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?s=setTimeout:s=l}catch{s=l}try{typeof clearTimeout=="function"?o=clearTimeout:o=u}catch{o=u}})();function d(_){if(s===setTimeout)return setTimeout(_,0);if((s===l||!s)&&setTimeout)return s=setTimeout,setTimeout(_,0);try{return s(_,0)}catch{try{return s.call(null,_,0)}catch{return s.call(this,_,0)}}}function f(_){if(o===clearTimeout)return clearTimeout(_);if((o===u||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(_);try{return o(_)}catch{try{return o.call(null,_)}catch{return o.call(this,_)}}}var p=[],g=!1,O,S=-1;function T(){!g||!O||(g=!1,O.length?p=O.concat(p):S=-1,p.length&&w())}function w(){if(!g){var _=d(T);g=!0;for(var R=p.length;R;){for(O=p,p=[];++S1)for(var N=1;N1?p-1:0),O=1;O2?g-2:0),S=2;S0&&N.syncScrollPosition(N.panes[re][0],V),N.panes[re].push(V))}),N.addEvents(V,W)},N.unregisterPane=function(V,W){W.forEach(function(re){N.findPane(V,re)&&(N.removeEvents(V),N.panes[re].splice(N.panes[re].indexOf(V),1))})},N.addEvents=function(V,W){V.onscroll=N.handlePaneScroll.bind(N,V,W)},N.removeEvents=function(V){V.onscroll=null},N.findPane=function(V,W){return N.panes[W]?N.panes[W].find(function(re){return re===V}):!1},N.handlePaneScroll=function(V,W){N.props.enabled&&window.requestAnimationFrame(function(){N.syncScrollPositions(V,W)})},N.syncScrollPositions=function(V,W){W.forEach(function(re){N.panes[re].forEach(function(ee){V!==ee&&(N.removeEvents(ee,re),N.syncScrollPosition(V,ee),window.requestAnimationFrame(function(){N.addEvents(ee,W)}))})}),N.props.onSync&&N.props.onSync(V)},R),S(N,P)}return s(k,[{key:"getContextValue",value:function(){return{registerPane:this.registerPane,unregisterPane:this.unregisterPane}}},{key:"syncScrollPosition",value:function(R,N){var P=R.scrollTop,L=R.scrollHeight,j=R.clientHeight,B=R.scrollLeft,V=R.scrollWidth,W=R.clientWidth,re=L-j,ee=V-W,q=this.props,ne=q.proportional,K=q.vertical,G=q.horizontal,ie=N.scrollHeight-j,H=N.scrollWidth-W;K&&re>0&&(N.scrollTop=ne?ie*P/re:P),G&&ee>0&&(N.scrollLeft=ne?H*B/ee:B)}},{key:"render",value:function(){return l.default.createElement(p.default.Provider,{value:this.getContextValue()},l.default.Children.only(this.props.children))}}]),k}(o.Component);w.propTypes={onSync:d.default.func,children:d.default.element.isRequired,proportional:d.default.bool,vertical:d.default.bool,horizontal:d.default.bool,enabled:d.default.bool},w.defaultProps={proportional:!0,vertical:!0,horizontal:!0,enabled:!0},i.default=w,r.exports=i.default},function(r,i,a){Object.defineProperty(i,"__esModule",{value:!0});var s=function(){function w(x,k){for(var _=0;_"u"||Se===null)return""+Se;var Z=G(Se);if(Z==="object"){if(Se instanceof Date)return"date";if(Se instanceof RegExp)return"regexp"}return Z}function H(Se){var Z=ie(Se);switch(Z){case"array":case"object":return"an "+Z;case"boolean":case"date":case"regexp":return"a "+Z;default:return Z}}function Re(Se){return!Se.constructor||!Se.constructor.name?w:Se.constructor.name}return x.checkPropTypes=f,x.PropTypes=x,x}}).call(i,a(0))}])})})(Wpe);var ML=Wpe.exports,au=(e=>(e.BOLD="bold",e.ITALIC="italic",e.CODE="code",e.STRIKETHROUGH="strikeThrough",e))(au||{});const Vpe=()=>{const{cmView:e}=Pr(vp),t=M.useCallback(s=>{switch(s){case"bold":return"**";case"italic":return"_";case"code":return"`";case"strikeThrough":return"~~"}},[]),n=M.useCallback((s,o)=>{const u=new Set(["*","_","`","~"]);return[...s.sliceDoc(Math.max(0,o-10),o)].reduce((f,p)=>u.has(p)?f+1:f,0)},[]),r=M.useCallback(s=>{const o=t(s),l=o.length;return({state:u,dispatch:d})=>{const f=u.changeByRange(p=>{const g=n(u,p.from),O=u.sliceDoc(p.from-g<0?0:p.from-g,p.from).indexOf(o),S=u.sliceDoc(p.to,p.to+g).indexOf(o),T=[O===-1?{from:p.from,insert:Er.of([o])}:{from:p.from-g+O,to:p.from-g+O+l,insert:Er.of([""])},S===-1?{from:p.to,insert:Er.of([o])}:{from:p.to+S,to:p.to+S+l,insert:Er.of([""])}],w=O===-1?l:-l,x=S===-1?l:-l;return{changes:T,range:dt.range(p.from+w,p.to+x)}});return d(u.update(f,{scrollIntoView:!0,annotations:os.userEvent.of("input")})),!0}},[t,n]),i=M.useCallback(()=>[Fqe,{key:"Mod-b",run:r("bold")},{key:"Mod-i",run:r("italic")},{key:"Mod-e",run:r("code")},{key:"Mod-Shift-x",run:r("strikeThrough")}],[r]),a=M.useCallback((s,o)=>(l,u)=>{if(!e)return;const d=new Set(s);d.has(u)?d.delete(u):d.add(u),o(f=>({...f,selectedFormats:d})),r(u)(e)},[e,r]);return{getFormatMarkerLength:n,applyFormat:r,setKeymapConfig:i,toggleButtonChangeHandler:a}},VJe={yorkieIntelligence:null,fileUpload:null},qpe=M1({name:"setting",initialState:VJe,reducers:{setYorkieIntelligence:(e,t)=>{e.yorkieIntelligence=t.payload},setFileUpload:(e,t)=>{e.fileUpload=t.payload}}}),{setYorkieIntelligence:qJe,setFileUpload:GJe}=qpe.actions,HR=e=>e.setting,YJe=qpe.reducer,RJ=async(e,t)=>await Promise.all(Array.from(e).map(n=>{if(n.type.startsWith("image/"))return new Promise((r,i)=>{const a=new FileReader;a.readAsDataURL(n),a.onload=function(){r(t(n))},a.onerror=function(s){i(s)}})})),IJ=(e,t,n)=>{if(!e)return;const i=t.state.selection.main.to,a=i,s=` ![image](${e}) -`,o=a+s.length;n.update((l,u)=>{l.content.edit(i,a,s),u.set({selection:l.content.indexRangeToPosRange([o,o])})}),t.dispatch({changes:{from:i,to:a,insert:s},selection:{anchor:o}})},fet=(e,t)=>Kt.domEventHandlers({paste(n,r){var i,a;!((i=n.clipboardData)!=null&&i.files)||((a=n.clipboardData)==null?void 0:a.files.length)==0||BJ(n.clipboardData.files,e).then(s=>s.forEach(o=>UJ(o,r,t)))},drop(n,r){var i,a;!((i=n.dataTransfer)!=null&&i.files)||((a=n.dataTransfer)==null?void 0:a.files.length)==0||BJ(n.dataTransfer.files,e).then(s=>s.forEach(o=>UJ(o,r,t)))}});class het{constructor(t,n){this.left=t,this.right=n}}const Hg=(e,t)=>new het(e,t),pet=(e,t)=>e.forEach(n=>t(n.left,n.right)),Xf=typeof document<"u"?document:{},met=e=>Xf.createElement(e),get=()=>Xf.createDocumentFragment(),bet=e=>Xf.createTextNode(e);typeof DOMParser<"u"&&new DOMParser;const yet=(e,t)=>(pet(t,(n,r)=>{r===!1?e.removeAttribute(n):r===!0?e.setAttribute(n,""):e.setAttribute(n,r)}),e),vet=e=>{const t=get();for(let n=0;n(i0e(e,vet(t)),e),g_=(e,t=[],n=[])=>Oet(yet(met(e),t),n),KA=bet,i0e=(e,t)=>e.appendChild(t);Xf.ELEMENT_NODE;Xf.TEXT_NODE;Xf.CDATA_SECTION_NODE;Xf.COMMENT_NODE;Xf.DOCUMENT_NODE;Xf.DOCUMENT_TYPE_NODE;Xf.DOCUMENT_FRAGMENT_NODE;const Eet="yorkie-intelligence-header",O3="yorkie-intelligence-footer";class zJ extends Md{constructor(n,r,i){super();Cs(this,"id");Cs(this,"content");Cs(this,"selectionRange");this.id=n,this.content=r,this.selectionRange=i}toDOM(){return g_("span",[Hg("id",this.id),Hg("content",this.content),Hg("style","position: relaitve;")])}eq(n){return n.selectionRange===this.selectionRange}compare(n){return n.selectionRange===this.selectionRange}updateDOM(){return!1}get estimatedHeight(){return-1}ignoreEvent(){return!0}}class wet{constructor(){Cs(this,"decorations");this.decorations=Cr.of([])}update(t){const n=[],r=t.state.selection.main;if((r==null?void 0:r.from)!==(r==null?void 0:r.to)&&r){const a=t.state.sliceDoc(r.from,r.to);n.push({from:r.from,to:r.from,value:gn.widget({side:1,block:!1,widget:new zJ(Eet,a,r)})}),n.push({from:r.to,to:r.to,value:gn.widget({side:1,block:!1,widget:new zJ(O3,a,r)})})}this.decorations=gn.set(n,!0)}}const Tet=ha.fromClass(wet,{decorations:e=>e.decorations});var VL={exports:{}};(function(e,t){var n={};(function(r,i){i(t)})(yf,function(r){var i=Object.defineProperty,a=(y,c,h)=>c in y?i(y,c,{enumerable:!0,configurable:!0,writable:!0,value:h}):y[c]=h,s=(y,c,h)=>a(y,typeof c!="symbol"?c+"":c,h),o;(function(y){y[y.Canceled=1]="Canceled",y[y.Unknown=2]="Unknown",y[y.InvalidArgument=3]="InvalidArgument",y[y.DeadlineExceeded=4]="DeadlineExceeded",y[y.NotFound=5]="NotFound",y[y.AlreadyExists=6]="AlreadyExists",y[y.PermissionDenied=7]="PermissionDenied",y[y.ResourceExhausted=8]="ResourceExhausted",y[y.FailedPrecondition=9]="FailedPrecondition",y[y.Aborted=10]="Aborted",y[y.OutOfRange=11]="OutOfRange",y[y.Unimplemented=12]="Unimplemented",y[y.Internal=13]="Internal",y[y.Unavailable=14]="Unavailable",y[y.DataLoss=15]="DataLoss",y[y.Unauthenticated=16]="Unauthenticated"})(o||(o={}));function l(y){const c=o[y];return typeof c!="string"?y.toString():c[0].toLowerCase()+c.substring(1).replace(/[A-Z]/g,h=>"_"+h.toLowerCase())}class u extends Error{constructor(c,h=o.Unknown,b,E,P){super(d(c,h)),this.name="ConnectError",Object.setPrototypeOf(this,new.target.prototype),this.rawMessage=c,this.code=h,this.metadata=new Headers(b??{}),this.details=E??[],this.cause=P}static from(c,h=o.Unknown){return c instanceof u?c:c instanceof Error?c.name=="AbortError"?new u(c.message,o.Canceled):new u(c.message,h,void 0,void 0,c):new u(String(c),h,void 0,void 0,c)}static[Symbol.hasInstance](c){return c instanceof Error?Object.getPrototypeOf(c)===u.prototype?!0:c.name==="ConnectError"&&"code"in c&&typeof c.code=="number"&&"metadata"in c&&"details"in c&&Array.isArray(c.details)&&"rawMessage"in c&&typeof c.rawMessage=="string"&&"cause"in c:!1}findDetails(c){const h="typeName"in c?{findMessage:E=>E===c.typeName?c:void 0}:c,b=[];for(const E of this.details){if("getType"in E){h.findMessage(E.getType().typeName)&&b.push(E);continue}const P=h.findMessage(E.type);if(P)try{b.push(P.fromBinary(E.value))}catch{}}return b}}function d(y,c){return y.length?`[${l(c)}] ${y}`:`[${l(c)}]`}function f(y,c){if(!y)throw new Error(c)}const p=34028234663852886e22,g=-34028234663852886e22,O=4294967295,S=2147483647,T=-2147483648;function w(y){if(typeof y!="number")throw new Error("invalid int 32: "+typeof y);if(!Number.isInteger(y)||y>S||yO||y<0)throw new Error("invalid uint 32: "+y)}function k(y){if(typeof y!="number")throw new Error("invalid float 32: "+typeof y);if(Number.isFinite(y)&&(y>p||y({no:E.no,name:E.name,localName:y[E.no]})))}function D(y,c,h){const b=Object.create(null),E=Object.create(null),P=[];for(const U of c){const Y=j(U);P.push(Y),b[U.name]=Y,E[U.no]=Y}return{typeName:y,values:P,findName(U){return b[U]},findNumber(U){return E[U]}}}function L(y,c,h){const b={};for(const E of c){const P=j(E);b[P.localName]=P.no,b[P.no]=P.localName}return N(b,y,c),b}function j(y){return"localName"in y?y:Object.assign(Object.assign({},y),{localName:y.name})}class B{equals(c){return this.getType().runtime.util.equals(this.getType(),this,c)}clone(){return this.getType().runtime.util.clone(this)}fromBinary(c,h){const b=this.getType(),E=b.runtime.bin,P=E.makeReadOptions(h);return E.readMessage(this,P.readerFactory(c),c.byteLength,P),this}fromJson(c,h){const b=this.getType(),E=b.runtime.json,P=E.makeReadOptions(h);return E.readMessage(b,c,P,this),this}fromJsonString(c,h){let b;try{b=JSON.parse(c)}catch(E){throw new Error(`cannot decode ${this.getType().typeName} from JSON: ${E instanceof Error?E.message:String(E)}`)}return this.fromJson(b,h)}toBinary(c){const h=this.getType(),b=h.runtime.bin,E=b.makeWriteOptions(c),P=E.writerFactory();return b.writeMessage(this,P,E),P.finish()}toJson(c){const h=this.getType(),b=h.runtime.json,E=b.makeWriteOptions(c);return b.writeMessage(this,E)}toJsonString(c){var h;const b=this.toJson(c);return JSON.stringify(b,null,(h=c==null?void 0:c.prettySpaces)!==null&&h!==void 0?h:0)}toJSON(){return this.toJson({emitDefaultValues:!0})}getType(){return Object.getPrototypeOf(this).constructor}}function V(y,c,h,b){var E;const P=(E=b==null?void 0:b.localName)!==null&&E!==void 0?E:c.substring(c.lastIndexOf(".")+1),U={[P]:function(Y){y.util.initFields(this),y.util.initPartial(Y,this)}}[P];return Object.setPrototypeOf(U.prototype,new B),Object.assign(U,{runtime:y,typeName:c,fields:y.util.newFieldList(h),fromBinary(Y,fe){return new U().fromBinary(Y,fe)},fromJson(Y,fe){return new U().fromJson(Y,fe)},fromJsonString(Y,fe){return new U().fromJsonString(Y,fe)},equals(Y,fe){return y.util.equals(U,Y,fe)}}),U}function W(){let y=0,c=0;for(let b=0;b<28;b+=7){let E=this.buf[this.pos++];if(y|=(E&127)<>4,!(h&128))return this.assertBounds(),[y,c];for(let b=3;b<=31;b+=7){let E=this.buf[this.pos++];if(c|=(E&127)<>>P,Y=!(!(U>>>7)&&c==0),fe=(Y?U|128:U)&255;if(h.push(fe),!Y)return}const b=y>>>28&15|(c&7)<<4,E=!!(c>>3);if(h.push((E?b|128:b)&255),!!E){for(let P=3;P<31;P=P+7){const U=c>>>P,Y=!!(U>>>7),fe=(Y?U|128:U)&255;if(h.push(fe),!Y)return}h.push(c>>>31&1)}}const ee=4294967296;function q(y){const c=y[0]==="-";c&&(y=y.slice(1));const h=1e6;let b=0,E=0;function P(U,Y){const fe=Number(y.slice(U,Y));E*=h,b=b*h+fe,b>=ee&&(E=E+(b/ee|0),b=b%ee)}return P(-24,-18),P(-18,-12),P(-12,-6),P(-6),c?H(b,E):ie(b,E)}function te(y,c){let h=ie(y,c);const b=h.hi&2147483648;b&&(h=H(h.lo,h.hi));const E=K(h.lo,h.hi);return b?"-"+E:E}function K(y,c){if({lo:y,hi:c}=G(y,c),c<=2097151)return String(ee*c+y);const h=y&16777215,b=(y>>>24|c<<8)&16777215,E=c>>16&65535;let P=h+b*6777216+E*6710656,U=b+E*8147497,Y=E*2;const fe=1e7;return P>=fe&&(U+=Math.floor(P/fe),P%=fe),U>=fe&&(Y+=Math.floor(U/fe),U%=fe),Y.toString()+Re(U)+Re(P)}function G(y,c){return{lo:y>>>0,hi:c>>>0}}function ie(y,c){return{lo:y|0,hi:c|0}}function H(y,c){return c=~c,y?y=~y+1:c+=1,ie(y,c)}const Re=y=>{const c=String(y);return"0000000".slice(c.length)+c};function Se(y,c){if(y>=0){for(;y>127;)c.push(y&127|128),y=y>>>7;c.push(y)}else{for(let h=0;h<9;h++)c.push(y&127|128),y=y>>7;c.push(1)}}function Z(){let y=this.buf[this.pos++],c=y&127;if(!(y&128))return this.assertBounds(),c;if(y=this.buf[this.pos++],c|=(y&127)<<7,!(y&128))return this.assertBounds(),c;if(y=this.buf[this.pos++],c|=(y&127)<<14,!(y&128))return this.assertBounds(),c;if(y=this.buf[this.pos++],c|=(y&127)<<21,!(y&128))return this.assertBounds(),c;y=this.buf[this.pos++],c|=(y&15)<<28;for(let h=5;y&128&&h<10;h++)y=this.buf[this.pos++];if(y&128)throw new Error("invalid varint");return this.assertBounds(),c>>>0}function ke(){const y=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof y.getBigInt64=="function"&&typeof y.getBigUint64=="function"&&typeof y.setBigInt64=="function"&&typeof y.setBigUint64=="function"&&(typeof process!="object"||typeof n!="object"||n.BUF_BIGINT_DISABLE!=="1")){const E=BigInt("-9223372036854775808"),P=BigInt("9223372036854775807"),U=BigInt("0"),Y=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(fe){const me=typeof fe=="bigint"?fe:BigInt(fe);if(me>P||meY||mef(/^-?[0-9]+$/.test(E),`int64 invalid: ${E}`),b=E=>f(/^[0-9]+$/.test(E),`uint64 invalid: ${E}`);return{zero:"0",supported:!1,parse(E){return typeof E!="string"&&(E=E.toString()),h(E),E},uParse(E){return typeof E!="string"&&(E=E.toString()),b(E),E},enc(E){return typeof E!="string"&&(E=E.toString()),h(E),q(E)},uEnc(E){return typeof E!="string"&&(E=E.toString()),b(E),q(E)},dec(E,P){return te(E,P)},uDec(E,P){return K(E,P)}}}const $e=ke();var ae;(function(y){y[y.DOUBLE=1]="DOUBLE",y[y.FLOAT=2]="FLOAT",y[y.INT64=3]="INT64",y[y.UINT64=4]="UINT64",y[y.INT32=5]="INT32",y[y.FIXED64=6]="FIXED64",y[y.FIXED32=7]="FIXED32",y[y.BOOL=8]="BOOL",y[y.STRING=9]="STRING",y[y.BYTES=12]="BYTES",y[y.UINT32=13]="UINT32",y[y.SFIXED32=15]="SFIXED32",y[y.SFIXED64=16]="SFIXED64",y[y.SINT32=17]="SINT32",y[y.SINT64=18]="SINT64"})(ae||(ae={}));var Je;(function(y){y[y.BIGINT=0]="BIGINT",y[y.STRING=1]="STRING"})(Je||(Je={}));function We(y,c,h){if(c===h)return!0;if(y==ae.BYTES){if(!(c instanceof Uint8Array)||!(h instanceof Uint8Array)||c.length!==h.length)return!1;for(let b=0;b>>0)}raw(c){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(c),this}uint32(c){for(x(c);c>127;)this.buf.push(c&127|128),c=c>>>7;return this.buf.push(c),this}int32(c){return w(c),Se(c,this.buf),this}bool(c){return this.buf.push(c?1:0),this}bytes(c){return this.uint32(c.byteLength),this.raw(c)}string(c){let h=this.textEncoder.encode(c);return this.uint32(h.byteLength),this.raw(h)}float(c){k(c);let h=new Uint8Array(4);return new DataView(h.buffer).setFloat32(0,c,!0),this.raw(h)}double(c){let h=new Uint8Array(8);return new DataView(h.buffer).setFloat64(0,c,!0),this.raw(h)}fixed32(c){x(c);let h=new Uint8Array(4);return new DataView(h.buffer).setUint32(0,c,!0),this.raw(h)}sfixed32(c){w(c);let h=new Uint8Array(4);return new DataView(h.buffer).setInt32(0,c,!0),this.raw(h)}sint32(c){return w(c),c=(c<<1^c>>31)>>>0,Se(c,this.buf),this}sfixed64(c){let h=new Uint8Array(8),b=new DataView(h.buffer),E=$e.enc(c);return b.setInt32(0,E.lo,!0),b.setInt32(4,E.hi,!0),this.raw(h)}fixed64(c){let h=new Uint8Array(8),b=new DataView(h.buffer),E=$e.uEnc(c);return b.setInt32(0,E.lo,!0),b.setInt32(4,E.hi,!0),this.raw(h)}int64(c){let h=$e.enc(c);return re(h.lo,h.hi,this.buf),this}sint64(c){let h=$e.enc(c),b=h.hi>>31,E=h.lo<<1^b,P=(h.hi<<1|h.lo>>>31)^b;return re(E,P,this.buf),this}uint64(c){let h=$e.uEnc(c);return re(h.lo,h.hi,this.buf),this}}class Ht{constructor(c,h){this.varint64=W,this.uint32=Z,this.buf=c,this.len=c.length,this.pos=0,this.view=new DataView(c.buffer,c.byteOffset,c.byteLength),this.textDecoder=h??new TextDecoder}tag(){let c=this.uint32(),h=c>>>3,b=c&7;if(h<=0||b<0||b>5)throw new Error("illegal tag: field no "+h+" wire type "+b);return[h,b]}skip(c,h){let b=this.pos;switch(c){case st.Varint:for(;this.buf[this.pos++]&128;);break;case st.Bit64:this.pos+=4;case st.Bit32:this.pos+=4;break;case st.LengthDelimited:let E=this.uint32();this.pos+=E;break;case st.StartGroup:for(;;){const[P,U]=this.tag();if(U===st.EndGroup){if(h!==void 0&&P!==h)throw new Error("invalid end group tag");break}this.skip(U,P)}break;default:throw new Error("cant skip wire type "+c)}return this.assertBounds(),this.buf.subarray(b,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let c=this.uint32();return c>>>1^-(c&1)}int64(){return $e.dec(...this.varint64())}uint64(){return $e.uDec(...this.varint64())}sint64(){let[c,h]=this.varint64(),b=-(c&1);return c=(c>>>1|(h&1)<<31)^b,h=h>>>1^b,$e.dec(c,h)}bool(){let[c,h]=this.varint64();return c!==0||h!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return $e.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return $e.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 c=this.uint32(),h=this.pos;return this.pos+=c,this.assertBounds(),this.buf.subarray(h,h+c)}string(){return this.textDecoder.decode(this.bytes())}}function ft(y,c,h,b){let E;return{typeName:c,extendee:h,get field(){if(!E){const P=typeof b=="function"?b():b;P.name=c.split(".").pop(),P.jsonName=`[${c}]`,E=y.util.newFieldList([P]).list()[0]}return E},runtime:y}}function Et(y){const c=y.field.localName,h=Object.create(null);return h[c]=Ot(y),[h,()=>h[c]]}function Ot(y){const c=y.field;if(c.repeated)return[];if(c.default!==void 0)return c.default;switch(c.kind){case"enum":return c.T.values[0].no;case"scalar":return Xe(c.T,c.L);case"message":const h=c.T,b=new h;return h.fieldWrapper?h.fieldWrapper.unwrapField(b):b;case"map":throw"map fields are not allowed to be extensions"}}function zt(y,c){if(!c.repeated&&(c.kind=="enum"||c.kind=="scalar")){for(let h=y.length-1;h>=0;--h)if(y[h].no==c.no)return[y[h]];return[]}return y.filter(h=>h.no===c.no)}let de="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),_e=[];for(let y=0;y>4,U=P,E=2;break;case 2:h[b++]=(U&15)<<4|(P&60)>>2,U=P,E=3;break;case 3:h[b++]=(U&3)<<6|P,E=0;break}}if(E==1)throw Error("invalid base64 string.");return h.subarray(0,b)},enc(y){let c="",h=0,b,E=0;for(let P=0;P>2],E=(b&3)<<4,h=1;break;case 1:c+=de[E|b>>4],E=(b&15)<<2,h=2;break;case 2:c+=de[E|b>>6],c+=de[b&63],h=0;break}return h&&(c+=de[E],c+="=",h==1&&(c+="=")),c}};function et(y,c,h){yt(c,y);const b=c.runtime.bin.makeReadOptions(h),E=zt(y.getType().runtime.bin.listUnknownFields(y),c.field),[P,U]=Et(c);for(const Y of E)c.runtime.bin.readField(P,b.readerFactory(Y.data),c.field,Y.wireType,b);return U()}function dt(y,c,h,b){yt(c,y);const E=c.runtime.bin.makeReadOptions(b),P=c.runtime.bin.makeWriteOptions(b);if(tt(y,c)){const me=y.getType().runtime.bin.listUnknownFields(y).filter(Pe=>Pe.no!=c.field.no);y.getType().runtime.bin.discardUnknownFields(y);for(const Pe of me)y.getType().runtime.bin.onUnknownField(y,Pe.no,Pe.wireType,Pe.data)}const U=P.writerFactory();let Y=c.field;!Y.opt&&!Y.repeated&&(Y.kind=="enum"||Y.kind=="scalar")&&(Y=Object.assign(Object.assign({},c.field),{opt:!0})),c.runtime.bin.writeField(Y,h,U,P);const fe=E.readerFactory(U.finish());for(;fe.posb.no==c.field.no)}function yt(y,c){f(y.extendee.typeName==c.getType().typeName,`extension ${y.typeName} can only be applied to message ${y.extendee.typeName}`)}function tn(y,c){const h=y.localName;if(y.repeated)return c[h].length>0;if(y.oneof)return c[y.oneof.localName].case===h;switch(y.kind){case"enum":case"scalar":return y.opt||y.req?c[h]!==void 0:y.kind=="enum"?c[h]!==y.T.values[0].no:!At(y.T,c[h]);case"message":return c[h]!==void 0;case"map":return Object.keys(c[h]).length>0}}function Fe(y,c){const h=y.localName,b=!y.opt&&!y.req;if(y.repeated)c[h]=[];else if(y.oneof)c[y.oneof.localName]={case:void 0};else switch(y.kind){case"map":c[h]={};break;case"enum":c[h]=b?y.T.values[0].no:void 0;break;case"scalar":c[h]=b?Xe(y.T,y.L):void 0;break;case"message":c[h]=void 0;break}}function we(y,c){if(y===null||typeof y!="object"||!Object.getOwnPropertyNames(B.prototype).every(b=>b in y&&typeof y[b]=="function"))return!1;const h=y.getType();return h===null||typeof h!="function"||!("typeName"in h)||typeof h.typeName!="string"?!1:c===void 0?!0:h.typeName==c.typeName}function be(y,c){return we(c)||!y.fieldWrapper?c:y.fieldWrapper.wrapField(c)}ae.DOUBLE,ae.FLOAT,ae.INT64,ae.UINT64,ae.INT32,ae.UINT32,ae.BOOL,ae.STRING,ae.BYTES;const xe={ignoreUnknownFields:!1},Ue={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function It(y){return y?Object.assign(Object.assign({},xe),y):xe}function Gt(y){return y?Object.assign(Object.assign({},Ue),y):Ue}const rt=Symbol(),Vt=Symbol();function Qt(){return{makeReadOptions:It,makeWriteOptions:Gt,readMessage(y,c,h,b){if(c==null||Array.isArray(c)||typeof c!="object")throw new Error(`cannot decode message ${y.typeName} from JSON: ${jt(c)}`);b=b??new y;const E=new Map,P=h.typeRegistry;for(const[U,Y]of Object.entries(c)){const fe=y.fields.findJsonName(U);if(fe){if(fe.oneof){if(Y===null&&fe.kind=="scalar")continue;const me=E.get(fe.oneof);if(me!==void 0)throw new Error(`cannot decode message ${y.typeName} from JSON: multiple keys for oneof "${fe.oneof.name}" present: "${me}", "${U}"`);E.set(fe.oneof,U)}En(b,Y,fe,h,y)}else{let me=!1;if(P!=null&&P.findExtension&&U.startsWith("[")&&U.endsWith("]")){const Pe=P.findExtension(U.substring(1,U.length-1));if(Pe&&Pe.extendee.typeName==y.typeName){me=!0;const[St,mt]=Et(Pe);En(St,Y,Pe.field,h,Pe),dt(b,Pe,mt(),h)}}if(!me&&!h.ignoreUnknownFields)throw new Error(`cannot decode message ${y.typeName} from JSON: key "${U}" is unknown`)}}return b},writeMessage(y,c){const h=y.getType(),b={};let E;try{for(E of h.fields.byNumber()){if(!tn(E,y)){if(E.req)throw"required field not set";if(!c.emitDefaultValues||!Yr(E))continue}const U=E.oneof?y[E.oneof.localName].value:y[E.localName],Y=Li(E,U,c);Y!==void 0&&(b[c.useProtoFieldName?E.name:E.jsonName]=Y)}const P=c.typeRegistry;if(P!=null&&P.findExtensionFor)for(const U of h.runtime.bin.listUnknownFields(y)){const Y=P.findExtensionFor(h.typeName,U.no);if(Y&&tt(y,Y)){const fe=et(y,Y,c),me=Li(Y.field,fe,c);me!==void 0&&(b[Y.field.jsonName]=me)}}}catch(P){const U=E?`cannot encode field ${h.typeName}.${E.name} to JSON`:`cannot encode message ${h.typeName} to JSON`,Y=P instanceof Error?P.message:String(P);throw new Error(U+(Y.length>0?`: ${Y}`:""))}return b},readScalar(y,c,h){return Mr(y,c,h??Je.BIGINT,!0)},writeScalar(y,c,h){if(c!==void 0&&(h||At(y,c)))return Qi(y,c)},debug:jt}}function jt(y){if(y===null)return"null";switch(typeof y){case"object":return Array.isArray(y)?"array":"object";case"string":return y.length>100?"string":`"${y.split('"').join('\\"')}"`;default:return String(y)}}function En(y,c,h,b,E){let P=h.localName;if(h.repeated){if(f(h.kind!="map"),c===null)return;if(!Array.isArray(c))throw new Error(`cannot decode field ${E.typeName}.${h.name} from JSON: ${jt(c)}`);const U=y[P];for(const Y of c){if(Y===null)throw new Error(`cannot decode field ${E.typeName}.${h.name} from JSON: ${jt(Y)}`);switch(h.kind){case"message":U.push(h.T.fromJson(Y,b));break;case"enum":const fe=Rr(h.T,Y,b.ignoreUnknownFields,!0);fe!==Vt&&U.push(fe);break;case"scalar":try{U.push(Mr(h.T,Y,h.L,!0))}catch(me){let Pe=`cannot decode field ${E.typeName}.${h.name} from JSON: ${jt(Y)}`;throw me instanceof Error&&me.message.length>0&&(Pe+=`: ${me.message}`),new Error(Pe)}break}}}else if(h.kind=="map"){if(c===null)return;if(typeof c!="object"||Array.isArray(c))throw new Error(`cannot decode field ${E.typeName}.${h.name} from JSON: ${jt(c)}`);const U=y[P];for(const[Y,fe]of Object.entries(c)){if(fe===null)throw new Error(`cannot decode field ${E.typeName}.${h.name} from JSON: map value null`);let me;try{me=br(h.K,Y)}catch(Pe){let St=`cannot decode map key for field ${E.typeName}.${h.name} from JSON: ${jt(c)}`;throw Pe instanceof Error&&Pe.message.length>0&&(St+=`: ${Pe.message}`),new Error(St)}switch(h.V.kind){case"message":U[me]=h.V.T.fromJson(fe,b);break;case"enum":const Pe=Rr(h.V.T,fe,b.ignoreUnknownFields,!0);Pe!==Vt&&(U[me]=Pe);break;case"scalar":try{U[me]=Mr(h.V.T,fe,Je.BIGINT,!0)}catch(St){let mt=`cannot decode map value for field ${E.typeName}.${h.name} from JSON: ${jt(c)}`;throw St instanceof Error&&St.message.length>0&&(mt+=`: ${St.message}`),new Error(mt)}break}}}else switch(h.oneof&&(y=y[h.oneof.localName]={case:P},P="value"),h.kind){case"message":const U=h.T;if(c===null&&U.typeName!="google.protobuf.Value")return;let Y=y[P];we(Y)?Y.fromJson(c,b):(y[P]=Y=U.fromJson(c,b),U.fieldWrapper&&!h.oneof&&(y[P]=U.fieldWrapper.unwrapField(Y)));break;case"enum":const fe=Rr(h.T,c,b.ignoreUnknownFields,!1);switch(fe){case rt:Fe(h,y);break;case Vt:break;default:y[P]=fe;break}break;case"scalar":try{const me=Mr(h.T,c,h.L,!1);switch(me){case rt:Fe(h,y);break;default:y[P]=me;break}}catch(me){let Pe=`cannot decode field ${E.typeName}.${h.name} from JSON: ${jt(c)}`;throw me instanceof Error&&me.message.length>0&&(Pe+=`: ${me.message}`),new Error(Pe)}break}}function br(y,c){if(y===ae.BOOL)switch(c){case"true":c=!0;break;case"false":c=!1;break}return Mr(y,c,Je.BIGINT,!0).toString()}function Mr(y,c,h,b){if(c===null)return b?Xe(y,h):rt;switch(y){case ae.DOUBLE:case ae.FLOAT:if(c==="NaN")return Number.NaN;if(c==="Infinity")return Number.POSITIVE_INFINITY;if(c==="-Infinity")return Number.NEGATIVE_INFINITY;if(c===""||typeof c=="string"&&c.trim().length!==c.length||typeof c!="string"&&typeof c!="number")break;const E=Number(c);if(Number.isNaN(E)||!Number.isFinite(E))break;return y==ae.FLOAT&&k(E),E;case ae.INT32:case ae.FIXED32:case ae.SFIXED32:case ae.SINT32:case ae.UINT32:let P;if(typeof c=="number"?P=c:typeof c=="string"&&c.length>0&&c.trim().length===c.length&&(P=Number(c)),P===void 0)break;return y==ae.UINT32||y==ae.FIXED32?x(P):w(P),P;case ae.INT64:case ae.SFIXED64:case ae.SINT64:if(typeof c!="number"&&typeof c!="string")break;const U=$e.parse(c);return h?U.toString():U;case ae.FIXED64:case ae.UINT64:if(typeof c!="number"&&typeof c!="string")break;const Y=$e.uParse(c);return h?Y.toString():Y;case ae.BOOL:if(typeof c!="boolean")break;return c;case ae.STRING:if(typeof c!="string")break;try{encodeURIComponent(c)}catch{throw new Error("invalid UTF8")}return c;case ae.BYTES:if(c==="")return new Uint8Array(0);if(typeof c!="string")break;return Ne.dec(c)}throw new Error}function Rr(y,c,h,b){if(c===null)return y.typeName=="google.protobuf.NullValue"?0:b?y.values[0].no:rt;switch(typeof c){case"number":if(Number.isInteger(c))return c;break;case"string":const E=y.findName(c);if(E!==void 0)return E.no;if(h)return Vt;break}throw new Error(`cannot decode enum ${y.typeName} from JSON: ${jt(c)}`)}function Yr(y){return y.repeated||y.kind=="map"?!0:!(y.oneof||y.kind=="message"||y.opt||y.req)}function Li(y,c,h){if(y.kind=="map"){f(typeof c=="object"&&c!=null);const b={},E=Object.entries(c);switch(y.V.kind){case"scalar":for(const[U,Y]of E)b[U.toString()]=Qi(y.V.T,Y);break;case"message":for(const[U,Y]of E)b[U.toString()]=Y.toJson(h);break;case"enum":const P=y.V.T;for(const[U,Y]of E)b[U.toString()]=bi(P,Y,h.enumAsInteger);break}return h.emitDefaultValues||E.length>0?b:void 0}if(y.repeated){f(Array.isArray(c));const b=[];switch(y.kind){case"scalar":for(let E=0;E0?b:void 0}switch(y.kind){case"scalar":return Qi(y.T,c);case"enum":return bi(y.T,c,h.enumAsInteger);case"message":return be(y.T,c).toJson(h)}}function bi(y,c,h){var b;if(f(typeof c=="number"),y.typeName=="google.protobuf.NullValue")return null;if(h)return c;const E=y.findNumber(c);return(b=E==null?void 0:E.name)!==null&&b!==void 0?b:c}function Qi(y,c){switch(y){case ae.INT32:case ae.SFIXED32:case ae.SINT32:case ae.FIXED32:case ae.UINT32:return f(typeof c=="number"),c;case ae.FLOAT:case ae.DOUBLE:return f(typeof c=="number"),Number.isNaN(c)?"NaN":c===Number.POSITIVE_INFINITY?"Infinity":c===Number.NEGATIVE_INFINITY?"-Infinity":c;case ae.STRING:return f(typeof c=="string"),c;case ae.BOOL:return f(typeof c=="boolean"),c;case ae.UINT64:case ae.FIXED64:case ae.INT64:case ae.SFIXED64:case ae.SINT64:return f(typeof c=="bigint"||typeof c=="string"||typeof c=="number"),c.toString();case ae.BYTES:return f(c instanceof Uint8Array),Ne.enc(c)}}const yi=Symbol("@bufbuild/protobuf/unknown-fields"),ds={readUnknownFields:!0,readerFactory:y=>new Ht(y)},Wi={writeUnknownFields:!0,writerFactory:()=>new Lt};function qs(y){return y?Object.assign(Object.assign({},ds),y):ds}function Vi(y){return y?Object.assign(Object.assign({},Wi),y):Wi}function Ur(){return{makeReadOptions:qs,makeWriteOptions:Vi,listUnknownFields(y){var c;return(c=y[yi])!==null&&c!==void 0?c:[]},discardUnknownFields(y){delete y[yi]},writeUnknownFields(y,c){const b=y[yi];if(b)for(const E of b)c.tag(E.no,E.wireType).raw(E.data)},onUnknownField(y,c,h,b){const E=y;Array.isArray(E[yi])||(E[yi]=[]),E[yi].push({no:c,wireType:h,data:b})},readMessage(y,c,h,b,E){const P=y.getType(),U=E?c.len:c.pos+h;let Y,fe;for(;c.pos0&&(fe=it),P){let mt=y[U];if(b==st.LengthDelimited&&Y!=ae.STRING&&Y!=ae.BYTES){let Jt=c.uint32()+c.pos;for(;c.poswe(mt,St)?mt:new St(mt));else{const mt=U[E];St.fieldWrapper?St.typeName==="google.protobuf.BytesValue"?P[E]=Ye(mt):P[E]=mt:P[E]=we(mt,St)?mt:new St(mt)}break}}},equals(y,c,h){return c===h?!0:!c||!h?!1:y.fields.byMember().every(b=>{const E=c[b.localName],P=h[b.localName];if(b.repeated){if(E.length!==P.length)return!1;switch(b.kind){case"message":return E.every((U,Y)=>b.T.equals(U,P[Y]));case"scalar":return E.every((U,Y)=>We(b.T,U,P[Y]));case"enum":return E.every((U,Y)=>We(ae.INT32,U,P[Y]))}throw new Error(`repeated cannot contain ${b.kind}`)}switch(b.kind){case"message":return b.T.equals(E,P);case"enum":return We(ae.INT32,E,P);case"scalar":return We(b.T,E,P);case"oneof":if(E.case!==P.case)return!1;const U=b.findField(E.case);if(U===void 0)return!0;switch(U.kind){case"message":return U.T.equals(E.value,P.value);case"enum":return We(ae.INT32,E.value,P.value);case"scalar":return We(U.T,E.value,P.value)}throw new Error(`oneof cannot contain ${U.kind}`);case"map":const Y=Object.keys(E).concat(Object.keys(P));switch(b.V.kind){case"message":const fe=b.V.T;return Y.every(Pe=>fe.equals(E[Pe],P[Pe]));case"enum":return Y.every(Pe=>We(ae.INT32,E[Pe],P[Pe]));case"scalar":const me=b.V.T;return Y.every(Pe=>We(me,E[Pe],P[Pe]))}break}})},clone(y){const c=y.getType(),h=new c,b=h;for(const E of c.fields.byMember()){const P=y[E.localName];let U;if(E.repeated)U=P.map(ot);else if(E.kind=="map"){U=b[E.localName];for(const[Y,fe]of Object.entries(P))U[Y]=ot(fe)}else E.kind=="oneof"?U=E.findField(P.case)?{case:P.case,value:ot(P.value)}:{case:void 0}:U=ot(P);b[E.localName]=U}for(const E of c.runtime.bin.listUnknownFields(y))c.runtime.bin.onUnknownField(b,E.no,E.wireType,E.data);return h}}}function ot(y){if(y===void 0)return y;if(we(y))return y.clone();if(y instanceof Uint8Array){const c=new Uint8Array(y.byteLength);return c.set(y),c}return y}function Ye(y){return y instanceof Uint8Array?y:new Uint8Array(y)}function wt(y,c,h){return{syntax:y,json:Qt(),bin:Ur(),util:Object.assign(Object.assign({},Te()),{newFieldList:c,initFields:h}),makeMessageType(b,E,P){return V(this,b,E,P)},makeEnum:L,makeEnumType:D,getEnumType:R,makeExtension(b,E,P){return ft(this,b,E,P)}}}class Rt{constructor(c,h){this._fields=c,this._normalizer=h}findJsonName(c){if(!this.jsonNames){const h={};for(const b of this.list())h[b.jsonName]=h[b.name]=b;this.jsonNames=h}return this.jsonNames[c]}find(c){if(!this.numbers){const h={};for(const b of this.list())h[b.no]=b;this.numbers=h}return this.numbers[c]}list(){return this.all||(this.all=this._normalizer(this._fields)),this.all}byNumber(){return this.numbersAsc||(this.numbersAsc=this.list().concat().sort((c,h)=>c.no-h.no)),this.numbersAsc}byMember(){if(!this.members){this.members=[];const c=this.members;let h;for(const b of this.list())b.oneof?b.oneof!==h&&(h=b.oneof,c.push(h)):c.push(b)}return this.members}}function Yt(y,c){const h=qi(y);return c?h:Fl($l(h))}function Qn(y){return Yt(y,!1)}const Yn=qi;function qi(y){let c=!1;const h=[];for(let b=0;b`${y}$`,$l=y=>Uu.has(y)?ko(y):y,Fl=y=>ii.has(y)?ko(y):y;class Bl{constructor(c){this.kind="oneof",this.repeated=!1,this.packed=!1,this.opt=!1,this.req=!1,this.default=void 0,this.fields=[],this.name=c,this.localName=Qn(c)}addField(c){f(c.oneof===this,`field ${c.name} not one of ${this.name}`),this.fields.push(c)}findField(c){if(!this._lookup){this._lookup=Object.create(null);for(let h=0;hnew Rt(y,c=>xs(c)),y=>{for(const c of y.getType().fields.byMember()){if(c.opt)continue;const h=c.localName,b=y;if(c.repeated){b[h]=[];continue}switch(c.kind){case"oneof":b[h]={case:void 0};break;case"enum":b[h]=0;break;case"map":b[h]={};break;case"scalar":b[h]=Xe(c.T,c.L);break}}});var pa;(function(y){y[y.Unary=0]="Unary",y[y.ServerStreaming=1]="ServerStreaming",y[y.ClientStreaming=2]="ClientStreaming",y[y.BiDiStreaming=3]="BiDiStreaming"})(pa||(pa={}));var ah;(function(y){y[y.NoSideEffects=1]="NoSideEffects",y[y.Idempotent=2]="Idempotent"})(ah||(ah={}));class wn extends B{constructor(c){super(),this.seconds=$e.zero,this.nanos=0,je.util.initPartial(c,this)}fromJson(c,h){if(typeof c!="string")throw new Error(`cannot decode google.protobuf.Timestamp from JSON: ${je.json.debug(c)}`);const b=c.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(!b)throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");const E=Date.parse(b[1]+"-"+b[2]+"-"+b[3]+"T"+b[4]+":"+b[5]+":"+b[6]+(b[8]?b[8]:"Z"));if(Number.isNaN(E))throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");if(EDate.parse("9999-12-31T23:59:59Z"))throw new Error("cannot decode message google.protobuf.Timestamp from JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive");return this.seconds=$e.parse(E/1e3),this.nanos=0,b[7]&&(this.nanos=parseInt("1"+b[7]+"0".repeat(9-b[7].length))-1e9),this}toJson(c){const h=Number(this.seconds)*1e3;if(hDate.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 b="Z";if(this.nanos>0){const E=(this.nanos+1e9).toString().substring(1);E.substring(3)==="000000"?b="."+E.substring(0,3)+"Z":E.substring(6)==="000"?b="."+E.substring(0,6)+"Z":b="."+E+"Z"}return new Date(h).toISOString().replace(".000Z",b)}toDate(){return new Date(Number(this.seconds)*1e3+Math.ceil(this.nanos/1e6))}static now(){return wn.fromDate(new Date)}static fromDate(c){const h=c.getTime();return new wn({seconds:$e.parse(Math.floor(h/1e3)),nanos:h%1e3*1e6})}static fromBinary(c,h){return new wn().fromBinary(c,h)}static fromJson(c,h){return new wn().fromJson(c,h)}static fromJsonString(c,h){return new wn().fromJsonString(c,h)}static equals(c,h){return je.util.equals(wn,c,h)}}wn.runtime=je,wn.typeName="google.protobuf.Timestamp",wn.fields=je.util.newFieldList(()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]);class kr extends B{constructor(c){super(),this.seconds=$e.zero,this.nanos=0,je.util.initPartial(c,this)}fromJson(c,h){if(typeof c!="string")throw new Error(`cannot decode google.protobuf.Duration from JSON: ${je.json.debug(c)}`);const b=c.match(/^(-?[0-9]+)(?:\.([0-9]+))?s/);if(b===null)throw new Error(`cannot decode google.protobuf.Duration from JSON: ${je.json.debug(c)}`);const E=Number(b[1]);if(E>315576e6||E<-315576e6)throw new Error(`cannot decode google.protobuf.Duration from JSON: ${je.json.debug(c)}`);if(this.seconds=$e.parse(E),typeof b[2]=="string"){const P=b[2]+"0".repeat(9-b[2].length);this.nanos=parseInt(P),(E<0||Object.is(E,-0))&&(this.nanos=-this.nanos)}return this}toJson(c){if(Number(this.seconds)>315576e6||Number(this.seconds)<-315576e6)throw new Error("cannot encode google.protobuf.Duration to JSON: value out of range");let h=this.seconds.toString();if(this.nanos!==0){let b=Math.abs(this.nanos).toString();b="0".repeat(9-b.length)+b,b.substring(3)==="000000"?b=b.substring(0,3):b.substring(6)==="000"&&(b=b.substring(0,6)),h+="."+b,this.nanos<0&&Number(this.seconds)==0&&(h="-"+h)}return h+"s"}static fromBinary(c,h){return new kr().fromBinary(c,h)}static fromJson(c,h){return new kr().fromJson(c,h)}static fromJsonString(c,h){return new kr().fromJsonString(c,h)}static equals(c,h){return je.util.equals(kr,c,h)}}kr.runtime=je,kr.typeName="google.protobuf.Duration",kr.fields=je.util.newFieldList(()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]);class vi extends B{constructor(c){super(),this.typeUrl="",this.value=new Uint8Array(0),je.util.initPartial(c,this)}toJson(c){var h;if(this.typeUrl==="")return{};const b=this.typeUrlToName(this.typeUrl),E=(h=c==null?void 0:c.typeRegistry)===null||h===void 0?void 0:h.findMessage(b);if(!E)throw new Error(`cannot encode message google.protobuf.Any to JSON: "${this.typeUrl}" is not in the type registry`);let U=E.fromBinary(this.value).toJson(c);return(b.startsWith("google.protobuf.")||U===null||Array.isArray(U)||typeof U!="object")&&(U={value:U}),U["@type"]=this.typeUrl,U}fromJson(c,h){var b;if(c===null||Array.isArray(c)||typeof c!="object")throw new Error(`cannot decode message google.protobuf.Any from JSON: expected object but got ${c===null?"null":Array.isArray(c)?"array":typeof c}`);if(Object.keys(c).length==0)return this;const E=c["@type"];if(typeof E!="string"||E=="")throw new Error('cannot decode message google.protobuf.Any from JSON: "@type" is empty');const P=this.typeUrlToName(E),U=(b=h==null?void 0:h.typeRegistry)===null||b===void 0?void 0:b.findMessage(P);if(!U)throw new Error(`cannot decode message google.protobuf.Any from JSON: ${E} is not in the type registry`);let Y;if(P.startsWith("google.protobuf.")&&Object.prototype.hasOwnProperty.call(c,"value"))Y=U.fromJson(c.value,h);else{const fe=Object.assign({},c);delete fe["@type"],Y=U.fromJson(fe,h)}return this.packFrom(Y),this}packFrom(c){this.value=c.toBinary(),this.typeUrl=this.typeNameToUrl(c.getType().typeName)}unpackTo(c){return this.is(c.getType())?(c.fromBinary(this.value),!0):!1}unpack(c){if(this.typeUrl==="")return;const h=c.findMessage(this.typeUrlToName(this.typeUrl));if(h)return h.fromBinary(this.value)}is(c){if(this.typeUrl==="")return!1;const h=this.typeUrlToName(this.typeUrl);let b="";return typeof c=="string"?b=c:b=c.typeName,h===b}typeNameToUrl(c){return`type.googleapis.com/${c}`}typeUrlToName(c){if(!c.length)throw new Error(`invalid type url: ${c}`);const h=c.lastIndexOf("/"),b=h>=0?c.substring(h+1):c;if(!b.length)throw new Error(`invalid type url: ${c}`);return b}static pack(c){const h=new vi;return h.packFrom(c),h}static fromBinary(c,h){return new vi().fromBinary(c,h)}static fromJson(c,h){return new vi().fromJson(c,h)}static fromJsonString(c,h){return new vi().fromJsonString(c,h)}static equals(c,h){return je.util.equals(vi,c,h)}}vi.runtime=je,vi.typeName="google.protobuf.Any",vi.fields=je.util.newFieldList(()=>[{no:1,name:"type_url",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:12}]);class hr extends B{constructor(c){super(),this.value=0,je.util.initPartial(c,this)}toJson(c){return je.json.writeScalar(ae.DOUBLE,this.value,!0)}fromJson(c,h){try{this.value=je.json.readScalar(ae.DOUBLE,c)}catch(b){let E='cannot decode message google.protobuf.DoubleValue from JSON"';throw b instanceof Error&&b.message.length>0&&(E+=`: ${b.message}`),new Error(E)}return this}static fromBinary(c,h){return new hr().fromBinary(c,h)}static fromJson(c,h){return new hr().fromJson(c,h)}static fromJsonString(c,h){return new hr().fromJsonString(c,h)}static equals(c,h){return je.util.equals(hr,c,h)}}hr.runtime=je,hr.typeName="google.protobuf.DoubleValue",hr.fields=je.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:1}]),hr.fieldWrapper={wrapField(y){return new hr({value:y})},unwrapField(y){return y.value}};class Gi extends B{constructor(c){super(),this.value=0,je.util.initPartial(c,this)}toJson(c){return je.json.writeScalar(ae.FLOAT,this.value,!0)}fromJson(c,h){try{this.value=je.json.readScalar(ae.FLOAT,c)}catch(b){let E='cannot decode message google.protobuf.FloatValue from JSON"';throw b instanceof Error&&b.message.length>0&&(E+=`: ${b.message}`),new Error(E)}return this}static fromBinary(c,h){return new Gi().fromBinary(c,h)}static fromJson(c,h){return new Gi().fromJson(c,h)}static fromJsonString(c,h){return new Gi().fromJsonString(c,h)}static equals(c,h){return je.util.equals(Gi,c,h)}}Gi.runtime=je,Gi.typeName="google.protobuf.FloatValue",Gi.fields=je.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:2}]),Gi.fieldWrapper={wrapField(y){return new Gi({value:y})},unwrapField(y){return y.value}};class Ao extends B{constructor(c){super(),this.value=$e.zero,je.util.initPartial(c,this)}toJson(c){return je.json.writeScalar(ae.INT64,this.value,!0)}fromJson(c,h){try{this.value=je.json.readScalar(ae.INT64,c)}catch(b){let E='cannot decode message google.protobuf.Int64Value from JSON"';throw b instanceof Error&&b.message.length>0&&(E+=`: ${b.message}`),new Error(E)}return this}static fromBinary(c,h){return new Ao().fromBinary(c,h)}static fromJson(c,h){return new Ao().fromJson(c,h)}static fromJsonString(c,h){return new Ao().fromJsonString(c,h)}static equals(c,h){return je.util.equals(Ao,c,h)}}Ao.runtime=je,Ao.typeName="google.protobuf.Int64Value",Ao.fields=je.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:3}]),Ao.fieldWrapper={wrapField(y){return new Ao({value:y})},unwrapField(y){return y.value}};class _o extends B{constructor(c){super(),this.value=$e.zero,je.util.initPartial(c,this)}toJson(c){return je.json.writeScalar(ae.UINT64,this.value,!0)}fromJson(c,h){try{this.value=je.json.readScalar(ae.UINT64,c)}catch(b){let E='cannot decode message google.protobuf.UInt64Value from JSON"';throw b instanceof Error&&b.message.length>0&&(E+=`: ${b.message}`),new Error(E)}return this}static fromBinary(c,h){return new _o().fromBinary(c,h)}static fromJson(c,h){return new _o().fromJson(c,h)}static fromJsonString(c,h){return new _o().fromJsonString(c,h)}static equals(c,h){return je.util.equals(_o,c,h)}}_o.runtime=je,_o.typeName="google.protobuf.UInt64Value",_o.fields=je.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:4}]),_o.fieldWrapper={wrapField(y){return new _o({value:y})},unwrapField(y){return y.value}};class Co extends B{constructor(c){super(),this.value=0,je.util.initPartial(c,this)}toJson(c){return je.json.writeScalar(ae.INT32,this.value,!0)}fromJson(c,h){try{this.value=je.json.readScalar(ae.INT32,c)}catch(b){let E='cannot decode message google.protobuf.Int32Value from JSON"';throw b instanceof Error&&b.message.length>0&&(E+=`: ${b.message}`),new Error(E)}return this}static fromBinary(c,h){return new Co().fromBinary(c,h)}static fromJson(c,h){return new Co().fromJson(c,h)}static fromJsonString(c,h){return new Co().fromJsonString(c,h)}static equals(c,h){return je.util.equals(Co,c,h)}}Co.runtime=je,Co.typeName="google.protobuf.Int32Value",Co.fields=je.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:5}]),Co.fieldWrapper={wrapField(y){return new Co({value:y})},unwrapField(y){return y.value}};class Ul extends B{constructor(c){super(),this.value=0,je.util.initPartial(c,this)}toJson(c){return je.json.writeScalar(ae.UINT32,this.value,!0)}fromJson(c,h){try{this.value=je.json.readScalar(ae.UINT32,c)}catch(b){let E='cannot decode message google.protobuf.UInt32Value from JSON"';throw b instanceof Error&&b.message.length>0&&(E+=`: ${b.message}`),new Error(E)}return this}static fromBinary(c,h){return new Ul().fromBinary(c,h)}static fromJson(c,h){return new Ul().fromJson(c,h)}static fromJsonString(c,h){return new Ul().fromJsonString(c,h)}static equals(c,h){return je.util.equals(Ul,c,h)}}Ul.runtime=je,Ul.typeName="google.protobuf.UInt32Value",Ul.fields=je.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:13}]),Ul.fieldWrapper={wrapField(y){return new Ul({value:y})},unwrapField(y){return y.value}};class zu extends B{constructor(c){super(),this.value=!1,je.util.initPartial(c,this)}toJson(c){return je.json.writeScalar(ae.BOOL,this.value,!0)}fromJson(c,h){try{this.value=je.json.readScalar(ae.BOOL,c)}catch(b){let E='cannot decode message google.protobuf.BoolValue from JSON"';throw b instanceof Error&&b.message.length>0&&(E+=`: ${b.message}`),new Error(E)}return this}static fromBinary(c,h){return new zu().fromBinary(c,h)}static fromJson(c,h){return new zu().fromJson(c,h)}static fromJsonString(c,h){return new zu().fromJsonString(c,h)}static equals(c,h){return je.util.equals(zu,c,h)}}zu.runtime=je,zu.typeName="google.protobuf.BoolValue",zu.fields=je.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:8}]),zu.fieldWrapper={wrapField(y){return new zu({value:y})},unwrapField(y){return y.value}};class Gs extends B{constructor(c){super(),this.value="",je.util.initPartial(c,this)}toJson(c){return je.json.writeScalar(ae.STRING,this.value,!0)}fromJson(c,h){try{this.value=je.json.readScalar(ae.STRING,c)}catch(b){let E='cannot decode message google.protobuf.StringValue from JSON"';throw b instanceof Error&&b.message.length>0&&(E+=`: ${b.message}`),new Error(E)}return this}static fromBinary(c,h){return new Gs().fromBinary(c,h)}static fromJson(c,h){return new Gs().fromJson(c,h)}static fromJsonString(c,h){return new Gs().fromJsonString(c,h)}static equals(c,h){return je.util.equals(Gs,c,h)}}Gs.runtime=je,Gs.typeName="google.protobuf.StringValue",Gs.fields=je.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:9}]),Gs.fieldWrapper={wrapField(y){return new Gs({value:y})},unwrapField(y){return y.value}};class zl extends B{constructor(c){super(),this.value=new Uint8Array(0),je.util.initPartial(c,this)}toJson(c){return je.json.writeScalar(ae.BYTES,this.value,!0)}fromJson(c,h){try{this.value=je.json.readScalar(ae.BYTES,c)}catch(b){let E='cannot decode message google.protobuf.BytesValue from JSON"';throw b instanceof Error&&b.message.length>0&&(E+=`: ${b.message}`),new Error(E)}return this}static fromBinary(c,h){return new zl().fromBinary(c,h)}static fromJson(c,h){return new zl().fromJson(c,h)}static fromJsonString(c,h){return new zl().fromJsonString(c,h)}static equals(c,h){return je.util.equals(zl,c,h)}}zl.runtime=je,zl.typeName="google.protobuf.BytesValue",zl.fields=je.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:12}]),zl.fieldWrapper={wrapField(y){return new zl({value:y})},unwrapField(y){return y.value}};function XO(y,c,h){try{const b=Ne.dec(y);return c?c.fromBinary(b,h):b}catch(b){throw u.from(b,o.DataLoss)}}function BI(y,c){const h={};for(const[b,E]of Object.entries(y.methods)){const P=c(Object.assign(Object.assign({},E),{localName:b,service:y}));P!=null&&(h[b]=P)}return h}function KO(y){let c,h=new Uint8Array(0);function b(E){const P=new Uint8Array(h.length+E.length);P.set(h),P.set(E,h.length),h=P}return new ReadableStream({start(){c=y.getReader()},async pull(E){let P;for(;;){if(P===void 0&&h.byteLength>=5){let fe=0;for(let me=1;me<5;me++)fe=(fe<<8)+h[me];P={flags:h[0],length:fe}}if(P!==void 0&&h.byteLength>=P.length+5)break;const Y=await c.read();if(Y.done)break;b(Y.value)}if(P===void 0){if(h.byteLength==0){E.close();return}E.error(new u("premature end of stream",o.DataLoss));return}const U=h.subarray(5,5+P.length);h=h.subarray(5+P.length),E.enqueue({flags:P.flags,data:U})}})}function Z1(y,c){const h=new Uint8Array(c.length+5);h.set(c,5);const b=new DataView(h.buffer,h.byteOffset,h.byteLength);return b.setUint8(0,y),b.setUint32(1,c.length),h}var JO=function(y){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var c=y[Symbol.asyncIterator],h;return c?c.call(y):(y=typeof __values=="function"?__values(y):y[Symbol.iterator](),h={},b("next"),b("throw"),b("return"),h[Symbol.asyncIterator]=function(){return this},h);function b(P){h[P]=y[P]&&function(U){return new Promise(function(Y,fe){U=y[P](U),E(Y,fe,U.done,U.value)})}}function E(P,U,Y,fe){Promise.resolve(fe).then(function(me){P({value:me,done:Y})},U)}},ju=function(y){return this instanceof ju?(this.v=y,this):new ju(y)},Tx=function(y,c,h){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var b=h.apply(y,c||[]),E,P=[];return E={},Y("next"),Y("throw"),Y("return",U),E[Symbol.asyncIterator]=function(){return this},E;function U(nt){return function(Jt){return Promise.resolve(Jt).then(nt,St)}}function Y(nt,Jt){b[nt]&&(E[nt]=function(Cn){return new Promise(function(xn,lr){P.push([nt,Cn,xn,lr])>1||fe(nt,Cn)})},Jt&&(E[nt]=Jt(E[nt])))}function fe(nt,Jt){try{me(b[nt](Jt))}catch(Cn){mt(P[0][3],Cn)}}function me(nt){nt.value instanceof ju?Promise.resolve(nt.value.v).then(Pe,St):mt(P[0][2],nt)}function Pe(nt){fe("next",nt)}function St(nt){fe("throw",nt)}function mt(nt,Jt){nt(Jt),P.shift(),P.length&&fe(P[0][0],P[0][1])}},xx=function(y){var c,h;return c={},b("next"),b("throw",function(E){throw E}),b("return"),c[Symbol.iterator]=function(){return this},c;function b(E,P){c[E]=y[E]?function(U){return(h=!h)?{value:ju(y[E](U)),done:!1}:P?P(U):U}:P}};function UI(y){return Tx(this,arguments,function*(){yield ju(yield*xx(JO(y)))})}var eS=function(y){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var c=y[Symbol.asyncIterator],h;return c?c.call(y):(y=typeof __values=="function"?__values(y):y[Symbol.iterator](),h={},b("next"),b("throw"),b("return"),h[Symbol.asyncIterator]=function(){return this},h);function b(P){h[P]=y[P]&&function(U){return new Promise(function(Y,fe){U=y[P](U),E(Y,fe,U.done,U.value)})}}function E(P,U,Y,fe){Promise.resolve(fe).then(function(me){P({value:me,done:Y})},U)}},sh=function(y){return this instanceof sh?(this.v=y,this):new sh(y)},kx=function(y){var c,h;return c={},b("next"),b("throw",function(E){throw E}),b("return"),c[Symbol.iterator]=function(){return this},c;function b(E,P){c[E]=y[E]?function(U){return(h=!h)?{value:sh(y[E](U)),done:!1}:P?P(U):U}:P}},Ax=function(y,c,h){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var b=h.apply(y,c||[]),E,P=[];return E={},Y("next"),Y("throw"),Y("return",U),E[Symbol.asyncIterator]=function(){return this},E;function U(nt){return function(Jt){return Promise.resolve(Jt).then(nt,St)}}function Y(nt,Jt){b[nt]&&(E[nt]=function(Cn){return new Promise(function(xn,lr){P.push([nt,Cn,xn,lr])>1||fe(nt,Cn)})},Jt&&(E[nt]=Jt(E[nt])))}function fe(nt,Jt){try{me(b[nt](Jt))}catch(Cn){mt(P[0][3],Cn)}}function me(nt){nt.value instanceof sh?Promise.resolve(nt.value.v).then(Pe,St):mt(P[0][2],nt)}function Pe(nt){fe("next",nt)}function St(nt){fe("throw",nt)}function mt(nt,Jt){nt(Jt),P.shift(),P.length&&fe(P[0][0],P[0][1])}};function zI(y,c){return BI(y,h=>{switch(h.kind){case pa.Unary:return jI(c,y,h);case pa.ServerStreaming:return HI(c,y,h);case pa.ClientStreaming:return _x(c,y,h);case pa.BiDiStreaming:return QI(c,y,h);default:return null}})}function jI(y,c,h){return async function(b,E){var P,U;const Y=await y.unary(c,h,E==null?void 0:E.signal,E==null?void 0:E.timeoutMs,E==null?void 0:E.headers,b,E==null?void 0:E.contextValues);return(P=E==null?void 0:E.onHeader)===null||P===void 0||P.call(E,Y.header),(U=E==null?void 0:E.onTrailer)===null||U===void 0||U.call(E,Y.trailer),Y.message}}function HI(y,c,h){return function(b,E){return Cx(y.stream(c,h,E==null?void 0:E.signal,E==null?void 0:E.timeoutMs,E==null?void 0:E.headers,UI([b]),E==null?void 0:E.contextValues),E)}}function _x(y,c,h){return async function(b,E){var P,U,Y,fe,me,Pe;const St=await y.stream(c,h,E==null?void 0:E.signal,E==null?void 0:E.timeoutMs,E==null?void 0:E.headers,b,E==null?void 0:E.contextValues);(me=E==null?void 0:E.onHeader)===null||me===void 0||me.call(E,St.header);let mt;try{for(var nt=!0,Jt=eS(St.message),Cn;Cn=await Jt.next(),P=Cn.done,!P;nt=!0)fe=Cn.value,nt=!1,mt=fe}catch(xn){U={error:xn}}finally{try{!nt&&!P&&(Y=Jt.return)&&await Y.call(Jt)}finally{if(U)throw U.error}}if(!mt)throw new u("protocol error: missing response message",o.Internal);return(Pe=E==null?void 0:E.onTrailer)===null||Pe===void 0||Pe.call(E,St.trailer),mt}}function QI(y,c,h){return function(b,E){return Cx(y.stream(c,h,E==null?void 0:E.signal,E==null?void 0:E.timeoutMs,E==null?void 0:E.headers,b,E==null?void 0:E.contextValues),E)}}function Cx(y,c){const h=function(){var b,E;return Ax(this,arguments,function*(){const P=yield sh(y);(b=c==null?void 0:c.onHeader)===null||b===void 0||b.call(c,P.header),yield sh(yield*kx(eS(P.message))),(E=c==null?void 0:c.onTrailer)===null||E===void 0||E.call(c,P.trailer)})}()[Symbol.asyncIterator]();return{[Symbol.asyncIterator]:()=>({next:()=>h.next()})}}function WI(...y){const c=new AbortController,h=y.filter(E=>E!==void 0).concat(c.signal);for(const E of h){if(E.aborted){b.apply(E);break}E.addEventListener("abort",b)}function b(){c.signal.aborted||c.abort(X1(this));for(const E of h)E.removeEventListener("abort",b)}return c}function VI(y){const c=new AbortController,h=()=>{c.abort(new u("the operation timed out",o.DeadlineExceeded))};let b;return y!==void 0&&(y<=0?h():b=setTimeout(h,y)),{signal:c.signal,cleanup:()=>clearTimeout(b)}}function X1(y){if(!y.aborted)return;if(y.reason!==void 0)return y.reason;const c=new Error("This operation was aborted");return c.name="AbortError",c}function Rx(){return{get(y){return y.id in this?this[y.id]:y.defaultValue},set(y,c){return this[y.id]=c,this},delete(y){return delete this[y.id],this}}}const tS=128;function Ix(y){const c=new Headers,h=new TextDecoder().decode(y).split(`\r -`);for(const b of h){if(b==="")continue;const E=b.indexOf(":");if(E>0){const P=b.substring(0,E).trim(),U=b.substring(E+1).trim();c.append(P,U)}}return c}const qI="Content-Type",GI="Grpc-Timeout",pi="Grpc-Status",ai="Grpc-Message",YI="Grpc-Status-Details-Bin",ZI="X-User-Agent",XI="X-Grpc-Web",KI="application/grpc-web+proto",JI="application/grpc-web+json";class Qc extends B{constructor(c){super(),this.code=0,this.message="",this.details=[],je.util.initPartial(c,this)}static fromBinary(c,h){return new Qc().fromBinary(c,h)}static fromJson(c,h){return new Qc().fromJson(c,h)}static fromJsonString(c,h){return new Qc().fromJsonString(c,h)}static equals(c,h){return je.util.equals(Qc,c,h)}}Qc.runtime=je,Qc.typeName="google.rpc.Status",Qc.fields=je.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:vi,repeated:!0}]);const Nx="0";function Dx(y){var c;const h=y.get(YI);if(h!=null){const E=XO(h,Qc);if(E.code==0)return;const P=new u(E.message,E.code,y);return P.details=E.details.map(U=>({type:U.typeUrl.substring(U.typeUrl.lastIndexOf("/")+1),value:U.value})),P}const b=y.get(pi);if(b!=null){if(b===Nx)return;const E=parseInt(b,10);return E in o?new u(decodeURIComponent((c=y.get(ai))!==null&&c!==void 0?c:""),E,y):new u(`invalid grpc-status: ${b}`,o.Internal,y)}}function $a(y,c,h){const b=typeof c=="string"?c:c.typeName,E=typeof h=="string"?h:h.name;return y.toString().replace(/\/?$/,`/${b}/${E}`)}function K1(y,c){return c instanceof y?c:new y(c)}function oh(y,c){function h(b){return b.done===!0?b:{done:b.done,value:K1(y,b.value)}}return{[Symbol.asyncIterator](){const b=c[Symbol.asyncIterator](),E={next:()=>b.next().then(h)};return b.throw!==void 0&&(E.throw=P=>b.throw(P).then(h)),b.return!==void 0&&(E.return=P=>b.return(P).then(h)),E}}}function nS(y,c){var h;return(h=c==null?void 0:c.concat().reverse().reduce((b,E)=>E(b),y))!==null&&h!==void 0?h:y}function rS(y){var c;const h=Object.assign({},y);return(c=h.ignoreUnknownFields)!==null&&c!==void 0||(h.ignoreUnknownFields=!0),h}function Ro(y,c,h,b){const E=c?iS(y.I,b):aS(y.I,h);return{parse:(c?iS(y.O,b):aS(y.O,h)).parse,serialize:E.serialize}}function iS(y,c){return{parse(h){try{return y.fromBinary(h,c)}catch(b){const E=b instanceof Error?b.message:String(b);throw new u(`parse binary: ${E}`,o.InvalidArgument)}},serialize(h){try{return h.toBinary(c)}catch(b){const E=b instanceof Error?b.message:String(b);throw new u(`serialize binary: ${E}`,o.Internal)}}}}function aS(y,c){var h,b;const E=(h=c==null?void 0:c.textEncoder)!==null&&h!==void 0?h:new TextEncoder,P=(b=c==null?void 0:c.textDecoder)!==null&&b!==void 0?b:new TextDecoder,U=rS(c);return{parse(Y){try{const fe=P.decode(Y);return y.fromJsonString(fe,U)}catch(fe){throw u.from(fe,o.InvalidArgument)}},serialize(Y){try{const fe=Y.toJsonString(U);return E.encode(fe)}catch(fe){throw u.from(fe,o.Internal)}}}}function Px(y){const c=nS(y.next,y.interceptors),[h,b,E]=sS(y),P=Object.assign(Object.assign({},y.req),{message:K1(y.req.method.I,y.req.message),signal:h});return c(P).then(U=>(E(),U),b)}function Lx(y){const c=nS(y.next,y.interceptors),[h,b,E]=sS(y),P=Object.assign(Object.assign({},y.req),{message:oh(y.req.method.I,y.req.message),signal:h});let U=!1;return h.addEventListener("abort",function(){var Y,fe;const me=y.req.message[Symbol.asyncIterator]();U||(Y=me.throw)===null||Y===void 0||Y.call(me,this.reason).catch(()=>{}),(fe=me.return)===null||fe===void 0||fe.call(me).catch(()=>{})}),c(P).then(Y=>Object.assign(Object.assign({},Y),{message:{[Symbol.asyncIterator](){const fe=Y.message[Symbol.asyncIterator]();return{next(){return fe.next().then(me=>(me.done==!0&&(U=!0,E()),me),b)}}}}}),b)}function sS(y){const{signal:c,cleanup:h}=VI(y.timeoutMs),b=WI(y.signal,c);return[b.signal,function(P){const U=u.from(c.aborted?X1(c):P);return b.abort(U),h(),Promise.reject(U)},function(){h(),b.abort()}]}function Mx(){try{new Headers}catch{throw new Error("connect-web requires the fetch API. Are you running on an old version of Node.js? Node.js is not supported in Connect for Web - please stay tuned for Connect for Node.")}}function Ys(y,c){const h=Dx(y);if(h)throw c.forEach((b,E)=>{h.metadata.append(E,b)}),h}function $x(y,c,h,b){const E=new Headers(h??{});return E.set(qI,y?KI:JI),E.set(XI,"1"),E.set(ZI,"connect-es/1.4.0"),c!==void 0&&E.set(GI,`${c}m`),E}function tl(y){switch(y){case 400:return o.Internal;case 401:return o.Unauthenticated;case 403:return o.PermissionDenied;case 404:return o.Unimplemented;case 429:return o.Unavailable;case 502:return o.Unavailable;case 503:return o.Unavailable;case 504:return o.Unavailable;default:return o.Unknown}}function Fx(y,c){var h;if(y>=200&&y<300){const b=Dx(c);if(b)throw b;return{foundStatus:c.has(pi)}}throw new u(decodeURIComponent((h=c.get(ai))!==null&&h!==void 0?h:`HTTP ${y}`),tl(y),c)}var zd=function(y){return this instanceof zd?(this.v=y,this):new zd(y)},jd=function(y,c,h){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var b=h.apply(y,c||[]),E,P=[];return E={},Y("next"),Y("throw"),Y("return",U),E[Symbol.asyncIterator]=function(){return this},E;function U(nt){return function(Jt){return Promise.resolve(Jt).then(nt,St)}}function Y(nt,Jt){b[nt]&&(E[nt]=function(Cn){return new Promise(function(xn,lr){P.push([nt,Cn,xn,lr])>1||fe(nt,Cn)})},Jt&&(E[nt]=Jt(E[nt])))}function fe(nt,Jt){try{me(b[nt](Jt))}catch(Cn){mt(P[0][3],Cn)}}function me(nt){nt.value instanceof zd?Promise.resolve(nt.value.v).then(Pe,St):mt(P[0][2],nt)}function Pe(nt){fe("next",nt)}function St(nt){fe("throw",nt)}function mt(nt,Jt){nt(Jt),P.shift(),P.length&&fe(P[0][0],P[0][1])}};function J1(y){var c;Mx();const h=(c=y.useBinaryFormat)!==null&&c!==void 0?c:!0;return{async unary(b,E,P,U,Y,fe,me){var Pe;const{serialize:St,parse:mt}=Ro(E,h,y.jsonOptions,y.binaryOptions);return U=U===void 0?y.defaultTimeoutMs:U<=0?void 0:U,await Px({interceptors:y.interceptors,signal:P,timeoutMs:U,req:{stream:!1,service:b,method:E,url:$a(y.baseUrl,b,E),init:{method:"POST",credentials:(Pe=y.credentials)!==null&&Pe!==void 0?Pe:"same-origin",redirect:"error",mode:"cors"},header:$x(h,U,Y),contextValues:me??Rx(),message:fe},next:async nt=>{var Jt;const xn=await((Jt=y.fetch)!==null&&Jt!==void 0?Jt:globalThis.fetch)(nt.url,Object.assign(Object.assign({},nt.init),{headers:nt.header,signal:nt.signal,body:Z1(0,St(nt.message))}));if(Fx(xn.status,xn.headers),!xn.body)throw"missing response body";const lr=KO(xn.body).getReader();let Kr,pr;for(;;){const Wr=await lr.read();if(Wr.done)break;const{flags:Jr,data:ci}=Wr.value;if(Jr===tS){if(Kr!==void 0)throw"extra trailer";Kr=Ix(ci);continue}if(pr!==void 0)throw"extra message";pr=mt(ci)}if(Kr===void 0)throw"missing trailer";if(Ys(Kr,xn.headers),pr===void 0)throw"missing message";return{stream:!1,service:b,method:E,header:xn.headers,message:pr,trailer:Kr}}})},async stream(b,E,P,U,Y,fe,me){var Pe;const{serialize:St,parse:mt}=Ro(E,h,y.jsonOptions,y.binaryOptions);function nt(Cn,xn,lr,Kr){return jd(this,arguments,function*(){const Wr=KO(Cn).getReader();if(xn){if(!(yield zd(Wr.read())).done)throw"extra data for trailers-only";return yield zd(void 0)}let Jr=!1;for(;;){const ci=yield zd(Wr.read());if(ci.done)break;const{flags:Jd,data:ps}=ci.value;if((Jd&tS)===tS){if(Jr)throw"extra trailer";Jr=!0;const Xl=Ix(ps);Ys(Xl,Kr),Xl.forEach((z6,Ik)=>lr.set(Ik,z6));continue}if(Jr)throw"extra message";yield yield zd(mt(ps))}if(!Jr)throw"missing trailer"})}async function Jt(Cn){if(E.kind!=pa.ServerStreaming)throw"The fetch API does not support streaming request bodies";const xn=await Cn[Symbol.asyncIterator]().next();if(xn.done==!0)throw"missing request message";return Z1(0,St(xn.value))}return U=U===void 0?y.defaultTimeoutMs:U<=0?void 0:U,Lx({interceptors:y.interceptors,signal:P,timeoutMs:U,req:{stream:!0,service:b,method:E,url:$a(y.baseUrl,b,E),init:{method:"POST",credentials:(Pe=y.credentials)!==null&&Pe!==void 0?Pe:"same-origin",redirect:"error",mode:"cors"},header:$x(h,U,Y),contextValues:me??Rx(),message:fe},next:async Cn=>{var xn;const Kr=await((xn=y.fetch)!==null&&xn!==void 0?xn:globalThis.fetch)(Cn.url,Object.assign(Object.assign({},Cn.init),{headers:Cn.header,signal:Cn.signal,body:await Jt(Cn.message)})),{foundStatus:pr}=Fx(Kr.status,Kr.headers);if(!Kr.body)throw"missing response body";const Wr=new Headers;return Object.assign(Object.assign({},Cn),{header:Kr.headers,trailer:Wr,message:nt(Kr.body,pr,Wr,Kr.headers)})}})}}}const Gn=je.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"}]),si=je.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"}]),Hd=je.makeMessageType("yorkie.v1.Snapshot",()=>[{no:1,name:"root",kind:"message",T:nl},{no:2,name:"presences",kind:"map",K:9,V:{kind:"message",T:sb}}]),jl=je.makeMessageType("yorkie.v1.ChangePack",()=>[{no:1,name:"document_key",kind:"scalar",T:9},{no:2,name:"checkpoint",kind:"message",T:Wc},{no:3,name:"snapshot",kind:"scalar",T:12},{no:4,name:"changes",kind:"message",T:Bx,repeated:!0},{no:5,name:"min_synced_ticket",kind:"message",T:Tn},{no:6,name:"is_removed",kind:"scalar",T:8}]),Bx=je.makeMessageType("yorkie.v1.Change",()=>[{no:1,name:"id",kind:"message",T:Lp},{no:2,name:"message",kind:"scalar",T:9},{no:3,name:"operations",kind:"message",T:oS,repeated:!0},{no:4,name:"presence_change",kind:"message",T:pS}]),Lp=je.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}]),oS=je.makeMessageType("yorkie.v1.Operation",()=>[{no:1,name:"set",kind:"message",T:Ux,oneof:"body"},{no:2,name:"add",kind:"message",T:zx,oneof:"body"},{no:3,name:"move",kind:"message",T:lS,oneof:"body"},{no:4,name:"remove",kind:"message",T:Lm,oneof:"body"},{no:5,name:"edit",kind:"message",T:lh,oneof:"body"},{no:6,name:"select",kind:"message",T:e6,oneof:"body"},{no:7,name:"style",kind:"message",T:uS,oneof:"body"},{no:8,name:"increase",kind:"message",T:cS,oneof:"body"},{no:9,name:"tree_edit",kind:"message",T:eb,oneof:"body"},{no:10,name:"tree_style",kind:"message",T:tb,oneof:"body"}]),Ux=je.makeMessageType("yorkie.v1.Operation.Set",()=>[{no:1,name:"parent_created_at",kind:"message",T:Tn},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"value",kind:"message",T:Hu},{no:4,name:"executed_at",kind:"message",T:Tn}],{localName:"Operation_Set"}),zx=je.makeMessageType("yorkie.v1.Operation.Add",()=>[{no:1,name:"parent_created_at",kind:"message",T:Tn},{no:2,name:"prev_created_at",kind:"message",T:Tn},{no:3,name:"value",kind:"message",T:Hu},{no:4,name:"executed_at",kind:"message",T:Tn}],{localName:"Operation_Add"}),lS=je.makeMessageType("yorkie.v1.Operation.Move",()=>[{no:1,name:"parent_created_at",kind:"message",T:Tn},{no:2,name:"prev_created_at",kind:"message",T:Tn},{no:3,name:"created_at",kind:"message",T:Tn},{no:4,name:"executed_at",kind:"message",T:Tn}],{localName:"Operation_Move"}),Lm=je.makeMessageType("yorkie.v1.Operation.Remove",()=>[{no:1,name:"parent_created_at",kind:"message",T:Tn},{no:2,name:"created_at",kind:"message",T:Tn},{no:3,name:"executed_at",kind:"message",T:Tn}],{localName:"Operation_Remove"}),lh=je.makeMessageType("yorkie.v1.Operation.Edit",()=>[{no:1,name:"parent_created_at",kind:"message",T:Tn},{no:2,name:"from",kind:"message",T:Wu},{no:3,name:"to",kind:"message",T:Wu},{no:4,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:Tn}},{no:5,name:"content",kind:"scalar",T:9},{no:6,name:"executed_at",kind:"message",T:Tn},{no:7,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}}],{localName:"Operation_Edit"}),e6=je.makeMessageType("yorkie.v1.Operation.Select",()=>[{no:1,name:"parent_created_at",kind:"message",T:Tn},{no:2,name:"from",kind:"message",T:Wu},{no:3,name:"to",kind:"message",T:Wu},{no:4,name:"executed_at",kind:"message",T:Tn}],{localName:"Operation_Select"}),uS=je.makeMessageType("yorkie.v1.Operation.Style",()=>[{no:1,name:"parent_created_at",kind:"message",T:Tn},{no:2,name:"from",kind:"message",T:Wu},{no:3,name:"to",kind:"message",T:Wu},{no:4,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:5,name:"executed_at",kind:"message",T:Tn},{no:6,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:Tn}}],{localName:"Operation_Style"}),cS=je.makeMessageType("yorkie.v1.Operation.Increase",()=>[{no:1,name:"parent_created_at",kind:"message",T:Tn},{no:2,name:"value",kind:"message",T:Hu},{no:3,name:"executed_at",kind:"message",T:Tn}],{localName:"Operation_Increase"}),eb=je.makeMessageType("yorkie.v1.Operation.TreeEdit",()=>[{no:1,name:"parent_created_at",kind:"message",T:Tn},{no:2,name:"from",kind:"message",T:Qu},{no:3,name:"to",kind:"message",T:Qu},{no:4,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:Tn}},{no:5,name:"contents",kind:"message",T:Qx,repeated:!0},{no:7,name:"split_level",kind:"scalar",T:5},{no:6,name:"executed_at",kind:"message",T:Tn}],{localName:"Operation_TreeEdit"}),tb=je.makeMessageType("yorkie.v1.Operation.TreeStyle",()=>[{no:1,name:"parent_created_at",kind:"message",T:Tn},{no:2,name:"from",kind:"message",T:Qu},{no:3,name:"to",kind:"message",T:Qu},{no:4,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:5,name:"executed_at",kind:"message",T:Tn},{no:6,name:"attributes_to_remove",kind:"scalar",T:9,repeated:!0},{no:7,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:Tn}}],{localName:"Operation_TreeStyle"}),Hu=je.makeMessageType("yorkie.v1.JSONElementSimple",()=>[{no:1,name:"created_at",kind:"message",T:Tn},{no:2,name:"moved_at",kind:"message",T:Tn},{no:3,name:"removed_at",kind:"message",T:Tn},{no:4,name:"type",kind:"enum",T:je.getEnumType(Gn)},{no:5,name:"value",kind:"scalar",T:12}]),nl=je.makeMessageType("yorkie.v1.JSONElement",()=>[{no:1,name:"json_object",kind:"message",T:nb,oneof:"body"},{no:2,name:"json_array",kind:"message",T:rb,oneof:"body"},{no:3,name:"primitive",kind:"message",T:jx,oneof:"body"},{no:5,name:"text",kind:"message",T:dS,oneof:"body"},{no:6,name:"counter",kind:"message",T:Zs,oneof:"body"},{no:7,name:"tree",kind:"message",T:ib,oneof:"body"}]),nb=je.makeMessageType("yorkie.v1.JSONElement.JSONObject",()=>[{no:1,name:"nodes",kind:"message",T:Mp,repeated:!0},{no:2,name:"created_at",kind:"message",T:Tn},{no:3,name:"moved_at",kind:"message",T:Tn},{no:4,name:"removed_at",kind:"message",T:Tn}],{localName:"JSONElement_JSONObject"}),rb=je.makeMessageType("yorkie.v1.JSONElement.JSONArray",()=>[{no:1,name:"nodes",kind:"message",T:ab,repeated:!0},{no:2,name:"created_at",kind:"message",T:Tn},{no:3,name:"moved_at",kind:"message",T:Tn},{no:4,name:"removed_at",kind:"message",T:Tn}],{localName:"JSONElement_JSONArray"}),jx=je.makeMessageType("yorkie.v1.JSONElement.Primitive",()=>[{no:1,name:"type",kind:"enum",T:je.getEnumType(Gn)},{no:2,name:"value",kind:"scalar",T:12},{no:3,name:"created_at",kind:"message",T:Tn},{no:4,name:"moved_at",kind:"message",T:Tn},{no:5,name:"removed_at",kind:"message",T:Tn}],{localName:"JSONElement_Primitive"}),dS=je.makeMessageType("yorkie.v1.JSONElement.Text",()=>[{no:1,name:"nodes",kind:"message",T:Hx,repeated:!0},{no:2,name:"created_at",kind:"message",T:Tn},{no:3,name:"moved_at",kind:"message",T:Tn},{no:4,name:"removed_at",kind:"message",T:Tn}],{localName:"JSONElement_Text"}),Zs=je.makeMessageType("yorkie.v1.JSONElement.Counter",()=>[{no:1,name:"type",kind:"enum",T:je.getEnumType(Gn)},{no:2,name:"value",kind:"scalar",T:12},{no:3,name:"created_at",kind:"message",T:Tn},{no:4,name:"moved_at",kind:"message",T:Tn},{no:5,name:"removed_at",kind:"message",T:Tn}],{localName:"JSONElement_Counter"}),ib=je.makeMessageType("yorkie.v1.JSONElement.Tree",()=>[{no:1,name:"nodes",kind:"message",T:hS,repeated:!0},{no:2,name:"created_at",kind:"message",T:Tn},{no:3,name:"moved_at",kind:"message",T:Tn},{no:4,name:"removed_at",kind:"message",T:Tn}],{localName:"JSONElement_Tree"}),Mp=je.makeMessageType("yorkie.v1.RHTNode",()=>[{no:1,name:"key",kind:"scalar",T:9},{no:2,name:"element",kind:"message",T:nl}]),ab=je.makeMessageType("yorkie.v1.RGANode",()=>[{no:1,name:"next",kind:"message",T:ab},{no:2,name:"element",kind:"message",T:nl}]),Mm=je.makeMessageType("yorkie.v1.NodeAttr",()=>[{no:1,name:"value",kind:"scalar",T:9},{no:2,name:"updated_at",kind:"message",T:Tn},{no:3,name:"is_removed",kind:"scalar",T:8}]),Hx=je.makeMessageType("yorkie.v1.TextNode",()=>[{no:1,name:"id",kind:"message",T:fS},{no:2,name:"value",kind:"scalar",T:9},{no:3,name:"removed_at",kind:"message",T:Tn},{no:4,name:"ins_prev_id",kind:"message",T:fS},{no:5,name:"attributes",kind:"map",K:9,V:{kind:"message",T:Mm}}]),fS=je.makeMessageType("yorkie.v1.TextNodeID",()=>[{no:1,name:"created_at",kind:"message",T:Tn},{no:2,name:"offset",kind:"scalar",T:5}]),hS=je.makeMessageType("yorkie.v1.TreeNode",()=>[{no:1,name:"id",kind:"message",T:$p},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"value",kind:"scalar",T:9},{no:4,name:"removed_at",kind:"message",T:Tn},{no:5,name:"ins_prev_id",kind:"message",T:$p},{no:6,name:"ins_next_id",kind:"message",T:$p},{no:7,name:"depth",kind:"scalar",T:5},{no:8,name:"attributes",kind:"map",K:9,V:{kind:"message",T:Mm}}]),Qx=je.makeMessageType("yorkie.v1.TreeNodes",()=>[{no:1,name:"content",kind:"message",T:hS,repeated:!0}]),$p=je.makeMessageType("yorkie.v1.TreeNodeID",()=>[{no:1,name:"created_at",kind:"message",T:Tn},{no:2,name:"offset",kind:"scalar",T:5}]),Qu=je.makeMessageType("yorkie.v1.TreePos",()=>[{no:1,name:"parent_id",kind:"message",T:$p},{no:2,name:"left_sibling_id",kind:"message",T:$p}]);je.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:wn}]),je.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:wn},{no:9,name:"updated_at",kind:"message",T:wn}]),je.makeMessageType("yorkie.v1.UpdatableProjectFields",()=>[{no:1,name:"name",kind:"message",T:Gs},{no:2,name:"auth_webhook_url",kind:"message",T:Gs},{no:3,name:"auth_webhook_methods",kind:"message",T:t6},{no:4,name:"client_deactivate_threshold",kind:"message",T:Gs}]);const t6=je.makeMessageType("yorkie.v1.UpdatableProjectFields.AuthWebhookMethods",()=>[{no:1,name:"methods",kind:"scalar",T:9,repeated:!0}],{localName:"UpdatableProjectFields_AuthWebhookMethods"});je.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:wn},{no:5,name:"accessed_at",kind:"message",T:wn},{no:6,name:"updated_at",kind:"message",T:wn}]);const pS=je.makeMessageType("yorkie.v1.PresenceChange",()=>[{no:1,name:"type",kind:"enum",T:je.getEnumType(uh)},{no:2,name:"presence",kind:"message",T:sb}]),uh=je.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"}]),sb=je.makeMessageType("yorkie.v1.Presence",()=>[{no:1,name:"data",kind:"map",K:9,V:{kind:"scalar",T:9}}]),Wc=je.makeMessageType("yorkie.v1.Checkpoint",()=>[{no:1,name:"server_seq",kind:"scalar",T:3,L:1},{no:2,name:"client_seq",kind:"scalar",T:13}]),Wu=je.makeMessageType("yorkie.v1.TextNodePos",()=>[{no:1,name:"created_at",kind:"message",T:Tn},{no:2,name:"offset",kind:"scalar",T:5},{no:3,name:"relative_offset",kind:"scalar",T:5}]),Tn=je.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}]),n6=je.makeMessageType("yorkie.v1.DocEventBody",()=>[{no:1,name:"topic",kind:"scalar",T:9},{no:2,name:"payload",kind:"scalar",T:12}]),r6=je.makeMessageType("yorkie.v1.DocEvent",()=>[{no:1,name:"type",kind:"enum",T:je.getEnumType(si)},{no:2,name:"publisher",kind:"scalar",T:9},{no:3,name:"body",kind:"message",T:n6}]),Fp=je.makeMessageType("yorkie.v1.ActivateClientRequest",()=>[{no:1,name:"client_key",kind:"scalar",T:9}]),Hl=je.makeMessageType("yorkie.v1.ActivateClientResponse",()=>[{no:1,name:"client_id",kind:"scalar",T:9}]),Wx=je.makeMessageType("yorkie.v1.DeactivateClientRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9}]),i6=je.makeMessageType("yorkie.v1.DeactivateClientResponse",[]),a6=je.makeMessageType("yorkie.v1.AttachDocumentRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"change_pack",kind:"message",T:jl}]),s6=je.makeMessageType("yorkie.v1.AttachDocumentResponse",()=>[{no:1,name:"document_id",kind:"scalar",T:9},{no:2,name:"change_pack",kind:"message",T:jl}]),o6=je.makeMessageType("yorkie.v1.DetachDocumentRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"change_pack",kind:"message",T:jl},{no:4,name:"remove_if_not_attached",kind:"scalar",T:8}]),l6=je.makeMessageType("yorkie.v1.DetachDocumentResponse",()=>[{no:2,name:"change_pack",kind:"message",T:jl}]),Bp=je.makeMessageType("yorkie.v1.WatchDocumentRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9}]),Me=je.makeMessageType("yorkie.v1.WatchDocumentResponse",()=>[{no:1,name:"initialization",kind:"message",T:ut,oneof:"body"},{no:2,name:"event",kind:"message",T:r6,oneof:"body"}]),ut=je.makeMessageType("yorkie.v1.WatchDocumentResponse.Initialization",()=>[{no:1,name:"client_ids",kind:"scalar",T:9,repeated:!0}],{localName:"WatchDocumentResponse_Initialization"}),Ze=je.makeMessageType("yorkie.v1.RemoveDocumentRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"change_pack",kind:"message",T:jl}]),on=je.makeMessageType("yorkie.v1.RemoveDocumentResponse",()=>[{no:1,name:"change_pack",kind:"message",T:jl}]),Wn=je.makeMessageType("yorkie.v1.PushPullChangesRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"change_pack",kind:"message",T:jl},{no:4,name:"push_only",kind:"scalar",T:8}]),$r=je.makeMessageType("yorkie.v1.PushPullChangesResponse",()=>[{no:1,name:"change_pack",kind:"message",T:jl}]),xa=je.makeMessageType("yorkie.v1.BroadcastRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"topic",kind:"scalar",T:9},{no:4,name:"payload",kind:"scalar",T:12}]),oi=je.makeMessageType("yorkie.v1.BroadcastResponse",[]),mS={typeName:"yorkie.v1.YorkieService",methods:{activateClient:{name:"ActivateClient",I:Fp,O:Hl,kind:pa.Unary},deactivateClient:{name:"DeactivateClient",I:Wx,O:i6,kind:pa.Unary},attachDocument:{name:"AttachDocument",I:a6,O:s6,kind:pa.Unary},detachDocument:{name:"DetachDocument",I:o6,O:l6,kind:pa.Unary},removeDocument:{name:"RemoveDocument",I:Ze,O:on,kind:pa.Unary},pushPullChanges:{name:"PushPullChanges",I:Wn,O:$r,kind:pa.Unary},watchDocument:{name:"WatchDocument",I:Bp,O:Me,kind:pa.ServerStreaming},broadcast:{name:"Broadcast",I:xa,O:oi,kind:pa.Unary}}};/** +`,o=a+s.length;n.update((l,u)=>{l.content.edit(i,a,s),u.set({selection:l.content.indexRangeToPosRange([o,o])})}),t.dispatch({changes:{from:i,to:a,insert:s},selection:{anchor:o}})},ZJe=(e,t)=>en.domEventHandlers({paste(n,r){var i,a;!((i=n.clipboardData)!=null&&i.files)||((a=n.clipboardData)==null?void 0:a.files.length)==0||RJ(n.clipboardData.files,e).then(s=>s.forEach(o=>IJ(o,r,t)))},drop(n,r){var i,a;!((i=n.dataTransfer)!=null&&i.files)||((a=n.dataTransfer)==null?void 0:a.files.length)==0||RJ(n.dataTransfer.files,e).then(s=>s.forEach(o=>IJ(o,r,t)))}});class XJe{constructor(t,n){this.left=t,this.right=n}}const Vg=(e,t)=>new XJe(e,t),KJe=(e,t)=>e.forEach(n=>t(n.left,n.right)),Gf=typeof document<"u"?document:{},JJe=e=>Gf.createElement(e),eet=()=>Gf.createDocumentFragment(),tet=e=>Gf.createTextNode(e);typeof DOMParser<"u"&&new DOMParser;const net=(e,t)=>(KJe(t,(n,r)=>{r===!1?e.removeAttribute(n):r===!0?e.setAttribute(n,""):e.setAttribute(n,r)}),e),ret=e=>{const t=eet();for(let n=0;n(Gpe(e,ret(t)),e),g_=(e,t=[],n=[])=>iet(net(JJe(e),t),n),KA=tet,Gpe=(e,t)=>e.appendChild(t);Gf.ELEMENT_NODE;Gf.TEXT_NODE;Gf.CDATA_SECTION_NODE;Gf.COMMENT_NODE;Gf.DOCUMENT_NODE;Gf.DOCUMENT_TYPE_NODE;Gf.DOCUMENT_FRAGMENT_NODE;const aet="yorkie-intelligence-header",yC="yorkie-intelligence-footer";class NJ extends Ld{constructor(n,r,i){super();Ls(this,"id");Ls(this,"content");Ls(this,"selectionRange");this.id=n,this.content=r,this.selectionRange=i}toDOM(){return g_("span",[Vg("id",this.id),Vg("content",this.content),Vg("style","position: relaitve;")])}eq(n){return n.selectionRange===this.selectionRange}compare(n){return n.selectionRange===this.selectionRange}updateDOM(){return!1}get estimatedHeight(){return-1}ignoreEvent(){return!0}}class set{constructor(){Ls(this,"decorations");this.decorations=Cr.of([])}update(t){const n=[],r=t.state.selection.main;if((r==null?void 0:r.from)!==(r==null?void 0:r.to)&&r){const a=t.state.sliceDoc(r.from,r.to);n.push({from:r.from,to:r.from,value:vn.widget({side:1,block:!1,widget:new NJ(aet,a,r)})}),n.push({from:r.to,to:r.to,value:vn.widget({side:1,block:!1,widget:new NJ(yC,a,r)})})}this.decorations=vn.set(n,!0)}}const oet=fa.fromClass(set,{decorations:e=>e.decorations});var $L={exports:{}};(function(e,t){var n={};(function(r,i){i(t)})(pf,function(r){var i=Object.defineProperty,a=(v,c,h)=>c in v?i(v,c,{enumerable:!0,configurable:!0,writable:!0,value:h}):v[c]=h,s=(v,c,h)=>(a(v,typeof c!="symbol"?c+"":c,h),h),o;(function(v){v[v.Canceled=1]="Canceled",v[v.Unknown=2]="Unknown",v[v.InvalidArgument=3]="InvalidArgument",v[v.DeadlineExceeded=4]="DeadlineExceeded",v[v.NotFound=5]="NotFound",v[v.AlreadyExists=6]="AlreadyExists",v[v.PermissionDenied=7]="PermissionDenied",v[v.ResourceExhausted=8]="ResourceExhausted",v[v.FailedPrecondition=9]="FailedPrecondition",v[v.Aborted=10]="Aborted",v[v.OutOfRange=11]="OutOfRange",v[v.Unimplemented=12]="Unimplemented",v[v.Internal=13]="Internal",v[v.Unavailable=14]="Unavailable",v[v.DataLoss=15]="DataLoss",v[v.Unauthenticated=16]="Unauthenticated"})(o||(o={}));function l(v){const c=o[v];return typeof c!="string"?v.toString():c[0].toLowerCase()+c.substring(1).replace(/[A-Z]/g,h=>"_"+h.toLowerCase())}class u extends Error{constructor(c,h=o.Unknown,b,E,D){super(d(c,h)),this.name="ConnectError",Object.setPrototypeOf(this,new.target.prototype),this.rawMessage=c,this.code=h,this.metadata=new Headers(b??{}),this.details=E??[],this.cause=D}static from(c,h=o.Unknown){return c instanceof u?c:c instanceof Error?c.name=="AbortError"?new u(c.message,o.Canceled):new u(c.message,h,void 0,void 0,c):new u(String(c),h,void 0,void 0,c)}static[Symbol.hasInstance](c){return c instanceof Error?Object.getPrototypeOf(c)===u.prototype?!0:c.name==="ConnectError"&&"code"in c&&typeof c.code=="number"&&"metadata"in c&&"details"in c&&Array.isArray(c.details)&&"rawMessage"in c&&typeof c.rawMessage=="string"&&"cause"in c:!1}findDetails(c){const h="typeName"in c?{findMessage:E=>E===c.typeName?c:void 0}:c,b=[];for(const E of this.details){if("getType"in E){h.findMessage(E.getType().typeName)&&b.push(E);continue}const D=h.findMessage(E.type);if(D)try{b.push(D.fromBinary(E.value))}catch{}}return b}}function d(v,c){return v.length?`[${l(c)}] ${v}`:`[${l(c)}]`}function f(v,c){if(!v)throw new Error(c)}const p=34028234663852886e22,g=-34028234663852886e22,O=4294967295,S=2147483647,T=-2147483648;function w(v){if(typeof v!="number")throw new Error("invalid int 32: "+typeof v);if(!Number.isInteger(v)||v>S||vO||v<0)throw new Error("invalid uint 32: "+v)}function k(v){if(typeof v!="number")throw new Error("invalid float 32: "+typeof v);if(Number.isFinite(v)&&(v>p||v({no:E.no,name:E.name,localName:v[E.no]})))}function P(v,c,h){const b=Object.create(null),E=Object.create(null),D=[];for(const U of c){const Y=j(U);D.push(Y),b[U.name]=Y,E[U.no]=Y}return{typeName:v,values:D,findName(U){return b[U]},findNumber(U){return E[U]}}}function L(v,c,h){const b={};for(const E of c){const D=j(E);b[D.localName]=D.no,b[D.no]=D.localName}return N(b,v,c),b}function j(v){return"localName"in v?v:Object.assign(Object.assign({},v),{localName:v.name})}class B{equals(c){return this.getType().runtime.util.equals(this.getType(),this,c)}clone(){return this.getType().runtime.util.clone(this)}fromBinary(c,h){const b=this.getType(),E=b.runtime.bin,D=E.makeReadOptions(h);return E.readMessage(this,D.readerFactory(c),c.byteLength,D),this}fromJson(c,h){const b=this.getType(),E=b.runtime.json,D=E.makeReadOptions(h);return E.readMessage(b,c,D,this),this}fromJsonString(c,h){let b;try{b=JSON.parse(c)}catch(E){throw new Error(`cannot decode ${this.getType().typeName} from JSON: ${E instanceof Error?E.message:String(E)}`)}return this.fromJson(b,h)}toBinary(c){const h=this.getType(),b=h.runtime.bin,E=b.makeWriteOptions(c),D=E.writerFactory();return b.writeMessage(this,D,E),D.finish()}toJson(c){const h=this.getType(),b=h.runtime.json,E=b.makeWriteOptions(c);return b.writeMessage(this,E)}toJsonString(c){var h;const b=this.toJson(c);return JSON.stringify(b,null,(h=c==null?void 0:c.prettySpaces)!==null&&h!==void 0?h:0)}toJSON(){return this.toJson({emitDefaultValues:!0})}getType(){return Object.getPrototypeOf(this).constructor}}function V(v,c,h,b){var E;const D=(E=b==null?void 0:b.localName)!==null&&E!==void 0?E:c.substring(c.lastIndexOf(".")+1),U={[D]:function(Y){v.util.initFields(this),v.util.initPartial(Y,this)}}[D];return Object.setPrototypeOf(U.prototype,new B),Object.assign(U,{runtime:v,typeName:c,fields:v.util.newFieldList(h),fromBinary(Y,fe){return new U().fromBinary(Y,fe)},fromJson(Y,fe){return new U().fromJson(Y,fe)},fromJsonString(Y,fe){return new U().fromJsonString(Y,fe)},equals(Y,fe){return v.util.equals(U,Y,fe)}}),U}function W(){let v=0,c=0;for(let b=0;b<28;b+=7){let E=this.buf[this.pos++];if(v|=(E&127)<>4,!(h&128))return this.assertBounds(),[v,c];for(let b=3;b<=31;b+=7){let E=this.buf[this.pos++];if(c|=(E&127)<>>D,Y=!(!(U>>>7)&&c==0),fe=(Y?U|128:U)&255;if(h.push(fe),!Y)return}const b=v>>>28&15|(c&7)<<4,E=!!(c>>3);if(h.push((E?b|128:b)&255),!!E){for(let D=3;D<31;D=D+7){const U=c>>>D,Y=!!(U>>>7),fe=(Y?U|128:U)&255;if(h.push(fe),!Y)return}h.push(c>>>31&1)}}const ee=4294967296;function q(v){const c=v[0]==="-";c&&(v=v.slice(1));const h=1e6;let b=0,E=0;function D(U,Y){const fe=Number(v.slice(U,Y));E*=h,b=b*h+fe,b>=ee&&(E=E+(b/ee|0),b=b%ee)}return D(-24,-18),D(-18,-12),D(-12,-6),D(-6),c?H(b,E):ie(b,E)}function ne(v,c){let h=ie(v,c);const b=h.hi&2147483648;b&&(h=H(h.lo,h.hi));const E=K(h.lo,h.hi);return b?"-"+E:E}function K(v,c){if({lo:v,hi:c}=G(v,c),c<=2097151)return String(ee*c+v);const h=v&16777215,b=(v>>>24|c<<8)&16777215,E=c>>16&65535;let D=h+b*6777216+E*6710656,U=b+E*8147497,Y=E*2;const fe=1e7;return D>=fe&&(U+=Math.floor(D/fe),D%=fe),U>=fe&&(Y+=Math.floor(U/fe),U%=fe),Y.toString()+Re(U)+Re(D)}function G(v,c){return{lo:v>>>0,hi:c>>>0}}function ie(v,c){return{lo:v|0,hi:c|0}}function H(v,c){return c=~c,v?v=~v+1:c+=1,ie(v,c)}const Re=v=>{const c=String(v);return"0000000".slice(c.length)+c};function Se(v,c){if(v>=0){for(;v>127;)c.push(v&127|128),v=v>>>7;c.push(v)}else{for(let h=0;h<9;h++)c.push(v&127|128),v=v>>7;c.push(1)}}function Z(){let v=this.buf[this.pos++],c=v&127;if(!(v&128))return this.assertBounds(),c;if(v=this.buf[this.pos++],c|=(v&127)<<7,!(v&128))return this.assertBounds(),c;if(v=this.buf[this.pos++],c|=(v&127)<<14,!(v&128))return this.assertBounds(),c;if(v=this.buf[this.pos++],c|=(v&127)<<21,!(v&128))return this.assertBounds(),c;v=this.buf[this.pos++],c|=(v&15)<<28;for(let h=5;v&128&&h<10;h++)v=this.buf[this.pos++];if(v&128)throw new Error("invalid varint");return this.assertBounds(),c>>>0}function ke(){const v=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof v.getBigInt64=="function"&&typeof v.getBigUint64=="function"&&typeof v.setBigInt64=="function"&&typeof v.setBigUint64=="function"&&(typeof process!="object"||typeof n!="object"||n.BUF_BIGINT_DISABLE!=="1")){const E=BigInt("-9223372036854775808"),D=BigInt("9223372036854775807"),U=BigInt("0"),Y=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(fe){const me=typeof fe=="bigint"?fe:BigInt(fe);if(me>D||meY||mef(/^-?[0-9]+$/.test(E),`int64 invalid: ${E}`),b=E=>f(/^[0-9]+$/.test(E),`uint64 invalid: ${E}`);return{zero:"0",supported:!1,parse(E){return typeof E!="string"&&(E=E.toString()),h(E),E},uParse(E){return typeof E!="string"&&(E=E.toString()),b(E),E},enc(E){return typeof E!="string"&&(E=E.toString()),h(E),q(E)},uEnc(E){return typeof E!="string"&&(E=E.toString()),b(E),q(E)},dec(E,D){return ne(E,D)},uDec(E,D){return K(E,D)}}}const $e=ke();var ae;(function(v){v[v.DOUBLE=1]="DOUBLE",v[v.FLOAT=2]="FLOAT",v[v.INT64=3]="INT64",v[v.UINT64=4]="UINT64",v[v.INT32=5]="INT32",v[v.FIXED64=6]="FIXED64",v[v.FIXED32=7]="FIXED32",v[v.BOOL=8]="BOOL",v[v.STRING=9]="STRING",v[v.BYTES=12]="BYTES",v[v.UINT32=13]="UINT32",v[v.SFIXED32=15]="SFIXED32",v[v.SFIXED64=16]="SFIXED64",v[v.SINT32=17]="SINT32",v[v.SINT64=18]="SINT64"})(ae||(ae={}));var Xe;(function(v){v[v.BIGINT=0]="BIGINT",v[v.STRING=1]="STRING"})(Xe||(Xe={}));function We(v,c,h){if(c===h)return!0;if(v==ae.BYTES){if(!(c instanceof Uint8Array)||!(h instanceof Uint8Array)||c.length!==h.length)return!1;for(let b=0;b>>0)}raw(c){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(c),this}uint32(c){for(x(c);c>127;)this.buf.push(c&127|128),c=c>>>7;return this.buf.push(c),this}int32(c){return w(c),Se(c,this.buf),this}bool(c){return this.buf.push(c?1:0),this}bytes(c){return this.uint32(c.byteLength),this.raw(c)}string(c){let h=this.textEncoder.encode(c);return this.uint32(h.byteLength),this.raw(h)}float(c){k(c);let h=new Uint8Array(4);return new DataView(h.buffer).setFloat32(0,c,!0),this.raw(h)}double(c){let h=new Uint8Array(8);return new DataView(h.buffer).setFloat64(0,c,!0),this.raw(h)}fixed32(c){x(c);let h=new Uint8Array(4);return new DataView(h.buffer).setUint32(0,c,!0),this.raw(h)}sfixed32(c){w(c);let h=new Uint8Array(4);return new DataView(h.buffer).setInt32(0,c,!0),this.raw(h)}sint32(c){return w(c),c=(c<<1^c>>31)>>>0,Se(c,this.buf),this}sfixed64(c){let h=new Uint8Array(8),b=new DataView(h.buffer),E=$e.enc(c);return b.setInt32(0,E.lo,!0),b.setInt32(4,E.hi,!0),this.raw(h)}fixed64(c){let h=new Uint8Array(8),b=new DataView(h.buffer),E=$e.uEnc(c);return b.setInt32(0,E.lo,!0),b.setInt32(4,E.hi,!0),this.raw(h)}int64(c){let h=$e.enc(c);return re(h.lo,h.hi,this.buf),this}sint64(c){let h=$e.enc(c),b=h.hi>>31,E=h.lo<<1^b,D=(h.hi<<1|h.lo>>>31)^b;return re(E,D,this.buf),this}uint64(c){let h=$e.uEnc(c);return re(h.lo,h.hi,this.buf),this}}class jt{constructor(c,h){this.varint64=W,this.uint32=Z,this.buf=c,this.len=c.length,this.pos=0,this.view=new DataView(c.buffer,c.byteOffset,c.byteLength),this.textDecoder=h??new TextDecoder}tag(){let c=this.uint32(),h=c>>>3,b=c&7;if(h<=0||b<0||b>5)throw new Error("illegal tag: field no "+h+" wire type "+b);return[h,b]}skip(c,h){let b=this.pos;switch(c){case it.Varint:for(;this.buf[this.pos++]&128;);break;case it.Bit64:this.pos+=4;case it.Bit32:this.pos+=4;break;case it.LengthDelimited:let E=this.uint32();this.pos+=E;break;case it.StartGroup:for(;;){const[D,U]=this.tag();if(U===it.EndGroup){if(h!==void 0&&D!==h)throw new Error("invalid end group tag");break}this.skip(U,D)}break;default:throw new Error("cant skip wire type "+c)}return this.assertBounds(),this.buf.subarray(b,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let c=this.uint32();return c>>>1^-(c&1)}int64(){return $e.dec(...this.varint64())}uint64(){return $e.uDec(...this.varint64())}sint64(){let[c,h]=this.varint64(),b=-(c&1);return c=(c>>>1|(h&1)<<31)^b,h=h>>>1^b,$e.dec(c,h)}bool(){let[c,h]=this.varint64();return c!==0||h!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return $e.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return $e.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 c=this.uint32(),h=this.pos;return this.pos+=c,this.assertBounds(),this.buf.subarray(h,h+c)}string(){return this.textDecoder.decode(this.bytes())}}function ct(v,c,h,b){let E;return{typeName:c,extendee:h,get field(){if(!E){const D=typeof b=="function"?b():b;D.name=c.split(".").pop(),D.jsonName=`[${c}]`,E=v.util.newFieldList([D]).list()[0]}return E},runtime:v}}function Ot(v){const c=v.field.localName,h=Object.create(null);return h[c]=yt(v),[h,()=>h[c]]}function yt(v){const c=v.field;if(c.repeated)return[];if(c.default!==void 0)return c.default;switch(c.kind){case"enum":return c.T.values[0].no;case"scalar":return Ye(c.T,c.L);case"message":const h=c.T,b=new h;return h.fieldWrapper?h.fieldWrapper.unwrapField(b):b;case"map":throw"map fields are not allowed to be extensions"}}function Ut(v,c){if(!c.repeated&&(c.kind=="enum"||c.kind=="scalar")){for(let h=v.length-1;h>=0;--h)if(v[h].no==c.no)return[v[h]];return[]}return v.filter(h=>h.no===c.no)}let de="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),_e=[];for(let v=0;v>4,U=D,E=2;break;case 2:h[b++]=(U&15)<<4|(D&60)>>2,U=D,E=3;break;case 3:h[b++]=(U&3)<<6|D,E=0;break}}if(E==1)throw Error("invalid base64 string.");return h.subarray(0,b)},enc(v){let c="",h=0,b,E=0;for(let D=0;D>2],E=(b&3)<<4,h=1;break;case 1:c+=de[E|b>>4],E=(b&15)<<2,h=2;break;case 2:c+=de[E|b>>6],c+=de[b&63],h=0;break}return h&&(c+=de[E],c+="=",h==1&&(c+="=")),c}};function Ke(v,c,h){gt(c,v);const b=c.runtime.bin.makeReadOptions(h),E=Ut(v.getType().runtime.bin.listUnknownFields(v),c.field),[D,U]=Ot(c);for(const Y of E)c.runtime.bin.readField(D,b.readerFactory(Y.data),c.field,Y.wireType,b);return U()}function ut(v,c,h,b){gt(c,v);const E=c.runtime.bin.makeReadOptions(b),D=c.runtime.bin.makeWriteOptions(b);if(Je(v,c)){const me=v.getType().runtime.bin.listUnknownFields(v).filter(Pe=>Pe.no!=c.field.no);v.getType().runtime.bin.discardUnknownFields(v);for(const Pe of me)v.getType().runtime.bin.onUnknownField(v,Pe.no,Pe.wireType,Pe.data)}const U=D.writerFactory();let Y=c.field;!Y.opt&&!Y.repeated&&(Y.kind=="enum"||Y.kind=="scalar")&&(Y=Object.assign(Object.assign({},c.field),{opt:!0})),c.runtime.bin.writeField(Y,h,U,D);const fe=E.readerFactory(U.finish());for(;fe.posb.no==c.field.no)}function gt(v,c){f(v.extendee.typeName==c.getType().typeName,`extension ${v.typeName} can only be applied to message ${v.extendee.typeName}`)}function Jt(v,c){const h=v.localName;if(v.repeated)return c[h].length>0;if(v.oneof)return c[v.oneof.localName].case===h;switch(v.kind){case"enum":case"scalar":return v.opt||v.req?c[h]!==void 0:v.kind=="enum"?c[h]!==v.T.values[0].no:!xt(v.T,c[h]);case"message":return c[h]!==void 0;case"map":return Object.keys(c[h]).length>0}}function Fe(v,c){const h=v.localName,b=!v.opt&&!v.req;if(v.repeated)c[h]=[];else if(v.oneof)c[v.oneof.localName]={case:void 0};else switch(v.kind){case"map":c[h]={};break;case"enum":c[h]=b?v.T.values[0].no:void 0;break;case"scalar":c[h]=b?Ye(v.T,v.L):void 0;break;case"message":c[h]=void 0;break}}function we(v,c){if(v===null||typeof v!="object"||!Object.getOwnPropertyNames(B.prototype).every(b=>b in v&&typeof v[b]=="function"))return!1;const h=v.getType();return h===null||typeof h!="function"||!("typeName"in h)||typeof h.typeName!="string"?!1:c===void 0?!0:h.typeName==c.typeName}function be(v,c){return we(c)||!v.fieldWrapper?c:v.fieldWrapper.wrapField(c)}ae.DOUBLE,ae.FLOAT,ae.INT64,ae.UINT64,ae.INT32,ae.UINT32,ae.BOOL,ae.STRING,ae.BYTES;const xe={ignoreUnknownFields:!1},Ue={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function Ct(v){return v?Object.assign(Object.assign({},xe),v):xe}function qt(v){return v?Object.assign(Object.assign({},Ue),v):Ue}const tt=Symbol(),Wt=Symbol();function Ht(){return{makeReadOptions:Ct,makeWriteOptions:qt,readMessage(v,c,h,b){if(c==null||Array.isArray(c)||typeof c!="object")throw new Error(`cannot decode message ${v.typeName} from JSON: ${zt(c)}`);b=b??new v;const E=new Map,D=h.typeRegistry;for(const[U,Y]of Object.entries(c)){const fe=v.fields.findJsonName(U);if(fe){if(fe.oneof){if(Y===null&&fe.kind=="scalar")continue;const me=E.get(fe.oneof);if(me!==void 0)throw new Error(`cannot decode message ${v.typeName} from JSON: multiple keys for oneof "${fe.oneof.name}" present: "${me}", "${U}"`);E.set(fe.oneof,U)}Sn(b,Y,fe,h,v)}else{let me=!1;if(D!=null&&D.findExtension&&U.startsWith("[")&&U.endsWith("]")){const Pe=D.findExtension(U.substring(1,U.length-1));if(Pe&&Pe.extendee.typeName==v.typeName){me=!0;const[vt,ft]=Ot(Pe);Sn(vt,Y,Pe.field,h,Pe),ut(b,Pe,ft(),h)}}if(!me&&!h.ignoreUnknownFields)throw new Error(`cannot decode message ${v.typeName} from JSON: key "${U}" is unknown`)}}return b},writeMessage(v,c){const h=v.getType(),b={};let E;try{for(E of h.fields.byNumber()){if(!Jt(E,v)){if(E.req)throw"required field not set";if(!c.emitDefaultValues||!Yr(E))continue}const U=E.oneof?v[E.oneof.localName].value:v[E.localName],Y=Ni(E,U,c);Y!==void 0&&(b[c.useProtoFieldName?E.name:E.jsonName]=Y)}const D=c.typeRegistry;if(D!=null&&D.findExtensionFor)for(const U of h.runtime.bin.listUnknownFields(v)){const Y=D.findExtensionFor(h.typeName,U.no);if(Y&&Je(v,Y)){const fe=Ke(v,Y,c),me=Ni(Y.field,fe,c);me!==void 0&&(b[Y.field.jsonName]=me)}}}catch(D){const U=E?`cannot encode field ${h.typeName}.${E.name} to JSON`:`cannot encode message ${h.typeName} to JSON`,Y=D instanceof Error?D.message:String(D);throw new Error(U+(Y.length>0?`: ${Y}`:""))}return b},readScalar(v,c,h){return Mr(v,c,h??Xe.BIGINT,!0)},writeScalar(v,c,h){if(c!==void 0&&(h||xt(v,c)))return ji(v,c)},debug:zt}}function zt(v){if(v===null)return"null";switch(typeof v){case"object":return Array.isArray(v)?"array":"object";case"string":return v.length>100?"string":`"${v.split('"').join('\\"')}"`;default:return String(v)}}function Sn(v,c,h,b,E){let D=h.localName;if(h.repeated){if(f(h.kind!="map"),c===null)return;if(!Array.isArray(c))throw new Error(`cannot decode field ${E.typeName}.${h.name} from JSON: ${zt(c)}`);const U=v[D];for(const Y of c){if(Y===null)throw new Error(`cannot decode field ${E.typeName}.${h.name} from JSON: ${zt(Y)}`);switch(h.kind){case"message":U.push(h.T.fromJson(Y,b));break;case"enum":const fe=Rr(h.T,Y,b.ignoreUnknownFields,!0);fe!==Wt&&U.push(fe);break;case"scalar":try{U.push(Mr(h.T,Y,h.L,!0))}catch(me){let Pe=`cannot decode field ${E.typeName}.${h.name} from JSON: ${zt(Y)}`;throw me instanceof Error&&me.message.length>0&&(Pe+=`: ${me.message}`),new Error(Pe)}break}}}else if(h.kind=="map"){if(c===null)return;if(typeof c!="object"||Array.isArray(c))throw new Error(`cannot decode field ${E.typeName}.${h.name} from JSON: ${zt(c)}`);const U=v[D];for(const[Y,fe]of Object.entries(c)){if(fe===null)throw new Error(`cannot decode field ${E.typeName}.${h.name} from JSON: map value null`);let me;try{me=pr(h.K,Y)}catch(Pe){let vt=`cannot decode map key for field ${E.typeName}.${h.name} from JSON: ${zt(c)}`;throw Pe instanceof Error&&Pe.message.length>0&&(vt+=`: ${Pe.message}`),new Error(vt)}switch(h.V.kind){case"message":U[me]=h.V.T.fromJson(fe,b);break;case"enum":const Pe=Rr(h.V.T,fe,b.ignoreUnknownFields,!0);Pe!==Wt&&(U[me]=Pe);break;case"scalar":try{U[me]=Mr(h.V.T,fe,Xe.BIGINT,!0)}catch(vt){let ft=`cannot decode map value for field ${E.typeName}.${h.name} from JSON: ${zt(c)}`;throw vt instanceof Error&&vt.message.length>0&&(ft+=`: ${vt.message}`),new Error(ft)}break}}}else switch(h.oneof&&(v=v[h.oneof.localName]={case:D},D="value"),h.kind){case"message":const U=h.T;if(c===null&&U.typeName!="google.protobuf.Value")return;let Y=v[D];we(Y)?Y.fromJson(c,b):(v[D]=Y=U.fromJson(c,b),U.fieldWrapper&&!h.oneof&&(v[D]=U.fieldWrapper.unwrapField(Y)));break;case"enum":const fe=Rr(h.T,c,b.ignoreUnknownFields,!1);switch(fe){case tt:Fe(h,v);break;case Wt:break;default:v[D]=fe;break}break;case"scalar":try{const me=Mr(h.T,c,h.L,!1);switch(me){case tt:Fe(h,v);break;default:v[D]=me;break}}catch(me){let Pe=`cannot decode field ${E.typeName}.${h.name} from JSON: ${zt(c)}`;throw me instanceof Error&&me.message.length>0&&(Pe+=`: ${me.message}`),new Error(Pe)}break}}function pr(v,c){if(v===ae.BOOL)switch(c){case"true":c=!0;break;case"false":c=!1;break}return Mr(v,c,Xe.BIGINT,!0).toString()}function Mr(v,c,h,b){if(c===null)return b?Ye(v,h):tt;switch(v){case ae.DOUBLE:case ae.FLOAT:if(c==="NaN")return Number.NaN;if(c==="Infinity")return Number.POSITIVE_INFINITY;if(c==="-Infinity")return Number.NEGATIVE_INFINITY;if(c===""||typeof c=="string"&&c.trim().length!==c.length||typeof c!="string"&&typeof c!="number")break;const E=Number(c);if(Number.isNaN(E)||!Number.isFinite(E))break;return v==ae.FLOAT&&k(E),E;case ae.INT32:case ae.FIXED32:case ae.SFIXED32:case ae.SINT32:case ae.UINT32:let D;if(typeof c=="number"?D=c:typeof c=="string"&&c.length>0&&c.trim().length===c.length&&(D=Number(c)),D===void 0)break;return v==ae.UINT32||v==ae.FIXED32?x(D):w(D),D;case ae.INT64:case ae.SFIXED64:case ae.SINT64:if(typeof c!="number"&&typeof c!="string")break;const U=$e.parse(c);return h?U.toString():U;case ae.FIXED64:case ae.UINT64:if(typeof c!="number"&&typeof c!="string")break;const Y=$e.uParse(c);return h?Y.toString():Y;case ae.BOOL:if(typeof c!="boolean")break;return c;case ae.STRING:if(typeof c!="string")break;try{encodeURIComponent(c)}catch{throw new Error("invalid UTF8")}return c;case ae.BYTES:if(c==="")return new Uint8Array(0);if(typeof c!="string")break;return Ne.dec(c)}throw new Error}function Rr(v,c,h,b){if(c===null)return v.typeName=="google.protobuf.NullValue"?0:b?v.values[0].no:tt;switch(typeof c){case"number":if(Number.isInteger(c))return c;break;case"string":const E=v.findName(c);if(E!==void 0)return E.no;if(h)return Wt;break}throw new Error(`cannot decode enum ${v.typeName} from JSON: ${zt(c)}`)}function Yr(v){return v.repeated||v.kind=="map"?!0:!(v.oneof||v.kind=="message"||v.opt||v.req)}function Ni(v,c,h){if(v.kind=="map"){f(typeof c=="object"&&c!=null);const b={},E=Object.entries(c);switch(v.V.kind){case"scalar":for(const[U,Y]of E)b[U.toString()]=ji(v.V.T,Y);break;case"message":for(const[U,Y]of E)b[U.toString()]=Y.toJson(h);break;case"enum":const D=v.V.T;for(const[U,Y]of E)b[U.toString()]=hi(D,Y,h.enumAsInteger);break}return h.emitDefaultValues||E.length>0?b:void 0}if(v.repeated){f(Array.isArray(c));const b=[];switch(v.kind){case"scalar":for(let E=0;E0?b:void 0}switch(v.kind){case"scalar":return ji(v.T,c);case"enum":return hi(v.T,c,h.enumAsInteger);case"message":return be(v.T,c).toJson(h)}}function hi(v,c,h){var b;if(f(typeof c=="number"),v.typeName=="google.protobuf.NullValue")return null;if(h)return c;const E=v.findNumber(c);return(b=E==null?void 0:E.name)!==null&&b!==void 0?b:c}function ji(v,c){switch(v){case ae.INT32:case ae.SFIXED32:case ae.SINT32:case ae.FIXED32:case ae.UINT32:return f(typeof c=="number"),c;case ae.FLOAT:case ae.DOUBLE:return f(typeof c=="number"),Number.isNaN(c)?"NaN":c===Number.POSITIVE_INFINITY?"Infinity":c===Number.NEGATIVE_INFINITY?"-Infinity":c;case ae.STRING:return f(typeof c=="string"),c;case ae.BOOL:return f(typeof c=="boolean"),c;case ae.UINT64:case ae.FIXED64:case ae.INT64:case ae.SFIXED64:case ae.SINT64:return f(typeof c=="bigint"||typeof c=="string"||typeof c=="number"),c.toString();case ae.BYTES:return f(c instanceof Uint8Array),Ne.enc(c)}}const pi=Symbol("@bufbuild/protobuf/unknown-fields"),ds={readUnknownFields:!0,readerFactory:v=>new jt(v)},Hi={writeUnknownFields:!0,writerFactory:()=>new Pt};function Ks(v){return v?Object.assign(Object.assign({},ds),v):ds}function Qi(v){return v?Object.assign(Object.assign({},Hi),v):Hi}function Ur(){return{makeReadOptions:Ks,makeWriteOptions:Qi,listUnknownFields(v){var c;return(c=v[pi])!==null&&c!==void 0?c:[]},discardUnknownFields(v){delete v[pi]},writeUnknownFields(v,c){const b=v[pi];if(b)for(const E of b)c.tag(E.no,E.wireType).raw(E.data)},onUnknownField(v,c,h,b){const E=v;Array.isArray(E[pi])||(E[pi]=[]),E[pi].push({no:c,wireType:h,data:b})},readMessage(v,c,h,b,E){const D=v.getType(),U=E?c.len:c.pos+h;let Y,fe;for(;c.pos0&&(fe=nt),D){let ft=v[U];if(b==it.LengthDelimited&&Y!=ae.STRING&&Y!=ae.BYTES){let Xt=c.uint32()+c.pos;for(;c.poswe(ft,vt)?ft:new vt(ft));else{const ft=U[E];vt.fieldWrapper?vt.typeName==="google.protobuf.BytesValue"?D[E]=qe(ft):D[E]=ft:D[E]=we(ft,vt)?ft:new vt(ft)}break}}},equals(v,c,h){return c===h?!0:!c||!h?!1:v.fields.byMember().every(b=>{const E=c[b.localName],D=h[b.localName];if(b.repeated){if(E.length!==D.length)return!1;switch(b.kind){case"message":return E.every((U,Y)=>b.T.equals(U,D[Y]));case"scalar":return E.every((U,Y)=>We(b.T,U,D[Y]));case"enum":return E.every((U,Y)=>We(ae.INT32,U,D[Y]))}throw new Error(`repeated cannot contain ${b.kind}`)}switch(b.kind){case"message":return b.T.equals(E,D);case"enum":return We(ae.INT32,E,D);case"scalar":return We(b.T,E,D);case"oneof":if(E.case!==D.case)return!1;const U=b.findField(E.case);if(U===void 0)return!0;switch(U.kind){case"message":return U.T.equals(E.value,D.value);case"enum":return We(ae.INT32,E.value,D.value);case"scalar":return We(U.T,E.value,D.value)}throw new Error(`oneof cannot contain ${U.kind}`);case"map":const Y=Object.keys(E).concat(Object.keys(D));switch(b.V.kind){case"message":const fe=b.V.T;return Y.every(Pe=>fe.equals(E[Pe],D[Pe]));case"enum":return Y.every(Pe=>We(ae.INT32,E[Pe],D[Pe]));case"scalar":const me=b.V.T;return Y.every(Pe=>We(me,E[Pe],D[Pe]))}break}})},clone(v){const c=v.getType(),h=new c,b=h;for(const E of c.fields.byMember()){const D=v[E.localName];let U;if(E.repeated)U=D.map(at);else if(E.kind=="map"){U=b[E.localName];for(const[Y,fe]of Object.entries(D))U[Y]=at(fe)}else E.kind=="oneof"?U=E.findField(D.case)?{case:D.case,value:at(D.value)}:{case:void 0}:U=at(D);b[E.localName]=U}for(const E of c.runtime.bin.listUnknownFields(v))c.runtime.bin.onUnknownField(b,E.no,E.wireType,E.data);return h}}}function at(v){if(v===void 0)return v;if(we(v))return v.clone();if(v instanceof Uint8Array){const c=new Uint8Array(v.byteLength);return c.set(v),c}return v}function qe(v){return v instanceof Uint8Array?v:new Uint8Array(v)}function St(v,c,h){return{syntax:v,json:Ht(),bin:Ur(),util:Object.assign(Object.assign({},Te()),{newFieldList:c,initFields:h}),makeMessageType(b,E,D){return V(this,b,E,D)},makeEnum:L,makeEnumType:P,getEnumType:R,makeExtension(b,E,D){return ct(this,b,E,D)}}}class _t{constructor(c,h){this._fields=c,this._normalizer=h}findJsonName(c){if(!this.jsonNames){const h={};for(const b of this.list())h[b.jsonName]=h[b.name]=b;this.jsonNames=h}return this.jsonNames[c]}find(c){if(!this.numbers){const h={};for(const b of this.list())h[b.no]=b;this.numbers=h}return this.numbers[c]}list(){return this.all||(this.all=this._normalizer(this._fields)),this.all}byNumber(){return this.numbersAsc||(this.numbersAsc=this.list().concat().sort((c,h)=>c.no-h.no)),this.numbersAsc}byMember(){if(!this.members){this.members=[];const c=this.members;let h;for(const b of this.list())b.oneof?b.oneof!==h&&(h=b.oneof,c.push(h)):c.push(b)}return this.members}}function Gt(v,c){const h=Wi(v);return c?h:$l(Ml(h))}function jn(v){return Gt(v,!1)}const qn=Wi;function Wi(v){let c=!1;const h=[];for(let b=0;b`${v}$`,Ml=v=>$u.has(v)?xo(v):v,$l=v=>ti.has(v)?xo(v):v;class Fl{constructor(c){this.kind="oneof",this.repeated=!1,this.packed=!1,this.opt=!1,this.req=!1,this.default=void 0,this.fields=[],this.name=c,this.localName=jn(c)}addField(c){f(c.oneof===this,`field ${c.name} not one of ${this.name}`),this.fields.push(c)}findField(c){if(!this._lookup){this._lookup=Object.create(null);for(let h=0;hnew _t(v,c=>As(c)),v=>{for(const c of v.getType().fields.byMember()){if(c.opt)continue;const h=c.localName,b=v;if(c.repeated){b[h]=[];continue}switch(c.kind){case"oneof":b[h]={case:void 0};break;case"enum":b[h]=0;break;case"map":b[h]={};break;case"scalar":b[h]=Ye(c.T,c.L);break}}});var ha;(function(v){v[v.Unary=0]="Unary",v[v.ServerStreaming=1]="ServerStreaming",v[v.ClientStreaming=2]="ClientStreaming",v[v.BiDiStreaming=3]="BiDiStreaming"})(ha||(ha={}));var nh;(function(v){v[v.NoSideEffects=1]="NoSideEffects",v[v.Idempotent=2]="Idempotent"})(nh||(nh={}));class En extends B{constructor(c){super(),this.seconds=$e.zero,this.nanos=0,je.util.initPartial(c,this)}fromJson(c,h){if(typeof c!="string")throw new Error(`cannot decode google.protobuf.Timestamp from JSON: ${je.json.debug(c)}`);const b=c.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(!b)throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");const E=Date.parse(b[1]+"-"+b[2]+"-"+b[3]+"T"+b[4]+":"+b[5]+":"+b[6]+(b[8]?b[8]:"Z"));if(Number.isNaN(E))throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");if(EDate.parse("9999-12-31T23:59:59Z"))throw new Error("cannot decode message google.protobuf.Timestamp from JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive");return this.seconds=$e.parse(E/1e3),this.nanos=0,b[7]&&(this.nanos=parseInt("1"+b[7]+"0".repeat(9-b[7].length))-1e9),this}toJson(c){const h=Number(this.seconds)*1e3;if(hDate.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 b="Z";if(this.nanos>0){const E=(this.nanos+1e9).toString().substring(1);E.substring(3)==="000000"?b="."+E.substring(0,3)+"Z":E.substring(6)==="000"?b="."+E.substring(0,6)+"Z":b="."+E+"Z"}return new Date(h).toISOString().replace(".000Z",b)}toDate(){return new Date(Number(this.seconds)*1e3+Math.ceil(this.nanos/1e6))}static now(){return En.fromDate(new Date)}static fromDate(c){const h=c.getTime();return new En({seconds:$e.parse(Math.floor(h/1e3)),nanos:h%1e3*1e6})}static fromBinary(c,h){return new En().fromBinary(c,h)}static fromJson(c,h){return new En().fromJson(c,h)}static fromJsonString(c,h){return new En().fromJsonString(c,h)}static equals(c,h){return je.util.equals(En,c,h)}}En.runtime=je,En.typeName="google.protobuf.Timestamp",En.fields=je.util.newFieldList(()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]);class xr extends B{constructor(c){super(),this.seconds=$e.zero,this.nanos=0,je.util.initPartial(c,this)}fromJson(c,h){if(typeof c!="string")throw new Error(`cannot decode google.protobuf.Duration from JSON: ${je.json.debug(c)}`);const b=c.match(/^(-?[0-9]+)(?:\.([0-9]+))?s/);if(b===null)throw new Error(`cannot decode google.protobuf.Duration from JSON: ${je.json.debug(c)}`);const E=Number(b[1]);if(E>315576e6||E<-315576e6)throw new Error(`cannot decode google.protobuf.Duration from JSON: ${je.json.debug(c)}`);if(this.seconds=$e.parse(E),typeof b[2]=="string"){const D=b[2]+"0".repeat(9-b[2].length);this.nanos=parseInt(D),(E<0||Object.is(E,-0))&&(this.nanos=-this.nanos)}return this}toJson(c){if(Number(this.seconds)>315576e6||Number(this.seconds)<-315576e6)throw new Error("cannot encode google.protobuf.Duration to JSON: value out of range");let h=this.seconds.toString();if(this.nanos!==0){let b=Math.abs(this.nanos).toString();b="0".repeat(9-b.length)+b,b.substring(3)==="000000"?b=b.substring(0,3):b.substring(6)==="000"&&(b=b.substring(0,6)),h+="."+b,this.nanos<0&&Number(this.seconds)==0&&(h="-"+h)}return h+"s"}static fromBinary(c,h){return new xr().fromBinary(c,h)}static fromJson(c,h){return new xr().fromJson(c,h)}static fromJsonString(c,h){return new xr().fromJsonString(c,h)}static equals(c,h){return je.util.equals(xr,c,h)}}xr.runtime=je,xr.typeName="google.protobuf.Duration",xr.fields=je.util.newFieldList(()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]);class mi extends B{constructor(c){super(),this.typeUrl="",this.value=new Uint8Array(0),je.util.initPartial(c,this)}toJson(c){var h;if(this.typeUrl==="")return{};const b=this.typeUrlToName(this.typeUrl),E=(h=c==null?void 0:c.typeRegistry)===null||h===void 0?void 0:h.findMessage(b);if(!E)throw new Error(`cannot encode message google.protobuf.Any to JSON: "${this.typeUrl}" is not in the type registry`);let U=E.fromBinary(this.value).toJson(c);return(b.startsWith("google.protobuf.")||U===null||Array.isArray(U)||typeof U!="object")&&(U={value:U}),U["@type"]=this.typeUrl,U}fromJson(c,h){var b;if(c===null||Array.isArray(c)||typeof c!="object")throw new Error(`cannot decode message google.protobuf.Any from JSON: expected object but got ${c===null?"null":Array.isArray(c)?"array":typeof c}`);if(Object.keys(c).length==0)return this;const E=c["@type"];if(typeof E!="string"||E=="")throw new Error('cannot decode message google.protobuf.Any from JSON: "@type" is empty');const D=this.typeUrlToName(E),U=(b=h==null?void 0:h.typeRegistry)===null||b===void 0?void 0:b.findMessage(D);if(!U)throw new Error(`cannot decode message google.protobuf.Any from JSON: ${E} is not in the type registry`);let Y;if(D.startsWith("google.protobuf.")&&Object.prototype.hasOwnProperty.call(c,"value"))Y=U.fromJson(c.value,h);else{const fe=Object.assign({},c);delete fe["@type"],Y=U.fromJson(fe,h)}return this.packFrom(Y),this}packFrom(c){this.value=c.toBinary(),this.typeUrl=this.typeNameToUrl(c.getType().typeName)}unpackTo(c){return this.is(c.getType())?(c.fromBinary(this.value),!0):!1}unpack(c){if(this.typeUrl==="")return;const h=c.findMessage(this.typeUrlToName(this.typeUrl));if(h)return h.fromBinary(this.value)}is(c){if(this.typeUrl==="")return!1;const h=this.typeUrlToName(this.typeUrl);let b="";return typeof c=="string"?b=c:b=c.typeName,h===b}typeNameToUrl(c){return`type.googleapis.com/${c}`}typeUrlToName(c){if(!c.length)throw new Error(`invalid type url: ${c}`);const h=c.lastIndexOf("/"),b=h>=0?c.substring(h+1):c;if(!b.length)throw new Error(`invalid type url: ${c}`);return b}static pack(c){const h=new mi;return h.packFrom(c),h}static fromBinary(c,h){return new mi().fromBinary(c,h)}static fromJson(c,h){return new mi().fromJson(c,h)}static fromJsonString(c,h){return new mi().fromJsonString(c,h)}static equals(c,h){return je.util.equals(mi,c,h)}}mi.runtime=je,mi.typeName="google.protobuf.Any",mi.fields=je.util.newFieldList(()=>[{no:1,name:"type_url",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:12}]);class dr extends B{constructor(c){super(),this.value=0,je.util.initPartial(c,this)}toJson(c){return je.json.writeScalar(ae.DOUBLE,this.value,!0)}fromJson(c,h){try{this.value=je.json.readScalar(ae.DOUBLE,c)}catch(b){let E='cannot decode message google.protobuf.DoubleValue from JSON"';throw b instanceof Error&&b.message.length>0&&(E+=`: ${b.message}`),new Error(E)}return this}static fromBinary(c,h){return new dr().fromBinary(c,h)}static fromJson(c,h){return new dr().fromJson(c,h)}static fromJsonString(c,h){return new dr().fromJsonString(c,h)}static equals(c,h){return je.util.equals(dr,c,h)}}dr.runtime=je,dr.typeName="google.protobuf.DoubleValue",dr.fields=je.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:1}]),dr.fieldWrapper={wrapField(v){return new dr({value:v})},unwrapField(v){return v.value}};class Vi extends B{constructor(c){super(),this.value=0,je.util.initPartial(c,this)}toJson(c){return je.json.writeScalar(ae.FLOAT,this.value,!0)}fromJson(c,h){try{this.value=je.json.readScalar(ae.FLOAT,c)}catch(b){let E='cannot decode message google.protobuf.FloatValue from JSON"';throw b instanceof Error&&b.message.length>0&&(E+=`: ${b.message}`),new Error(E)}return this}static fromBinary(c,h){return new Vi().fromBinary(c,h)}static fromJson(c,h){return new Vi().fromJson(c,h)}static fromJsonString(c,h){return new Vi().fromJsonString(c,h)}static equals(c,h){return je.util.equals(Vi,c,h)}}Vi.runtime=je,Vi.typeName="google.protobuf.FloatValue",Vi.fields=je.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:2}]),Vi.fieldWrapper={wrapField(v){return new Vi({value:v})},unwrapField(v){return v.value}};class ko extends B{constructor(c){super(),this.value=$e.zero,je.util.initPartial(c,this)}toJson(c){return je.json.writeScalar(ae.INT64,this.value,!0)}fromJson(c,h){try{this.value=je.json.readScalar(ae.INT64,c)}catch(b){let E='cannot decode message google.protobuf.Int64Value from JSON"';throw b instanceof Error&&b.message.length>0&&(E+=`: ${b.message}`),new Error(E)}return this}static fromBinary(c,h){return new ko().fromBinary(c,h)}static fromJson(c,h){return new ko().fromJson(c,h)}static fromJsonString(c,h){return new ko().fromJsonString(c,h)}static equals(c,h){return je.util.equals(ko,c,h)}}ko.runtime=je,ko.typeName="google.protobuf.Int64Value",ko.fields=je.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:3}]),ko.fieldWrapper={wrapField(v){return new ko({value:v})},unwrapField(v){return v.value}};class Ao extends B{constructor(c){super(),this.value=$e.zero,je.util.initPartial(c,this)}toJson(c){return je.json.writeScalar(ae.UINT64,this.value,!0)}fromJson(c,h){try{this.value=je.json.readScalar(ae.UINT64,c)}catch(b){let E='cannot decode message google.protobuf.UInt64Value from JSON"';throw b instanceof Error&&b.message.length>0&&(E+=`: ${b.message}`),new Error(E)}return this}static fromBinary(c,h){return new Ao().fromBinary(c,h)}static fromJson(c,h){return new Ao().fromJson(c,h)}static fromJsonString(c,h){return new Ao().fromJsonString(c,h)}static equals(c,h){return je.util.equals(Ao,c,h)}}Ao.runtime=je,Ao.typeName="google.protobuf.UInt64Value",Ao.fields=je.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:4}]),Ao.fieldWrapper={wrapField(v){return new Ao({value:v})},unwrapField(v){return v.value}};class _o extends B{constructor(c){super(),this.value=0,je.util.initPartial(c,this)}toJson(c){return je.json.writeScalar(ae.INT32,this.value,!0)}fromJson(c,h){try{this.value=je.json.readScalar(ae.INT32,c)}catch(b){let E='cannot decode message google.protobuf.Int32Value from JSON"';throw b instanceof Error&&b.message.length>0&&(E+=`: ${b.message}`),new Error(E)}return this}static fromBinary(c,h){return new _o().fromBinary(c,h)}static fromJson(c,h){return new _o().fromJson(c,h)}static fromJsonString(c,h){return new _o().fromJsonString(c,h)}static equals(c,h){return je.util.equals(_o,c,h)}}_o.runtime=je,_o.typeName="google.protobuf.Int32Value",_o.fields=je.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:5}]),_o.fieldWrapper={wrapField(v){return new _o({value:v})},unwrapField(v){return v.value}};class Bl extends B{constructor(c){super(),this.value=0,je.util.initPartial(c,this)}toJson(c){return je.json.writeScalar(ae.UINT32,this.value,!0)}fromJson(c,h){try{this.value=je.json.readScalar(ae.UINT32,c)}catch(b){let E='cannot decode message google.protobuf.UInt32Value from JSON"';throw b instanceof Error&&b.message.length>0&&(E+=`: ${b.message}`),new Error(E)}return this}static fromBinary(c,h){return new Bl().fromBinary(c,h)}static fromJson(c,h){return new Bl().fromJson(c,h)}static fromJsonString(c,h){return new Bl().fromJsonString(c,h)}static equals(c,h){return je.util.equals(Bl,c,h)}}Bl.runtime=je,Bl.typeName="google.protobuf.UInt32Value",Bl.fields=je.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:13}]),Bl.fieldWrapper={wrapField(v){return new Bl({value:v})},unwrapField(v){return v.value}};class Fu extends B{constructor(c){super(),this.value=!1,je.util.initPartial(c,this)}toJson(c){return je.json.writeScalar(ae.BOOL,this.value,!0)}fromJson(c,h){try{this.value=je.json.readScalar(ae.BOOL,c)}catch(b){let E='cannot decode message google.protobuf.BoolValue from JSON"';throw b instanceof Error&&b.message.length>0&&(E+=`: ${b.message}`),new Error(E)}return this}static fromBinary(c,h){return new Fu().fromBinary(c,h)}static fromJson(c,h){return new Fu().fromJson(c,h)}static fromJsonString(c,h){return new Fu().fromJsonString(c,h)}static equals(c,h){return je.util.equals(Fu,c,h)}}Fu.runtime=je,Fu.typeName="google.protobuf.BoolValue",Fu.fields=je.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:8}]),Fu.fieldWrapper={wrapField(v){return new Fu({value:v})},unwrapField(v){return v.value}};class Js extends B{constructor(c){super(),this.value="",je.util.initPartial(c,this)}toJson(c){return je.json.writeScalar(ae.STRING,this.value,!0)}fromJson(c,h){try{this.value=je.json.readScalar(ae.STRING,c)}catch(b){let E='cannot decode message google.protobuf.StringValue from JSON"';throw b instanceof Error&&b.message.length>0&&(E+=`: ${b.message}`),new Error(E)}return this}static fromBinary(c,h){return new Js().fromBinary(c,h)}static fromJson(c,h){return new Js().fromJson(c,h)}static fromJsonString(c,h){return new Js().fromJsonString(c,h)}static equals(c,h){return je.util.equals(Js,c,h)}}Js.runtime=je,Js.typeName="google.protobuf.StringValue",Js.fields=je.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:9}]),Js.fieldWrapper={wrapField(v){return new Js({value:v})},unwrapField(v){return v.value}};class Ul extends B{constructor(c){super(),this.value=new Uint8Array(0),je.util.initPartial(c,this)}toJson(c){return je.json.writeScalar(ae.BYTES,this.value,!0)}fromJson(c,h){try{this.value=je.json.readScalar(ae.BYTES,c)}catch(b){let E='cannot decode message google.protobuf.BytesValue from JSON"';throw b instanceof Error&&b.message.length>0&&(E+=`: ${b.message}`),new Error(E)}return this}static fromBinary(c,h){return new Ul().fromBinary(c,h)}static fromJson(c,h){return new Ul().fromJson(c,h)}static fromJsonString(c,h){return new Ul().fromJsonString(c,h)}static equals(c,h){return je.util.equals(Ul,c,h)}}Ul.runtime=je,Ul.typeName="google.protobuf.BytesValue",Ul.fields=je.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:12}]),Ul.fieldWrapper={wrapField(v){return new Ul({value:v})},unwrapField(v){return v.value}};function zO(v,c,h){try{const b=Ne.dec(v);return c?c.fromBinary(b,h):b}catch(b){throw u.from(b,o.DataLoss)}}function $I(v,c){const h={};for(const[b,E]of Object.entries(v.methods)){const D=c(Object.assign(Object.assign({},E),{localName:b,service:v}));D!=null&&(h[b]=D)}return h}function jO(v){let c,h=new Uint8Array(0);function b(E){const D=new Uint8Array(h.length+E.length);D.set(h),D.set(E,h.length),h=D}return new ReadableStream({start(){c=v.getReader()},async pull(E){let D;for(;;){if(D===void 0&&h.byteLength>=5){let fe=0;for(let me=1;me<5;me++)fe=(fe<<8)+h[me];D={flags:h[0],length:fe}}if(D!==void 0&&h.byteLength>=D.length+5)break;const Y=await c.read();if(Y.done)break;b(Y.value)}if(D===void 0){if(h.byteLength==0){E.close();return}E.error(new u("premature end of stream",o.DataLoss));return}const U=h.subarray(5,5+D.length);h=h.subarray(5+D.length),E.enqueue({flags:D.flags,data:U})}})}function K1(v,c){const h=new Uint8Array(c.length+5);h.set(c,5);const b=new DataView(h.buffer,h.byteOffset,h.byteLength);return b.setUint8(0,v),b.setUint32(1,c.length),h}var HO=globalThis&&globalThis.__asyncValues||function(v){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var c=v[Symbol.asyncIterator],h;return c?c.call(v):(v=typeof __values=="function"?__values(v):v[Symbol.iterator](),h={},b("next"),b("throw"),b("return"),h[Symbol.asyncIterator]=function(){return this},h);function b(D){h[D]=v[D]&&function(U){return new Promise(function(Y,fe){U=v[D](U),E(Y,fe,U.done,U.value)})}}function E(D,U,Y,fe){Promise.resolve(fe).then(function(me){D({value:me,done:Y})},U)}},Bu=globalThis&&globalThis.__await||function(v){return this instanceof Bu?(this.v=v,this):new Bu(v)},xx=globalThis&&globalThis.__asyncGenerator||function(v,c,h){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var b=h.apply(v,c||[]),E,D=[];return E={},Y("next"),Y("throw"),Y("return",U),E[Symbol.asyncIterator]=function(){return this},E;function U(et){return function(Xt){return Promise.resolve(Xt).then(et,vt)}}function Y(et,Xt){b[et]&&(E[et]=function(_n){return new Promise(function(An,Gn){D.push([et,_n,An,Gn])>1||fe(et,_n)})},Xt&&(E[et]=Xt(E[et])))}function fe(et,Xt){try{me(b[et](Xt))}catch(_n){ft(D[0][3],_n)}}function me(et){et.value instanceof Bu?Promise.resolve(et.value.v).then(Pe,vt):ft(D[0][2],et)}function Pe(et){fe("next",et)}function vt(et){fe("throw",et)}function ft(et,Xt){et(Xt),D.shift(),D.length&&fe(D[0][0],D[0][1])}},kx=globalThis&&globalThis.__asyncDelegator||function(v){var c,h;return c={},b("next"),b("throw",function(E){throw E}),b("return"),c[Symbol.iterator]=function(){return this},c;function b(E,D){c[E]=v[E]?function(U){return(h=!h)?{value:Bu(v[E](U)),done:!1}:D?D(U):U}:D}};function FI(v){return xx(this,arguments,function*(){yield Bu(yield*kx(HO(v)))})}var QO=globalThis&&globalThis.__asyncValues||function(v){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var c=v[Symbol.asyncIterator],h;return c?c.call(v):(v=typeof __values=="function"?__values(v):v[Symbol.iterator](),h={},b("next"),b("throw"),b("return"),h[Symbol.asyncIterator]=function(){return this},h);function b(D){h[D]=v[D]&&function(U){return new Promise(function(Y,fe){U=v[D](U),E(Y,fe,U.done,U.value)})}}function E(D,U,Y,fe){Promise.resolve(fe).then(function(me){D({value:me,done:Y})},U)}},rh=globalThis&&globalThis.__await||function(v){return this instanceof rh?(this.v=v,this):new rh(v)},Ax=globalThis&&globalThis.__asyncDelegator||function(v){var c,h;return c={},b("next"),b("throw",function(E){throw E}),b("return"),c[Symbol.iterator]=function(){return this},c;function b(E,D){c[E]=v[E]?function(U){return(h=!h)?{value:rh(v[E](U)),done:!1}:D?D(U):U}:D}},_x=globalThis&&globalThis.__asyncGenerator||function(v,c,h){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var b=h.apply(v,c||[]),E,D=[];return E={},Y("next"),Y("throw"),Y("return",U),E[Symbol.asyncIterator]=function(){return this},E;function U(et){return function(Xt){return Promise.resolve(Xt).then(et,vt)}}function Y(et,Xt){b[et]&&(E[et]=function(_n){return new Promise(function(An,Gn){D.push([et,_n,An,Gn])>1||fe(et,_n)})},Xt&&(E[et]=Xt(E[et])))}function fe(et,Xt){try{me(b[et](Xt))}catch(_n){ft(D[0][3],_n)}}function me(et){et.value instanceof rh?Promise.resolve(et.value.v).then(Pe,vt):ft(D[0][2],et)}function Pe(et){fe("next",et)}function vt(et){fe("throw",et)}function ft(et,Xt){et(Xt),D.shift(),D.length&&fe(D[0][0],D[0][1])}};function BI(v,c){return $I(v,h=>{switch(h.kind){case ha.Unary:return UI(c,v,h);case ha.ServerStreaming:return zI(c,v,h);case ha.ClientStreaming:return Cx(c,v,h);case ha.BiDiStreaming:return jI(c,v,h);default:return null}})}function UI(v,c,h){return async function(b,E){var D,U;const Y=await v.unary(c,h,E==null?void 0:E.signal,E==null?void 0:E.timeoutMs,E==null?void 0:E.headers,b,E==null?void 0:E.contextValues);return(D=E==null?void 0:E.onHeader)===null||D===void 0||D.call(E,Y.header),(U=E==null?void 0:E.onTrailer)===null||U===void 0||U.call(E,Y.trailer),Y.message}}function zI(v,c,h){return function(b,E){return Rx(v.stream(c,h,E==null?void 0:E.signal,E==null?void 0:E.timeoutMs,E==null?void 0:E.headers,FI([b]),E==null?void 0:E.contextValues),E)}}function Cx(v,c,h){return async function(b,E){var D,U,Y,fe,me,Pe;const vt=await v.stream(c,h,E==null?void 0:E.signal,E==null?void 0:E.timeoutMs,E==null?void 0:E.headers,b,E==null?void 0:E.contextValues);(me=E==null?void 0:E.onHeader)===null||me===void 0||me.call(E,vt.header);let ft;try{for(var et=!0,Xt=QO(vt.message),_n;_n=await Xt.next(),D=_n.done,!D;et=!0)fe=_n.value,et=!1,ft=fe}catch(An){U={error:An}}finally{try{!et&&!D&&(Y=Xt.return)&&await Y.call(Xt)}finally{if(U)throw U.error}}if(!ft)throw new u("protocol error: missing response message",o.Internal);return(Pe=E==null?void 0:E.onTrailer)===null||Pe===void 0||Pe.call(E,vt.trailer),ft}}function jI(v,c,h){return function(b,E){return Rx(v.stream(c,h,E==null?void 0:E.signal,E==null?void 0:E.timeoutMs,E==null?void 0:E.headers,b,E==null?void 0:E.contextValues),E)}}function Rx(v,c){const h=function(){var b,E;return _x(this,arguments,function*(){const D=yield rh(v);(b=c==null?void 0:c.onHeader)===null||b===void 0||b.call(c,D.header),yield rh(yield*Ax(QO(D.message))),(E=c==null?void 0:c.onTrailer)===null||E===void 0||E.call(c,D.trailer)})}()[Symbol.asyncIterator]();return{[Symbol.asyncIterator]:()=>({next:()=>h.next()})}}function HI(...v){const c=new AbortController,h=v.filter(E=>E!==void 0).concat(c.signal);for(const E of h){if(E.aborted){b.apply(E);break}E.addEventListener("abort",b)}function b(){c.signal.aborted||c.abort(J1(this));for(const E of h)E.removeEventListener("abort",b)}return c}function QI(v){const c=new AbortController,h=()=>{c.abort(new u("the operation timed out",o.DeadlineExceeded))};let b;return v!==void 0&&(v<=0?h():b=setTimeout(h,v)),{signal:c.signal,cleanup:()=>clearTimeout(b)}}function J1(v){if(!v.aborted)return;if(v.reason!==void 0)return v.reason;const c=new Error("This operation was aborted");return c.name="AbortError",c}function Ix(){return{get(v){return v.id in this?this[v.id]:v.defaultValue},set(v,c){return this[v.id]=c,this},delete(v){return delete this[v.id],this}}}const WO=128;function Nx(v){const c=new Headers,h=new TextDecoder().decode(v).split(`\r +`);for(const b of h){if(b==="")continue;const E=b.indexOf(":");if(E>0){const D=b.substring(0,E).trim(),U=b.substring(E+1).trim();c.append(D,U)}}return c}const WI="Content-Type",VI="Grpc-Timeout",ui="Grpc-Status",ni="Grpc-Message",qI="Grpc-Status-Details-Bin",GI="X-User-Agent",YI="X-Grpc-Web",ZI="application/grpc-web+proto",XI="application/grpc-web+json";class Hc extends B{constructor(c){super(),this.code=0,this.message="",this.details=[],je.util.initPartial(c,this)}static fromBinary(c,h){return new Hc().fromBinary(c,h)}static fromJson(c,h){return new Hc().fromJson(c,h)}static fromJsonString(c,h){return new Hc().fromJsonString(c,h)}static equals(c,h){return je.util.equals(Hc,c,h)}}Hc.runtime=je,Hc.typeName="google.rpc.Status",Hc.fields=je.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:mi,repeated:!0}]);const Dx="0";function Px(v){var c;const h=v.get(qI);if(h!=null){const E=zO(h,Hc);if(E.code==0)return;const D=new u(E.message,E.code,v);return D.details=E.details.map(U=>({type:U.typeUrl.substring(U.typeUrl.lastIndexOf("/")+1),value:U.value})),D}const b=v.get(ui);if(b!=null){if(b===Dx)return;const E=parseInt(b,10);return E in o?new u(decodeURIComponent((c=v.get(ni))!==null&&c!==void 0?c:""),E,v):new u(`invalid grpc-status: ${b}`,o.Internal,v)}}function Ba(v,c,h){const b=typeof c=="string"?c:c.typeName,E=typeof h=="string"?h:h.name;return v.toString().replace(/\/?$/,`/${b}/${E}`)}function eb(v,c){return c instanceof v?c:new v(c)}function ih(v,c){function h(b){return b.done===!0?b:{done:b.done,value:eb(v,b.value)}}return{[Symbol.asyncIterator](){const b=c[Symbol.asyncIterator](),E={next:()=>b.next().then(h)};return b.throw!==void 0&&(E.throw=D=>b.throw(D).then(h)),b.return!==void 0&&(E.return=D=>b.return(D).then(h)),E}}}function VO(v,c){var h;return(h=c==null?void 0:c.concat().reverse().reduce((b,E)=>E(b),v))!==null&&h!==void 0?h:v}function qO(v){var c;const h=Object.assign({},v);return(c=h.ignoreUnknownFields)!==null&&c!==void 0||(h.ignoreUnknownFields=!0),h}function Co(v,c,h,b){const E=c?GO(v.I,b):YO(v.I,h);return{parse:(c?GO(v.O,b):YO(v.O,h)).parse,serialize:E.serialize}}function GO(v,c){return{parse(h){try{return v.fromBinary(h,c)}catch(b){const E=b instanceof Error?b.message:String(b);throw new u(`parse binary: ${E}`,o.InvalidArgument)}},serialize(h){try{return h.toBinary(c)}catch(b){const E=b instanceof Error?b.message:String(b);throw new u(`serialize binary: ${E}`,o.Internal)}}}}function YO(v,c){var h,b;const E=(h=c==null?void 0:c.textEncoder)!==null&&h!==void 0?h:new TextEncoder,D=(b=c==null?void 0:c.textDecoder)!==null&&b!==void 0?b:new TextDecoder,U=qO(c);return{parse(Y){try{const fe=D.decode(Y);return v.fromJsonString(fe,U)}catch(fe){throw u.from(fe,o.InvalidArgument)}},serialize(Y){try{const fe=Y.toJsonString(U);return E.encode(fe)}catch(fe){throw u.from(fe,o.Internal)}}}}function Lx(v){const c=VO(v.next,v.interceptors),[h,b,E]=ZO(v),D=Object.assign(Object.assign({},v.req),{message:eb(v.req.method.I,v.req.message),signal:h});return c(D).then(U=>(E(),U),b)}function Mx(v){const c=VO(v.next,v.interceptors),[h,b,E]=ZO(v),D=Object.assign(Object.assign({},v.req),{message:ih(v.req.method.I,v.req.message),signal:h});let U=!1;return h.addEventListener("abort",function(){var Y,fe;const me=v.req.message[Symbol.asyncIterator]();U||(Y=me.throw)===null||Y===void 0||Y.call(me,this.reason).catch(()=>{}),(fe=me.return)===null||fe===void 0||fe.call(me).catch(()=>{})}),c(D).then(Y=>Object.assign(Object.assign({},Y),{message:{[Symbol.asyncIterator](){const fe=Y.message[Symbol.asyncIterator]();return{next(){return fe.next().then(me=>(me.done==!0&&(U=!0,E()),me),b)}}}}}),b)}function ZO(v){const{signal:c,cleanup:h}=QI(v.timeoutMs),b=HI(v.signal,c);return[b.signal,function(D){const U=u.from(c.aborted?J1(c):D);return b.abort(U),h(),Promise.reject(U)},function(){h(),b.abort()}]}function $x(){try{new Headers}catch{throw new Error("connect-web requires the fetch API. Are you running on an old version of Node.js? Node.js is not supported in Connect for Web - please stay tuned for Connect for Node.")}}function eo(v,c){const h=Px(v);if(h)throw c.forEach((b,E)=>{h.metadata.append(E,b)}),h}function Fx(v,c,h,b){const E=new Headers(h??{});return E.set(WI,v?ZI:XI),E.set(YI,"1"),E.set(GI,"connect-es/1.4.0"),c!==void 0&&E.set(VI,`${c}m`),E}function rl(v){switch(v){case 400:return o.Internal;case 401:return o.Unauthenticated;case 403:return o.PermissionDenied;case 404:return o.Unimplemented;case 429:return o.Unavailable;case 502:return o.Unavailable;case 503:return o.Unavailable;case 504:return o.Unavailable;default:return o.Unknown}}function Bx(v,c){var h;if(v>=200&&v<300){const b=Px(c);if(b)throw b;return{foundStatus:c.has(ui)}}throw new u(decodeURIComponent((h=c.get(ni))!==null&&h!==void 0?h:`HTTP ${v}`),rl(v),c)}var Ud=globalThis&&globalThis.__await||function(v){return this instanceof Ud?(this.v=v,this):new Ud(v)},zd=globalThis&&globalThis.__asyncGenerator||function(v,c,h){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var b=h.apply(v,c||[]),E,D=[];return E={},Y("next"),Y("throw"),Y("return",U),E[Symbol.asyncIterator]=function(){return this},E;function U(et){return function(Xt){return Promise.resolve(Xt).then(et,vt)}}function Y(et,Xt){b[et]&&(E[et]=function(_n){return new Promise(function(An,Gn){D.push([et,_n,An,Gn])>1||fe(et,_n)})},Xt&&(E[et]=Xt(E[et])))}function fe(et,Xt){try{me(b[et](Xt))}catch(_n){ft(D[0][3],_n)}}function me(et){et.value instanceof Ud?Promise.resolve(et.value.v).then(Pe,vt):ft(D[0][2],et)}function Pe(et){fe("next",et)}function vt(et){fe("throw",et)}function ft(et,Xt){et(Xt),D.shift(),D.length&&fe(D[0][0],D[0][1])}};function tb(v){var c;$x();const h=(c=v.useBinaryFormat)!==null&&c!==void 0?c:!0;return{async unary(b,E,D,U,Y,fe,me){var Pe;const{serialize:vt,parse:ft}=Co(E,h,v.jsonOptions,v.binaryOptions);return U=U===void 0?v.defaultTimeoutMs:U<=0?void 0:U,await Lx({interceptors:v.interceptors,signal:D,timeoutMs:U,req:{stream:!1,service:b,method:E,url:Ba(v.baseUrl,b,E),init:{method:"POST",credentials:(Pe=v.credentials)!==null&&Pe!==void 0?Pe:"same-origin",redirect:"error",mode:"cors"},header:Fx(h,U,Y),contextValues:me??Ix(),message:fe},next:async et=>{var Xt;const An=await((Xt=v.fetch)!==null&&Xt!==void 0?Xt:globalThis.fetch)(et.url,Object.assign(Object.assign({},et.init),{headers:et.header,signal:et.signal,body:K1(0,vt(et.message))}));if(Bx(An.status,An.headers),!An.body)throw"missing response body";const Gn=jO(An.body).getReader();let ci,gr;for(;;){const Wr=await Gn.read();if(Wr.done)break;const{flags:zr,data:gi}=Wr.value;if(zr===WO){if(ci!==void 0)throw"extra trailer";ci=Nx(gi);continue}if(gr!==void 0)throw"extra message";gr=ft(gi)}if(ci===void 0)throw"missing trailer";if(eo(ci,An.headers),gr===void 0)throw"missing message";return{stream:!1,service:b,method:E,header:An.headers,message:gr,trailer:ci}}})},async stream(b,E,D,U,Y,fe,me){var Pe;const{serialize:vt,parse:ft}=Co(E,h,v.jsonOptions,v.binaryOptions);function et(_n,An,Gn,ci){return zd(this,arguments,function*(){const Wr=jO(_n).getReader();if(An){if(!(yield Ud(Wr.read())).done)throw"extra data for trailers-only";return yield Ud(void 0)}let zr=!1;for(;;){const gi=yield Ud(Wr.read());if(gi.done)break;const{flags:gs,data:Po}=gi.value;if((gs&WO)===WO){if(zr)throw"extra trailer";zr=!0;const fg=Nx(Po);eo(fg,ci),fg.forEach((Ik,P6)=>Gn.set(P6,Ik));continue}if(zr)throw"extra message";yield yield Ud(ft(Po))}if(!zr)throw"missing trailer"})}async function Xt(_n){if(E.kind!=ha.ServerStreaming)throw"The fetch API does not support streaming request bodies";const An=await _n[Symbol.asyncIterator]().next();if(An.done==!0)throw"missing request message";return K1(0,vt(An.value))}return U=U===void 0?v.defaultTimeoutMs:U<=0?void 0:U,Mx({interceptors:v.interceptors,signal:D,timeoutMs:U,req:{stream:!0,service:b,method:E,url:Ba(v.baseUrl,b,E),init:{method:"POST",credentials:(Pe=v.credentials)!==null&&Pe!==void 0?Pe:"same-origin",redirect:"error",mode:"cors"},header:Fx(h,U,Y),contextValues:me??Ix(),message:fe},next:async _n=>{var An;const ci=await((An=v.fetch)!==null&&An!==void 0?An:globalThis.fetch)(_n.url,Object.assign(Object.assign({},_n.init),{headers:_n.header,signal:_n.signal,body:await Xt(_n.message)})),{foundStatus:gr}=Bx(ci.status,ci.headers);if(!ci.body)throw"missing response body";const Wr=new Headers;return Object.assign(Object.assign({},_n),{header:ci.headers,trailer:Wr,message:et(ci.body,gr,Wr,ci.headers)})}})}}}const Vn=je.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"}]),ri=je.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"}]),jd=je.makeMessageType("yorkie.v1.Snapshot",()=>[{no:1,name:"root",kind:"message",T:il},{no:2,name:"presences",kind:"map",K:9,V:{kind:"message",T:lb}}]),zl=je.makeMessageType("yorkie.v1.ChangePack",()=>[{no:1,name:"document_key",kind:"scalar",T:9},{no:2,name:"checkpoint",kind:"message",T:Qc},{no:3,name:"snapshot",kind:"scalar",T:12},{no:4,name:"changes",kind:"message",T:Ux,repeated:!0},{no:5,name:"min_synced_ticket",kind:"message",T:wn},{no:6,name:"is_removed",kind:"scalar",T:8}]),Ux=je.makeMessageType("yorkie.v1.Change",()=>[{no:1,name:"id",kind:"message",T:Cp},{no:2,name:"message",kind:"scalar",T:9},{no:3,name:"operations",kind:"message",T:XO,repeated:!0},{no:4,name:"presence_change",kind:"message",T:iS}]),Cp=je.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}]),XO=je.makeMessageType("yorkie.v1.Operation",()=>[{no:1,name:"set",kind:"message",T:zx,oneof:"body"},{no:2,name:"add",kind:"message",T:jx,oneof:"body"},{no:3,name:"move",kind:"message",T:KO,oneof:"body"},{no:4,name:"remove",kind:"message",T:_m,oneof:"body"},{no:5,name:"edit",kind:"message",T:ah,oneof:"body"},{no:6,name:"select",kind:"message",T:KI,oneof:"body"},{no:7,name:"style",kind:"message",T:JO,oneof:"body"},{no:8,name:"increase",kind:"message",T:eS,oneof:"body"},{no:9,name:"tree_edit",kind:"message",T:nb,oneof:"body"},{no:10,name:"tree_style",kind:"message",T:rb,oneof:"body"}]),zx=je.makeMessageType("yorkie.v1.Operation.Set",()=>[{no:1,name:"parent_created_at",kind:"message",T:wn},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"value",kind:"message",T:Uu},{no:4,name:"executed_at",kind:"message",T:wn}],{localName:"Operation_Set"}),jx=je.makeMessageType("yorkie.v1.Operation.Add",()=>[{no:1,name:"parent_created_at",kind:"message",T:wn},{no:2,name:"prev_created_at",kind:"message",T:wn},{no:3,name:"value",kind:"message",T:Uu},{no:4,name:"executed_at",kind:"message",T:wn}],{localName:"Operation_Add"}),KO=je.makeMessageType("yorkie.v1.Operation.Move",()=>[{no:1,name:"parent_created_at",kind:"message",T:wn},{no:2,name:"prev_created_at",kind:"message",T:wn},{no:3,name:"created_at",kind:"message",T:wn},{no:4,name:"executed_at",kind:"message",T:wn}],{localName:"Operation_Move"}),_m=je.makeMessageType("yorkie.v1.Operation.Remove",()=>[{no:1,name:"parent_created_at",kind:"message",T:wn},{no:2,name:"created_at",kind:"message",T:wn},{no:3,name:"executed_at",kind:"message",T:wn}],{localName:"Operation_Remove"}),ah=je.makeMessageType("yorkie.v1.Operation.Edit",()=>[{no:1,name:"parent_created_at",kind:"message",T:wn},{no:2,name:"from",kind:"message",T:ju},{no:3,name:"to",kind:"message",T:ju},{no:4,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:wn}},{no:5,name:"content",kind:"scalar",T:9},{no:6,name:"executed_at",kind:"message",T:wn},{no:7,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}}],{localName:"Operation_Edit"}),KI=je.makeMessageType("yorkie.v1.Operation.Select",()=>[{no:1,name:"parent_created_at",kind:"message",T:wn},{no:2,name:"from",kind:"message",T:ju},{no:3,name:"to",kind:"message",T:ju},{no:4,name:"executed_at",kind:"message",T:wn}],{localName:"Operation_Select"}),JO=je.makeMessageType("yorkie.v1.Operation.Style",()=>[{no:1,name:"parent_created_at",kind:"message",T:wn},{no:2,name:"from",kind:"message",T:ju},{no:3,name:"to",kind:"message",T:ju},{no:4,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:5,name:"executed_at",kind:"message",T:wn},{no:6,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:wn}}],{localName:"Operation_Style"}),eS=je.makeMessageType("yorkie.v1.Operation.Increase",()=>[{no:1,name:"parent_created_at",kind:"message",T:wn},{no:2,name:"value",kind:"message",T:Uu},{no:3,name:"executed_at",kind:"message",T:wn}],{localName:"Operation_Increase"}),nb=je.makeMessageType("yorkie.v1.Operation.TreeEdit",()=>[{no:1,name:"parent_created_at",kind:"message",T:wn},{no:2,name:"from",kind:"message",T:zu},{no:3,name:"to",kind:"message",T:zu},{no:4,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:wn}},{no:5,name:"contents",kind:"message",T:Wx,repeated:!0},{no:7,name:"split_level",kind:"scalar",T:5},{no:6,name:"executed_at",kind:"message",T:wn}],{localName:"Operation_TreeEdit"}),rb=je.makeMessageType("yorkie.v1.Operation.TreeStyle",()=>[{no:1,name:"parent_created_at",kind:"message",T:wn},{no:2,name:"from",kind:"message",T:zu},{no:3,name:"to",kind:"message",T:zu},{no:4,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:5,name:"executed_at",kind:"message",T:wn},{no:6,name:"attributes_to_remove",kind:"scalar",T:9,repeated:!0},{no:7,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:wn}}],{localName:"Operation_TreeStyle"}),Uu=je.makeMessageType("yorkie.v1.JSONElementSimple",()=>[{no:1,name:"created_at",kind:"message",T:wn},{no:2,name:"moved_at",kind:"message",T:wn},{no:3,name:"removed_at",kind:"message",T:wn},{no:4,name:"type",kind:"enum",T:je.getEnumType(Vn)},{no:5,name:"value",kind:"scalar",T:12}]),il=je.makeMessageType("yorkie.v1.JSONElement",()=>[{no:1,name:"json_object",kind:"message",T:ib,oneof:"body"},{no:2,name:"json_array",kind:"message",T:ab,oneof:"body"},{no:3,name:"primitive",kind:"message",T:Hx,oneof:"body"},{no:5,name:"text",kind:"message",T:tS,oneof:"body"},{no:6,name:"counter",kind:"message",T:to,oneof:"body"},{no:7,name:"tree",kind:"message",T:sb,oneof:"body"}]),ib=je.makeMessageType("yorkie.v1.JSONElement.JSONObject",()=>[{no:1,name:"nodes",kind:"message",T:Rp,repeated:!0},{no:2,name:"created_at",kind:"message",T:wn},{no:3,name:"moved_at",kind:"message",T:wn},{no:4,name:"removed_at",kind:"message",T:wn}],{localName:"JSONElement_JSONObject"}),ab=je.makeMessageType("yorkie.v1.JSONElement.JSONArray",()=>[{no:1,name:"nodes",kind:"message",T:ob,repeated:!0},{no:2,name:"created_at",kind:"message",T:wn},{no:3,name:"moved_at",kind:"message",T:wn},{no:4,name:"removed_at",kind:"message",T:wn}],{localName:"JSONElement_JSONArray"}),Hx=je.makeMessageType("yorkie.v1.JSONElement.Primitive",()=>[{no:1,name:"type",kind:"enum",T:je.getEnumType(Vn)},{no:2,name:"value",kind:"scalar",T:12},{no:3,name:"created_at",kind:"message",T:wn},{no:4,name:"moved_at",kind:"message",T:wn},{no:5,name:"removed_at",kind:"message",T:wn}],{localName:"JSONElement_Primitive"}),tS=je.makeMessageType("yorkie.v1.JSONElement.Text",()=>[{no:1,name:"nodes",kind:"message",T:Qx,repeated:!0},{no:2,name:"created_at",kind:"message",T:wn},{no:3,name:"moved_at",kind:"message",T:wn},{no:4,name:"removed_at",kind:"message",T:wn}],{localName:"JSONElement_Text"}),to=je.makeMessageType("yorkie.v1.JSONElement.Counter",()=>[{no:1,name:"type",kind:"enum",T:je.getEnumType(Vn)},{no:2,name:"value",kind:"scalar",T:12},{no:3,name:"created_at",kind:"message",T:wn},{no:4,name:"moved_at",kind:"message",T:wn},{no:5,name:"removed_at",kind:"message",T:wn}],{localName:"JSONElement_Counter"}),sb=je.makeMessageType("yorkie.v1.JSONElement.Tree",()=>[{no:1,name:"nodes",kind:"message",T:rS,repeated:!0},{no:2,name:"created_at",kind:"message",T:wn},{no:3,name:"moved_at",kind:"message",T:wn},{no:4,name:"removed_at",kind:"message",T:wn}],{localName:"JSONElement_Tree"}),Rp=je.makeMessageType("yorkie.v1.RHTNode",()=>[{no:1,name:"key",kind:"scalar",T:9},{no:2,name:"element",kind:"message",T:il}]),ob=je.makeMessageType("yorkie.v1.RGANode",()=>[{no:1,name:"next",kind:"message",T:ob},{no:2,name:"element",kind:"message",T:il}]),Cm=je.makeMessageType("yorkie.v1.NodeAttr",()=>[{no:1,name:"value",kind:"scalar",T:9},{no:2,name:"updated_at",kind:"message",T:wn},{no:3,name:"is_removed",kind:"scalar",T:8}]),Qx=je.makeMessageType("yorkie.v1.TextNode",()=>[{no:1,name:"id",kind:"message",T:nS},{no:2,name:"value",kind:"scalar",T:9},{no:3,name:"removed_at",kind:"message",T:wn},{no:4,name:"ins_prev_id",kind:"message",T:nS},{no:5,name:"attributes",kind:"map",K:9,V:{kind:"message",T:Cm}}]),nS=je.makeMessageType("yorkie.v1.TextNodeID",()=>[{no:1,name:"created_at",kind:"message",T:wn},{no:2,name:"offset",kind:"scalar",T:5}]),rS=je.makeMessageType("yorkie.v1.TreeNode",()=>[{no:1,name:"id",kind:"message",T:Ip},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"value",kind:"scalar",T:9},{no:4,name:"removed_at",kind:"message",T:wn},{no:5,name:"ins_prev_id",kind:"message",T:Ip},{no:6,name:"ins_next_id",kind:"message",T:Ip},{no:7,name:"depth",kind:"scalar",T:5},{no:8,name:"attributes",kind:"map",K:9,V:{kind:"message",T:Cm}}]),Wx=je.makeMessageType("yorkie.v1.TreeNodes",()=>[{no:1,name:"content",kind:"message",T:rS,repeated:!0}]),Ip=je.makeMessageType("yorkie.v1.TreeNodeID",()=>[{no:1,name:"created_at",kind:"message",T:wn},{no:2,name:"offset",kind:"scalar",T:5}]),zu=je.makeMessageType("yorkie.v1.TreePos",()=>[{no:1,name:"parent_id",kind:"message",T:Ip},{no:2,name:"left_sibling_id",kind:"message",T:Ip}]);je.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:En}]),je.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:En},{no:9,name:"updated_at",kind:"message",T:En}]),je.makeMessageType("yorkie.v1.UpdatableProjectFields",()=>[{no:1,name:"name",kind:"message",T:Js},{no:2,name:"auth_webhook_url",kind:"message",T:Js},{no:3,name:"auth_webhook_methods",kind:"message",T:JI},{no:4,name:"client_deactivate_threshold",kind:"message",T:Js}]);const JI=je.makeMessageType("yorkie.v1.UpdatableProjectFields.AuthWebhookMethods",()=>[{no:1,name:"methods",kind:"scalar",T:9,repeated:!0}],{localName:"UpdatableProjectFields_AuthWebhookMethods"});je.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:En},{no:5,name:"accessed_at",kind:"message",T:En},{no:6,name:"updated_at",kind:"message",T:En}]);const iS=je.makeMessageType("yorkie.v1.PresenceChange",()=>[{no:1,name:"type",kind:"enum",T:je.getEnumType(sh)},{no:2,name:"presence",kind:"message",T:lb}]),sh=je.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"}]),lb=je.makeMessageType("yorkie.v1.Presence",()=>[{no:1,name:"data",kind:"map",K:9,V:{kind:"scalar",T:9}}]),Qc=je.makeMessageType("yorkie.v1.Checkpoint",()=>[{no:1,name:"server_seq",kind:"scalar",T:3,L:1},{no:2,name:"client_seq",kind:"scalar",T:13}]),ju=je.makeMessageType("yorkie.v1.TextNodePos",()=>[{no:1,name:"created_at",kind:"message",T:wn},{no:2,name:"offset",kind:"scalar",T:5},{no:3,name:"relative_offset",kind:"scalar",T:5}]),wn=je.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}]),e6=je.makeMessageType("yorkie.v1.DocEventBody",()=>[{no:1,name:"topic",kind:"scalar",T:9},{no:2,name:"payload",kind:"scalar",T:12}]),t6=je.makeMessageType("yorkie.v1.DocEvent",()=>[{no:1,name:"type",kind:"enum",T:je.getEnumType(ri)},{no:2,name:"publisher",kind:"scalar",T:9},{no:3,name:"body",kind:"message",T:e6}]),Np=je.makeMessageType("yorkie.v1.ActivateClientRequest",()=>[{no:1,name:"client_key",kind:"scalar",T:9}]),jl=je.makeMessageType("yorkie.v1.ActivateClientResponse",()=>[{no:1,name:"client_id",kind:"scalar",T:9}]),Vx=je.makeMessageType("yorkie.v1.DeactivateClientRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9}]),n6=je.makeMessageType("yorkie.v1.DeactivateClientResponse",[]),r6=je.makeMessageType("yorkie.v1.AttachDocumentRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"change_pack",kind:"message",T:zl}]),i6=je.makeMessageType("yorkie.v1.AttachDocumentResponse",()=>[{no:1,name:"document_id",kind:"scalar",T:9},{no:2,name:"change_pack",kind:"message",T:zl}]),a6=je.makeMessageType("yorkie.v1.DetachDocumentRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"change_pack",kind:"message",T:zl},{no:4,name:"remove_if_not_attached",kind:"scalar",T:8}]),s6=je.makeMessageType("yorkie.v1.DetachDocumentResponse",()=>[{no:2,name:"change_pack",kind:"message",T:zl}]),Dp=je.makeMessageType("yorkie.v1.WatchDocumentRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9}]),Me=je.makeMessageType("yorkie.v1.WatchDocumentResponse",()=>[{no:1,name:"initialization",kind:"message",T:ot,oneof:"body"},{no:2,name:"event",kind:"message",T:t6,oneof:"body"}]),ot=je.makeMessageType("yorkie.v1.WatchDocumentResponse.Initialization",()=>[{no:1,name:"client_ids",kind:"scalar",T:9,repeated:!0}],{localName:"WatchDocumentResponse_Initialization"}),Ge=je.makeMessageType("yorkie.v1.RemoveDocumentRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"change_pack",kind:"message",T:zl}]),an=je.makeMessageType("yorkie.v1.RemoveDocumentResponse",()=>[{no:1,name:"change_pack",kind:"message",T:zl}]),Hn=je.makeMessageType("yorkie.v1.PushPullChangesRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"change_pack",kind:"message",T:zl},{no:4,name:"push_only",kind:"scalar",T:8}]),$r=je.makeMessageType("yorkie.v1.PushPullChangesResponse",()=>[{no:1,name:"change_pack",kind:"message",T:zl}]),xa=je.makeMessageType("yorkie.v1.BroadcastRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"topic",kind:"scalar",T:9},{no:4,name:"payload",kind:"scalar",T:12}]),ii=je.makeMessageType("yorkie.v1.BroadcastResponse",[]),aS={typeName:"yorkie.v1.YorkieService",methods:{activateClient:{name:"ActivateClient",I:Np,O:jl,kind:ha.Unary},deactivateClient:{name:"DeactivateClient",I:Vx,O:n6,kind:ha.Unary},attachDocument:{name:"AttachDocument",I:r6,O:i6,kind:ha.Unary},detachDocument:{name:"DetachDocument",I:a6,O:s6,kind:ha.Unary},removeDocument:{name:"RemoveDocument",I:Ge,O:an,kind:ha.Unary},pushPullChanges:{name:"PushPullChanges",I:Hn,O:$r,kind:ha.Unary},watchDocument:{name:"WatchDocument",I:Dp,O:Me,kind:ha.ServerStreaming},broadcast:{name:"Broadcast",I:xa,O:ii,kind:ha.Unary}}};/** * @license * Copyright 2009 The Closure Library Authors * Copyright 2020 Daniel Wirtz / The long.js Authors. @@ -259,86 +258,86 @@ nn.version="2.30.1";OFe(ji);nn.fn=Ft;nn.min=lUe;nn.max=uUe;nn.now=cUe;nn.utc=qf; * limitations under the License. * * SPDX-License-Identifier: Apache-2.0 - */var rl=null;try{rl=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 _n(y,c,h){this.low=y|0,this.high=c|0,this.unsigned=!!h}_n.prototype.__isLong__,Object.defineProperty(_n.prototype,"__isLong__",{value:!0});function ka(y){return(y&&y.__isLong__)===!0}function Vx(y){var c=Math.clz32(y&-y);return y?31-c:c}_n.isLong=ka;var ch={},$m={};function Vu(y,c){var h,b,E;return c?(y>>>=0,(E=0<=y&&y<256)&&(b=$m[y],b)?b:(h=Ir(y,0,!0),E&&($m[y]=h),h)):(y|=0,(E=-128<=y&&y<128)&&(b=ch[y],b)?b:(h=Ir(y,y<0?-1:0,!1),E&&(ch[y]=h),h))}_n.fromInt=Vu;function Kn(y,c){if(isNaN(y))return c?qu:Xs;if(c){if(y<0)return qu;if(y>=qc)return Qd}else{if(y<=-Bm)return Va;if(y+1>=Bm)return zp}return y<0?Kn(-y,c).neg():Ir(y%Vc|0,y/Vc|0,c)}_n.fromNumber=Kn;function Ir(y,c,h){return new _n(y,c,h)}_n.fromBits=Ir;var Fm=Math.pow;function Up(y,c,h){if(y.length===0)throw Error("empty string");if(typeof c=="number"?(h=c,c=!1):c=!!c,y==="NaN"||y==="Infinity"||y==="+Infinity"||y==="-Infinity")return c?qu:Xs;if(h=h||10,h<2||360)throw Error("interior hyphen");if(b===0)return Up(y.substring(1),c,h).neg();for(var E=Kn(Fm(h,8)),P=Xs,U=0;U>>0:this.low},Pt.toNumber=function(){return this.unsigned?(this.high>>>0)*Vc+(this.low>>>0):this.high*Vc+(this.low>>>0)},Pt.toString=function(c){if(c=c||10,c<2||36>>0,Pe=me.toString(c);if(U=fe,U.isZero())return Pe+Y;for(;Pe.length<6;)Pe="0"+Pe;Y=""+Pe+Y}},Pt.getHighBits=function(){return this.high},Pt.getHighBitsUnsigned=function(){return this.high>>>0},Pt.getLowBits=function(){return this.low},Pt.getLowBitsUnsigned=function(){return this.low>>>0},Pt.getNumBitsAbs=function(){if(this.isNegative())return this.eq(Va)?64:this.neg().getNumBitsAbs();for(var c=this.high!=0?this.high:this.low,h=31;h>0&&!(c&1<=0},Pt.isOdd=function(){return(this.low&1)===1},Pt.isEven=function(){return(this.low&1)===0},Pt.equals=function(c){return ka(c)||(c=Ql(c)),this.unsigned!==c.unsigned&&this.high>>>31===1&&c.high>>>31===1?!1:this.high===c.high&&this.low===c.low},Pt.eq=Pt.equals,Pt.notEquals=function(c){return!this.eq(c)},Pt.neq=Pt.notEquals,Pt.ne=Pt.notEquals,Pt.lessThan=function(c){return this.comp(c)<0},Pt.lt=Pt.lessThan,Pt.lessThanOrEqual=function(c){return this.comp(c)<=0},Pt.lte=Pt.lessThanOrEqual,Pt.le=Pt.lessThanOrEqual,Pt.greaterThan=function(c){return this.comp(c)>0},Pt.gt=Pt.greaterThan,Pt.greaterThanOrEqual=function(c){return this.comp(c)>=0},Pt.gte=Pt.greaterThanOrEqual,Pt.ge=Pt.greaterThanOrEqual,Pt.compare=function(c){if(ka(c)||(c=Ql(c)),this.eq(c))return 0;var h=this.isNegative(),b=c.isNegative();return h&&!b?-1:!h&&b?1:this.unsigned?c.high>>>0>this.high>>>0||c.high===this.high&&c.low>>>0>this.low>>>0?-1:1:this.sub(c).isNegative()?-1:1},Pt.comp=Pt.compare,Pt.negate=function(){return!this.unsigned&&this.eq(Va)?Va:this.not().add(dh)},Pt.neg=Pt.negate,Pt.add=function(c){ka(c)||(c=Ql(c));var h=this.high>>>16,b=this.high&65535,E=this.low>>>16,P=this.low&65535,U=c.high>>>16,Y=c.high&65535,fe=c.low>>>16,me=c.low&65535,Pe=0,St=0,mt=0,nt=0;return nt+=P+me,mt+=nt>>>16,nt&=65535,mt+=E+fe,St+=mt>>>16,mt&=65535,St+=b+Y,Pe+=St>>>16,St&=65535,Pe+=h+U,Pe&=65535,Ir(mt<<16|nt,Pe<<16|St,this.unsigned)},Pt.subtract=function(c){return ka(c)||(c=Ql(c)),this.add(c.neg())},Pt.sub=Pt.subtract,Pt.multiply=function(c){if(this.isZero())return this;if(ka(c)||(c=Ql(c)),rl){var h=rl.mul(this.low,this.high,c.low,c.high);return Ir(h,rl.get_high(),this.unsigned)}if(c.isZero())return this.unsigned?qu:Xs;if(this.eq(Va))return c.isOdd()?Va:Xs;if(c.eq(Va))return this.isOdd()?Va:Xs;if(this.isNegative())return c.isNegative()?this.neg().mul(c.neg()):this.neg().mul(c).neg();if(c.isNegative())return this.mul(c.neg()).neg();if(this.lt(gS)&&c.lt(gS))return Kn(this.toNumber()*c.toNumber(),this.unsigned);var b=this.high>>>16,E=this.high&65535,P=this.low>>>16,U=this.low&65535,Y=c.high>>>16,fe=c.high&65535,me=c.low>>>16,Pe=c.low&65535,St=0,mt=0,nt=0,Jt=0;return Jt+=U*Pe,nt+=Jt>>>16,Jt&=65535,nt+=P*Pe,mt+=nt>>>16,nt&=65535,nt+=U*me,mt+=nt>>>16,nt&=65535,mt+=E*Pe,St+=mt>>>16,mt&=65535,mt+=P*me,St+=mt>>>16,mt&=65535,mt+=U*fe,St+=mt>>>16,mt&=65535,St+=b*Pe+E*me+P*fe+U*Y,St&=65535,Ir(nt<<16|Jt,St<<16|mt,this.unsigned)},Pt.mul=Pt.multiply,Pt.divide=function(c){if(ka(c)||(c=Ql(c)),c.isZero())throw Error("division by zero");if(rl){if(!this.unsigned&&this.high===-2147483648&&c.low===-1&&c.high===-1)return this;var h=(this.unsigned?rl.div_u:rl.div_s)(this.low,this.high,c.low,c.high);return Ir(h,rl.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?qu:Xs;var b,E,P;if(this.unsigned){if(c.unsigned||(c=c.toUnsigned()),c.gt(this))return qu;if(c.gt(this.shru(1)))return Um;P=qu}else{if(this.eq(Va)){if(c.eq(dh)||c.eq(ob))return Va;if(c.eq(Va))return dh;var U=this.shr(1);return b=U.div(c).shl(1),b.eq(Xs)?c.isNegative()?dh:ob:(E=this.sub(c.mul(b)),P=b.add(E.div(c)),P)}else if(c.eq(Va))return this.unsigned?qu:Xs;if(this.isNegative())return c.isNegative()?this.neg().div(c.neg()):this.neg().div(c).neg();if(c.isNegative())return this.div(c.neg()).neg();P=Xs}for(E=this;E.gte(c);){b=Math.max(1,Math.floor(E.toNumber()/c.toNumber()));for(var Y=Math.ceil(Math.log(b)/Math.LN2),fe=Y<=48?1:Fm(2,Y-48),me=Kn(b),Pe=me.mul(c);Pe.isNegative()||Pe.gt(E);)b-=fe,me=Kn(b,this.unsigned),Pe=me.mul(c);me.isZero()&&(me=dh),P=P.add(me),E=E.sub(Pe)}return P},Pt.div=Pt.divide,Pt.modulo=function(c){if(ka(c)||(c=Ql(c)),rl){var h=(this.unsigned?rl.rem_u:rl.rem_s)(this.low,this.high,c.low,c.high);return Ir(h,rl.get_high(),this.unsigned)}return this.sub(this.div(c).mul(c))},Pt.mod=Pt.modulo,Pt.rem=Pt.modulo,Pt.not=function(){return Ir(~this.low,~this.high,this.unsigned)},Pt.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},Pt.clz=Pt.countLeadingZeros,Pt.countTrailingZeros=function(){return this.low?Vx(this.low):Vx(this.high)+32},Pt.ctz=Pt.countTrailingZeros,Pt.and=function(c){return ka(c)||(c=Ql(c)),Ir(this.low&c.low,this.high&c.high,this.unsigned)},Pt.or=function(c){return ka(c)||(c=Ql(c)),Ir(this.low|c.low,this.high|c.high,this.unsigned)},Pt.xor=function(c){return ka(c)||(c=Ql(c)),Ir(this.low^c.low,this.high^c.high,this.unsigned)},Pt.shiftLeft=function(c){return ka(c)&&(c=c.toInt()),(c&=63)===0?this:c<32?Ir(this.low<>>32-c,this.unsigned):Ir(0,this.low<>>c|this.high<<32-c,this.high>>c,this.unsigned):Ir(this.high>>c-32,this.high>=0?0:-1,this.unsigned)},Pt.shr=Pt.shiftRight,Pt.shiftRightUnsigned=function(c){return ka(c)&&(c=c.toInt()),(c&=63)===0?this:c<32?Ir(this.low>>>c|this.high<<32-c,this.high>>>c,this.unsigned):c===32?Ir(this.high,0,this.unsigned):Ir(this.high>>>c-32,0,this.unsigned)},Pt.shru=Pt.shiftRightUnsigned,Pt.shr_u=Pt.shiftRightUnsigned,Pt.rotateLeft=function(c){var h;return ka(c)&&(c=c.toInt()),(c&=63)===0?this:c===32?Ir(this.high,this.low,this.unsigned):c<32?(h=32-c,Ir(this.low<>>h,this.high<>>h,this.unsigned)):(c-=32,h=32-c,Ir(this.high<>>h,this.low<>>h,this.unsigned))},Pt.rotl=Pt.rotateLeft,Pt.rotateRight=function(c){var h;return ka(c)&&(c=c.toInt()),(c&=63)===0?this:c===32?Ir(this.high,this.low,this.unsigned):c<32?(h=32-c,Ir(this.high<>>c,this.low<>>c,this.unsigned)):(c-=32,h=32-c,Ir(this.low<>>c,this.high<>>c,this.unsigned))},Pt.rotr=Pt.rotateRight,Pt.toSigned=function(){return this.unsigned?Ir(this.low,this.high,!1):this},Pt.toUnsigned=function(){return this.unsigned?this:Ir(this.low,this.high,!0)},Pt.toBytes=function(c){return c?this.toBytesLE():this.toBytesBE()},Pt.toBytesLE=function(){var c=this.high,h=this.low;return[h&255,h>>>8&255,h>>>16&255,h>>>24,c&255,c>>>8&255,c>>>16&255,c>>>24]},Pt.toBytesBE=function(){var c=this.high,h=this.low;return[c>>>24,c>>>16&255,c>>>8&255,c&255,h>>>24,h>>>16&255,h>>>8&255,h&255]},_n.fromBytes=function(c,h,b){return b?_n.fromBytesLE(c,h):_n.fromBytesBE(c,h)},_n.fromBytesLE=function(c,h){return new _n(c[0]|c[1]<<8|c[2]<<16|c[3]<<24,c[4]|c[5]<<8|c[6]<<16|c[7]<<24,h)},_n.fromBytesBE=function(c,h){return new _n(c[4]<<24|c[5]<<16|c[6]<<8|c[7],c[0]<<24|c[1]<<16|c[2]<<8|c[3],h)};const c6=je.makeMessageType("google.rpc.ErrorInfo",()=>[{no:1,name:"reason",kind:"scalar",T:9},{no:2,name:"domain",kind:"scalar",T:9},{no:3,name:"metadata",kind:"map",K:9,V:{kind:"scalar",T:9}}]);je.makeMessageType("google.rpc.RetryInfo",()=>[{no:1,name:"retry_delay",kind:"message",T:kr}]),je.makeMessageType("google.rpc.DebugInfo",()=>[{no:1,name:"stack_entries",kind:"scalar",T:9,repeated:!0},{no:2,name:"detail",kind:"scalar",T:9}]),je.makeMessageType("google.rpc.QuotaFailure",()=>[{no:1,name:"violations",kind:"message",T:d6,repeated:!0}]);const d6=je.makeMessageType("google.rpc.QuotaFailure.Violation",()=>[{no:1,name:"subject",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9}],{localName:"QuotaFailure_Violation"});je.makeMessageType("google.rpc.PreconditionFailure",()=>[{no:1,name:"violations",kind:"message",T:lb,repeated:!0}]);const lb=je.makeMessageType("google.rpc.PreconditionFailure.Violation",()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"subject",kind:"scalar",T:9},{no:3,name:"description",kind:"scalar",T:9}],{localName:"PreconditionFailure_Violation"});je.makeMessageType("google.rpc.BadRequest",()=>[{no:1,name:"field_violations",kind:"message",T:ub,repeated:!0}]);const ub=je.makeMessageType("google.rpc.BadRequest.FieldViolation",()=>[{no:1,name:"field",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9}],{localName:"BadRequest_FieldViolation"});je.makeMessageType("google.rpc.RequestInfo",()=>[{no:1,name:"request_id",kind:"scalar",T:9},{no:2,name:"serving_data",kind:"scalar",T:9}]),je.makeMessageType("google.rpc.ResourceInfo",()=>[{no:1,name:"resource_type",kind:"scalar",T:9},{no:2,name:"resource_name",kind:"scalar",T:9},{no:3,name:"owner",kind:"scalar",T:9},{no:4,name:"description",kind:"scalar",T:9}]),je.makeMessageType("google.rpc.Help",()=>[{no:1,name:"links",kind:"message",T:bS,repeated:!0}]);const bS=je.makeMessageType("google.rpc.Help.Link",()=>[{no:1,name:"description",kind:"scalar",T:9},{no:2,name:"url",kind:"scalar",T:9}],{localName:"Help_Link"});je.makeMessageType("google.rpc.LocalizedMessage",()=>[{no:1,name:"locale",kind:"scalar",T:9},{no:2,name:"message",kind:"scalar",T:9}]);var Ve=(y=>(y.Ok="ok",y.ErrClientNotActivated="ErrClientNotActivated",y.ErrClientNotFound="ErrClientNotFound",y.ErrUnimplemented="ErrUnimplemented",y.ErrInvalidType="ErrInvalidType",y.ErrDummy="ErrDummy",y.ErrDocumentNotAttached="ErrDocumentNotAttached",y.ErrDocumentNotDetached="ErrDocumentNotDetached",y.ErrDocumentRemoved="ErrDocumentRemoved",y.ErrInvalidObjectKey="ErrInvalidObjectKey",y.ErrInvalidArgument="ErrInvalidArgument",y.ErrNotInitialized="ErrNotInitialized",y.ErrNotReady="ErrNotReady",y.ErrRefused="ErrRefused",y.ErrContextNotProvided="ErrContextNotProvided",y))(Ve||{});class Ge extends Error{constructor(c,h){super(h),s(this,"name","YorkieError"),s(this,"stack"),this.code=c,this.message=h,this.toString=()=>`[code=${this.code}]: ${this.message}`}}function Wl(y){if(y instanceof Map){const c=Array.from(y);return new Map(JSON.parse(JSON.stringify(c)))}return JSON.parse(JSON.stringify(y))}const Gx=y=>y?Object.entries(y).length===0:!0,ki=y=>{const c={};for(const[h,b]of Object.entries(y))c[h]=JSON.stringify(b);return c},ia=y=>{const c={};for(const[h,b]of Object.entries(y))c[h]=JSON.parse(b);return c};var Wd=(y=>(y.Put="put",y.Clear="clear",y))(Wd||{});class yS{constructor(c,h){s(this,"context"),s(this,"presence"),this.context=c,this.presence=h}set(c,h){for(const b of Object.keys(c))this.presence[b]=c[b];this.context.setPresenceChange({type:"put",presence:Wl(this.presence)}),this.context.setReversePresence(c,h)}get(c){return this.presence[c]}clear(){this.presence={},this.context.setPresenceChange({type:"clear"})}}const zm="000000000000000000000000",f6="FFFFFFFFFFFFFFFFFFFFFFFF";class qa{constructor(c,h,b){s(this,"lamport"),s(this,"delimiter"),s(this,"actorID"),this.lamport=c,this.delimiter=h,this.actorID=b}static of(c,h,b){return new qa(c,h,b)}static fromStruct(c){return qa.of(_n.fromString(c.lamport,!0),c.delimiter,c.actorID)}toIDString(){return`${this.lamport.toString()}:${this.actorID}:${this.delimiter}`}toStruct(){return{lamport:this.getLamportAsString(),delimiter:this.getDelimiter(),actorID:this.getActorID()}}toTestString(){return`${this.lamport.toString()}:${this.actorID.slice(-2)}:${this.delimiter}`}setActor(c){return new qa(this.lamport,this.delimiter,c)}getLamportAsString(){return this.lamport.toString()}getLamport(){return this.lamport}getDelimiter(){return this.delimiter}getActorID(){return this.actorID}after(c){return this.compare(c)>0}equals(c){return this.compare(c)===0}compare(c){if(this.lamport.greaterThan(c.lamport))return 1;if(c.lamport.greaterThan(this.lamport))return-1;const h=this.actorID.localeCompare(c.actorID);return h!==0?h:this.delimiter>c.delimiter?1:c.delimiter>this.delimiter?-1:0}}const fh=0,vS=4294967295,jp=_n.MAX_VALUE,ks=new qa(_n.fromNumber(0),fh,zm);new qa(_n.fromNumber(1),fh+1,zm);const Gc=new qa(jp,vS,f6);function Io(y){return y.replace(/["'\\\n\r\f\b\t\u2028\u2029]/g,function(c){switch(c){case'"':case"\\":return"\\"+c;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 c}})}class Gu{constructor(c){s(this,"createdAt"),s(this,"movedAt"),s(this,"removedAt"),this.createdAt=c}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(c){return!this.movedAt||c&&c.after(this.movedAt)?(this.movedAt=c,!0):!1}setRemovedAt(c){this.removedAt=c}remove(c){return c&&c.after(this.getPositionedAt())&&(!this.removedAt||c.after(this.removedAt))?(this.removedAt=c,!0):!1}isRemoved(){return!!this.removedAt}}class Vd extends Gu{constructor(c){super(c)}}class OS{constructor(c,h){s(this,"strKey"),s(this,"value"),this.strKey=c,this.value=h}static of(c,h){return new OS(c,h)}isRemoved(){return this.value.isRemoved()}getStrKey(){return this.strKey}getValue(){return this.value}remove(c){return this.value.remove(c)}}class jm{constructor(){s(this,"nodeMapByKey"),s(this,"nodeMapByCreatedAt"),this.nodeMapByKey=new Map,this.nodeMapByCreatedAt=new Map}static create(){return new jm}set(c,h,b){let E;const P=this.nodeMapByKey.get(c);P!=null&&!P.isRemoved()&&P.remove(b)&&(E=P.getValue());const U=OS.of(c,h);return this.nodeMapByCreatedAt.set(h.getCreatedAt().toIDString(),U),(P==null||b.after(P.getValue().getPositionedAt()))&&(this.nodeMapByKey.set(c,U),h.setMovedAt(b)),E}delete(c,h){if(!this.nodeMapByCreatedAt.has(c.toIDString()))throw new Ge(Ve.ErrInvalidArgument,`fail to find ${c.toIDString()}`);const b=this.nodeMapByCreatedAt.get(c.toIDString());return b.remove(h),b.getValue()}subPathOf(c){const h=this.nodeMapByCreatedAt.get(c.toIDString());if(h)return h.getStrKey()}purge(c){const h=this.nodeMapByCreatedAt.get(c.getCreatedAt().toIDString());if(!h)throw new Ge(Ve.ErrInvalidArgument,`fail to find ${c.getCreatedAt().toIDString()}`);const b=this.nodeMapByKey.get(h.getStrKey());h===b&&this.nodeMapByKey.delete(b.getStrKey()),this.nodeMapByCreatedAt.delete(h.getValue().getCreatedAt().toIDString())}deleteByKey(c,h){const b=this.nodeMapByKey.get(c);if(b!=null&&b.remove(h))return b.getValue()}has(c){const h=this.nodeMapByKey.get(c);return h==null?!1:!h.isRemoved()}getByID(c){return this.nodeMapByCreatedAt.get(c.toIDString())}get(c){const h=this.nodeMapByKey.get(c);if(!(!h||h.isRemoved()))return h}*[Symbol.iterator](){for(const[,c]of this.nodeMapByKey)yield c}}class Ks extends Vd{constructor(c,h){super(c),s(this,"memberNodes"),this.memberNodes=h}static create(c,h){if(!h)return new Ks(c,jm.create());const b=jm.create();for(const[E,P]of Object.entries(h))b.set(E,P.deepcopy(),P.getCreatedAt());return new Ks(c,b)}subPathOf(c){return this.memberNodes.subPathOf(c)}purge(c){this.memberNodes.purge(c)}set(c,h,b){return this.memberNodes.set(c,h,b)}delete(c,h){return this.memberNodes.delete(c,h)}deleteByKey(c,h){return this.memberNodes.deleteByKey(c,h)}get(c){const h=this.memberNodes.get(c);return h==null?void 0:h.getValue()}getByID(c){const h=this.memberNodes.getByID(c);return h==null?void 0:h.getValue()}has(c){return this.memberNodes.has(c)}toJSON(){const c=[];for(const[h,b]of this)c.push(`"${Io(h)}":${b.toJSON()}`);return`{${c.join(",")}}`}toJS(){return JSON.parse(this.toJSON())}toJSForTest(){const c={};for(const[h,b]of this){const{createdAt:E,value:P,type:U}=b.toJSForTest();c[h]={key:h,createdAt:E,value:P,type:U}}return{createdAt:this.getCreatedAt().toTestString(),value:c,type:"YORKIE_OBJECT"}}getKeys(){const c=Array();for(const[h]of this)c.push(h);return c}toSortedJSON(){var c;const h=Array();for(const[E]of this)h.push(E);const b=[];for(const E of h.sort()){const P=(c=this.memberNodes.get(E))==null?void 0:c.getValue();b.push(`"${Io(E)}":${P.toSortedJSON()}`)}return`{${b.join(",")}}`}getRHT(){return this.memberNodes}deepcopy(){const c=Ks.create(this.getCreatedAt());for(const h of this.memberNodes)c.memberNodes.set(h.getStrKey(),h.getValue().deepcopy(),this.getPositionedAt());return c.remove(this.getRemovedAt()),c}getDescendants(c){for(const h of this.memberNodes){const b=h.getValue();if(c(b,this))return;b instanceof Vd&&b.getDescendants(c)}}*[Symbol.iterator](){const c=new Set;for(const h of this.memberNodes)c.has(h.getStrKey())||(c.add(h.getStrKey()),h.isRemoved()||(yield[h.getStrKey(),h.getValue()]))}}var Xr=(y=>(y.Local="local",y.Remote="remote",y.UndoRedo="undoredo",y))(Xr||{});class Js{constructor(c,h){s(this,"parentCreatedAt"),s(this,"executedAt"),this.parentCreatedAt=c,this.executedAt=h}getParentCreatedAt(){return this.parentCreatedAt}getExecutedAt(){if(!this.executedAt)throw new Ge(Ve.ErrNotReady,"executedAt is not set yet");return this.executedAt}setActor(c){this.executedAt&&(this.executedAt=this.executedAt.setActor(c))}setExecutedAt(c){this.executedAt=c}}class Hp{constructor(c){s(this,"value"),s(this,"left"),s(this,"right"),s(this,"parent"),s(this,"weight"),this.value=c,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(c){this.left=c}setRight(c){this.right=c}setParent(c){this.parent=c}unlink(){this.parent=void 0,this.right=void 0,this.left=void 0}hasLinks(){return this.hasParent()||this.hasLeft()||this.hasRight()}increaseWeight(c){this.weight+=c}initWeight(){this.weight=this.getLength()}}class Qp{constructor(c){s(this,"root"),this.root=c}get length(){return this.root?this.root.getWeight():0}find(c){if(!this.root||c<0)return[void 0,0];let h=this.root;for(;;)if(h.hasLeft()&&c<=h.getLeftWeight())h=h.getLeft();else if(h.hasRight()&&h.getLeftWeight()+h.getLength()h.getLength())throw new Ge(Ve.ErrInvalidArgument,`out of index range: pos: ${c} > node.length: ${h.getLength()}`);return[h,c]}indexOf(c){if(!c||c!==this.root&&!c.hasLinks())return-1;let h=0,b=c,E;for(;b;)(!E||E===b.getRight())&&(h+=b.getLength()+(b.hasLeft()?b.getLeftWeight():0)),E=b,b=b.getParent();return h-c.getLength()}getRoot(){return this.root}insert(c){return this.insertAfter(this.root,c)}insertAfter(c,h){return c?(this.splayNode(c),this.root=h,h.setRight(c.getRight()),c.hasRight()&&c.getRight().setParent(h),h.setLeft(c),c.setParent(h),c.setRight(),this.updateWeight(c),this.updateWeight(h),h):(this.root=h,h)}updateWeight(c){c.initWeight(),c.hasLeft()&&c.increaseWeight(c.getLeftWeight()),c.hasRight()&&c.increaseWeight(c.getRightWeight())}updateTreeWeight(c){for(;c;)this.updateWeight(c),c=c.getParent()}splayNode(c){if(c)for(;;)if(this.isLeftChild(c.getParent())&&this.isRightChild(c))this.rotateLeft(c),this.rotateRight(c);else if(this.isRightChild(c.getParent())&&this.isLeftChild(c))this.rotateRight(c),this.rotateLeft(c);else if(this.isLeftChild(c.getParent())&&this.isLeftChild(c))this.rotateRight(c.getParent()),this.rotateRight(c);else if(this.isRightChild(c.getParent())&&this.isRightChild(c))this.rotateLeft(c.getParent()),this.rotateLeft(c);else{this.isLeftChild(c)?this.rotateRight(c):this.isRightChild(c)&&this.rotateLeft(c),this.updateWeight(c);return}}delete(c){this.splayNode(c);const h=new Qp(c.getLeft());h.root&&h.root.setParent();const b=new Qp(c.getRight());if(b.root&&b.root.setParent(),h.root){const E=h.getRightmost();h.splayNode(E),h.root.setRight(b.root),b.root&&b.root.setParent(h.root),this.root=h.root}else this.root=b.root;c.unlink(),this.root&&this.updateWeight(this.root)}deleteRange(c,h){if(!h){this.splayNode(c),this.cutOffRight(c);return}this.splayNode(c),this.splayNode(h),h.getLeft()!=c&&this.rotateRight(c),this.cutOffRight(c)}cutOffRight(c){const h=[];this.traversePostorder(c.getRight(),h);for(const b of h)b.initWeight();this.updateTreeWeight(c)}toTestString(){const c=[];return this.traverseInorder(this.root,c),c.map(h=>`[${h.getWeight()},${h.getLength()}]${h.getValue()||""}`).join("")}checkWeight(){const c=[];this.traverseInorder(this.root,c);for(const h of c)if(h.getWeight()!=h.getLength()+h.getLeftWeight()+h.getRightWeight())return!1;return!0}getRightmost(){let c=this.root;for(;c.hasRight();)c=c.getRight();return c}traverseInorder(c,h){c&&(this.traverseInorder(c.getLeft(),h),h.push(c),this.traverseInorder(c.getRight(),h))}traversePostorder(c,h){c&&(this.traversePostorder(c.getLeft(),h),this.traversePostorder(c.getRight(),h),h.push(c))}rotateLeft(c){const h=c.getParent();h.hasParent()?h===h.getParent().getLeft()?h.getParent().setLeft(c):h.getParent().setRight(c):this.root=c,c.setParent(h.getParent()),h.setRight(c.getLeft()),h.hasRight()&&h.getRight().setParent(h),c.setLeft(h),c.getLeft().setParent(c),this.updateWeight(h),this.updateWeight(c)}rotateRight(c){const h=c.getParent();h.hasParent()?h===h.getParent().getLeft()?h.getParent().setLeft(c):h.getParent().setRight(c):this.root=c,c.setParent(h.getParent()),h.setLeft(c.getRight()),h.hasLeft()&&h.getLeft().setParent(h),c.setRight(h),c.getRight().setParent(c),this.updateWeight(h),this.updateWeight(c)}isLeftChild(c){return c&&c.hasParent()?c.getParent().getLeft()===c:!1}isRightChild(c){return c&&c.hasParent()?c.getParent().getRight()===c:!1}}var ne=(y=>(y[y.Null=0]="Null",y[y.Boolean=1]="Boolean",y[y.Integer=2]="Integer",y[y.Long=3]="Long",y[y.Double=4]="Double",y[y.String=5]="String",y[y.Bytes=6]="Bytes",y[y.Date=7]="Date",y))(ne||{});class Qr extends Gu{constructor(c,h){super(h),s(this,"valueType"),s(this,"value"),this.valueType=Qr.getPrimitiveType(c),this.value=c===void 0?null:c}static of(c,h){return new Qr(c,h)}static valueFromBytes(c,h){switch(c){case 0:return null;case 1:return!!h[0];case 2:return h[0]|h[1]<<8|h[2]<<16|h[3]<<24;case 4:{const b=new DataView(h.buffer);return h.forEach(function(E,P){b.setUint8(P,E)}),b.getFloat64(0,!0)}case 5:return new TextDecoder("utf-8").decode(h);case 3:return _n.fromBytesLE(Array.from(h));case 6:return h;case 7:return new Date(_n.fromBytesLE(Array.from(h),!0).toNumber());default:throw new Ge(Ve.ErrUnimplemented,`unimplemented type: ${c}`)}}toJSON(){return this.valueType===5?`"${Io(this.value)}"`:`${this.value}`}toSortedJSON(){return this.toJSON()}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:this.value,type:"YORKIE_PRIMITIVE"}}deepcopy(){const c=Qr.of(this.value,this.getCreatedAt());return c.setMovedAt(this.getMovedAt()),c.setRemovedAt(this.getRemovedAt()),c}getType(){return this.valueType}static getPrimitiveType(c){switch(typeof c){case"undefined":return 0;case"boolean":return 1;case"number":return this.isInteger(c)?2:4;case"string":return 5;case"object":if(c===null)return 0;if(c instanceof _n)return 3;if(c instanceof Uint8Array)return 6;if(c instanceof Date)return 7}}static isSupport(c){return Qr.getPrimitiveType(c)!==void 0}static isInteger(c){return c%1===0}isNumericType(){const c=this.valueType;return c===2||c===3||c===4}getValue(){return this.value}toBytes(){switch(this.valueType){case 0:return new Uint8Array;case 1:return this.value?new Uint8Array([1]):new Uint8Array([0]);case 2:{const c=this.value;return new Uint8Array([c&255,c>>8&255,c>>16&255,c>>24&255])}case 4:{const c=this.value,h=new Uint8Array(8);return new DataView(h.buffer).setFloat64(0,c,!0),h}case 5:return new TextEncoder().encode(this.value);case 3:{const h=this.value.toBytesLE();return Uint8Array.from(h)}case 6:return this.value;case 7:{const c=this.value,h=_n.fromNumber(c.getTime(),!0).toBytesLE();return Uint8Array.from(h)}default:throw new Ge(Ve.ErrUnimplemented,`unimplemented type: ${this.valueType}`)}}}class hh extends Hp{constructor(c){super(c),s(this,"prev"),s(this,"next"),this.value=c}static createAfter(c,h){const b=new hh(h),E=c.next;return c.next=b,b.prev=c,b.next=E,E&&(E.prev=b),b}remove(c){return this.value.remove(c)}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 fs{constructor(){s(this,"dummyHead"),s(this,"last"),s(this,"nodeMapByIndex"),s(this,"nodeMapByCreatedAt");const c=Qr.of(0,ks);c.setRemovedAt(ks),this.dummyHead=new hh(c),this.last=this.dummyHead,this.nodeMapByIndex=new Qp,this.nodeMapByCreatedAt=new Map,this.nodeMapByIndex.insert(this.dummyHead),this.nodeMapByCreatedAt.set(this.dummyHead.getCreatedAt().toIDString(),this.dummyHead)}static create(){return new fs}get length(){return this.nodeMapByIndex.length}findNextBeforeExecutedAt(c,h){let b=this.nodeMapByCreatedAt.get(c.toIDString());if(!b)throw new Ge(Ve.ErrInvalidArgument,`cant find the given node: ${c.toIDString()}`);for(;b.getNext()&&b.getNext().getPositionedAt().after(h);)b=b.getNext();return b}release(c){this.last===c&&(this.last=c.getPrev()),c.release(),this.nodeMapByIndex.delete(c),this.nodeMapByCreatedAt.delete(c.getValue().getCreatedAt().toIDString())}insertAfter(c,h,b=h.getCreatedAt()){const E=this.findNextBeforeExecutedAt(c,b),P=hh.createAfter(E,h);E===this.last&&(this.last=P),this.nodeMapByIndex.insertAfter(E,P),this.nodeMapByCreatedAt.set(P.getCreatedAt().toIDString(),P)}moveAfter(c,h,b){const E=this.nodeMapByCreatedAt.get(c.toIDString());if(!E)throw new Ge(Ve.ErrInvalidArgument,`cant find the given node: ${c.toIDString()}`);const P=this.nodeMapByCreatedAt.get(h.toIDString());if(!P)throw new Ge(Ve.ErrInvalidArgument,`cant find the given node: ${h.toIDString()}`);E!==P&&(!P.getValue().getMovedAt()||b.after(P.getValue().getMovedAt()))&&(this.release(P),this.insertAfter(E.getCreatedAt(),P.getValue(),b),P.getValue().setMovedAt(b))}insert(c){this.insertAfter(this.last.getCreatedAt(),c)}getByID(c){return this.nodeMapByCreatedAt.get(c.toIDString())}subPathOf(c){const h=this.nodeMapByCreatedAt.get(c.toIDString());if(h)return String(this.nodeMapByIndex.indexOf(h))}purge(c){const h=this.nodeMapByCreatedAt.get(c.getCreatedAt().toIDString());if(!h)throw new Ge(Ve.ErrInvalidArgument,`fail to find the given createdAt: ${c.getCreatedAt().toIDString()}`);this.release(h)}getByIndex(c){if(c>=this.length)return;const[h,b]=this.nodeMapByIndex.find(c);let E=h;if(c===0&&h===this.dummyHead||b>0)do E&&(E=E.getNext());while(E&&E.isRemoved());return E}getPrevCreatedAt(c){let h=this.nodeMapByCreatedAt.get(c.toIDString());do h=h.getPrev();while(this.dummyHead!==h&&h.isRemoved());return h.getValue().getCreatedAt()}delete(c,h){const b=this.nodeMapByCreatedAt.get(c.toIDString()),E=b.isRemoved();return b.remove(h)&&!E&&this.nodeMapByIndex.splayNode(b),b.getValue()}deleteByIndex(c,h){const b=this.getByIndex(c);if(b)return b.remove(h)&&this.nodeMapByIndex.splayNode(b),b.getValue()}getHead(){return this.dummyHead.getValue()}getLast(){return this.last.getValue()}getLastCreatedAt(){return this.last.getCreatedAt()}toTestString(){const c=[];for(const h of this){const b=`${h.getCreatedAt().toIDString()}:${h.getValue().toJSON()}`;h.isRemoved()?c.push(`{${b}}`):c.push(`[${b}]`)}return c.join("")}*[Symbol.iterator](){let c=this.dummyHead.getNext();for(;c;)yield c,c=c.getNext()}}class $n extends Vd{constructor(c,h){super(c),s(this,"elements"),this.elements=h}static create(c,h){if(!h)return new $n(c,fs.create());const b=fs.create();for(const E of h)b.insertAfter(b.getLastCreatedAt(),E.deepcopy());return new $n(c,b)}subPathOf(c){return this.elements.subPathOf(c)}purge(c){this.elements.purge(c)}insertAfter(c,h){this.elements.insertAfter(c,h)}moveAfter(c,h,b){this.elements.moveAfter(c,h,b)}get(c){const h=this.elements.getByIndex(c);return h==null?void 0:h.getValue()}getByID(c){const h=this.elements.getByID(c);return h==null?void 0:h.getValue()}getHead(){return this.elements.getHead()}getLast(){return this.elements.getLast()}getPrevCreatedAt(c){return this.elements.getPrevCreatedAt(c)}delete(c,h){return this.elements.delete(c,h)}deleteByIndex(c,h){return this.elements.deleteByIndex(c,h)}getLastCreatedAt(){return this.elements.getLastCreatedAt()}get length(){return this.elements.length}*[Symbol.iterator](){for(const c of this.elements)c.isRemoved()||(yield c.getValue())}toTestString(){return this.elements.toTestString()}getDescendants(c){for(const h of this.elements){const b=h.getValue();if(c(b,this))return;b instanceof Vd&&b.getDescendants(c)}}toJSON(){const c=[];for(const h of this)c.push(h.toJSON());return`[${c.join(",")}]`}toJS(){return JSON.parse(this.toJSON())}toJSForTest(){const c={};for(let h=0;h({...mt,value:mt.value?{attributes:ia(mt.value.getAttributes()),content:mt.value.getContent()}:{attributes:void 0,content:""},type:"content"}));return[fe,St,me,[Y,Y]]}setStyle(c,h,b,E){const[,P]=this.rgaTreeSplit.findNodeWithSplit(c[1],b),[,U]=this.rgaTreeSplit.findNodeWithSplit(c[0],b),Y=[],fe=this.rgaTreeSplit.findBetween(U,P),me=new Map,Pe=[];for(const mt of fe){const nt=mt.getCreatedAt().getActorID(),Jt=E!=null&&E.size?E.has(nt)?E.get(nt):ks:Gc;if(mt.canStyle(b,Jt)){const Cn=me.get(nt),xn=mt.getCreatedAt();(!Cn||xn.after(Cn))&&me.set(nt,xn),Pe.push(mt)}}const St=[];for(const mt of Pe){if(mt.isRemoved())continue;const[nt,Jt]=this.rgaTreeSplit.findIndexesFromRange(mt.createPosRange());Y.push({type:"style",actor:b.getActorID(),from:nt,to:Jt,value:{attributes:ia(h)}});for(const[Cn,xn]of Object.entries(h)){const[lr]=mt.getValue().setAttr(Cn,xn,b);lr!==void 0&&St.push({parent:mt.getValue(),child:lr})}}return[me,St,Y]}indexRangeToPosRange(c,h){const b=this.rgaTreeSplit.indexToPos(c);return c===h?[b,b]:[b,this.rgaTreeSplit.indexToPos(h)]}get length(){return this.rgaTreeSplit.length}getTreeByIndex(){return this.rgaTreeSplit.getTreeByIndex()}getTreeByID(){return this.rgaTreeSplit.getTreeByID()}toJSON(){const c=[];for(const h of this.rgaTreeSplit)h.isRemoved()||c.push(h.getValue().toJSON());return`[${c.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 c=[];for(const h of this.rgaTreeSplit)if(!h.isRemoved()){const b=h.getValue();c.push({attributes:ia(b.getAttributes()),content:b.getContent()})}return c}getRGATreeSplit(){return this.rgaTreeSplit}toTestString(){return this.rgaTreeSplit.toTestString()}deepcopy(){const c=new il(this.rgaTreeSplit.deepcopy(),this.getCreatedAt());return c.remove(this.getRemovedAt()),c}findIndexesFromRange(c){return this.rgaTreeSplit.findIndexesFromRange(c)}getGCPairs(){const c=[];for(const h of this.rgaTreeSplit){h.getRemovedAt()&&c.push({parent:this.rgaTreeSplit,child:h});for(const b of h.getValue().getGCPairs())c.push(b)}return c}}class Wm extends Js{constructor(c,h,b,E,P,U,Y){super(c,Y),s(this,"fromPos"),s(this,"toPos"),s(this,"maxCreatedAtMapByActor"),s(this,"content"),s(this,"attributes"),this.fromPos=h,this.toPos=b,this.maxCreatedAtMapByActor=E,this.content=P,this.attributes=U}static create(c,h,b,E,P,U,Y){return new Wm(c,h,b,E,P,U,Y)}execute(c){const h=c.findByCreatedAt(this.getParentCreatedAt());if(!h)throw new Ge(Ve.ErrInvalidArgument,`fail to find ${this.getParentCreatedAt()}`);if(!(h instanceof il))throw new Ge(Ve.ErrInvalidArgument,"fail to execute, only Text can execute edit");const b=h,[,E,P]=b.edit([this.fromPos,this.toPos],this.content,this.getExecutedAt(),Object.fromEntries(this.attributes),this.maxCreatedAtMapByActor);for(const U of P)c.registerGCPair(U);return{opInfos:E.map(({from:U,to:Y,value:fe})=>({type:"edit",from:U,to:Y,value:fe,path:c.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const c=this.getParentCreatedAt().toTestString(),h=this.fromPos.toTestString(),b=this.toPos.toTestString(),E=this.content;return`${c}.EDIT(${h},${b},${E})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getContent(){return this.content}getAttributes(){return this.attributes||new Map}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}class No extends Js{constructor(c,h,b,E,P,U){super(c,U),s(this,"fromPos"),s(this,"toPos"),s(this,"maxCreatedAtMapByActor"),s(this,"attributes"),this.fromPos=h,this.toPos=b,this.maxCreatedAtMapByActor=E,this.attributes=P}static create(c,h,b,E,P,U){return new No(c,h,b,E,P,U)}execute(c){const h=c.findByCreatedAt(this.getParentCreatedAt());if(!h)throw new Ge(Ve.ErrInvalidArgument,`fail to find ${this.getParentCreatedAt()}`);if(!(h instanceof il))throw new Ge(Ve.ErrInvalidArgument,"fail to execute, only Text can execute edit");const b=h,[,E,P]=b.setStyle([this.fromPos,this.toPos],this.attributes?Object.fromEntries(this.attributes):{},this.getExecutedAt(),this.maxCreatedAtMapByActor);for(const U of E)c.registerGCPair(U);return{opInfos:P.map(({from:U,to:Y,value:fe})=>({type:"style",from:U,to:Y,value:fe,path:c.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const c=this.getParentCreatedAt().toTestString(),h=this.fromPos.toTestString(),b=this.toPos.toTestString(),E=this.attributes;return`${c}.STYL(${h},${b},${JSON.stringify(E)})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getAttributes(){return this.attributes}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}const h6=2,p6="root",Zc="text";function Vm(y,c){let h=0;const b=y.children;for(let E=0;E0)throw new Ge(Ve.ErrRefused,"Text node cannot have children")}updateAncestorsSize(){let c=this.parent;const h=this.isRemoved?-1:1;for(;c&&(c.size+=this.paddedSize*h,!c.isRemoved);)c=c.parent}updateDescendantsSize(){let c=0;for(const h of this._children){const b=h.updateDescendantsSize();h.isRemoved||(c+=b)}return this.size+=c,this.paddedSize}get isText(){return this.type===Zc}get paddedSize(){return this.size+(this.isText?0:h6)}isAncestorOf(c){return Xc(this,c)}get nextSibling(){const c=this.parent.findOffset(this),h=this.parent.children[c+1];if(h)return h}get prevSibling(){const c=this.parent.findOffset(this),h=this.parent.children[c-1];if(h)return h}splitText(c,h){if(c===0||c===this.size)return;const b=this.value.slice(0,c),E=this.value.slice(c);if(!E.length)return;this.value=b;const P=this.cloneText(c+h);return P.value=E,this.parent.insertAfterInternal(P,this),P}get children(){return this._children.filter(c=>!c.isRemoved)}get allChildren(){return[...this._children]}hasTextChild(){return this.children.length>0&&this.children.every(c=>c.isText)}append(...c){if(this.isText)throw new Ge(Ve.ErrRefused,"Text node cannot have children");this._children.push(...c);for(const h of c)h.parent=this,h.updateAncestorsSize()}prepend(...c){if(this.isText)throw new Ge(Ve.ErrRefused,"Text node cannot have children");this._children.unshift(...c);for(const h of c)h.parent=this}insertBefore(c,h){if(this.isText)throw new Ge(Ve.ErrRefused,"Text node cannot have children");const b=this._children.indexOf(h);if(b===-1)throw new Ge(Ve.ErrInvalidArgument,"child not found");this.insertAtInternal(c,b),c.updateAncestorsSize()}insertAfter(c,h){if(this.isText)throw new Ge(Ve.ErrRefused,"Text node cannot have children");const b=this._children.indexOf(h);if(b===-1)throw new Ge(Ve.ErrInvalidArgument,"child not found");this.insertAtInternal(c,b+1),c.updateAncestorsSize()}insertAt(c,h){if(this.isText)throw new Ge(Ve.ErrRefused,"Text node cannot have children");this.insertAtInternal(c,h),c.updateAncestorsSize()}removeChild(c){if(this.isText)throw new Ge(Ve.ErrRefused,"Text node cannot have children");const h=this._children.indexOf(c);if(h===-1)throw new Ge(Ve.ErrInvalidArgument,"child not found");this._children.splice(h,1),c.parent=void 0}splitElement(c,h){const b=this.cloneElement(h);this.parent.insertAfterInternal(b,this),b.updateAncestorsSize();const E=this.children.slice(0,c),P=this.children.slice(c);this._children=E,b._children=P,this.size=this._children.reduce((U,Y)=>U+Y.paddedSize,0),b.size=b._children.reduce((U,Y)=>U+Y.paddedSize,0);for(const U of b._children)U.parent=b;return b}insertAfterInternal(c,h){if(this.isText)throw new Ge(Ve.ErrRefused,"Text node cannot have children");const b=this._children.indexOf(h);if(b===-1)throw new Ge(Ve.ErrInvalidArgument,"child not found");this.insertAtInternal(c,b+1)}insertAtInternal(c,h){if(this.isText)throw new Ge(Ve.ErrRefused,"Text node cannot have children");this._children.splice(h,0,c),c.parent=this}findOffset(c){if(this.isText)throw new Ge(Ve.ErrRefused,"Text node cannot have children");if(c.isRemoved){const h=this._children.indexOf(c);return this.allChildren.splice(0,h).filter(E=>!E.isRemoved).length}return this.children.indexOf(c)}findBranchOffset(c){if(this.isText)throw new Ge(Ve.ErrRefused,"Text node cannot have children");let h=c;for(;h;){const b=this._children.indexOf(h);if(b!==-1)return b;h=h.parent}return-1}}function Xc(y,c){if(y===c)return!1;for(;c.parent;){if(c.parent===y)return!0;c=c.parent}return!1}var ma=(y=>(y.Start="Start",y.End="End",y.Text="Text",y))(ma||{});function Yx(y,c,h,b){if(c>h)throw new Ge(Ve.ErrInvalidArgument,`from is greater than to: ${c} > ${h}`);if(c>y.size)throw new Ge(Ve.ErrInvalidArgument,`from is out of range: ${c} > ${y.size}`);if(h>y.size)throw new Ge(Ve.ErrInvalidArgument,`to is out of range: ${h} > ${y.size}`);if(c===h)return;let E=0;for(const P of y.children){if(c-P.paddedSizeP.size;(P.isText||fe)&&b([P,P.isText?"Text":"Start"],me),Yx(P,Math.max(0,U),Math.min(Y,P.size),b),me&&b([P,"End"],me)}E+=P.paddedSize}}function Zx(y,c,h=0){for(const b of y.children)Zx(b,c,h+1);c(y,h)}function cb(y,c,h=0){for(const b of y._children)cb(b,c,h+1);c(y,h)}function SS(y,c,h=!0){if(c>y.size)throw new Ge(Ve.ErrInvalidArgument,`index is out of range: ${c} > ${y.size}`);if(y.isText)return{node:y,offset:c};let b=0,E=0;for(const P of y.children){if(h&&P.isText&&P.size>=c-E)return SS(P,c-E,h);if(c===E)return{node:y,offset:b};if(!h&&P.paddedSize===c-E)return{node:y,offset:b+1};if(P.paddedSize>c-E)return SS(P,c-E-1,h);E+=P.paddedSize,b+=1}return{node:y,offset:b}}function Gd(y){return y.isText||y.children.length===0?y:Gd(y.children[0])}function g6(y,c){if(y.sizey===c?0:y0)if(h.right)h.right.parent=h,h=h.right;else return h;else if(b<0)if(h.left)h.left.parent=h,h=h.left;else{let E=h.parent,P=h;for(;E&&P===E.left;)P=E,E=E.parent;return E}else return h}}lastEntry(){if(!this.root)return this.root;let c=this.root;for(;c.right;)c=c.right;return c}size(){return this.counter}isEmpty(){return this.counter===0}getInternal(c,h){for(;h;){const b=this.comparator(c,h.key);if(b===0)return h;b<0?h=h.left:b>0&&(h=h.right)}}putInternal(c,h,b){if(!b)return this.counter+=1,new y6(c,h,!0);const E=this.comparator(c,b.key);return E<0?b.left=this.putInternal(c,h,b.left):E>0?b.right=this.putInternal(c,h,b.right):b.value=h,this.isRed(b.right)&&!this.isRed(b.left)&&(b=this.rotateLeft(b)),this.isRed(b.left)&&this.isRed(b.left.left)&&(b=this.rotateRight(b)),this.isRed(b.left)&&this.isRed(b.right)&&this.flipColors(b),b}removeInternal(c,h){if(this.comparator(h,c.key)<0)!this.isRed(c.left)&&!this.isRed(c.left.left)&&(c=this.moveRedLeft(c)),c.left=this.removeInternal(c.left,h);else{if(this.isRed(c.left)&&(c=this.rotateRight(c)),this.comparator(h,c.key)===0&&!c.right){this.counter-=1;return}if(!this.isRed(c.right)&&!this.isRed(c.right.left)&&(c=this.moveRedRight(c)),this.comparator(h,c.key)===0){this.counter-=1;const b=this.min(c.right);c.value=b.value,c.key=b.key,c.right=this.removeMin(c.right)}else c.right=this.removeInternal(c.right,h)}return this.fixUp(c)}min(c){return c.left?this.min(c.left):c}removeMin(c){if(c.left)return!this.isRed(c.left)&&!this.isRed(c.left.left)&&(c=this.moveRedLeft(c)),c.left=this.removeMin(c.left),this.fixUp(c)}fixUp(c){return this.isRed(c.right)&&(c=this.rotateLeft(c)),this.isRed(c.left)&&this.isRed(c.left.left)&&(c=this.rotateRight(c)),this.isRed(c.left)&&this.isRed(c.right)&&this.flipColors(c),c}moveRedLeft(c){return this.flipColors(c),this.isRed(c.right.left)&&(c.right=this.rotateRight(c.right),c=this.rotateLeft(c),this.flipColors(c)),c}moveRedRight(c){return this.flipColors(c),this.isRed(c.left.left)&&(c=this.rotateRight(c),this.flipColors(c)),c}isRed(c){return c&&c.isRed}rotateLeft(c){const h=c.right;return c.right=h.left,h.left=c,h.isRed=h.left.isRed,h.left.isRed=!0,h}rotateRight(c){const h=c.left;return c.left=h.right,h.right=c,h.isRed=h.right.isRed,h.right.isRed=!0,h}flipColors(c){c.isRed=!c.isRed,c.left.isRed=!c.left.isRed,c.right.isRed=!c.right.isRed}}class ql{constructor(c,h){s(this,"parentID"),s(this,"leftSiblingID"),this.parentID=c,this.leftSiblingID=h}static of(c,h){return new ql(c,h)}static fromTreePos(c){const{offset:h}=c;let{node:b}=c,E;return b.isText?(b.parent.children[0]===b&&h===0?E=b.parent:E=b,b=b.parent):h===0?E=b:E=b.children[h-1],ql.of(b.id,Ga.of(E.getCreatedAt(),E.getOffset()+h))}getParentID(){return this.parentID}static fromStruct(c){return ql.of(Ga.of(qa.fromStruct(c.parentID.createdAt),c.parentID.offset),Ga.of(qa.fromStruct(c.leftSiblingID.createdAt),c.leftSiblingID.offset))}toStruct(){return{parentID:{createdAt:this.getParentID().getCreatedAt().toStruct(),offset:this.getParentID().getOffset()},leftSiblingID:{createdAt:this.getLeftSiblingID().getCreatedAt().toStruct(),offset:this.getLeftSiblingID().getOffset()}}}toTreeNodePair(c){const h=this.getParentID(),b=this.getLeftSiblingID(),E=c.findFloorNode(h);let P=c.findFloorNode(b);if(!E||!P)throw new Ge(Ve.ErrRefused,`cannot find node of CRDTTreePos(${h.toTestString()}, ${b.toTestString()})`);return!b.equals(h)&&b.getOffset()>0&&b.getOffset()===P.id.getOffset()&&P.insPrevID&&(P=c.findFloorNode(P.insPrevID)),[E,P]}getLeftSiblingID(){return this.leftSiblingID}equals(c){return this.getParentID().getCreatedAt().equals(c.getParentID().getCreatedAt())&&this.getParentID().getOffset()===c.getParentID().getOffset()&&this.getLeftSiblingID().getCreatedAt().equals(c.getLeftSiblingID().getCreatedAt())&&this.getLeftSiblingID().getOffset()===c.getLeftSiblingID().getOffset()}}class Ga{constructor(c,h){s(this,"createdAt"),s(this,"offset"),this.createdAt=c,this.offset=h}static of(c,h){return new Ga(c,h)}static fromStruct(c){return Ga.of(qa.fromStruct(c.createdAt),c.offset)}static createComparator(){return(c,h)=>{const b=c.getCreatedAt().compare(h.getCreatedAt());return b!==0?b:c.getOffset()>h.getOffset()?1:c.getOffset(){const E=b.deepcopy();return E.parent=h,E}),h.insPrevID=this.insPrevID,h.insNextID=this.insNextID,h}get value(){if(!this.isText)throw new Ge(Ve.ErrInvalidType,`cannot get value of element node: ${this.type}`);return this._value}set value(c){if(!this.isText)throw new Ge(Ve.ErrInvalidType,`cannot set value of element node: ${this.type}`);this._value=c,this.size=c.length}get isRemoved(){return!!this.removedAt}remove(c){const h=!this.removedAt;(!this.removedAt||this.removedAt.compare(c)>0)&&(this.removedAt=c),h&&this.updateAncestorsSize()}cloneText(c){return new to(Ga.of(this.id.getCreatedAt(),c),this.type,void 0,void 0,this.removedAt)}cloneElement(c){return new to(Ga.of(c(),0),this.type,void 0,void 0,this.removedAt)}split(c,h,b){const E=this.isText?this.splitText(h,this.id.getOffset()):this.splitElement(h,b);if(E){if(E.insPrevID=this.id,this.insNextID){const P=c.findFloorNode(this.insNextID);P.insPrevID=E.id,E.insNextID=this.insNextID}this.insNextID=E.id,c.registerNode(E)}return E}getCreatedAt(){return this.id.getCreatedAt()}getOffset(){return this.id.getOffset()}canDelete(c,h){return!this.getCreatedAt().after(h)&&(!this.removedAt||c.after(this.removedAt))}canStyle(c,h){return this.isText?!1:!this.getCreatedAt().after(h)&&(!this.removedAt||c.after(this.removedAt))}setAttrs(c,h){this.attrs||(this.attrs=new Yc);const b=new Array;for(const[E,P]of Object.entries(c))b.push(this.attrs.set(E,P,h));return b}purge(c){this.attrs&&this.attrs.purge(c)}getGCPairs(){const c=[];if(!this.attrs)return c;for(const h of this.attrs)h.getRemovedAt()&&c.push({parent:this,child:h});return c}}function db(y){var c;if(y.isText){const b=y;return{type:b.type,value:b.value}}const h={type:y.type,children:y.children.map(db)};return y.attrs&&(h.attributes=ia((c=y.attrs)==null?void 0:c.toObject())),h}function ES(y){if(y.isText)return y.value;let c="";return y.attrs&&y.attrs.size()&&(c=" "+Array.from(y.attrs).filter(h=>!h.isRemoved()).sort((h,b)=>h.getKey().localeCompare(b.getKey())).map(h=>{const b=JSON.parse(h.getValue());return typeof b=="string"?`${h.getKey()}="${b}"`:`${h.getKey()}="${Io(h.getValue())}"`}).join(" ")),`<${y.type}${c}>${y.children.map(h=>ES(h)).join("")}`}function Kx(y){if(y.isText){const c=y;return{type:c.type,value:c.value,size:c.size,isRemoved:c.isRemoved}}return{type:y.type,children:y.children.map(Kx),size:y.size,isRemoved:y.isRemoved}}class no extends Gu{constructor(c,h){super(h),s(this,"indexTree"),s(this,"nodeMapByID"),this.indexTree=new b6(c),this.nodeMapByID=new Xx(Ga.createComparator()),this.indexTree.traverseAll(b=>{this.nodeMapByID.put(b.id,b)})}static create(c,h){return new no(c,h)}findFloorNode(c){const h=this.nodeMapByID.floorEntry(c);if(!(!h||!h.key.getCreatedAt().equals(c.getCreatedAt())))return h.value}registerNode(c){this.nodeMapByID.put(c.id,c)}findNodesAndSplitText(c,h){const[b,E]=c.toTreeNodePair(this);let P=E;const U=b===P,Y=P.parent&&!U?P.parent:b;if(P.isText&&P.split(this,c.getLeftSiblingID().getOffset()-P.id.getOffset()),h){const fe=Y.allChildren,me=U?0:fe.indexOf(P)+1;for(let Pe=me;Pe{const Jt=nt.getCreatedAt().getActorID(),Cn=E?E.has(Jt)?E.get(Jt):ks:Gc;if(nt.canStyle(b,Cn)&&h){const xn=St.get(Jt),lr=nt.getCreatedAt();(!xn||lr.after(xn))&&St.set(Jt,lr);const Kr=nt.setAttrs(h,b),pr=Kr.reduce((ci,[,Jd])=>(Jd&&(ci[Jd.getKey()]=Pe[Jd.getKey()]),ci),{}),Wr=nt.parent,Jr=nt.prevSibling||nt.parent;Object.keys(pr).length>0&&me.push({type:"style",from:this.toIndex(Wr,Jr),to:this.toIndex(nt,nt),fromPath:this.toPath(Wr,Jr),toPath:this.toPath(nt,nt),actor:b.getActorID(),value:pr});for(const[ci]of Kr)ci&&mt.push({parent:nt,child:ci})}}),[St,mt,me]}removeStyle(c,h,b,E){const[P,U]=this.findNodesAndSplitText(c[0],b),[Y,fe]=this.findNodesAndSplitText(c[1],b),me=[],Pe=new Map,St=[];return this.traverseInPosRange(P,U,Y,fe,([mt])=>{const nt=mt.getCreatedAt().getActorID(),Jt=E?E.has(nt)?E.get(nt):ks:Gc;if(mt.canStyle(b,Jt)&&h){const Cn=Pe.get(nt),xn=mt.getCreatedAt();(!Cn||xn.after(Cn))&&Pe.set(nt,xn),mt.attrs||(mt.attrs=new Yc);for(const pr of h){const Wr=mt.attrs.remove(pr,b);for(const Jr of Wr)St.push({parent:mt,child:Jr})}const lr=mt.parent,Kr=mt.prevSibling||mt.parent;me.push({actor:b.getActorID(),type:"removeStyle",from:this.toIndex(lr,Kr),to:this.toIndex(mt,mt),fromPath:this.toPath(lr,Kr),toPath:this.toPath(mt,mt),value:h})}}),[Pe,St,me]}edit(c,h,b,E,P,U){const[Y,fe]=this.findNodesAndSplitText(c[0],E),[me,Pe]=this.findNodesAndSplitText(c[1],E),St=this.toIndex(Y,fe),mt=this.toPath(Y,fe),nt=[],Jt=[],Cn=[],xn=new Map;this.traverseInPosRange(Y,fe,me,Pe,([pr,Wr],Jr)=>{if(Wr===ma.Start&&!Jr)for(const ps of pr.children)Cn.push(ps);const ci=pr.getCreatedAt().getActorID(),Jd=U?U.has(ci)?U.get(ci):ks:Gc;if(pr.canDelete(E,Jd)||nt.includes(pr.parent)){const ps=xn.get(ci),Xl=pr.getCreatedAt();(!ps||Xl.after(ps))&&xn.set(ci,Xl),(Wr===ma.Text||Wr===ma.Start)&&nt.push(pr),Jt.push([pr,Wr])}});const lr=this.makeDeletionChanges(Jt,E),Kr=[];for(const pr of nt)pr.remove(E),pr.isRemoved&&Kr.push({parent:this,child:pr});for(const pr of Cn)pr.removedAt||Y.append(pr);if(b>0){let pr=0,Wr=Y,Jr=fe;for(;pr{Y.isRemoved&&(ci.remove(E),Kr.push({parent:this,child:ci})),this.nodeMapByID.put(ci.id,ci)}),Jr.isRemoved||pr.push(Jr);if(pr.length){const Jr=pr.map(ci=>db(ci));lr.length&&lr[lr.length-1].from===St?lr[lr.length-1].value=Jr:lr.push({type:"content",from:St,to:St,fromPath:mt,toPath:mt,actor:E.getActorID(),value:Jr})}}return[lr,Kr,xn]}editT(c,h,b,E,P){const U=this.findPos(c[0]),Y=this.findPos(c[1]);this.edit([U,Y],h,b,E,P)}move(c,h,b){throw new Ge(Ve.ErrUnimplemented,`not implemented: ${c}, ${h}, ${b}`)}purge(c){var h;(h=c.parent)==null||h.removeChild(c),this.nodeMapByID.remove(c.id);const b=c.insPrevID,E=c.insNextID;if(b){const P=this.findFloorNode(b);P.insNextID=E}if(E){const P=this.findFloorNode(E);P.insPrevID=b}c.insPrevID=void 0,c.insNextID=void 0}getGCPairs(){const c=[];return this.indexTree.traverse(h=>{h.getRemovedAt()&&c.push({parent:this,child:h});for(const b of h.getGCPairs())c.push(b)}),c}findPos(c,h=!0){const b=this.indexTree.findTreePos(c,h);return ql.fromTreePos(b)}pathToPosRange(c){const h=this.pathToIndex(c);return[this.findPos(h),this.findPos(h+1)]}pathToPos(c){const h=this.indexTree.pathToIndex(c);return this.findPos(h)}getRoot(){return this.indexTree.getRoot()}getSize(){return this.indexTree.size}getNodeSize(){return this.nodeMapByID.size()}getIndexTree(){return this.indexTree}toXML(){return ES(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 c=this.indexTree.getRoot(),h=(b,E=void 0,P=void 0,U=0)=>{var Y,fe,me,Pe;let St,mt,nt;const Jt=b.isText?{node:b,offset:0}:E&&P?this.toTreePos(E,P):null;Jt&&(St=this.indexTree.indexOf(Jt),mt=this.indexTree.treePosToPath(Jt),nt=ql.fromTreePos(Jt).toStruct());const Cn={type:b.type,parent:E==null?void 0:E.id.toTestString(),size:b.size,id:b.id.toTestString(),removedAt:(Y=b.removedAt)==null?void 0:Y.toTestString(),insPrev:(fe=b.insPrevID)==null?void 0:fe.toTestString(),insNext:(me=b.insNextID)==null?void 0:me.toTestString(),value:b.isText?b.value:void 0,isRemoved:b.isRemoved,children:[],depth:U,attributes:b.attrs?ia((Pe=b.attrs)==null?void 0:Pe.toObject()):void 0,index:St,path:mt,pos:nt};for(let xn=0;xn0&&xn===b[b.length-1].to?(b[b.length-1].to=lr,b[b.length-1].toPath=this.toPath(Cn,mt)):b.push({type:"content",from:xn,to:lr,fromPath:this.toPath(Jt,Pe),toPath:this.toPath(Cn,mt),actor:h.getActorID()}))}return b.reverse()}findRightToken([c,h]){if(h===ma.Start){const Y=c.allChildren;return Y.length>0?[Y[0],Y[0].isText?ma.Text:ma.Start]:[c,ma.End]}const b=c.parent,E=b.allChildren,P=E.indexOf(c);if(b&&P===E.length-1)return[b,ma.End];const U=E[P+1];return[U,U.isText?ma.Text:ma.Start]}findLeftToken([c,h]){if(h===ma.End){const Y=c.allChildren;if(Y.length>0){const fe=Y[Y.length-1];return[fe,fe.isText?ma.Text:ma.End]}return[c,ma.Start]}const b=c.parent,E=b.allChildren,P=E.indexOf(c);if(b&&P===0)return[b,ma.Start];const U=E[P-1];return[U,U.isText?ma.Text:ma.End]}}class Kc extends Js{constructor(c,h,b,E,P,U,Y){super(c,Y),s(this,"fromPos"),s(this,"toPos"),s(this,"contents"),s(this,"splitLevel"),s(this,"maxCreatedAtMapByActor"),this.fromPos=h,this.toPos=b,this.contents=E,this.splitLevel=P,this.maxCreatedAtMapByActor=U}static create(c,h,b,E,P,U,Y){return new Kc(c,h,b,E,P,U,Y)}execute(c){var h;const b=c.findByCreatedAt(this.getParentCreatedAt());if(!b)throw new Ge(Ve.ErrInvalidArgument,`fail to find ${this.getParentCreatedAt()}`);if(!(b instanceof no))throw new Ge(Ve.ErrInvalidArgument,"fail to execute, only Tree can execute edit");const E=this.getExecutedAt(),P=b,[U,Y]=P.edit([this.fromPos,this.toPos],(h=this.contents)==null?void 0:h.map(fe=>fe.deepcopy()),this.splitLevel,E,(()=>{let fe=E.getDelimiter();return this.contents!==void 0&&(fe+=this.contents.length),()=>qa.of(E.getLamport(),++fe,E.getActorID())})(),this.maxCreatedAtMapByActor);for(const fe of Y)c.registerGCPair(fe);return{opInfos:U.map(({from:fe,to:me,value:Pe,splitLevel:St,fromPath:mt,toPath:nt})=>({type:"tree-edit",path:c.createPath(this.getParentCreatedAt()),from:fe,to:me,value:Pe,splitLevel:St,fromPath:mt,toPath:nt}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const c=this.getParentCreatedAt().toTestString(),h=`${this.fromPos.getLeftSiblingID().getCreatedAt().toTestString()}/${this.fromPos.getLeftSiblingID().getOffset()}`,b=`${this.toPos.getLeftSiblingID().getCreatedAt().toTestString()}/${this.toPos.getLeftSiblingID().getOffset()}`,E=this.contents||[];return`${c}.EDIT(${h},${b},${E.map(P=>ES(P)).join("")})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getContents(){return this.contents}getSplitLevel(){return this.splitLevel}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}class Gl{constructor(c,h,b,E){s(this,"clientSeq"),s(this,"serverSeq"),s(this,"lamport"),s(this,"actor"),this.clientSeq=c,this.serverSeq=E,this.lamport=h,this.actor=b}static of(c,h,b,E){return new Gl(c,h,b,E)}next(){return new Gl(this.clientSeq+1,this.lamport.add(1),this.actor)}syncLamport(c){return c.greaterThan(this.lamport)?new Gl(this.clientSeq,c,this.actor):new Gl(this.clientSeq,this.lamport.add(1),this.actor)}createTimeTicket(c){return qa.of(this.lamport,c,this.actor)}setActor(c){return new Gl(this.clientSeq,this.lamport,c,this.serverSeq)}getClientSeq(){return this.clientSeq}getServerSeq(){return this.serverSeq?this.serverSeq.toString():""}getLamport(){return this.lamport}getLamportAsString(){return this.lamport.toString()}getActorID(){return this.actor}toTestString(){return`${this.lamport.toString()}:${this.actor.slice(-2)}:${this.clientSeq}`}}const O6=new Gl(0,_n.fromInt(0,!0),zm);class Yd{constructor({id:c,operations:h,presenceChange:b,message:E}){s(this,"id"),s(this,"operations"),s(this,"presenceChange"),s(this,"message"),this.id=c,this.operations=h||[],this.presenceChange=b,this.message=E}static create({id:c,operations:h,presenceChange:b,message:E}){return new Yd({id:c,operations:h,presenceChange:b,message:E})}getID(){return this.id}getMessage(){return this.message}hasOperations(){return this.operations.length>0}getOperations(){return this.operations}setActor(c){for(const h of this.operations)h.setActor(c);this.id=this.id.setActor(c)}hasPresenceChange(){return this.presenceChange!==void 0}getPresenceChange(){return this.presenceChange}execute(c,h,b){const E=[],P=[];for(const U of this.operations){const Y=U.execute(c,b);if(!Y)continue;const{opInfos:fe,reverseOp:me}=Y;E.push(...fe),me&&P.unshift(me)}return this.presenceChange&&(this.presenceChange.type===Wd.Put?h.set(this.id.getActorID(),Wl(this.presenceChange.presence)):h.delete(this.id.getActorID())),{opInfos:E,reverseOps:P}}toTestString(){return`${this.operations.map(c=>c.toTestString()).join(",")}`}toStruct(){return{changeID:li.bytesToHex(li.toChangeID(this.getID()).toBinary()),message:this.getMessage(),operations:this.getOperations().map(c=>li.bytesToHex(li.toOperation(c).toBinary())),presenceChange:this.getPresenceChange()}}static fromStruct(c){const{changeID:h,operations:b,presenceChange:E,message:P}=c;return Yd.create({id:li.bytesToChangeID(li.hexToBytes(h)),operations:b==null?void 0:b.map(U=>li.bytesToOperation(li.hexToBytes(U))),presenceChange:E,message:P})}}class fb{constructor(c,h,b,E,P,U){s(this,"documentKey"),s(this,"checkpoint"),s(this,"isRemoved"),s(this,"changes"),s(this,"snapshot"),s(this,"minSyncedTicket"),this.documentKey=c,this.checkpoint=h,this.isRemoved=b,this.changes=E,this.snapshot=P,this.minSyncedTicket=U}static create(c,h,b,E,P,U){return new fb(c,h,b,E,P,U)}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 ro{constructor(c,h){s(this,"serverSeq"),s(this,"clientSeq"),this.serverSeq=c,this.clientSeq=h}static of(c,h){return new ro(c,h)}increaseClientSeq(c){return c===0?this:new ro(this.serverSeq,this.clientSeq+c)}forward(c){if(this.equals(c))return this;const h=this.serverSeq.greaterThan(c.serverSeq)?this.serverSeq:c.serverSeq,b=Math.max(this.clientSeq,c.clientSeq);return ro.of(h,b)}getServerSeqAsString(){return this.serverSeq.toString()}getClientSeq(){return this.clientSeq}getServerSeq(){return this.serverSeq}equals(c){return this.clientSeq===c.clientSeq&&this.serverSeq.equals(c.serverSeq)}toTestString(){return`serverSeq=${this.serverSeq}, clientSeq=${this.clientSeq}`}}const wS=new ro(_n.fromInt(0,!0),0);class hs{constructor(c,h){s(this,"createdAt"),s(this,"offset"),this.createdAt=c,this.offset=h}static of(c,h){return new hs(c,h)}static fromStruct(c){return hs.of(qa.fromStruct(c.createdAt),c.offset)}getCreatedAt(){return this.createdAt}getOffset(){return this.offset}equals(c){return this.createdAt.compare(c.createdAt)===0&&this.offset===c.offset}hasSameCreatedAt(c){return this.createdAt.compare(c.createdAt)===0}split(c){return new hs(this.createdAt,this.offset+c)}toStruct(){return{createdAt:this.createdAt.toStruct(),offset:this.offset}}toTestString(){return`${this.createdAt.toTestString()}:${this.offset}`}toIDString(){return`${this.createdAt.toIDString()}:${this.offset}`}}const al=hs.of(ks,0);class Yl{constructor(c,h){s(this,"id"),s(this,"relativeOffset"),this.id=c,this.relativeOffset=h}static of(c,h){return new Yl(c,h)}static fromStruct(c){const h=hs.fromStruct(c.id);return Yl.of(h,c.relativeOffset)}getID(){return this.id}getRelativeOffset(){return this.relativeOffset}getAbsoluteID(){return hs.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(c){return this.id.equals(c.id)?this.relativeOffset===c.relativeOffset:!1}}class Jc extends Hp{constructor(c,h,b){super(h),s(this,"id"),s(this,"removedAt"),s(this,"prev"),s(this,"next"),s(this,"insPrev"),s(this,"insNext"),this.id=c,this.removedAt=b}static create(c,h){return new Jc(c,h)}static createComparator(){return(c,h)=>{const b=c.getCreatedAt().compare(h.getCreatedAt());return b!==0?b:c.getOffset()>h.getOffset()?1:c.getOffset()0&&h.getID().getOffset()==c.getOffset()){if(!h.hasInsPrev())return h;h=h.getInsPrev()}return h}findFloorNode(c){const h=this.treeByID.floorEntry(c);if(h&&!(!h.key.equals(c)&&!h.key.hasSameCreatedAt(c)))return h.value}findBetween(c,h){const b=[];let E=c;for(;E&&E!==h;)b.push(E),E=E.getNext();return b}splitNode(c,h){if(h>c.getContentLength())throw new Ge(Ve.ErrInvalidArgument,"offset should be less than or equal to length");if(h===0)return c;if(h===c.getContentLength())return c.getNext();const b=c.split(h);this.treeByIndex.updateWeight(b),this.insertAfter(c,b);const E=c.getInsNext();return E&&E.setInsPrev(b),b.setInsPrev(c),b}deleteNodes(c,h,b){if(!c.length)return[[],new Map,new Map];const[E,P]=this.filterNodes(c,h,b),U=new Map,Y=new Map,fe=this.makeChanges(P,h);for(const me of E){const Pe=me.getCreatedAt().getActorID();(!U.has(Pe)||me.getID().getCreatedAt().after(U.get(Pe)))&&U.set(Pe,me.getID().getCreatedAt()),Y.set(me.getID().toIDString(),me),me.remove(h)}return this.deleteIndexNodes(P),[fe,U,Y]}filterNodes(c,h,b){const E=!!b,P=[],U=[],[Y,fe]=this.findEdgesOfCandidates(c);U.push(Y);for(const me of c){const Pe=me.getCreatedAt().getActorID(),St=E?b.has(Pe)?b.get(Pe):ks:Gc;me.canDelete(h,St)?P.push(me):U.push(me)}return U.push(fe),[P,U]}findEdgesOfCandidates(c){return[c[0].getPrev(),c[c.length-1].getNext()]}makeChanges(c,h){const b=[];let E,P;for(let U=0;Uy<0?Math.ceil(y):Math.floor(y);var Ya=(y=>(y[y.IntegerCnt=0]="IntegerCnt",y[y.LongCnt=1]="LongCnt",y))(Ya||{});class io extends Gu{constructor(c,h,b){switch(super(b),s(this,"valueType"),s(this,"value"),this.valueType=c,c){case 0:typeof h=="number"?h>Math.pow(2,31)-1||h<-Math.pow(2,31)?this.value=_n.fromNumber(h).toInt():this.value=Wp(h):this.value=h.toInt();break;case 1:typeof h=="number"?this.value=_n.fromNumber(h):this.value=h;break;default:throw new Ge(Ve.ErrUnimplemented,`unimplemented type: ${c}`)}}static create(c,h,b){return new io(c,h,b)}static valueFromBytes(c,h){switch(c){case 0:return h[0]|h[1]<<8|h[2]<<16|h[3]<<24;case 1:return _n.fromBytesLE(Array.from(h));default:throw new Ge(Ve.ErrUnimplemented,`unimplemented type: ${c}`)}}toJSON(){return`${this.value}`}toSortedJSON(){return this.toJSON()}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:this.value,type:"YORKIE_COUNTER"}}deepcopy(){const c=io.create(this.valueType,this.value,this.getCreatedAt());return c.setMovedAt(this.getMovedAt()),c}getType(){return this.valueType}static getCounterType(c){switch(typeof c){case"object":return c instanceof _n?1:void 0;case"number":return c>Math.pow(2,31)-1||c<-Math.pow(2,31)?1:0;default:return}}static isSupport(c){return!!io.getCounterType(c)}static isInteger(c){return c%1===0}isNumericType(){const c=this.valueType;return c===0||c===1}getValueType(){return this.valueType}getValue(){return this.value}toBytes(){switch(this.valueType){case 0:{const c=this.value;return new Uint8Array([c&255,c>>8&255,c>>16&255,c>>24&255])}case 1:{const h=this.value.toBytesLE();return Uint8Array.from(h)}default:throw new Ge(Ve.ErrUnimplemented,`unimplemented type: ${this.valueType}`)}}increase(c){function h(b){if(!b.isNumericType())throw new TypeError(`Unsupported type of value: ${typeof b.getValue()}`)}return h(this),h(c),this.valueType===1?this.value=this.value.add(c.getValue()):c.getType()===ne.Long?this.value=this.value+c.getValue().toInt():this.value=_n.fromNumber(this.value+Wp(c.getValue())).toInt(),this}}class Vp extends Js{constructor(c,h,b){super(c,b),s(this,"value"),this.value=h}static create(c,h,b){return new Vp(c,h,b)}execute(c){const h=c.findByCreatedAt(this.getParentCreatedAt());if(!h)throw new Ge(Ve.ErrInvalidArgument,`fail to find ${this.getParentCreatedAt()}`);if(!(h instanceof io))throw new Ge(Ve.ErrInvalidArgument,"fail to execute, only Counter can execute increase");const b=h,E=this.value.deepcopy();return b.increase(E),{opInfos:[{type:"increase",path:c.createPath(this.getParentCreatedAt()),value:E.getValue()}],reverseOp:this.toReverseOperation()}}toReverseOperation(){const c=this.value.deepcopy(),b=c.getType()===ne.Long?c.getValue().multiply(-1):c.getValue()*-1;return Vp.create(this.getParentCreatedAt(),Qr.of(b,c.getCreatedAt()))}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){return`${this.getParentCreatedAt().toTestString()}.INCREASE.${this.value.toJSON()}`}getValue(){return this.value}}class sl extends Js{constructor(c,h,b,E,P,U,Y){super(c,Y),s(this,"fromPos"),s(this,"toPos"),s(this,"maxCreatedAtMapByActor"),s(this,"attributes"),s(this,"attributesToRemove"),this.fromPos=h,this.toPos=b,this.maxCreatedAtMapByActor=E,this.attributes=P,this.attributesToRemove=U}static create(c,h,b,E,P,U){return new sl(c,h,b,E,P,new Array,U)}static createTreeRemoveStyleOperation(c,h,b,E,P,U){return new sl(c,h,b,E,new Map,P,U)}execute(c){const h=c.findByCreatedAt(this.getParentCreatedAt());if(!h)throw new Ge(Ve.ErrInvalidArgument,`fail to find ${this.getParentCreatedAt()}`);if(!(h instanceof no))throw new Ge(Ve.ErrInvalidArgument,"fail to execute, only Tree can execute edit");const b=h;let E,P;if(this.attributes.size){const U={};[...this.attributes].forEach(([Y,fe])=>U[Y]=fe),[,P,E]=b.style([this.fromPos,this.toPos],U,this.getExecutedAt(),this.maxCreatedAtMapByActor)}else{const U=this.attributesToRemove;[,P,E]=b.removeStyle([this.fromPos,this.toPos],U,this.getExecutedAt(),this.maxCreatedAtMapByActor)}for(const U of P)c.registerGCPair(U);return{opInfos:E.map(({from:U,to:Y,value:fe,fromPath:me,toPath:Pe})=>({type:"tree-style",from:U,to:Y,value:this.attributes.size?{attributes:fe}:{attributesToRemove:fe},fromPath:me,toPath:Pe,path:c.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const c=this.getParentCreatedAt().toTestString(),h=`${this.fromPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.fromPos.getLeftSiblingID().getOffset()}`,b=`${this.toPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.toPos.getLeftSiblingID().getOffset()}`;return`${c}.STYLE(${h},${b},${Object.entries(this.attributes||{}).map(([E,P])=>`${E}:"${P}"`).join(" ")})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getAttributes(){return this.attributes}getAttributesToRemove(){return this.attributesToRemove}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}function S6(y){const c=new sb,h=c.data;for(const[b,E]of Object.entries(y))h[b]=JSON.stringify(E);return c}function Jx(y){if(y.type===Wd.Put)return new pS({type:uh.PUT,presence:S6(y.presence)});if(y.type===Wd.Clear)return new pS({type:uh.CLEAR});throw new Ge(Ve.ErrUnimplemented,"unimplemented type")}function Za(y){return new Wc({serverSeq:y.getServerSeqAsString(),clientSeq:y.getClientSeq()})}function hb(y){return new Lp({clientSeq:y.getClientSeq(),lamport:y.getLamportAsString(),actorId:Jm(y.getActorID())})}function yn(y){if(y)return new Tn({lamport:y.getLamportAsString(),delimiter:y.getDelimiter(),actorId:Jm(y.getActorID())})}function Zl(y){switch(y){case ne.Null:return Gn.NULL;case ne.Boolean:return Gn.BOOLEAN;case ne.Integer:return Gn.INTEGER;case ne.Long:return Gn.LONG;case ne.Double:return Gn.DOUBLE;case ne.String:return Gn.STRING;case ne.Bytes:return Gn.BYTES;case ne.Date:return Gn.DATE;default:throw new Ge(Ve.ErrInvalidType,`unsupported type: ${y}`)}}function pb(y){switch(y){case Ya.IntegerCnt:return Gn.INTEGER_CNT;case Ya.LongCnt:return Gn.LONG_CNT;default:throw new Ge(Ve.ErrInvalidType,`unsupported type: ${y}`)}}function qp(y){if(y instanceof Ks)return new Hu({type:Gn.JSON_OBJECT,createdAt:yn(y.getCreatedAt()),value:ed(y)});if(y instanceof $n)return new Hu({type:Gn.JSON_ARRAY,createdAt:yn(y.getCreatedAt()),value:bk(y)});if(y instanceof il)return new Hu({type:Gn.TEXT,createdAt:yn(y.getCreatedAt())});if(y instanceof Qr)return new Hu({type:Zl(y.getType()),createdAt:yn(y.getCreatedAt()),value:y.toBytes()});if(y instanceof io)return new Hu({type:pb(y.getType()),createdAt:yn(y.getCreatedAt()),value:y.toBytes()});if(y instanceof no)return new Hu({type:Gn.TREE,createdAt:yn(y.getCreatedAt()),value:yk(y)});throw new Ge(Ve.ErrUnimplemented,"unimplemented element")}function bh(y){return new fS({createdAt:yn(y.getCreatedAt()),offset:y.getOffset()})}function qm(y){return new Wu({createdAt:yn(y.getID().getCreatedAt()),offset:y.getID().getOffset(),relativeOffset:y.getRelativeOffset()})}function Fa(y){return new Qu({parentId:yh(y.getParentID()),leftSiblingId:yh(y.getLeftSiblingID())})}function yh(y){return new $p({createdAt:yn(y.getCreatedAt()),offset:y.getOffset()})}function ek(y){const c=new oS;if(y instanceof ph){const h=y,b=new Ux;b.parentCreatedAt=yn(h.getParentCreatedAt()),b.key=h.getKey(),b.value=qp(h.getValue()),b.executedAt=yn(h.getExecutedAt()),c.body.case="set",c.body.value=b}else if(y instanceof Hm){const h=y,b=new zx;b.parentCreatedAt=yn(h.getParentCreatedAt()),b.prevCreatedAt=yn(h.getPrevCreatedAt()),b.value=qp(h.getValue()),b.executedAt=yn(h.getExecutedAt()),c.body.case="add",c.body.value=b}else if(y instanceof eo){const h=y,b=new lS;b.parentCreatedAt=yn(h.getParentCreatedAt()),b.prevCreatedAt=yn(h.getPrevCreatedAt()),b.createdAt=yn(h.getCreatedAt()),b.executedAt=yn(h.getExecutedAt()),c.body.case="move",c.body.value=b}else if(y instanceof qd){const h=y,b=new Lm;b.parentCreatedAt=yn(h.getParentCreatedAt()),b.createdAt=yn(h.getCreatedAt()),b.executedAt=yn(h.getExecutedAt()),c.body.case="remove",c.body.value=b}else if(y instanceof Wm){const h=y,b=new lh;b.parentCreatedAt=yn(h.getParentCreatedAt()),b.from=qm(h.getFromPos()),b.to=qm(h.getToPos());const E=b.createdAtMapByActor;for(const[U,Y]of h.getMaxCreatedAtMapByActor())E[U]=yn(Y);b.content=h.getContent();const P=b.attributes;for(const[U,Y]of h.getAttributes())P[U]=Y;b.executedAt=yn(h.getExecutedAt()),c.body.case="edit",c.body.value=b}else if(y instanceof No){const h=y,b=new uS;b.parentCreatedAt=yn(h.getParentCreatedAt()),b.from=qm(h.getFromPos()),b.to=qm(h.getToPos());const E=b.createdAtMapByActor;for(const[U,Y]of h.getMaxCreatedAtMapByActor())E[U]=yn(Y);const P=b.attributes;for(const[U,Y]of h.getAttributes())P[U]=Y;b.executedAt=yn(h.getExecutedAt()),c.body.case="style",c.body.value=b}else if(y instanceof Vp){const h=y,b=new cS;b.parentCreatedAt=yn(h.getParentCreatedAt()),b.value=qp(h.getValue()),b.executedAt=yn(h.getExecutedAt()),c.body.case="increase",c.body.value=b}else if(y instanceof Kc){const h=y,b=new eb,E=b.createdAtMapByActor;for(const[P,U]of h.getMaxCreatedAtMapByActor())E[P]=yn(U);b.parentCreatedAt=yn(h.getParentCreatedAt()),b.from=Fa(h.getFromPos()),b.to=Fa(h.getToPos()),b.contents=x6(h.getContents()),b.splitLevel=h.getSplitLevel(),b.executedAt=yn(h.getExecutedAt()),c.body.case="treeEdit",c.body.value=b}else if(y instanceof sl){const h=y,b=new tb;b.parentCreatedAt=yn(h.getParentCreatedAt()),b.from=Fa(h.getFromPos()),b.to=Fa(h.getToPos());const E=b.createdAtMapByActor;for(const[U,Y]of h.getMaxCreatedAtMapByActor())E[U]=yn(Y);const P=h.getAttributesToRemove();if(P.length>0)b.attributesToRemove=P;else{const U=b.attributes;for(const[Y,fe]of h.getAttributes())U[Y]=fe}b.executedAt=yn(h.getExecutedAt()),c.body.case="treeStyle",c.body.value=b}else throw new Ge(Ve.ErrUnimplemented,"unimplemented operation");return c}function E6(y){const c=[];for(const h of y)c.push(ek(h));return c}function w6(y){const c=new Bx({id:hb(y.getID()),message:y.getMessage()});return y.hasOperations()&&(c.operations=E6(y.getOperations())),y.hasPresenceChange()&&(c.presenceChange=Jx(y.getPresenceChange())),c}function TS(y){const c=[];for(const h of y)c.push(w6(h));return c}function T6(y){const c=[];for(const h of y)c.push(new Mp({key:h.getStrKey(),element:kS(h.getValue())}));return c}function Gm(y){const c=[];for(const h of y)c.push(new ab({element:kS(h.getValue())}));return c}function tk(y){const c=[];for(const h of y){const b=new Hx;b.id=bh(h.getID()),b.value=h.getValue().getContent(),b.removedAt=yn(h.getRemovedAt());const E=b.attributes,P=h.getValue().getAttrs();for(const U of P){const Y=new Mm;Y.value=U.getValue(),Y.updatedAt=yn(U.getUpdatedAt()),E[U.getKey()]=Y}c.push(b)}return c}function x6(y){const c=[];if(!y||!y.length)return c;for(const h of y)c.push(new Qx({content:vh(h)}));return c}function k6(y){const c={};for(const h of y)c[h.getKey()]=new Mm({value:h.getValue(),updatedAt:yn(h.getUpdatedAt()),isRemoved:h.isRemoved()});return c}function vh(y){if(!y)return[];const c=[];return cb(y,(h,b)=>{const E=new hS({id:yh(h.id),type:h.type,removedAt:yn(h.removedAt),depth:b});h.isText&&(E.value=h.value),h.insPrevID&&(E.insPrevId=yh(h.insPrevID)),h.insNextID&&(E.insNextId=yh(h.insNextID)),h.attrs&&(E.attributes=k6(h.attrs)),c.push(E)}),c}function A6(y){const c=new nl;return c.body.case="jsonObject",c.body.value=new nb({nodes:T6(y.getRHT()),createdAt:yn(y.getCreatedAt()),movedAt:yn(y.getMovedAt()),removedAt:yn(y.getRemovedAt())}),c}function nk(y){const c=new nl;return c.body.case="jsonArray",c.body.value=new rb({nodes:Gm(y.getElements()),createdAt:yn(y.getCreatedAt()),movedAt:yn(y.getMovedAt()),removedAt:yn(y.getRemovedAt())}),c}function xS(y){const c=new nl;return c.body.case="primitive",c.body.value=new jx({type:Zl(y.getType()),value:y.toBytes(),createdAt:yn(y.getCreatedAt()),movedAt:yn(y.getMovedAt()),removedAt:yn(y.getRemovedAt())}),c}function rk(y){const c=new nl;return c.body.case="text",c.body.value=new dS({nodes:tk(y.getRGATreeSplit()),createdAt:yn(y.getCreatedAt()),movedAt:yn(y.getMovedAt()),removedAt:yn(y.getRemovedAt())}),c}function _6(y){const c=new nl;return c.body.case="counter",c.body.value=new Zs({type:pb(y.getType()),value:y.toBytes(),createdAt:yn(y.getCreatedAt()),movedAt:yn(y.getMovedAt()),removedAt:yn(y.getRemovedAt())}),c}function ik(y){const c=new nl;return c.body.case="tree",c.body.value=new ib({nodes:vh(y.getRoot()),createdAt:yn(y.getCreatedAt()),movedAt:yn(y.getMovedAt()),removedAt:yn(y.getRemovedAt())}),c}function kS(y){if(y instanceof Ks)return A6(y);if(y instanceof $n)return nk(y);if(y instanceof Qr)return xS(y);if(y instanceof il)return rk(y);if(y instanceof io)return _6(y);if(y instanceof no)return ik(y);throw new Ge(Ve.ErrUnimplemented,"unimplemented element")}function ak(y){return new jl({documentKey:y.getDocumentKey(),checkpoint:Za(y.getCheckpoint()),isRemoved:y.getIsRemoved(),changes:TS(y.getChanges()),snapshot:y.getSnapshot(),minSyncedTicket:yn(y.getMinSyncedTicket())})}function mb(y){const c=y.findDetails(c6);for(const h of c)if(h.metadata.code)return h.metadata.code;return""}function sk(y){let c;return y.serverSeq&&(c=_n.fromString(y.serverSeq,!0)),Gl.of(y.clientSeq,_n.fromString(y.lamport,!0),Tb(y.actorId),c)}function vn(y){if(y)return qa.of(_n.fromString(y.lamport,!0),y.delimiter,Tb(y.actorId))}function gb(y){const c={};return Object.entries(y.data).forEach(([h,b])=>{c[h]=JSON.parse(b)}),c}function ok(y){const c=y.type;if(c===uh.PUT){const h=gb(y.presence);return{type:Wd.Put,presence:h}}if(c===uh.CLEAR)return{type:Wd.Clear};throw new Ge(Ve.ErrInvalidType,`unsupported type: ${c}`)}function lk(y){const c=new Map;return Object.entries(y).forEach(([h,b])=>{c.set(h,gb(b))}),c}function Ym(y){switch(y){case Gn.NULL:return ne.Null;case Gn.BOOLEAN:return ne.Boolean;case Gn.INTEGER:return ne.Integer;case Gn.LONG:return ne.Long;case Gn.DOUBLE:return ne.Double;case Gn.STRING:return ne.String;case Gn.BYTES:return ne.Bytes;case Gn.DATE:return ne.Date}throw new Ge(Ve.ErrUnimplemented,`unimplemented value type: ${y}`)}function bb(y){switch(y){case Gn.INTEGER_CNT:return Ya.IntegerCnt;case Gn.LONG_CNT:return Ya.LongCnt}throw new Ge(Ve.ErrUnimplemented,`unimplemented value type: ${y}`)}function yb(y){switch(y.type){case Gn.JSON_OBJECT:return y.value?ao(y.value):Ks.create(vn(y.createdAt));case Gn.JSON_ARRAY:return y.value?_S(y.value):$n.create(vn(y.createdAt));case Gn.TEXT:return il.create(gh.create(),vn(y.createdAt));case Gn.TREE:return Eb(y.value);case Gn.NULL:case Gn.BOOLEAN:case Gn.INTEGER:case Gn.LONG:case Gn.DOUBLE:case Gn.STRING:case Gn.BYTES:case Gn.DATE:return Qr.of(Qr.valueFromBytes(Ym(y.type),y.value),vn(y.createdAt));case Gn.INTEGER_CNT:case Gn.LONG_CNT:return io.create(bb(y.type),io.valueFromBytes(bb(y.type),y.value),vn(y.createdAt))}}function Zm(y){return Yl.of(hs.of(vn(y.createdAt),y.offset),y.relativeOffset)}function uk(y){return hs.of(vn(y.createdAt),y.offset)}function ck(y){const c=Qm.create(y.value);Object.entries(y.attributes).forEach(([b,E])=>{c.setAttr(b,E.value,vn(E.updatedAt))});const h=Jc.create(uk(y.id),c);return h.remove(vn(y.removedAt)),h}function Gp(y){return ql.of(Oh(y.parentId),Oh(y.leftSiblingId))}function Oh(y){return Ga.of(vn(y.createdAt),y.offset)}function dk(y){if(!y.length)return;const c=[];return y.forEach(h=>{const b=Xm(h.content);c.push(b)}),c}function Xm(y){if(y.length===0)return;const c=[];for(const E of y)c.push(AS(E));const h=c[c.length-1],b=new Map;b.set(y[c.length-1].depth,c[c.length-1]);for(let E=c.length-2;E>=0;E--)b.get(y[E].depth-1).prepend(c[E]),b.set(y[E].depth,c[E]);return h.updateDescendantsSize(),no.create(h,ks).getRoot()}function C6(y){const c=Yc.create();for(const[h,b]of Object.entries(y))c.setInternal(h,b.value,vn(b.updatedAt),b.isRemoved);return c}function AS(y){const c=Oh(y.id),h=to.create(c,y.type),b=Object.entries(y.attributes);return h.isText?h.value=y.value:b.length&&(h.attrs=C6(y.attributes)),y.insPrevId&&(h.insPrevID=Oh(y.insPrevId)),y.insNextId&&(h.insNextID=Oh(y.insNextId)),h.removedAt=vn(y.removedAt),h}function Jn(y){if(y.body.case==="set"){const c=y.body.value;return ph.create(c.key,yb(c.value),vn(c.parentCreatedAt),vn(c.executedAt))}else if(y.body.case==="add"){const c=y.body.value;return Hm.create(vn(c.parentCreatedAt),vn(c.prevCreatedAt),yb(c.value),vn(c.executedAt))}else if(y.body.case==="move"){const c=y.body.value;return eo.create(vn(c.parentCreatedAt),vn(c.prevCreatedAt),vn(c.createdAt),vn(c.executedAt))}else if(y.body.case==="remove"){const c=y.body.value;return qd.create(vn(c.parentCreatedAt),vn(c.createdAt),vn(c.executedAt))}else if(y.body.case==="edit"){const c=y.body.value,h=new Map;Object.entries(c.createdAtMapByActor).forEach(([E,P])=>{h.set(E,vn(P))});const b=new Map;return Object.entries(c.attributes).forEach(([E,P])=>{b.set(E,P)}),Wm.create(vn(c.parentCreatedAt),Zm(c.from),Zm(c.to),h,c.content,b,vn(c.executedAt))}else if(y.body.case==="style"){const c=y.body.value,h=new Map;Object.entries(c.createdAtMapByActor).forEach(([E,P])=>{h.set(E,vn(P))});const b=new Map;return Object.entries(c.attributes).forEach(([E,P])=>{b.set(E,P)}),No.create(vn(c.parentCreatedAt),Zm(c.from),Zm(c.to),h,b,vn(c.executedAt))}else{if(y.body.case==="select")return;if(y.body.case==="increase"){const c=y.body.value;return Vp.create(vn(c.parentCreatedAt),yb(c.value),vn(c.executedAt))}else if(y.body.case==="treeEdit"){const c=y.body.value,h=new Map;return Object.entries(c.createdAtMapByActor).forEach(([b,E])=>{h.set(b,vn(E))}),Kc.create(vn(c.parentCreatedAt),Gp(c.from),Gp(c.to),dk(c.contents),c.splitLevel,h,vn(c.executedAt))}else if(y.body.case==="treeStyle"){const c=y.body.value,h=new Map,b=c.attributesToRemove,E=new Map;return c!=null&&c.createdAtMapByActor&&Object.entries(c.createdAtMapByActor).forEach(([P,U])=>{E.set(P,vn(U))}),(b==null?void 0:b.length)>0?sl.createTreeRemoveStyleOperation(vn(c.parentCreatedAt),Gp(c.from),Gp(c.to),E,b,vn(c.executedAt)):(Object.entries(c.attributes).forEach(([P,U])=>{h.set(P,U)}),sl.create(vn(c.parentCreatedAt),Gp(c.from),Gp(c.to),E,h,vn(c.executedAt)))}else throw new Ge(Ve.ErrUnimplemented,"unimplemented operation")}}function R6(y){const c=[];for(const h of y){const b=Jn(h);b&&c.push(b)}return c}function fk(y){const c=[];for(const h of y)c.push(Yd.create({id:sk(h.id),operations:R6(h.operations),presenceChange:h.presenceChange?ok(h.presenceChange):void 0,message:h.message}));return c}function Km(y){return ro.of(_n.fromString(y.serverSeq,!0),y.clientSeq)}function hk(y){return fb.create(y.documentKey,Km(y.checkpoint),y.isRemoved,fk(y.changes),y.snapshot,vn(y.minSyncedTicket))}function pk(y){const c=new jm;for(const b of y.nodes){const E=Sb(b.element);c.set(b.key,E,E.getPositionedAt())}const h=new Ks(vn(y.createdAt),c);return h.setMovedAt(vn(y.movedAt)),h.setRemovedAt(vn(y.removedAt)),h}function mk(y){const c=new fs;for(const b of y.nodes)c.insert(Sb(b.element));const h=new $n(vn(y.createdAt),c);return h.setMovedAt(vn(y.movedAt)),h.setRemovedAt(vn(y.removedAt)),h}function ol(y){const c=Qr.of(Qr.valueFromBytes(Ym(y.type),y.value),vn(y.createdAt));return c.setMovedAt(vn(y.movedAt)),c.setRemovedAt(vn(y.removedAt)),c}function I6(y){const c=new gh;let h=c.getHead();for(const E of y.nodes){const P=c.insertAfter(h,ck(E));E.insPrevId&&P.setInsPrev(c.findNode(uk(E.insPrevId))),h=P}const b=new il(c,vn(y.createdAt));return b.setMovedAt(vn(y.movedAt)),b.setRemovedAt(vn(y.removedAt)),b}function vb(y){const c=io.create(bb(y.type),io.valueFromBytes(bb(y.type),y.value),vn(y.createdAt));return c.setMovedAt(vn(y.movedAt)),c.setRemovedAt(vn(y.removedAt)),c}function Ob(y){const c=Xm(y.nodes);return no.create(c,vn(y.createdAt))}function Sb(y){if(y.body.case==="jsonObject")return pk(y.body.value);if(y.body.case==="jsonArray")return mk(y.body.value);if(y.body.case==="primitive")return ol(y.body.value);if(y.body.case==="text")return I6(y.body.value);if(y.body.case==="counter")return vb(y.body.value);if(y.body.case==="tree")return Ob(y.body.value);throw new Ge(Ve.ErrUnimplemented,"unimplemented element")}function gk(y){if(!y)return{root:Ks.create(ks),presences:new Map};const c=Hd.fromBinary(y);return{root:Sb(c.root),presences:lk(c.presences)}}function ao(y){if(!y)throw new Ge(Ve.ErrInvalidArgument,"bytes is empty");const c=nl.fromBinary(y);return pk(c.body.value)}function ed(y){return kS(y).toBinary()}function _S(y){if(!y)throw new Ge(Ve.ErrInvalidArgument,"bytes is empty");const c=nl.fromBinary(y);return mk(c.body.value)}function bk(y){return nk(y).toBinary()}function Eb(y){if(!y)throw new Ge(Ve.ErrInvalidArgument,"bytes is empty");const c=nl.fromBinary(y);return Ob(c.body.value)}function yk(y){return ik(y).toBinary()}function wb(y){return y?Array.from(y).map(c=>c.toString(16).padStart(2,"0")).join(""):""}function Tb(y){return wb(y)}function xb(y){return new Uint8Array(y.match(/.{1,2}/g).map(c=>parseInt(c,16)))}function Jm(y){return xb(y)}function Zd(y){const c=Lp.fromBinary(y);return sk(c)}function N6(y){const c=oS.fromBinary(y);return Jn(c)}const li={fromPresence:gb,toChangePack:ak,fromChangePack:hk,fromChanges:fk,toTreeNodes:vh,fromTreeNodes:Xm,objectToBytes:ed,bytesToObject:ao,bytesToSnapshot:gk,bytesToHex:wb,hexToBytes:xb,toHexString:Tb,toUint8Array:Jm,toOperation:ek,toChangeID:hb,PbChangeID:Lp,bytesToChangeID:Zd,bytesToOperation:N6};var Xa=(y=>(y[y.Trivial=0]="Trivial",y[y.Debug=1]="Debug",y[y.Info=2]="Info",y[y.Warn=3]="Warn",y[y.Error=4]="Error",y[y.Fatal=5]="Fatal",y))(Xa||{});let Xd=3;function eg(y){Xd=y}const Mn={trivial:(...y)=>{Xd>0||typeof console<"u"&&console.log("YORKIE T:",...y)},debug:(...y)=>{Xd>1||typeof console<"u"&&console.log("YORKIE D:",...y)},info:(...y)=>{Xd>2||typeof console<"u"&&console.log("YORKIE I:",...y)},warn:(...y)=>{Xd>3||typeof console<"u"&&(typeof console.warn<"u"?console.warn("YORKIE W:",...y):console.log("YORKIE W:",...y))},error:(...y)=>{Xd>4||typeof console<"u"&&(typeof console.error<"u"?console.error("YORKIE E:",...y):console.log("YORKIE E:",...y))},fatal:(...y)=>{typeof console<"u"&&(typeof console.error<"u"?console.error("YORKIE F:",...y):console.log("YORKIE F:",...y))},isEnabled:y=>Xd<=y};function vk(){return"xxxxxxxx-xxxx-4xxxy-xxxx-xxxxxxxxxxx".replace(/[xy]/g,y=>{const c=Math.random()*16|0;return(y==="x"?c:c&3|8).toString(16)})}class D6{constructor(c,h,b,E){s(this,"reconnectStreamDelay"),s(this,"doc"),s(this,"docID"),s(this,"syncMode"),s(this,"remoteChangeEventReceived"),s(this,"watchStream"),s(this,"watchLoopTimerID"),s(this,"watchAbortController"),this.reconnectStreamDelay=c,this.doc=h,this.docID=b,this.syncMode=E,this.remoteChangeEventReceived=!1}changeSyncMode(c){this.syncMode=c}needRealtimeSync(){return this.syncMode===t0.RealtimeSyncOff?!1:this.syncMode===t0.RealtimePushOnly?this.doc.hasLocalChanges():this.syncMode!==t0.Manual&&(this.doc.hasLocalChanges()||this.remoteChangeEventReceived)}async runWatchLoop(c){const h=async()=>{if(this.watchStream)return Promise.resolve();this.watchLoopTimerID&&(clearTimeout(this.watchLoopTimerID),this.watchLoopTimerID=void 0);try{[this.watchStream,this.watchAbortController]=await c(()=>{this.watchStream=void 0,this.watchAbortController=void 0,this.watchLoopTimerID=setTimeout(h,this.reconnectStreamDelay)})}catch{}};await h()}cancelWatchStream(){this.watchStream&&this.watchAbortController&&(this.watchAbortController.abort(),this.watchStream=void 0,this.watchAbortController=void 0),clearTimeout(this.watchLoopTimerID),this.watchLoopTimerID=void 0}}const kb=()=>{};class Ok{constructor(c){s(this,"finalized",!1),s(this,"observers",[]),s(this,"finalError");try{c(this)}catch(h){this.error(h)}}next(c){this.forEachObserver(h=>{h.next(c)})}error(c){this.forEachObserver(h=>{h.error(c)}),this.close(c)}complete(){this.forEachObserver(c=>{c.complete()}),this.close()}subscribe(c,h,b){let E;if(!c)throw new Ge(Ve.ErrInvalidArgument,"missing observer");if(this.finalized)throw new Ge(Ve.ErrRefused,"observable is finalized due to previous error");typeof c=="object"?E=c:E={next:c,error:h,complete:b},E.next===void 0&&(E.next=kb),E.error===void 0&&(E.error=kb),E.complete===void 0&&(E.complete=kb);const P=vk(),U=this.unsubscribeOne.bind(this,P);if(this.observers.push({subscriptionID:P,observer:E}),this.finalized)try{this.finalError?E.error(this.finalError):E.complete()}catch(Y){Mn.warn(Y)}return U}unsubscribeOne(c){var h;this.observers=(h=this.observers)==null?void 0:h.filter(b=>b.subscriptionID!==c)}forEachObserver(c){if(!this.finalized)for(let h=0;hc}}class Sh{constructor(c,h,b,E){s(this,"id"),s(this,"delimiter"),s(this,"message"),s(this,"root"),s(this,"operations"),s(this,"presenceChange"),s(this,"previousPresence"),s(this,"reversePresenceKeys"),this.id=c,this.delimiter=fh,this.root=h,this.operations=[],this.previousPresence=Wl(b),this.presenceChange=void 0,this.reversePresenceKeys=new Set,this.message=E}static create(c,h,b,E){return new Sh(c,h,b,E)}push(c){this.operations.push(c)}registerElement(c,h){this.root.registerElement(c,h)}registerRemovedElement(c){this.root.registerRemovedElement(c)}registerGCPair(c){this.root.registerGCPair(c)}getChange(){return Yd.create({id:this.id,operations:this.operations,presenceChange:this.presenceChange,message:this.message})}hasChange(){return this.operations.length>0||this.presenceChange!==void 0}setPresenceChange(c){this.presenceChange=c}setReversePresence(c,h){for(const b of Object.keys(c))h!=null&&h.addToHistory?this.reversePresenceKeys.add(b):this.reversePresenceKeys.delete(b)}getReversePresence(){if(this.reversePresenceKeys.size===0)return;const c={};for(const h of this.reversePresenceKeys)c[h]=this.previousPresence[h];return c}issueTimeTicket(){return this.delimiter+=1,this.id.createTimeTicket(this.delimiter)}getLastTimeTicket(){return this.id.createTimeTicket(this.delimiter)}}class Yp{constructor(c){s(this,"rootObject"),s(this,"elementPairMapByCreatedAt"),s(this,"gcElementSetByCreatedAt"),s(this,"gcPairMap"),this.rootObject=c,this.elementPairMapByCreatedAt=new Map,this.gcElementSetByCreatedAt=new Set,this.gcPairMap=new Map,this.registerElement(c,void 0),c.getDescendants(h=>{if(h.getRemovedAt()&&this.registerRemovedElement(h),h instanceof il||h instanceof no)for(const b of h.getGCPairs())this.registerGCPair(b);return!1})}static create(){return new Yp(Ks.create(ks))}findByCreatedAt(c){const h=this.elementPairMapByCreatedAt.get(c.toIDString());if(h)return h.element}findElementPairByCreatedAt(c){return this.elementPairMapByCreatedAt.get(c.toIDString())}createSubPaths(c){let h=this.elementPairMapByCreatedAt.get(c.toIDString());if(!h)return[];const b=[];for(;h.parent;){const E=h.element.getCreatedAt(),P=h.parent.subPathOf(E);if(P===void 0)throw new Ge(Ve.ErrInvalidArgument,`cant find the given element: ${E.toIDString()}`);b.unshift(P),h=this.elementPairMapByCreatedAt.get(h.parent.getCreatedAt().toIDString())}return b.unshift("$"),b}createPath(c){return this.createSubPaths(c).join(".")}registerElement(c,h){this.elementPairMapByCreatedAt.set(c.getCreatedAt().toIDString(),{parent:h,element:c}),c instanceof Vd&&c.getDescendants((b,E)=>(this.registerElement(b,E),!1))}deregisterElement(c){let h=0;const b=E=>{const P=E.getCreatedAt().toIDString();this.elementPairMapByCreatedAt.delete(P),this.gcElementSetByCreatedAt.delete(P),h++};return b(c),c instanceof Vd&&c.getDescendants(E=>(b(E),!1)),h}registerRemovedElement(c){this.gcElementSetByCreatedAt.add(c.getCreatedAt().toIDString())}registerGCPair(c){if(this.gcPairMap.get(c.child.toIDString())){this.gcPairMap.delete(c.child.toIDString());return}this.gcPairMap.set(c.child.toIDString(),c)}getElementMapSize(){return this.elementPairMapByCreatedAt.size}getGarbageElementSetSize(){const c=new Set;for(const h of this.gcElementSetByCreatedAt){c.add(h);const b=this.elementPairMapByCreatedAt.get(h);b.element instanceof Vd&&b.element.getDescendants(E=>(c.add(E.getCreatedAt().toIDString()),!1))}return c.size}getObject(){return this.rootObject}getGarbageLen(){return this.getGarbageElementSetSize()+this.gcPairMap.size}deepcopy(){return new Yp(this.rootObject.deepcopy())}garbageCollect(c){let h=0;for(const b of this.gcElementSetByCreatedAt){const E=this.elementPairMapByCreatedAt.get(b);E.element.getRemovedAt()&&c.compare(E.element.getRemovedAt())>=0&&(E.parent.purge(E.element),h+=this.deregisterElement(E.element))}for(const[,b]of this.gcPairMap){const E=b.child.getRemovedAt();E!==void 0&&c.compare(E)>=0&&(b.parent.purge(b.child),this.gcPairMap.delete(b.child.toIDString()),h+=1)}return h}toJSON(){return this.rootObject.toJSON()}toSortedJSON(){return this.rootObject.toSortedJSON()}}function As(y,c){const h=new so(y);return new Proxy(c,h.getHandlers())}class so{constructor(c){s(this,"context"),s(this,"handlers"),this.context=c,this.handlers={set:(h,b,E)=>(Mn.isEnabled(Xa.Trivial)&&Mn.trivial(`obj[${b}]=${JSON.stringify(E)}`),so.setInternal(c,h,b,E),!0),get:(h,b)=>(Mn.isEnabled(Xa.Trivial)&&Mn.trivial(`obj[${b}]`),b==="getID"?()=>h.getCreatedAt():b==="toJSON"||b==="toString"?()=>h.toJSON():b==="toJS"?()=>h.toJS():b==="toJSForTest"?()=>h.toJSForTest():Yu(c,h.get(b))),ownKeys:h=>h.getKeys(),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),deleteProperty:(h,b)=>(Mn.isEnabled(Xa.Trivial)&&Mn.trivial(`obj[${b}]`),so.deleteInternal(c,h,b),!0)}}static setInternal(c,h,b,E){if(b.includes("."))throw new Ge(Ve.ErrInvalidObjectKey,"key must not contain the '.'.");const P=c.issueTimeTicket(),U=ng(c,E,P),Y=h.set(b,U,P);c.registerElement(U,h),Y&&c.registerRemovedElement(Y),c.push(ph.create(b,U.deepcopy(),h.getCreatedAt(),P))}static buildObjectMembers(c,h){const b={};for(const[E,P]of Object.entries(h)){if(E.includes("."))throw new Ge(Ve.ErrInvalidObjectKey,"key must not contain the '.'.");const U=c.issueTimeTicket(),Y=ng(c,P,U);b[E]=Y}return b}static deleteInternal(c,h,b){const E=c.issueTimeTicket(),P=h.deleteByKey(b,E);P&&(c.push(qd.create(h.getCreatedAt(),P.getCreatedAt(),E)),c.registerRemovedElement(P))}getHandlers(){return this.handlers}}function L6(y,c){const h=new ui(y,c);return new Proxy(c,h.getHandlers())}function M6(y){return typeof y=="string"||y instanceof String?!isNaN(y):!1}function Ab(y){return["concat","entries","every","filter","find","findIndex","forEach","join","keys","map","reduce","reduceRight","slice","some","toLocaleString","toString","values"].includes(y)}class ui{constructor(c,h){s(this,"context"),s(this,"handlers"),s(this,"array"),this.context=c,this.array=h,this.handlers={get:(b,E,P)=>E==="getID"?()=>b.getCreatedAt():E==="getElementByID"?U=>{const Y=b.getByID(U);if(!(!Y||Y.isRemoved()))return td(c,Y)}:E==="getElementByIndex"?U=>{const Y=b.get(U);return td(c,Y)}:E==="getLast"?()=>td(c,b.getLast()):E==="deleteByID"?U=>{const Y=ui.deleteInternalByID(c,b,U);return td(c,Y)}:E==="insertAfter"?(U,Y)=>{const fe=ui.insertAfterInternal(c,b,U,Y);return td(c,fe)}:E==="insertBefore"?(U,Y)=>{const fe=ui.insertBeforeInternal(c,b,U,Y);return td(c,fe)}:E==="moveBefore"?(U,Y)=>{ui.moveBeforeInternal(c,b,U,Y)}:E==="moveAfter"?(U,Y)=>{ui.moveAfterInternal(c,b,U,Y)}:E==="moveFront"?U=>{ui.moveFrontInternal(c,b,U)}:E==="moveLast"?U=>{ui.moveLastInternal(c,b,U)}:M6(E)?Yu(c,b.get(Number(E))):E==="push"?U=>ui.pushInternal(c,b,U):E==="splice"?(U,Y,...fe)=>ui.splice(c,b,U,Y,...fe):E==="length"?b.length:typeof E=="symbol"&&E===Symbol.iterator?ui.iteratorInternal.bind(this,c,b):E==="includes"?(U,Y)=>ui.includes(c,b,U,Y):E==="indexOf"?(U,Y)=>ui.indexOf(c,b,U,Y):E==="lastIndexOf"?(U,Y)=>ui.lastIndexOf(c,b,U,Y):E==="toJSForTest"?()=>b.toJSForTest():E==="toTestString"?()=>ui.toTestString(b):typeof E=="string"&&Ab(E)?(...U)=>{const Y=Array.from(b).map(fe=>Yu(c,fe));return Array.prototype[E].apply(Y,U)}:Reflect.get(b,E,P),deleteProperty:(b,E)=>(Mn.isEnabled(Xa.Trivial)&&Mn.trivial(`array[${E}]`),ui.deleteInternalByIndex(c,b,Number.parseInt(E)),!0)}}static*iteratorInternal(c,h){for(const b of h)yield td(c,b)}static buildArrayElements(c,h){const b=[];for(const E of h){const P=c.issueTimeTicket(),U=ng(c,E,P);b.push(U)}return b}static pushInternal(c,h,b){return ui.insertAfterInternal(c,h,h.getLastCreatedAt(),b),h.length}static moveBeforeInternal(c,h,b,E){const P=c.issueTimeTicket(),U=h.getPrevCreatedAt(b);h.moveAfter(U,E,P),c.push(eo.create(h.getCreatedAt(),U,E,P))}static moveAfterInternal(c,h,b,E){const P=c.issueTimeTicket();h.moveAfter(b,E,P),c.push(eo.create(h.getCreatedAt(),b,E,P))}static moveFrontInternal(c,h,b){const E=c.issueTimeTicket(),P=h.getHead();h.moveAfter(P.getCreatedAt(),b,E),c.push(eo.create(h.getCreatedAt(),P.getCreatedAt(),b,E))}static moveLastInternal(c,h,b){const E=c.issueTimeTicket(),P=h.getLastCreatedAt();h.moveAfter(P,b,E),c.push(eo.create(h.getCreatedAt(),P,b,E))}static insertAfterInternal(c,h,b,E){const P=c.issueTimeTicket(),U=ng(c,E,P);return h.insertAfter(b,U),c.registerElement(U,h),c.push(Hm.create(h.getCreatedAt(),b,U.deepcopy(),P)),U}static insertBeforeInternal(c,h,b,E){return ui.insertAfterInternal(c,h,h.getPrevCreatedAt(b),E)}static deleteInternalByIndex(c,h,b){const E=c.issueTimeTicket(),P=h.deleteByIndex(b,E);if(P)return c.push(qd.create(h.getCreatedAt(),P.getCreatedAt(),E)),c.registerRemovedElement(P),P}static deleteInternalByID(c,h,b){const E=c.issueTimeTicket(),P=h.delete(b,E);return c.push(qd.create(h.getCreatedAt(),P.getCreatedAt(),E)),c.registerRemovedElement(P),P}static splice(c,h,b,E,...P){const U=h.length,Y=b>=0?Math.min(b,U):Math.max(U+b,0),fe=E===void 0?U:E<0?Y:Math.min(Y+E,U),me=[];for(let Pe=Y;Pe=U)return!1;if(Qr.isSupport(b))return Array.from(h).map(me=>Yu(c,me)).includes(b,Y);for(let fe=Y;fe=U)return-1;if(Qr.isSupport(b))return Array.from(h).map(me=>Yu(c,me)).indexOf(b,Y);for(let fe=Y;fe=U?U-1:E<0?E+U:E;if(Y<0)return-1;if(Qr.isSupport(b))return Array.from(h).map(me=>Yu(c,me)).lastIndexOf(b,Y);for(let fe=Y;fe>0;fe--)if(((P=h.get(fe))==null?void 0:P.getID())===b.getID())return fe;return-1}static toTestString(c){return c.toTestString()}getHandlers(){return this.handlers}}class Zp{constructor(c,h){s(this,"context"),s(this,"text"),this.context=c,this.text=h}initialize(c,h){this.context=c,this.text=h}getID(){return this.text.getID()}edit(c,h,b,E){if(!this.context||!this.text)throw new Ge(Ve.ErrNotInitialized,"Text is not initialized yet");if(c>h)throw new Ge(Ve.ErrInvalidArgument,"from should be less than or equal to to");const P=this.text.indexRangeToPosRange(c,h);Mn.isEnabled(Xa.Debug)&&Mn.debug(`EDIT: f:${c}->${P[0].toTestString()}, t:${h}->${P[1].toTestString()} c:${b}`);const U=E?ki(E):void 0,Y=this.context.issueTimeTicket(),[fe,,me,Pe]=this.text.edit(P,b,Y,U);for(const St of me)this.context.registerGCPair(St);return this.context.push(new Wm(this.text.getCreatedAt(),P[0],P[1],fe,b,U?new Map(Object.entries(U)):new Map,Y)),this.text.findIndexesFromRange(Pe)}delete(c,h){return this.edit(c,h,"")}empty(){return this.edit(0,this.length,"")}setStyle(c,h,b){if(!this.context||!this.text)throw new Ge(Ve.ErrNotInitialized,"Text is not initialized yet");if(c>h)throw new Ge(Ve.ErrInvalidArgument,"from should be less than or equal to to");const E=this.text.indexRangeToPosRange(c,h);Mn.isEnabled(Xa.Debug)&&Mn.debug(`STYL: f:${c}->${E[0].toTestString()}, t:${h}->${E[1].toTestString()} a:${JSON.stringify(b)}`);const P=ki(b),U=this.context.issueTimeTicket(),[Y,fe]=this.text.setStyle(E,P,U);for(const me of fe)this.context.registerGCPair(me);return this.context.push(new No(this.text.getCreatedAt(),E[0],E[1],Y,new Map(Object.entries(P)),U)),!0}indexRangeToPosRange(c){if(!this.context||!this.text)throw new Ge(Ve.ErrNotInitialized,"Text is not initialized yet");const h=this.text.indexRangeToPosRange(c[0],c[1]);return[h[0].toStruct(),h[1].toStruct()]}posRangeToIndexRange(c){if(!this.context||!this.text)throw new Ge(Ve.ErrNotInitialized,"Text is not initialized yet");const h=this.text.findIndexesFromRange([Yl.fromStruct(c[0]),Yl.fromStruct(c[1])]);return[h[0],h[1]]}toTestString(){if(!this.context||!this.text)throw new Ge(Ve.ErrNotInitialized,"Text is not initialized yet");return this.text.toTestString()}values(){if(!this.context||!this.text)throw new Ge(Ve.ErrNotInitialized,"Text is not initialized yet");return this.text.values()}get length(){return this.text.length}getTreeByIndex(){return this.text.getTreeByIndex()}getTreeByID(){return this.text.getTreeByID()}toString(){if(!this.context||!this.text)throw new Ge(Ve.ErrNotInitialized,"Text is not initialized yet");return this.text.toString()}toJSON(){if(!this.context||!this.text)throw new Ge(Ve.ErrNotInitialized,"Text is not initialized yet");return this.text.toJSON()}toJSForTest(){if(!this.context||!this.text)throw new Ge(Ve.ErrNotInitialized,"Text is not initialized yet");return this.text.toJSForTest()}createRangeForTest(c,h){if(!this.context||!this.text)throw new Ge(Ve.ErrNotInitialized,"Text is not initialized yet");return this.text.indexRangeToPosRange(c,h)}}class Xp{constructor(c,h){s(this,"valueType"),s(this,"value"),s(this,"context"),s(this,"counter"),this.valueType=c,this.value=h}initialize(c,h){this.valueType=h.getValueType(),this.context=c,this.counter=h,this.value=h.getValue()}getID(){return this.counter.getID()}getValue(){return this.value}getValueType(){return this.valueType}increase(c){if(!this.context||!this.counter)throw new Ge(Ve.ErrNotInitialized,"Counter is not initialized yet");const h=this.context.issueTimeTicket(),b=Qr.of(c,h);if(!b.isNumericType())throw new TypeError(`Unsupported type of value: ${typeof b.getValue()}`);return this.counter.increase(b),this.context.push(Vp.create(this.counter.getCreatedAt(),b,h)),this}toJSForTest(){if(!this.context||!this.counter)throw new Ge(Ve.ErrNotInitialized,"Counter is not initialized yet");return this.counter.toJSForTest()}}function CS(y,c,h){const{type:b}=y,E=h.issueTimeTicket();if(b===Zc){Eh(y);const{value:P}=y,U=to.create(Ga.of(E,0),b,P);c.append(U)}else{const{children:P=[]}=y;let{attributes:U}=y,Y;if(typeof U=="object"&&!Gx(U)){U=ki(U),Y=new Yc;for(const[me,Pe]of Object.entries(U))Y.set(me,Pe,E)}const fe=to.create(Ga.of(E,0),b,void 0,Y);c.append(fe);for(const me of P)CS(me,fe,h)}}function Sk(y,c){const{type:h}=c,b=y.issueTimeTicket();let E;if(c.type===Zc){const{value:P}=c;E=to.create(Ga.of(b,0),h,P)}else if(c){const{children:P=[]}=c;let{attributes:U}=c,Y;if(typeof U=="object"&&!Gx(U)){U=ki(U),Y=new Yc;for(const[fe,me]of Object.entries(U))Y.set(fe,me,b)}E=to.create(Ga.of(y.issueTimeTicket(),0),h,void 0,Y);for(const fe of P)CS(fe,E,y)}return E}function Eh(y){if(!y.value.length)throw new Ge(Ve.ErrInvalidArgument,"text node cannot have empty value");return!0}function Kp(y){if(!y.length)return!0;if(y[0].type===Zc)for(const h of y){const{type:b}=h;if(b!==Zc)throw new Ge(Ve.ErrInvalidArgument,"element node and text node cannot be passed together");Eh(h)}else for(const h of y){const{type:b}=h;if(b===Zc)throw new Ge(Ve.ErrInvalidArgument,"element node and text node cannot be passed together")}return!0}class tg{constructor(c){s(this,"initialRoot"),s(this,"context"),s(this,"tree"),this.initialRoot=c}initialize(c,h){this.context=c,this.tree=h}getID(){return this.tree.getID()}buildRoot(c){if(!this.initialRoot)return to.create(Ga.of(c.issueTimeTicket(),0),p6);const h=to.create(Ga.of(c.issueTimeTicket(),0),this.initialRoot.type);for(const b of this.initialRoot.children)CS(b,h,c);return h}getSize(){if(!this.context||!this.tree)throw new Ge(Ve.ErrNotInitialized,"Tree is not initialized yet");return this.tree.getSize()}getNodeSize(){if(!this.context||!this.tree)throw new Ge(Ve.ErrNotInitialized,"Tree is not initialized yet");return this.tree.getNodeSize()}getIndexTree(){if(!this.context||!this.tree)throw new Ge(Ve.ErrNotInitialized,"Tree is not initialized yet");return this.tree.getIndexTree()}styleByPath(c,h){if(!this.context||!this.tree)throw new Ge(Ve.ErrNotInitialized,"Tree is not initialized yet");if(!c.length)throw new Ge(Ve.ErrInvalidArgument,"path should not be empty");const[b,E]=this.tree.pathToPosRange(c),P=this.context.issueTimeTicket(),U=h?ki(h):void 0,[Y]=this.tree.style([b,E],U,P);this.context.push(sl.create(this.tree.getCreatedAt(),b,E,Y,U?new Map(Object.entries(U)):new Map,P))}style(c,h,b){if(!this.context||!this.tree)throw new Ge(Ve.ErrNotInitialized,"Tree is not initialized yet");if(c>h)throw new Ge(Ve.ErrInvalidArgument,"from should be less than or equal to to");const E=this.tree.findPos(c),P=this.tree.findPos(h),U=this.context.issueTimeTicket(),Y=b?ki(b):void 0,[fe,me]=this.tree.style([E,P],Y,U);for(const Pe of me)this.context.registerGCPair(Pe);this.context.push(sl.create(this.tree.getCreatedAt(),E,P,fe,Y?new Map(Object.entries(Y)):new Map,U))}removeStyle(c,h,b){if(!this.context||!this.tree)throw new Ge(Ve.ErrNotInitialized,"Tree is not initialized yet");if(c>h)throw new Ge(Ve.ErrInvalidArgument,"from should be less than or equal to to");const E=this.tree.findPos(c),P=this.tree.findPos(h),U=this.context.issueTimeTicket(),[Y,fe]=this.tree.removeStyle([E,P],b,U);for(const me of fe)this.context.registerGCPair(me);this.context.push(sl.createTreeRemoveStyleOperation(this.tree.getCreatedAt(),E,P,Y,b,U))}editInternal(c,h,b,E=0){var P;if(b.length!==0&&b[0]&&(Kp(b),b[0].type!==Zc))for(const Pe of b){const{children:St=[]}=Pe;Kp(St)}const U=this.context.getLastTimeTicket();let Y=new Array;if(((P=b[0])==null?void 0:P.type)===Zc){let Pe="";for(const St of b){const{value:mt}=St;Pe+=mt}Y.push(to.create(Ga.of(this.context.issueTimeTicket(),0),Zc,Pe))}else Y=b.map(Pe=>Pe&&Sk(this.context,Pe)).filter(Pe=>Pe);const[,fe,me]=this.tree.edit([c,h],Y.length?Y.map(Pe=>Pe==null?void 0:Pe.deepcopy()):void 0,E,U,()=>this.context.issueTimeTicket());for(const Pe of fe)this.context.registerGCPair(Pe);return this.context.push(Kc.create(this.tree.getCreatedAt(),c,h,Y.length?Y:void 0,E,me,U)),!0}editByPath(c,h,b,E=0){if(!this.context||!this.tree)throw new Ge(Ve.ErrNotInitialized,"Tree is not initialized yet");if(c.length!==h.length)throw new Ge(Ve.ErrInvalidArgument,"path length should be equal");if(!c.length||!h.length)throw new Ge(Ve.ErrInvalidArgument,"path should not be empty");const P=this.tree.pathToPos(c),U=this.tree.pathToPos(h);return this.editInternal(P,U,b?[b]:[],E)}editBulkByPath(c,h,b,E=0){if(!this.context||!this.tree)throw new Ge(Ve.ErrNotInitialized,"Tree is not initialized yet");if(c.length!==h.length)throw new Ge(Ve.ErrInvalidArgument,"path length should be equal");if(!c.length||!h.length)throw new Ge(Ve.ErrInvalidArgument,"path should not be empty");const P=this.tree.pathToPos(c),U=this.tree.pathToPos(h);return this.editInternal(P,U,b,E)}edit(c,h,b,E=0){if(!this.context||!this.tree)throw new Ge(Ve.ErrNotInitialized,"Tree is not initialized yet");if(c>h)throw new Ge(Ve.ErrInvalidArgument,"from should be less than or equal to to");const P=this.tree.findPos(c),U=this.tree.findPos(h);return this.editInternal(P,U,b?[b]:[],E)}editBulk(c,h,b,E=0){if(!this.context||!this.tree)throw new Ge(Ve.ErrNotInitialized,"Tree is not initialized yet");if(c>h)throw new Ge(Ve.ErrInvalidArgument,"from should be less than or equal to to");const P=this.tree.findPos(c),U=this.tree.findPos(h);return this.editInternal(P,U,b,E)}toXML(){if(!this.context||!this.tree)throw new Ge(Ve.ErrNotInitialized,"Tree is not initialized yet");return this.tree.toXML()}toJSON(){if(!this.context||!this.tree)throw new Ge(Ve.ErrNotInitialized,"Tree is not initialized yet");return this.tree.toJSON()}toJSForTest(){if(!this.context||!this.tree)throw new Ge(Ve.ErrNotInitialized,"Tree is not initialized yet");return this.tree.toJSForTest()}toJSInfoForTest(){if(!this.context||!this.tree)throw new Ge(Ve.ErrNotInitialized,"Tree is not initialized yet");return this.tree.toJSInfoForTest()}getRootTreeNode(){if(!this.context||!this.tree)throw new Ge(Ve.ErrNotInitialized,"Tree is not initialized yet");return this.tree.getRootTreeNode()}indexToPath(c){if(!this.context||!this.tree)throw new Ge(Ve.ErrNotInitialized,"Tree is not initialized yet");return this.tree.indexToPath(c)}pathToIndex(c){if(!this.context||!this.tree)throw new Ge(Ve.ErrNotInitialized,"Tree is not initialized yet");return this.tree.pathToIndex(c)}pathRangeToPosRange(c){if(!this.context||!this.tree)throw new Ge(Ve.ErrNotInitialized,"Tree is not initialized yet");const h=[this.tree.pathToIndex(c[0]),this.tree.pathToIndex(c[1])],b=this.tree.indexRangeToPosRange(h);return[b[0].toStruct(),b[1].toStruct()]}indexRangeToPosRange(c){if(!this.context||!this.tree)throw new Ge(Ve.ErrNotInitialized,"Tree is not initialized yet");return this.tree.indexRangeToPosStructRange(c)}posRangeToIndexRange(c){if(!this.context||!this.tree)throw new Ge(Ve.ErrNotInitialized,"Tree is not initialized yet");const h=[ql.fromStruct(c[0]),ql.fromStruct(c[1])];return this.tree.posRangeToIndexRange(h)}posRangeToPathRange(c){if(!this.context||!this.tree)throw new Ge(Ve.ErrNotInitialized,"Tree is not initialized yet");const h=[ql.fromStruct(c[0]),ql.fromStruct(c[1])];return this.tree.posRangeToPathRange(h)}}function RS(y,c){return As(y,c)}function td(y,c){if(c){if(c instanceof Qr)return c;if(c instanceof Ks)return As(y,c);if(c instanceof $n)return L6(y,c);if(c instanceof il)return new Zp(y,c);if(c instanceof io){const h=new Xp(Ya.IntegerCnt,0);return h.initialize(y,c),h}else if(c instanceof no){const h=new tg;return h.initialize(y,c),h}}else return;throw new TypeError(`Unsupported type of element: ${typeof c}`)}function Yu(y,c){const h=td(y,c);return h instanceof Qr?h.getValue():h}function ng(y,c,h){let b;if(Qr.isSupport(c))b=Qr.of(c,h);else if(Array.isArray(c))b=$n.create(h,ui.buildArrayElements(y,c));else if(typeof c=="object")c instanceof Zp?(b=il.create(gh.create(),h),c.initialize(y,b)):c instanceof Xp?(b=io.create(c.getValueType(),c.getValue(),h),c.initialize(y,b)):c instanceof tg?(b=no.create(c.buildRoot(y),h),c.initialize(y,b)):b=Ks.create(h,so.buildObjectMembers(y,c));else throw new TypeError(`Unsupported type of value: ${typeof c}`);return b}const rg=50;class IS{constructor(){s(this,"undoStack",[]),s(this,"redoStack",[])}hasUndo(){return this.undoStack.length>0}hasRedo(){return this.redoStack.length>0}pushUndo(c){this.undoStack.length>=rg&&this.undoStack.shift(),this.undoStack.push(c)}popUndo(){return this.undoStack.pop()}pushRedo(c){this.redoStack.length>=rg&&this.redoStack.shift(),this.redoStack.push(c)}popRedo(){return this.redoStack.pop()}clearRedo(){this.redoStack=[]}getUndoStackForTest(){return this.undoStack}getRedoStackForTest(){return this.redoStack}}const ig="yorkie-devtools-panel",Ek="yorkie-devtools-sdk";let wh="disconnected";const ag=new Map,sg=new Map;typeof window<"u"&&(window.transactionEventsByDocKey=sg);function Jp(y,c){(c!=null&&c.force||wh!=="disconnected")&&window.postMessage({source:Ek,...y},"*")}function $6(y){if(!y.isEnableDevtools()||typeof window>"u"||ag.has(y.getKey()))return;sg.set(y.getKey(),[]);const c=y.subscribe("all",h=>{h.some(b=>b.type!==Mi.StatusChanged&&b.type!==Mi.Snapshot&&b.type!==Mi.LocalChange&&b.type!==Mi.RemoteChange&&b.type!==Mi.Initialized&&b.type!==Mi.Watched&&b.type!==Mi.Unwatched&&b.type!==Mi.PresenceChanged)||(sg.get(y.getKey()).push(h),wh==="synced"&&Jp({msg:"doc::sync::partial",docKey:y.getKey(),event:h}))});ag.set(y.getKey(),[c]),Jp({msg:"refresh-devtools"},{force:!0}),window.addEventListener("message",h=>{var b;if(((b=h.data)==null?void 0:b.source)!==ig)return;switch(h.data.msg){case"devtools::connect":if(wh!=="disconnected")break;wh="connected",Jp({msg:"doc::available",docKey:y.getKey()}),Mn.info(`[YD] Devtools connected. Doc: ${y.getKey()}`);break;case"devtools::disconnect":wh="disconnected",Mn.info(`[YD] Devtools disconnected. Doc: ${y.getKey()}`);break;case"devtools::subscribe":wh="synced",Jp({msg:"doc::sync::full",docKey:y.getKey(),events:sg.get(y.getKey())}),Mn.info(`[YD] Devtools subscribed. Doc: ${y.getKey()}`);break}})}var Zu=(y=>(y.Detached="detached",y.Attached="attached",y.Removed="removed",y))(Zu||{}),Mi=(y=>(y.StatusChanged="status-changed",y.ConnectionChanged="connection-changed",y.SyncStatusChanged="sync-status-changed",y.Snapshot="snapshot",y.LocalChange="local-change",y.RemoteChange="remote-change",y.Initialized="initialized",y.Watched="watched",y.Unwatched="unwatched",y.PresenceChanged="presence-changed",y))(Mi||{}),og=(y=>(y.Connected="connected",y.Disconnected="disconnected",y))(og||{}),lg=(y=>(y.Synced="synced",y.SyncFailed="sync-failed",y))(lg||{});class NS{constructor(c,h){s(this,"key"),s(this,"status"),s(this,"opts"),s(this,"changeID"),s(this,"checkpoint"),s(this,"localChanges"),s(this,"root"),s(this,"clone"),s(this,"eventStream"),s(this,"eventStreamObserver"),s(this,"onlineClients"),s(this,"presences"),s(this,"history"),s(this,"internalHistory"),s(this,"isUpdating"),this.opts=h||{},this.key=c,this.status="detached",this.root=Yp.create(),this.changeID=O6,this.checkpoint=wS,this.localChanges=[],this.eventStream=P6(b=>{this.eventStreamObserver=b}),this.onlineClients=new Set,this.presences=new Map,this.isUpdating=!1,this.internalHistory=new IS,this.history={canUndo:this.canUndo.bind(this),canRedo:this.canRedo.bind(this),undo:this.undo.bind(this),redo:this.redo.bind(this)},$6(this)}update(c,h){if(this.getStatus()==="removed")throw new Ge(Ve.ErrDocumentRemoved,`${this.key} is removed`);this.ensureClone();const b=this.changeID.getActorID(),E=Sh.create(this.changeID.next(),this.clone.root,this.clone.presences.get(b)||{},h);try{const P=RS(E,this.clone.root.getObject());this.presences.has(b)||this.clone.presences.set(b,{}),this.isUpdating=!0,c(P,new yS(E,this.clone.presences.get(b)))}catch(P){throw this.clone=void 0,P}finally{this.isUpdating=!1}if(E.hasChange()){Mn.isEnabled(Xa.Trivial)&&Mn.trivial(`trying to update a local change: ${this.toJSON()}`);const P=E.getChange(),{opInfos:U,reverseOps:Y}=P.execute(this.root,this.presences,Xr.Local),fe=E.getReversePresence();fe&&Y.push({type:"presence",value:fe}),this.localChanges.push(P),Y.length>0&&this.internalHistory.pushUndo(Y),U.length>0&&this.internalHistory.clearRedo(),this.changeID=P.getID();const me=[];U.length>0&&me.push({type:"local-change",source:Xr.Local,value:{message:P.getMessage()||"",operations:U,actor:b,clientSeq:P.getID().getClientSeq(),serverSeq:P.getID().getServerSeq()},rawChange:this.isEnableDevtools()?P.toStruct():void 0}),P.hasPresenceChange()&&me.push({type:"presence-changed",source:Xr.Local,value:{clientID:b,presence:this.getPresence(b)}}),this.publish(me),Mn.isEnabled(Xa.Trivial)&&Mn.trivial(`after update a local change: ${this.toJSON()}`)}}subscribe(c,h,b,E){if(typeof c=="string"){if(typeof h!="function")throw new Ge(Ve.ErrInvalidArgument,"Second argument must be a callback function");if(c==="presence"){const Y=h;return this.eventStream.subscribe(fe=>{for(const me of fe)me.type!=="initialized"&&me.type!=="watched"&&me.type!=="unwatched"&&me.type!=="presence-changed"||Y(me)},b,E)}if(c==="my-presence"){const Y=h;return this.eventStream.subscribe(fe=>{for(const me of fe)me.type!=="initialized"&&me.type!=="presence-changed"||me.type==="presence-changed"&&me.value.clientID!==this.changeID.getActorID()||Y(me)},b,E)}if(c==="others"){const Y=h;return this.eventStream.subscribe(fe=>{for(const me of fe)me.type!=="watched"&&me.type!=="unwatched"&&me.type!=="presence-changed"||me.value.clientID!==this.changeID.getActorID()&&Y(me)},b,E)}if(c==="connection"){const Y=h;return this.eventStream.subscribe(fe=>{for(const me of fe)me.type==="connection-changed"&&Y(me)},b,E)}if(c==="status"){const Y=h;return this.eventStream.subscribe(fe=>{for(const me of fe)me.type==="status-changed"&&Y(me)},b,E)}if(c==="sync"){const Y=h;return this.eventStream.subscribe(fe=>{for(const me of fe)me.type==="sync-status-changed"&&Y(me)},b,E)}if(c==="all"){const Y=h;return this.eventStream.subscribe(Y,b,E)}const P=c,U=h;return this.eventStream.subscribe(Y=>{for(const fe of Y){if(fe.type!=="local-change"&&fe.type!=="remote-change")continue;const me=[];for(const Pe of fe.value.operations)this.isSameElementOrChildOf(Pe.path,P)&&me.push(Pe);me.length&&U({...fe,value:{...fe.value,operations:me}})}},b,E)}if(typeof c=="function"){const P=c,U=h,Y=b;return this.eventStream.subscribe(fe=>{for(const me of fe)me.type!=="snapshot"&&me.type!=="local-change"&&me.type!=="remote-change"||P(me)},U,Y)}throw new Ge(Ve.ErrInvalidArgument,`"${c}" is not a valid`)}publish(c){this.eventStreamObserver&&this.eventStreamObserver.next(c)}isSameElementOrChildOf(c,h){if(h===c)return!0;const b=c.split(".");return h.split(".").every((P,U)=>P===b[U])}applyChangePack(c){for(c.hasSnapshot()?this.applySnapshot(c.getCheckpoint().getServerSeq(),c.getSnapshot()):c.hasChanges()&&this.applyChanges(c.getChanges(),Xr.Remote);this.localChanges.length&&!(this.localChanges[0].getID().getClientSeq()>c.getCheckpoint().getClientSeq());)this.localChanges.shift();c.hasSnapshot()&&this.applyChanges(this.localChanges,Xr.Remote),this.checkpoint=this.checkpoint.forward(c.getCheckpoint()),this.garbageCollect(c.getMinSyncedTicket()),c.getIsRemoved()&&this.applyStatus("removed"),Mn.isEnabled(Xa.Trivial)&&Mn.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:Wl(this.presences)})}createChangePack(){const c=Array.from(this.localChanges),h=this.checkpoint.increaseClientSeq(c.length);return fb.create(this.key,h,!1,c)}setActor(c){for(const h of this.localChanges)h.setActor(c);this.changeID=this.changeID.setActor(c)}isEnableDevtools(){return!!this.opts.enableDevtools}getKey(){return this.key}getStatus(){return this.status}getCloneRoot(){if(this.clone)return this.clone.root.getObject()}getRoot(){this.ensureClone();const c=Sh.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});return RS(c,this.clone.root.getObject())}garbageCollect(c){return this.opts.disableGC?0:(this.clone&&this.clone.root.garbageCollect(c),this.root.garbageCollect(c))}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(c,h){const{root:b,presences:E}=li.bytesToSnapshot(h);this.root=new Yp(b),this.presences=E,this.changeID=this.changeID.syncLamport(c),this.clone=void 0,this.publish([{type:"snapshot",source:Xr.Remote,value:{snapshot:this.isEnableDevtools()?li.bytesToHex(h):void 0,serverSeq:c.toString()}}])}applyChanges(c,h){Mn.isEnabled(Xa.Debug)&&Mn.debug(`trying to apply ${c.length} remote changes.elements:${this.root.getElementMapSize()}, removeds:${this.root.getGarbageElementSetSize()}`),Mn.isEnabled(Xa.Trivial)&&Mn.trivial(c.map(b=>`${b.getID().toTestString()} ${b.toTestString()}`).join(` -`));for(const b of c)this.applyChange(b,h);Mn.isEnabled(Xa.Debug)&&Mn.debug(`after appling ${c.length} remote changes.elements:${this.root.getElementMapSize()}, removeds:${this.root.getGarbageElementSetSize()}`)}applyChange(c,h){this.ensureClone(),c.execute(this.clone.root,this.clone.presences,h);const b=[],E=c.getID().getActorID();if(c.hasPresenceChange()&&this.onlineClients.has(E)){const U=c.getPresenceChange();switch(U.type){case Wd.Put:b.push(this.presences.has(E)?{type:"presence-changed",source:h,value:{clientID:E,presence:U.presence}}:{type:"watched",source:Xr.Remote,value:{clientID:E,presence:U.presence}});break;case Wd.Clear:b.push({type:"unwatched",source:Xr.Remote,value:{clientID:E,presence:this.getPresence(E)}}),this.removeOnlineClient(E);break}}const{opInfos:P}=c.execute(this.root,this.presences,h);if(this.changeID=this.changeID.syncLamport(c.getID().getLamport()),P.length>0){const U=this.isEnableDevtools()?c.toStruct():void 0;b.push(h===Xr.Remote?{type:"remote-change",source:h,value:{actor:E,clientSeq:c.getID().getClientSeq(),serverSeq:c.getID().getServerSeq(),message:c.getMessage()||"",operations:P},rawChange:U}:{type:"local-change",source:h,value:{actor:E,clientSeq:c.getID().getClientSeq(),serverSeq:c.getID().getServerSeq(),message:c.getMessage()||"",operations:P},rawChange:U})}b.length>0&&this.publish(b)}applyWatchStream(c){if(c.body.case==="initialization"){const h=c.body.value.clientIds,b=new Set;for(const E of h)E!==this.changeID.getActorID()&&b.add(E);this.setOnlineClients(b),this.publish([{type:"initialized",source:Xr.Local,value:this.getPresences()}]);return}if(c.body.case==="event"){const{type:h,publisher:b}=c.body.value,E=[];if(h===si.DOCUMENT_WATCHED)this.addOnlineClient(b),this.hasPresence(b)&&E.push({type:"watched",source:Xr.Remote,value:{clientID:b,presence:this.getPresence(b)}});else if(h===si.DOCUMENT_UNWATCHED){const P=this.getPresence(b);this.removeOnlineClient(b),P&&E.push({type:"unwatched",source:Xr.Remote,value:{clientID:b,presence:P}})}E.length>0&&this.publish(E)}}applyStatus(c){this.status=c,c==="detached"&&this.setActor(zm),this.publish([{source:c==="removed"?Xr.Remote:Xr.Local,type:"status-changed",value:c==="attached"?{status:c,actorID:this.changeID.getActorID()}:{status:c}}])}applyDocEvent(c){if(c.type==="status-changed"){this.applyStatus(c.value.status),c.value.status==="attached"&&this.setActor(c.value.actorID);return}if(c.type==="snapshot"){const{snapshot:h,serverSeq:b}=c.value;if(!h)return;this.applySnapshot(_n.fromString(b),li.hexToBytes(h));return}if(c.type==="local-change"||c.type==="remote-change"){if(!c.rawChange)return;const h=Yd.fromStruct(c.rawChange);this.applyChange(h,c.source)}if(c.type==="initialized"){const h=new Set;for(const{clientID:b,presence:E}of c.value)h.add(b),this.presences.set(b,E);this.setOnlineClients(h);return}if(c.type==="watched"){const{clientID:h,presence:b}=c.value;this.addOnlineClient(h),this.presences.set(h,b);return}if(c.type==="unwatched"){const{clientID:h}=c.value;this.removeOnlineClient(h),this.presences.delete(h)}if(c.type==="presence-changed"){const{clientID:h,presence:b}=c.value;this.presences.set(h,b)}}applyTransactionEvent(c){for(const h of c)this.applyDocEvent(h)}getValueByPath(c){if(!c.startsWith("$"))throw new Ge(Ve.ErrInvalidArgument,'path must start with "$"');const h=c.split(".");h.shift();let b=this.getRoot();for(const E of h)if(b=b[E],b===void 0)return;return b}setOnlineClients(c){this.onlineClients=c}resetOnlineClients(){this.onlineClients=new Set}addOnlineClient(c){this.onlineClients.add(c)}removeOnlineClient(c){this.onlineClients.delete(c)}hasPresence(c){return this.presences.has(c)}getMyPresence(){if(this.status!=="attached")return{};const c=this.presences.get(this.changeID.getActorID());return c?Wl(c):{}}getPresence(c){if(c===this.changeID.getActorID())return this.getMyPresence();if(!this.onlineClients.has(c))return;const h=this.presences.get(c);return h?Wl(h):void 0}getPresenceForTest(c){const h=this.presences.get(c);return h?Wl(h):void 0}getPresences(){const c=[];c.push({clientID:this.changeID.getActorID(),presence:Wl(this.getMyPresence())});for(const h of this.onlineClients)this.presences.has(h)&&c.push({clientID:h,presence:Wl(this.presences.get(h))});return c}getSelfForTest(){return{clientID:this.getChangeID().getActorID(),presence:this.getMyPresence()}}getOthersForTest(){const c=this.getChangeID().getActorID();return this.getPresences().filter(h=>h.clientID!==c).sort((h,b)=>h.clientID>b.clientID?1:-1)}canUndo(){return this.internalHistory.hasUndo()&&!this.isUpdating}canRedo(){return this.internalHistory.hasRedo()&&!this.isUpdating}undo(){if(this.isUpdating)throw new Ge(Ve.ErrRefused,"Undo is not allowed during an update");const c=this.internalHistory.popUndo();if(c===void 0)throw new Ge(Ve.ErrRefused,"There is no operation to be undone");this.ensureClone();const h=Sh.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});for(const me of c){if(!(me instanceof Js)){new yS(h,Wl(this.clone.presences.get(this.changeID.getActorID()))).set(me.value,{addToHistory:!0});continue}const Pe=h.issueTimeTicket();me.setExecutedAt(Pe),h.push(me)}const b=h.getChange();b.execute(this.clone.root,this.clone.presences,Xr.UndoRedo);const{opInfos:E,reverseOps:P}=b.execute(this.root,this.presences,Xr.UndoRedo),U=h.getReversePresence();if(U&&P.push({type:"presence",value:U}),P.length>0&&this.internalHistory.pushRedo(P),!b.hasPresenceChange()&&E.length===0)return;this.localChanges.push(b),this.changeID=b.getID();const Y=this.changeID.getActorID(),fe=[];E.length>0&&fe.push({type:"local-change",source:Xr.UndoRedo,value:{message:b.getMessage()||"",operations:E,actor:Y,clientSeq:b.getID().getClientSeq(),serverSeq:b.getID().getServerSeq()},rawChange:this.isEnableDevtools()?b.toStruct():void 0}),b.hasPresenceChange()&&fe.push({type:"presence-changed",source:Xr.UndoRedo,value:{clientID:Y,presence:this.getPresence(Y)}}),this.publish(fe)}redo(){if(this.isUpdating)throw new Ge(Ve.ErrRefused,"Redo is not allowed during an update");const c=this.internalHistory.popRedo();if(c===void 0)throw new Ge(Ve.ErrRefused,"There is no operation to be redone");this.ensureClone();const h=Sh.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});for(const me of c){if(!(me instanceof Js)){new yS(h,Wl(this.clone.presences.get(this.changeID.getActorID()))).set(me.value,{addToHistory:!0});continue}const Pe=h.issueTimeTicket();me.setExecutedAt(Pe),h.push(me)}const b=h.getChange();b.execute(this.clone.root,this.clone.presences,Xr.UndoRedo);const{opInfos:E,reverseOps:P}=b.execute(this.root,this.presences,Xr.UndoRedo),U=h.getReversePresence();if(U&&P.push({type:"presence",value:U}),P.length>0&&this.internalHistory.pushUndo(P),!b.hasPresenceChange()&&E.length===0)return;this.localChanges.push(b),this.changeID=b.getID();const Y=this.changeID.getActorID(),fe=[];E.length>0&&fe.push({type:"local-change",source:Xr.UndoRedo,value:{message:b.getMessage()||"",operations:E,actor:Y,clientSeq:b.getID().getClientSeq(),serverSeq:b.getID().getServerSeq()},rawChange:this.isEnableDevtools()?b.toStruct():void 0}),b.hasPresenceChange()&&fe.push({type:"presence-changed",source:Xr.UndoRedo,value:{clientID:Y,presence:this.getPresence(Y)}}),this.publish(fe)}getUndoStackForTest(){return this.internalHistory.getUndoStackForTest()}getRedoStackForTest(){return this.internalHistory.getRedoStackForTest()}}function wk(y,c){return h=>async b=>(y&&b.header.set("x-api-key",y),c&&b.header.set("authorization",c),await h(b))}const Ck={name:"yorkie-js-sdk",version:"0.4.31",description:"Yorkie JS SDK",main:"./src/yorkie.ts",publishConfig:{access:"public",main:"./dist/yorkie-js-sdk.js",typings:"./dist/yorkie-js-sdk.d.ts"},files:["dist"],scripts:{build:"tsc && vite build","build:proto":"npx buf generate","build:docs":"typedoc","build:ghpages":"mkdir -p ghpages/examples && cp -r docs ghpages/api-reference && find ../../examples -name 'dist' -type d -exec sh -c 'cp -r {} ghpages/examples/$(basename $(dirname {}))' \\;",dev:"vite build -c vite.preview.ts && vite preview",test:"vitest run","test:watch":"vitest","test:bench":"vitest bench","test:ci":"vitest run --coverage","test:yorkie.dev":"TEST_RPC_ADDR=https://api.yorkie.dev vitest run --coverage",lint:"eslint . --fix --max-warnings=0 --ext .ts",prepare:"pnpm build"},engines:{node:">=18.0.0",npm:">=7.1.0"},repository:{type:"git",url:"git+https://github.com/yorkie-team/yorkie-js-sdk.git"},author:{name:"hackerwins",email:"susukang98@gmail.com"},license:"Apache-2.0",bugs:{url:"https://github.com/yorkie-team/yorkie-js-sdk/issues"},homepage:"https://github.com/yorkie-team/yorkie-js-sdk#readme",devDependencies:{"@buf/googleapis_googleapis.bufbuild_es":"^1.4.0-20240524201209-f0e53af8f2fc.3","@bufbuild/buf":"^1.28.1","@bufbuild/protoc-gen-es":"^1.6.0","@connectrpc/protoc-gen-connect-es":"^1.4.0","@types/google-protobuf":"^3.15.5","@types/long":"^4.0.1","@typescript-eslint/eslint-plugin":"^6.21.0","@typescript-eslint/parser":"^6.21.0","@vitest/coverage-istanbul":"^0.34.5","@vitest/coverage-v8":"^0.34.5",eslint:"^8.19.0","eslint-plugin-jsdoc":"^39.3.3","eslint-plugin-prettier":"^4.2.1","eslint-plugin-tsdoc":"^0.2.16",husky:"^8.0.3",prettier:"^2.7.1","ts-node":"^10.9.1",typedoc:"^0.25.13",typescript:"^5.3.3","typescript-transform-paths":"^3.3.1",vite:"^5.0.12","vite-plugin-commonjs":"^0.10.1","vite-plugin-dts":"^3.9.1","vite-tsconfig-paths":"^4.2.1",vitest:"^0.34.5"},dependencies:{"@bufbuild/protobuf":"^1.6.0","@connectrpc/connect":"^1.4.0","@connectrpc/connect-web":"^1.4.0",long:"^5.2.0"},husky:{hooks:{"pre-commit":"pnpm lint"}}};function B6(){return y=>async c=>(c.header.set("x-yorkie-user-agent",Ck.name+"/"+Ck.version),await y(c))}var t0=(y=>(y.Manual="manual",y.Realtime="realtime",y.RealtimePushOnly="realtime-pushonly",y.RealtimeSyncOff="realtime-syncoff",y))(t0||{}),Rk=(y=>(y.Deactivated="deactivated",y.Activated="activated",y))(Rk||{}),LS=(y=>(y.SyncLoop="SyncLoop",y.WatchLoop="WatchLoop",y))(LS||{});const _b={syncLoopDuration:50,retrySyncLoopDelay:1e3,reconnectStreamDelay:1e3};class MS{constructor(c,h){s(this,"id"),s(this,"key"),s(this,"status"),s(this,"attachmentMap"),s(this,"apiKey"),s(this,"conditions"),s(this,"syncLoopDuration"),s(this,"reconnectStreamDelay"),s(this,"retrySyncLoopDelay"),s(this,"rpcClient"),s(this,"taskQueue"),s(this,"processing",!1),h=h||_b,this.key=h.key?h.key:vk(),this.status="deactivated",this.attachmentMap=new Map,this.apiKey=h.apiKey||"",this.conditions={SyncLoop:!1,WatchLoop:!1},this.syncLoopDuration=h.syncLoopDuration||_b.syncLoopDuration,this.reconnectStreamDelay=h.reconnectStreamDelay||_b.reconnectStreamDelay,this.retrySyncLoopDelay=h.retrySyncLoopDelay||_b.retrySyncLoopDelay,this.rpcClient=zI(mS,J1({baseUrl:c,interceptors:[wk(h.apiKey,h.token),B6()]})),this.taskQueue=[]}activate(){return this.isActive()?Promise.resolve():this.enqueueTask(async()=>this.rpcClient.activateClient({clientKey:this.key},{headers:{"x-shard-key":this.apiKey}}).then(c=>{this.id=c.clientId,this.status="activated",this.runSyncLoop(),Mn.info(`[AC] c:"${this.getKey()}" activated, id:"${this.id}"`)}).catch(c=>{throw Mn.error(`[AC] c:"${this.getKey()}" err :`,c),this.handleConnectError(c),c}))}deactivate(){return this.status==="deactivated"?Promise.resolve():this.enqueueTask(async()=>this.rpcClient.deactivateClient({clientId:this.id},{headers:{"x-shard-key":this.apiKey}}).then(()=>{this.deactivateInternal(),Mn.info(`[DC] c"${this.getKey()}" deactivated`)}).catch(c=>{throw Mn.error(`[DC] c:"${this.getKey()}" err :`,c),this.handleConnectError(c),c}))}attach(c,h={}){if(!this.isActive())throw new Ge(Ve.ErrClientNotActivated,`${this.key} is not active`);if(c.getStatus()!==Zu.Detached)throw new Ge(Ve.ErrDocumentNotDetached,`${c.getKey()} is not detached`);c.setActor(this.id),c.update((E,P)=>P.set(h.initialPresence||{}));const b=h.syncMode??"realtime";return this.enqueueTask(async()=>this.rpcClient.attachDocument({clientId:this.id,changePack:li.toChangePack(c.createChangePack())},{headers:{"x-shard-key":`${this.apiKey}/${c.getKey()}`}}).then(async E=>{const P=li.fromChangePack(E.changePack);return c.applyChangePack(P),c.getStatus()===Zu.Removed||(c.applyStatus(Zu.Attached),this.attachmentMap.set(c.getKey(),new D6(this.reconnectStreamDelay,c,E.documentId,b)),b!=="manual"&&await this.runWatchLoop(c.getKey()),Mn.info(`[AD] c:"${this.getKey()}" attaches d:"${c.getKey()}"`)),c}).catch(E=>{throw Mn.error(`[AD] c:"${this.getKey()}" err :`,E),this.handleConnectError(E),E}))}detach(c,h={}){if(!this.isActive())throw new Ge(Ve.ErrClientNotActivated,`${this.key} is not active`);const b=this.attachmentMap.get(c.getKey());if(!b)throw new Ge(Ve.ErrDocumentNotAttached,`${c.getKey()} is not attached`);return c.update((E,P)=>P.clear()),this.enqueueTask(async()=>this.rpcClient.detachDocument({clientId:this.id,documentId:b.docID,changePack:li.toChangePack(c.createChangePack()),removeIfNotAttached:h.removeIfNotAttached??!1},{headers:{"x-shard-key":`${this.apiKey}/${c.getKey()}`}}).then(E=>{const P=li.fromChangePack(E.changePack);return c.applyChangePack(P),c.getStatus()!==Zu.Removed&&c.applyStatus(Zu.Detached),this.detachInternal(c.getKey()),Mn.info(`[DD] c:"${this.getKey()}" detaches d:"${c.getKey()}"`),c}).catch(E=>{throw Mn.error(`[DD] c:"${this.getKey()}" err :`,E),this.handleConnectError(E),E}))}async changeSyncMode(c,h){if(!this.isActive())throw new Ge(Ve.ErrClientNotActivated,`${this.key} is not active`);const b=this.attachmentMap.get(c.getKey());if(!b)throw new Ge(Ve.ErrDocumentNotAttached,`${c.getKey()} is not attached`);const E=b.syncMode;return E===h?c:(b.changeSyncMode(h),h==="manual"?(b.cancelWatchStream(),c):(h==="realtime"&&(b.remoteChangeEventReceived=!0),E==="manual"&&await this.runWatchLoop(c.getKey()),c))}sync(c){if(!this.isActive())throw new Ge(Ve.ErrClientNotActivated,`${this.key} is not active`);if(c){const h=this.attachmentMap.get(c.getKey());if(!h)throw new Ge(Ve.ErrDocumentNotAttached,`${c.getKey()} is not attached`);return this.enqueueTask(async()=>this.syncInternal(h,"realtime").catch(b=>{throw Mn.error(`[SY] c:"${this.getKey()}" err :`,b),this.handleConnectError(b),b}))}return this.enqueueTask(async()=>{const h=[];for(const[,b]of this.attachmentMap)h.push(this.syncInternal(b,b.syncMode));return Promise.all(h).catch(b=>{throw Mn.error(`[SY] c:"${this.getKey()}" err :`,b),this.handleConnectError(b),b})})}remove(c){if(!this.isActive())throw new Ge(Ve.ErrClientNotActivated,`${this.key} is not active`);const h=this.attachmentMap.get(c.getKey());if(!h)throw new Ge(Ve.ErrDocumentNotAttached,`${c.getKey()} is not attached`);c.setActor(this.id);const b=li.toChangePack(c.createChangePack());return b.isRemoved=!0,this.enqueueTask(async()=>this.rpcClient.removeDocument({clientId:this.id,documentId:h.docID,changePack:b},{headers:{"x-shard-key":`${this.apiKey}/${c.getKey()}`}}).then(E=>{const P=li.fromChangePack(E.changePack);c.applyChangePack(P),this.detachInternal(c.getKey()),Mn.info(`[RD] c:"${this.getKey()}" removes d:"${c.getKey()}"`)}).catch(E=>{throw Mn.error(`[RD] c:"${this.getKey()}" err :`,E),this.handleConnectError(E),E}))}getID(){return this.id}getKey(){return this.key}isActive(){return this.status==="activated"}getStatus(){return this.status}getCondition(c){return this.conditions[c]}runSyncLoop(){const c=()=>{if(!this.isActive()){Mn.debug(`[SL] c:"${this.getKey()}" exit sync loop`),this.conditions.SyncLoop=!1;return}const h=[];for(const[,b]of this.attachmentMap)b.needRealtimeSync()&&(b.remoteChangeEventReceived=!1,h.push(this.syncInternal(b,b.syncMode)));Promise.all(h).then(()=>setTimeout(c,this.syncLoopDuration)).catch(b=>{Mn.error(`[SL] c:"${this.getKey()}" sync failed:`,b),this.handleConnectError(b)?setTimeout(c,this.retrySyncLoopDelay):this.conditions.SyncLoop=!1})};Mn.debug(`[SL] c:"${this.getKey()}" run sync loop`),this.conditions.SyncLoop=!0,c()}async runWatchLoop(c){const h=this.attachmentMap.get(c);if(!h)throw new Ge(Ve.ErrDocumentNotAttached,`${c} is not attached`);return this.conditions.WatchLoop=!0,h.runWatchLoop(b=>{if(!this.isActive())return this.conditions.WatchLoop=!1,Promise.reject(new Ge(Ve.ErrClientNotActivated,`${this.key} is not active`));const E=new AbortController,P=this.rpcClient.watchDocument({clientId:this.id,documentId:h.docID},{headers:{"x-shard-key":`${this.apiKey}/${c}`},signal:E.signal});return h.doc.publish([{type:Mi.ConnectionChanged,value:og.Connected}]),Mn.info(`[WD] c:"${this.getKey()}" watches d:"${c}"`),new Promise((U,Y)=>{(async()=>{try{for await(const me of P)this.handleWatchDocumentsResponse(h,me),me.body.case==="initialization"&&U([P,E])}catch(me){h.doc.resetOnlineClients(),h.doc.publish([{type:Mi.Initialized,source:Xr.Local,value:h.doc.getPresences()}]),h.doc.publish([{type:Mi.ConnectionChanged,value:og.Disconnected}]),Mn.debug(`[WD] c:"${this.getKey()}" unwatches`),this.handleConnectError(me)?b():this.conditions.WatchLoop=!1,Y(me)}})()})})}handleWatchDocumentsResponse(c,h){if(h.body.case==="event"&&h.body.value.type===si.DOCUMENT_CHANGED){c.remoteChangeEventReceived=!0;return}c.doc.applyWatchStream(h)}deactivateInternal(){this.status="deactivated";for(const[c,h]of this.attachmentMap)this.detachInternal(c),h.doc.applyStatus(Zu.Detached)}detachInternal(c){const h=this.attachmentMap.get(c);h&&(h.cancelWatchStream(),this.attachmentMap.delete(c))}syncInternal(c,h){const{doc:b,docID:E}=c,P=b.createChangePack();return this.rpcClient.pushPullChanges({clientId:this.id,documentId:E,changePack:li.toChangePack(P),pushOnly:h==="realtime-pushonly"},{headers:{"x-shard-key":`${this.apiKey}/${b.getKey()}`}}).then(U=>{const Y=li.fromChangePack(U.changePack);if(Y.hasChanges()&&(c.syncMode==="realtime-pushonly"||c.syncMode==="realtime-syncoff"))return b;b.applyChangePack(Y),c.doc.publish([{type:Mi.SyncStatusChanged,value:lg.Synced}]),b.getStatus()===Zu.Removed&&this.detachInternal(b.getKey());const fe=b.getKey(),me=Y.getChangeSize();return Mn.info(`[PP] c:"${this.getKey()}" sync d:"${fe}", push:${P.getChangeSize()} pull:${me} cp:${Y.getCheckpoint().toTestString()}`),b}).catch(U=>{throw b.publish([{type:Mi.SyncStatusChanged,value:lg.SyncFailed}]),Mn.error(`[PP] c:"${this.getKey()}" err :`,U),U})}handleConnectError(c){return c instanceof u?c.code===o.Canceled||c.code===o.Unknown||c.code===o.ResourceExhausted||c.code===o.Unavailable?!0:((mb(c)===Ve.ErrClientNotActivated||mb(c)===Ve.ErrClientNotFound)&&this.deactivateInternal(),!1):!1}enqueueTask(c){return new Promise((h,b)=>{this.taskQueue.push(()=>c().then(h).catch(b)),this.processing||this.processNext()})}async processNext(){if(this.taskQueue.length===0){this.processing=!1;return}try{this.processing=!0,await this.taskQueue.shift()()}catch{Mn.error(`[TQ] c:"${this.getKey()}" process failed, id:"${this.id}"`)}this.processNext()}}const U6=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),nd={Client:MS,Document:NS,Primitive:Qr,Text:Zp,Counter:Xp,Tree:tg,LogLevel:Xa,setLogLevel:eg,IntType:Ya.IntegerCnt,LongType:Ya.LongCnt};typeof globalThis<"u"&&(globalThis.yorkie={Client:MS,Document:NS,Primitive:Qr,Text:Zp,Counter:Xp,Tree:tg,LogLevel:Xa,setLogLevel:eg,IntType:Ya.IntegerCnt,LongType:Ya.LongCnt}),r.Change=Yd,r.Client=MS,r.ClientCondition=LS,r.ClientStatus=Rk,r.Counter=Xp,r.Devtools=U6,r.DocEventType=Mi,r.Document=NS,r.DocumentStatus=Zu,r.DocumentSyncStatus=lg,r.EventSourceDevPanel=ig,r.EventSourceSDK=Ek,r.LogLevel=Xa,r.OpSource=Xr,r.Primitive=Qr,r.StreamConnectionStatus=og,r.SyncMode=t0,r.Text=Zp,r.TimeTicket=qa,r.Tree=tg,r.converter=li,r.default=nd,r.setLogLevel=eg,Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})})(VL,VL.exports);var S3=VL.exports;class xet{constructor(t,n){Cs(this,"doc");Cs(this,"client");this.doc=t,this.client=n}}const aU=an.define({combine(e){return e[e.length-1]}});Ld.define();class ket{constructor(t){Cs(this,"view");Cs(this,"conf");Cs(this,"_doc");this.view=t,this.conf=t.state.facet(aU),this._doc=this.conf.doc,this._doc.subscribe(n=>{if(n.type!=="snapshot")return;const r=this._doc.getRoot().content;t.dispatch({changes:{from:0,to:t.state.doc.length,insert:r.toString()},annotations:[os.remote.of(!0)]})}),this._doc.update(n=>{n.content||(n.content=new S3.Text)}),this._doc.subscribe("$.content",n=>{if(n.type!=="remote-change")return;const{operations:r}=n.value;r.forEach(i=>{if(i.type==="edit"){const a=[{from:Math.max(0,i.from),to:Math.max(0,i.to),insert:i.value.content}];t.dispatch({changes:a,annotations:[os.remote.of(!0)]})}})})}update(t){if(t.docChanged)for(const n of t.transactions){if(!["select","input","delete","move","undo","redo"].some(a=>n.isUserEvent(a))||n.annotation(os.remote))continue;let i=0;this._doc.update(a=>{n.changes.iterChanges((s,o,l,u,d)=>{const f=d.toJSON().join(` -`);a.content.edit(s+i,o+i,f),i+=f.length-(o-s)})})}}}const Aet=ha.fromClass(ket);var E3={exports:{}};/** + */var al=null;try{al=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 kn(v,c,h){this.low=v|0,this.high=c|0,this.unsigned=!!h}kn.prototype.__isLong__,Object.defineProperty(kn.prototype,"__isLong__",{value:!0});function ka(v){return(v&&v.__isLong__)===!0}function qx(v){var c=Math.clz32(v&-v);return v?31-c:c}kn.isLong=ka;var oh={},Rm={};function Hu(v,c){var h,b,E;return c?(v>>>=0,(E=0<=v&&v<256)&&(b=Rm[v],b)?b:(h=Ir(v,0,!0),E&&(Rm[v]=h),h)):(v|=0,(E=-128<=v&&v<128)&&(b=oh[v],b)?b:(h=Ir(v,v<0?-1:0,!1),E&&(oh[v]=h),h))}kn.fromInt=Hu;function Zn(v,c){if(isNaN(v))return c?Qu:no;if(c){if(v<0)return Qu;if(v>=Vc)return Hd}else{if(v<=-Nm)return qa;if(v+1>=Nm)return Lp}return v<0?Zn(-v,c).neg():Ir(v%Wc|0,v/Wc|0,c)}kn.fromNumber=Zn;function Ir(v,c,h){return new kn(v,c,h)}kn.fromBits=Ir;var Im=Math.pow;function Pp(v,c,h){if(v.length===0)throw Error("empty string");if(typeof c=="number"?(h=c,c=!1):c=!!c,v==="NaN"||v==="Infinity"||v==="+Infinity"||v==="-Infinity")return c?Qu:no;if(h=h||10,h<2||360)throw Error("interior hyphen");if(b===0)return Pp(v.substring(1),c,h).neg();for(var E=Zn(Im(h,8)),D=no,U=0;U>>0:this.low},Dt.toNumber=function(){return this.unsigned?(this.high>>>0)*Wc+(this.low>>>0):this.high*Wc+(this.low>>>0)},Dt.toString=function(c){if(c=c||10,c<2||36>>0,Pe=me.toString(c);if(U=fe,U.isZero())return Pe+Y;for(;Pe.length<6;)Pe="0"+Pe;Y=""+Pe+Y}},Dt.getHighBits=function(){return this.high},Dt.getHighBitsUnsigned=function(){return this.high>>>0},Dt.getLowBits=function(){return this.low},Dt.getLowBitsUnsigned=function(){return this.low>>>0},Dt.getNumBitsAbs=function(){if(this.isNegative())return this.eq(qa)?64:this.neg().getNumBitsAbs();for(var c=this.high!=0?this.high:this.low,h=31;h>0&&!(c&1<=0},Dt.isOdd=function(){return(this.low&1)===1},Dt.isEven=function(){return(this.low&1)===0},Dt.equals=function(c){return ka(c)||(c=Hl(c)),this.unsigned!==c.unsigned&&this.high>>>31===1&&c.high>>>31===1?!1:this.high===c.high&&this.low===c.low},Dt.eq=Dt.equals,Dt.notEquals=function(c){return!this.eq(c)},Dt.neq=Dt.notEquals,Dt.ne=Dt.notEquals,Dt.lessThan=function(c){return this.comp(c)<0},Dt.lt=Dt.lessThan,Dt.lessThanOrEqual=function(c){return this.comp(c)<=0},Dt.lte=Dt.lessThanOrEqual,Dt.le=Dt.lessThanOrEqual,Dt.greaterThan=function(c){return this.comp(c)>0},Dt.gt=Dt.greaterThan,Dt.greaterThanOrEqual=function(c){return this.comp(c)>=0},Dt.gte=Dt.greaterThanOrEqual,Dt.ge=Dt.greaterThanOrEqual,Dt.compare=function(c){if(ka(c)||(c=Hl(c)),this.eq(c))return 0;var h=this.isNegative(),b=c.isNegative();return h&&!b?-1:!h&&b?1:this.unsigned?c.high>>>0>this.high>>>0||c.high===this.high&&c.low>>>0>this.low>>>0?-1:1:this.sub(c).isNegative()?-1:1},Dt.comp=Dt.compare,Dt.negate=function(){return!this.unsigned&&this.eq(qa)?qa:this.not().add(lh)},Dt.neg=Dt.negate,Dt.add=function(c){ka(c)||(c=Hl(c));var h=this.high>>>16,b=this.high&65535,E=this.low>>>16,D=this.low&65535,U=c.high>>>16,Y=c.high&65535,fe=c.low>>>16,me=c.low&65535,Pe=0,vt=0,ft=0,et=0;return et+=D+me,ft+=et>>>16,et&=65535,ft+=E+fe,vt+=ft>>>16,ft&=65535,vt+=b+Y,Pe+=vt>>>16,vt&=65535,Pe+=h+U,Pe&=65535,Ir(ft<<16|et,Pe<<16|vt,this.unsigned)},Dt.subtract=function(c){return ka(c)||(c=Hl(c)),this.add(c.neg())},Dt.sub=Dt.subtract,Dt.multiply=function(c){if(this.isZero())return this;if(ka(c)||(c=Hl(c)),al){var h=al.mul(this.low,this.high,c.low,c.high);return Ir(h,al.get_high(),this.unsigned)}if(c.isZero())return this.unsigned?Qu:no;if(this.eq(qa))return c.isOdd()?qa:no;if(c.eq(qa))return this.isOdd()?qa:no;if(this.isNegative())return c.isNegative()?this.neg().mul(c.neg()):this.neg().mul(c).neg();if(c.isNegative())return this.mul(c.neg()).neg();if(this.lt(sS)&&c.lt(sS))return Zn(this.toNumber()*c.toNumber(),this.unsigned);var b=this.high>>>16,E=this.high&65535,D=this.low>>>16,U=this.low&65535,Y=c.high>>>16,fe=c.high&65535,me=c.low>>>16,Pe=c.low&65535,vt=0,ft=0,et=0,Xt=0;return Xt+=U*Pe,et+=Xt>>>16,Xt&=65535,et+=D*Pe,ft+=et>>>16,et&=65535,et+=U*me,ft+=et>>>16,et&=65535,ft+=E*Pe,vt+=ft>>>16,ft&=65535,ft+=D*me,vt+=ft>>>16,ft&=65535,ft+=U*fe,vt+=ft>>>16,ft&=65535,vt+=b*Pe+E*me+D*fe+U*Y,vt&=65535,Ir(et<<16|Xt,vt<<16|ft,this.unsigned)},Dt.mul=Dt.multiply,Dt.divide=function(c){if(ka(c)||(c=Hl(c)),c.isZero())throw Error("division by zero");if(al){if(!this.unsigned&&this.high===-2147483648&&c.low===-1&&c.high===-1)return this;var h=(this.unsigned?al.div_u:al.div_s)(this.low,this.high,c.low,c.high);return Ir(h,al.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?Qu:no;var b,E,D;if(this.unsigned){if(c.unsigned||(c=c.toUnsigned()),c.gt(this))return Qu;if(c.gt(this.shru(1)))return Dm;D=Qu}else{if(this.eq(qa)){if(c.eq(lh)||c.eq(ub))return qa;if(c.eq(qa))return lh;var U=this.shr(1);return b=U.div(c).shl(1),b.eq(no)?c.isNegative()?lh:ub:(E=this.sub(c.mul(b)),D=b.add(E.div(c)),D)}else if(c.eq(qa))return this.unsigned?Qu:no;if(this.isNegative())return c.isNegative()?this.neg().div(c.neg()):this.neg().div(c).neg();if(c.isNegative())return this.div(c.neg()).neg();D=no}for(E=this;E.gte(c);){b=Math.max(1,Math.floor(E.toNumber()/c.toNumber()));for(var Y=Math.ceil(Math.log(b)/Math.LN2),fe=Y<=48?1:Im(2,Y-48),me=Zn(b),Pe=me.mul(c);Pe.isNegative()||Pe.gt(E);)b-=fe,me=Zn(b,this.unsigned),Pe=me.mul(c);me.isZero()&&(me=lh),D=D.add(me),E=E.sub(Pe)}return D},Dt.div=Dt.divide,Dt.modulo=function(c){if(ka(c)||(c=Hl(c)),al){var h=(this.unsigned?al.rem_u:al.rem_s)(this.low,this.high,c.low,c.high);return Ir(h,al.get_high(),this.unsigned)}return this.sub(this.div(c).mul(c))},Dt.mod=Dt.modulo,Dt.rem=Dt.modulo,Dt.not=function(){return Ir(~this.low,~this.high,this.unsigned)},Dt.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},Dt.clz=Dt.countLeadingZeros,Dt.countTrailingZeros=function(){return this.low?qx(this.low):qx(this.high)+32},Dt.ctz=Dt.countTrailingZeros,Dt.and=function(c){return ka(c)||(c=Hl(c)),Ir(this.low&c.low,this.high&c.high,this.unsigned)},Dt.or=function(c){return ka(c)||(c=Hl(c)),Ir(this.low|c.low,this.high|c.high,this.unsigned)},Dt.xor=function(c){return ka(c)||(c=Hl(c)),Ir(this.low^c.low,this.high^c.high,this.unsigned)},Dt.shiftLeft=function(c){return ka(c)&&(c=c.toInt()),(c&=63)===0?this:c<32?Ir(this.low<>>32-c,this.unsigned):Ir(0,this.low<>>c|this.high<<32-c,this.high>>c,this.unsigned):Ir(this.high>>c-32,this.high>=0?0:-1,this.unsigned)},Dt.shr=Dt.shiftRight,Dt.shiftRightUnsigned=function(c){return ka(c)&&(c=c.toInt()),(c&=63)===0?this:c<32?Ir(this.low>>>c|this.high<<32-c,this.high>>>c,this.unsigned):c===32?Ir(this.high,0,this.unsigned):Ir(this.high>>>c-32,0,this.unsigned)},Dt.shru=Dt.shiftRightUnsigned,Dt.shr_u=Dt.shiftRightUnsigned,Dt.rotateLeft=function(c){var h;return ka(c)&&(c=c.toInt()),(c&=63)===0?this:c===32?Ir(this.high,this.low,this.unsigned):c<32?(h=32-c,Ir(this.low<>>h,this.high<>>h,this.unsigned)):(c-=32,h=32-c,Ir(this.high<>>h,this.low<>>h,this.unsigned))},Dt.rotl=Dt.rotateLeft,Dt.rotateRight=function(c){var h;return ka(c)&&(c=c.toInt()),(c&=63)===0?this:c===32?Ir(this.high,this.low,this.unsigned):c<32?(h=32-c,Ir(this.high<>>c,this.low<>>c,this.unsigned)):(c-=32,h=32-c,Ir(this.low<>>c,this.high<>>c,this.unsigned))},Dt.rotr=Dt.rotateRight,Dt.toSigned=function(){return this.unsigned?Ir(this.low,this.high,!1):this},Dt.toUnsigned=function(){return this.unsigned?this:Ir(this.low,this.high,!0)},Dt.toBytes=function(c){return c?this.toBytesLE():this.toBytesBE()},Dt.toBytesLE=function(){var c=this.high,h=this.low;return[h&255,h>>>8&255,h>>>16&255,h>>>24,c&255,c>>>8&255,c>>>16&255,c>>>24]},Dt.toBytesBE=function(){var c=this.high,h=this.low;return[c>>>24,c>>>16&255,c>>>8&255,c&255,h>>>24,h>>>16&255,h>>>8&255,h&255]},kn.fromBytes=function(c,h,b){return b?kn.fromBytesLE(c,h):kn.fromBytesBE(c,h)},kn.fromBytesLE=function(c,h){return new kn(c[0]|c[1]<<8|c[2]<<16|c[3]<<24,c[4]|c[5]<<8|c[6]<<16|c[7]<<24,h)},kn.fromBytesBE=function(c,h){return new kn(c[4]<<24|c[5]<<16|c[6]<<8|c[7],c[0]<<24|c[1]<<16|c[2]<<8|c[3],h)};const l6=je.makeMessageType("google.rpc.ErrorInfo",()=>[{no:1,name:"reason",kind:"scalar",T:9},{no:2,name:"domain",kind:"scalar",T:9},{no:3,name:"metadata",kind:"map",K:9,V:{kind:"scalar",T:9}}]);je.makeMessageType("google.rpc.RetryInfo",()=>[{no:1,name:"retry_delay",kind:"message",T:xr}]),je.makeMessageType("google.rpc.DebugInfo",()=>[{no:1,name:"stack_entries",kind:"scalar",T:9,repeated:!0},{no:2,name:"detail",kind:"scalar",T:9}]),je.makeMessageType("google.rpc.QuotaFailure",()=>[{no:1,name:"violations",kind:"message",T:u6,repeated:!0}]);const u6=je.makeMessageType("google.rpc.QuotaFailure.Violation",()=>[{no:1,name:"subject",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9}],{localName:"QuotaFailure_Violation"});je.makeMessageType("google.rpc.PreconditionFailure",()=>[{no:1,name:"violations",kind:"message",T:cb,repeated:!0}]);const cb=je.makeMessageType("google.rpc.PreconditionFailure.Violation",()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"subject",kind:"scalar",T:9},{no:3,name:"description",kind:"scalar",T:9}],{localName:"PreconditionFailure_Violation"});je.makeMessageType("google.rpc.BadRequest",()=>[{no:1,name:"field_violations",kind:"message",T:db,repeated:!0}]);const db=je.makeMessageType("google.rpc.BadRequest.FieldViolation",()=>[{no:1,name:"field",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9}],{localName:"BadRequest_FieldViolation"});je.makeMessageType("google.rpc.RequestInfo",()=>[{no:1,name:"request_id",kind:"scalar",T:9},{no:2,name:"serving_data",kind:"scalar",T:9}]),je.makeMessageType("google.rpc.ResourceInfo",()=>[{no:1,name:"resource_type",kind:"scalar",T:9},{no:2,name:"resource_name",kind:"scalar",T:9},{no:3,name:"owner",kind:"scalar",T:9},{no:4,name:"description",kind:"scalar",T:9}]),je.makeMessageType("google.rpc.Help",()=>[{no:1,name:"links",kind:"message",T:oS,repeated:!0}]);const oS=je.makeMessageType("google.rpc.Help.Link",()=>[{no:1,name:"description",kind:"scalar",T:9},{no:2,name:"url",kind:"scalar",T:9}],{localName:"Help_Link"});je.makeMessageType("google.rpc.LocalizedMessage",()=>[{no:1,name:"locale",kind:"scalar",T:9},{no:2,name:"message",kind:"scalar",T:9}]);var mr=(v=>(v.Ok="ok",v.ErrClientNotActivated="ErrClientNotActivated",v.ErrClientNotFound="ErrClientNotFound",v.ErrUnimplemented="ErrUnimplemented",v.Unsupported="unsupported",v.ErrDocumentNotAttached="ErrDocumentNotAttached",v.ErrDocumentNotDetached="ErrDocumentNotDetached",v.ErrDocumentRemoved="ErrDocumentRemoved",v.ErrInvalidObjectKey="ErrInvalidObjectKey",v.ErrInvalidArgument="ErrInvalidArgument",v))(mr||{});class kr extends Error{constructor(c,h){super(h),s(this,"name","YorkieError"),s(this,"stack"),this.code=c,this.message=h,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}function Ql(v){if(v instanceof Map){const c=Array.from(v);return new Map(JSON.parse(JSON.stringify(c)))}return JSON.parse(JSON.stringify(v))}const Yx=v=>v?Object.entries(v).length===0:!0,Ei=v=>{const c={};for(const[h,b]of Object.entries(v))c[h]=JSON.stringify(b);return c},ra=v=>{const c={};for(const[h,b]of Object.entries(v))c[h]=JSON.parse(b);return c};var Qd=(v=>(v.Put="put",v.Clear="clear",v))(Qd||{});class lS{constructor(c,h){s(this,"context"),s(this,"presence"),this.context=c,this.presence=h}set(c,h){for(const b of Object.keys(c))this.presence[b]=c[b];this.context.setPresenceChange({type:"put",presence:Ql(this.presence)}),this.context.setReversePresence(c,h)}get(c){return this.presence[c]}clear(){this.presence={},this.context.setPresenceChange({type:"clear"})}}const Pm="000000000000000000000000",c6="FFFFFFFFFFFFFFFFFFFFFFFF";class Ga{constructor(c,h,b){s(this,"lamport"),s(this,"delimiter"),s(this,"actorID"),this.lamport=c,this.delimiter=h,this.actorID=b}static of(c,h,b){return new Ga(c,h,b)}static fromStruct(c){return Ga.of(kn.fromString(c.lamport,!0),c.delimiter,c.actorID)}toIDString(){return`${this.lamport.toString()}:${this.actorID}:${this.delimiter}`}toStruct(){return{lamport:this.getLamportAsString(),delimiter:this.getDelimiter(),actorID:this.getActorID()}}toTestString(){return`${this.lamport.toString()}:${this.actorID.slice(-2)}:${this.delimiter}`}setActor(c){return new Ga(this.lamport,this.delimiter,c)}getLamportAsString(){return this.lamport.toString()}getLamport(){return this.lamport}getDelimiter(){return this.delimiter}getActorID(){return this.actorID}after(c){return this.compare(c)>0}equals(c){return this.compare(c)===0}compare(c){if(this.lamport.greaterThan(c.lamport))return 1;if(c.lamport.greaterThan(this.lamport))return-1;const h=this.actorID.localeCompare(c.actorID);return h!==0?h:this.delimiter>c.delimiter?1:c.delimiter>this.delimiter?-1:0}}const uh=0,uS=4294967295,Mp=kn.MAX_VALUE,_s=new Ga(kn.fromNumber(0),uh,Pm);new Ga(kn.fromNumber(1),uh+1,Pm);const qc=new Ga(Mp,uS,c6);var Aa=(v=>(v[v.Trivial=0]="Trivial",v[v.Debug=1]="Debug",v[v.Info=2]="Info",v[v.Warn=3]="Warn",v[v.Error=4]="Error",v[v.Fatal=5]="Fatal",v))(Aa||{});let sl=2;function cS(v){sl=v}const Rt={trivial:(...v)=>{sl>0||typeof console<"u"&&console.log("YORKIE T:",...v)},debug:(...v)=>{sl>1||typeof console<"u"&&console.log("YORKIE D:",...v)},info:(...v)=>{sl>2||typeof console<"u"&&console.log("YORKIE I:",...v)},warn:(...v)=>{sl>3||typeof console<"u"&&(typeof console.warn<"u"?console.warn("YORKIE W:",...v):console.log("YORKIE W:",...v))},error:(...v)=>{sl>4||typeof console<"u"&&(typeof console.error<"u"?console.error("YORKIE E:",...v):console.log("YORKIE E:",...v))},fatal:(v,...c)=>{throw typeof console<"u"&&(typeof console.error<"u"?console.error("YORKIE F:",...c):console.log("YORKIE F:",...c)),new Error(`YORKIE F: ${v}`)},isEnabled:v=>sl<=v};function Wu(v){return v.replace(/["'\\\n\r\f\b\t\u2028\u2029]/g,function(c){switch(c){case'"':case"\\":return"\\"+c;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 c}})}class Lm{constructor(c){s(this,"createdAt"),s(this,"movedAt"),s(this,"removedAt"),this.createdAt=c}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(c){return!this.movedAt||c&&c.after(this.movedAt)?(this.movedAt=c,!0):!1}setRemovedAt(c){this.removedAt=c}remove(c){return c&&c.after(this.getPositionedAt())&&(!this.removedAt||c.after(this.removedAt))?(this.removedAt=c,!0):!1}isRemoved(){return!!this.removedAt}}class Wd extends Lm{constructor(c){super(c)}}class $p{constructor(c,h){s(this,"strKey"),s(this,"value"),this.strKey=c,this.value=h}static of(c,h){return new $p(c,h)}isRemoved(){return this.value.isRemoved()}getStrKey(){return this.strKey}getValue(){return this.value}remove(c){return this.value.remove(c)}}class Gc{constructor(){s(this,"nodeMapByKey"),s(this,"nodeMapByCreatedAt"),this.nodeMapByKey=new Map,this.nodeMapByCreatedAt=new Map}static create(){return new Gc}set(c,h,b){let E;const D=this.nodeMapByKey.get(c);D!=null&&!D.isRemoved()&&D.remove(b)&&(E=D.getValue());const U=$p.of(c,h);return this.nodeMapByCreatedAt.set(h.getCreatedAt().toIDString(),U),(D==null||b.after(D.getValue().getPositionedAt()))&&(this.nodeMapByKey.set(c,U),h.setMovedAt(b)),E}delete(c,h){this.nodeMapByCreatedAt.has(c.toIDString())||Rt.fatal(`fail to find ${c.toIDString()}`);const b=this.nodeMapByCreatedAt.get(c.toIDString());return b.remove(h),b.getValue()}subPathOf(c){const h=this.nodeMapByCreatedAt.get(c.toIDString());if(h)return h.getStrKey()}purge(c){const h=this.nodeMapByCreatedAt.get(c.getCreatedAt().toIDString());if(!h){Rt.fatal(`fail to find ${c.getCreatedAt().toIDString()}`);return}const b=this.nodeMapByKey.get(h.getStrKey());h===b&&this.nodeMapByKey.delete(b.getStrKey()),this.nodeMapByCreatedAt.delete(h.getValue().getCreatedAt().toIDString())}deleteByKey(c,h){const b=this.nodeMapByKey.get(c);if(b!=null&&b.remove(h))return b.getValue()}has(c){const h=this.nodeMapByKey.get(c);return h==null?!1:!h.isRemoved()}getByID(c){return this.nodeMapByCreatedAt.get(c.toIDString())}get(c){const h=this.nodeMapByKey.get(c);if(!(!h||h.isRemoved()))return h}*[Symbol.iterator](){for(const[,c]of this.nodeMapByKey)yield c}}class Cs extends Wd{constructor(c,h){super(c),s(this,"memberNodes"),this.memberNodes=h}static create(c,h){if(!h)return new Cs(c,Gc.create());const b=Gc.create();for(const[E,D]of Object.entries(h))b.set(E,D.deepcopy(),D.getCreatedAt());return new Cs(c,b)}subPathOf(c){return this.memberNodes.subPathOf(c)}purge(c){this.memberNodes.purge(c)}set(c,h,b){return this.memberNodes.set(c,h,b)}delete(c,h){return this.memberNodes.delete(c,h)}deleteByKey(c,h){return this.memberNodes.deleteByKey(c,h)}get(c){const h=this.memberNodes.get(c);return h==null?void 0:h.getValue()}getByID(c){const h=this.memberNodes.getByID(c);return h==null?void 0:h.getValue()}has(c){return this.memberNodes.has(c)}toJSON(){const c=[];for(const[h,b]of this)c.push(`"${Wu(h)}":${b.toJSON()}`);return`{${c.join(",")}}`}toJS(){return JSON.parse(this.toJSON())}toJSForTest(){const c={};for(const[h,b]of this){const{createdAt:E,value:D,type:U}=b.toJSForTest();c[h]={key:h,createdAt:E,value:D,type:U}}return{createdAt:this.getCreatedAt().toTestString(),value:c,type:"YORKIE_OBJECT"}}getKeys(){const c=Array();for(const[h]of this)c.push(h);return c}toSortedJSON(){var c;const h=Array();for(const[E]of this)h.push(E);const b=[];for(const E of h.sort()){const D=(c=this.memberNodes.get(E))==null?void 0:c.getValue();b.push(`"${Wu(E)}":${D.toSortedJSON()}`)}return`{${b.join(",")}}`}getRHT(){return this.memberNodes}deepcopy(){const c=Cs.create(this.getCreatedAt());for(const h of this.memberNodes)c.memberNodes.set(h.getStrKey(),h.getValue().deepcopy(),this.getPositionedAt());return c.remove(this.getRemovedAt()),c}getDescendants(c){for(const h of this.memberNodes){const b=h.getValue();if(c(b,this))return;b instanceof Wd&&b.getDescendants(c)}}*[Symbol.iterator](){const c=new Set;for(const h of this.memberNodes)c.has(h.getStrKey())||(c.add(h.getStrKey()),h.isRemoved()||(yield[h.getStrKey(),h.getValue()]))}}var te=(v=>(v.Local="local",v.Remote="remote",v.UndoRedo="undoredo",v))(te||{});class fs{constructor(c,h){s(this,"parentCreatedAt"),s(this,"executedAt"),this.parentCreatedAt=c,this.executedAt=h}getParentCreatedAt(){return this.parentCreatedAt}getExecutedAt(){if(!this.executedAt)throw new Error("executedAt has not been set yet");return this.executedAt}setActor(c){this.executedAt&&(this.executedAt=this.executedAt.setActor(c))}setExecutedAt(c){this.executedAt=c}}class Mm{constructor(c){s(this,"value"),s(this,"left"),s(this,"right"),s(this,"parent"),s(this,"weight"),this.value=c,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(c){this.left=c}setRight(c){this.right=c}setParent(c){this.parent=c}unlink(){this.parent=void 0,this.right=void 0,this.left=void 0}hasLinks(){return this.hasParent()||this.hasLeft()||this.hasRight()}increaseWeight(c){this.weight+=c}initWeight(){this.weight=this.getLength()}}class hs{constructor(c){s(this,"root"),this.root=c}get length(){return this.root?this.root.getWeight():0}find(c){if(!this.root||c<0)return[void 0,0];let h=this.root;for(;;)if(h.hasLeft()&&c<=h.getLeftWeight())h=h.getLeft();else if(h.hasRight()&&h.getLeftWeight()+h.getLength()h.getLength()&&Rt.fatal(`out of index range: pos: ${c} > node.length: ${h.getLength()}`),[h,c]}indexOf(c){if(!c||c!==this.root&&!c.hasLinks())return-1;let h=0,b=c,E;for(;b;)(!E||E===b.getRight())&&(h+=b.getLength()+(b.hasLeft()?b.getLeftWeight():0)),E=b,b=b.getParent();return h-c.getLength()}getRoot(){return this.root}insert(c){return this.insertAfter(this.root,c)}insertAfter(c,h){return c?(this.splayNode(c),this.root=h,h.setRight(c.getRight()),c.hasRight()&&c.getRight().setParent(h),h.setLeft(c),c.setParent(h),c.setRight(),this.updateWeight(c),this.updateWeight(h),h):(this.root=h,h)}updateWeight(c){c.initWeight(),c.hasLeft()&&c.increaseWeight(c.getLeftWeight()),c.hasRight()&&c.increaseWeight(c.getRightWeight())}updateTreeWeight(c){for(;c;)this.updateWeight(c),c=c.getParent()}splayNode(c){if(c)for(;;)if(this.isLeftChild(c.getParent())&&this.isRightChild(c))this.rotateLeft(c),this.rotateRight(c);else if(this.isRightChild(c.getParent())&&this.isLeftChild(c))this.rotateRight(c),this.rotateLeft(c);else if(this.isLeftChild(c.getParent())&&this.isLeftChild(c))this.rotateRight(c.getParent()),this.rotateRight(c);else if(this.isRightChild(c.getParent())&&this.isRightChild(c))this.rotateLeft(c.getParent()),this.rotateLeft(c);else{this.isLeftChild(c)?this.rotateRight(c):this.isRightChild(c)&&this.rotateLeft(c),this.updateWeight(c);return}}delete(c){this.splayNode(c);const h=new hs(c.getLeft());h.root&&h.root.setParent();const b=new hs(c.getRight());if(b.root&&b.root.setParent(),h.root){const E=h.getRightmost();h.splayNode(E),h.root.setRight(b.root),b.root&&b.root.setParent(h.root),this.root=h.root}else this.root=b.root;c.unlink(),this.root&&this.updateWeight(this.root)}deleteRange(c,h){if(!h){this.splayNode(c),this.cutOffRight(c);return}this.splayNode(c),this.splayNode(h),h.getLeft()!=c&&this.rotateRight(c),this.cutOffRight(c)}cutOffRight(c){const h=[];this.traversePostorder(c.getRight(),h);for(const b of h)b.initWeight();this.updateTreeWeight(c)}toTestString(){const c=[];return this.traverseInorder(this.root,c),c.map(h=>`[${h.getWeight()},${h.getLength()}]${h.getValue()||""}`).join("")}checkWeight(){const c=[];this.traverseInorder(this.root,c);for(const h of c)if(h.getWeight()!=h.getLength()+h.getLeftWeight()+h.getRightWeight())return!1;return!0}getRightmost(){let c=this.root;for(;c.hasRight();)c=c.getRight();return c}traverseInorder(c,h){c&&(this.traverseInorder(c.getLeft(),h),h.push(c),this.traverseInorder(c.getRight(),h))}traversePostorder(c,h){c&&(this.traversePostorder(c.getLeft(),h),this.traversePostorder(c.getRight(),h),h.push(c))}rotateLeft(c){const h=c.getParent();h.hasParent()?h===h.getParent().getLeft()?h.getParent().setLeft(c):h.getParent().setRight(c):this.root=c,c.setParent(h.getParent()),h.setRight(c.getLeft()),h.hasRight()&&h.getRight().setParent(h),c.setLeft(h),c.getLeft().setParent(c),this.updateWeight(h),this.updateWeight(c)}rotateRight(c){const h=c.getParent();h.hasParent()?h===h.getParent().getLeft()?h.getParent().setLeft(c):h.getParent().setRight(c):this.root=c,c.setParent(h.getParent()),h.setLeft(c.getRight()),h.hasLeft()&&h.getLeft().setParent(h),c.setRight(h),c.getRight().setParent(c),this.updateWeight(h),this.updateWeight(c)}isLeftChild(c){return c&&c.hasParent()?c.getParent().getLeft()===c:!1}isRightChild(c){return c&&c.hasParent()?c.getParent().getRight()===c:!1}}var Cn=(v=>(v[v.Null=0]="Null",v[v.Boolean=1]="Boolean",v[v.Integer=2]="Integer",v[v.Long=3]="Long",v[v.Double=4]="Double",v[v.String=5]="String",v[v.Bytes=6]="Bytes",v[v.Date=7]="Date",v))(Cn||{});class wi extends Lm{constructor(c,h){super(h),s(this,"valueType"),s(this,"value"),this.valueType=wi.getPrimitiveType(c),this.value=c===void 0?null:c}static of(c,h){return new wi(c,h)}static valueFromBytes(c,h){switch(c){case 0:return null;case 1:return!!h[0];case 2:return h[0]|h[1]<<8|h[2]<<16|h[3]<<24;case 4:{const b=new DataView(h.buffer);return h.forEach(function(E,D){b.setUint8(D,E)}),b.getFloat64(0,!0)}case 5:return new TextDecoder("utf-8").decode(h);case 3:return kn.fromBytesLE(Array.from(h));case 6:return h;case 7:return new Date(kn.fromBytesLE(Array.from(h),!0).toNumber());default:throw new kr(mr.ErrUnimplemented,`unimplemented type: ${c}`)}}toJSON(){return this.valueType===5?`"${Wu(this.value)}"`:`${this.value}`}toSortedJSON(){return this.toJSON()}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:this.value,type:"YORKIE_PRIMITIVE"}}deepcopy(){const c=wi.of(this.value,this.getCreatedAt());return c.setMovedAt(this.getMovedAt()),c.setRemovedAt(this.getRemovedAt()),c}getType(){return this.valueType}static getPrimitiveType(c){switch(typeof c){case"undefined":return 0;case"boolean":return 1;case"number":return this.isInteger(c)?2:4;case"string":return 5;case"object":if(c===null)return 0;if(c instanceof kn)return 3;if(c instanceof Uint8Array)return 6;if(c instanceof Date)return 7}}static isSupport(c){return wi.getPrimitiveType(c)!==void 0}static isInteger(c){return c%1===0}isNumericType(){const c=this.valueType;return c===2||c===3||c===4}getValue(){return this.value}toBytes(){switch(this.valueType){case 0:return new Uint8Array;case 1:return this.value?new Uint8Array([1]):new Uint8Array([0]);case 2:{const c=this.value;return new Uint8Array([c&255,c>>8&255,c>>16&255,c>>24&255])}case 4:{const c=this.value,h=new Uint8Array(8);return new DataView(h.buffer).setFloat64(0,c,!0),h}case 5:return new TextEncoder().encode(this.value);case 3:{const h=this.value.toBytesLE();return Uint8Array.from(h)}case 6:return this.value;case 7:{const c=this.value,h=kn.fromNumber(c.getTime(),!0).toBytesLE();return Uint8Array.from(h)}default:throw new kr(mr.ErrUnimplemented,`unimplemented type: ${this.valueType}`)}}}class fb extends Mm{constructor(c){super(c),s(this,"prev"),s(this,"next"),this.value=c}static createAfter(c,h){const b=new fb(h),E=c.next;return c.next=b,b.prev=c,b.next=E,E&&(E.prev=b),b}remove(c){return this.value.remove(c)}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 $m{constructor(){s(this,"dummyHead"),s(this,"last"),s(this,"nodeMapByIndex"),s(this,"nodeMapByCreatedAt");const c=wi.of(0,_s);c.setRemovedAt(_s),this.dummyHead=new fb(c),this.last=this.dummyHead,this.nodeMapByIndex=new hs,this.nodeMapByCreatedAt=new Map,this.nodeMapByIndex.insert(this.dummyHead),this.nodeMapByCreatedAt.set(this.dummyHead.getCreatedAt().toIDString(),this.dummyHead)}static create(){return new $m}get length(){return this.nodeMapByIndex.length}findNextBeforeExecutedAt(c,h){let b=this.nodeMapByCreatedAt.get(c.toIDString());for(b||Rt.fatal(`cant find the given node: ${c.toIDString()}`);b.getNext()&&b.getNext().getPositionedAt().after(h);)b=b.getNext();return b}release(c){this.last===c&&(this.last=c.getPrev()),c.release(),this.nodeMapByIndex.delete(c),this.nodeMapByCreatedAt.delete(c.getValue().getCreatedAt().toIDString())}insertAfter(c,h,b=h.getCreatedAt()){const E=this.findNextBeforeExecutedAt(c,b),D=fb.createAfter(E,h);E===this.last&&(this.last=D),this.nodeMapByIndex.insertAfter(E,D),this.nodeMapByCreatedAt.set(D.getCreatedAt().toIDString(),D)}moveAfter(c,h,b){const E=this.nodeMapByCreatedAt.get(c.toIDString());E||Rt.fatal(`cant find the given node: ${c.toIDString()}`);const D=this.nodeMapByCreatedAt.get(h.toIDString());D||Rt.fatal(`cant find the given node: ${h.toIDString()}`),E!==D&&(!D.getValue().getMovedAt()||b.after(D.getValue().getMovedAt()))&&(this.release(D),this.insertAfter(E.getCreatedAt(),D.getValue(),b),D.getValue().setMovedAt(b))}insert(c){this.insertAfter(this.last.getCreatedAt(),c)}getByID(c){return this.nodeMapByCreatedAt.get(c.toIDString())}subPathOf(c){const h=this.nodeMapByCreatedAt.get(c.toIDString());if(h)return String(this.nodeMapByIndex.indexOf(h))}purge(c){const h=this.nodeMapByCreatedAt.get(c.getCreatedAt().toIDString());h||Rt.fatal(`fail to find the given createdAt: ${c.getCreatedAt().toIDString()}`),this.release(h)}getByIndex(c){if(c>=this.length)return;const[h,b]=this.nodeMapByIndex.find(c);let E=h;if(c===0&&h===this.dummyHead||b>0)do E&&(E=E.getNext());while(E&&E.isRemoved());return E}getPrevCreatedAt(c){let h=this.nodeMapByCreatedAt.get(c.toIDString());do h=h.getPrev();while(this.dummyHead!==h&&h.isRemoved());return h.getValue().getCreatedAt()}delete(c,h){const b=this.nodeMapByCreatedAt.get(c.toIDString()),E=b.isRemoved();return b.remove(h)&&!E&&this.nodeMapByIndex.splayNode(b),b.getValue()}deleteByIndex(c,h){const b=this.getByIndex(c);if(b)return b.remove(h)&&this.nodeMapByIndex.splayNode(b),b.getValue()}getHead(){return this.dummyHead.getValue()}getLast(){return this.last.getValue()}getLastCreatedAt(){return this.last.getCreatedAt()}toTestString(){const c=[];for(const h of this){const b=`${h.getCreatedAt().toIDString()}:${h.getValue().toJSON()}`;h.isRemoved()?c.push(`{${b}}`):c.push(`[${b}]`)}return c.join("")}*[Symbol.iterator](){let c=this.dummyHead.getNext();for(;c;)yield c,c=c.getNext()}}class _a extends Wd{constructor(c,h){super(c),s(this,"elements"),this.elements=h}static create(c,h){if(!h)return new _a(c,$m.create());const b=$m.create();for(const E of h)b.insertAfter(b.getLastCreatedAt(),E.deepcopy());return new _a(c,b)}subPathOf(c){return this.elements.subPathOf(c)}purge(c){this.elements.purge(c)}insertAfter(c,h){this.elements.insertAfter(c,h)}moveAfter(c,h,b){this.elements.moveAfter(c,h,b)}get(c){const h=this.elements.getByIndex(c);return h==null?void 0:h.getValue()}getByID(c){const h=this.elements.getByID(c);return h==null?void 0:h.getValue()}getHead(){return this.elements.getHead()}getLast(){return this.elements.getLast()}getPrevCreatedAt(c){return this.elements.getPrevCreatedAt(c)}delete(c,h){return this.elements.delete(c,h)}deleteByIndex(c,h){return this.elements.deleteByIndex(c,h)}getLastCreatedAt(){return this.elements.getLastCreatedAt()}get length(){return this.elements.length}*[Symbol.iterator](){for(const c of this.elements)c.isRemoved()||(yield c.getValue())}toTestString(){return this.elements.toTestString()}getDescendants(c){for(const h of this.elements){const b=h.getValue();if(c(b,this))return;b instanceof Wd&&b.getDescendants(c)}}toJSON(){const c=[];for(const h of this)c.push(h.toJSON());return`[${c.join(",")}]`}toJS(){return JSON.parse(this.toJSON())}toJSForTest(){const c={};for(let h=0;h({...ft,value:ft.value?{attributes:ra(ft.value.getAttributes()),content:ft.value.getContent()}:{attributes:void 0,content:""},type:"content"}));return[fe,vt,me,[Y,Y]]}setStyle(c,h,b,E){const[,D]=this.rgaTreeSplit.findNodeWithSplit(c[1],b),[,U]=this.rgaTreeSplit.findNodeWithSplit(c[0],b),Y=[],fe=this.rgaTreeSplit.findBetween(U,D),me=new Map,Pe=[];for(const ft of fe){const et=ft.getCreatedAt().getActorID(),Xt=E!=null&&E.size?E.has(et)?E.get(et):_s:qc;if(ft.canStyle(b,Xt)){const _n=me.get(et),An=ft.getCreatedAt();(!_n||An.after(_n))&&me.set(et,An),Pe.push(ft)}}const vt=[];for(const ft of Pe){if(ft.isRemoved())continue;const[et,Xt]=this.rgaTreeSplit.findIndexesFromRange(ft.createPosRange());Y.push({type:"style",actor:b.getActorID(),from:et,to:Xt,value:{attributes:ra(h)}});for(const[_n,An]of Object.entries(h)){const[Gn]=ft.getValue().setAttr(_n,An,b);Gn!==void 0&&vt.push({parent:ft.getValue(),child:Gn})}}return[me,vt,Y]}indexRangeToPosRange(c,h){const b=this.rgaTreeSplit.indexToPos(c);return c===h?[b,b]:[b,this.rgaTreeSplit.indexToPos(h)]}get length(){return this.rgaTreeSplit.length}getTreeByIndex(){return this.rgaTreeSplit.getTreeByIndex()}getTreeByID(){return this.rgaTreeSplit.getTreeByID()}toJSON(){const c=[];for(const h of this.rgaTreeSplit)h.isRemoved()||c.push(h.getValue().toJSON());return`[${c.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 c=[];for(const h of this.rgaTreeSplit)if(!h.isRemoved()){const b=h.getValue();c.push({attributes:ra(b.getAttributes()),content:b.getContent()})}return c}getRGATreeSplit(){return this.rgaTreeSplit}toTestString(){return this.rgaTreeSplit.toTestString()}deepcopy(){const c=new ol(this.rgaTreeSplit.deepcopy(),this.getCreatedAt());return c.remove(this.getRemovedAt()),c}findIndexesFromRange(c){return this.rgaTreeSplit.findIndexesFromRange(c)}getGCPairs(){const c=[];for(const h of this.rgaTreeSplit){h.getRemovedAt()&&c.push({parent:this.rgaTreeSplit,child:h});for(const b of h.getValue().getGCPairs())c.push(b)}return c}}class Um extends fs{constructor(c,h,b,E,D,U,Y){super(c,Y),s(this,"fromPos"),s(this,"toPos"),s(this,"maxCreatedAtMapByActor"),s(this,"content"),s(this,"attributes"),this.fromPos=h,this.toPos=b,this.maxCreatedAtMapByActor=E,this.content=D,this.attributes=U}static create(c,h,b,E,D,U,Y){return new Um(c,h,b,E,D,U,Y)}execute(c){const h=c.findByCreatedAt(this.getParentCreatedAt());h||Rt.fatal(`fail to find ${this.getParentCreatedAt()}`),h instanceof ol||Rt.fatal("fail to execute, only Text can execute edit");const b=h,[,E,D]=b.edit([this.fromPos,this.toPos],this.content,this.getExecutedAt(),Object.fromEntries(this.attributes),this.maxCreatedAtMapByActor);for(const U of D)c.registerGCPair(U);return{opInfos:E.map(({from:U,to:Y,value:fe})=>({type:"edit",from:U,to:Y,value:fe,path:c.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const c=this.getParentCreatedAt().toTestString(),h=this.fromPos.toTestString(),b=this.toPos.toTestString(),E=this.content;return`${c}.EDIT(${h},${b},${E})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getContent(){return this.content}getAttributes(){return this.attributes||new Map}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}class zm extends fs{constructor(c,h,b,E,D,U){super(c,U),s(this,"fromPos"),s(this,"toPos"),s(this,"maxCreatedAtMapByActor"),s(this,"attributes"),this.fromPos=h,this.toPos=b,this.maxCreatedAtMapByActor=E,this.attributes=D}static create(c,h,b,E,D,U){return new zm(c,h,b,E,D,U)}execute(c){const h=c.findByCreatedAt(this.getParentCreatedAt());h||Rt.fatal(`fail to find ${this.getParentCreatedAt()}`),h instanceof ol||Rt.fatal("fail to execute, only Text can execute edit");const b=h,[,E,D]=b.setStyle([this.fromPos,this.toPos],this.attributes?Object.fromEntries(this.attributes):{},this.getExecutedAt(),this.maxCreatedAtMapByActor);for(const U of E)c.registerGCPair(U);return{opInfos:D.map(({from:U,to:Y,value:fe})=>({type:"style",from:U,to:Y,value:fe,path:c.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const c=this.getParentCreatedAt().toTestString(),h=this.fromPos.toTestString(),b=this.toPos.toTestString(),E=this.attributes;return`${c}.STYL(${h},${b},${JSON.stringify(E)})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getAttributes(){return this.attributes}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}const d6=2,Yc="root",Zc="text";function jm(v,c){let h=0;const b=v.children;for(let E=0;E0)throw new Error(`Text node cannot have children: ${this.type}`)}updateAncestorsSize(){let c=this.parent;const h=this.isRemoved?-1:1;for(;c&&(c.size+=this.paddedSize*h,!c.isRemoved);)c=c.parent}updateDescendantsSize(){let c=0;for(const h of this._children){const b=h.updateDescendantsSize();h.isRemoved||(c+=b)}return this.size+=c,this.paddedSize}get isText(){return this.type===Zc}get paddedSize(){return this.size+(this.isText?0:d6)}isAncestorOf(c){return h6(this,c)}get nextSibling(){const c=this.parent.findOffset(this),h=this.parent.children[c+1];if(h)return h}get prevSibling(){const c=this.parent.findOffset(this),h=this.parent.children[c-1];if(h)return h}splitText(c,h){if(c===0||c===this.size)return;const b=this.value.slice(0,c),E=this.value.slice(c);if(!E.length)return;this.value=b;const D=this.cloneText(c+h);return D.value=E,this.parent.insertAfterInternal(D,this),D}get children(){return this._children.filter(c=>!c.isRemoved)}get allChildren(){return[...this._children]}hasTextChild(){return this.children.length>0&&this.children.every(c=>c.isText)}append(...c){if(this.isText)throw new Error("Text node cannot have children");this._children.push(...c);for(const h of c)h.parent=this,h.updateAncestorsSize()}prepend(...c){if(this.isText)throw new Error("Text node cannot have children");this._children.unshift(...c);for(const h of c)h.parent=this}insertBefore(c,h){if(this.isText)throw new Error("Text node cannot have children");const b=this._children.indexOf(h);if(b===-1)throw new Error("child not found");this.insertAtInternal(c,b),c.updateAncestorsSize()}insertAfter(c,h){if(this.isText)throw new Error("Text node cannot have children");const b=this._children.indexOf(h);if(b===-1)throw new Error("child not found");this.insertAtInternal(c,b+1),c.updateAncestorsSize()}insertAt(c,h){if(this.isText)throw new Error("Text node cannot have children");this.insertAtInternal(c,h),c.updateAncestorsSize()}removeChild(c){if(this.isText)throw new Error("Text node cannot have children");const h=this._children.indexOf(c);if(h===-1)throw new Error("child not found");this._children.splice(h,1),c.parent=void 0}splitElement(c,h){const b=this.cloneElement(h);this.parent.insertAfterInternal(b,this),b.updateAncestorsSize();const E=this.children.slice(0,c),D=this.children.slice(c);this._children=E,b._children=D,this.size=this._children.reduce((U,Y)=>U+Y.paddedSize,0),b.size=b._children.reduce((U,Y)=>U+Y.paddedSize,0);for(const U of b._children)U.parent=b;return b}insertAfterInternal(c,h){if(this.isText)throw new Error("Text node cannot have children");const b=this._children.indexOf(h);if(b===-1)throw new Error("child not found");this.insertAtInternal(c,b+1)}insertAtInternal(c,h){if(this.isText)throw new Error("Text node cannot have children");this._children.splice(h,0,c),c.parent=this}findOffset(c){if(this.isText)throw new Error("Text node cannot have children");if(c.isRemoved){const h=this._children.indexOf(c);return this.allChildren.splice(0,h).filter(E=>!E.isRemoved).length}return this.children.indexOf(c)}findBranchOffset(c){if(this.isText)throw new Error("Text node cannot have children");let h=c;for(;h;){const b=this._children.indexOf(h);if(b!==-1)return b;h=h.parent}return-1}}function h6(v,c){if(v===c)return!1;for(;c.parent;){if(c.parent===v)return!0;c=c.parent}return!1}var pa=(v=>(v.Start="Start",v.End="End",v.Text="Text",v))(pa||{});function Gd(v,c,h,b){if(c>h)throw new Error(`from is greater than to: ${c} > ${h}`);if(c>v.size)throw new Error(`from is out of range: ${c} > ${v.size}`);if(h>v.size)throw new Error(`to is out of range: ${h} > ${v.size}`);if(c===h)return;let E=0;for(const D of v.children){if(c-D.paddedSizeD.size;(D.isText||fe)&&b([D,D.isText?"Text":"Start"],me),Gd(D,Math.max(0,U),Math.min(Y,D.size),b),me&&b([D,"End"],me)}E+=D.paddedSize}}function Zx(v,c,h=0){for(const b of v.children)Zx(b,c,h+1);c(v,h)}function hb(v,c,h=0){for(const b of v._children)hb(b,c,h+1);c(v,h)}function Ro(v,c,h=!0){if(c>v.size)throw new Error(`index is out of range: ${c} > ${v.size}`);if(v.isText)return{node:v,offset:c};let b=0,E=0;for(const D of v.children){if(h&&D.isText&&D.size>=c-E)return Ro(D,c-E,h);if(c===E)return{node:v,offset:b};if(!h&&D.paddedSize===c-E)return{node:v,offset:b+1};if(D.paddedSize>c-E)return Ro(D,c-E-1,h);E+=D.paddedSize,b+=1}return{node:v,offset:b}}function Xx(v){return v.isText||v.children.length===0?v:Xx(v.children[0])}function p6(v,c){if(v.sizev===c?0:v0)if(h.right)h.right.parent=h,h=h.right;else return h;else if(b<0)if(h.left)h.left.parent=h,h=h.left;else{let E=h.parent,D=h;for(;E&&D===E.left;)D=E,E=E.parent;return E}else return h}}lastEntry(){if(!this.root)return this.root;let c=this.root;for(;c.right;)c=c.right;return c}size(){return this.counter}isEmpty(){return this.counter===0}getInternal(c,h){for(;h;){const b=this.comparator(c,h.key);if(b===0)return h;b<0?h=h.left:b>0&&(h=h.right)}}putInternal(c,h,b){if(!b)return this.counter+=1,new b6(c,h,!0);const E=this.comparator(c,b.key);return E<0?b.left=this.putInternal(c,h,b.left):E>0?b.right=this.putInternal(c,h,b.right):b.value=h,this.isRed(b.right)&&!this.isRed(b.left)&&(b=this.rotateLeft(b)),this.isRed(b.left)&&this.isRed(b.left.left)&&(b=this.rotateRight(b)),this.isRed(b.left)&&this.isRed(b.right)&&this.flipColors(b),b}removeInternal(c,h){if(this.comparator(h,c.key)<0)!this.isRed(c.left)&&!this.isRed(c.left.left)&&(c=this.moveRedLeft(c)),c.left=this.removeInternal(c.left,h);else{if(this.isRed(c.left)&&(c=this.rotateRight(c)),this.comparator(h,c.key)===0&&!c.right){this.counter-=1;return}if(!this.isRed(c.right)&&!this.isRed(c.right.left)&&(c=this.moveRedRight(c)),this.comparator(h,c.key)===0){this.counter-=1;const b=this.min(c.right);c.value=b.value,c.key=b.key,c.right=this.removeMin(c.right)}else c.right=this.removeInternal(c.right,h)}return this.fixUp(c)}min(c){return c.left?this.min(c.left):c}removeMin(c){if(c.left)return!this.isRed(c.left)&&!this.isRed(c.left.left)&&(c=this.moveRedLeft(c)),c.left=this.removeMin(c.left),this.fixUp(c)}fixUp(c){return this.isRed(c.right)&&(c=this.rotateLeft(c)),this.isRed(c.left)&&this.isRed(c.left.left)&&(c=this.rotateRight(c)),this.isRed(c.left)&&this.isRed(c.right)&&this.flipColors(c),c}moveRedLeft(c){return this.flipColors(c),this.isRed(c.right.left)&&(c.right=this.rotateRight(c.right),c=this.rotateLeft(c),this.flipColors(c)),c}moveRedRight(c){return this.flipColors(c),this.isRed(c.left.left)&&(c=this.rotateRight(c),this.flipColors(c)),c}isRed(c){return c&&c.isRed}rotateLeft(c){const h=c.right;return c.right=h.left,h.left=c,h.isRed=h.left.isRed,h.left.isRed=!0,h}rotateRight(c){const h=c.left;return c.left=h.right,h.right=c,h.isRed=h.right.isRed,h.right.isRed=!0,h}flipColors(c){c.isRed=!c.isRed,c.left.isRed=!c.left.isRed,c.right.isRed=!c.right.isRed}}class Wl{constructor(c,h){s(this,"parentID"),s(this,"leftSiblingID"),this.parentID=c,this.leftSiblingID=h}static of(c,h){return new Wl(c,h)}static fromTreePos(c){const{offset:h}=c;let{node:b}=c,E;return b.isText?(b.parent.children[0]===b&&h===0?E=b.parent:E=b,b=b.parent):h===0?E=b:E=b.children[h-1],Wl.of(b.id,Za.of(E.getCreatedAt(),E.getOffset()+h))}getParentID(){return this.parentID}static fromStruct(c){return Wl.of(Za.of(Ga.fromStruct(c.parentID.createdAt),c.parentID.offset),Za.of(Ga.fromStruct(c.leftSiblingID.createdAt),c.leftSiblingID.offset))}toStruct(){return{parentID:{createdAt:this.getParentID().getCreatedAt().toStruct(),offset:this.getParentID().getOffset()},leftSiblingID:{createdAt:this.getLeftSiblingID().getCreatedAt().toStruct(),offset:this.getLeftSiblingID().getOffset()}}}toTreeNodePair(c){const h=this.getParentID(),b=this.getLeftSiblingID(),E=c.findFloorNode(h);let D=c.findFloorNode(b);if(!E||!D)throw new Error(`cannot find node of CRDTTreePos(${h.toTestString()}, ${b.toTestString()})`);return!b.equals(h)&&b.getOffset()>0&&b.getOffset()===D.id.getOffset()&&D.insPrevID&&(D=c.findFloorNode(D.insPrevID)),[E,D]}getLeftSiblingID(){return this.leftSiblingID}equals(c){return this.getParentID().getCreatedAt().equals(c.getParentID().getCreatedAt())&&this.getParentID().getOffset()===c.getParentID().getOffset()&&this.getLeftSiblingID().getCreatedAt().equals(c.getLeftSiblingID().getCreatedAt())&&this.getLeftSiblingID().getOffset()===c.getLeftSiblingID().getOffset()}}class Za{constructor(c,h){s(this,"createdAt"),s(this,"offset"),this.createdAt=c,this.offset=h}static of(c,h){return new Za(c,h)}static fromStruct(c){return Za.of(Ga.fromStruct(c.createdAt),c.offset)}static createComparator(){return(c,h)=>{const b=c.getCreatedAt().compare(h.getCreatedAt());return b!==0?b:c.getOffset()>h.getOffset()?1:c.getOffset(){const E=b.deepcopy();return E.parent=h,E}),h.insPrevID=this.insPrevID,h.insNextID=this.insNextID,h}get value(){if(!this.isText)throw new Error(`cannot get value of element node: ${this.type}`);return this._value}set value(c){if(!this.isText)throw new Error(`cannot set value of element node: ${this.type}`);this._value=c,this.size=c.length}get isRemoved(){return!!this.removedAt}remove(c){const h=!this.removedAt;(!this.removedAt||this.removedAt.compare(c)>0)&&(this.removedAt=c),h&&this.updateAncestorsSize()}cloneText(c){return new Rs(Za.of(this.id.getCreatedAt(),c),this.type,void 0,void 0,this.removedAt)}cloneElement(c){return new Rs(Za.of(c(),0),this.type,void 0,void 0,this.removedAt)}split(c,h,b){const E=this.isText?this.splitText(h,this.id.getOffset()):this.splitElement(h,b);if(E){if(E.insPrevID=this.id,this.insNextID){const D=c.findFloorNode(this.insNextID);D.insPrevID=E.id,E.insNextID=this.insNextID}this.insNextID=E.id,c.registerNode(E)}return E}getCreatedAt(){return this.id.getCreatedAt()}getOffset(){return this.id.getOffset()}canDelete(c,h){return!this.getCreatedAt().after(h)&&(!this.removedAt||c.after(this.removedAt))}canStyle(c,h){return this.isText?!1:!this.getCreatedAt().after(h)&&(!this.removedAt||c.after(this.removedAt))}setAttrs(c,h){this.attrs||(this.attrs=new Ya);const b=new Array;for(const[E,D]of Object.entries(c))b.push(this.attrs.set(E,D,h));return b}purge(c){this.attrs&&this.attrs.purge(c)}getGCPairs(){const c=[];if(!this.attrs)return c;for(const h of this.attrs)h.getRemovedAt()&&c.push({parent:this,child:h});return c}}function fh(v){var c;if(v.isText){const b=v;return{type:b.type,value:b.value}}const h={type:v.type,children:v.children.map(fh)};return v.attrs&&(h.attributes=ra((c=v.attrs)==null?void 0:c.toObject())),h}function Fp(v){if(v.isText)return v.value;let c="";return v.attrs&&v.attrs.size()&&(c=" "+Array.from(v.attrs).filter(h=>!h.isRemoved()).sort((h,b)=>h.getKey().localeCompare(b.getKey())).map(h=>{const b=JSON.parse(h.getValue());return typeof b=="string"?`${h.getKey()}="${b}"`:`${h.getKey()}="${Wu(h.getValue())}"`}).join(" ")),`<${v.type}${c}>${v.children.map(h=>Fp(h)).join("")}`}function Jx(v){if(v.isText){const c=v;return{type:c.type,value:c.value,size:c.size,isRemoved:c.isRemoved}}return{type:v.type,children:v.children.map(Jx),size:v.size,isRemoved:v.isRemoved}}class Io extends Lm{constructor(c,h){super(h),s(this,"indexTree"),s(this,"nodeMapByID"),this.indexTree=new m6(c),this.nodeMapByID=new dS(Za.createComparator()),this.indexTree.traverseAll(b=>{this.nodeMapByID.put(b.id,b)})}static create(c,h){return new Io(c,h)}findFloorNode(c){const h=this.nodeMapByID.floorEntry(c);if(!(!h||!h.key.getCreatedAt().equals(c.getCreatedAt())))return h.value}registerNode(c){this.nodeMapByID.put(c.id,c)}findNodesAndSplitText(c,h){const[b,E]=c.toTreeNodePair(this);let D=E;const U=b===D,Y=D.parent&&!U?D.parent:b;if(D.isText&&D.split(this,c.getLeftSiblingID().getOffset()-D.id.getOffset()),h){const fe=Y.allChildren,me=U?0:fe.indexOf(D)+1;for(let Pe=me;Pe{const Xt=et.getCreatedAt().getActorID(),_n=E?E.has(Xt)?E.get(Xt):_s:qc;if(et.canStyle(b,_n)&&h){const An=vt.get(Xt),Gn=et.getCreatedAt();(!An||Gn.after(An))&&vt.set(Xt,Gn);const ci=et.setAttrs(h,b),gr=ci.reduce((gi,[,gs])=>(gs&&(gi[gs.getKey()]=Pe[gs.getKey()]),gi),{}),Wr=et.parent,zr=et.prevSibling||et.parent;Object.keys(gr).length>0&&me.push({type:"style",from:this.toIndex(Wr,zr),to:this.toIndex(et,et),fromPath:this.toPath(Wr,zr),toPath:this.toPath(et,et),actor:b.getActorID(),value:gr});for(const[gi]of ci)gi&&ft.push({parent:et,child:gi})}}),[vt,ft,me]}removeStyle(c,h,b,E){const[D,U]=this.findNodesAndSplitText(c[0],b),[Y,fe]=this.findNodesAndSplitText(c[1],b),me=[],Pe=new Map,vt=[];return this.traverseInPosRange(D,U,Y,fe,([ft])=>{const et=ft.getCreatedAt().getActorID(),Xt=E?E.has(et)?E.get(et):_s:qc;if(ft.canStyle(b,Xt)&&h){const _n=Pe.get(et),An=ft.getCreatedAt();(!_n||An.after(_n))&&Pe.set(et,An),ft.attrs||(ft.attrs=new Ya);for(const gr of h){const Wr=ft.attrs.remove(gr,b);for(const zr of Wr)vt.push({parent:ft,child:zr})}const Gn=ft.parent,ci=ft.prevSibling||ft.parent;me.push({actor:b.getActorID(),type:"removeStyle",from:this.toIndex(Gn,ci),to:this.toIndex(ft,ft),fromPath:this.toPath(Gn,ci),toPath:this.toPath(ft,ft),value:h})}}),[Pe,vt,me]}edit(c,h,b,E,D,U){const[Y,fe]=this.findNodesAndSplitText(c[0],E),[me,Pe]=this.findNodesAndSplitText(c[1],E),vt=this.toIndex(Y,fe),ft=this.toPath(Y,fe),et=[],Xt=[],_n=[],An=new Map;this.traverseInPosRange(Y,fe,me,Pe,([gr,Wr],zr)=>{if(Wr===pa.Start&&!zr)for(const Po of gr.children)_n.push(Po);const gi=gr.getCreatedAt().getActorID(),gs=U?U.has(gi)?U.get(gi):_s:qc;if(gr.canDelete(E,gs)||et.includes(gr.parent)){const Po=An.get(gi),fg=gr.getCreatedAt();(!Po||fg.after(Po))&&An.set(gi,fg),(Wr===pa.Text||Wr===pa.Start)&&et.push(gr),Xt.push([gr,Wr])}});const Gn=this.makeDeletionChanges(Xt,E),ci=[];for(const gr of et)gr.remove(E),gr.isRemoved&&ci.push({parent:this,child:gr});for(const gr of _n)gr.removedAt||Y.append(gr);if(b>0){let gr=0,Wr=Y,zr=fe;for(;gr{Y.isRemoved&&(gi.remove(E),ci.push({parent:this,child:gi})),this.nodeMapByID.put(gi.id,gi)}),zr.isRemoved||gr.push(zr);if(gr.length){const zr=gr.map(gi=>fh(gi));Gn.length&&Gn[Gn.length-1].from===vt?Gn[Gn.length-1].value=zr:Gn.push({type:"content",from:vt,to:vt,fromPath:ft,toPath:ft,actor:E.getActorID(),value:zr})}}return[Gn,ci,An]}editT(c,h,b,E,D){const U=this.findPos(c[0]),Y=this.findPos(c[1]);this.edit([U,Y],h,b,E,D)}move(c,h,b){throw new Error(`not implemented: ${c}, ${h}, ${b}`)}purge(c){var h;(h=c.parent)==null||h.removeChild(c),this.nodeMapByID.remove(c.id);const b=c.insPrevID,E=c.insNextID;if(b){const D=this.findFloorNode(b);D.insNextID=E}if(E){const D=this.findFloorNode(E);D.insPrevID=b}c.insPrevID=void 0,c.insNextID=void 0}getGCPairs(){const c=[];return this.indexTree.traverse(h=>{h.getRemovedAt()&&c.push({parent:this,child:h});for(const b of h.getGCPairs())c.push(b)}),c}findPos(c,h=!0){const b=this.indexTree.findTreePos(c,h);return Wl.fromTreePos(b)}pathToPosRange(c){const h=this.pathToIndex(c);return[this.findPos(h),this.findPos(h+1)]}pathToPos(c){const h=this.indexTree.pathToIndex(c);return this.findPos(h)}getRoot(){return this.indexTree.getRoot()}getSize(){return this.indexTree.size}getNodeSize(){return this.nodeMapByID.size()}getIndexTree(){return this.indexTree}toXML(){return Fp(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 c=this.indexTree.getRoot(),h=(b,E=void 0,D=void 0,U=0)=>{var Y,fe,me,Pe;let vt,ft,et;const Xt=b.isText?{node:b,offset:0}:E&&D?this.toTreePos(E,D):null;Xt&&(vt=this.indexTree.indexOf(Xt),ft=this.indexTree.treePosToPath(Xt),et=Wl.fromTreePos(Xt).toStruct());const _n={type:b.type,parent:E==null?void 0:E.id.toTestString(),size:b.size,id:b.id.toTestString(),removedAt:(Y=b.removedAt)==null?void 0:Y.toTestString(),insPrev:(fe=b.insPrevID)==null?void 0:fe.toTestString(),insNext:(me=b.insNextID)==null?void 0:me.toTestString(),value:b.isText?b.value:void 0,isRemoved:b.isRemoved,children:[],depth:U,attributes:b.attrs?ra((Pe=b.attrs)==null?void 0:Pe.toObject()):void 0,index:vt,path:ft,pos:et};for(let An=0;An0&&An===b[b.length-1].to?(b[b.length-1].to=Gn,b[b.length-1].toPath=this.toPath(_n,ft)):b.push({type:"content",from:An,to:Gn,fromPath:this.toPath(Xt,Pe),toPath:this.toPath(_n,ft),actor:h.getActorID()}))}return b.reverse()}findRightToken([c,h]){if(h===pa.Start){const Y=c.allChildren;return Y.length>0?[Y[0],Y[0].isText?pa.Text:pa.Start]:[c,pa.End]}const b=c.parent,E=b.allChildren,D=E.indexOf(c);if(b&&D===E.length-1)return[b,pa.End];const U=E[D+1];return[U,U.isText?pa.Text:pa.Start]}findLeftToken([c,h]){if(h===pa.End){const Y=c.allChildren;if(Y.length>0){const fe=Y[Y.length-1];return[fe,fe.isText?pa.Text:pa.End]}return[c,pa.Start]}const b=c.parent,E=b.allChildren,D=E.indexOf(c);if(b&&D===0)return[b,pa.Start];const U=E[D-1];return[U,U.isText?pa.Text:pa.End]}}class Hm extends fs{constructor(c,h,b,E,D,U,Y){super(c,Y),s(this,"fromPos"),s(this,"toPos"),s(this,"contents"),s(this,"splitLevel"),s(this,"maxCreatedAtMapByActor"),this.fromPos=h,this.toPos=b,this.contents=E,this.splitLevel=D,this.maxCreatedAtMapByActor=U}static create(c,h,b,E,D,U,Y){return new Hm(c,h,b,E,D,U,Y)}execute(c){var h;const b=c.findByCreatedAt(this.getParentCreatedAt());b||Rt.fatal(`fail to find ${this.getParentCreatedAt()}`),b instanceof Io||Rt.fatal("fail to execute, only Tree can execute edit");const E=this.getExecutedAt(),D=b,[U,Y]=D.edit([this.fromPos,this.toPos],(h=this.contents)==null?void 0:h.map(fe=>fe.deepcopy()),this.splitLevel,E,(()=>{let fe=E.getDelimiter();return this.contents!==void 0&&(fe+=this.contents.length),()=>Ga.of(E.getLamport(),++fe,E.getActorID())})(),this.maxCreatedAtMapByActor);for(const fe of Y)c.registerGCPair(fe);return{opInfos:U.map(({from:fe,to:me,value:Pe,splitLevel:vt,fromPath:ft,toPath:et})=>({type:"tree-edit",path:c.createPath(this.getParentCreatedAt()),from:fe,to:me,value:Pe,splitLevel:vt,fromPath:ft,toPath:et}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const c=this.getParentCreatedAt().toTestString(),h=`${this.fromPos.getLeftSiblingID().getCreatedAt().toTestString()}/${this.fromPos.getLeftSiblingID().getOffset()}`,b=`${this.toPos.getLeftSiblingID().getCreatedAt().toTestString()}/${this.toPos.getLeftSiblingID().getOffset()}`,E=this.contents||[];return`${c}.EDIT(${h},${b},${E.map(D=>Fp(D)).join("")})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getContents(){return this.contents}getSplitLevel(){return this.splitLevel}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}class ps{constructor(c,h,b,E){s(this,"clientSeq"),s(this,"serverSeq"),s(this,"lamport"),s(this,"actor"),this.clientSeq=c,this.serverSeq=E,this.lamport=h,this.actor=b}static of(c,h,b,E){return new ps(c,h,b,E)}next(){return new ps(this.clientSeq+1,this.lamport.add(1),this.actor)}syncLamport(c){return c.greaterThan(this.lamport)?new ps(this.clientSeq,c,this.actor):new ps(this.clientSeq,this.lamport.add(1),this.actor)}createTimeTicket(c){return Ga.of(this.lamport,c,this.actor)}setActor(c){return new ps(this.clientSeq,this.lamport,c,this.serverSeq)}getClientSeq(){return this.clientSeq}getServerSeq(){return this.serverSeq?this.serverSeq.toString():""}getLamport(){return this.lamport}getLamportAsString(){return this.lamport.toString()}getActorID(){return this.actor}toTestString(){return`${this.lamport.toString()}:${this.actor.slice(-2)}:${this.clientSeq}`}}const fS=new ps(0,kn.fromInt(0,!0),Pm);class No{constructor({id:c,operations:h,presenceChange:b,message:E}){s(this,"id"),s(this,"operations"),s(this,"presenceChange"),s(this,"message"),this.id=c,this.operations=h||[],this.presenceChange=b,this.message=E}static create({id:c,operations:h,presenceChange:b,message:E}){return new No({id:c,operations:h,presenceChange:b,message:E})}getID(){return this.id}getMessage(){return this.message}hasOperations(){return this.operations.length>0}getOperations(){return this.operations}setActor(c){for(const h of this.operations)h.setActor(c);this.id=this.id.setActor(c)}hasPresenceChange(){return this.presenceChange!==void 0}getPresenceChange(){return this.presenceChange}execute(c,h,b){const E=[],D=[];for(const U of this.operations){const Y=U.execute(c,b);if(!Y)continue;const{opInfos:fe,reverseOp:me}=Y;E.push(...fe),me&&D.unshift(me)}return this.presenceChange&&(this.presenceChange.type===Qd.Put?h.set(this.id.getActorID(),Ql(this.presenceChange.presence)):h.delete(this.id.getActorID())),{opInfos:E,reverseOps:D}}toTestString(){return`${this.operations.map(c=>c.toTestString()).join(",")}`}toStruct(){return{changeID:ma.bytesToHex(ma.toChangeID(this.getID()).toBinary()),message:this.getMessage(),operations:this.getOperations().map(c=>ma.bytesToHex(ma.toOperation(c).toBinary())),presenceChange:this.getPresenceChange()}}static fromStruct(c){const{changeID:h,operations:b,presenceChange:E,message:D}=c;return No.create({id:ma.bytesToChangeID(ma.hexToBytes(h)),operations:b==null?void 0:b.map(U=>ma.bytesToOperation(ma.hexToBytes(U))),presenceChange:E,message:D})}}class Is{constructor(c,h,b,E,D,U){s(this,"documentKey"),s(this,"checkpoint"),s(this,"isRemoved"),s(this,"changes"),s(this,"snapshot"),s(this,"minSyncedTicket"),this.documentKey=c,this.checkpoint=h,this.isRemoved=b,this.changes=E,this.snapshot=D,this.minSyncedTicket=U}static create(c,h,b,E,D,U){return new Is(c,h,b,E,D,U)}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 Bp{constructor(c,h){s(this,"serverSeq"),s(this,"clientSeq"),this.serverSeq=c,this.clientSeq=h}static of(c,h){return new Bp(c,h)}increaseClientSeq(c){return c===0?this:new Bp(this.serverSeq,this.clientSeq+c)}forward(c){if(this.equals(c))return this;const h=this.serverSeq.greaterThan(c.serverSeq)?this.serverSeq:c.serverSeq,b=Math.max(this.clientSeq,c.clientSeq);return Bp.of(h,b)}getServerSeqAsString(){return this.serverSeq.toString()}getClientSeq(){return this.clientSeq}getServerSeq(){return this.serverSeq}equals(c){return this.clientSeq===c.clientSeq&&this.serverSeq.equals(c.serverSeq)}toTestString(){return`serverSeq=${this.serverSeq}, clientSeq=${this.clientSeq}`}}const ek=new Bp(kn.fromInt(0,!0),0);class Vl{constructor(c,h){s(this,"createdAt"),s(this,"offset"),this.createdAt=c,this.offset=h}static of(c,h){return new Vl(c,h)}static fromStruct(c){return Vl.of(Ga.fromStruct(c.createdAt),c.offset)}getCreatedAt(){return this.createdAt}getOffset(){return this.offset}equals(c){return this.createdAt.compare(c.createdAt)===0&&this.offset===c.offset}hasSameCreatedAt(c){return this.createdAt.compare(c.createdAt)===0}split(c){return new Vl(this.createdAt,this.offset+c)}toStruct(){return{createdAt:this.createdAt.toStruct(),offset:this.offset}}toTestString(){return`${this.createdAt.toTestString()}:${this.offset}`}toIDString(){return`${this.createdAt.toIDString()}:${this.offset}`}}const Qm=Vl.of(_s,0);class Ua{constructor(c,h){s(this,"id"),s(this,"relativeOffset"),this.id=c,this.relativeOffset=h}static of(c,h){return new Ua(c,h)}static fromStruct(c){const h=Vl.fromStruct(c.id);return Ua.of(h,c.relativeOffset)}getID(){return this.id}getRelativeOffset(){return this.relativeOffset}getAbsoluteID(){return Vl.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(c){return this.id.equals(c.id)?this.relativeOffset===c.relativeOffset:!1}}class Xc extends Mm{constructor(c,h,b){super(h),s(this,"id"),s(this,"removedAt"),s(this,"prev"),s(this,"next"),s(this,"insPrev"),s(this,"insNext"),this.id=c,this.removedAt=b}static create(c,h){return new Xc(c,h)}static createComparator(){return(c,h)=>{const b=c.getCreatedAt().compare(h.getCreatedAt());return b!==0?b:c.getOffset()>h.getOffset()?1:c.getOffset()0&&h.getID().getOffset()==c.getOffset()){if(!h.hasInsPrev())return h;h=h.getInsPrev()}return h}findFloorNode(c){const h=this.treeByID.floorEntry(c);if(h&&!(!h.key.equals(c)&&!h.key.hasSameCreatedAt(c)))return h.value}findBetween(c,h){const b=[];let E=c;for(;E&&E!==h;)b.push(E),E=E.getNext();return b}splitNode(c,h){if(h>c.getContentLength()&&Rt.fatal("offset should be less than or equal to length"),h===0)return c;if(h===c.getContentLength())return c.getNext();const b=c.split(h);this.treeByIndex.updateWeight(b),this.insertAfter(c,b);const E=c.getInsNext();return E&&E.setInsPrev(b),b.setInsPrev(c),b}deleteNodes(c,h,b){if(!c.length)return[[],new Map,new Map];const[E,D]=this.filterNodes(c,h,b),U=new Map,Y=new Map,fe=this.makeChanges(D,h);for(const me of E){const Pe=me.getCreatedAt().getActorID();(!U.has(Pe)||me.getID().getCreatedAt().after(U.get(Pe)))&&U.set(Pe,me.getID().getCreatedAt()),Y.set(me.getID().toIDString(),me),me.remove(h)}return this.deleteIndexNodes(D),[fe,U,Y]}filterNodes(c,h,b){const E=!!b,D=[],U=[],[Y,fe]=this.findEdgesOfCandidates(c);U.push(Y);for(const me of c){const Pe=me.getCreatedAt().getActorID(),vt=E?b.has(Pe)?b.get(Pe):_s:qc;me.canDelete(h,vt)?D.push(me):U.push(me)}return U.push(fe),[D,U]}findEdgesOfCandidates(c){return[c[0].getPrev(),c[c.length-1].getNext()]}makeChanges(c,h){const b=[];let E,D;for(let U=0;Uv<0?Math.ceil(v):Math.floor(v);var Vu=(v=>(v[v.IntegerCnt=0]="IntegerCnt",v[v.LongCnt=1]="LongCnt",v))(Vu||{});class ro extends Lm{constructor(c,h,b){switch(super(b),s(this,"valueType"),s(this,"value"),this.valueType=c,c){case 0:typeof h=="number"?h>Math.pow(2,31)-1||h<-Math.pow(2,31)?this.value=kn.fromNumber(h).toInt():this.value=Wm(h):this.value=h.toInt();break;case 1:typeof h=="number"?this.value=kn.fromNumber(h):this.value=h;break;default:throw new kr(mr.ErrUnimplemented,`unimplemented type: ${c}`)}}static create(c,h,b){return new ro(c,h,b)}static valueFromBytes(c,h){switch(c){case 0:return h[0]|h[1]<<8|h[2]<<16|h[3]<<24;case 1:return kn.fromBytesLE(Array.from(h));default:throw new kr(mr.ErrUnimplemented,`unimplemented type: ${c}`)}}toJSON(){return`${this.value}`}toSortedJSON(){return this.toJSON()}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:this.value,type:"YORKIE_COUNTER"}}deepcopy(){const c=ro.create(this.valueType,this.value,this.getCreatedAt());return c.setMovedAt(this.getMovedAt()),c}getType(){return this.valueType}static getCounterType(c){switch(typeof c){case"object":return c instanceof kn?1:void 0;case"number":return c>Math.pow(2,31)-1||c<-Math.pow(2,31)?1:0;default:return}}static isSupport(c){return!!ro.getCounterType(c)}static isInteger(c){return c%1===0}isNumericType(){const c=this.valueType;return c===0||c===1}getValueType(){return this.valueType}getValue(){return this.value}toBytes(){switch(this.valueType){case 0:{const c=this.value;return new Uint8Array([c&255,c>>8&255,c>>16&255,c>>24&255])}case 1:{const h=this.value.toBytesLE();return Uint8Array.from(h)}default:throw new kr(mr.ErrUnimplemented,`unimplemented type: ${this.valueType}`)}}increase(c){function h(b){if(!b.isNumericType())throw new TypeError(`Unsupported type of value: ${typeof b.getValue()}`)}return h(this),h(c),this.valueType===1?this.value=this.value.add(c.getValue()):c.getType()===Cn.Long?this.value=this.value+c.getValue().toInt():this.value=kn.fromNumber(this.value+Wm(c.getValue())).toInt(),this}}class qi extends fs{constructor(c,h,b){super(c,b),s(this,"value"),this.value=h}static create(c,h,b){return new qi(c,h,b)}execute(c){const h=c.findByCreatedAt(this.getParentCreatedAt());h||Rt.fatal(`fail to find ${this.getParentCreatedAt()}`),h instanceof ro||Rt.fatal("fail to execute, only Counter can execute increase");const b=h,E=this.value.deepcopy();return b.increase(E),{opInfos:[{type:"increase",path:c.createPath(this.getParentCreatedAt()),value:E.getValue()}],reverseOp:this.toReverseOperation()}}toReverseOperation(){const c=this.value.deepcopy(),b=c.getType()===Cn.Long?c.getValue().multiply(-1):c.getValue()*-1;return qi.create(this.getParentCreatedAt(),wi.of(b,c.getCreatedAt()))}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){return`${this.getParentCreatedAt().toTestString()}.INCREASE.${this.value.toJSON()}`}getValue(){return this.value}}class ql extends fs{constructor(c,h,b,E,D,U,Y){super(c,Y),s(this,"fromPos"),s(this,"toPos"),s(this,"maxCreatedAtMapByActor"),s(this,"attributes"),s(this,"attributesToRemove"),this.fromPos=h,this.toPos=b,this.maxCreatedAtMapByActor=E,this.attributes=D,this.attributesToRemove=U}static create(c,h,b,E,D,U){return new ql(c,h,b,E,D,new Array,U)}static createTreeRemoveStyleOperation(c,h,b,E,D,U){return new ql(c,h,b,E,new Map,D,U)}execute(c){const h=c.findByCreatedAt(this.getParentCreatedAt());h||Rt.fatal(`fail to find ${this.getParentCreatedAt()}`),h instanceof Io||Rt.fatal("fail to execute, only Tree can execute edit");const b=h;let E,D;if(this.attributes.size){const U={};[...this.attributes].forEach(([Y,fe])=>U[Y]=fe),[,D,E]=b.style([this.fromPos,this.toPos],U,this.getExecutedAt(),this.maxCreatedAtMapByActor)}else{const U=this.attributesToRemove;[,D,E]=b.removeStyle([this.fromPos,this.toPos],U,this.getExecutedAt(),this.maxCreatedAtMapByActor)}for(const U of D)c.registerGCPair(U);return{opInfos:E.map(({from:U,to:Y,value:fe,fromPath:me,toPath:Pe})=>({type:"tree-style",from:U,to:Y,value:this.attributes.size?{attributes:fe}:{attributesToRemove:fe},fromPath:me,toPath:Pe,path:c.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const c=this.getParentCreatedAt().toTestString(),h=`${this.fromPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.fromPos.getLeftSiblingID().getOffset()}`,b=`${this.toPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.toPos.getLeftSiblingID().getOffset()}`;return`${c}.STYLE(${h},${b},${Object.entries(this.attributes||{}).map(([E,D])=>`${E}:"${D}"`).join(" ")})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getAttributes(){return this.attributes}getAttributesToRemove(){return this.attributesToRemove}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}function tk(v){const c=new lb,h=c.data;for(const[b,E]of Object.entries(v))h[b]=JSON.stringify(E);return c}function qu(v){if(v.type===Qd.Put)return new iS({type:sh.PUT,presence:tk(v.presence)});if(v.type===Qd.Clear)return new iS({type:sh.CLEAR});throw new kr(mr.ErrUnimplemented,"unimplemented type")}function hS(v){return new Qc({serverSeq:v.getServerSeqAsString(),clientSeq:v.getClientSeq()})}function Vm(v){return new Cp({clientSeq:v.getClientSeq(),lamport:v.getLamportAsString(),actorId:bb(v.getActorID())})}function un(v){if(v)return new wn({lamport:v.getLamportAsString(),delimiter:v.getDelimiter(),actorId:bb(v.getActorID())})}function pS(v){switch(v){case Cn.Null:return Vn.NULL;case Cn.Boolean:return Vn.BOOLEAN;case Cn.Integer:return Vn.INTEGER;case Cn.Long:return Vn.LONG;case Cn.Double:return Vn.DOUBLE;case Cn.String:return Vn.STRING;case Cn.Bytes:return Vn.BYTES;case Cn.Date:return Vn.DATE;default:throw new kr(mr.Unsupported,`unsupported type: ${v}`)}}function ms(v){switch(v){case Vu.IntegerCnt:return Vn.INTEGER_CNT;case Vu.LongCnt:return Vn.LONG_CNT;default:throw new kr(mr.Unsupported,`unsupported type: ${v}`)}}function qm(v){if(v instanceof Cs)return new Uu({type:Vn.JSON_OBJECT,createdAt:un(v.getCreatedAt()),value:xS(v)});if(v instanceof _a)return new Uu({type:Vn.JSON_ARRAY,createdAt:un(v.getCreatedAt()),value:gk(v)});if(v instanceof ol)return new Uu({type:Vn.TEXT,createdAt:un(v.getCreatedAt())});if(v instanceof wi)return new Uu({type:pS(v.getType()),createdAt:un(v.getCreatedAt()),value:v.toBytes()});if(v instanceof ro)return new Uu({type:ms(v.getType()),createdAt:un(v.getCreatedAt()),value:v.toBytes()});if(v instanceof Io)return new Uu({type:Vn.TREE,createdAt:un(v.getCreatedAt()),value:_S(v)});throw new kr(mr.ErrUnimplemented,"unimplemented element")}function y6(v){return new nS({createdAt:un(v.getCreatedAt()),offset:v.getOffset()})}function pb(v){return new ju({createdAt:un(v.getID().getCreatedAt()),offset:v.getID().getOffset(),relativeOffset:v.getRelativeOffset()})}function mb(v){return new zu({parentId:hh(v.getParentID()),leftSiblingId:hh(v.getLeftSiblingID())})}function hh(v){return new Ip({createdAt:un(v.getCreatedAt()),offset:v.getOffset()})}function nk(v){const c=new XO;if(v instanceof ch){const h=v,b=new zx;b.parentCreatedAt=un(h.getParentCreatedAt()),b.key=h.getKey(),b.value=qm(h.getValue()),b.executedAt=un(h.getExecutedAt()),c.body.case="set",c.body.value=b}else if(v instanceof Fm){const h=v,b=new jx;b.parentCreatedAt=un(h.getParentCreatedAt()),b.prevCreatedAt=un(h.getPrevCreatedAt()),b.value=qm(h.getValue()),b.executedAt=un(h.getExecutedAt()),c.body.case="add",c.body.value=b}else if(v instanceof qd){const h=v,b=new KO;b.parentCreatedAt=un(h.getParentCreatedAt()),b.prevCreatedAt=un(h.getPrevCreatedAt()),b.createdAt=un(h.getCreatedAt()),b.executedAt=un(h.getExecutedAt()),c.body.case="move",c.body.value=b}else if(v instanceof Vd){const h=v,b=new _m;b.parentCreatedAt=un(h.getParentCreatedAt()),b.createdAt=un(h.getCreatedAt()),b.executedAt=un(h.getExecutedAt()),c.body.case="remove",c.body.value=b}else if(v instanceof Um){const h=v,b=new ah;b.parentCreatedAt=un(h.getParentCreatedAt()),b.from=pb(h.getFromPos()),b.to=pb(h.getToPos());const E=b.createdAtMapByActor;for(const[U,Y]of h.getMaxCreatedAtMapByActor())E[U]=un(Y);b.content=h.getContent();const D=b.attributes;for(const[U,Y]of h.getAttributes())D[U]=Y;b.executedAt=un(h.getExecutedAt()),c.body.case="edit",c.body.value=b}else if(v instanceof zm){const h=v,b=new JO;b.parentCreatedAt=un(h.getParentCreatedAt()),b.from=pb(h.getFromPos()),b.to=pb(h.getToPos());const E=b.createdAtMapByActor;for(const[U,Y]of h.getMaxCreatedAtMapByActor())E[U]=un(Y);const D=b.attributes;for(const[U,Y]of h.getAttributes())D[U]=Y;b.executedAt=un(h.getExecutedAt()),c.body.case="style",c.body.value=b}else if(v instanceof qi){const h=v,b=new eS;b.parentCreatedAt=un(h.getParentCreatedAt()),b.value=qm(h.getValue()),b.executedAt=un(h.getExecutedAt()),c.body.case="increase",c.body.value=b}else if(v instanceof Hm){const h=v,b=new nb,E=b.createdAtMapByActor;for(const[D,U]of h.getMaxCreatedAtMapByActor())E[D]=un(U);b.parentCreatedAt=un(h.getParentCreatedAt()),b.from=mb(h.getFromPos()),b.to=mb(h.getToPos()),b.contents=E6(h.getContents()),b.splitLevel=h.getSplitLevel(),b.executedAt=un(h.getExecutedAt()),c.body.case="treeEdit",c.body.value=b}else if(v instanceof ql){const h=v,b=new rb;b.parentCreatedAt=un(h.getParentCreatedAt()),b.from=mb(h.getFromPos()),b.to=mb(h.getToPos());const E=b.createdAtMapByActor;for(const[U,Y]of h.getMaxCreatedAtMapByActor())E[U]=un(Y);const D=h.getAttributesToRemove();if(D.length>0)b.attributesToRemove=D;else{const U=b.attributes;for(const[Y,fe]of h.getAttributes())U[Y]=fe}b.executedAt=un(h.getExecutedAt()),c.body.case="treeStyle",c.body.value=b}else throw new kr(mr.ErrUnimplemented,"unimplemented operation");return c}function Gm(v){const c=[];for(const h of v)c.push(nk(h));return c}function rk(v){const c=new Ux({id:Vm(v.getID()),message:v.getMessage()});return v.hasOperations()&&(c.operations=Gm(v.getOperations())),v.hasPresenceChange()&&(c.presenceChange=qu(v.getPresenceChange())),c}function v6(v){const c=[];for(const h of v)c.push(rk(h));return c}function O6(v){const c=[];for(const h of v)c.push(new Rp({key:h.getStrKey(),element:Zm(h.getValue())}));return c}function Ym(v){const c=[];for(const h of v)c.push(new ob({element:Zm(h.getValue())}));return c}function S6(v){const c=[];for(const h of v){const b=new Qx;b.id=y6(h.getID()),b.value=h.getValue().getContent(),b.removedAt=un(h.getRemovedAt());const E=b.attributes,D=h.getValue().getAttrs();for(const U of D){const Y=new Cm;Y.value=U.getValue(),Y.updatedAt=un(U.getUpdatedAt()),E[U.getKey()]=Y}c.push(b)}return c}function E6(v){const c=[];if(!v||!v.length)return c;for(const h of v)c.push(new Wx({content:gS(h)}));return c}function mS(v){const c={};for(const h of v)c[h.getKey()]=new Cm({value:h.getValue(),updatedAt:un(h.getUpdatedAt()),isRemoved:h.isRemoved()});return c}function gS(v){if(!v)return[];const c=[];return hb(v,(h,b)=>{const E=new rS({id:hh(h.id),type:h.type,removedAt:un(h.removedAt),depth:b});h.isText&&(E.value=h.value),h.insPrevID&&(E.insPrevId=hh(h.insPrevID)),h.insNextID&&(E.insNextId=hh(h.insNextID)),h.attrs&&(E.attributes=mS(h.attrs)),c.push(E)}),c}function w6(v){const c=new il;return c.body.case="jsonObject",c.body.value=new ib({nodes:O6(v.getRHT()),createdAt:un(v.getCreatedAt()),movedAt:un(v.getMovedAt()),removedAt:un(v.getRemovedAt())}),c}function ik(v){const c=new il;return c.body.case="jsonArray",c.body.value=new ab({nodes:Ym(v.getElements()),createdAt:un(v.getCreatedAt()),movedAt:un(v.getMovedAt()),removedAt:un(v.getRemovedAt())}),c}function T6(v){const c=new il;return c.body.case="primitive",c.body.value=new Hx({type:pS(v.getType()),value:v.toBytes(),createdAt:un(v.getCreatedAt()),movedAt:un(v.getMovedAt()),removedAt:un(v.getRemovedAt())}),c}function ak(v){const c=new il;return c.body.case="text",c.body.value=new tS({nodes:S6(v.getRGATreeSplit()),createdAt:un(v.getCreatedAt()),movedAt:un(v.getMovedAt()),removedAt:un(v.getRemovedAt())}),c}function bS(v){const c=new il;return c.body.case="counter",c.body.value=new to({type:ms(v.getType()),value:v.toBytes(),createdAt:un(v.getCreatedAt()),movedAt:un(v.getMovedAt()),removedAt:un(v.getRemovedAt())}),c}function sk(v){const c=new il;return c.body.case="tree",c.body.value=new sb({nodes:gS(v.getRoot()),createdAt:un(v.getCreatedAt()),movedAt:un(v.getMovedAt()),removedAt:un(v.getRemovedAt())}),c}function Zm(v){if(v instanceof Cs)return w6(v);if(v instanceof _a)return ik(v);if(v instanceof wi)return T6(v);if(v instanceof ol)return ak(v);if(v instanceof ro)return bS(v);if(v instanceof Io)return sk(v);throw new kr(mr.ErrUnimplemented,"unimplemented element")}function ok(v){return new zl({documentKey:v.getDocumentKey(),checkpoint:hS(v.getCheckpoint()),isRemoved:v.getIsRemoved(),changes:v6(v.getChanges()),snapshot:v.getSnapshot(),minSyncedTicket:un(v.getMinSyncedTicket())})}function yS(v){const c=v.findDetails(l6);for(const h of c)if(h.metadata.code)return h.metadata.code;return""}function vS(v){let c;return v.serverSeq&&(c=kn.fromString(v.serverSeq,!0)),ps.of(v.clientSeq,kn.fromString(v.lamport,!0),CS(v.actorId),c)}function gn(v){if(v)return Ga.of(kn.fromString(v.lamport,!0),v.delimiter,CS(v.actorId))}function OS(v){const c={};return Object.entries(v.data).forEach(([h,b])=>{c[h]=JSON.parse(b)}),c}function lk(v){const c=v.type;if(c===sh.PUT){const h=OS(v.presence);return{type:Qd.Put,presence:h}}if(c===sh.CLEAR)return{type:Qd.Clear};throw new kr(mr.Unsupported,`unsupported type: ${c}`)}function uk(v){const c=new Map;return Object.entries(v).forEach(([h,b])=>{c.set(h,OS(b))}),c}function ck(v){switch(v){case Vn.NULL:return Cn.Null;case Vn.BOOLEAN:return Cn.Boolean;case Vn.INTEGER:return Cn.Integer;case Vn.LONG:return Cn.Long;case Vn.DOUBLE:return Cn.Double;case Vn.STRING:return Cn.String;case Vn.BYTES:return Cn.Bytes;case Vn.DATE:return Cn.Date}throw new kr(mr.ErrUnimplemented,`unimplemented value type: ${v}`)}function Xm(v){switch(v){case Vn.INTEGER_CNT:return Vu.IntegerCnt;case Vn.LONG_CNT:return Vu.LongCnt}throw new kr(mr.ErrUnimplemented,`unimplemented value type: ${v}`)}function SS(v){switch(v.type){case Vn.JSON_OBJECT:return v.value?tg(v.value):Cs.create(gn(v.createdAt));case Vn.JSON_ARRAY:return v.value?kS(v.value):_a.create(gn(v.createdAt));case Vn.TEXT:return ol.create(Up.create(),gn(v.createdAt));case Vn.TREE:return AS(v.value);case Vn.NULL:case Vn.BOOLEAN:case Vn.INTEGER:case Vn.LONG:case Vn.DOUBLE:case Vn.STRING:case Vn.BYTES:case Vn.DATE:return wi.of(wi.valueFromBytes(ck(v.type),v.value),gn(v.createdAt));case Vn.INTEGER_CNT:case Vn.LONG_CNT:return ro.create(Xm(v.type),ro.valueFromBytes(Xm(v.type),v.value),gn(v.createdAt))}}function zp(v){return Ua.of(Vl.of(gn(v.createdAt),v.offset),v.relativeOffset)}function ES(v){return Vl.of(gn(v.createdAt),v.offset)}function wS(v){const c=Bm.create(v.value);Object.entries(v.attributes).forEach(([b,E])=>{c.setAttr(b,E.value,gn(E.updatedAt))});const h=Xc.create(ES(v.id),c);return h.remove(gn(v.removedAt)),h}function jp(v){return Wl.of(ph(v.parentId),ph(v.leftSiblingId))}function ph(v){return Za.of(gn(v.createdAt),v.offset)}function rr(v){if(!v.length)return;const c=[];return v.forEach(h=>{const b=dk(h.content);c.push(b)}),c}function dk(v){if(v.length===0)return;const c=[];for(const b of v)c.push(Km(b));const h=c[c.length-1];for(let b=c.length-2;b>=0;b--){let E;for(let D=b+1;D{h.set(E,gn(D))});const b=new Map;return Object.entries(c.attributes).forEach(([E,D])=>{b.set(E,D)}),Um.create(gn(c.parentCreatedAt),zp(c.from),zp(c.to),h,c.content,b,gn(c.executedAt))}else if(v.body.case==="style"){const c=v.body.value,h=new Map;Object.entries(c.createdAtMapByActor).forEach(([E,D])=>{h.set(E,gn(D))});const b=new Map;return Object.entries(c.attributes).forEach(([E,D])=>{b.set(E,D)}),zm.create(gn(c.parentCreatedAt),zp(c.from),zp(c.to),h,b,gn(c.executedAt))}else{if(v.body.case==="select")return;if(v.body.case==="increase"){const c=v.body.value;return qi.create(gn(c.parentCreatedAt),SS(c.value),gn(c.executedAt))}else if(v.body.case==="treeEdit"){const c=v.body.value,h=new Map;return Object.entries(c.createdAtMapByActor).forEach(([b,E])=>{h.set(b,gn(E))}),Hm.create(gn(c.parentCreatedAt),jp(c.from),jp(c.to),rr(c.contents),c.splitLevel,h,gn(c.executedAt))}else if(v.body.case==="treeStyle"){const c=v.body.value,h=new Map,b=c.attributesToRemove,E=new Map;return c!=null&&c.createdAtMapByActor&&Object.entries(c.createdAtMapByActor).forEach(([D,U])=>{E.set(D,gn(U))}),(b==null?void 0:b.length)>0?ql.createTreeRemoveStyleOperation(gn(c.parentCreatedAt),jp(c.from),jp(c.to),E,b,gn(c.executedAt)):(Object.entries(c.attributes).forEach(([D,U])=>{h.set(D,U)}),ql.create(gn(c.parentCreatedAt),jp(c.from),jp(c.to),E,h,gn(c.executedAt)))}else throw new kr(mr.ErrUnimplemented,"unimplemented operation")}}function k6(v){const c=[];for(const h of v){const b=TS(h);b&&c.push(b)}return c}function fk(v){const c=[];for(const h of v)c.push(No.create({id:vS(h.id),operations:k6(h.operations),presenceChange:h.presenceChange?lk(h.presenceChange):void 0,message:h.message}));return c}function ll(v){return Bp.of(kn.fromString(v.serverSeq,!0),v.clientSeq)}function A6(v){return Is.create(v.documentKey,ll(v.checkpoint),v.isRemoved,fk(v.changes),v.snapshot,gn(v.minSyncedTicket))}function Jm(v){const c=new Gc;for(const b of v.nodes){const E=eg(b.element);c.set(b.key,E,E.getPositionedAt())}const h=new Cs(gn(v.createdAt),c);return h.setMovedAt(gn(v.movedAt)),h.setRemovedAt(gn(v.removedAt)),h}function gb(v){const c=new $m;for(const b of v.nodes)c.insert(eg(b.element));const h=new _a(gn(v.createdAt),c);return h.setMovedAt(gn(v.movedAt)),h.setRemovedAt(gn(v.removedAt)),h}function hk(v){const c=wi.of(wi.valueFromBytes(ck(v.type),v.value),gn(v.createdAt));return c.setMovedAt(gn(v.movedAt)),c.setRemovedAt(gn(v.removedAt)),c}function pk(v){const c=new Up;let h=c.getHead();for(const E of v.nodes){const D=c.insertAfter(h,wS(E));E.insPrevId&&D.setInsPrev(c.findNode(ES(E.insPrevId))),h=D}const b=new ol(c,gn(v.createdAt));return b.setMovedAt(gn(v.movedAt)),b.setRemovedAt(gn(v.removedAt)),b}function Do(v){const c=ro.create(Xm(v.type),ro.valueFromBytes(Xm(v.type),v.value),gn(v.createdAt));return c.setMovedAt(gn(v.movedAt)),c.setRemovedAt(gn(v.removedAt)),c}function Kc(v){const c=dk(v.nodes);return Io.create(c,gn(v.createdAt))}function eg(v){if(v.body.case==="jsonObject")return Jm(v.body.value);if(v.body.case==="jsonArray")return gb(v.body.value);if(v.body.case==="primitive")return hk(v.body.value);if(v.body.case==="text")return pk(v.body.value);if(v.body.case==="counter")return Do(v.body.value);if(v.body.case==="tree")return Kc(v.body.value);throw new kr(mr.ErrUnimplemented,"unimplemented element")}function mk(v){if(!v)return{root:Cs.create(_s),presences:new Map};const c=jd.fromBinary(v);return{root:eg(c.root),presences:uk(c.presences)}}function tg(v){if(!v)throw new Error("bytes is empty");const c=il.fromBinary(v);return Jm(c.body.value)}function xS(v){return Zm(v).toBinary()}function kS(v){if(!v)throw new Error("bytes is empty");const c=il.fromBinary(v);return gb(c.body.value)}function gk(v){return ik(v).toBinary()}function AS(v){if(!v)throw new Error("bytes is empty");const c=il.fromBinary(v);return Kc(c.body.value)}function _S(v){return sk(v).toBinary()}function Jc(v){return v?Array.from(v).map(c=>c.toString(16).padStart(2,"0")).join(""):""}function CS(v){return Jc(v)}function ed(v){return new Uint8Array(v.match(/.{1,2}/g).map(c=>parseInt(c,16)))}function bb(v){return ed(v)}function bk(v){const c=Cp.fromBinary(v);return vS(c)}function RS(v){const c=XO.fromBinary(v);return TS(c)}const ma={fromPresence:OS,toChangePack:ok,fromChangePack:A6,fromChanges:fk,objectToBytes:xS,bytesToObject:tg,bytesToSnapshot:mk,bytesToHex:Jc,hexToBytes:ed,toHexString:CS,toUint8Array:bb,toOperation:nk,toChangeID:Vm,PbChangeID:Cp,bytesToChangeID:bk,bytesToOperation:RS};function yk(){return"xxxxxxxx-xxxx-4xxxy-xxxx-xxxxxxxxxxx".replace(/[xy]/g,v=>{const c=Math.random()*16|0;return(v==="x"?c:c&3|8).toString(16)})}class _6{constructor(c,h,b,E){s(this,"reconnectStreamDelay"),s(this,"doc"),s(this,"docID"),s(this,"syncMode"),s(this,"remoteChangeEventReceived"),s(this,"watchStream"),s(this,"watchLoopTimerID"),s(this,"watchAbortController"),this.reconnectStreamDelay=c,this.doc=h,this.docID=b,this.syncMode=E,this.remoteChangeEventReceived=!1}changeSyncMode(c){this.syncMode=c}needRealtimeSync(){return this.syncMode===dg.RealtimeSyncOff?!1:this.syncMode===dg.RealtimePushOnly?this.doc.hasLocalChanges():this.syncMode!==dg.Manual&&(this.doc.hasLocalChanges()||this.remoteChangeEventReceived)}async runWatchLoop(c){const h=async()=>{if(this.watchStream)return Promise.resolve();this.watchLoopTimerID&&(clearTimeout(this.watchLoopTimerID),this.watchLoopTimerID=void 0);try{[this.watchStream,this.watchAbortController]=await c(()=>{this.watchStream=void 0,this.watchAbortController=void 0,this.watchLoopTimerID=setTimeout(h,this.reconnectStreamDelay)})}catch{}};await h()}cancelWatchStream(){this.watchStream&&this.watchAbortController&&(this.watchAbortController.abort(),this.watchStream=void 0,this.watchAbortController=void 0),clearTimeout(this.watchLoopTimerID),this.watchLoopTimerID=void 0}}const yb=()=>{};class vk{constructor(c){s(this,"finalized",!1),s(this,"observers",[]),s(this,"finalError");try{c(this)}catch(h){this.error(h)}}next(c){this.forEachObserver(h=>{h.next(c)})}error(c){this.forEachObserver(h=>{h.error(c)}),this.close(c)}complete(){this.forEachObserver(c=>{c.complete()}),this.close()}subscribe(c,h,b){let E;c||Rt.fatal("missing observer"),this.finalized&&Rt.fatal("observable is finalized due to previous error"),typeof c=="object"?E=c:E={next:c,error:h,complete:b},E.next===void 0&&(E.next=yb),E.error===void 0&&(E.error=yb),E.complete===void 0&&(E.complete=yb);const D=yk(),U=this.unsubscribeOne.bind(this,D);if(this.observers.push({subscriptionID:D,observer:E}),this.finalized)try{this.finalError?E.error(this.finalError):E.complete()}catch(Y){Rt.warn(Y)}return U}unsubscribeOne(c){var h;this.observers=(h=this.observers)==null?void 0:h.filter(b=>b.subscriptionID!==c)}forEachObserver(c){if(!this.finalized)for(let h=0;hc}}class mh{constructor(c,h,b,E){s(this,"id"),s(this,"delimiter"),s(this,"message"),s(this,"root"),s(this,"operations"),s(this,"presenceChange"),s(this,"previousPresence"),s(this,"reversePresenceKeys"),this.id=c,this.delimiter=uh,this.root=h,this.operations=[],this.previousPresence=Ql(b),this.presenceChange=void 0,this.reversePresenceKeys=new Set,this.message=E}static create(c,h,b,E){return new mh(c,h,b,E)}push(c){this.operations.push(c)}registerElement(c,h){this.root.registerElement(c,h)}registerRemovedElement(c){this.root.registerRemovedElement(c)}registerGCPair(c){this.root.registerGCPair(c)}getChange(){return No.create({id:this.id,operations:this.operations,presenceChange:this.presenceChange,message:this.message})}hasChange(){return this.operations.length>0||this.presenceChange!==void 0}setPresenceChange(c){this.presenceChange=c}setReversePresence(c,h){for(const b of Object.keys(c))h!=null&&h.addToHistory?this.reversePresenceKeys.add(b):this.reversePresenceKeys.delete(b)}getReversePresence(){if(this.reversePresenceKeys.size===0)return;const c={};for(const h of this.reversePresenceKeys)c[h]=this.previousPresence[h];return c}issueTimeTicket(){return this.delimiter+=1,this.id.createTimeTicket(this.delimiter)}getLastTimeTicket(){return this.id.createTimeTicket(this.delimiter)}}class Hp{constructor(c){s(this,"rootObject"),s(this,"elementPairMapByCreatedAt"),s(this,"gcElementSetByCreatedAt"),s(this,"gcPairMap"),this.rootObject=c,this.elementPairMapByCreatedAt=new Map,this.gcElementSetByCreatedAt=new Set,this.gcPairMap=new Map,this.registerElement(c,void 0),c.getDescendants(h=>{if(h.getRemovedAt()&&this.registerRemovedElement(h),h instanceof ol||h instanceof Io)for(const b of h.getGCPairs())this.registerGCPair(b);return!1})}static create(){return new Hp(Cs.create(_s))}findByCreatedAt(c){const h=this.elementPairMapByCreatedAt.get(c.toIDString());if(h)return h.element}findElementPairByCreatedAt(c){return this.elementPairMapByCreatedAt.get(c.toIDString())}createSubPaths(c){let h=this.elementPairMapByCreatedAt.get(c.toIDString());if(!h)return[];const b=[];for(;h.parent;){const E=h.element.getCreatedAt(),D=h.parent.subPathOf(E);D===void 0&&Rt.fatal(`cant find the given element: ${E.toIDString()}`),b.unshift(D),h=this.elementPairMapByCreatedAt.get(h.parent.getCreatedAt().toIDString())}return b.unshift("$"),b}createPath(c){return this.createSubPaths(c).join(".")}registerElement(c,h){this.elementPairMapByCreatedAt.set(c.getCreatedAt().toIDString(),{parent:h,element:c}),c instanceof Wd&&c.getDescendants((b,E)=>(this.registerElement(b,E),!1))}deregisterElement(c){let h=0;const b=E=>{const D=E.getCreatedAt().toIDString();this.elementPairMapByCreatedAt.delete(D),this.gcElementSetByCreatedAt.delete(D),h++};return b(c),c instanceof Wd&&c.getDescendants(E=>(b(E),!1)),h}registerRemovedElement(c){this.gcElementSetByCreatedAt.add(c.getCreatedAt().toIDString())}registerGCPair(c){if(this.gcPairMap.get(c.child.toIDString())){this.gcPairMap.delete(c.child.toIDString());return}this.gcPairMap.set(c.child.toIDString(),c)}getElementMapSize(){return this.elementPairMapByCreatedAt.size}getGarbageElementSetSize(){const c=new Set;for(const h of this.gcElementSetByCreatedAt){c.add(h);const b=this.elementPairMapByCreatedAt.get(h);b.element instanceof Wd&&b.element.getDescendants(E=>(c.add(E.getCreatedAt().toIDString()),!1))}return c.size}getObject(){return this.rootObject}getGarbageLen(){return this.getGarbageElementSetSize()+this.gcPairMap.size}deepcopy(){return new Hp(this.rootObject.deepcopy())}garbageCollect(c){let h=0;for(const b of this.gcElementSetByCreatedAt){const E=this.elementPairMapByCreatedAt.get(b);E.element.getRemovedAt()&&c.compare(E.element.getRemovedAt())>=0&&(E.parent.purge(E.element),h+=this.deregisterElement(E.element))}for(const[,b]of this.gcPairMap){const E=b.child.getRemovedAt();E!==void 0&&c.compare(E)>=0&&(b.parent.purge(b.child),this.gcPairMap.delete(b.child.toIDString()),h+=1)}return h}toJSON(){return this.rootObject.toJSON()}toSortedJSON(){return this.rootObject.toSortedJSON()}}function Ns(v,c){const h=new io(v);return new Proxy(c,h.getHandlers())}class io{constructor(c){s(this,"context"),s(this,"handlers"),this.context=c,this.handlers={set:(h,b,E)=>(Rt.isEnabled(Aa.Trivial)&&Rt.trivial(`obj[${b}]=${JSON.stringify(E)}`),io.setInternal(c,h,b,E),!0),get:(h,b)=>(Rt.isEnabled(Aa.Trivial)&&Rt.trivial(`obj[${b}]`),b==="getID"?()=>h.getCreatedAt():b==="toJSON"||b==="toString"?()=>h.toJSON():b==="toJS"?()=>h.toJS():b==="toJSForTest"?()=>h.toJSForTest():Gu(c,h.get(b))),ownKeys:h=>h.getKeys(),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),deleteProperty:(h,b)=>(Rt.isEnabled(Aa.Trivial)&&Rt.trivial(`obj[${b}]`),io.deleteInternal(c,h,b),!0)}}static setInternal(c,h,b,E){if(b.includes("."))throw new kr(mr.ErrInvalidObjectKey,"key must not contain the '.'.");const D=c.issueTimeTicket(),U=rg(c,E,D),Y=h.set(b,U,D);c.registerElement(U,h),Y&&c.registerRemovedElement(Y),c.push(ch.create(b,U.deepcopy(),h.getCreatedAt(),D))}static buildObjectMembers(c,h){const b={};for(const[E,D]of Object.entries(h)){if(E.includes("."))throw new kr(mr.ErrInvalidObjectKey,"key must not contain the '.'.");const U=c.issueTimeTicket(),Y=rg(c,D,U);b[E]=Y}return b}static deleteInternal(c,h,b){const E=c.issueTimeTicket(),D=h.deleteByKey(b,E);D&&(c.push(Vd.create(h.getCreatedAt(),D.getCreatedAt(),E)),c.registerRemovedElement(D))}getHandlers(){return this.handlers}}function R6(v,c){const h=new ai(v,c);return new Proxy(c,h.getHandlers())}function I6(v){return typeof v=="string"||v instanceof String?!isNaN(v):!1}function vb(v){return["concat","entries","every","filter","find","findIndex","forEach","join","keys","map","reduce","reduceRight","slice","some","toLocaleString","toString","values"].includes(v)}class ai{constructor(c,h){s(this,"context"),s(this,"handlers"),s(this,"array"),this.context=c,this.array=h,this.handlers={get:(b,E,D)=>E==="getID"?()=>b.getCreatedAt():E==="getElementByID"?U=>{const Y=b.getByID(U);if(!(!Y||Y.isRemoved()))return td(c,Y)}:E==="getElementByIndex"?U=>{const Y=b.get(U);return td(c,Y)}:E==="getLast"?()=>td(c,b.getLast()):E==="deleteByID"?U=>{const Y=ai.deleteInternalByID(c,b,U);return td(c,Y)}:E==="insertAfter"?(U,Y)=>{const fe=ai.insertAfterInternal(c,b,U,Y);return td(c,fe)}:E==="insertBefore"?(U,Y)=>{const fe=ai.insertBeforeInternal(c,b,U,Y);return td(c,fe)}:E==="moveBefore"?(U,Y)=>{ai.moveBeforeInternal(c,b,U,Y)}:E==="moveAfter"?(U,Y)=>{ai.moveAfterInternal(c,b,U,Y)}:E==="moveFront"?U=>{ai.moveFrontInternal(c,b,U)}:E==="moveLast"?U=>{ai.moveLastInternal(c,b,U)}:I6(E)?Gu(c,b.get(Number(E))):E==="push"?U=>ai.pushInternal(c,b,U):E==="splice"?(U,Y,...fe)=>ai.splice(c,b,U,Y,...fe):E==="length"?b.length:typeof E=="symbol"&&E===Symbol.iterator?ai.iteratorInternal.bind(this,c,b):E==="includes"?(U,Y)=>ai.includes(c,b,U,Y):E==="indexOf"?(U,Y)=>ai.indexOf(c,b,U,Y):E==="lastIndexOf"?(U,Y)=>ai.lastIndexOf(c,b,U,Y):E==="toJSForTest"?()=>b.toJSForTest():E==="toTestString"?()=>ai.toTestString(b):typeof E=="string"&&vb(E)?(...U)=>{const Y=Array.from(b).map(fe=>Gu(c,fe));return Array.prototype[E].apply(Y,U)}:Reflect.get(b,E,D),deleteProperty:(b,E)=>(Rt.isEnabled(Aa.Trivial)&&Rt.trivial(`array[${E}]`),ai.deleteInternalByIndex(c,b,Number.parseInt(E)),!0)}}static*iteratorInternal(c,h){for(const b of h)yield td(c,b)}static buildArrayElements(c,h){const b=[];for(const E of h){const D=c.issueTimeTicket(),U=rg(c,E,D);b.push(U)}return b}static pushInternal(c,h,b){return ai.insertAfterInternal(c,h,h.getLastCreatedAt(),b),h.length}static moveBeforeInternal(c,h,b,E){const D=c.issueTimeTicket(),U=h.getPrevCreatedAt(b);h.moveAfter(U,E,D),c.push(qd.create(h.getCreatedAt(),U,E,D))}static moveAfterInternal(c,h,b,E){const D=c.issueTimeTicket();h.moveAfter(b,E,D),c.push(qd.create(h.getCreatedAt(),b,E,D))}static moveFrontInternal(c,h,b){const E=c.issueTimeTicket(),D=h.getHead();h.moveAfter(D.getCreatedAt(),b,E),c.push(qd.create(h.getCreatedAt(),D.getCreatedAt(),b,E))}static moveLastInternal(c,h,b){const E=c.issueTimeTicket(),D=h.getLastCreatedAt();h.moveAfter(D,b,E),c.push(qd.create(h.getCreatedAt(),D,b,E))}static insertAfterInternal(c,h,b,E){const D=c.issueTimeTicket(),U=rg(c,E,D);return h.insertAfter(b,U),c.registerElement(U,h),c.push(Fm.create(h.getCreatedAt(),b,U.deepcopy(),D)),U}static insertBeforeInternal(c,h,b,E){return ai.insertAfterInternal(c,h,h.getPrevCreatedAt(b),E)}static deleteInternalByIndex(c,h,b){const E=c.issueTimeTicket(),D=h.deleteByIndex(b,E);if(D)return c.push(Vd.create(h.getCreatedAt(),D.getCreatedAt(),E)),c.registerRemovedElement(D),D}static deleteInternalByID(c,h,b){const E=c.issueTimeTicket(),D=h.delete(b,E);return c.push(Vd.create(h.getCreatedAt(),D.getCreatedAt(),E)),c.registerRemovedElement(D),D}static splice(c,h,b,E,...D){const U=h.length,Y=b>=0?Math.min(b,U):Math.max(U+b,0),fe=E===void 0?U:E<0?Y:Math.min(Y+E,U),me=[];for(let Pe=Y;Pe=U)return!1;if(wi.isSupport(b))return Array.from(h).map(me=>Gu(c,me)).includes(b,Y);for(let fe=Y;fe=U)return-1;if(wi.isSupport(b))return Array.from(h).map(me=>Gu(c,me)).indexOf(b,Y);for(let fe=Y;fe=U?U-1:E<0?E+U:E;if(Y<0)return-1;if(wi.isSupport(b))return Array.from(h).map(me=>Gu(c,me)).lastIndexOf(b,Y);for(let fe=Y;fe>0;fe--)if(((D=h.get(fe))==null?void 0:D.getID())===b.getID())return fe;return-1}static toTestString(c){return c.toTestString()}getHandlers(){return this.handlers}}class Qp{constructor(c,h){s(this,"context"),s(this,"text"),this.context=c,this.text=h}initialize(c,h){this.context=c,this.text=h}getID(){return this.text.getID()}edit(c,h,b,E){if(!this.context||!this.text){Rt.fatal("it is not initialized yet");return}if(c>h){Rt.fatal("from should be less than or equal to to");return}const D=this.text.indexRangeToPosRange(c,h);Rt.isEnabled(Aa.Debug)&&Rt.debug(`EDIT: f:${c}->${D[0].toTestString()}, t:${h}->${D[1].toTestString()} c:${b}`);const U=E?Ei(E):void 0,Y=this.context.issueTimeTicket(),[fe,,me,Pe]=this.text.edit(D,b,Y,U);for(const vt of me)this.context.registerGCPair(vt);return this.context.push(new Um(this.text.getCreatedAt(),D[0],D[1],fe,b,U?new Map(Object.entries(U)):new Map,Y)),this.text.findIndexesFromRange(Pe)}delete(c,h){return this.edit(c,h,"")}empty(){return this.edit(0,this.length,"")}setStyle(c,h,b){if(!this.context||!this.text)return Rt.fatal("it is not initialized yet"),!1;if(c>h)return Rt.fatal("from should be less than or equal to to"),!1;const E=this.text.indexRangeToPosRange(c,h);Rt.isEnabled(Aa.Debug)&&Rt.debug(`STYL: f:${c}->${E[0].toTestString()}, t:${h}->${E[1].toTestString()} a:${JSON.stringify(b)}`);const D=Ei(b),U=this.context.issueTimeTicket(),[Y,fe]=this.text.setStyle(E,D,U);for(const me of fe)this.context.registerGCPair(me);return this.context.push(new zm(this.text.getCreatedAt(),E[0],E[1],Y,new Map(Object.entries(D)),U)),!0}indexRangeToPosRange(c){if(!this.context||!this.text){Rt.fatal("it is not initialized yet");return}const h=this.text.indexRangeToPosRange(c[0],c[1]);return[h[0].toStruct(),h[1].toStruct()]}posRangeToIndexRange(c){if(!this.context||!this.text){Rt.fatal("it is not initialized yet");return}const h=this.text.findIndexesFromRange([Ua.fromStruct(c[0]),Ua.fromStruct(c[1])]);return[h[0],h[1]]}toTestString(){if(!this.context||!this.text){Rt.fatal("it is not initialized yet");return}return this.text.toTestString()}values(){if(!this.context||!this.text){Rt.fatal("it is not initialized yet");return}return this.text.values()}get length(){return this.text.length}getTreeByIndex(){return this.text.getTreeByIndex()}getTreeByID(){return this.text.getTreeByID()}toString(){return!this.context||!this.text?(Rt.fatal("it is not initialized yet"),""):this.text.toString()}toJSON(){if(!this.context||!this.text)throw new Error("it is not initialized yet");return this.text.toJSON()}toJSForTest(){if(!this.context||!this.text)throw new Error("it is not initialized yet");return this.text.toJSForTest()}createRangeForTest(c,h){if(!this.context||!this.text){Rt.fatal("it is not initialized yet");return}return this.text.indexRangeToPosRange(c,h)}}class Wp{constructor(c,h){s(this,"valueType"),s(this,"value"),s(this,"context"),s(this,"counter"),this.valueType=c,this.value=h}initialize(c,h){this.valueType=h.getValueType(),this.context=c,this.counter=h,this.value=h.getValue()}getID(){return this.counter.getID()}getValue(){return this.value}getValueType(){return this.valueType}increase(c){if(!this.context||!this.counter){Rt.fatal("it is not initialized yet");return}const h=this.context.issueTimeTicket(),b=wi.of(c,h);if(!b.isNumericType())throw new TypeError(`Unsupported type of value: ${typeof b.getValue()}`);return this.counter.increase(b),this.context.push(qi.create(this.counter.getCreatedAt(),b,h)),this}toJSForTest(){if(!this.context||!this.counter)throw new Error("it is not initialized yet");return this.counter.toJSForTest()}}function IS(v,c,h){const{type:b}=v,E=h.issueTimeTicket();if(b===Zc){gh(v);const{value:D}=v,U=Rs.create(Za.of(E,0),b,D);c.append(U)}else{const{children:D=[]}=v;let{attributes:U}=v,Y;if(typeof U=="object"&&!Yx(U)){U=Ei(U),Y=new Ya;for(const[me,Pe]of Object.entries(U))Y.set(me,Pe,E)}const fe=Rs.create(Za.of(E,0),b,void 0,Y);c.append(fe);for(const me of D)IS(me,fe,h)}}function Ok(v,c){const{type:h}=c,b=v.issueTimeTicket();let E;if(c.type===Zc){const{value:D}=c;E=Rs.create(Za.of(b,0),h,D)}else if(c){const{children:D=[]}=c;let{attributes:U}=c,Y;if(typeof U=="object"&&!Yx(U)){U=Ei(U),Y=new Ya;for(const[fe,me]of Object.entries(U))Y.set(fe,me,b)}E=Rs.create(Za.of(v.issueTimeTicket(),0),h,void 0,Y);for(const fe of D)IS(fe,E,v)}return E}function gh(v){if(!v.value.length)throw new Error("text node cannot have empty value");return!0}function Vp(v){if(!v.length)return!0;if(v[0].type===Zc)for(const h of v){const{type:b}=h;if(b!==Zc)throw new Error("element node and text node cannot be passed together");gh(h)}else for(const h of v){const{type:b}=h;if(b===Zc)throw new Error("element node and text node cannot be passed together")}return!0}class ng{constructor(c){s(this,"initialRoot"),s(this,"context"),s(this,"tree"),this.initialRoot=c}initialize(c,h){this.context=c,this.tree=h}getID(){return this.tree.getID()}buildRoot(c){if(!this.initialRoot)return Rs.create(Za.of(c.issueTimeTicket(),0),Yc);const h=Rs.create(Za.of(c.issueTimeTicket(),0),this.initialRoot.type);for(const b of this.initialRoot.children)IS(b,h,c);return h}getSize(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.getSize()}getNodeSize(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.getNodeSize()}getIndexTree(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.getIndexTree()}styleByPath(c,h){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(!c.length)throw new Error("path should not be empty");const[b,E]=this.tree.pathToPosRange(c),D=this.context.issueTimeTicket(),U=h?Ei(h):void 0,[Y]=this.tree.style([b,E],U,D);this.context.push(ql.create(this.tree.getCreatedAt(),b,E,Y,U?new Map(Object.entries(U)):new Map,D))}style(c,h,b){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(c>h)throw new Error("from should be less than or equal to to");const E=this.tree.findPos(c),D=this.tree.findPos(h),U=this.context.issueTimeTicket(),Y=b?Ei(b):void 0,[fe,me]=this.tree.style([E,D],Y,U);for(const Pe of me)this.context.registerGCPair(Pe);this.context.push(ql.create(this.tree.getCreatedAt(),E,D,fe,Y?new Map(Object.entries(Y)):new Map,U))}removeStyle(c,h,b){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(c>h)throw new Error("from should be less than or equal to to");const E=this.tree.findPos(c),D=this.tree.findPos(h),U=this.context.issueTimeTicket(),[Y,fe]=this.tree.removeStyle([E,D],b,U);for(const me of fe)this.context.registerGCPair(me);this.context.push(ql.createTreeRemoveStyleOperation(this.tree.getCreatedAt(),E,D,Y,b,U))}editInternal(c,h,b,E=0){var D;if(b.length!==0&&b[0]&&(Vp(b),b[0].type!==Zc))for(const Pe of b){const{children:vt=[]}=Pe;Vp(vt)}const U=this.context.getLastTimeTicket();let Y=new Array;if(((D=b[0])==null?void 0:D.type)===Zc){let Pe="";for(const vt of b){const{value:ft}=vt;Pe+=ft}Y.push(Rs.create(Za.of(this.context.issueTimeTicket(),0),Zc,Pe))}else Y=b.map(Pe=>Pe&&Ok(this.context,Pe)).filter(Pe=>Pe);const[,fe,me]=this.tree.edit([c,h],Y.length?Y.map(Pe=>Pe==null?void 0:Pe.deepcopy()):void 0,E,U,()=>this.context.issueTimeTicket());for(const Pe of fe)this.context.registerGCPair(Pe);return this.context.push(Hm.create(this.tree.getCreatedAt(),c,h,Y.length?Y:void 0,E,me,U)),!0}editByPath(c,h,b,E=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(c.length!==h.length)throw new Error("path length should be equal");if(!c.length||!h.length)throw new Error("path should not be empty");const D=this.tree.pathToPos(c),U=this.tree.pathToPos(h);return this.editInternal(D,U,b?[b]:[],E)}editBulkByPath(c,h,b,E=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(c.length!==h.length)throw new Error("path length should be equal");if(!c.length||!h.length)throw new Error("path should not be empty");const D=this.tree.pathToPos(c),U=this.tree.pathToPos(h);return this.editInternal(D,U,b,E)}edit(c,h,b,E=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(c>h)throw new Error("from should be less than or equal to to");const D=this.tree.findPos(c),U=this.tree.findPos(h);return this.editInternal(D,U,b?[b]:[],E)}editBulk(c,h,b,E=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(c>h)throw new Error("from should be less than or equal to to");const D=this.tree.findPos(c),U=this.tree.findPos(h);return this.editInternal(D,U,b,E)}toXML(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.toXML()}toJSON(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.toJSON()}toJSForTest(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.toJSForTest()}toJSInfoForTest(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.toJSInfoForTest()}getRootTreeNode(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.getRootTreeNode()}indexToPath(c){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.indexToPath(c)}pathToIndex(c){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.pathToIndex(c)}pathRangeToPosRange(c){if(!this.context||!this.tree){Rt.fatal("it is not initialized yet");return}const h=[this.tree.pathToIndex(c[0]),this.tree.pathToIndex(c[1])],b=this.tree.indexRangeToPosRange(h);return[b[0].toStruct(),b[1].toStruct()]}indexRangeToPosRange(c){if(!this.context||!this.tree){Rt.fatal("it is not initialized yet");return}return this.tree.indexRangeToPosStructRange(c)}posRangeToIndexRange(c){if(!this.context||!this.tree){Rt.fatal("it is not initialized yet");return}const h=[Wl.fromStruct(c[0]),Wl.fromStruct(c[1])];return this.tree.posRangeToIndexRange(h)}posRangeToPathRange(c){if(!this.context||!this.tree){Rt.fatal("it is not initialized yet");return}const h=[Wl.fromStruct(c[0]),Wl.fromStruct(c[1])];return this.tree.posRangeToPathRange(h)}}function NS(v,c){return Ns(v,c)}function td(v,c){if(c){if(c instanceof wi)return c;if(c instanceof Cs)return Ns(v,c);if(c instanceof _a)return R6(v,c);if(c instanceof ol)return new Qp(v,c);if(c instanceof ro){const h=new Wp(Vu.IntegerCnt,0);return h.initialize(v,c),h}else if(c instanceof Io){const h=new ng;return h.initialize(v,c),h}}else return;throw new TypeError(`Unsupported type of element: ${typeof c}`)}function Gu(v,c){const h=td(v,c);return h instanceof wi?h.getValue():h}function rg(v,c,h){let b;if(wi.isSupport(c))b=wi.of(c,h);else if(Array.isArray(c))b=_a.create(h,ai.buildArrayElements(v,c));else if(typeof c=="object")c instanceof Qp?(b=ol.create(Up.create(),h),c.initialize(v,b)):c instanceof Wp?(b=ro.create(c.getValueType(),c.getValue(),h),c.initialize(v,b)):c instanceof ng?(b=Io.create(c.buildRoot(v),h),c.initialize(v,b)):b=Cs.create(h,io.buildObjectMembers(v,c));else throw new TypeError(`Unsupported type of value: ${typeof c}`);return b}const ig=50;class DS{constructor(){s(this,"undoStack",[]),s(this,"redoStack",[])}hasUndo(){return this.undoStack.length>0}hasRedo(){return this.redoStack.length>0}pushUndo(c){this.undoStack.length>=ig&&this.undoStack.shift(),this.undoStack.push(c)}popUndo(){return this.undoStack.pop()}pushRedo(c){this.redoStack.length>=ig&&this.redoStack.shift(),this.redoStack.push(c)}popRedo(){return this.redoStack.pop()}clearRedo(){this.redoStack=[]}getUndoStackForTest(){return this.undoStack}getRedoStackForTest(){return this.redoStack}}const ag="yorkie-devtools-panel",Sk="yorkie-devtools-sdk";let bh="disconnected";const sg=new Map,og=new Map;typeof window<"u"&&(window.transactionEventsByDocKey=og);function qp(v,c){(c!=null&&c.force||bh!=="disconnected")&&window.postMessage({source:Sk,...v},"*")}function N6(v){if(!v.isEnableDevtools()||typeof window>"u"||sg.has(v.getKey()))return;og.set(v.getKey(),[]);const c=v.subscribe("all",h=>{h.some(b=>b.type!==Di.StatusChanged&&b.type!==Di.Snapshot&&b.type!==Di.LocalChange&&b.type!==Di.RemoteChange&&b.type!==Di.Initialized&&b.type!==Di.Watched&&b.type!==Di.Unwatched&&b.type!==Di.PresenceChanged)||(og.get(v.getKey()).push(h),bh==="synced"&&qp({msg:"doc::sync::partial",docKey:v.getKey(),event:h}))});sg.set(v.getKey(),[c]),qp({msg:"refresh-devtools"},{force:!0}),window.addEventListener("message",h=>{var b;if(((b=h.data)==null?void 0:b.source)!==ag)return;switch(h.data.msg){case"devtools::connect":if(bh!=="disconnected")break;bh="connected",qp({msg:"doc::available",docKey:v.getKey()}),Rt.info(`[YD] Devtools connected. Doc: ${v.getKey()}`);break;case"devtools::disconnect":bh="disconnected",Rt.info(`[YD] Devtools disconnected. Doc: ${v.getKey()}`);break;case"devtools::subscribe":bh="synced",qp({msg:"doc::sync::full",docKey:v.getKey(),events:og.get(v.getKey())}),Rt.info(`[YD] Devtools subscribed. Doc: ${v.getKey()}`);break}})}var Yu=(v=>(v.Detached="detached",v.Attached="attached",v.Removed="removed",v))(Yu||{}),Di=(v=>(v.StatusChanged="status-changed",v.ConnectionChanged="connection-changed",v.SyncStatusChanged="sync-status-changed",v.Snapshot="snapshot",v.LocalChange="local-change",v.RemoteChange="remote-change",v.Initialized="initialized",v.Watched="watched",v.Unwatched="unwatched",v.PresenceChanged="presence-changed",v))(Di||{}),lg=(v=>(v.Connected="connected",v.Disconnected="disconnected",v))(lg||{}),ug=(v=>(v.Synced="synced",v.SyncFailed="sync-failed",v))(ug||{});class PS{constructor(c,h){s(this,"key"),s(this,"status"),s(this,"opts"),s(this,"changeID"),s(this,"checkpoint"),s(this,"localChanges"),s(this,"root"),s(this,"clone"),s(this,"eventStream"),s(this,"eventStreamObserver"),s(this,"onlineClients"),s(this,"presences"),s(this,"history"),s(this,"internalHistory"),s(this,"isUpdating"),this.opts=h||{},this.key=c,this.status="detached",this.root=Hp.create(),this.changeID=fS,this.checkpoint=ek,this.localChanges=[],this.eventStream=C6(b=>{this.eventStreamObserver=b}),this.onlineClients=new Set,this.presences=new Map,this.isUpdating=!1,this.internalHistory=new DS,this.history={canUndo:this.canUndo.bind(this),canRedo:this.canRedo.bind(this),undo:this.undo.bind(this),redo:this.redo.bind(this)},N6(this)}update(c,h){if(this.getStatus()==="removed")throw new kr(mr.ErrDocumentRemoved,`${this.key} is removed`);this.ensureClone();const b=this.changeID.getActorID(),E=mh.create(this.changeID.next(),this.clone.root,this.clone.presences.get(b)||{},h);try{const D=NS(E,this.clone.root.getObject());this.presences.has(b)||this.clone.presences.set(b,{}),this.isUpdating=!0,c(D,new lS(E,this.clone.presences.get(b)))}catch(D){throw this.clone=void 0,Rt.error(D),D}finally{this.isUpdating=!1}if(E.hasChange()){Rt.isEnabled(Aa.Trivial)&&Rt.trivial(`trying to update a local change: ${this.toJSON()}`);const D=E.getChange(),{opInfos:U,reverseOps:Y}=D.execute(this.root,this.presences,te.Local),fe=E.getReversePresence();fe&&Y.push({type:"presence",value:fe}),this.localChanges.push(D),Y.length>0&&this.internalHistory.pushUndo(Y),U.length>0&&this.internalHistory.clearRedo(),this.changeID=D.getID();const me=[];U.length>0&&me.push({type:"local-change",source:te.Local,value:{message:D.getMessage()||"",operations:U,actor:b,clientSeq:D.getID().getClientSeq(),serverSeq:D.getID().getServerSeq()},rawChange:this.isEnableDevtools()?D.toStruct():void 0}),D.hasPresenceChange()&&me.push({type:"presence-changed",source:te.Local,value:{clientID:b,presence:this.getPresence(b)}}),this.publish(me),Rt.isEnabled(Aa.Trivial)&&Rt.trivial(`after update a local change: ${this.toJSON()}`)}}subscribe(c,h,b,E){if(typeof c=="string"){if(typeof h!="function")throw new Error("Second argument must be a callback function");if(c==="presence"){const Y=h;return this.eventStream.subscribe(fe=>{for(const me of fe)me.type!=="initialized"&&me.type!=="watched"&&me.type!=="unwatched"&&me.type!=="presence-changed"||Y(me)},b,E)}if(c==="my-presence"){const Y=h;return this.eventStream.subscribe(fe=>{for(const me of fe)me.type!=="initialized"&&me.type!=="presence-changed"||me.type==="presence-changed"&&me.value.clientID!==this.changeID.getActorID()||Y(me)},b,E)}if(c==="others"){const Y=h;return this.eventStream.subscribe(fe=>{for(const me of fe)me.type!=="watched"&&me.type!=="unwatched"&&me.type!=="presence-changed"||me.value.clientID!==this.changeID.getActorID()&&Y(me)},b,E)}if(c==="connection"){const Y=h;return this.eventStream.subscribe(fe=>{for(const me of fe)me.type==="connection-changed"&&Y(me)},b,E)}if(c==="status"){const Y=h;return this.eventStream.subscribe(fe=>{for(const me of fe)me.type==="status-changed"&&Y(me)},b,E)}if(c==="sync"){const Y=h;return this.eventStream.subscribe(fe=>{for(const me of fe)me.type==="sync-status-changed"&&Y(me)},b,E)}if(c==="all"){const Y=h;return this.eventStream.subscribe(Y,b,E)}const D=c,U=h;return this.eventStream.subscribe(Y=>{for(const fe of Y){if(fe.type!=="local-change"&&fe.type!=="remote-change")continue;const me=[];for(const Pe of fe.value.operations)this.isSameElementOrChildOf(Pe.path,D)&&me.push(Pe);me.length&&U({...fe,value:{...fe.value,operations:me}})}},b,E)}if(typeof c=="function"){const D=c,U=h,Y=b;return this.eventStream.subscribe(fe=>{for(const me of fe)me.type!=="snapshot"&&me.type!=="local-change"&&me.type!=="remote-change"||D(me)},U,Y)}throw new Error(`"${c}" is not a valid`)}publish(c){this.eventStreamObserver&&this.eventStreamObserver.next(c)}isSameElementOrChildOf(c,h){if(h===c)return!0;const b=c.split(".");return h.split(".").every((D,U)=>D===b[U])}applyChangePack(c){for(c.hasSnapshot()?this.applySnapshot(c.getCheckpoint().getServerSeq(),c.getSnapshot()):c.hasChanges()&&this.applyChanges(c.getChanges(),te.Remote);this.localChanges.length&&!(this.localChanges[0].getID().getClientSeq()>c.getCheckpoint().getClientSeq());)this.localChanges.shift();c.hasSnapshot()&&this.applyChanges(this.localChanges,te.Remote),this.checkpoint=this.checkpoint.forward(c.getCheckpoint()),this.garbageCollect(c.getMinSyncedTicket()),c.getIsRemoved()&&this.applyStatus("removed"),Rt.isEnabled(Aa.Trivial)&&Rt.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:Ql(this.presences)})}createChangePack(){const c=Array.from(this.localChanges),h=this.checkpoint.increaseClientSeq(c.length);return Is.create(this.key,h,!1,c)}setActor(c){for(const h of this.localChanges)h.setActor(c);this.changeID=this.changeID.setActor(c)}isEnableDevtools(){return!!this.opts.enableDevtools}getKey(){return this.key}getStatus(){return this.status}getCloneRoot(){if(this.clone)return this.clone.root.getObject()}getRoot(){this.ensureClone();const c=mh.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});return NS(c,this.clone.root.getObject())}garbageCollect(c){return this.opts.disableGC?0:(this.clone&&this.clone.root.garbageCollect(c),this.root.garbageCollect(c))}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(c,h){const{root:b,presences:E}=ma.bytesToSnapshot(h);this.root=new Hp(b),this.presences=E,this.changeID=this.changeID.syncLamport(c),this.clone=void 0,this.publish([{type:"snapshot",source:te.Remote,value:{snapshot:this.isEnableDevtools()?ma.bytesToHex(h):void 0,serverSeq:c.toString()}}])}applyChanges(c,h){Rt.isEnabled(Aa.Debug)&&Rt.debug(`trying to apply ${c.length} remote changes.elements:${this.root.getElementMapSize()}, removeds:${this.root.getGarbageElementSetSize()}`),Rt.isEnabled(Aa.Trivial)&&Rt.trivial(c.map(b=>`${b.getID().toTestString()} ${b.toTestString()}`).join(` +`));for(const b of c)this.applyChange(b,h);Rt.isEnabled(Aa.Debug)&&Rt.debug(`after appling ${c.length} remote changes.elements:${this.root.getElementMapSize()}, removeds:${this.root.getGarbageElementSetSize()}`)}applyChange(c,h){this.ensureClone(),c.execute(this.clone.root,this.clone.presences,h);const b=[],E=c.getID().getActorID();if(c.hasPresenceChange()&&this.onlineClients.has(E)){const U=c.getPresenceChange();switch(U.type){case Qd.Put:b.push(this.presences.has(E)?{type:"presence-changed",source:h,value:{clientID:E,presence:U.presence}}:{type:"watched",source:te.Remote,value:{clientID:E,presence:U.presence}});break;case Qd.Clear:b.push({type:"unwatched",source:te.Remote,value:{clientID:E,presence:this.getPresence(E)}}),this.removeOnlineClient(E);break}}const{opInfos:D}=c.execute(this.root,this.presences,h);if(this.changeID=this.changeID.syncLamport(c.getID().getLamport()),D.length>0){const U=this.isEnableDevtools()?c.toStruct():void 0;b.push(h===te.Remote?{type:"remote-change",source:h,value:{actor:E,clientSeq:c.getID().getClientSeq(),serverSeq:c.getID().getServerSeq(),message:c.getMessage()||"",operations:D},rawChange:U}:{type:"local-change",source:h,value:{actor:E,clientSeq:c.getID().getClientSeq(),serverSeq:c.getID().getServerSeq(),message:c.getMessage()||"",operations:D},rawChange:U})}b.length>0&&this.publish(b)}applyWatchStream(c){if(c.body.case==="initialization"){const h=c.body.value.clientIds,b=new Set;for(const E of h)E!==this.changeID.getActorID()&&b.add(E);this.setOnlineClients(b),this.publish([{type:"initialized",source:te.Local,value:this.getPresences()}]);return}if(c.body.case==="event"){const{type:h,publisher:b}=c.body.value,E=[];if(h===ri.DOCUMENT_WATCHED)this.addOnlineClient(b),this.hasPresence(b)&&E.push({type:"watched",source:te.Remote,value:{clientID:b,presence:this.getPresence(b)}});else if(h===ri.DOCUMENT_UNWATCHED){const D=this.getPresence(b);this.removeOnlineClient(b),D&&E.push({type:"unwatched",source:te.Remote,value:{clientID:b,presence:D}})}E.length>0&&this.publish(E)}}applyStatus(c){this.status=c,c==="detached"&&this.setActor(Pm),this.publish([{source:c==="removed"?te.Remote:te.Local,type:"status-changed",value:c==="attached"?{status:c,actorID:this.changeID.getActorID()}:{status:c}}])}applyDocEvent(c){if(c.type==="status-changed"){this.applyStatus(c.value.status),c.value.status==="attached"&&this.setActor(c.value.actorID);return}if(c.type==="snapshot"){const{snapshot:h,serverSeq:b}=c.value;if(!h)return;this.applySnapshot(kn.fromString(b),ma.hexToBytes(h));return}if(c.type==="local-change"||c.type==="remote-change"){if(!c.rawChange)return;const h=No.fromStruct(c.rawChange);this.applyChange(h,c.source)}if(c.type==="initialized"){const h=new Set;for(const{clientID:b,presence:E}of c.value)h.add(b),this.presences.set(b,E);this.setOnlineClients(h);return}if(c.type==="watched"){const{clientID:h,presence:b}=c.value;this.addOnlineClient(h),this.presences.set(h,b);return}if(c.type==="unwatched"){const{clientID:h}=c.value;this.removeOnlineClient(h),this.presences.delete(h)}if(c.type==="presence-changed"){const{clientID:h,presence:b}=c.value;this.presences.set(h,b)}}applyTransactionEvent(c){for(const h of c)this.applyDocEvent(h)}getValueByPath(c){if(!c.startsWith("$"))throw new kr(mr.ErrInvalidArgument,'path must start with "$"');const h=c.split(".");h.shift();let b=this.getRoot();for(const E of h)if(b=b[E],b===void 0)return;return b}setOnlineClients(c){this.onlineClients=c}resetOnlineClients(){this.onlineClients=new Set}addOnlineClient(c){this.onlineClients.add(c)}removeOnlineClient(c){this.onlineClients.delete(c)}hasPresence(c){return this.presences.has(c)}getMyPresence(){if(this.status!=="attached")return{};const c=this.presences.get(this.changeID.getActorID());return c?Ql(c):{}}getPresence(c){if(c===this.changeID.getActorID())return this.getMyPresence();if(!this.onlineClients.has(c))return;const h=this.presences.get(c);return h?Ql(h):void 0}getPresenceForTest(c){const h=this.presences.get(c);return h?Ql(h):void 0}getPresences(){const c=[];c.push({clientID:this.changeID.getActorID(),presence:Ql(this.getMyPresence())});for(const h of this.onlineClients)this.presences.has(h)&&c.push({clientID:h,presence:Ql(this.presences.get(h))});return c}getSelfForTest(){return{clientID:this.getChangeID().getActorID(),presence:this.getMyPresence()}}getOthersForTest(){const c=this.getChangeID().getActorID();return this.getPresences().filter(h=>h.clientID!==c).sort((h,b)=>h.clientID>b.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 c=this.internalHistory.popUndo();if(c===void 0)throw new Error("There is no operation to be undone");this.ensureClone();const h=mh.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});for(const me of c){if(!(me instanceof fs)){new lS(h,Ql(this.clone.presences.get(this.changeID.getActorID()))).set(me.value,{addToHistory:!0});continue}const Pe=h.issueTimeTicket();me.setExecutedAt(Pe),h.push(me)}const b=h.getChange();b.execute(this.clone.root,this.clone.presences,te.UndoRedo);const{opInfos:E,reverseOps:D}=b.execute(this.root,this.presences,te.UndoRedo),U=h.getReversePresence();if(U&&D.push({type:"presence",value:U}),D.length>0&&this.internalHistory.pushRedo(D),!b.hasPresenceChange()&&E.length===0)return;this.localChanges.push(b),this.changeID=b.getID();const Y=this.changeID.getActorID(),fe=[];E.length>0&&fe.push({type:"local-change",source:te.UndoRedo,value:{message:b.getMessage()||"",operations:E,actor:Y,clientSeq:b.getID().getClientSeq(),serverSeq:b.getID().getServerSeq()},rawChange:this.isEnableDevtools()?b.toStruct():void 0}),b.hasPresenceChange()&&fe.push({type:"presence-changed",source:te.UndoRedo,value:{clientID:Y,presence:this.getPresence(Y)}}),this.publish(fe)}redo(){if(this.isUpdating)throw new Error("Redo is not allowed during an update");const c=this.internalHistory.popRedo();if(c===void 0)throw new Error("There is no operation to be redone");this.ensureClone();const h=mh.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});for(const me of c){if(!(me instanceof fs)){new lS(h,Ql(this.clone.presences.get(this.changeID.getActorID()))).set(me.value,{addToHistory:!0});continue}const Pe=h.issueTimeTicket();me.setExecutedAt(Pe),h.push(me)}const b=h.getChange();b.execute(this.clone.root,this.clone.presences,te.UndoRedo);const{opInfos:E,reverseOps:D}=b.execute(this.root,this.presences,te.UndoRedo),U=h.getReversePresence();if(U&&D.push({type:"presence",value:U}),D.length>0&&this.internalHistory.pushUndo(D),!b.hasPresenceChange()&&E.length===0)return;this.localChanges.push(b),this.changeID=b.getID();const Y=this.changeID.getActorID(),fe=[];E.length>0&&fe.push({type:"local-change",source:te.UndoRedo,value:{message:b.getMessage()||"",operations:E,actor:Y,clientSeq:b.getID().getClientSeq(),serverSeq:b.getID().getServerSeq()},rawChange:this.isEnableDevtools()?b.toStruct():void 0}),b.hasPresenceChange()&&fe.push({type:"presence-changed",source:te.UndoRedo,value:{clientID:Y,presence:this.getPresence(Y)}}),this.publish(fe)}getUndoStackForTest(){return this.internalHistory.getUndoStackForTest()}getRedoStackForTest(){return this.internalHistory.getRedoStackForTest()}}function Ek(v,c){return h=>async b=>(v&&b.header.set("x-api-key",v),c&&b.header.set("authorization",c),await h(b))}const _k={name:"yorkie-js-sdk",version:"0.4.27",description:"Yorkie JS SDK",main:"./dist/yorkie-js-sdk.js",typings:"./dist/yorkie-js-sdk.d.ts",files:["dist"],scripts:{build:"tsc && vite build","build:proto":"npx buf generate","build:docs":"typedoc","build:examples":"npm run build --workspace examples","build:ghpages":"mkdir -p ghpages/examples && cp -r docs ghpages/api-reference && find examples -name 'dist' -type d -exec sh -c 'cp -r {} ghpages/examples/$(basename $(dirname {}))' \\;",dev:"vite build -c vite.preview.ts && vite preview",test:"vitest run","test:watch":"vitest","test:bench":"vitest bench","test:ci":"vitest run --coverage","test:yorkie.dev":"TEST_RPC_ADDR=https://api.yorkie.dev vitest run --coverage",lint:"eslint . --fix --max-warnings=0 --ext .ts",prepare:"npm run build"},engines:{node:">=18.0.0",npm:">=7.1.0"},repository:{type:"git",url:"git+https://github.com/yorkie-team/yorkie-js-sdk.git"},author:{name:"hackerwins",email:"susukang98@gmail.com"},license:"Apache-2.0",bugs:{url:"https://github.com/yorkie-team/yorkie-js-sdk/issues"},homepage:"https://github.com/yorkie-team/yorkie-js-sdk#readme",devDependencies:{"@buf/googleapis_googleapis.connectrpc_es":"^1.4.0-20240524201209-f0e53af8f2fc.3","@bufbuild/buf":"^1.28.1","@bufbuild/protoc-gen-es":"^1.6.0","@connectrpc/protoc-gen-connect-es":"^1.4.0","@types/google-protobuf":"^3.15.5","@types/long":"^4.0.1","@typescript-eslint/eslint-plugin":"^5.30.6","@typescript-eslint/parser":"^5.30.6","@vitest/coverage-istanbul":"^0.34.5","@vitest/coverage-v8":"^0.34.5",eslint:"^8.19.0","eslint-plugin-jsdoc":"^39.3.3","eslint-plugin-prettier":"^4.2.1","eslint-plugin-tsdoc":"^0.2.16",husky:"^8.0.3",prettier:"^2.7.1","ts-node":"^10.9.1",typedoc:"^0.25.13",typescript:"^4.7.4","typescript-transform-paths":"^3.3.1",vite:"^4.4.9","vite-plugin-commonjs":"^0.10.1","vite-plugin-dts":"^3.9.1","vite-tsconfig-paths":"^4.2.1",vitest:"^0.34.5"},dependencies:{"@bufbuild/protobuf":"^1.6.0","@connectrpc/connect":"^1.4.0","@connectrpc/connect-web":"^1.4.0",long:"^5.2.0"},husky:{hooks:{"pre-commit":"npm run lint"}},workspaces:["examples/*"]};function Ck(){return v=>async c=>(c.header.set("x-yorkie-user-agent",_k.name+"/"+_k.version),await v(c))}var dg=(v=>(v.Manual="manual",v.Realtime="realtime",v.RealtimePushOnly="realtime-pushonly",v.RealtimeSyncOff="realtime-syncoff",v))(dg||{}),$S=(v=>(v.Deactivated="deactivated",v.Activated="activated",v))($S||{}),Rk=(v=>(v.SyncLoop="SyncLoop",v.WatchLoop="WatchLoop",v))(Rk||{});const Ob={syncLoopDuration:50,retrySyncLoopDelay:1e3,reconnectStreamDelay:1e3};class FS{constructor(c,h){s(this,"id"),s(this,"key"),s(this,"status"),s(this,"attachmentMap"),s(this,"apiKey"),s(this,"conditions"),s(this,"syncLoopDuration"),s(this,"reconnectStreamDelay"),s(this,"retrySyncLoopDelay"),s(this,"rpcClient"),s(this,"taskQueue"),s(this,"processing",!1),h=h||Ob,this.key=h.key?h.key:yk(),this.status="deactivated",this.attachmentMap=new Map,this.apiKey=h.apiKey||"",this.conditions={SyncLoop:!1,WatchLoop:!1},this.syncLoopDuration=h.syncLoopDuration||Ob.syncLoopDuration,this.reconnectStreamDelay=h.reconnectStreamDelay||Ob.reconnectStreamDelay,this.retrySyncLoopDelay=h.retrySyncLoopDelay||Ob.retrySyncLoopDelay,this.rpcClient=BI(aS,tb({baseUrl:c,interceptors:[Ek(h.apiKey,h.token),Ck()]})),this.taskQueue=[]}activate(){return this.isActive()?Promise.resolve():this.enqueueTask(async()=>this.rpcClient.activateClient({clientKey:this.key},{headers:{"x-shard-key":this.apiKey}}).then(c=>{this.id=c.clientId,this.status="activated",this.runSyncLoop(),Rt.info(`[AC] c:"${this.getKey()}" activated, id:"${this.id}"`)}).catch(c=>{throw Rt.error(`[AC] c:"${this.getKey()}" err :`,c),this.handleConnectError(c),c}))}deactivate(){return this.status==="deactivated"?Promise.resolve():this.enqueueTask(async()=>this.rpcClient.deactivateClient({clientId:this.id},{headers:{"x-shard-key":this.apiKey}}).then(()=>{this.deactivateInternal(),Rt.info(`[DC] c"${this.getKey()}" deactivated`)}).catch(c=>{throw Rt.error(`[DC] c:"${this.getKey()}" err :`,c),this.handleConnectError(c),c}))}attach(c,h={}){if(!this.isActive())throw new kr(mr.ErrClientNotActivated,`${this.key} is not active`);if(c.getStatus()!==Yu.Detached)throw new kr(mr.ErrDocumentNotDetached,`${c.getKey()} is not detached`);c.setActor(this.id),c.update((E,D)=>D.set(h.initialPresence||{}));const b=h.syncMode??"realtime";return this.enqueueTask(async()=>this.rpcClient.attachDocument({clientId:this.id,changePack:ma.toChangePack(c.createChangePack())},{headers:{"x-shard-key":`${this.apiKey}/${c.getKey()}`}}).then(async E=>{const D=ma.fromChangePack(E.changePack);return c.applyChangePack(D),c.getStatus()===Yu.Removed||(c.applyStatus(Yu.Attached),this.attachmentMap.set(c.getKey(),new _6(this.reconnectStreamDelay,c,E.documentId,b)),b!=="manual"&&await this.runWatchLoop(c.getKey()),Rt.info(`[AD] c:"${this.getKey()}" attaches d:"${c.getKey()}"`)),c}).catch(E=>{throw Rt.error(`[AD] c:"${this.getKey()}" err :`,E),this.handleConnectError(E),E}))}detach(c,h={}){if(!this.isActive())throw new kr(mr.ErrClientNotActivated,`${this.key} is not active`);const b=this.attachmentMap.get(c.getKey());if(!b)throw new kr(mr.ErrDocumentNotAttached,`${c.getKey()} is not attached`);return c.update((E,D)=>D.clear()),this.enqueueTask(async()=>this.rpcClient.detachDocument({clientId:this.id,documentId:b.docID,changePack:ma.toChangePack(c.createChangePack()),removeIfNotAttached:h.removeIfNotAttached??!1},{headers:{"x-shard-key":`${this.apiKey}/${c.getKey()}`}}).then(E=>{const D=ma.fromChangePack(E.changePack);return c.applyChangePack(D),c.getStatus()!==Yu.Removed&&c.applyStatus(Yu.Detached),this.detachInternal(c.getKey()),Rt.info(`[DD] c:"${this.getKey()}" detaches d:"${c.getKey()}"`),c}).catch(E=>{throw Rt.error(`[DD] c:"${this.getKey()}" err :`,E),this.handleConnectError(E),E}))}async changeSyncMode(c,h){if(!this.isActive())throw new kr(mr.ErrClientNotActivated,`${this.key} is not active`);const b=this.attachmentMap.get(c.getKey());if(!b)throw new kr(mr.ErrDocumentNotAttached,`${c.getKey()} is not attached`);const E=b.syncMode;return E===h?c:(b.changeSyncMode(h),h==="manual"?(b.cancelWatchStream(),c):(h==="realtime"&&(b.remoteChangeEventReceived=!0),E==="manual"&&await this.runWatchLoop(c.getKey()),c))}sync(c){if(!this.isActive())throw new kr(mr.ErrClientNotActivated,`${this.key} is not active`);if(c){const h=this.attachmentMap.get(c.getKey());if(!h)throw new kr(mr.ErrDocumentNotAttached,`${c.getKey()} is not attached`);return this.enqueueTask(async()=>this.syncInternal(h,"realtime").catch(b=>{throw Rt.error(`[SY] c:"${this.getKey()}" err :`,b),this.handleConnectError(b),b}))}return this.enqueueTask(async()=>{const h=[];for(const[,b]of this.attachmentMap)h.push(this.syncInternal(b,b.syncMode));return Promise.all(h).catch(b=>{throw Rt.error(`[SY] c:"${this.getKey()}" err :`,b),this.handleConnectError(b),b})})}remove(c){if(!this.isActive())throw new kr(mr.ErrClientNotActivated,`${this.key} is not active`);const h=this.attachmentMap.get(c.getKey());if(!h)throw new kr(mr.ErrDocumentNotAttached,`${c.getKey()} is not attached`);c.setActor(this.id);const b=ma.toChangePack(c.createChangePack());return b.isRemoved=!0,this.enqueueTask(async()=>this.rpcClient.removeDocument({clientId:this.id,documentId:h.docID,changePack:b},{headers:{"x-shard-key":`${this.apiKey}/${c.getKey()}`}}).then(E=>{const D=ma.fromChangePack(E.changePack);c.applyChangePack(D),this.detachInternal(c.getKey()),Rt.info(`[RD] c:"${this.getKey()}" removes d:"${c.getKey()}"`)}).catch(E=>{throw Rt.error(`[RD] c:"${this.getKey()}" err :`,E),this.handleConnectError(E),E}))}getID(){return this.id}getKey(){return this.key}isActive(){return this.status==="activated"}getStatus(){return this.status}getCondition(c){return this.conditions[c]}runSyncLoop(){const c=()=>{if(!this.isActive()){Rt.debug(`[SL] c:"${this.getKey()}" exit sync loop`),this.conditions.SyncLoop=!1;return}const h=[];for(const[,b]of this.attachmentMap)b.needRealtimeSync()&&(b.remoteChangeEventReceived=!1,h.push(this.syncInternal(b,b.syncMode)));Promise.all(h).then(()=>setTimeout(c,this.syncLoopDuration)).catch(b=>{Rt.error(`[SL] c:"${this.getKey()}" sync failed:`,b),this.handleConnectError(b)?setTimeout(c,this.retrySyncLoopDelay):this.conditions.SyncLoop=!1})};Rt.debug(`[SL] c:"${this.getKey()}" run sync loop`),this.conditions.SyncLoop=!0,c()}async runWatchLoop(c){const h=this.attachmentMap.get(c);if(!h)throw new kr(mr.ErrDocumentNotAttached,`${c} is not attached`);return this.conditions.WatchLoop=!0,h.runWatchLoop(b=>{if(!this.isActive())return this.conditions.WatchLoop=!1,Promise.reject(new kr(mr.ErrClientNotActivated,`${this.key} is not active`));const E=new AbortController,D=this.rpcClient.watchDocument({clientId:this.id,documentId:h.docID},{headers:{"x-shard-key":`${this.apiKey}/${c}`},signal:E.signal});return h.doc.publish([{type:Di.ConnectionChanged,value:lg.Connected}]),Rt.info(`[WD] c:"${this.getKey()}" watches d:"${c}"`),new Promise((U,Y)=>{(async()=>{try{for await(const me of D)this.handleWatchDocumentsResponse(h,me),me.body.case==="initialization"&&U([D,E])}catch(me){h.doc.resetOnlineClients(),h.doc.publish([{type:Di.Initialized,source:te.Local,value:h.doc.getPresences()}]),h.doc.publish([{type:Di.ConnectionChanged,value:lg.Disconnected}]),Rt.debug(`[WD] c:"${this.getKey()}" unwatches`),this.handleConnectError(me)?b():this.conditions.WatchLoop=!1,Y(me)}})()})})}handleWatchDocumentsResponse(c,h){if(h.body.case==="event"&&h.body.value.type===ri.DOCUMENT_CHANGED){c.remoteChangeEventReceived=!0;return}c.doc.applyWatchStream(h)}deactivateInternal(){this.status="deactivated";for(const[c,h]of this.attachmentMap)this.detachInternal(c),h.doc.applyStatus(Yu.Detached)}detachInternal(c){const h=this.attachmentMap.get(c);h&&(h.cancelWatchStream(),this.attachmentMap.delete(c))}syncInternal(c,h){const{doc:b,docID:E}=c,D=b.createChangePack();return this.rpcClient.pushPullChanges({clientId:this.id,documentId:E,changePack:ma.toChangePack(D),pushOnly:h==="realtime-pushonly"},{headers:{"x-shard-key":`${this.apiKey}/${b.getKey()}`}}).then(U=>{const Y=ma.fromChangePack(U.changePack);if(Y.hasChanges()&&(c.syncMode==="realtime-pushonly"||c.syncMode==="realtime-syncoff"))return b;b.applyChangePack(Y),c.doc.publish([{type:Di.SyncStatusChanged,value:ug.Synced}]),b.getStatus()===Yu.Removed&&this.detachInternal(b.getKey());const fe=b.getKey(),me=Y.getChangeSize();return Rt.info(`[PP] c:"${this.getKey()}" sync d:"${fe}", push:${D.getChangeSize()} pull:${me} cp:${Y.getCheckpoint().toTestString()}`),b}).catch(U=>{throw b.publish([{type:Di.SyncStatusChanged,value:ug.SyncFailed}]),Rt.error(`[PP] c:"${this.getKey()}" err :`,U),U})}handleConnectError(c){return c instanceof u?c.code===o.Canceled||c.code===o.Unknown||c.code===o.ResourceExhausted||c.code===o.Unavailable?!0:((yS(c)===mr.ErrClientNotActivated||yS(c)===mr.ErrClientNotFound)&&this.deactivateInternal(),!1):!1}enqueueTask(c){return new Promise((h,b)=>{this.taskQueue.push(()=>c().then(h).catch(b)),this.processing||this.processNext()})}async processNext(){if(this.taskQueue.length===0){this.processing=!1;return}try{this.processing=!0,await this.taskQueue.shift()()}catch{Rt.error(`[TQ] c:"${this.getKey()}" process failed, id:"${this.id}"`)}this.processNext()}}const nd=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Ps={Client:FS,Document:PS,Primitive:wi,Text:Qp,Counter:Wp,Tree:ng,LogLevel:Aa,setLogLevel:cS,IntType:Vu.IntegerCnt,LongType:Vu.LongCnt};typeof globalThis<"u"&&(globalThis.yorkie={Client:FS,Document:PS,Primitive:wi,Text:Qp,Counter:Wp,Tree:ng,LogLevel:Aa,setLogLevel:cS,IntType:Vu.IntegerCnt,LongType:Vu.LongCnt}),r.Change=No,r.Client=FS,r.ClientCondition=Rk,r.ClientStatus=$S,r.Counter=Wp,r.Devtools=nd,r.DocEventType=Di,r.Document=PS,r.DocumentStatus=Yu,r.DocumentSyncStatus=ug,r.EventSourceDevPanel=ag,r.EventSourceSDK=Sk,r.LogLevel=Aa,r.OpSource=te,r.Primitive=wi,r.StreamConnectionStatus=lg,r.SyncMode=dg,r.Text=Qp,r.TimeTicket=Ga,r.Tree=ng,r.converter=ma,r.default=Ps,r.setLogLevel=cS,Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})})($L,$L.exports);var vC=$L.exports;class uet{constructor(t,n){Ls(this,"doc");Ls(this,"client");this.doc=t,this.client=n}}const GB=fn.define({combine(e){return e[e.length-1]}});Pd.define();class cet{constructor(t){Ls(this,"view");Ls(this,"conf");Ls(this,"_doc");this.view=t,this.conf=t.state.facet(GB),this._doc=this.conf.doc,this._doc.subscribe(n=>{if(n.type!=="snapshot")return;const r=this._doc.getRoot().content;t.dispatch({changes:{from:0,to:t.state.doc.length,insert:r.toString()},annotations:[os.remote.of(!0)]})}),this._doc.update(n=>{n.content||(n.content=new vC.Text)}),this._doc.subscribe("$.content",n=>{if(n.type!=="remote-change")return;const{operations:r}=n.value;r.forEach(i=>{if(i.type==="edit"){const a=[{from:Math.max(0,i.from),to:Math.max(0,i.to),insert:i.value.content}];t.dispatch({changes:a,annotations:[os.remote.of(!0)]})}})})}update(t){if(t.docChanged)for(const n of t.transactions){if(!["select","input","delete","move","undo","redo"].some(a=>n.isUserEvent(a))||n.annotation(os.remote))continue;let i=0;this._doc.update(a=>{n.changes.iterChanges((s,o,l,u,d)=>{const f=d.toJSON().join(` +`);a.content.edit(s+i,o+i,f),i+=f.length-(o-s)})})}}}const det=fa.fromClass(cet);var OC={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */E3.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",o="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,d="__lodash_placeholder__",f=1,p=2,g=4,O=1,S=2,T=1,w=2,x=4,k=8,_=16,R=32,N=64,D=128,L=256,j=512,B=30,V="...",W=800,re=16,ee=1,q=2,te=3,K=1/0,G=9007199254740991,ie=17976931348623157e292,H=NaN,Re=4294967295,Se=Re-1,Z=Re>>>1,ke=[["ary",D],["bind",T],["bindKey",w],["curry",k],["curryRight",_],["flip",j],["partial",R],["partialRight",N],["rearg",L]],$e="[object Arguments]",ae="[object Array]",Je="[object AsyncFunction]",We="[object Boolean]",Xe="[object Date]",At="[object DOMException]",st="[object Error]",Lt="[object Function]",Ht="[object GeneratorFunction]",ft="[object Map]",Et="[object Number]",Ot="[object Null]",zt="[object Object]",de="[object Promise]",_e="[object Proxy]",Ne="[object RegExp]",et="[object Set]",dt="[object String]",tt="[object Symbol]",yt="[object Undefined]",tn="[object WeakMap]",Fe="[object WeakSet]",we="[object ArrayBuffer]",be="[object DataView]",xe="[object Float32Array]",Ue="[object Float64Array]",It="[object Int8Array]",Gt="[object Int16Array]",rt="[object Int32Array]",Vt="[object Uint8Array]",Qt="[object Uint8ClampedArray]",jt="[object Uint16Array]",En="[object Uint32Array]",br=/\b__p \+= '';/g,Mr=/\b(__p \+=) '' \+/g,Rr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Yr=/&(?:amp|lt|gt|quot|#39);/g,Li=/[&<>"']/g,bi=RegExp(Yr.source),Qi=RegExp(Li.source),yi=/<%-([\s\S]+?)%>/g,ds=/<%([\s\S]+?)%>/g,Wi=/<%=([\s\S]+?)%>/g,qs=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Vi=/^\w*$/,Ur=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ir=/[\\^$.*+?()[\]{}|]/g,Zr=RegExp(ir.source),ze=/^\s+/,it=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,he=/\{\n\/\* \[wrapped with (.+)\] \*/,Le=/,? & /,qe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,gt=/[()=,{}\[\]\/\s]/,qt=/\\(\\)?/g,Ie=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Te=/\w*$/,ot=/^[-+]0x[0-9a-f]+$/i,Ye=/^0b[01]+$/i,wt=/^\[object .+?Constructor\]$/,Rt=/^0o[0-7]+$/i,Yt=/^(?:0|[1-9]\d*)$/,Qn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Yn=/($^)/,qi=/['\n\r\u2028\u2029\\]/g,ii="\\ud800-\\udfff",Uu="\\u0300-\\u036f",ko="\\ufe20-\\ufe2f",$l="\\u20d0-\\u20ff",Fl=Uu+ko+$l,Bl="\\u2700-\\u27bf",xs="a-z\\xdf-\\xf6\\xf8-\\xff",je="\\xac\\xb1\\xd7\\xf7",pa="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ah="\\u2000-\\u206f",wn=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",kr="A-Z\\xc0-\\xd6\\xd8-\\xde",vi="\\ufe0e\\ufe0f",hr=je+pa+ah+wn,Gi="['’]",Ao="["+ii+"]",_o="["+hr+"]",Co="["+Fl+"]",Ul="\\d+",zu="["+Bl+"]",Gs="["+xs+"]",zl="[^"+ii+hr+Ul+Bl+xs+kr+"]",XO="\\ud83c[\\udffb-\\udfff]",BI="(?:"+Co+"|"+XO+")",KO="[^"+ii+"]",Z1="(?:\\ud83c[\\udde6-\\uddff]){2}",JO="[\\ud800-\\udbff][\\udc00-\\udfff]",ju="["+kr+"]",Tx="\\u200d",xx="(?:"+Gs+"|"+zl+")",UI="(?:"+ju+"|"+zl+")",eS="(?:"+Gi+"(?:d|ll|m|re|s|t|ve))?",sh="(?:"+Gi+"(?:D|LL|M|RE|S|T|VE))?",kx=BI+"?",Ax="["+vi+"]?",zI="(?:"+Tx+"(?:"+[KO,Z1,JO].join("|")+")"+Ax+kx+")*",jI="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",HI="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",_x=Ax+kx+zI,QI="(?:"+[zu,Z1,JO].join("|")+")"+_x,Cx="(?:"+[KO+Co+"?",Co,Z1,JO,Ao].join("|")+")",WI=RegExp(Gi,"g"),VI=RegExp(Co,"g"),X1=RegExp(XO+"(?="+XO+")|"+Cx+_x,"g"),Rx=RegExp([ju+"?"+Gs+"+"+eS+"(?="+[_o,ju,"$"].join("|")+")",UI+"+"+sh+"(?="+[_o,ju+xx,"$"].join("|")+")",ju+"?"+xx+"+"+eS,ju+"+"+sh,HI,jI,Ul,QI].join("|"),"g"),tS=RegExp("["+Tx+ii+Fl+vi+"]"),Ix=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,qI=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],GI=-1,pi={};pi[xe]=pi[Ue]=pi[It]=pi[Gt]=pi[rt]=pi[Vt]=pi[Qt]=pi[jt]=pi[En]=!0,pi[$e]=pi[ae]=pi[we]=pi[We]=pi[be]=pi[Xe]=pi[st]=pi[Lt]=pi[ft]=pi[Et]=pi[zt]=pi[Ne]=pi[et]=pi[dt]=pi[tn]=!1;var ai={};ai[$e]=ai[ae]=ai[we]=ai[be]=ai[We]=ai[Xe]=ai[xe]=ai[Ue]=ai[It]=ai[Gt]=ai[rt]=ai[ft]=ai[Et]=ai[zt]=ai[Ne]=ai[et]=ai[dt]=ai[tt]=ai[Vt]=ai[Qt]=ai[jt]=ai[En]=!0,ai[st]=ai[Lt]=ai[tn]=!1;var YI={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},ZI={"&":"&","<":"<",">":">",'"':""","'":"'"},XI={"&":"&","<":"<",">":">",""":'"',"'":"'"},KI={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},JI=parseFloat,Qc=parseInt,Nx=typeof yf=="object"&&yf&&yf.Object===Object&&yf,Dx=typeof self=="object"&&self&&self.Object===Object&&self,$a=Nx||Dx||Function("return this")(),K1=t&&!t.nodeType&&t,oh=K1&&!0&&e&&!e.nodeType&&e,nS=oh&&oh.exports===K1,rS=nS&&Nx.process,Ro=function(){try{var Me=oh&&oh.require&&oh.require("util").types;return Me||rS&&rS.binding&&rS.binding("util")}catch{}}(),iS=Ro&&Ro.isArrayBuffer,aS=Ro&&Ro.isDate,Px=Ro&&Ro.isMap,Lx=Ro&&Ro.isRegExp,sS=Ro&&Ro.isSet,Mx=Ro&&Ro.isTypedArray;function Ys(Me,ut,Ze){switch(Ze.length){case 0:return Me.call(ut);case 1:return Me.call(ut,Ze[0]);case 2:return Me.call(ut,Ze[0],Ze[1]);case 3:return Me.call(ut,Ze[0],Ze[1],Ze[2])}return Me.apply(ut,Ze)}function $x(Me,ut,Ze,on){for(var Wn=-1,$r=Me==null?0:Me.length;++Wn<$r;){var xa=Me[Wn];ut(on,xa,Ze(xa),Me)}return on}function tl(Me,ut){for(var Ze=-1,on=Me==null?0:Me.length;++Ze-1}function Gn(Me,ut,Ze){for(var on=-1,Wn=Me==null?0:Me.length;++on-1;);return Ze}function Mm(Me,ut){for(var Ze=Me.length;Ze--&&lh(ut,Me[Ze],0)>-1;);return Ze}function Hx(Me,ut){for(var Ze=Me.length,on=0;Ze--;)Me[Ze]===ut&&++on;return on}var fS=tb(YI),hS=tb(ZI);function Qx(Me){return"\\"+KI[Me]}function $p(Me,ut){return Me==null?n:Me[ut]}function Qu(Me){return tS.test(Me)}function t6(Me){return Ix.test(Me)}function pS(Me){for(var ut,Ze=[];!(ut=Me.next()).done;)Ze.push(ut.value);return Ze}function uh(Me){var ut=-1,Ze=Array(Me.size);return Me.forEach(function(on,Wn){Ze[++ut]=[Wn,on]}),Ze}function sb(Me,ut){return function(Ze){return Me(ut(Ze))}}function Wc(Me,ut){for(var Ze=-1,on=Me.length,Wn=0,$r=[];++Ze-1}function m6(m,v){var A=this.__data__,F=Gl(A,m);return F<0?(++this.size,A.push([m,v])):A[F][1]=v,this}No.prototype.clear=h6,No.prototype.delete=p6,No.prototype.get=Zc,No.prototype.has=Vm,No.prototype.set=m6;function Xc(m){var v=-1,A=m==null?0:m.length;for(this.clear();++v=v?m:v)),m}function al(m,v,A,F,X,ue){var ve,Ae=v&f,Be=v&p,bt=v&g;if(A&&(ve=X?A(m,F,X,ue):A(m)),ve!==n)return ve;if(!aa(m))return m;var vt=Xn(m);if(vt){if(ve=Rk(m),!Ae)return As(m,ve)}else{var Tt=_s(m),en=Tt==Lt||Tt==Ht;if(n0(m))return Xd(m,Ae);if(Tt==zt||Tt==$e||en&&!X){if(ve=Be||en?{}:LS(m),!Ae)return Be?M6(m,fb(ve,m)):L6(m,Yd(ve,m))}else{if(!ai[Tt])return X?m:{};ve=_b(m,Tt,Ae)}}ue||(ue=new Vl);var Sn=ue.get(m);if(Sn)return Sn;ue.set(m,ve),RV(m)?m.forEach(function(Bn){ve.add(al(Bn,v,A,Bn,m,ue))}):_V(m)&&m.forEach(function(Bn,yr){ve.set(yr,al(Bn,v,A,yr,m,ue))});var Fn=bt?Be?xk:Tk:Be?ul:ms,ur=vt?n:Fn(m);return tl(ur||m,function(Bn,yr){ur&&(yr=Bn,Bn=m[yr]),Kc(ve,yr,al(Bn,v,A,yr,m,ue))}),ve}function Yl(m){var v=ms(m);return function(A){return Jc(A,m,v)}}function Jc(m,v,A){var F=A.length;if(m==null)return!F;for(m=oi(m);F--;){var X=A[F],ue=v[X],ve=m[X];if(ve===n&&!(X in m)||!ue(ve))return!1}return!0}function gh(m,v,A){if(typeof m!="function")throw new _n(s);return Kr(function(){m.apply(n,A)},v)}function Wp(m,v,A,F){var X=-1,ue=J1,ve=!0,Ae=m.length,Be=[],bt=v.length;if(!Ae)return Be;A&&(v=si(v,Zs(A))),F?(ue=Gn,ve=!1):v.length>=i&&(ue=Mp,ve=!1,v=new Gd(v));e:for(;++XX?0:X+A),F=F===n||F>X?X:ar(F),F<0&&(F+=X),F=A>F?0:NV(F);A0&&A(Ae)?v>1?Za(Ae,v-1,A,F,X):Hd(X,Ae):F||(X[X.length]=Ae)}return X}var hb=Xp(),yn=Xp(!0);function Zl(m,v){return m&&hb(m,v,ms)}function pb(m,v){return m&&yn(m,v,ms)}function qp(m,v){return jd(v,function(A){return Th(m[A])})}function bh(m,v){v=Zd(v,m);for(var A=0,F=v.length;m!=null&&Av}function ek(m,v){return m!=null&&Kn.call(m,v)}function E6(m,v){return m!=null&&v in oi(m)}function w6(m,v,A){return m>=ia(v,A)&&m=120&&vt.length>=120)?new Gd(ve&&vt):n}vt=m[0];var Tt=-1,en=Ae[0];e:for(;++Tt-1;)Ae!==m&&Um.call(Ae,Be,1),Um.call(m,Be,1);return m}function dk(m,v){for(var A=m?v.length:0,F=A-1;A--;){var X=v[A];if(A==F||X!==ue){var ue=X;nd(X)?Um.call(m,X,1):_S(m,X)}}return m}function Xm(m,v){return m+ub(zm()*(v-m+1))}function C6(m,v,A,F){for(var X=-1,ue=ki(lb((v-m)/(A||1)),0),ve=Ze(ue);ue--;)ve[F?ue:++X]=m,m+=A;return ve}function AS(m,v){var A="";if(!m||v<1||v>G)return A;do v%2&&(A+=m),v=ub(v/2),v&&(m+=m);while(v);return A}function Jn(m,v){return pr(nt(m,v,cl),m+"")}function R6(m){return db(Rb(m))}function fk(m,v){var A=Rb(m);return ci(A,hs(v,0,A.length))}function Km(m,v,A,F){if(!aa(m))return m;v=Zd(v,m);for(var X=-1,ue=v.length,ve=ue-1,Ae=m;Ae!=null&&++XX?0:X+v),A=A>X?X:A,A<0&&(A+=X),X=v>A?0:A-v>>>0,v>>>=0;for(var ue=Ze(X);++F>>1,ve=m[ue];ve!==null&&!Kl(ve)&&(A?ve<=v:ve=i){var bt=v?null:$6(m);if(bt)return Wu(bt);ve=!1,X=Mp,Be=new Gd}else Be=v?[]:Ae;e:for(;++F=F?m:ol(m,v,A)}var Xa=Pt||function(m){return $a.clearTimeout(m)};function Xd(m,v){if(v)return m.slice();var A=m.length,F=gS?gS(A):new m.constructor(A);return m.copy(F),F}function eg(m){var v=new m.constructor(m.byteLength);return new Bm(v).set(new Bm(m)),v}function Mn(m,v){var A=v?eg(m.buffer):m.buffer;return new m.constructor(A,m.byteOffset,m.byteLength)}function vk(m){var v=new m.constructor(m.source,Te.exec(m));return v.lastIndex=m.lastIndex,v}function D6(m){return Hp?oi(Hp.call(m)):{}}function kb(m,v){var A=v?eg(m.buffer):m.buffer;return new m.constructor(A,m.byteOffset,m.length)}function Ok(m,v){if(m!==v){var A=m!==n,F=m===null,X=m===m,ue=Kl(m),ve=v!==n,Ae=v===null,Be=v===v,bt=Kl(v);if(!Ae&&!bt&&!ue&&m>v||ue&&ve&&Be&&!Ae&&!bt||F&&ve&&Be||!A&&Be||!X)return 1;if(!F&&!ue&&!bt&&m=Ae)return Be;var bt=A[F];return Be*(bt=="desc"?-1:1)}}return m.index-v.index}function Sh(m,v,A,F){for(var X=-1,ue=m.length,ve=A.length,Ae=-1,Be=v.length,bt=ki(ue-ve,0),vt=Ze(Be+bt),Tt=!F;++Ae1?A[X-1]:n,ve=X>2?A[2]:n;for(ue=m.length>3&&typeof ue=="function"?(X--,ue):n,ve&&y(A[0],A[1],ve)&&(ue=X<3?n:ue,X=1),v=oi(v);++F-1?X[ue?v[ve]:ve]:n}}function td(m){return Kd(function(v){var A=v.length,F=A,X=fs.prototype.thru;for(m&&v.reverse();F--;){var ue=v[F];if(typeof ue!="function")throw new _n(s);if(X&&!ve&&DS(ue)=="wrapper")var ve=new fs([],!0)}for(F=ve?F:A;++F1&&Ar.reverse(),vt&&BeAe))return!1;var bt=ue.get(m),vt=ue.get(v);if(bt&&vt)return bt==v&&vt==m;var Tt=-1,en=!0,Sn=A&S?new Gd:n;for(ue.set(m,v),ue.set(v,m);++Tt1?"& ":"")+v[F],v=v.join(A>2?", ":" "),m.replace(le,`{ -/* [wrapped with `+v+`] */ -`)}function U6(m){return Xn(m)||cg(m)||!!(ob&&m&&m[ob])}function nd(m,v){var A=typeof m;return v=v??G,!!v&&(A=="number"||A!="symbol"&&Yt.test(m))&&m>-1&&m%1==0&&m0){if(++v>=W)return arguments[0]}else v=0;return m.apply(n,arguments)}}function ci(m,v){var A=-1,F=m.length,X=F-1;for(v=v===n?F:v;++A1?m[v-1]:n;return A=typeof A=="function"?(m.pop(),A):n,gV(m,A)});function bV(m){var v=ne(m);return v.__chain__=!0,v}function xve(m,v){return v(m),m}function Nk(m,v){return v(m)}var kve=Kd(function(m){var v=m.length,A=v?m[0]:0,F=this.__wrapped__,X=function(ue){return wS(ue,m)};return v>1||this.__actions__.length||!(F instanceof $n)||!nd(A)?this.thru(X):(F=F.slice(A,+A+(v?1:0)),F.__actions__.push({func:Nk,args:[X],thisArg:n}),new fs(F,this.__chain__).thru(function(ue){return v&&!ue.length&&ue.push(n),ue}))});function Ave(){return bV(this)}function _ve(){return new fs(this.value(),this.__chain__)}function Cve(){this.__values__===n&&(this.__values__=IV(this.value()));var m=this.__index__>=this.__values__.length,v=m?n:this.__values__[this.__index__++];return{done:m,value:v}}function Rve(){return this}function Ive(m){for(var v,A=this;A instanceof hh;){var F=Ik(A);F.__index__=0,F.__values__=n,v?X.__wrapped__=F:v=F;var X=F;A=A.__wrapped__}return X.__wrapped__=m,v}function Nve(){var m=this.__wrapped__;if(m instanceof $n){var v=m;return this.__actions__.length&&(v=new $n(this)),v=v.reverse(),v.__actions__.push({func:Nk,args:[j6],thisArg:n}),new fs(v,this.__chain__)}return this.thru(j6)}function Dve(){return yk(this.__wrapped__,this.__actions__)}var Pve=Ab(function(m,v,A){Kn.call(m,A)?++m[A]:ro(m,A,1)});function Lve(m,v,A){var F=Xn(m)?zd:Vp;return A&&y(m,v,A)&&(v=n),F(m,Dn(v,3))}function Mve(m,v){var A=Xn(m)?jd:Jx;return A(m,Dn(v,3))}var $ve=RS(dV),Fve=RS(fV);function Bve(m,v){return Za(Dk(m,v),1)}function Uve(m,v){return Za(Dk(m,v),K)}function zve(m,v,A){return A=A===n?1:ar(A),Za(Dk(m,v),A)}function yV(m,v){var A=Xn(m)?tl:Ya;return A(m,Dn(v,3))}function vV(m,v){var A=Xn(m)?Fx:io;return A(m,Dn(v,3))}var jve=Ab(function(m,v,A){Kn.call(m,A)?m[A].push(v):ro(m,A,[v])});function Hve(m,v,A,F){m=ll(m)?m:Rb(m),A=A&&!F?ar(A):0;var X=m.length;return A<0&&(A=ki(X+A,0)),Fk(m)?A<=X&&m.indexOf(v,A)>-1:!!X&&lh(m,v,A)>-1}var Qve=Jn(function(m,v,A){var F=-1,X=typeof v=="function",ue=ll(m)?Ze(m.length):[];return Ya(m,function(ve){ue[++F]=X?Ys(v,ve,A):Gm(ve,v,A)}),ue}),Wve=Ab(function(m,v,A){ro(m,A,v)});function Dk(m,v){var A=Xn(m)?si:gb;return A(m,Dn(v,3))}function Vve(m,v,A,F){return m==null?[]:(Xn(v)||(v=v==null?[]:[v]),A=F?n:A,Xn(A)||(A=A==null?[]:[A]),Zm(m,v,A))}var qve=Ab(function(m,v,A){m[A?0:1].push(v)},function(){return[[],[]]});function Gve(m,v,A){var F=Xn(m)?jl:Hu,X=arguments.length<3;return F(m,Dn(v,4),A,X,Ya)}function Yve(m,v,A){var F=Xn(m)?Bx:Hu,X=arguments.length<3;return F(m,Dn(v,4),A,X,io)}function Zve(m,v){var A=Xn(m)?jd:Jx;return A(m,Mk(Dn(v,3)))}function Xve(m){var v=Xn(m)?db:R6;return v(m)}function Kve(m,v,A){(A?y(m,v,A):v===n)?v=1:v=ar(v);var F=Xn(m)?ES:fk;return F(m,v)}function Jve(m){var v=Xn(m)?Kx:mk;return v(m)}function eOe(m){if(m==null)return 0;if(ll(m))return Fk(m)?Fp(m):m.length;var v=_s(m);return v==ft||v==et?m.size:mb(m).length}function tOe(m,v,A){var F=Xn(m)?Lp:I6;return A&&y(m,v,A)&&(v=n),F(m,Dn(v,3))}var nOe=Jn(function(m,v){if(m==null)return[];var A=v.length;return A>1&&y(m,v[0],v[1])?v=[]:A>2&&y(v[0],v[1],v[2])&&(v=[v[0]]),Zm(m,Za(v,1),[])}),Pk=c6||function(){return $a.Date.now()};function rOe(m,v){if(typeof v!="function")throw new _n(s);return m=ar(m),function(){if(--m<1)return v.apply(this,arguments)}}function OV(m,v,A){return v=A?n:v,v=m&&v==null?m.length:v,Mi(m,D,n,n,n,n,v)}function SV(m,v){var A;if(typeof v!="function")throw new _n(s);return m=ar(m),function(){return--m>0&&(A=v.apply(this,arguments)),m<=1&&(v=n),A}}var Q6=Jn(function(m,v,A){var F=T;if(A.length){var X=Wc(A,ug(Q6));F|=R}return Mi(m,F,v,A,X)}),EV=Jn(function(m,v,A){var F=T|w;if(A.length){var X=Wc(A,ug(EV));F|=R}return Mi(v,F,m,A,X)});function wV(m,v,A){v=A?n:v;var F=Mi(m,k,n,n,n,n,n,v);return F.placeholder=wV.placeholder,F}function TV(m,v,A){v=A?n:v;var F=Mi(m,_,n,n,n,n,n,v);return F.placeholder=TV.placeholder,F}function xV(m,v,A){var F,X,ue,ve,Ae,Be,bt=0,vt=!1,Tt=!1,en=!0;if(typeof m!="function")throw new _n(s);v=Ku(v)||0,aa(A)&&(vt=!!A.leading,Tt="maxWait"in A,ue=Tt?ki(Ku(A.maxWait)||0,v):ue,en="trailing"in A?!!A.trailing:en);function Sn(_a){var id=F,kh=X;return F=X=n,bt=_a,ve=m.apply(kh,id),ve}function Fn(_a){return bt=_a,Ae=Kr(yr,v),vt?Sn(_a):ve}function ur(_a){var id=_a-Be,kh=_a-bt,QV=v-id;return Tt?ia(QV,ue-kh):QV}function Bn(_a){var id=_a-Be,kh=_a-bt;return Be===n||id>=v||id<0||Tt&&kh>=ue}function yr(){var _a=Pk();if(Bn(_a))return Ar(_a);Ae=Kr(yr,ur(_a))}function Ar(_a){return Ae=n,en&&F?Sn(_a):(F=X=n,ve)}function Jl(){Ae!==n&&Xa(Ae),bt=0,F=Be=X=Ae=n}function Do(){return Ae===n?ve:Ar(Pk())}function eu(){var _a=Pk(),id=Bn(_a);if(F=arguments,X=this,Be=_a,id){if(Ae===n)return Fn(Be);if(Tt)return Xa(Ae),Ae=Kr(yr,v),Sn(Be)}return Ae===n&&(Ae=Kr(yr,v)),ve}return eu.cancel=Jl,eu.flush=Do,eu}var iOe=Jn(function(m,v){return gh(m,1,v)}),aOe=Jn(function(m,v,A){return gh(m,Ku(v)||0,A)});function sOe(m){return Mi(m,j)}function Lk(m,v){if(typeof m!="function"||v!=null&&typeof v!="function")throw new _n(s);var A=function(){var F=arguments,X=v?v.apply(this,F):F[0],ue=A.cache;if(ue.has(X))return ue.get(X);var ve=m.apply(this,F);return A.cache=ue.set(X,ve)||ue,ve};return A.cache=new(Lk.Cache||Xc),A}Lk.Cache=Xc;function Mk(m){if(typeof m!="function")throw new _n(s);return function(){var v=arguments;switch(v.length){case 0:return!m.call(this);case 1:return!m.call(this,v[0]);case 2:return!m.call(this,v[0],v[1]);case 3:return!m.call(this,v[0],v[1],v[2])}return!m.apply(this,v)}}function oOe(m){return SV(2,m)}var lOe=N6(function(m,v){v=v.length==1&&Xn(v[0])?si(v[0],Zs(Dn())):si(Za(v,1),Zs(Dn()));var A=v.length;return Jn(function(F){for(var X=-1,ue=ia(F.length,A);++X=v}),cg=tk(function(){return arguments}())?tk:function(m){return ga(m)&&Kn.call(m,"callee")&&!dh.call(m,"callee")},Xn=Ze.isArray,wOe=iS?Zs(iS):x6;function ll(m){return m!=null&&$k(m.length)&&!Th(m)}function Aa(m){return ga(m)&&ll(m)}function TOe(m){return m===!0||m===!1||ga(m)&&Fa(m)==We}var n0=Ve||nN,xOe=aS?Zs(aS):k6;function kOe(m){return ga(m)&&m.nodeType===1&&!$S(m)}function AOe(m){if(m==null)return!0;if(ll(m)&&(Xn(m)||typeof m=="string"||typeof m.splice=="function"||n0(m)||Cb(m)||cg(m)))return!m.length;var v=_s(m);if(v==ft||v==et)return!m.size;if(U(m))return!mb(m).length;for(var A in m)if(Kn.call(m,A))return!1;return!0}function _Oe(m,v){return vh(m,v)}function COe(m,v,A){A=typeof A=="function"?A:n;var F=A?A(m,v):n;return F===n?vh(m,v,n,A):!!F}function V6(m){if(!ga(m))return!1;var v=Fa(m);return v==st||v==At||typeof m.message=="string"&&typeof m.name=="string"&&!$S(m)}function ROe(m){return typeof m=="number"&&Ge(m)}function Th(m){if(!aa(m))return!1;var v=Fa(m);return v==Lt||v==Ht||v==Je||v==_e}function AV(m){return typeof m=="number"&&m==ar(m)}function $k(m){return typeof m=="number"&&m>-1&&m%1==0&&m<=G}function aa(m){var v=typeof m;return m!=null&&(v=="object"||v=="function")}function ga(m){return m!=null&&typeof m=="object"}var _V=Px?Zs(Px):nk;function IOe(m,v){return m===v||xS(m,v,Ak(v))}function NOe(m,v,A){return A=typeof A=="function"?A:n,xS(m,v,Ak(v),A)}function DOe(m){return CV(m)&&m!=+m}function POe(m){if(P(m))throw new Wn(a);return rk(m)}function LOe(m){return m===null}function MOe(m){return m==null}function CV(m){return typeof m=="number"||ga(m)&&Fa(m)==Et}function $S(m){if(!ga(m)||Fa(m)!=zt)return!1;var v=Xs(m);if(v===null)return!0;var A=Kn.call(v,"constructor")&&v.constructor;return typeof A=="function"&&A instanceof A&&Vu.call(A)==Ql}var q6=Lx?Zs(Lx):_6;function $Oe(m){return AV(m)&&m>=-G&&m<=G}var RV=sS?Zs(sS):ik;function Fk(m){return typeof m=="string"||!Xn(m)&&ga(m)&&Fa(m)==dt}function Kl(m){return typeof m=="symbol"||ga(m)&&Fa(m)==tt}var Cb=Mx?Zs(Mx):kS;function FOe(m){return m===n}function BOe(m){return ga(m)&&_s(m)==tn}function UOe(m){return ga(m)&&Fa(m)==Fe}var zOe=ag(vn),jOe=ag(function(m,v){return m<=v});function IV(m){if(!m)return[];if(ll(m))return Fk(m)?Hl(m):As(m);if(zp&&m[zp])return pS(m[zp]());var v=_s(m),A=v==ft?uh:v==et?Wu:Rb;return A(m)}function xh(m){if(!m)return m===0?m:0;if(m=Ku(m),m===K||m===-K){var v=m<0?-1:1;return v*ie}return m===m?m:0}function ar(m){var v=xh(m),A=v%1;return v===v?A?v-A:v:0}function NV(m){return m?hs(ar(m),0,Re):0}function Ku(m){if(typeof m=="number")return m;if(Kl(m))return H;if(aa(m)){var v=typeof m.valueOf=="function"?m.valueOf():m;m=aa(v)?v+"":v}if(typeof m!="string")return m===0?m:+m;m=dS(m);var A=Ye.test(m);return A||Rt.test(m)?Qc(m.slice(2),A?2:8):ot.test(m)?H:+m}function DV(m){return so(m,ul(m))}function HOe(m){return m?hs(ar(m),-G,G):m===0?m:0}function ei(m){return m==null?"":ao(m)}var QOe=ui(function(m,v){if(U(v)||ll(v)){so(v,ms(v),m);return}for(var A in v)Kn.call(v,A)&&Kc(m,A,v[A])}),PV=ui(function(m,v){so(v,ul(v),m)}),Bk=ui(function(m,v,A,F){so(v,ul(v),m,F)}),WOe=ui(function(m,v,A,F){so(v,ms(v),m,F)}),VOe=Kd(wS);function qOe(m,v){var A=Qr(m);return v==null?A:Yd(A,v)}var GOe=Jn(function(m,v){m=oi(m);var A=-1,F=v.length,X=F>2?v[2]:n;for(X&&y(v[0],v[1],X)&&(F=1);++A1),ue}),so(m,xk(m),A),F&&(A=al(A,f|p|g,NS));for(var X=v.length;X--;)_S(A,v[X]);return A});function fSe(m,v){return MV(m,Mk(Dn(v)))}var hSe=Kd(function(m,v){return m==null?{}:uk(m,v)});function MV(m,v){if(m==null)return{};var A=si(xk(m),function(F){return[F]});return v=Dn(v),ck(m,A,function(F,X){return v(F,X[0])})}function pSe(m,v,A){v=Zd(v,m);var F=-1,X=v.length;for(X||(X=1,m=n);++Fv){var F=m;m=v,v=F}if(A||m%1||v%1){var X=zm();return ia(m+X*(v-m+JI("1e-"+((X+"").length-1))),v)}return Xm(m,v)}var xSe=Eh(function(m,v,A){return v=v.toLowerCase(),m+(A?BV(v):v)});function BV(m){return Z6(ei(m).toLowerCase())}function UV(m){return m=ei(m),m&&m.replace(Qn,fS).replace(VI,"")}function kSe(m,v,A){m=ei(m),v=ao(v);var F=m.length;A=A===n?F:hs(ar(A),0,F);var X=A;return A-=v.length,A>=0&&m.slice(A,X)==v}function ASe(m){return m=ei(m),m&&Qi.test(m)?m.replace(Li,hS):m}function _Se(m){return m=ei(m),m&&Zr.test(m)?m.replace(ir,"\\$&"):m}var CSe=Eh(function(m,v,A){return m+(A?"-":"")+v.toLowerCase()}),RSe=Eh(function(m,v,A){return m+(A?" ":"")+v.toLowerCase()}),ISe=Sk("toLowerCase");function NSe(m,v,A){m=ei(m),v=ar(v);var F=v?Fp(m):0;if(!v||F>=v)return m;var X=(v-F)/2;return ig(ub(X),A)+m+ig(lb(X),A)}function DSe(m,v,A){m=ei(m),v=ar(v);var F=v?Fp(m):0;return v&&F>>0,A?(m=ei(m),m&&(typeof v=="string"||v!=null&&!q6(v))&&(v=ao(v),!v&&Qu(m))?li(Hl(m),0,A):m.split(v,A)):[]}var USe=Eh(function(m,v,A){return m+(A?" ":"")+Z6(v)});function zSe(m,v,A){return m=ei(m),A=A==null?0:hs(ar(A),0,m.length),v=ao(v),m.slice(A,A+v.length)==v}function jSe(m,v,A){var F=ne.templateSettings;A&&y(m,v,A)&&(v=n),m=ei(m),v=Bk({},v,F,og);var X=Bk({},v.imports,F.imports,og),ue=ms(X),ve=ib(X,ue),Ae,Be,bt=0,vt=v.interpolate||Yn,Tt="__p += '",en=mS((v.escape||Yn).source+"|"+vt.source+"|"+(vt===Wi?Ie:Yn).source+"|"+(v.evaluate||Yn).source+"|$","g"),Sn="//# sourceURL="+(Kn.call(v,"sourceURL")?(v.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++GI+"]")+` -`;m.replace(en,function(Bn,yr,Ar,Jl,Do,eu){return Ar||(Ar=Jl),Tt+=m.slice(bt,eu).replace(qi,Qx),yr&&(Ae=!0,Tt+=`' + -__e(`+yr+`) + -'`),Do&&(Be=!0,Tt+=`'; -`+Do+`; -__p += '`),Ar&&(Tt+=`' + + */OC.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",o="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,d="__lodash_placeholder__",f=1,p=2,g=4,O=1,S=2,T=1,w=2,x=4,k=8,_=16,R=32,N=64,P=128,L=256,j=512,B=30,V="...",W=800,re=16,ee=1,q=2,ne=3,K=1/0,G=9007199254740991,ie=17976931348623157e292,H=NaN,Re=4294967295,Se=Re-1,Z=Re>>>1,ke=[["ary",P],["bind",T],["bindKey",w],["curry",k],["curryRight",_],["flip",j],["partial",R],["partialRight",N],["rearg",L]],$e="[object Arguments]",ae="[object Array]",Xe="[object AsyncFunction]",We="[object Boolean]",Ye="[object Date]",xt="[object DOMException]",it="[object Error]",Pt="[object Function]",jt="[object GeneratorFunction]",ct="[object Map]",Ot="[object Number]",yt="[object Null]",Ut="[object Object]",de="[object Promise]",_e="[object Proxy]",Ne="[object RegExp]",Ke="[object Set]",ut="[object String]",Je="[object Symbol]",gt="[object Undefined]",Jt="[object WeakMap]",Fe="[object WeakSet]",we="[object ArrayBuffer]",be="[object DataView]",xe="[object Float32Array]",Ue="[object Float64Array]",Ct="[object Int8Array]",qt="[object Int16Array]",tt="[object Int32Array]",Wt="[object Uint8Array]",Ht="[object Uint8ClampedArray]",zt="[object Uint16Array]",Sn="[object Uint32Array]",pr=/\b__p \+= '';/g,Mr=/\b(__p \+=) '' \+/g,Rr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Yr=/&(?:amp|lt|gt|quot|#39);/g,Ni=/[&<>"']/g,hi=RegExp(Yr.source),ji=RegExp(Ni.source),pi=/<%-([\s\S]+?)%>/g,ds=/<%([\s\S]+?)%>/g,Hi=/<%=([\s\S]+?)%>/g,Ks=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Qi=/^\w*$/,Ur=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nr=/[\\^$.*+?()[\]{}|]/g,Zr=RegExp(nr.source),ze=/^\s+/,nt=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,he=/\{\n\/\* \[wrapped with (.+)\] \*/,Le=/,? & /,Ve=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pt=/[()=,{}\[\]\/\s]/,Vt=/\\(\\)?/g,Ie=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Te=/\w*$/,at=/^[-+]0x[0-9a-f]+$/i,qe=/^0b[01]+$/i,St=/^\[object .+?Constructor\]$/,_t=/^0o[0-7]+$/i,Gt=/^(?:0|[1-9]\d*)$/,jn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,qn=/($^)/,Wi=/['\n\r\u2028\u2029\\]/g,ti="\\ud800-\\udfff",$u="\\u0300-\\u036f",xo="\\ufe20-\\ufe2f",Ml="\\u20d0-\\u20ff",$l=$u+xo+Ml,Fl="\\u2700-\\u27bf",As="a-z\\xdf-\\xf6\\xf8-\\xff",je="\\xac\\xb1\\xd7\\xf7",ha="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",nh="\\u2000-\\u206f",En=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",xr="A-Z\\xc0-\\xd6\\xd8-\\xde",mi="\\ufe0e\\ufe0f",dr=je+ha+nh+En,Vi="['’]",ko="["+ti+"]",Ao="["+dr+"]",_o="["+$l+"]",Bl="\\d+",Fu="["+Fl+"]",Js="["+As+"]",Ul="[^"+ti+dr+Bl+Fl+As+xr+"]",zO="\\ud83c[\\udffb-\\udfff]",$I="(?:"+_o+"|"+zO+")",jO="[^"+ti+"]",K1="(?:\\ud83c[\\udde6-\\uddff]){2}",HO="[\\ud800-\\udbff][\\udc00-\\udfff]",Bu="["+xr+"]",xx="\\u200d",kx="(?:"+Js+"|"+Ul+")",FI="(?:"+Bu+"|"+Ul+")",QO="(?:"+Vi+"(?:d|ll|m|re|s|t|ve))?",rh="(?:"+Vi+"(?:D|LL|M|RE|S|T|VE))?",Ax=$I+"?",_x="["+mi+"]?",BI="(?:"+xx+"(?:"+[jO,K1,HO].join("|")+")"+_x+Ax+")*",UI="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",zI="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Cx=_x+Ax+BI,jI="(?:"+[Fu,K1,HO].join("|")+")"+Cx,Rx="(?:"+[jO+_o+"?",_o,K1,HO,ko].join("|")+")",HI=RegExp(Vi,"g"),QI=RegExp(_o,"g"),J1=RegExp(zO+"(?="+zO+")|"+Rx+Cx,"g"),Ix=RegExp([Bu+"?"+Js+"+"+QO+"(?="+[Ao,Bu,"$"].join("|")+")",FI+"+"+rh+"(?="+[Ao,Bu+kx,"$"].join("|")+")",Bu+"?"+kx+"+"+QO,Bu+"+"+rh,zI,UI,Bl,jI].join("|"),"g"),WO=RegExp("["+xx+ti+$l+mi+"]"),Nx=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,WI=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],VI=-1,ui={};ui[xe]=ui[Ue]=ui[Ct]=ui[qt]=ui[tt]=ui[Wt]=ui[Ht]=ui[zt]=ui[Sn]=!0,ui[$e]=ui[ae]=ui[we]=ui[We]=ui[be]=ui[Ye]=ui[it]=ui[Pt]=ui[ct]=ui[Ot]=ui[Ut]=ui[Ne]=ui[Ke]=ui[ut]=ui[Jt]=!1;var ni={};ni[$e]=ni[ae]=ni[we]=ni[be]=ni[We]=ni[Ye]=ni[xe]=ni[Ue]=ni[Ct]=ni[qt]=ni[tt]=ni[ct]=ni[Ot]=ni[Ut]=ni[Ne]=ni[Ke]=ni[ut]=ni[Je]=ni[Wt]=ni[Ht]=ni[zt]=ni[Sn]=!0,ni[it]=ni[Pt]=ni[Jt]=!1;var qI={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},GI={"&":"&","<":"<",">":">",'"':""","'":"'"},YI={"&":"&","<":"<",">":">",""":'"',"'":"'"},ZI={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},XI=parseFloat,Hc=parseInt,Dx=typeof pf=="object"&&pf&&pf.Object===Object&&pf,Px=typeof self=="object"&&self&&self.Object===Object&&self,Ba=Dx||Px||Function("return this")(),eb=t&&!t.nodeType&&t,ih=eb&&!0&&e&&!e.nodeType&&e,VO=ih&&ih.exports===eb,qO=VO&&Dx.process,Co=function(){try{var Me=ih&&ih.require&&ih.require("util").types;return Me||qO&&qO.binding&&qO.binding("util")}catch{}}(),GO=Co&&Co.isArrayBuffer,YO=Co&&Co.isDate,Lx=Co&&Co.isMap,Mx=Co&&Co.isRegExp,ZO=Co&&Co.isSet,$x=Co&&Co.isTypedArray;function eo(Me,ot,Ge){switch(Ge.length){case 0:return Me.call(ot);case 1:return Me.call(ot,Ge[0]);case 2:return Me.call(ot,Ge[0],Ge[1]);case 3:return Me.call(ot,Ge[0],Ge[1],Ge[2])}return Me.apply(ot,Ge)}function Fx(Me,ot,Ge,an){for(var Hn=-1,$r=Me==null?0:Me.length;++Hn<$r;){var xa=Me[Hn];ot(an,xa,Ge(xa),Me)}return an}function rl(Me,ot){for(var Ge=-1,an=Me==null?0:Me.length;++Ge-1}function Vn(Me,ot,Ge){for(var an=-1,Hn=Me==null?0:Me.length;++an-1;);return Ge}function Cm(Me,ot){for(var Ge=Me.length;Ge--&&ah(ot,Me[Ge],0)>-1;);return Ge}function Qx(Me,ot){for(var Ge=Me.length,an=0;Ge--;)Me[Ge]===ot&&++an;return an}var nS=rb(qI),rS=rb(GI);function Wx(Me){return"\\"+ZI[Me]}function Ip(Me,ot){return Me==null?n:Me[ot]}function zu(Me){return WO.test(Me)}function JI(Me){return Nx.test(Me)}function iS(Me){for(var ot,Ge=[];!(ot=Me.next()).done;)Ge.push(ot.value);return Ge}function sh(Me){var ot=-1,Ge=Array(Me.size);return Me.forEach(function(an,Hn){Ge[++ot]=[Hn,an]}),Ge}function lb(Me,ot){return function(Ge){return Me(ot(Ge))}}function Qc(Me,ot){for(var Ge=-1,an=Me.length,Hn=0,$r=[];++Ge-1}function d6(m,y){var A=this.__data__,F=Fp(A,m);return F<0?(++this.size,A.push([m,y])):A[F][1]=y,this}Ya.prototype.clear=Bm,Ya.prototype.delete=ol,Ya.prototype.get=Um,Ya.prototype.has=zm,Ya.prototype.set=d6;function Yc(m){var y=-1,A=m==null?0:m.length;for(this.clear();++y=y?m:y)),m}function Is(m,y,A,F,X,ue){var ve,Ae=y&f,Be=y&p,mt=y&g;if(A&&(ve=X?A(m,F,X,ue):A(m)),ve!==n)return ve;if(!ia(m))return m;var bt=Yn(m);if(bt){if(ve=dg(m),!Ae)return Ns(m,ve)}else{var Et=Ds(m),Kt=Et==Pt||Et==jt;if(Yp(m))return bk(m,Ae);if(Et==Ut||Et==$e||Kt&&!X){if(ve=Be||Kt?{}:$S(m),!Ae)return Be?I6(m,Hm(ve,m)):R6(m,Io(ve,m))}else{if(!ni[Et])return X?m:{};ve=Rk(m,Et,Ae)}}ue||(ue=new Ro);var On=ue.get(m);if(On)return On;ue.set(m,ve),OV(m)?m.forEach(function($n){ve.add(Is($n,y,A,$n,m,ue))}):yV(m)&&m.forEach(function($n,br){ve.set(br,Is($n,y,A,br,m,ue))});var Mn=mt?Be?Tk:wk:Be?cl:bs,or=bt?n:Mn(m);return rl(or||m,function($n,br){or&&(br=$n,$n=m[br]),fh(ve,br,Is($n,y,A,br,m,ue))}),ve}function Bp(m){var y=bs(m);return function(A){return ek(A,m,y)}}function ek(m,y,A){var F=A.length;if(m==null)return!F;for(m=ii(m);F--;){var X=A[F],ue=y[X],ve=m[X];if(ve===n&&!(X in m)||!ue(ve))return!1}return!0}function Vl(m,y,A){if(typeof m!="function")throw new kn(s);return Gn(function(){m.apply(n,A)},y)}function Qm(m,y,A,F){var X=-1,ue=tb,ve=!0,Ae=m.length,Be=[],mt=y.length;if(!Ae)return Be;A&&(y=ri(y,to(A))),F?(ue=Vn,ve=!1):y.length>=i&&(ue=Rp,ve=!1,y=new Gd(y));e:for(;++XX?0:X+A),F=F===n||F>X?X:ir(F),F<0&&(F+=X),F=A>F?0:EV(F);A0&&A(Ae)?y>1?qi(Ae,y-1,A,F,X):jd(X,Ae):F||(X[X.length]=Ae)}return X}var ql=Wp(),tk=Wp(!0);function qu(m,y){return m&&ql(m,y,bs)}function hS(m,y){return m&&tk(m,y,bs)}function Vm(m,y){return zd(y,function(A){return yh(m[A])})}function un(m,y){y=Jc(y,m);for(var A=0,F=y.length;m!=null&&Ay}function y6(m,y){return m!=null&&Zn.call(m,y)}function pb(m,y){return m!=null&&y in ii(m)}function mb(m,y,A){return m>=ra(y,A)&&m=120&&bt.length>=120)?new Gd(ve&&bt):n}bt=m[0];var Et=-1,Kt=Ae[0];e:for(;++Et-1;)Ae!==m&&Dm.call(Ae,Be,1),Dm.call(m,Be,1);return m}function ES(m,y){for(var A=m?y.length:0,F=A-1;A--;){var X=y[A];if(A==F||X!==ue){var ue=X;nd(X)?Dm.call(m,X,1):eg(m,X)}}return m}function wS(m,y){return m+db(Pm()*(y-m+1))}function jp(m,y,A,F){for(var X=-1,ue=Ei(cb((y-m)/(A||1)),0),ve=Ge(ue);ue--;)ve[F?ue:++X]=m,m+=A;return ve}function ph(m,y){var A="";if(!m||y<1||y>G)return A;do y%2&&(A+=m),y=db(y/2),y&&(m+=m);while(y);return A}function rr(m,y){return ci(ft(m,y,dl),m+"")}function dk(m){return dS(Eb(m))}function x6(m,y){var A=Eb(m);return zr(A,No(y,0,A.length))}function Km(m,y,A,F){if(!ia(m))return m;y=Jc(y,m);for(var X=-1,ue=y.length,ve=ue-1,Ae=m;Ae!=null&&++XX?0:X+y),A=A>X?X:A,A<0&&(A+=X),X=y>A?0:A-y>>>0,y>>>=0;for(var ue=Ge(X);++F>>1,ve=m[ue];ve!==null&&!Gl(ve)&&(A?ve<=y:ve=i){var mt=y?null:N6(m);if(mt)return ju(mt);ve=!1,X=Rp,Be=new Gd}else Be=y?[]:Ae;e:for(;++F=F?m:ll(m,y,A)}var bb=Dt||function(m){return Ba.clearTimeout(m)};function bk(m,y){if(y)return m.slice();var A=m.length,F=sS?sS(A):new m.constructor(A);return m.copy(F),F}function RS(m){var y=new m.constructor(m.byteLength);return new Nm(y).set(new Nm(m)),y}function ma(m,y){var A=y?RS(m.buffer):m.buffer;return new m.constructor(A,m.byteOffset,m.byteLength)}function yk(m){var y=new m.constructor(m.source,Te.exec(m));return y.lastIndex=m.lastIndex,y}function _6(m){return Gc?ii(Gc.call(m)):{}}function yb(m,y){var A=y?RS(m.buffer):m.buffer;return new m.constructor(A,m.byteOffset,m.length)}function vk(m,y){if(m!==y){var A=m!==n,F=m===null,X=m===m,ue=Gl(m),ve=y!==n,Ae=y===null,Be=y===y,mt=Gl(y);if(!Ae&&!mt&&!ue&&m>y||ue&&ve&&Be&&!Ae&&!mt||F&&ve&&Be||!A&&Be||!X)return 1;if(!F&&!ue&&!mt&&m=Ae)return Be;var mt=A[F];return Be*(mt=="desc"?-1:1)}}return m.index-y.index}function mh(m,y,A,F){for(var X=-1,ue=m.length,ve=A.length,Ae=-1,Be=y.length,mt=Ei(ue-ve,0),bt=Ge(Be+mt),Et=!F;++Ae1?A[X-1]:n,ve=X>2?A[2]:n;for(ue=m.length>3&&typeof ue=="function"?(X--,ue):n,ve&&Ps(A[0],A[1],ve)&&(ue=X<3?n:ue,X=1),y=ii(y);++F-1?X[ue?y[ve]:ve]:n}}function td(m){return Yd(function(y){var A=y.length,F=A,X=hs.prototype.thru;for(m&&y.reverse();F--;){var ue=y[F];if(typeof ue!="function")throw new kn(s);if(X&&!ve&&LS(ue)=="wrapper")var ve=new hs([],!0)}for(F=ve?F:A;++F1&&Ar.reverse(),bt&&BeAe))return!1;var mt=ue.get(m),bt=ue.get(y);if(mt&&bt)return mt==y&&bt==m;var Et=-1,Kt=!0,On=A&S?new Gd:n;for(ue.set(m,y),ue.set(y,m);++Et1?"& ":"")+y[F],y=y.join(A>2?", ":" "),m.replace(le,`{ +/* [wrapped with `+y+`] */ +`)}function FS(m){return Yn(m)||hg(m)||!!(ub&&m&&m[ub])}function nd(m,y){var A=typeof m;return y=y??G,!!y&&(A=="number"||A!="symbol"&&Gt.test(m))&&m>-1&&m%1==0&&m0){if(++y>=W)return arguments[0]}else y=0;return m.apply(n,arguments)}}function zr(m,y){var A=-1,F=m.length,X=F-1;for(y=y===n?F:y;++A1?m[y-1]:n;return A=typeof A=="function"?(m.pop(),A):n,sV(m,A)});function oV(m){var y=te(m);return y.__chain__=!0,y}function pve(m,y){return y(m),m}function Nk(m,y){return y(m)}var mve=Yd(function(m){var y=m.length,A=y?m[0]:0,F=this.__wrapped__,X=function(ue){return fS(ue,m)};return y>1||this.__actions__.length||!(F instanceof Cn)||!nd(A)?this.thru(X):(F=F.slice(A,+A+(y?1:0)),F.__actions__.push({func:Nk,args:[X],thisArg:n}),new hs(F,this.__chain__).thru(function(ue){return y&&!ue.length&&ue.push(n),ue}))});function gve(){return oV(this)}function bve(){return new hs(this.value(),this.__chain__)}function yve(){this.__values__===n&&(this.__values__=SV(this.value()));var m=this.__index__>=this.__values__.length,y=m?n:this.__values__[this.__index__++];return{done:m,value:y}}function vve(){return this}function Ove(m){for(var y,A=this;A instanceof Mm;){var F=Ik(A);F.__index__=0,F.__values__=n,y?X.__wrapped__=F:y=F;var X=F;A=A.__wrapped__}return X.__wrapped__=m,y}function Sve(){var m=this.__wrapped__;if(m instanceof Cn){var y=m;return this.__actions__.length&&(y=new Cn(this)),y=y.reverse(),y.__actions__.push({func:Nk,args:[L6],thisArg:n}),new hs(y,this.__chain__)}return this.thru(L6)}function Eve(){return xS(this.__wrapped__,this.__actions__)}var wve=vb(function(m,y,A){Zn.call(m,A)?++m[A]:ps(m,A,1)});function Tve(m,y,A){var F=Yn(m)?Ud:Up;return A&&Ps(m,y,A)&&(y=n),F(m,Dn(y,3))}function xve(m,y){var A=Yn(m)?zd:ro;return A(m,Dn(y,3))}var kve=NS(tV),Ave=NS(nV);function _ve(m,y){return qi(Dk(m,y),1)}function Cve(m,y){return qi(Dk(m,y),K)}function Rve(m,y,A){return A=A===n?1:ir(A),qi(Dk(m,y),A)}function lV(m,y){var A=Yn(m)?rl:Ua;return A(m,Dn(y,3))}function uV(m,y){var A=Yn(m)?Bx:Xc;return A(m,Dn(y,3))}var Ive=vb(function(m,y,A){Zn.call(m,A)?m[A].push(y):ps(m,A,[y])});function Nve(m,y,A,F){m=ul(m)?m:Eb(m),A=A&&!F?ir(A):0;var X=m.length;return A<0&&(A=Ei(X+A,0)),Fk(m)?A<=X&&m.indexOf(y,A)>-1:!!X&&ah(m,y,A)>-1}var Dve=rr(function(m,y,A){var F=-1,X=typeof y=="function",ue=ul(m)?Ge(m.length):[];return Ua(m,function(ve){ue[++F]=X?eo(y,ve,A):Gm(ve,y,A)}),ue}),Pve=vb(function(m,y,A){ps(m,A,y)});function Dk(m,y){var A=Yn(m)?ri:ok;return A(m,Dn(y,3))}function Lve(m,y,A,F){return m==null?[]:(Yn(y)||(y=y==null?[]:[y]),A=F?n:A,Yn(A)||(A=A==null?[]:[A]),uk(m,y,A))}var Mve=vb(function(m,y,A){m[A?0:1].push(y)},function(){return[[],[]]});function $ve(m,y,A){var F=Yn(m)?zl:Uu,X=arguments.length<3;return F(m,Dn(y,4),A,X,Ua)}function Fve(m,y,A){var F=Yn(m)?Ux:Uu,X=arguments.length<3;return F(m,Dn(y,4),A,X,Xc)}function Bve(m,y){var A=Yn(m)?zd:ro;return A(m,Mk(Dn(y,3)))}function Uve(m){var y=Yn(m)?dS:dk;return y(m)}function zve(m,y,A){(A?Ps(m,y,A):y===n)?y=1:y=ir(y);var F=Yn(m)?Wl:x6;return F(m,y)}function jve(m){var y=Yn(m)?Za:fk;return y(m)}function Hve(m){if(m==null)return 0;if(ul(m))return Fk(m)?Np(m):m.length;var y=Ds(m);return y==ct||y==Ke?m.size:bS(m).length}function Qve(m,y,A){var F=Yn(m)?Cp:A6;return A&&Ps(m,y,A)&&(y=n),F(m,Dn(y,3))}var Wve=rr(function(m,y){if(m==null)return[];var A=y.length;return A>1&&Ps(m,y[0],y[1])?y=[]:A>2&&Ps(y[0],y[1],y[2])&&(y=[y[0]]),uk(m,qi(y,1),[])}),Pk=l6||function(){return Ba.Date.now()};function Vve(m,y){if(typeof y!="function")throw new kn(s);return m=ir(m),function(){if(--m<1)return y.apply(this,arguments)}}function cV(m,y,A){return y=A?n:y,y=m&&y==null?m.length:y,Di(m,P,n,n,n,n,y)}function dV(m,y){var A;if(typeof y!="function")throw new kn(s);return m=ir(m),function(){return--m>0&&(A=y.apply(this,arguments)),m<=1&&(y=n),A}}var $6=rr(function(m,y,A){var F=T;if(A.length){var X=Qc(A,cg($6));F|=R}return Di(m,F,y,A,X)}),fV=rr(function(m,y,A){var F=T|w;if(A.length){var X=Qc(A,cg(fV));F|=R}return Di(y,F,m,A,X)});function hV(m,y,A){y=A?n:y;var F=Di(m,k,n,n,n,n,n,y);return F.placeholder=hV.placeholder,F}function pV(m,y,A){y=A?n:y;var F=Di(m,_,n,n,n,n,n,y);return F.placeholder=pV.placeholder,F}function mV(m,y,A){var F,X,ue,ve,Ae,Be,mt=0,bt=!1,Et=!1,Kt=!0;if(typeof m!="function")throw new kn(s);y=Xu(y)||0,ia(A)&&(bt=!!A.leading,Et="maxWait"in A,ue=Et?Ei(Xu(A.maxWait)||0,y):ue,Kt="trailing"in A?!!A.trailing:Kt);function On(Ra){var id=F,Oh=X;return F=X=n,mt=Ra,ve=m.apply(Oh,id),ve}function Mn(Ra){return mt=Ra,Ae=Gn(br,y),bt?On(Ra):ve}function or(Ra){var id=Ra-Be,Oh=Ra-mt,PV=y-id;return Et?ra(PV,ue-Oh):PV}function $n(Ra){var id=Ra-Be,Oh=Ra-mt;return Be===n||id>=y||id<0||Et&&Oh>=ue}function br(){var Ra=Pk();if($n(Ra))return Ar(Ra);Ae=Gn(br,or(Ra))}function Ar(Ra){return Ae=n,Kt&&F?On(Ra):(F=X=n,ve)}function Yl(){Ae!==n&&bb(Ae),mt=0,F=Be=X=Ae=n}function Lo(){return Ae===n?ve:Ar(Pk())}function Zl(){var Ra=Pk(),id=$n(Ra);if(F=arguments,X=this,Be=Ra,id){if(Ae===n)return Mn(Be);if(Et)return bb(Ae),Ae=Gn(br,y),On(Be)}return Ae===n&&(Ae=Gn(br,y)),ve}return Zl.cancel=Yl,Zl.flush=Lo,Zl}var qve=rr(function(m,y){return Vl(m,1,y)}),Gve=rr(function(m,y,A){return Vl(m,Xu(y)||0,A)});function Yve(m){return Di(m,j)}function Lk(m,y){if(typeof m!="function"||y!=null&&typeof y!="function")throw new kn(s);var A=function(){var F=arguments,X=y?y.apply(this,F):F[0],ue=A.cache;if(ue.has(X))return ue.get(X);var ve=m.apply(this,F);return A.cache=ue.set(X,ve)||ue,ve};return A.cache=new(Lk.Cache||Yc),A}Lk.Cache=Yc;function Mk(m){if(typeof m!="function")throw new kn(s);return function(){var y=arguments;switch(y.length){case 0:return!m.call(this);case 1:return!m.call(this,y[0]);case 2:return!m.call(this,y[0],y[1]);case 3:return!m.call(this,y[0],y[1],y[2])}return!m.apply(this,y)}}function Zve(m){return dV(2,m)}var Xve=CS(function(m,y){y=y.length==1&&Yn(y[0])?ri(y[0],to(Dn())):ri(qi(y,1),to(Dn()));var A=y.length;return rr(function(F){for(var X=-1,ue=ra(F.length,A);++X=y}),hg=rk(function(){return arguments}())?rk:function(m){return ga(m)&&Zn.call(m,"callee")&&!lh.call(m,"callee")},Yn=Ge.isArray,fOe=GO?to(GO):v6;function ul(m){return m!=null&&$k(m.length)&&!yh(m)}function Ca(m){return ga(m)&&ul(m)}function hOe(m){return m===!0||m===!1||ga(m)&&ms(m)==We}var Yp=mr||Y6,pOe=YO?to(YO):O6;function mOe(m){return ga(m)&&m.nodeType===1&&!BS(m)}function gOe(m){if(m==null)return!0;if(ul(m)&&(Yn(m)||typeof m=="string"||typeof m.splice=="function"||Yp(m)||Sb(m)||hg(m)))return!m.length;var y=Ds(m);if(y==ct||y==Ke)return!m.size;if(D(m))return!bS(m).length;for(var A in m)if(Zn.call(m,A))return!1;return!0}function bOe(m,y){return Ym(m,y)}function yOe(m,y,A){A=typeof A=="function"?A:n;var F=A?A(m,y):n;return F===n?Ym(m,y,n,A):!!F}function B6(m){if(!ga(m))return!1;var y=ms(m);return y==it||y==xt||typeof m.message=="string"&&typeof m.name=="string"&&!BS(m)}function vOe(m){return typeof m=="number"&&kr(m)}function yh(m){if(!ia(m))return!1;var y=ms(m);return y==Pt||y==jt||y==Xe||y==_e}function bV(m){return typeof m=="number"&&m==ir(m)}function $k(m){return typeof m=="number"&&m>-1&&m%1==0&&m<=G}function ia(m){var y=typeof m;return m!=null&&(y=="object"||y=="function")}function ga(m){return m!=null&&typeof m=="object"}var yV=Lx?to(Lx):E6;function OOe(m,y){return m===y||mS(m,y,kk(y))}function SOe(m,y,A){return A=typeof A=="function"?A:n,mS(m,y,kk(y),A)}function EOe(m){return vV(m)&&m!=+m}function wOe(m){if(E(m))throw new Hn(a);return gS(m)}function TOe(m){return m===null}function xOe(m){return m==null}function vV(m){return typeof m=="number"||ga(m)&&ms(m)==Ot}function BS(m){if(!ga(m)||ms(m)!=Ut)return!1;var y=no(m);if(y===null)return!0;var A=Zn.call(y,"constructor")&&y.constructor;return typeof A=="function"&&A instanceof A&&Hu.call(A)==Hl}var U6=Mx?to(Mx):w6;function kOe(m){return bV(m)&&m>=-G&&m<=G}var OV=ZO?to(ZO):ik;function Fk(m){return typeof m=="string"||!Yn(m)&&ga(m)&&ms(m)==ut}function Gl(m){return typeof m=="symbol"||ga(m)&&ms(m)==Je}var Sb=$x?to($x):T6;function AOe(m){return m===n}function _Oe(m){return ga(m)&&Ds(m)==Jt}function COe(m){return ga(m)&&ms(m)==Fe}var ROe=sg(Zm),IOe=sg(function(m,y){return m<=y});function SV(m){if(!m)return[];if(ul(m))return Fk(m)?jl(m):Ns(m);if(Lp&&m[Lp])return iS(m[Lp]());var y=Ds(m),A=y==ct?sh:y==Ke?ju:Eb;return A(m)}function vh(m){if(!m)return m===0?m:0;if(m=Xu(m),m===K||m===-K){var y=m<0?-1:1;return y*ie}return m===m?m:0}function ir(m){var y=vh(m),A=y%1;return y===y?A?y-A:y:0}function EV(m){return m?No(ir(m),0,Re):0}function Xu(m){if(typeof m=="number")return m;if(Gl(m))return H;if(ia(m)){var y=typeof m.valueOf=="function"?m.valueOf():m;m=ia(y)?y+"":y}if(typeof m!="string")return m===0?m:+m;m=tS(m);var A=qe.test(m);return A||_t.test(m)?Hc(m.slice(2),A?2:8):at.test(m)?H:+m}function wV(m){return io(m,cl(m))}function NOe(m){return m?No(ir(m),-G,G):m===0?m:0}function Xr(m){return m==null?"":Do(m)}var DOe=ai(function(m,y){if(D(y)||ul(y)){io(y,bs(y),m);return}for(var A in y)Zn.call(y,A)&&fh(m,A,y[A])}),TV=ai(function(m,y){io(y,cl(y),m)}),Bk=ai(function(m,y,A,F){io(y,cl(y),m,F)}),POe=ai(function(m,y,A,F){io(y,bs(y),m,F)}),LOe=Yd(fS);function MOe(m,y){var A=fs(m);return y==null?A:Io(A,y)}var $Oe=rr(function(m,y){m=ii(m);var A=-1,F=y.length,X=F>2?y[2]:n;for(X&&Ps(y[0],y[1],X)&&(F=1);++A1),ue}),io(m,Tk(m),A),F&&(A=Is(A,f|p|g,PS));for(var X=y.length;X--;)eg(A,y[X]);return A});function tSe(m,y){return kV(m,Mk(Dn(y)))}var nSe=Yd(function(m,y){return m==null?{}:ck(m,y)});function kV(m,y){if(m==null)return{};var A=ri(Tk(m),function(F){return[F]});return y=Dn(y),Xm(m,A,function(F,X){return y(F,X[0])})}function rSe(m,y,A){y=Jc(y,m);var F=-1,X=y.length;for(X||(X=1,m=n);++Fy){var F=m;m=y,y=F}if(A||m%1||y%1){var X=Pm();return ra(m+X*(y-m+XI("1e-"+((X+"").length-1))),y)}return wS(m,y)}var pSe=gh(function(m,y,A){return y=y.toLowerCase(),m+(A?CV(y):y)});function CV(m){return H6(Xr(m).toLowerCase())}function RV(m){return m=Xr(m),m&&m.replace(jn,nS).replace(QI,"")}function mSe(m,y,A){m=Xr(m),y=Do(y);var F=m.length;A=A===n?F:No(ir(A),0,F);var X=A;return A-=y.length,A>=0&&m.slice(A,X)==y}function gSe(m){return m=Xr(m),m&&ji.test(m)?m.replace(Ni,rS):m}function bSe(m){return m=Xr(m),m&&Zr.test(m)?m.replace(nr,"\\$&"):m}var ySe=gh(function(m,y,A){return m+(A?"-":"")+y.toLowerCase()}),vSe=gh(function(m,y,A){return m+(A?" ":"")+y.toLowerCase()}),OSe=Ok("toLowerCase");function SSe(m,y,A){m=Xr(m),y=ir(y);var F=y?Np(m):0;if(!y||F>=y)return m;var X=(y-F)/2;return ag(db(X),A)+m+ag(cb(X),A)}function ESe(m,y,A){m=Xr(m),y=ir(y);var F=y?Np(m):0;return y&&F>>0,A?(m=Xr(m),m&&(typeof y=="string"||y!=null&&!U6(y))&&(y=Do(y),!y&&zu(m))?ed(jl(m),0,A):m.split(y,A)):[]}var CSe=gh(function(m,y,A){return m+(A?" ":"")+H6(y)});function RSe(m,y,A){return m=Xr(m),A=A==null?0:No(ir(A),0,m.length),y=Do(y),m.slice(A,A+y.length)==y}function ISe(m,y,A){var F=te.templateSettings;A&&Ps(m,y,A)&&(y=n),m=Xr(m),y=Bk({},y,F,lg);var X=Bk({},y.imports,F.imports,lg),ue=bs(X),ve=sb(X,ue),Ae,Be,mt=0,bt=y.interpolate||qn,Et="__p += '",Kt=aS((y.escape||qn).source+"|"+bt.source+"|"+(bt===Hi?Ie:qn).source+"|"+(y.evaluate||qn).source+"|$","g"),On="//# sourceURL="+(Zn.call(y,"sourceURL")?(y.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++VI+"]")+` +`;m.replace(Kt,function($n,br,Ar,Yl,Lo,Zl){return Ar||(Ar=Yl),Et+=m.slice(mt,Zl).replace(Wi,Wx),br&&(Ae=!0,Et+=`' + +__e(`+br+`) + +'`),Lo&&(Be=!0,Et+=`'; +`+Lo+`; +__p += '`),Ar&&(Et+=`' + ((__t = (`+Ar+`)) == null ? '' : __t) + -'`),bt=eu+Bn.length,Bn}),Tt+=`'; -`;var Fn=Kn.call(v,"variable")&&v.variable;if(!Fn)Tt=`with (obj) { -`+Tt+` +'`),mt=Zl+$n.length,$n}),Et+=`'; +`;var Mn=Zn.call(y,"variable")&&y.variable;if(!Mn)Et=`with (obj) { +`+Et+` } -`;else if(gt.test(Fn))throw new Wn(o);Tt=(Be?Tt.replace(br,""):Tt).replace(Mr,"$1").replace(Rr,"$1;"),Tt="function("+(Fn||"obj")+`) { -`+(Fn?"":`obj || (obj = {}); +`;else if(pt.test(Mn))throw new Hn(o);Et=(Be?Et.replace(pr,""):Et).replace(Mr,"$1").replace(Rr,"$1;"),Et="function("+(Mn||"obj")+`) { +`+(Mn?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(Ae?", __e = _.escape":"")+(Be?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; -`)+Tt+`return __p -}`;var ur=jV(function(){return $r(ue,Sn+"return "+Tt).apply(n,ve)});if(ur.source=Tt,V6(ur))throw ur;return ur}function HSe(m){return ei(m).toLowerCase()}function QSe(m){return ei(m).toUpperCase()}function WSe(m,v,A){if(m=ei(m),m&&(A||v===n))return dS(m);if(!m||!(v=ao(v)))return m;var F=Hl(m),X=Hl(v),ue=ab(F,X),ve=Mm(F,X)+1;return li(F,ue,ve).join("")}function VSe(m,v,A){if(m=ei(m),m&&(A||v===n))return m.slice(0,Wx(m)+1);if(!m||!(v=ao(v)))return m;var F=Hl(m),X=Mm(F,Hl(v))+1;return li(F,0,X).join("")}function qSe(m,v,A){if(m=ei(m),m&&(A||v===n))return m.replace(ze,"");if(!m||!(v=ao(v)))return m;var F=Hl(m),X=ab(F,Hl(v));return li(F,X).join("")}function GSe(m,v){var A=B,F=V;if(aa(v)){var X="separator"in v?v.separator:X;A="length"in v?ar(v.length):A,F="omission"in v?ao(v.omission):F}m=ei(m);var ue=m.length;if(Qu(m)){var ve=Hl(m);ue=ve.length}if(A>=ue)return m;var Ae=A-Fp(F);if(Ae<1)return F;var Be=ve?li(ve,0,Ae).join(""):m.slice(0,Ae);if(X===n)return Be+F;if(ve&&(Ae+=Be.length-Ae),q6(X)){if(m.slice(Ae).search(X)){var bt,vt=Be;for(X.global||(X=mS(X.source,ei(Te.exec(X))+"g")),X.lastIndex=0;bt=X.exec(vt);)var Tt=bt.index;Be=Be.slice(0,Tt===n?Ae:Tt)}}else if(m.indexOf(ao(X),Ae)!=Ae){var en=Be.lastIndexOf(X);en>-1&&(Be=Be.slice(0,en))}return Be+F}function YSe(m){return m=ei(m),m&&bi.test(m)?m.replace(Yr,i6):m}var ZSe=Eh(function(m,v,A){return m+(A?" ":"")+v.toUpperCase()}),Z6=Sk("toUpperCase");function zV(m,v,A){return m=ei(m),v=A?n:v,v===n?t6(m)?o6(m):zx(m):m.match(v)||[]}var jV=Jn(function(m,v){try{return Ys(m,n,v)}catch(A){return V6(A)?A:new Wn(A)}}),XSe=Kd(function(m,v){return tl(v,function(A){A=ps(A),ro(m,A,Q6(m[A],m))}),m});function KSe(m){var v=m==null?0:m.length,A=Dn();return m=v?si(m,function(F){if(typeof F[1]!="function")throw new _n(s);return[A(F[0]),F[1]]}):[],Jn(function(F){for(var X=-1;++XG)return[];var A=Re,F=ia(m,Re);v=Dn(v),m-=Re;for(var X=rb(F,v);++A0||v<0)?new $n(A):(m<0?A=A.takeRight(-m):m&&(A=A.drop(m)),v!==n&&(v=ar(v),A=v<0?A.dropRight(-v):A.take(v-m)),A)},$n.prototype.takeRightWhile=function(m){return this.reverse().takeWhile(m).reverse()},$n.prototype.toArray=function(){return this.take(Re)},Zl($n.prototype,function(m,v){var A=/^(?:filter|find|map|reject)|While$/.test(v),F=/^(?:head|last)$/.test(v),X=ne[F?"take"+(v=="last"?"Right":""):v],ue=F||/^find/.test(v);X&&(ne.prototype[v]=function(){var ve=this.__wrapped__,Ae=F?[1]:arguments,Be=ve instanceof $n,bt=Ae[0],vt=Be||Xn(ve),Tt=function(yr){var Ar=X.apply(ne,Hd([yr],Ae));return F&&en?Ar[0]:Ar};vt&&A&&typeof bt=="function"&&bt.length!=1&&(Be=vt=!1);var en=this.__chain__,Sn=!!this.__actions__.length,Fn=ue&&!en,ur=Be&&!Sn;if(!ue&&vt){ve=ur?ve:new $n(this);var Bn=m.apply(ve,Ae);return Bn.__actions__.push({func:Nk,args:[Tt],thisArg:n}),new fs(Bn,en)}return Fn&&ur?m.apply(this,Ae):(Bn=this.thru(Tt),Fn?F?Bn.value()[0]:Bn.value():Bn)})}),tl(["pop","push","shift","sort","splice","unshift"],function(m){var v=ka[m],A=/^(?:push|sort|unshift)$/.test(m)?"tap":"thru",F=/^(?:pop|shift)$/.test(m);ne.prototype[m]=function(){var X=arguments;if(F&&!this.__chain__){var ue=this.value();return v.apply(Xn(ue)?ue:[],X)}return this[A](function(ve){return v.apply(Xn(ve)?ve:[],X)})}}),Zl($n.prototype,function(m,v){var A=ne[v];if(A){var F=A.name+"";Kn.call(Gu,F)||(Gu[F]=[]),Gu[F].push({name:v,func:A})}}),Gu[Yu(n,w).name]=[{name:"wrapper",func:n}],$n.prototype.clone=qd,$n.prototype.reverse=ph,$n.prototype.value=Hm,ne.prototype.at=kve,ne.prototype.chain=Ave,ne.prototype.commit=_ve,ne.prototype.next=Cve,ne.prototype.plant=Ive,ne.prototype.reverse=Nve,ne.prototype.toJSON=ne.prototype.valueOf=ne.prototype.value=Dve,ne.prototype.first=ne.prototype.head,zp&&(ne.prototype[zp]=Rve),ne},Bp=l6();oh?((oh.exports=Bp)._=Bp,K1._=Bp):$a._=Bp}).call(yf)})(E3,E3.exports);var _et=E3.exports;const Cet=Nu(_et),Ret=Kt.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"}}),Iet=Ld.define();class Net extends Md{constructor(n,r){super();Cs(this,"color");Cs(this,"name");this.color=n,this.name=r}toDOM(){return g_("span",[Hg("class","cm-ySelectionCaret"),Hg("style",`background-color: ${this.color}; border-color: ${this.color}`)],[KA("⁠"),g_("div",[Hg("class","cm-ySelectionCaretDot")]),KA("⁠"),g_("div",[Hg("class","cm-ySelectionInfo")],[KA(this.name)]),KA("⁠")])}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 Det{constructor(t){Cs(this,"conf");Cs(this,"decorations");Cs(this,"unsubscribe");this.conf=t.state.facet(aU),this.unsubscribe=this.conf.doc.subscribe("others",n=>{["presence-changed","unwatched"].includes(n.type)&&t.dispatch({annotations:[Iet.of([])]})}),this.decorations=Cr.of([])}destroy(){this.unsubscribe()}update(t){const n=[];this.conf.doc.update((r,i)=>{const s=t.view.hasFocus&&t.view.dom.ownerDocument.hasFocus()?t.state.selection.main:null;if(s&&r.content){const o=r.content.indexRangeToPosRange([s.anchor,s.head]),l=r.content.posRangeToIndexRange(o);Cet.isEqual(o,i.get("selection"))||i.set({selection:o,cursor:l})}else i.get("selection")&&i.set({selection:null,cursor:null})}),this.conf.doc.getPresences().forEach(r=>{if(r.clientID===this.conf.client.getID()||r.presence.selection==null)return;const i=this.conf.doc.getRoot().content.posRangeToIndexRange(r.presence.selection),a=r.presence.color,s=r.presence.name,o=Math.min(i[0],i[1]),l=Math.max(i[0],i[1]),u=t.view.state.doc.lineAt(o),d=t.view.state.doc.lineAt(l);if(u.number===d.number)n.push({from:o,to:l,value:gn.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})});else{n.push({from:o,to:u.from+u.length,value:gn.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})}),n.push({from:d.from,to:l,value:gn.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})});for(let f=u.number+1;f0?-1:1,block:!1,widget:new Net(a,s)})})}),this.decorations=gn.set(n,!0)}}const Pet=ha.fromClass(Det,{decorations:e=>e.decorations});function Let(e,t){const n=new xet(e,t),r=[aU.of(n),Aet];return t&&r.push(Ret,Pet),r}const Met={toggleButton:{width:"25px",height:"25px",border:"none",fontWeight:"bold"}};function JA({title:e,children:t,...n}){return I.jsx(B0,{title:e,placement:"top",children:I.jsx(V4,{sx:Met.toggleButton,...n,children:t})})}var VR={exports:{}},a0e={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",Ợ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ủ:"U",Ụ:"U",Ử:"U",Ữ:"U",Ự:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",ậ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ẻ:"e",ẽ:"e",ẹ:"e",ể:"e",ễ:"e",ệ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ỉ:"i",ị:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ỏ:"o",ọ:"o",ổ:"o",ỗ:"o",ộ:"o",ờ:"o",ở:"o",ỡ:"o",ớ:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",ủ:"u",ụ:"u",ử:"u",ữ:"u",ự:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},s0e=Object.keys(a0e).join("|"),$et=new RegExp(s0e,"g"),Fet=new RegExp(s0e,"");function Bet(e){return a0e[e]}var o0e=function(e){return e.replace($et,Bet)},Uet=function(e){return!!e.match(Fet)};VR.exports=o0e;VR.exports.has=Uet;VR.exports.remove=o0e;var zet=VR.exports;const jet=Nu(zet);/** +`)+Et+`return __p +}`;var or=NV(function(){return $r(ue,On+"return "+Et).apply(n,ve)});if(or.source=Et,B6(or))throw or;return or}function NSe(m){return Xr(m).toLowerCase()}function DSe(m){return Xr(m).toUpperCase()}function PSe(m,y,A){if(m=Xr(m),m&&(A||y===n))return tS(m);if(!m||!(y=Do(y)))return m;var F=jl(m),X=jl(y),ue=ob(F,X),ve=Cm(F,X)+1;return ed(F,ue,ve).join("")}function LSe(m,y,A){if(m=Xr(m),m&&(A||y===n))return m.slice(0,Vx(m)+1);if(!m||!(y=Do(y)))return m;var F=jl(m),X=Cm(F,jl(y))+1;return ed(F,0,X).join("")}function MSe(m,y,A){if(m=Xr(m),m&&(A||y===n))return m.replace(ze,"");if(!m||!(y=Do(y)))return m;var F=jl(m),X=ob(F,jl(y));return ed(F,X).join("")}function $Se(m,y){var A=B,F=V;if(ia(y)){var X="separator"in y?y.separator:X;A="length"in y?ir(y.length):A,F="omission"in y?Do(y.omission):F}m=Xr(m);var ue=m.length;if(zu(m)){var ve=jl(m);ue=ve.length}if(A>=ue)return m;var Ae=A-Np(F);if(Ae<1)return F;var Be=ve?ed(ve,0,Ae).join(""):m.slice(0,Ae);if(X===n)return Be+F;if(ve&&(Ae+=Be.length-Ae),U6(X)){if(m.slice(Ae).search(X)){var mt,bt=Be;for(X.global||(X=aS(X.source,Xr(Te.exec(X))+"g")),X.lastIndex=0;mt=X.exec(bt);)var Et=mt.index;Be=Be.slice(0,Et===n?Ae:Et)}}else if(m.indexOf(Do(X),Ae)!=Ae){var Kt=Be.lastIndexOf(X);Kt>-1&&(Be=Be.slice(0,Kt))}return Be+F}function FSe(m){return m=Xr(m),m&&hi.test(m)?m.replace(Yr,n6):m}var BSe=gh(function(m,y,A){return m+(A?" ":"")+y.toUpperCase()}),H6=Ok("toUpperCase");function IV(m,y,A){return m=Xr(m),y=A?n:y,y===n?JI(m)?a6(m):jx(m):m.match(y)||[]}var NV=rr(function(m,y){try{return eo(m,n,y)}catch(A){return B6(A)?A:new Hn(A)}}),USe=Yd(function(m,y){return rl(y,function(A){A=gs(A),ps(m,A,$6(m[A],m))}),m});function zSe(m){var y=m==null?0:m.length,A=Dn();return m=y?ri(m,function(F){if(typeof F[1]!="function")throw new kn(s);return[A(F[0]),F[1]]}):[],rr(function(F){for(var X=-1;++XG)return[];var A=Re,F=ra(m,Re);y=Dn(y),m-=Re;for(var X=ab(F,y);++A0||y<0)?new Cn(A):(m<0?A=A.takeRight(-m):m&&(A=A.drop(m)),y!==n&&(y=ir(y),A=y<0?A.dropRight(-y):A.take(y-m)),A)},Cn.prototype.takeRightWhile=function(m){return this.reverse().takeWhile(m).reverse()},Cn.prototype.toArray=function(){return this.take(Re)},qu(Cn.prototype,function(m,y){var A=/^(?:filter|find|map|reject)|While$/.test(y),F=/^(?:head|last)$/.test(y),X=te[F?"take"+(y=="last"?"Right":""):y],ue=F||/^find/.test(y);X&&(te.prototype[y]=function(){var ve=this.__wrapped__,Ae=F?[1]:arguments,Be=ve instanceof Cn,mt=Ae[0],bt=Be||Yn(ve),Et=function(br){var Ar=X.apply(te,jd([br],Ae));return F&&Kt?Ar[0]:Ar};bt&&A&&typeof mt=="function"&&mt.length!=1&&(Be=bt=!1);var Kt=this.__chain__,On=!!this.__actions__.length,Mn=ue&&!Kt,or=Be&&!On;if(!ue&&bt){ve=or?ve:new Cn(this);var $n=m.apply(ve,Ae);return $n.__actions__.push({func:Nk,args:[Et],thisArg:n}),new hs($n,Kt)}return Mn&&or?m.apply(this,Ae):($n=this.thru(Et),Mn?F?$n.value()[0]:$n.value():$n)})}),rl(["pop","push","shift","sort","splice","unshift"],function(m){var y=ka[m],A=/^(?:push|sort|unshift)$/.test(m)?"tap":"thru",F=/^(?:pop|shift)$/.test(m);te.prototype[m]=function(){var X=arguments;if(F&&!this.__chain__){var ue=this.value();return y.apply(Yn(ue)?ue:[],X)}return this[A](function(ve){return y.apply(Yn(ve)?ve:[],X)})}}),qu(Cn.prototype,function(m,y){var A=te[y];if(A){var F=A.name+"";Zn.call(sl,F)||(sl[F]=[]),sl[F].push({name:y,func:A})}}),sl[Gu(n,w).name]=[{name:"wrapper",func:n}],Cn.prototype.clone=wi,Cn.prototype.reverse=fb,Cn.prototype.value=$m,te.prototype.at=mve,te.prototype.chain=gve,te.prototype.commit=bve,te.prototype.next=yve,te.prototype.plant=Ove,te.prototype.reverse=Sve,te.prototype.toJSON=te.prototype.valueOf=te.prototype.value=Eve,te.prototype.first=te.prototype.head,Lp&&(te.prototype[Lp]=vve),te},Dp=s6();ih?((ih.exports=Dp)._=Dp,eb._=Dp):Ba._=Dp}).call(pf)})(OC,OC.exports);var fet=OC.exports;const het=Cu(fet),pet=en.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"}}),met=Pd.define();class get extends Ld{constructor(n,r){super();Ls(this,"color");Ls(this,"name");this.color=n,this.name=r}toDOM(){return g_("span",[Vg("class","cm-ySelectionCaret"),Vg("style",`background-color: ${this.color}; border-color: ${this.color}`)],[KA("⁠"),g_("div",[Vg("class","cm-ySelectionCaretDot")]),KA("⁠"),g_("div",[Vg("class","cm-ySelectionInfo")],[KA(this.name)]),KA("⁠")])}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 bet{constructor(t){Ls(this,"conf");Ls(this,"decorations");Ls(this,"unsubscribe");this.conf=t.state.facet(GB),this.unsubscribe=this.conf.doc.subscribe("others",n=>{["presence-changed","unwatched"].includes(n.type)&&t.dispatch({annotations:[met.of([])]})}),this.decorations=Cr.of([])}destroy(){this.unsubscribe()}update(t){const n=[];this.conf.doc.update((r,i)=>{const s=t.view.hasFocus&&t.view.dom.ownerDocument.hasFocus()?t.state.selection.main:null;if(s&&r.content){const o=r.content.indexRangeToPosRange([s.anchor,s.head]),l=r.content.posRangeToIndexRange(o);het.isEqual(o,i.get("selection"))||i.set({selection:o,cursor:l})}else i.get("selection")&&i.set({selection:null,cursor:null})}),this.conf.doc.getPresences().forEach(r=>{if(r.clientID===this.conf.client.getID()||r.presence.selection==null)return;const i=this.conf.doc.getRoot().content.posRangeToIndexRange(r.presence.selection),a=r.presence.color,s=r.presence.name,o=Math.min(i[0],i[1]),l=Math.max(i[0],i[1]),u=t.view.state.doc.lineAt(o),d=t.view.state.doc.lineAt(l);if(u.number===d.number)n.push({from:o,to:l,value:vn.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})});else{n.push({from:o,to:u.from+u.length,value:vn.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})}),n.push({from:d.from,to:l,value:vn.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})});for(let f=u.number+1;f0?-1:1,block:!1,widget:new get(a,s)})})}),this.decorations=vn.set(n,!0)}}const yet=fa.fromClass(bet,{decorations:e=>e.decorations});function vet(e,t){const n=new uet(e,t),r=[GB.of(n),det];return t&&r.push(pet,yet),r}const Oet={toggleButton:{width:"25px",height:"25px",border:"none",fontWeight:"bold"}};function JA({title:e,children:t,...n}){return I.jsx(I0,{title:e,placement:"top",children:I.jsx(V4,{sx:Oet.toggleButton,...n,children:t})})}var QR={exports:{}},Ype={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",Ợ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ủ:"U",Ụ:"U",Ử:"U",Ữ:"U",Ự:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",ậ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ẻ:"e",ẽ:"e",ẹ:"e",ể:"e",ễ:"e",ệ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ỉ:"i",ị:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ỏ:"o",ọ:"o",ổ:"o",ỗ:"o",ộ:"o",ờ:"o",ở:"o",ỡ:"o",ớ:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",ủ:"u",ụ:"u",ử:"u",ữ:"u",ự:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},Zpe=Object.keys(Ype).join("|"),Eet=new RegExp(Zpe,"g"),wet=new RegExp(Zpe,"");function Tet(e){return Ype[e]}var Xpe=function(e){return e.replace(Eet,Tet)},xet=function(e){return!!e.match(wet)};QR.exports=Xpe;QR.exports.has=xet;QR.exports.remove=Xpe;var ket=QR.exports;const Aet=Cu(ket);/** * @name match-sorter * @license MIT license. * @copyright (c) 2020 Kent C. Dodds * @author Kent C. Dodds (https://kentcdodds.com) - */const Ho={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0},Het=(e,t)=>String(e.rankedValue).localeCompare(String(t.rankedValue));function l0e(e,t,n){n===void 0&&(n={});const{keys:r,threshold:i=Ho.MATCHES,baseSort:a=Het,sorter:s=u=>u.sort((d,f)=>qet(d,f,a))}=n,o=e.reduce(l,[]);return s(o).map(u=>{let{item:d}=u;return d});function l(u,d,f){const p=Qet(d,r,t,n),{rank:g,keyThreshold:O=i}=p;return g>=O&&u.push({...p,item:d,index:f}),u}}l0e.rankings=Ho;function Qet(e,t,n,r){if(!t){const a=e;return{rankedValue:a,rank:jJ(a,n,r),keyIndex:-1,keyThreshold:r.threshold}}return Zet(e,t).reduce((a,s,o)=>{let{rank:l,rankedValue:u,keyIndex:d,keyThreshold:f}=a,{itemValue:p,attributes:g}=s,O=jJ(p,n,r),S=u;const{minRanking:T,maxRanking:w,threshold:x}=g;return O=Ho.MATCHES?O=T:O>w&&(O=w),O>l&&(l=O,d=o,f=x,S=p),{rankedValue:S,rank:l,keyIndex:d,keyThreshold:f}},{rankedValue:e,rank:Ho.NO_MATCH,keyIndex:-1,keyThreshold:r.threshold})}function jJ(e,t,n){return e=HJ(e,n),t=HJ(t,n),t.length>e.length?Ho.NO_MATCH:e===t?Ho.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?Ho.EQUAL:e.startsWith(t)?Ho.STARTS_WITH:e.includes(` ${t}`)?Ho.WORD_STARTS_WITH:e.includes(t)?Ho.CONTAINS:t.length===1?Ho.NO_MATCH:Wet(e).includes(t)?Ho.ACRONYM:Vet(e,t))}function Wet(e){let t="";return e.split(" ").forEach(r=>{r.split("-").forEach(a=>{t+=a.substr(0,1)})}),t}function Vet(e,t){let n=0,r=0;function i(l,u,d){for(let f=d,p=u.length;f-1))return Ho.NO_MATCH}const o=r-s;return a(o)}function qet(e,t,n){const{rank:a,keyIndex:s}=e,{rank:o,keyIndex:l}=t;return a===o?s===l?n(e,t):so?-1:1}function HJ(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=jet(e)),e}function Get(e,t){typeof t=="object"&&(t=t.key);let n;if(typeof t=="function")n=t(e);else if(e==null)n=null;else if(Object.hasOwnProperty.call(e,t))n=e[t];else{if(t.includes("."))return Yet(t,e);n=null}return n==null?[]:Array.isArray(n)?n:[String(n)]}function Yet(e,t){const n=e.split(".");let r=[t];for(let i=0,a=n.length;i{var l;return l0e(((l=n.yorkieIntelligence)==null?void 0:l.config.features)??[],r,{keys:["title","feature"]})},[r,(o=n.yorkieIntelligence)==null?void 0:o.config.features]),s=l=>{i(l.target.value)};return I.jsxs(zn,{children:[I.jsx(vT,{placeholder:"Choose from below",size:"small",sx:{width:1},value:r,onChange:s}),I.jsx(uw,{children:a.map(l=>I.jsxs(Od,{onClick:()=>t(l.feature,l.title),children:[I.jsx(r1,{children:I.jsx(uoe,{children:I.jsx("img",{src:l.icon,alt:l.title})})}),I.jsx(Kh,{children:l.title})]},l.feature))})]})}var sU={},Jet=Pi;Object.defineProperty(sU,"__esModule",{value:!0});var u0e=sU.default=void 0,ett=Jet(na()),ttt=I;u0e=sU.default=(0,ett.default)((0,ttt.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh");var oU={},ntt=Pi;Object.defineProperty(oU,"__esModule",{value:!0});var c0e=oU.default=void 0,rtt=ntt(na()),itt=I;c0e=oU.default=(0,rtt.default)((0,itt.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");const att=e=>{var p;const t=Pr(YT),n=Pr(mR),[r,i]=M.useState(null),[a,s]=M.useState(null),[o,l]=M.useState(!1),[u,d]=M.useState(!1),f=M.useCallback(async g=>{var x,k;l(!0),d(!1),s(null),i(null);const S=(k=(await fetch(`https://codepair-api.yorkie.dev/intelligence/${e}`,{method:"POST",headers:{Authorization:`Bearer ${t.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify({documentId:(x=n.data)==null?void 0:x.id,content:g})})).body)==null?void 0:k.getReader();let T=!0,w="";for(;S;){const{done:_,value:R}=await S.read();if(l(!1),_)break;let N=new TextDecoder().decode(R);if(T){const D=N.split(` -`);s(D[0]),T=!1,N=D.slice(1).join(` -`)}w+=N,i(w)}d(!0)},[t.accessToken,(p=n.data)==null?void 0:p.id,e]);return{data:r,memoryKey:a,isLoading:o,isComplete:u,mutateAsync:f}},stt=e=>{var d;const t=Pr(YT),n=Pr(mR),[r,i]=M.useState(null),[a,s]=M.useState(!1),[o,l]=M.useState(!1),u=M.useCallback(async f=>{var S,T;if(!e)return;s(!0),l(!1),i(null);const g=(T=(await fetch("https://codepair-api.yorkie.dev/intelligence",{method:"POST",headers:{Authorization:`Bearer ${t.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify({documentId:(S=n.data)==null?void 0:S.id,memoryKey:e,content:f})})).body)==null?void 0:T.getReader();let O="";for(;g;){const{done:w,value:x}=await g.read();if(s(!1),w)break;const k=new TextDecoder().decode(x);O+=k,i(O)}l(!0)},[t.accessToken,(d=n.data)==null?void 0:d.id,e]);return{data:r,memoryKey:e,isLoading:a,isComplete:o,mutateAsync:u}},IO=function(e){if(e==null)return ctt;if(typeof e=="function")return qR(e);if(typeof e=="object")return Array.isArray(e)?ott(e):ltt(e);if(typeof e=="string")return utt(e);throw new Error("Expected function, string, or object as test")};function ott(e){const t=[];let n=-1;for(;++n":""))+")"})}return p;function p(){let g=d0e,O,S,T;if((!t||a(l,u,d[d.length-1]||void 0))&&(g=htt(n(l,d)),g[0]===w3))return g;if("children"in l&&l.children){const w=l;if(w.children&&g[0]!==Ky)for(S=(r?w.children.length:-1)+s,T=d.concat(w);S>-1&&S0&&d.length===0)return}const f={};let p;for(p in o)mtt.call(o,p)&&(f[p]=p==="children"?d:o[p]);return f}}function btt(e){return"children"in e&&e.children!==void 0}var qL={exports:{}};(function(e,t){function n(r){let i=[],a;for(let s of r.split(",").map(o=>o.trim()))if(/^-?\d+$/.test(s))i.push(parseInt(s,10));else if(a=s.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[o,l,u,d]=a;if(l&&d){l=parseInt(l),d=parseInt(d);const f=l]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}Bd.displayName="c";Bd.aliases=[];function Bd(e){e.register(wr),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}$1.displayName="cpp";$1.aliases=[];function $1(e){e.register(Bd),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)}GR.displayName="arduino";GR.aliases=["ino"];function GR(e){e.register($1),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}ZT.displayName="bash";ZT.aliases=["sh","shell"];function ZT(e){(function(t){var n="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},i={bash:r,environment:{pattern:RegExp("\\$"+n),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+n),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+n),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:i},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:i},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:i.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:i.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=t.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],s=i.variable[1].inside,o=0;o>/g,function(Se,Z){return"(?:"+Re[+Z]+")"})}function r(H,Re,Se){return RegExp(n(H,Re),"")}function i(H,Re){for(var Se=0;Se>/g,function(){return"(?:"+H+")"});return H.replace(/<>/g,"[^\\s\\S]")}var a={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function s(H){return"\\b(?:"+H.trim().replace(/ /g,"|")+")\\b"}var o=s(a.typeDeclaration),l=RegExp(s(a.type+" "+a.typeDeclaration+" "+a.contextual+" "+a.other)),u=s(a.typeDeclaration+" "+a.contextual+" "+a.other),d=s(a.type+" "+a.typeDeclaration+" "+a.other),f=i(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),p=i(/\((?:[^()]|<>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,O=n(/<<0>>(?:\s*<<1>>)?/.source,[g,f]),S=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[u,O]),T=/\[\s*(?:,\s*)*\]/.source,w=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[S,T]),x=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[f,p,T]),k=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[x]),_=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[k,S,T]),R={keyword:l,punctuation:/[<>()?,.:[\]]/},N=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,D=/"(?:\\.|[^\\"\r\n])*"/.source,L=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[L]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[D]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[S]),lookbehind:!0,inside:R},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,_]),lookbehind:!0,inside:R},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[o,O]),lookbehind:!0,inside:R},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[S]),lookbehind:!0,inside:R},{pattern:r(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[w]),lookbehind:!0,inside:R},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[_,d,g]),inside:R}],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,[g]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),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:R},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[_,S]),inside:R,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[_]),lookbehind:!0,inside:R,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,f]),inside:{function:r(/^<<0>>/.source,[g]),generic:{pattern:RegExp(f),alias:"class-name",inside:R}}},"type-list":{pattern:r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[o,O,g,_,l.source,p,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[O,p]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:l,"class-name":{pattern:RegExp(_),greedy:!0,inside:R},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 j=D+"|"+N,B=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[j]),V=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[B]),2),W=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,re=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[S,V]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[W,re]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[W]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[V]),inside:t.languages.csharp},"class-name":{pattern:RegExp(S),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var ee=/:[^}\r\n]+/.source,q=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[B]),2),te=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[q,ee]),K=i(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[j]),2),G=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[K,ee]);function ie(H,Re){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[H]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[Re,ee]),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,[te]),lookbehind:!0,greedy:!0,inside:ie(te,q)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[G]),lookbehind:!0,greedy:!0,inside:ie(G,K)}],char:{pattern:RegExp(N),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp}(e)}Ts.displayName="markup";Ts.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function Ts(e){e.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var i={};i["language-"+r]={pattern:/(^$)/i,lookbehind:!0,inside:e.languages[r]},i.cdata=/^$/i;var a={"included-cdata":{pattern://i,inside:i}};a["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var s={};s[n]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:a},e.languages.insertBefore("markup","cdata",s)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}Im.displayName="css";Im.aliases=[];function Im(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)}YR.displayName="diff";YR.aliases=[];function YR(e){(function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var n={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(n).forEach(function(r){var i=n[r],a=[];/^\w+$/.test(r)||a.push(/\w+/.exec(r)[0]),r==="diff"&&a.push("bold"),t.languages.diff[r]={pattern:RegExp("^(?:["+i+`].*(?:\r + */const Wo={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0},_et=(e,t)=>String(e.rankedValue).localeCompare(String(t.rankedValue));function Kpe(e,t,n){n===void 0&&(n={});const{keys:r,threshold:i=Wo.MATCHES,baseSort:a=_et,sorter:s=u=>u.sort((d,f)=>Net(d,f,a))}=n,o=e.reduce(l,[]);return s(o).map(u=>{let{item:d}=u;return d});function l(u,d,f){const p=Cet(d,r,t,n),{rank:g,keyThreshold:O=i}=p;return g>=O&&u.push({...p,item:d,index:f}),u}}Kpe.rankings=Wo;function Cet(e,t,n,r){if(!t){const a=e;return{rankedValue:a,rank:DJ(a,n,r),keyIndex:-1,keyThreshold:r.threshold}}return Let(e,t).reduce((a,s,o)=>{let{rank:l,rankedValue:u,keyIndex:d,keyThreshold:f}=a,{itemValue:p,attributes:g}=s,O=DJ(p,n,r),S=u;const{minRanking:T,maxRanking:w,threshold:x}=g;return O=Wo.MATCHES?O=T:O>w&&(O=w),O>l&&(l=O,d=o,f=x,S=p),{rankedValue:S,rank:l,keyIndex:d,keyThreshold:f}},{rankedValue:e,rank:Wo.NO_MATCH,keyIndex:-1,keyThreshold:r.threshold})}function DJ(e,t,n){return e=PJ(e,n),t=PJ(t,n),t.length>e.length?Wo.NO_MATCH:e===t?Wo.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?Wo.EQUAL:e.startsWith(t)?Wo.STARTS_WITH:e.includes(` ${t}`)?Wo.WORD_STARTS_WITH:e.includes(t)?Wo.CONTAINS:t.length===1?Wo.NO_MATCH:Ret(e).includes(t)?Wo.ACRONYM:Iet(e,t))}function Ret(e){let t="";return e.split(" ").forEach(r=>{r.split("-").forEach(a=>{t+=a.substr(0,1)})}),t}function Iet(e,t){let n=0,r=0;function i(l,u,d){for(let f=d,p=u.length;f-1))return Wo.NO_MATCH}const o=r-s;return a(o)}function Net(e,t,n){const{rank:a,keyIndex:s}=e,{rank:o,keyIndex:l}=t;return a===o?s===l?n(e,t):so?-1:1}function PJ(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=Aet(e)),e}function Det(e,t){typeof t=="object"&&(t=t.key);let n;if(typeof t=="function")n=t(e);else if(e==null)n=null;else if(Object.hasOwnProperty.call(e,t))n=e[t];else{if(t.includes("."))return Pet(t,e);n=null}return n==null?[]:Array.isArray(n)?n:[String(n)]}function Pet(e,t){const n=e.split(".");let r=[t];for(let i=0,a=n.length;i{var l;return Kpe(((l=n.yorkieIntelligence)==null?void 0:l.config.features)??[],r,{keys:["title","feature"]})},[r,(o=n.yorkieIntelligence)==null?void 0:o.config.features]),s=l=>{i(l.target.value)};return I.jsxs(Bn,{children:[I.jsx(ST,{placeholder:"Choose from below",size:"small",sx:{width:1},value:r,onChange:s}),I.jsx(dw,{children:a.map(l=>I.jsxs(Od,{onClick:()=>t(l.feature,l.title),children:[I.jsx(s1,{children:I.jsx(eoe,{children:I.jsx("img",{src:l.icon,alt:l.title})})}),I.jsx(Vh,{children:l.title})]},l.feature))})]})}var YB={},Fet=Ii;Object.defineProperty(YB,"__esModule",{value:!0});var Jpe=YB.default=void 0,Bet=Fet(ta()),Uet=I;Jpe=YB.default=(0,Bet.default)((0,Uet.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh");var ZB={},zet=Ii;Object.defineProperty(ZB,"__esModule",{value:!0});var e0e=ZB.default=void 0,jet=zet(ta()),Het=I;e0e=ZB.default=(0,jet.default)((0,Het.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");const Qet=e=>{var p;const t=Pr(ZT),n=Pr(hR),[r,i]=M.useState(null),[a,s]=M.useState(null),[o,l]=M.useState(!1),[u,d]=M.useState(!1),f=M.useCallback(async g=>{var x,k;l(!0),d(!1),s(null),i(null);const S=(k=(await fetch(`https://codepair-api.yorkie.dev/intelligence/${e}`,{method:"POST",headers:{Authorization:`Bearer ${t.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify({documentId:(x=n.data)==null?void 0:x.id,content:g})})).body)==null?void 0:k.getReader();let T=!0,w="";for(;S;){const{done:_,value:R}=await S.read();if(l(!1),_)break;let N=new TextDecoder().decode(R);if(T){const P=N.split(` +`);s(P[0]),T=!1,N=P.slice(1).join(` +`)}w+=N,i(w)}d(!0)},[t.accessToken,(p=n.data)==null?void 0:p.id,e]);return{data:r,memoryKey:a,isLoading:o,isComplete:u,mutateAsync:f}},Wet=e=>{var d;const t=Pr(ZT),n=Pr(hR),[r,i]=M.useState(null),[a,s]=M.useState(!1),[o,l]=M.useState(!1),u=M.useCallback(async f=>{var S,T;if(!e)return;s(!0),l(!1),i(null);const g=(T=(await fetch("https://codepair-api.yorkie.dev/intelligence",{method:"POST",headers:{Authorization:`Bearer ${t.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify({documentId:(S=n.data)==null?void 0:S.id,memoryKey:e,content:f})})).body)==null?void 0:T.getReader();let O="";for(;g;){const{done:w,value:x}=await g.read();if(s(!1),w)break;const k=new TextDecoder().decode(x);O+=k,i(O)}l(!0)},[t.accessToken,(d=n.data)==null?void 0:d.id,e]);return{data:r,memoryKey:e,isLoading:a,isComplete:o,mutateAsync:u}},SO=function(e){if(e==null)return Yet;if(typeof e=="function")return WR(e);if(typeof e=="object")return Array.isArray(e)?Vet(e):qet(e);if(typeof e=="string")return Get(e);throw new Error("Expected function, string, or object as test")};function Vet(e){const t=[];let n=-1;for(;++n":""))+")"})}return p;function p(){let g=t0e,O,S,T;if((!t||a(l,u,d[d.length-1]||void 0))&&(g=Ket(n(l,d)),g[0]===SC))return g;if("children"in l&&l.children){const w=l;if(w.children&&g[0]!==Qy)for(S=(r?w.children.length:-1)+s,T=d.concat(w);S>-1&&S0&&d.length===0)return}const f={};let p;for(p in o)ett.call(o,p)&&(f[p]=p==="children"?d:o[p]);return f}}function ntt(e){return"children"in e&&e.children!==void 0}var FL={exports:{}};(function(e,t){function n(r){let i=[],a;for(let s of r.split(",").map(o=>o.trim()))if(/^-?\d+$/.test(s))i.push(parseInt(s,10));else if(a=s.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[o,l,u,d]=a;if(l&&d){l=parseInt(l),d=parseInt(d);const f=l]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}Fd.displayName="c";Fd.aliases=[];function Fd(e){e.register(Sr),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}B1.displayName="cpp";B1.aliases=[];function B1(e){e.register(Fd),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)}VR.displayName="arduino";VR.aliases=["ino"];function VR(e){e.register(B1),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}XT.displayName="bash";XT.aliases=["sh","shell"];function XT(e){(function(t){var n="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},i={bash:r,environment:{pattern:RegExp("\\$"+n),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+n),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+n),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:i},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:i},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:i.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:i.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=t.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],s=i.variable[1].inside,o=0;o>/g,function(Se,Z){return"(?:"+Re[+Z]+")"})}function r(H,Re,Se){return RegExp(n(H,Re),"")}function i(H,Re){for(var Se=0;Se>/g,function(){return"(?:"+H+")"});return H.replace(/<>/g,"[^\\s\\S]")}var a={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function s(H){return"\\b(?:"+H.trim().replace(/ /g,"|")+")\\b"}var o=s(a.typeDeclaration),l=RegExp(s(a.type+" "+a.typeDeclaration+" "+a.contextual+" "+a.other)),u=s(a.typeDeclaration+" "+a.contextual+" "+a.other),d=s(a.type+" "+a.typeDeclaration+" "+a.other),f=i(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),p=i(/\((?:[^()]|<>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,O=n(/<<0>>(?:\s*<<1>>)?/.source,[g,f]),S=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[u,O]),T=/\[\s*(?:,\s*)*\]/.source,w=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[S,T]),x=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[f,p,T]),k=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[x]),_=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[k,S,T]),R={keyword:l,punctuation:/[<>()?,.:[\]]/},N=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,P=/"(?:\\.|[^\\"\r\n])*"/.source,L=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[L]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[P]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[S]),lookbehind:!0,inside:R},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,_]),lookbehind:!0,inside:R},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[o,O]),lookbehind:!0,inside:R},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[S]),lookbehind:!0,inside:R},{pattern:r(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[w]),lookbehind:!0,inside:R},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[_,d,g]),inside:R}],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,[g]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),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:R},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[_,S]),inside:R,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[_]),lookbehind:!0,inside:R,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,f]),inside:{function:r(/^<<0>>/.source,[g]),generic:{pattern:RegExp(f),alias:"class-name",inside:R}}},"type-list":{pattern:r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[o,O,g,_,l.source,p,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[O,p]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:l,"class-name":{pattern:RegExp(_),greedy:!0,inside:R},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 j=P+"|"+N,B=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[j]),V=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[B]),2),W=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,re=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[S,V]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[W,re]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[W]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[V]),inside:t.languages.csharp},"class-name":{pattern:RegExp(S),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var ee=/:[^}\r\n]+/.source,q=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[B]),2),ne=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[q,ee]),K=i(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[j]),2),G=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[K,ee]);function ie(H,Re){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[H]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[Re,ee]),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,[ne]),lookbehind:!0,greedy:!0,inside:ie(ne,q)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[G]),lookbehind:!0,greedy:!0,inside:ie(G,K)}],char:{pattern:RegExp(N),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp}(e)}ks.displayName="markup";ks.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function ks(e){e.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var i={};i["language-"+r]={pattern:/(^$)/i,lookbehind:!0,inside:e.languages[r]},i.cdata=/^$/i;var a={"included-cdata":{pattern://i,inside:i}};a["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var s={};s[n]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:a},e.languages.insertBefore("markup","cdata",s)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}Tm.displayName="css";Tm.aliases=[];function Tm(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)}qR.displayName="diff";qR.aliases=[];function qR(e){(function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var n={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(n).forEach(function(r){var i=n[r],a=[];/^\w+$/.test(r)||a.push(/\w+/.exec(r)[0]),r==="diff"&&a.push("bold"),t.languages.diff[r]={pattern:RegExp("^(?:["+i+`].*(?:\r ?| -|(?![\\s\\S])))+`,"m"),alias:a,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(r)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:n})})(e)}ZR.displayName="go";ZR.aliases=[];function ZR(e){e.register(wr),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"]}XR.displayName="ini";XR.aliases=[];function XR(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:/=/}}B1.displayName="java";B1.aliases=[];function B1(e){e.register(wr),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)}KR.displayName="regex";KR.aliases=[];function KR(e){(function(t){var n={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},r=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,i={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},a={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},s="(?:[^\\\\-]|"+r.source+")",o=RegExp(s+"-"+s),l={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};t.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:o,inside:{escape:r,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":n,"char-set":a,escape:r}},"special-escape":n,"char-set":i,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":l}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:r,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]||&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}NO.displayName="json";NO.aliases=["webmanifest"];function NO(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}JR.displayName="kotlin";JR.aliases=["kt","kts"];function JR(e){e.register(wr),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)}eI.displayName="less";eI.aliases=[];function eI(e){e.register(Im),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"}})}XT.displayName="lua";XT.aliases=[];function XT(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:/[\[\](){},;]|\.+|:+/}}tI.displayName="makefile";tI.aliases=[];function tI(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:/[:;(){}]/}}KT.displayName="yaml";KT.aliases=["yml"];function KT(e){(function(t){var n=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+r.source+"(?:[ ]+"+n.source+")?|"+n.source+"(?:[ ]+"+r.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),s=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function o(l,u){u=(u||"").replace(/m/g,"")+"m";var d=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return l});return RegExp(d,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"(?:"+a+"|"+s+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:o(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:o(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:o(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:o(s),lookbehind:!0,greedy:!0},number:{pattern:o(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:r,important:n,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml})(e)}nI.displayName="markdown";nI.aliases=["md"];function nI(e){e.register(Ts),function(t){var n=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(o){return o=o.replace(//g,function(){return n}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+o+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),s=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+a+s+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+s+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+s+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),inside:{"table-header":{pattern:RegExp(i),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:r(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:r(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(o){["url","bold","italic","strike","code-snippet"].forEach(function(l){o!==l&&(t.languages.markdown[o].inside.content.inside[l]=t.languages.markdown[l])})}),t.hooks.add("after-tokenize",function(o){if(o.language!=="markdown"&&o.language!=="md")return;function l(u){if(!(!u||typeof u=="string"))for(var d=0,f=u.length;d]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete e.languages.objectivec["class-name"],e.languages.objc=e.languages.objectivec}iI.displayName="perl";iI.aliases=[];function iI(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)}Vs.displayName="markup-templating";Vs.aliases=[];function Vs(e){e.register(Ts),function(t){function n(r,i){return"___"+r.toUpperCase()+i+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(r,i,a,s){if(r.language===i){var o=r.tokenStack=[];r.code=r.code.replace(a,function(l){if(typeof s=="function"&&!s(l))return l;for(var u=o.length,d;r.code.indexOf(d=n(i,u))!==-1;)++u;return o[u]=l,d}),r.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(r,i){if(r.language!==i||!r.tokenStack)return;r.grammar=t.languages[i];var a=0,s=Object.keys(r.tokenStack);function o(l){for(var u=0;u=s.length);u++){var d=l[u];if(typeof d=="string"||d.content&&typeof d.content=="string"){var f=s[a],p=r.tokenStack[f],g=typeof d=="string"?d:d.content,O=n(i,f),S=g.indexOf(O);if(S>-1){++a;var T=g.substring(0,S),w=new t.Token(i,t.tokenize(p,r.grammar),"language-"+i,p),x=g.substring(S+O.length),k=[];T&&k.push.apply(k,o([T])),k.push(w),x&&k.push.apply(k,o([x])),typeof d=="string"?l.splice.apply(l,[u,1].concat(k)):d.content=k}}else d.content&&o(d.content)}return l}o(r.tokens)}}})}(e)}U1.displayName="php";U1.aliases=[];function U1(e){e.register(Vs),function(t){var n=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,r=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],i=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,a=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,s=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:n,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:i,operator:a,punctuation:s};var o={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},l=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:o}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:o}}];t.languages.insertBefore("php","variable",{string:l,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:n,string:l,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,number:i,operator:a,punctuation:s}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(u){if(/<\?/.test(u.code)){var d=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;t.languages["markup-templating"].buildPlaceholders(u,"php",d)}}),t.hooks.add("after-tokenize",function(u){t.languages["markup-templating"].tokenizePlaceholders(u,"php")})}(e)}JT.displayName="python";JT.aliases=["py"];function JT(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}aI.displayName="r";aI.aliases=[];function aI(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:/[(){}\[\],;]/}}z1.displayName="ruby";z1.aliases=["rb"];function z1(e){e.register(wr),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)}sI.displayName="rust";sI.aliases=[];function sI(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)}oI.displayName="sass";oI.aliases=[];function oI(e){e.register(Im),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)}lI.displayName="scss";lI.aliases=[];function lI(e){e.register(Im),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}DO.displayName="sql";DO.aliases=[];function DO(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:/[;[\]()`,.]/}}uI.displayName="swift";uI.aliases=[];function uI(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})}PO.displayName="typescript";PO.aliases=["ts"];function PO(e){e.register(Ws),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)}ex.displayName="basic";ex.aliases=[];function ex(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:/[,;:()]/}}tx.displayName="vbnet";tx.aliases=[];function tx(e){e.register(ex),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:/[,;:(){}]/})}class nx{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}nx.prototype.property={};nx.prototype.normal={};nx.prototype.space=null;function h0e(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&Ttt.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(VJ,Att);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!VJ.test(a)){let s=a.replace(xtt,ktt);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=uU}return new i(r,t)}function ktt(e){return"-"+e.toLowerCase()}function Att(e){return e.charAt(1).toUpperCase()}const _tt={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"},H1=h0e([g0e,m0e,v0e,O0e,Ett],"html"),Ip=h0e([g0e,m0e,v0e,O0e,wtt],"svg"),qJ=/[#.]/g;function Ctt(e,t){const n=e||"",r={};let i=0,a,s;for(;i=48&&t<=57}function $tt(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Ftt(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function ZJ(e){return Ftt(e)||E0e(e)}const XJ=document.createElement("i");function qw(e){const t="&"+e+";";XJ.innerHTML=t;const n=XJ.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const Hb=String.fromCharCode,Btt=["","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 Utt(e,t={}){const n=typeof t.additional=="string"?t.additional.charCodeAt(0):t.additional,r=[];let i=0,a=-1,s="",o,l;t.position&&("start"in t.position||"indent"in t.position?(l=t.position.indent,o=t.position.start):o=t.position);let u=(o?o.line:0)||1,d=(o?o.column:0)||1,f=g(),p;for(i--;++i<=e.length;)if(p===10&&(d=(l?l[a]:0)||1),p=e.charCodeAt(i),p===38){const T=e.charCodeAt(i+1);if(T===9||T===10||T===12||T===32||T===38||T===60||Number.isNaN(T)||n&&T===n){s+=Hb(p),d++;continue}const w=i+1;let x=w,k=w,_;if(T===35){k=++x;const W=e.charCodeAt(k);W===88||W===120?(_="hexadecimal",k=++x):_="decimal"}else _="named";let R="",N="",D="";const L=_==="named"?ZJ:_==="decimal"?E0e:$tt;for(k--;++k<=e.length;){const W=e.charCodeAt(k);if(!L(W))break;D+=Hb(W),_==="named"&&Mtt.includes(D)&&(R=D,N=qw(D))}let j=e.charCodeAt(k)===59;if(j){k++;const W=_==="named"?qw(D):!1;W&&(R=D,N=W)}let B=1+k-w,V="";if(!(!j&&t.nonTerminated===!1))if(!D)_!=="named"&&O(4,B);else if(_==="named"){if(j&&!N)O(5,1);else if(R!==D&&(k=x+R.length,B=1+k-x,j=!1),!j){const W=R?1:3;if(t.attribute){const re=e.charCodeAt(k);re===61?(O(W,B),N=""):ZJ(re)?N="":O(W,B)}else O(W,B)}V=N}else{j||O(2,B);let W=Number.parseInt(D,_==="hexadecimal"?16:10);if(ztt(W))O(7,B),V=Hb(65533);else if(W in YJ)O(6,B),V=YJ[W];else{let re="";jtt(W)&&O(6,B),W>65535&&(W-=65536,re+=Hb(W>>>10|55296),W=56320|W&1023),V=re+Hb(W)}}if(V){S(),f=g(),i=k-1,d+=k-w+1,r.push(V);const W=g();W.offset++,t.reference&&t.reference.call(t.referenceContext,V,{start:f,end:W},e.slice(w-1,k)),f=W}else D=e.slice(w-1,k),s+=D,d+=D.length,i=k-1}else p===10&&(u++,a++,d=0),Number.isNaN(p)?S():(s+=Hb(p),d++);return r.join("");function g(){return{line:u,column:d,offset:i+((o?o.offset:0)||0)}}function O(T,w){let x;t.warning&&(x=g(),x.column+=w,x.offset+=w,t.warning.call(t.warningContext,Btt[T],x,T))}function S(){s&&(r.push(s),t.text&&t.text.call(t.textContext,s,{start:f,end:g()}),s="")}}function ztt(e){return e>=55296&&e<=57343||e>1114111}function jtt(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 Htt=0,e4={},gs={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++Htt}),e.__id},clone:function e(t,n){n=n||{};var r,i;switch(gs.util.type(t)){case"Object":if(i=gs.util.objId(t),n[i])return n[i];r={},n[i]=r;for(var a in t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=gs.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach(function(s,o){r[o]=e(s,n)}),r);default:return t}}},languages:{plain:e4,plaintext:e4,text:e4,txt:e4,extend:function(e,t){var n=gs.util.clone(gs.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r=r||gs.languages;var i=r[e],a={};for(var s in i)if(i.hasOwnProperty(s)){if(s==t)for(var o in n)n.hasOwnProperty(o)&&(a[o]=n[o]);n.hasOwnProperty(s)||(a[s]=i[s])}var l=r[e];return r[e]=a,gs.languages.DFS(gs.languages,function(u,d){d===l&&u!=e&&(this[u]=a)}),a},DFS:function e(t,n,r,i){i=i||{};var a=gs.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var o=t[s],l=gs.util.type(o);l==="Object"&&!i[a(o)]?(i[a(o)]=!0,e(o,n,null,i)):l==="Array"&&!i[a(o)]&&(i[a(o)]=!0,e(o,n,s,i))}}},plugins:{},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(gs.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=gs.tokenize(r.code,r.grammar),gs.hooks.run("after-tokenize",r),S2.stringify(gs.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 Qtt;return b_(i,i.head,e),w0e(e,i,t,i.head,0),Vtt(i)},hooks:{all:{},add:function(e,t){var n=gs.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=gs.hooks.all[e];if(!(!n||!n.length))for(var r=0,i;i=n[r++];)i(t)}},Token:S2};function S2(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||"").length|0}function KJ(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function w0e(e,t,n,r,i,a){for(var s in n)if(!(!n.hasOwnProperty(s)||!n[s])){var o=n[s];o=Array.isArray(o)?o:[o];for(var l=0;l=a.reach);w+=T.value.length,T=T.next){var x=T.value;if(t.length>e.length)return;if(!(x instanceof S2)){var k=1,_;if(p){if(_=KJ(S,w,e,f),!_||_.index>=e.length)break;var L=_.index,R=_.index+_[0].length,N=w;for(N+=T.value.length;L>=N;)T=T.next,N+=T.value.length;if(N-=T.value.length,w=N,T.value instanceof S2)continue;for(var D=T;D!==t.tail&&(Na.reach&&(a.reach=W);var re=T.prev;B&&(re=b_(t,re,B),w+=B.length),Wtt(t,re,k);var ee=new S2(s,d?gs.tokenize(j,d):j,g,j);if(T=b_(t,re,ee),V&&b_(t,T,V),k>1){var q={cause:s+","+l,reach:W};w0e(e,t,n,T.prev,w,q),a&&q.reach>a.reach&&(a.reach=q.reach)}}}}}}function Qtt(){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 b_(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 Wtt(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:/[,.:()]/}}hU.displayName="abnf";hU.aliases=[];function hU(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)}pU.displayName="actionscript";pU.aliases=[];function pU(e){e.register(Ws),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}})}mU.displayName="ada";mU.aliases=[];function mU(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}}gU.displayName="agda";gU.aliases=[];function gU(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)}bU.displayName="al";bU.aliases=[];function bU(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:/[()\[\]{}:.;,]/}}yU.displayName="antlr4";yU.aliases=["g4"];function yU(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}vU.displayName="apacheconf";vU.aliases=[];function vU(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:/\^?.*\$|\^.*\$?/}}OU.displayName="apex";OU.aliases=[];function OU(e){e.register(wr),e.register(DO),function(t){var n=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,r=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(//g,function(){return n.source});function i(s){return RegExp(s.replace(//g,function(){return r}),"i")}var a={keyword:n,punctuation:/[()\[\]{};,:.<>]/};t.languages.apex={comment:t.languages.clike.comment,string:t.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:t.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:i(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)/.source),lookbehind:!0,inside:a},{pattern:i(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:a},{pattern:i(/(?=\s*\w+\s*[;=,(){:])/.source),inside:a}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:n,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(e)}SU.displayName="apl";SU.aliases=[];function SU(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"}}}EU.displayName="applescript";EU.aliases=[];function EU(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:/[{}():,¬«»《》]/}}wU.displayName="aql";wU.aliases=[];function wU(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:/::|[?.:,;()[\]{}]/}}TU.displayName="arff";TU.aliases=[];function TU(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:/[{},]/}}xU.displayName="armasm";xU.aliases=["arm-asm"];function xU(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}kU.displayName="arturo";kU.aliases=["art"];function kU(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)}AU.displayName="asciidoc";AU.aliases=["adoc"];function AU(e){(function(t){var n={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},r=t.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})$[\s\S]*?^\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:n,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:n.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:n,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function i(a){a=a.split(" ");for(var s={},o=0,l=a.length;o/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:e.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:e.languages.csharp}}}),e.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,e.languages.insertBefore("inside","punctuation",{directive:e.languages.aspnet.directive},e.languages.aspnet.tag.inside["attr-value"]),e.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),e.languages.insertBefore("aspnet",e.languages.javascript?"script":"tag",{"asp-script":{pattern:/(]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:e.languages.csharp||{}}})}CU.displayName="asm6502";CU.aliases=[];function CU(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:/[(),:]/}}RU.displayName="asmatmel";RU.aliases=[];function RU(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:/[(),:]/}}IU.displayName="autohotkey";IU.aliases=[];function IU(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:/[{}[\]():,]/}}NU.displayName="autoit";NU.aliases=[];function NU(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:/[\[\]().,:]/}}DU.displayName="avisynth";DU.aliases=["avs"];function DU(e){(function(t){function n(u,d){return u.replace(/<<(\d+)>>/g,function(f,p){return d[+p]})}function r(u,d,f){return RegExp(n(u,d),f)}var i=/bool|clip|float|int|string|val/.source,a=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),s=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),o=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),l=[a,s,o].join("|");t.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:r(/\b(?:<<0>>)\s+("?)\w+\1/.source,[i],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:r(/\b(?:<<0>>)\b/.source,[l],"i"),alias:"function"},"type-cast":{pattern:r(/\b(?:<<0>>)(?=\s*\()/.source,[i],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},t.languages.avs=t.languages.avisynth})(e)}PU.displayName="avro-idl";PU.aliases=["avdl"];function PU(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"]}LU.displayName="awk";LU.aliases=["gawk"];function LU(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}MU.displayName="batch";MU.aliases=[];function MU(e){(function(t){var n=/%%?[~:\w]+%?|!\S+!/,r={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},i=/"(?:[\\"]"|[^"])*"(?!")/,a=/(?:\b|-)\d+\b/;t.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:i,parameter:r,variable:n,number:a,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:i,parameter:r,variable:n,number:a,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:i,parameter:r,variable:[n,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:a,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:i,parameter:r,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:n,number:a,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(e)}$U.displayName="bbcode";$U.aliases=["shortcode"];function $U(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}FU.displayName="bbj";FU.aliases=[];function FU(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)}BU.displayName="bicep";BU.aliases=[];function BU(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}UU.displayName="birb";UU.aliases=[];function UU(e){e.register(wr),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"}})}zU.displayName="bison";zU.aliases=[];function zU(e){e.register(Bd),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:/%[%?]|[|:;\[\]<>]/}}})}jU.displayName="bnf";jU.aliases=["rbnf"];function jU(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}HU.displayName="bqn";HU.aliases=[];function HU(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:/[←⇐↩(){}⟨⟩[\]‿·⋄,.;:?]/}}QU.displayName="brainfuck";QU.aliases=[];function QU(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}WU.displayName="brightscript";WU.aliases=[];function WU(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}VU.displayName="bro";VU.aliases=[];function VU(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:/[{}[\];(),.:]/}}qU.displayName="bsl";qU.aliases=["oscript"];function qU(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}GU.displayName="cfscript";GU.aliases=["cfc"];function GU(e){e.register(wr),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}YU.displayName="chaiscript";YU.aliases=[];function YU(e){e.register(wr),e.register($1),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]+/}}})}ZU.displayName="cil";ZU.aliases=[];function ZU(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]+/}}XU.displayName="cilkc";XU.aliases=["cilk-c"];function XU(e){e.register(Bd),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}KU.displayName="cilkcpp";KU.aliases=["cilk","cilk-cpp"];function KU(e){e.register($1),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}JU.displayName="clojure";JU.aliases=[];function JU(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:/[{}\[\](),]/}}ez.displayName="cmake";ez.aliases=[];function ez(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:/[()>}]|\$[<{]/}}tz.displayName="cobol";tz.aliases=[];function tz(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:/[.:,()]/}}nz.displayName="coffeescript";nz.aliases=["coffee"];function nz(e){e.register(Ws),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)}rz.displayName="concurnas";rz.aliases=["conc"];function rz(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}iz.displayName="csp";iz.aliases=[];function iz(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)}az.displayName="cooklang";az.aliases=[];function az(e){(function(t){var n=/(?:(?!\s)[\d$+<=a-zA-Z\x80-\uFFFF])+/.source,r=/[^{}@#]+/.source,i=/\{[^}#@]*\}/.source,a=r+i,s=/(?:h|hours|hrs|m|min|minutes)/.source,o={pattern:/\{[^{}]*\}/,inside:{amount:{pattern:/([\{|])[^{}|*%]+/,lookbehind:!0,alias:"number"},unit:{pattern:/(%)[^}]+/,lookbehind:!0,alias:"symbol"},"servings-scaler":{pattern:/\*/,alias:"operator"},"servings-alternative-separator":{pattern:/\|/,alias:"operator"},"unit-separator":{pattern:/(?:%|(\*)%)/,lookbehind:!0,alias:"operator"},punctuation:/[{}]/}};t.languages.cooklang={comment:{pattern:/\[-[\s\S]*?-\]|--.*/,greedy:!0},meta:{pattern:/>>.*:.*/,inside:{property:{pattern:/(>>\s*)[^\s:](?:[^:]*[^\s:])?/,lookbehind:!0}}},"cookware-group":{pattern:new RegExp("#(?:"+a+"|"+n+")"),inside:{cookware:{pattern:new RegExp("(^#)(?:"+r+")"),lookbehind:!0,alias:"variable"},"cookware-keyword":{pattern:/^#/,alias:"keyword"},"quantity-group":{pattern:new RegExp(/\{[^{}@#]*\}/),inside:{quantity:{pattern:new RegExp(/(^\{)/.source+r),lookbehind:!0,alias:"number"},punctuation:/[{}]/}}}},"ingredient-group":{pattern:new RegExp("@(?:"+a+"|"+n+")"),inside:{ingredient:{pattern:new RegExp("(^@)(?:"+r+")"),lookbehind:!0,alias:"variable"},"ingredient-keyword":{pattern:/^@/,alias:"keyword"},"amount-group":o}},"timer-group":{pattern:/~(?!\s)[^@#~{}]*\{[^{}]*\}/,inside:{timer:{pattern:/(^~)[^{]+/,lookbehind:!0,alias:"variable"},"duration-group":{pattern:/\{[^{}]*\}/,inside:{punctuation:/[{}]/,unit:{pattern:new RegExp(/(%\s*)/.source+s+/\b/.source),lookbehind:!0,alias:"symbol"},operator:/%/,duration:{pattern:/\d+/,alias:"number"}}},"timer-keyword":{pattern:/^~/,alias:"keyword"}}}}})(e)}sz.displayName="coq";sz.aliases=[];function sz(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)}oz.displayName="crystal";oz.aliases=[];function oz(e){e.register(z1),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)}lz.displayName="css-extras";lz.aliases=[];function lz(e){e.register(Im),function(t){var n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r;t.languages.css.selector={pattern:t.languages.css.selector.pattern,lookbehind:!0,inside:r={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},t.languages.css.atrule.inside["selector-function-argument"].inside=r,t.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var i={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};t.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:i,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:i,number:a})}(e)}uz.displayName="csv";uz.aliases=[];function uz(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}cz.displayName="cue";cz.aliases=[];function cz(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)}dz.displayName="cypher";dz.aliases=[];function dz(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:/[()[\]{},;.]/}}fz.displayName="d";fz.aliases=[];function fz(e){e.register(wr),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"}})}hz.displayName="dart";hz.aliases=[];function hz(e){e.register(wr),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)}pz.displayName="dataweave";pz.aliases=[];function pz(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)}mz.displayName="dax";mz.aliases=[];function mz(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:/[;\[\](){}`,.]/}}gz.displayName="dhall";gz.aliases=[];function gz(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}bz.displayName="django";bz.aliases=["jinja2"];function bz(e){e.register(Vs),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)}yz.displayName="dns-zone-file";yz.aliases=["dns-zone"];function yz(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"]}vz.displayName="docker";vz.aliases=["dockerfile"];function vz(e){(function(t){var n=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,r=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,function(){return n}),i=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,a=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return i}),s={pattern:RegExp(i),greedy:!0},o={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function l(u,d){return u=u.replace(//g,function(){return a}).replace(//g,function(){return r}),RegExp(u,d)}t.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:l(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[s,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:l(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:l(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:l(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:o,string:s,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:o},t.languages.dockerfile=t.languages.docker})(e)}Oz.displayName="dot";Oz.aliases=["gv"];function Oz(e){(function(t){var n="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",r={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:t.languages.markup}};function i(a,s){return RegExp(a.replace(//g,function(){return n}),s)}t.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:i(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:r},"attr-value":{pattern:i(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:r},"attr-name":{pattern:i(/([\[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:r},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:i(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:r},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},t.languages.gv=t.languages.dot})(e)}Sz.displayName="ebnf";Sz.aliases=[];function Sz(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:/[-=|*/!]/}}Ez.displayName="editorconfig";Ez.aliases=[];function Ez(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:/^=/}}}}wz.displayName="eiffel";wz.aliases=[];function wz(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:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}Tz.displayName="ejs";Tz.aliases=["eta"];function Tz(e){e.register(Ws),e.register(Vs),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)}xz.displayName="elixir";xz.aliases=[];function xz(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}}}})}kz.displayName="elm";kz.aliases=[];function kz(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:/[{}[\]|(),.:]/}}Az.displayName="etlua";Az.aliases=[];function Az(e){e.register(XT),e.register(Vs),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)}_z.displayName="erb";_z.aliases=[];function _z(e){e.register(Vs),e.register(z1),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)}Cz.displayName="erlang";Cz.aliases=[];function Cz(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:/[()[\]{}:;,.#|]|<<|>>/}}Rz.displayName="excel-formula";Rz.aliases=["xls","xlsx"];function Rz(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"]}Iz.displayName="fsharp";Iz.aliases=[];function Iz(e){e.register(wr),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}})}Nz.displayName="factor";Nz.aliases=[];function Nz(e){(function(t){var n={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},r={number:/\\[^\s']|%\w/},i={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:n},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:n}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:r.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:r}},a=function(u){return(u+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},s=function(u){return new RegExp("(^|\\s)(?:"+u.map(a).join("|")+")(?=\\s|$)")},o={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated",">>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(o).forEach(function(u){i[u].pattern=s(o[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=s(l),t.languages.factor=i})(e)}Dz.displayName="false";Dz.aliases=[];function Dz(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:/,/}}})}Lz.displayName="flow";Lz.aliases=[];function Lz(e){e.register(Ws),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)}Mz.displayName="fortran";Mz.aliases=[];function Mz(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:/\(\/|\/\)|[(),;:&]/}}$z.displayName="ftl";$z.aliases=[];function $z(e){e.register(Vs),function(t){for(var n=/[^<()"']|\((?:)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,/[^\s\S]/.source);var i={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:))*\})*\1/.source.replace(//g,function(){return n})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:))*\}/.source.replace(//g,function(){return n})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};i.string[1].inside.interpolation.inside.rest=i,t.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}}},t.hooks.add("before-tokenize",function(a){var s=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return n}),"gi");t.languages["markup-templating"].buildPlaceholders(a,"ftl",s)}),t.hooks.add("after-tokenize",function(a){t.languages["markup-templating"].tokenizePlaceholders(a,"ftl")})}(e)}Fz.displayName="gml";Fz.aliases=["gamemakerlanguage"];function Fz(e){e.register(wr),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/})}Bz.displayName="gap";Bz.aliases=[];function Bz(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}Uz.displayName="gcode";Uz.aliases=[];function Uz(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:/[:*]/}}zz.displayName="gdscript";zz.aliases=[];function zz(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:/[.:,;()[\]{}]/}}jz.displayName="gedcom";jz.aliases=[];function jz(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"}}}Hz.displayName="gettext";Hz.aliases=["po"];function Hz(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}Qz.displayName="gherkin";Qz.aliases=[];function Qz(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)}Wz.displayName="git";Wz.aliases=[];function Wz(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}}Vz.displayName="glsl";Vz.aliases=[];function Vz(e){e.register(Bd),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/})}qz.displayName="gn";qz.aliases=["gni"];function qz(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}Gz.displayName="linker-script";Gz.aliases=["ld"];function Gz(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"]}Yz.displayName="go-module";Yz.aliases=["go-mod"];function Yz(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:/[()[\],]/}}Zz.displayName="gradle";Zz.aliases=[];function Zz(e){e.register(wr),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)}Xz.displayName="graphql";Xz.aliases=[];function Xz(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(T){return typeof T!="string"&&T.type!=="comment"&&T.type!=="scalar"}),i=0;function a(T){return r[i+T]}function s(T,w){w=w||0;for(var x=0;x0)){var g=o(/^\{$/,/^\}$/);if(g===-1)continue;for(var O=i;O=0&&l(S,"variable-input")}}}}})}Kz.displayName="groovy";Kz.aliases=[];function Kz(e){e.register(wr),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)}Jz.displayName="textile";Jz.aliases=[];function Jz(e){e.register(Ts),function(t){var n=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,r=/\)|\((?![^|()\n]+\))/.source;function i(f,p){return RegExp(f.replace(//g,function(){return"(?:"+n+")"}).replace(//g,function(){return"(?:"+r+")"}),p||"")}var a={css:{pattern:/\{[^{}]+\}/,inside:{rest:t.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},s=t.languages.textile=t.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:i(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:i(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:a},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:i(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:i(/(^[*#]+)+/.source),lookbehind:!0,inside:a},punctuation:/^[*#]+/}},table:{pattern:i(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:i(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:a},punctuation:/\||^\./}},inline:{pattern:i(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:i(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:i(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:i(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:i(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:i(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:i(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:i(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:i(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:a},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:i(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:i(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:i(/(^")+/.source),lookbehind:!0,inside:a},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:i(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:i(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:i(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:a},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),o=s.phrase.inside,l={inline:o.inline,link:o.link,image:o.image,footnote:o.footnote,acronym:o.acronym,mark:o.mark};s.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var u=o.inline.inside;u.bold.inside=l,u.italic.inside=l,u.inserted.inside=l,u.deleted.inside=l,u.span.inside=l;var d=o.table.inside;d.inline=l.inline,d.link=l.link,d.image=l.image,d.footnote=l.footnote,d.acronym=l.acronym,d.mark=l.mark}(e)}ej.displayName="haml";ej.aliases=[];function ej(e){e.register(z1),function(t){t.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:t.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:t.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:t.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:t.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:t.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:t.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var n="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",r=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],i={},a=0,s=r.length;a@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},t.hooks.add("before-tokenize",function(n){var r=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;t.languages["markup-templating"].buildPlaceholders(n,"handlebars",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"handlebars")}),t.languages.hbs=t.languages.handlebars,t.languages.mustache=t.languages.handlebars}(e)}rx.displayName="haskell";rx.aliases=["hs"];function rx(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}nj.displayName="haxe";nj.aliases=[];function nj(e){e.register(wr),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"}})}rj.displayName="hcl";rj.aliases=[];function rj(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:/[=\[\]{}]/}}ij.displayName="hlsl";ij.aliases=[];function ij(e){e.register(Bd),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/})}aj.displayName="hoon";aj.aliases=[];function aj(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:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}sj.displayName="hpkp";sj.aliases=[];function sj(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}oj.displayName="hsts";oj.aliases=[];function oj(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}lj.displayName="uri";lj.aliases=["url"];function lj(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}uj.displayName="http";uj.aliases=[];function uj(e){(function(t){function n(d){return RegExp("(^(?:"+d+"):[ ]*(?![ ]))[^]+","i")}t.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:t.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:n(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:t.languages.csp},{pattern:n(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:t.languages.hpkp},{pattern:n(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:t.languages.hsts},{pattern:n(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var r=t.languages,i={"application/javascript":r.javascript,"application/json":r.json||r.javascript,"application/xml":r.xml,"text/xml":r.xml,"text/html":r.html,"text/css":r.css,"text/plain":r.plain},a={"application/json":!0,"application/xml":!0};function s(d){var f=d.replace(/^[a-z]+\//,""),p="\\w+/(?:[\\w.-]+\\+)+"+f+"(?![+\\w.-])";return"(?:"+d+"|"+p+")"}var o;for(var l in i)if(i[l]){o=o||{};var u=a[l]?s(l):l;o[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]}}o&&t.languages.insertBefore("http","header",o)})(e)}cj.displayName="ichigojam";cj.aliases=[];function cj(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:/[\[,;:()\]]/}}dj.displayName="icon";dj.aliases=[];function dj(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:/[\[\](){},;]/}}fj.displayName="icu-message-format";fj.aliases=[];function fj(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"},a={pattern:r,greedy:!0,inside:{escape:i}},s=n(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return r.source}),8),o={pattern:RegExp(s),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};t.languages["icu-message-format"]={argument:{pattern:RegExp(s),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":o,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":o,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+n(/(?:[^{}']|'[^']*'|\{(?:)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:i,string:a},o.inside.message.inside=t.languages["icu-message-format"],t.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=t.languages["icu-message-format"]})(e)}hj.displayName="idris";hj.aliases=["idr"];function hj(e){e.register(rx),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}pj.displayName="ignore";pj.aliases=["gitignore","hgignore","npmignore"];function pj(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)}mj.displayName="inform7";mj.aliases=[];function mj(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"}}gj.displayName="io";gj.aliases=[];function gj(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:/[()]/}}FO.displayName="javadoclike";FO.aliases=[];function FO(e){(function(t){var n=t.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function r(a,s){var o="doc-comment",l=t.languages[a];if(l){var u=l[o];if(!u){var d={};d[o]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},l=t.languages.insertBefore(a,"comment",d),u=l[o]}if(u instanceof RegExp&&(u=l[o]={pattern:u}),Array.isArray(u))for(var f=0,p=u.length;f|\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}vj.displayName="javadoc";vj.aliases=[];function vj(e){e.register(B1),e.register(FO),e.register(Ts),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)}Oj.displayName="javastacktrace";Oj.aliases=[];function Oj(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/}}}}Sj.displayName="jexl";Sj.aliases=[];function Sj(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:/[{}[\](),.]/}}Ej.displayName="jolie";Ej.aliases=[];function Ej(e){e.register(wr),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]*:)/}})}wj.displayName="jq";wj.aliases=[];function wj(e){(function(t){var n=/\\\((?:[^()]|\([^()]*\))*\)/.source,r=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return n})),i={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+n),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},a=t.languages.jq={comment:/#.*/,property:{pattern:RegExp(r.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:i},string:{pattern:r,lookbehind:!0,greedy:!0,inside:i},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};i.interpolation.inside.content.inside=a})(e)}Tj.displayName="js-templates";Tj.aliases=[];function Tj(e){e.register(Ws),function(t){var n=t.languages.javascript["template-string"],r=n.pattern.source,i=n.inside.interpolation,a=i.inside["interpolation-punctuation"],s=i.pattern.source;function o(O,S){if(t.languages[O])return{pattern:RegExp("((?:"+S+")\\s*)"+r),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:O}}}}t.languages.javascript["template-string"]=[o("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),o("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),o("svg",/\bsvg/.source),o("markdown",/\b(?:markdown|md)/.source),o("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),o("sql",/\bsql/.source),n].filter(Boolean);function l(O,S){return"___"+S.toUpperCase()+"_"+O+"___"}function u(O,S,T){var w={code:O,grammar:S,language:T};return t.hooks.run("before-tokenize",w),w.tokens=t.tokenize(w.code,w.grammar),t.hooks.run("after-tokenize",w),w.tokens}function d(O){var S={};S["interpolation-punctuation"]=a;var T=t.tokenize(O,S);if(T.length===3){var w=[1,1];w.push.apply(w,u(T[1],t.languages.javascript,"javascript")),T.splice.apply(T,w)}return new t.Token("interpolation",T,i.alias,O)}function f(O,S,T){var w=t.tokenize(O,{interpolation:{pattern:RegExp(s),lookbehind:!0}}),x=0,k={},_=w.map(function(L){if(typeof L=="string")return L;for(var j=L.content,B;O.indexOf(B=l(x++,T))!==-1;);return k[B]=j,B}).join(""),R=u(_,S,T),N=Object.keys(k);x=0;function D(L){for(var j=0;j=N.length)return;var B=L[j];if(typeof B=="string"||typeof B.content=="string"){var V=N[x],W=typeof B=="string"?B:B.content,re=W.indexOf(V);if(re!==-1){++x;var ee=W.substring(0,re),q=d(k[V]),te=W.substring(re+V.length),K=[];if(ee&&K.push(ee),K.push(q),te){var G=[te];D(G),K.push.apply(K,G)}typeof B=="string"?(L.splice.apply(L,[j,1].concat(K)),j+=K.length-1):B.content=K}}else{var ie=B.content;Array.isArray(ie)?D(ie):D([ie])}}}return D(R),new t.Token(T,R,"language-"+T,O)}var p={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};t.hooks.add("after-tokenize",function(O){if(!(O.language in p))return;function S(T){for(var w=0,x=T.length;w\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)}kj.displayName="n4js";kj.aliases=["n4jsd"];function kj(e){e.register(Ws),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}Aj.displayName="js-extras";Aj.aliases=[];function Aj(e){e.register(Ws),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:/:/}}}}}}Ij.displayName="julia";Ij.aliases=[];function Ij(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|[πℯ]/}}Nj.displayName="keepalived";Nj.aliases=[];function Nj(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:/[\{\}]/}}Dj.displayName="keyman";Dj.aliases=[];function Dj(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:/[()=,]/}}Pj.displayName="kumir";Pj.aliases=["kum"];function Pj(e){(function(t){var n=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function r(i,a){return RegExp(i.replace(//g,n),a)}t.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:r(/(^|[])(?:да|нет)(?=[]|$)/.source),lookbehind:!0},"operator-word":{pattern:r(/(^|[])(?:и|или|не)(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:r(/(^|[])знач(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:r(/(^|[])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:r(/(^|[])(?:компл|сканкод|файл|цвет)(?=[]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:r(/(^|[])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[]|$)/.source),lookbehind:!0},name:{pattern:r(/(^|[])[^\d][^]*(?:\x20+[^]+)*(?=[]|$)/.source),lookbehind:!0},number:{pattern:r(/(^|[])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},t.languages.kum=t.languages.kumir})(e)}Lj.displayName="kusto";Lj.aliases=[];function Lj(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:/[()\[\]{},;.:]/}}Mj.displayName="latex";Mj.aliases=["context","tex"];function Mj(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)}$j.displayName="latte";$j.aliases=[];function $j(e){e.register(wr),e.register(Vs),e.register(U1),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)}ix.displayName="scheme";ix.aliases=[];function ix(e){(function(t){t.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(n({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function n(r){for(var i in r)r[i]=r[i].replace(/<[\w\s]+>/g,function(a){return"(?:"+r[a].trim()+")"});return r[i]}})(e)}Fj.displayName="lilypond";Fj.aliases=["ly"];function Fj(e){e.register(ix),function(t){for(var n=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|)*\)/.source,r=5,i=0;i/g,function(){return n});n=n.replace(//g,/[^\s\S]/.source);var a=t.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|))/.source.replace(//g,function(){return n}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:t.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};a["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=a,t.languages.ly=a}(e)}Bj.displayName="liquid";Bj.aliases=[];function Bj(e){e.register(Vs),e.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},e.hooks.add("before-tokenize",function(t){var n=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,r=!1;e.languages["markup-templating"].buildPlaceholders(t,"liquid",n,function(i){var a=/^\{%-?\s*(\w+)/.exec(i);if(a){var s=a[1];if(s==="raw"&&!r)return r=!0,!0;if(s==="endraw")return r=!1,!0}return!r})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"liquid")})}Uj.displayName="lisp";Uj.aliases=["elisp","emacs","emacs-lisp"];function Uj(e){(function(t){function n(O){return RegExp(/(\()/.source+"(?:"+O+")"+/(?=[\s\)])/.source)}function r(O){return RegExp(/([\s([])/.source+"(?:"+O+")"+/(?=[\s)])/.source)}var i=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,a="&"+i,s="(\\()",o="(?=\\))",l="(?=\\s)",u=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,d={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+i+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+i),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+i),alias:"property"},splice:{pattern:RegExp(",@?"+i),alias:["symbol","variable"]},keyword:[{pattern:RegExp(s+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+l),lookbehind:!0},{pattern:RegExp(s+"(?:append|by|collect|concat|do|finally|for|in|return)"+l),lookbehind:!0}],declare:{pattern:n(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:n(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:r(/nil|t/.source),lookbehind:!0},number:{pattern:r(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(s+"def(?:const|custom|group|var)\\s+"+i),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(i)}},defun:{pattern:RegExp(s+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+i+/\s+\(/.source+u+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+i),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(s+"lambda\\s+\\(\\s*(?:&?"+i+"(?:\\s+&?"+i+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(s+i),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},f={"lisp-marker":RegExp(a),varform:{pattern:RegExp(/\(/.source+i+/\s+(?=\S)/.source+u+/\)/.source),inside:d},argument:{pattern:RegExp(/(^|[\s(])/.source+i),lookbehind:!0,alias:"variable"},rest:d},p="\\S+(?:\\s+\\S+)*",g={pattern:RegExp(s+u+o),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+p),inside:f},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+p),inside:f},keys:{pattern:RegExp("&key\\s+"+p+"(?:\\s+&allow-other-keys)?"),inside:f},argument:{pattern:RegExp(i),alias:"variable"},punctuation:/[()]/}};d.lambda.inside.arguments=g,d.defun.inside.arguments=t.util.clone(g),d.defun.inside.arguments.inside.sublist=g,t.languages.lisp=d,t.languages.elisp=d,t.languages.emacs=d,t.languages["emacs-lisp"]=d})(e)}zj.displayName="livescript";zj.aliases=[];function zj(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}jj.displayName="llvm";jj.aliases=[];function jj(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)}Hj.displayName="log";Hj.aliases=[];function Hj(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:/[\[\].,]/}}Qj.displayName="lolcode";Qj.aliases=[];function Qj(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}|…|,|!/}}Wj.displayName="magma";Wj.aliases=[];function Wj(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:/[()[\]{}<>,;.:]/}}cI.displayName="mata";cI.aliases=[];function cI(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)}Vj.displayName="matlab";Vj.aliases=[];function Vj(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}|[.,;\[\](){}!]/}}qj.displayName="maxscript";qj.aliases=[];function qj(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)}Gj.displayName="mel";Gj.aliases=[];function Gj(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}Yj.displayName="mermaid";Yj.aliases=[];function Yj(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:/[(){};]/}}Zj.displayName="metafont";Zj.aliases=[];function Zj(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}}}Xj.displayName="mizar";Xj.aliases=[];function Xj(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:/\(#|#\)|[,:;\[\](){}]/}}Kj.displayName="mongodb";Kj.aliases=[];function Kj(e){e.register(Ws),function(t){var n=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],r=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];n=n.map(function(a){return a.replace("$","\\$")});var i="(?:"+n.join("|")+")\\b";t.languages.mongodb=t.languages.extend("javascript",{}),t.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+i+"(?:\\1)?$")}}}),t.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},t.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+r.join("|")+")\\b"),alias:"keyword"}})}(e)}Jj.displayName="monkey";Jj.aliases=[];function Jj(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:/[.,:;()\[\]]/}}eH.displayName="moonscript";eH.aliases=["moon"];function eH(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}tH.displayName="n1ql";tH.aliases=[];function tH(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:/[;[\](),.{}:]/}}nH.displayName="nand2tetris-hdl";nH.aliases=[];function nH(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:/[{}[\];(),:]/}}rH.displayName="naniscript";rH.aliases=["nani"];function rH(e){(function(t){var n=/\{[^\r\n\[\]{}]*\}/,r={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:n,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};t.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:n,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:r}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:n,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:r},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},t.languages.nani=t.languages.naniscript,t.hooks.add("after-tokenize",function(s){var o=s.tokens;o.forEach(function(l){if(typeof l!="string"&&l.type==="generic-text"){var u=a(l);i(u)||(l.type="bad-line",l.content=u)}})});function i(s){for(var o="[]{}",l=[],u=0;u=&|$!]/}}aH.displayName="neon";aH.aliases=[];function aH(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:/[,:=[\]{}()-]/}}sH.displayName="nevod";sH.aliases=[];function sH(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\-.]+/}}oH.displayName="nginx";oH.aliases=[];function oH(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)}lH.displayName="nim";lH.aliases=[];function lH(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:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}uH.displayName="nix";uH.aliases=[];function uH(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}cH.displayName="nsis";cH.aliases=[];function cH(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}}}dH.displayName="ocaml";dH.aliases=[];function dH(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/}}fH.displayName="odin";fH.aliases=[];function fH(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)}hH.displayName="opencl";hH.aliases=[];function hH(e){e.register(Bd),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)}pH.displayName="openqasm";pH.aliases=["qasm"];function pH(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}mH.displayName="oz";mH.aliases=[];function mH(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:/[\[\](){}.:;?]/}}gH.displayName="parigp";gH.aliases=[];function gH(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:/[\[\]{}().,:;|]/}}bH.displayName="parser";bH.aliases=[];function bH(e){e.register(Ts),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)}yH.displayName="pascal";yH.aliases=["objectpascal"];function yH(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}vH.displayName="pascaligo";vH.aliases=[];function vH(e){(function(t){var n=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,r=/(?:\b\w+(?:)?|)/.source.replace(//g,function(){return n}),i=t.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)/.source.replace(//g,function(){return r}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/(?=\s+is\b)/.source.replace(//g,function(){return r}),"i"),inside:null},{pattern:RegExp(/(:\s*)/.source.replace(//g,function(){return r})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},a=["comment","keyword","builtin","operator","punctuation"].reduce(function(s,o){return s[o]=i[o],s},{});i["class-name"].forEach(function(s){s.inside=a})})(e)}OH.displayName="psl";OH.aliases=[];function OH(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:/[(){}\[\];,]/}}SH.displayName="pcaxis";SH.aliases=["px"];function SH(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}EH.displayName="peoplecode";EH.aliases=["pcode"];function EH(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}wH.displayName="phpdoc";wH.aliases=[];function wH(e){e.register(FO),e.register(U1),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)}TH.displayName="php-extras";TH.aliases=[];function TH(e){e.register(U1),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:/::|\\/}}})}xH.displayName="plant-uml";xH.aliases=["plantuml"];function xH(e){(function(t){var n=/\$\w+|%[a-z]+%/,r=/\[[^[\]]*\]/.source,i=/(?:[drlu]|do|down|le|left|ri|right|up)/.source,a="(?:-+"+i+"-+|\\.+"+i+"\\.+|-+(?:"+r+"-*)?|"+r+"-+|\\.+(?:"+r+"\\.*)?|"+r+"\\.+)",s=/(?:<{1,2}|\/{1,2}|\\{1,2}|<\||[#*^+}xo])/.source,o=/(?:>{1,2}|\/{1,2}|\\{1,2}|\|>|[#*^+{xo])/.source,l=/[[?]?[ox]?/.source,u=/[ox]?[\]?]?/.source,d=l+"(?:"+a+o+"|"+s+a+"(?:"+o+")?)"+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+d+/(?![-.<>?|\\\]ox])/.source),lookbehind:!0,greedy:!0,alias:"operator",inside:{expression:{pattern:/(\[)[^[\]]+(?=\])/,lookbehind:!0,inside:null},punctuation:/\[(?=$|\])|^\]/}},string:{pattern:/"[^"]*"/,greedy:!0},text:{pattern:/(\[[ \t]*[\r\n]+(?![\r\n]))[^\]]*(?=\])/,lookbehind:!0,greedy:!0,alias:"string"},keyword:[{pattern:/^([ \t]*)(?:abstract\s+class|end\s+(?:box|fork|group|merge|note|ref|split|title)|(?:fork|split)(?:\s+again)?|activate|actor|agent|alt|annotation|artifact|autoactivate|autonumber|backward|binary|boundary|box|break|caption|card|case|circle|class|clock|cloud|collections|component|concise|control|create|critical|database|deactivate|destroy|detach|diamond|else|elseif|end|end[hr]note|endif|endswitch|endwhile|entity|enum|file|folder|footer|frame|group|[hr]?note|header|hexagon|hide|if|interface|label|legend|loop|map|namespace|network|newpage|node|nwdiag|object|opt|package|page|par|participant|person|queue|rectangle|ref|remove|repeat|restore|return|robust|scale|set|show|skinparam|stack|start|state|stop|storage|switch|title|together|usecase|usecase\/|while)(?=\s|$)/m,lookbehind:!0,greedy:!0},/\b(?:elseif|equals|not|while)(?=\s*\()/,/\b(?:as|is|then)\b/],divider:{pattern:/^==.+==$/m,greedy:!0,alias:"important"},time:{pattern:/@(?:\d+(?:[:/]\d+){2}|[+-]?\d+|:[a-z]\w*(?:[+-]\d+)?)\b/i,greedy:!0,alias:"number"},color:{pattern:/#(?:[a-z_]+|[a-fA-F0-9]+)\b/,alias:"symbol"},variable:n,punctuation:/[:,;()[\]{}]|\.{3}/},t.languages["plant-uml"].arrow.inside.expression.inside=t.languages["plant-uml"],t.languages.plantuml=t.languages["plant-uml"]})(e)}kH.displayName="plsql";kH.aliases=[];function kH(e){e.register(DO),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"}})}AH.displayName="powerquery";AH.aliases=["mscript","pq"];function AH(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}_H.displayName="powershell";_H.aliases=[];function _H(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)}CH.displayName="processing";CH.aliases=[];function CH(e){e.register(wr),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"}})}RH.displayName="prolog";RH.aliases=[];function RH(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:/[(){}\[\],]/}}IH.displayName="promql";IH.aliases=[];function IH(e){(function(t){var n=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],r=["on","ignoring","group_right","group_left","by","without"],i=["offset"],a=n.concat(r,i);t.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+r.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+a.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(e)}NH.displayName="properties";NH.aliases=[];function NH(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:/[=:]/}}DH.displayName="protobuf";DH.aliases=[];function DH(e){e.register(wr),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)}PH.displayName="stylus";PH.aliases=[];function PH(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)}LH.displayName="twig";LH.aliases=[];function LH(e){e.register(Vs),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")})}MH.displayName="pug";MH.aliases=[];function MH(e){e.register(Ws),e.register(Ts),function(t){t.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:t.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:t.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:t.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:t.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:t.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:t.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:t.languages.javascript}],punctuation:/[.\-!=|]+/};for(var n=/(^([\t ]*)):(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,r=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],i={},a=0,s=r.length;a",function(){return o.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[o.language,"language-"+o.language],inside:t.languages[o.language]}}})}t.languages.insertBefore("pug","filter",i)}(e)}$H.displayName="puppet";$H.aliases=[];function $H(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)}FH.displayName="pure";FH.aliases=[];function FH(e){(function(t){t.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var n=["c",{lang:"c++",alias:"cpp"},"fortran"],r=/%< *-\*- *\d* *-\*-[\s\S]+?%>/.source;n.forEach(function(i){var a=i;if(typeof i!="string"&&(a=i.alias,i=i.lang),t.languages[a]){var s={};s["inline-lang-"+a]={pattern:RegExp(r.replace("",i.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:t.util.clone(t.languages.pure["inline-lang"].inside)},s["inline-lang-"+a].inside.rest=t.util.clone(t.languages[a]),t.languages.insertBefore("pure","inline-lang",s)}}),t.languages.c&&(t.languages.pure["inline-lang"].inside.rest=t.util.clone(t.languages.c))})(e)}BH.displayName="purebasic";BH.aliases=["pbfasm"];function BH(e){e.register(wr),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}UH.displayName="purescript";UH.aliases=["purs"];function UH(e){e.register(rx),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}zH.displayName="qsharp";zH.aliases=["qs"];function zH(e){e.register(wr),function(t){function n(g,O){return g.replace(/<<(\d+)>>/g,function(S,T){return"(?:"+O[+T]+")"})}function r(g,O,S){return RegExp(n(g,O),"")}function i(g,O){for(var S=0;S>/g,function(){return"(?:"+g+")"});return g.replace(/<>/g,"[^\\s\\S]")}var a={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function s(g){return"\\b(?:"+g.trim().replace(/ /g,"|")+")\\b"}var o=RegExp(s(a.type+" "+a.other)),l=/\b[A-Za-z_]\w*\b/.source,u=n(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[l]),d={keyword:o,punctuation:/[<>()?,.:[\]]/},f=/"(?:\\.|[^\\"])*"/.source;t.languages.qsharp=t.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[f]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[u]),lookbehind:!0,inside:d},{pattern:r(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[u]),lookbehind:!0,inside:d}],keyword:o,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),t.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var p=i(n(/\{(?:[^"{}]|<<0>>|<>)*\}/.source,[f]),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}jH.displayName="q";jH.aliases=[];function jH(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:/[(){}\[\];.]/}}HH.displayName="qml";HH.aliases=[];function HH(e){e.register(Ws),function(t){for(var n=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,r=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,i=/(?:[^\\()[\]{}"'/]||\/(?![*/])||\(*\)|\[*\]|\{*\}|\\[\s\S])/.source.replace(//g,function(){return n}).replace(//g,function(){return r}),a=0;a<2;a++)i=i.replace(//g,function(){return i});i=i.replace(//g,"[^\\s\\S]"),t.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(*\)\s*\{*\}/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}]))+/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}}(e)}QH.displayName="qore";QH.aliases=[];function QH(e){e.register(wr),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/})}WH.displayName="racket";WH.aliases=["rkt"];function WH(e){e.register(ix),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}VH.displayName="cshtml";VH.aliases=["razor"];function VH(e){e.register(F1),e.register(Ts),function(t){var n=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,r=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function i(x,k){for(var _=0;_/g,function(){return"(?:"+x+")"});return x.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+r+")").replace(//g,"(?:"+n+")")}var a=i(/\((?:[^()'"@/]|||)*\)/.source,2),s=i(/\[(?:[^\[\]'"@/]|||)*\]/.source,1),o=i(/\{(?:[^{}'"@/]|||)*\}/.source,2),l=i(/<(?:[^<>'"@/]||)*>/.source,1),u=/@/.source+/(?:await\b\s*)?/.source+"(?:"+/(?!await\b)\w+\b/.source+"|"+a+")(?:"+/[?!]?\.\w+\b/.source+"|(?:"+l+")?"+a+"|"+s+")*"+/(?![?!\.(\[]|<(?!\/))/.source,d=/@(?![\w()])/.source+"|"+u,f="(?:"+/"[^"@]*"|'[^'@]*'|[^\s'"@>=]+(?=[\s>])/.source+`|["'][^"'@]*(?:(?:`+d+`)[^"'@]*)+["'])`,p=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*|(?=[\s/>])))+)?/.source.replace(//,f),g=/(?!\d)[^\s>\/=$<%]+/.source+p+/\s*\/?>/.source,O=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|"+i(/<\1/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/*\.{3}(?:[^{}]|)*\})/.source;function s(u,d){return u=u.replace(//g,function(){return r}).replace(//g,function(){return i}).replace(//g,function(){return a}),RegExp(u,d)}a=s(a).source,t.languages.jsx=t.languages.extend("markup",n),t.languages.jsx.tag.pattern=s(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=n.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:s(//.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:s(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var o=function(u){return u?typeof u=="string"?u:typeof u.content=="string"?u.content:u.content.map(o).join(""):""},l=function(u){for(var d=[],f=0;f0&&d[d.length-1].tagName===o(p.content[0].content[1])&&d.pop():p.content[p.content.length-1].content==="/>"||d.push({tagName:o(p.content[0].content[1]),openedBraces:0}):d.length>0&&p.type==="punctuation"&&p.content==="{"?d[d.length-1].openedBraces++:d.length>0&&d[d.length-1].openedBraces>0&&p.type==="punctuation"&&p.content==="}"?d[d.length-1].openedBraces--:g=!0),(g||typeof p=="string")&&d.length>0&&d[d.length-1].openedBraces===0){var O=o(p);f0&&(typeof u[f-1]=="string"||u[f-1].type==="plain-text")&&(O=o(u[f-1])+O,u.splice(f-1,1),f--),u[f]=new t.Token("plain-text",O,null,O)}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)}qH.displayName="tsx";qH.aliases=[];function qH(e){e.register(dI),e.register(PO),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)}GH.displayName="reason";GH.aliases=[];function GH(e){e.register(wr),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}YH.displayName="rego";YH.aliases=[];function YH(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:/[,;.\[\]{}()]/}}ZH.displayName="renpy";ZH.aliases=["rpy"];function ZH(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}XH.displayName="rescript";XH.aliases=["res"];function XH(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}KH.displayName="rest";KH.aliases=[];function KH(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}}}JH.displayName="rip";JH.aliases=[];function JH(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`'",.:;#\/\\()<>\[\]{}]*/}}eQ.displayName="roboconf";eQ.aliases=[];function eQ(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:/[{},.;:=]/}}tQ.displayName="robotframework";tQ.aliases=["robot"];function tQ(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 d={};d["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var f in u)d[f]=u[f];return d.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},d.variable=r,d.comment=n,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return l}),"im"),alias:"section",inside:d}}var a={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},s={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:r}},o={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:r}};t.languages.robotframework={settings:i("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:i("Variables"),"test-cases":i("Test Cases",{"test-name":s,documentation:a,property:o}),keywords:i("Keywords",{"keyword-name":s,documentation:a,property:o}),tasks:i("Tasks",{"task-name":s,documentation:a,property:o}),comment:n},t.languages.robot=t.languages.robotframework})(e)}nQ.displayName="sas";nQ.aliases=[];function nQ(e){(function(t){var n=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,r=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,i={pattern:RegExp(n+"[bx]"),alias:"number"},a={pattern:/&[a-z_]\w*/i},s={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},o={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},l=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],u={pattern:RegExp(n),greedy:!0},d=/[$%@.(){}\[\];,\\]/,f={pattern:/%?\b\w+(?=\()/,alias:"keyword"},p={function:f,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":a,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:r,"numeric-constant":i,punctuation:d,string:u},g={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},O={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},S={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},T={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},w=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,x={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return w}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return w}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:l,function:f,"arg-value":p["arg-value"],operator:p.operator,argument:p.arg,number:r,"numeric-constant":i,punctuation:d,string:u}},k={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};t.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:|[^;"'])+;/.source.replace(//g,function(){return n}),"im"),alias:"language-sql",inside:t.languages.sql},"global-statements":S,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:r,"numeric-constant":i,punctuation:d,string: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:k,"submit-statement":T,"global-statements":S,number:r,"numeric-constant":i,punctuation:d,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:k,"submit-statement":T,"global-statements":S,number:r,"numeric-constant":i,punctuation:d,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":x,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:p},step:o,keyword:k,function:f,format:g,altformat:O,"global-statements":S,number:r,"numeric-constant":i,punctuation:d,string:u}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,inside:p},"macro-keyword":s,"macro-variable":a,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":s,"macro-variable":a,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:d}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:l,number:r,"numeric-constant":i}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:p},"cas-actions":x,comment:l,function:f,format:g,altformat:O,"numeric-constant":i,datetime:{pattern:RegExp(n+"(?:dt?|t)"),alias:"number"},string:u,step:o,keyword:k,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:r,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:d}})(e)}rQ.displayName="shell-session";rQ.aliases=["sh-session","shellsession"];function rQ(e){e.register(ZT),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)}iQ.displayName="smali";iQ.aliases=[];function iQ(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:/[{}(),;:]/}}aQ.displayName="smalltalk";aQ.aliases=[];function aQ(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:/[.;:?\[\](){}]/}}sQ.displayName="smarty";sQ.aliases=[];function sQ(e){e.register(Vs),function(t){t.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:t.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},t.languages.smarty["embedded-php"].inside.smarty.inside=t.languages.smarty,t.languages.smarty.string[0].inside.interpolation.inside.expression.inside=t.languages.smarty;var n=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,r=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']||\{(?:[^{}"']||\{(?:[^{}"']|)*\})*\})*\}/.source.replace(//g,function(){return n.source}),"g");t.hooks.add("before-tokenize",function(i){var a="{literal}",s="{/literal}",o=!1;t.languages["markup-templating"].buildPlaceholders(i,"smarty",r,function(l){return l===s&&(o=!1),o?!1:(l===a&&(o=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"smarty")})}(e)}oQ.displayName="sml";oQ.aliases=["smlnj"];function oQ(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)}lQ.displayName="solidity";lQ.aliases=["sol"];function lQ(e){e.register(wr),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}uQ.displayName="solution-file";uQ.aliases=["sln"];function uQ(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)}cQ.displayName="soy";cQ.aliases=[];function cQ(e){e.register(Vs),function(t){var n=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;t.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:n,greedy:!0},number:r,punctuation:/[\[\].?]/}},string:{pattern:n,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:r,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},t.hooks.add("before-tokenize",function(i){var a=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,s="{literal}",o="{/literal}",l=!1;t.languages["markup-templating"].buildPlaceholders(i,"soy",a,function(u){return u===o&&(l=!1),l?!1:(u===s&&(l=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"soy")})}(e)}fI.displayName="turtle";fI.aliases=["trig"];function fI(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}dQ.displayName="sparql";dQ.aliases=["rq"];function dQ(e){e.register(fI),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}fQ.displayName="splunk-spl";fQ.aliases=[];function fQ(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:/[()[\],]/}}hQ.displayName="sqf";hQ.aliases=[];function hQ(e){e.register(wr),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"]}pQ.displayName="squirrel";pQ.aliases=[];function pQ(e){e.register(wr),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"}})}mQ.displayName="stan";mQ.aliases=[];function mQ(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)}gQ.displayName="stata";gQ.aliases=[];function gQ(e){e.register(B1),e.register(cI),e.register(JT),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}bQ.displayName="iecst";bQ.aliases=[];function bQ(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:/[()[\].,;]/}}yQ.displayName="supercollider";yQ.aliases=["sclang"];function yQ(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}vQ.displayName="systemd";vQ.aliases=[];function vQ(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)}ax.displayName="t4-templating";ax.aliases=[];function ax(e){(function(t){function n(i,a,s){return{pattern:RegExp("<#"+i+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+i+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:a,alias:s}}}}function r(i){var a=t.languages[i],s="language-"+i;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:n("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:n("=",a,s),"class-feature":n("\\+",a,s),standard:n("",a,s)}}}}t.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:r})})(e)}OQ.displayName="t4-cs";OQ.aliases=["t4"];function OQ(e){e.register(F1),e.register(ax),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}SQ.displayName="t4-vb";SQ.aliases=[];function SQ(e){e.register(ax),e.register(tx),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}EQ.displayName="tap";EQ.aliases=[];function EQ(e){e.register(KT),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"}}}wQ.displayName="tcl";wQ.aliases=[];function wQ(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:/[{}()\[\]]/}}TQ.displayName="tt2";TQ.aliases=[];function TQ(e){e.register(wr),e.register(Vs),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)}xQ.displayName="toml";xQ.aliases=[];function xQ(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)}kQ.displayName="tremor";kQ.aliases=["trickle","troy"];function kQ(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)}AQ.displayName="typoscript";AQ.aliases=["tsconfig"];function AQ(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)}_Q.displayName="unrealscript";_Q.aliases=["uc","uscript"];function _Q(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}CQ.displayName="uorazor";CQ.aliases=[];function CQ(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:/[()\[\]{}:.,]/}}RQ.displayName="v";RQ.aliases=[];function RQ(e){e.register(wr),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)}IQ.displayName="vala";IQ.aliases=[];function IQ(e){e.register(wr),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]+$/}}})}NQ.displayName="velocity";NQ.aliases=[];function NQ(e){e.register(Ts),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)}DQ.displayName="verilog";DQ.aliases=[];function DQ(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:/[[\];(),.:]/}}PQ.displayName="vhdl";PQ.aliases=[];function PQ(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:/[{}[\];(),.:]/}}LQ.displayName="vim";LQ.aliases=[];function LQ(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:/[{}[\](),;:]/}}MQ.displayName="visual-basic";MQ.aliases=["vb","vba"];function MQ(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"]}$Q.displayName="warpscript";$Q.aliases=[];function $Q(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/}}FQ.displayName="wasm";FQ.aliases=[];function FQ(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:/[()]/}}BQ.displayName="web-idl";BQ.aliases=["webidl"];function BQ(e){(function(t){var n=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,r="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+n+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,i={};t.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+n),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+r),lookbehind:!0,inside:i},{pattern:RegExp("("+/\bcallback\s+/.source+n+/\s*=\s*/.source+")"+r),lookbehind:!0,inside:i},{pattern:RegExp(/(\btypedef\b\s*)/.source+r),lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+n),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+n),lookbehind:!0},RegExp(n+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+n),lookbehind:!0},{pattern:RegExp(r+"(?="+/\s*(?:\.{3}\s*)?/.source+n+/\s*[(),;=]/.source+")"),inside:i}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var a in t.languages["web-idl"])a!=="class-name"&&(i[a]=t.languages["web-idl"][a]);t.languages.webidl=t.languages["web-idl"]})(e)}UQ.displayName="wgsl";UQ.aliases=[];function UQ(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:/[@(){}[\],;<>:.]/}}zQ.displayName="wiki";zQ.aliases=[];function zQ(e){e.register(Ts),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}}}})}jQ.displayName="wolfram";jQ.aliases=["mathematica","nb","wl"];function jQ(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}HQ.displayName="wren";HQ.aliases=[];function HQ(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]+/}}}QQ.displayName="xeora";QQ.aliases=["xeoracube"];function QQ(e){e.register(Ts),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)}WQ.displayName="xml-doc";WQ.aliases=[];function WQ(e){e.register(Ts),function(t){function n(s,o){t.languages[s]&&t.languages.insertBefore(s,"comment",{"doc-comment":o})}var r=t.languages.markup.tag,i={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:r}},a={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:r}};n("csharp",i),n("fsharp",i),n("vbnet",a)}(e)}VQ.displayName="xojo";VQ.aliases=[];function VQ(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:/[.,;:()]/}}qQ.displayName="xquery";qQ.aliases=[];function qQ(e){e.register(Ts),function(t){t.languages.xquery=t.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),t.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,t.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,t.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,t.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:t.languages.xquery,alias:"language-xquery"};var n=function(i){return typeof i=="string"?i:typeof i.content=="string"?i.content:i.content.map(n).join("")},r=function(i){for(var a=[],s=0;s0&&a[a.length-1].tagName===n(o.content[0].content[1])&&a.pop():o.content[o.content.length-1].content==="/>"||a.push({tagName:n(o.content[0].content[1]),openedBraces:0}):a.length>0&&o.type==="punctuation"&&o.content==="{"&&(!i[s+1]||i[s+1].type!=="punctuation"||i[s+1].content!=="{")&&(!i[s-1]||i[s-1].type!=="plain-text"||i[s-1].content!=="{")?a[a.length-1].openedBraces++:a.length>0&&a[a.length-1].openedBraces>0&&o.type==="punctuation"&&o.content==="}"?a[a.length-1].openedBraces--:o.type!=="comment"&&(l=!0)),(l||typeof o=="string")&&a.length>0&&a[a.length-1].openedBraces===0){var u=n(o);s0&&(typeof i[s-1]=="string"||i[s-1].type==="plain-text")&&(u=n(i[s-1])+u,i.splice(s-1,1),s--),/^\s+$/.test(u)?i[s]=u:i[s]=new t.Token("plain-text",u,null,u)}o.content&&typeof o.content!="string"&&r(o.content)}};t.hooks.add("after-tokenize",function(i){i.language==="xquery"&&r(i.tokens)})}(e)}GQ.displayName="yang";GQ.aliases=[];function GQ(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:/[{};:]/}}YQ.displayName="zig";YQ.aliases=[];function YQ(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",a=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,s=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,n(a)),o=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,n(i)),l="(?!\\s)(?:!?\\s*(?:"+s+"\\s*)*"+o+")+";t.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)(?=\s*(?:\s*)?[=;,)])|(?=\s*(?:\s*)?\{)/.source.replace(//g,n(l)).replace(//g,n(a))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,n(l)).replace(//g,n(a))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:r,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},t.languages.zig["class-name"].forEach(function(u){u.inside===null&&(u.inside=t.languages.zig)})})(e)}se.register(Ts);se.register(Im);se.register(wr);se.register(KR);se.register(Ws);se.register(fU);se.register(hU);se.register(pU);se.register(mU);se.register(gU);se.register(bU);se.register(yU);se.register(vU);se.register(DO);se.register(OU);se.register(SU);se.register(EU);se.register(wU);se.register(Bd);se.register($1);se.register(GR);se.register(TU);se.register(xU);se.register(ZT);se.register(KT);se.register(nI);se.register(kU);se.register(AU);se.register(F1);se.register(_U);se.register(CU);se.register(RU);se.register(IU);se.register(NU);se.register(DU);se.register(PU);se.register(LU);se.register(ex);se.register(MU);se.register($U);se.register(FU);se.register(BU);se.register(UU);se.register(zU);se.register(jU);se.register(HU);se.register(QU);se.register(WU);se.register(VU);se.register(qU);se.register(GU);se.register(YU);se.register(ZU);se.register(XU);se.register(KU);se.register(JU);se.register(ez);se.register(tz);se.register(nz);se.register(rz);se.register(iz);se.register(az);se.register(sz);se.register(z1);se.register(oz);se.register(lz);se.register(uz);se.register(cz);se.register(dz);se.register(fz);se.register(hz);se.register(pz);se.register(mz);se.register(gz);se.register(YR);se.register(Vs);se.register(bz);se.register(yz);se.register(vz);se.register(Oz);se.register(Sz);se.register(Ez);se.register(wz);se.register(Tz);se.register(xz);se.register(kz);se.register(XT);se.register(Az);se.register(_z);se.register(Cz);se.register(Rz);se.register(Iz);se.register(Nz);se.register(Dz);se.register(Pz);se.register(Lz);se.register(Mz);se.register($z);se.register(Fz);se.register(Bz);se.register(Uz);se.register(zz);se.register(jz);se.register(Hz);se.register(Qz);se.register(Wz);se.register(Vz);se.register(qz);se.register(Gz);se.register(ZR);se.register(Yz);se.register(Zz);se.register(Xz);se.register(Kz);se.register(eI);se.register(lI);se.register(Jz);se.register(ej);se.register(tj);se.register(rx);se.register(nj);se.register(rj);se.register(ij);se.register(aj);se.register(sj);se.register(oj);se.register(NO);se.register(lj);se.register(uj);se.register(cj);se.register(dj);se.register(fj);se.register(hj);se.register(pj);se.register(mj);se.register(XR);se.register(gj);se.register(bj);se.register(B1);se.register(U1);se.register(FO);se.register(yj);se.register(vj);se.register(Oj);se.register(Sj);se.register(Ej);se.register(wj);se.register(Tj);se.register(PO);se.register(xj);se.register(kj);se.register(Aj);se.register(_j);se.register(Cj);se.register(Rj);se.register(Ij);se.register(Nj);se.register(Dj);se.register(JR);se.register(Pj);se.register(Lj);se.register(Mj);se.register($j);se.register(ix);se.register(Fj);se.register(Bj);se.register(Uj);se.register(zj);se.register(jj);se.register(Hj);se.register(Qj);se.register(Wj);se.register(tI);se.register(cI);se.register(Vj);se.register(qj);se.register(Gj);se.register(Yj);se.register(Zj);se.register(Xj);se.register(Kj);se.register(Jj);se.register(eH);se.register(tH);se.register(nH);se.register(rH);se.register(iH);se.register(aH);se.register(sH);se.register(oH);se.register(lH);se.register(uH);se.register(cH);se.register(rI);se.register(dH);se.register(fH);se.register(hH);se.register(pH);se.register(mH);se.register(gH);se.register(bH);se.register(yH);se.register(vH);se.register(OH);se.register(SH);se.register(EH);se.register(iI);se.register(wH);se.register(TH);se.register(xH);se.register(kH);se.register(AH);se.register(_H);se.register(CH);se.register(RH);se.register(IH);se.register(NH);se.register(DH);se.register(PH);se.register(LH);se.register(MH);se.register($H);se.register(FH);se.register(BH);se.register(UH);se.register(JT);se.register(zH);se.register(jH);se.register(HH);se.register(QH);se.register(aI);se.register(WH);se.register(VH);se.register(dI);se.register(qH);se.register(GH);se.register(YH);se.register(ZH);se.register(XH);se.register(KH);se.register(JH);se.register(eQ);se.register(tQ);se.register(sI);se.register(nQ);se.register(oI);se.register(rQ);se.register(iQ);se.register(aQ);se.register(sQ);se.register(oQ);se.register(lQ);se.register(uQ);se.register(cQ);se.register(fI);se.register(dQ);se.register(fQ);se.register(hQ);se.register(pQ);se.register(mQ);se.register(gQ);se.register(bQ);se.register(yQ);se.register(uI);se.register(vQ);se.register(ax);se.register(OQ);se.register(tx);se.register(SQ);se.register(EQ);se.register(wQ);se.register(TQ);se.register(xQ);se.register(kQ);se.register(AQ);se.register(_Q);se.register(CQ);se.register(RQ);se.register(IQ);se.register(NQ);se.register(DQ);se.register(PQ);se.register(LQ);se.register(MQ);se.register($Q);se.register(FQ);se.register(BQ);se.register(UQ);se.register(zQ);se.register(jQ);se.register(HQ);se.register(QQ);se.register(WQ);se.register(VQ);se.register(qQ);se.register(GQ);se.register(YQ);function XL(){XL=function(i,a){return new n(i,void 0,a)};var e=RegExp.prototype,t=new WeakMap;function n(i,a,s){var o=new RegExp(i,a);return t.set(o,s||t.get(i)),T3(o,n.prototype)}function r(i,a){var s=t.get(a);return Object.keys(s).reduce(function(o,l){var u=s[l];if(typeof u=="number")o[l]=i[u];else{for(var d=0;i[u[d]]===void 0&&d+1]+)>/g,function(l,u){var d=s[u];return"$"+(Array.isArray(d)?d.join("$"):d)}))}if(typeof a=="function"){var o=this;return e[Symbol.replace].call(this,i,function(){var l=arguments;return typeof l[l.length-1]!="object"&&(l=[].slice.call(l)).push(r(l,o)),a.apply(this,l)})}return e[Symbol.replace].call(this,i,a)},XL.apply(this,arguments)}function T3(e,t){return T3=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},T3(e,t)}function JJ(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 ent=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){Eo(r,"element",n)};function n(r,i,a){var s,o;if(a&&a.tagName==="pre"&&r.tagName==="code"){var l=(r==null||(s=r.data)==null?void 0:s.meta)||(r==null||(o=r.properties)==null?void 0:o.metastring)||"";r.properties.className?typeof r.properties.className=="boolean"?r.properties.className=[]:Array.isArray(r.properties.className)||(r.properties.className=[r.properties.className]):r.properties.className=[];var u,d,f=function(R){for(var N,D=ZD(R.properties.className);!(N=D()).done;){var L=N.value;if(L.slice(0,9)==="language-")return L.slice(9).toLowerCase()}return null}(r);if(!f&&t.defaultLanguage&&r.properties.className.push("language-"+(f=t.defaultLanguage)),r.properties.className.push("code-highlight"),f)try{var p,g;g=(p=f)!=null&&p.includes("diff-")?f.split("-")[1]:f,u=e.highlight(Ay(r),g),a.properties.className=(a.properties.className||[]).concat("language-"+g)}catch(R){if(!t.ignoreMissing||!/Unknown language/.test(R.message))throw R;u=r}else u=r;u.children=(d=1,function R(N){return N.reduce(function(D,L){if(L.type==="text"){var j=L.value,B=(j.match(/\n/g)||"").length;if(B===0)L.position={start:{line:d,column:1},end:{line:d,column:1}},D.push(L);else for(var V,W=j.split(` -`),re=ZD(W.entries());!(V=re()).done;){var ee=V.value,q=ee[0],te=ee[1];D.push({type:"text",value:q===W.length-1?te:te+` -`,position:{start:{line:d+q,column:1},end:{line:d+q,column:1}}})}return d+=B,D}if(Object.prototype.hasOwnProperty.call(L,"children")){var K=d;return L.children=R(L.children),D.push(L),L.position={start:{line:K,column:1},end:{line:d,column:1}},D}return D.push(L),D},[])})(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 O,S=function(R){var N=/{([\d,-]+)}/,D=R.split(",").map(function(B){return B.trim()}).join();if(N.test(D)){var L=N.exec(D)[1],j=vtt(L);return function(B){return j.includes(B+1)}}return function(){return!1}}(l),T=function(R){var N=XL(/showLineNumbers=(\d+)/i,{lines:1});if(N.test(R)){var D=N.exec(R);return Number(D.groups.lines)}return 1}(l),w=function(R){for(var N=new Array(R),D=0;D=L+1});j.children=B.children,!l.toLowerCase().includes("showLineNumbers".toLowerCase())&&!t.showLineNumbers||x.some(function(V){return l.toLowerCase().includes(V)})||(j.properties.line=[(L+T).toString()],j.properties.className.push("line-number")),S(L)&&j.properties.className.push("highlight-line"),(f==="diff"||(R=f)!=null&&R.includes("diff-"))&&Ay(j).substring(0,1)==="-"?j.properties.className.push("deleted"):(f==="diff"||(N=f)!=null&&N.includes("diff-"))&&Ay(j).substring(0,1)==="+"&&j.properties.className.push("inserted")},_=ZD(w.entries());!(O=_()).done;)k();w.length>0&&Ay(w[w.length-1]).trim()===""&&w.pop(),r.children=w}}}},tnt=ent(se),y_={},KL={};function nnt(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"]}}}),eM=sx(A0e,{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"]}}}),tM=sx(eM,{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"]}}}),cnt=sx(tM,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}}),aee={css1:k0e,css2:A0e,css3:eM,"selectors-3":eM,"selectors-4":tM,latest:tM,progressive:cnt};function gE(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="-"||e==="_"||e==="\\"||e>=" "}function see(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="-"||e==="_"||e>=" "}function bE(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var dnt={" ":!0," ":!0,"\n":!0,"\r":!0,"\f":!0},fnt={'"':!0,"'":!0},KD={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},hnt=6,JD="css-selector-parser parse error: ";function pnt(e){e===void 0&&(e={});var t=e.syntax,n=t===void 0?"latest":t,r=e.substitutes,i=e.strict,a=i===void 0?!0:i,s=typeof n=="object"?n:aee[n];s.baseSyntax&&(s=sx(aee[s.baseSyntax],s));var o=s.tag?[!0,!!ont(s.tag).wildcard]:[!1,!1],l=o[0],u=o[1],d=!!s.ids,f=!!s.classNames,p=!!s.namespace,g=s.namespace&&(s.namespace===!0||s.namespace.wildcard===!0);if(p&&!l)throw new Error("".concat(JD,"Namespaces cannot be enabled while tags are disabled."));var O=!!r,S=s.combinators?eee(s.combinators):y_,T=s.attributes?[!0,s.attributes.operators?eee(s.attributes.operators):y_,s.attributes.caseSensitivityModifiers?rnt(s.attributes.caseSensitivityModifiers):KL,s.attributes.unknownCaseSensitivityModifiers==="accept"]:[!1,y_,KL,!1],w=T[0],x=T[1],k=T[2],_=T[3],R=_||Object.keys(k).length>0,N=s.pseudoClasses?[!0,s.pseudoClasses.definitions?nee(s.pseudoClasses.definitions):t4,s.pseudoClasses.unknown==="accept"]:[!1,t4,!1],D=N[0],L=N[1],j=N[2],B=s.pseudoElements?[!0,s.pseudoElements.notation==="singleColon"||s.pseudoElements.notation==="both",!s.pseudoElements.notation||s.pseudoElements.notation==="doubleColon"||s.pseudoElements.notation==="both",s.pseudoElements.definitions?nee(Array.isArray(s.pseudoElements.definitions)?{NoArgument:s.pseudoElements.definitions}:s.pseudoElements.definitions):t4,s.pseudoElements.unknown==="accept"]:[!1,!1,!1,t4,!1],V=B[0],W=B[1],re=B[2],ee=B[3],q=B[4],te="",K=te.length,G=0,ie="",H=function(we){return ie===we},Re=function(){return H("*")||gE(ie)},Se=function(we){G=we,ie=te.charAt(G)},Z=function(){G++,ie=te.charAt(G)},ke=function(){var we=ie;return G++,ie=te.charAt(G),we};function $e(we){var be=Math.min(K-1,G),xe=new Error("".concat(JD).concat(we," Pos: ").concat(be,"."));throw xe.position=be,xe.name="ParserError",xe}function ae(we,be){if(!we)return $e(be)}var Je=function(){ae(G=K},Xe=function(we){ae(G(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,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"]}YR.displayName="ini";YR.aliases=[];function YR(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:/=/}}z1.displayName="java";z1.aliases=[];function z1(e){e.register(Sr),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)}ZR.displayName="regex";ZR.aliases=[];function ZR(e){(function(t){var n={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},r=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,i={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},a={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},s="(?:[^\\\\-]|"+r.source+")",o=RegExp(s+"-"+s),l={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};t.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:o,inside:{escape:r,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":n,"char-set":a,escape:r}},"special-escape":n,"char-set":i,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":l}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:r,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]||&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}EO.displayName="json";EO.aliases=["webmanifest"];function EO(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}XR.displayName="kotlin";XR.aliases=["kt","kts"];function XR(e){e.register(Sr),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)}KR.displayName="less";KR.aliases=[];function KR(e){e.register(Tm),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"}})}KT.displayName="lua";KT.aliases=[];function KT(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:/[\[\](){},;]|\.+|:+/}}JR.displayName="makefile";JR.aliases=[];function JR(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:/[:;(){}]/}}JT.displayName="yaml";JT.aliases=["yml"];function JT(e){(function(t){var n=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+r.source+"(?:[ ]+"+n.source+")?|"+n.source+"(?:[ ]+"+r.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),s=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function o(l,u){u=(u||"").replace(/m/g,"")+"m";var d=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return l});return RegExp(d,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"(?:"+a+"|"+s+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:o(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:o(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:o(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:o(s),lookbehind:!0,greedy:!0},number:{pattern:o(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:r,important:n,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml})(e)}eI.displayName="markdown";eI.aliases=["md"];function eI(e){e.register(ks),function(t){var n=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(o){return o=o.replace(//g,function(){return n}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+o+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),s=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+a+s+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+s+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+s+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),inside:{"table-header":{pattern:RegExp(i),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:r(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:r(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(o){["url","bold","italic","strike","code-snippet"].forEach(function(l){o!==l&&(t.languages.markdown[o].inside.content.inside[l]=t.languages.markdown[l])})}),t.hooks.add("after-tokenize",function(o){if(o.language!=="markdown"&&o.language!=="md")return;function l(u){if(!(!u||typeof u=="string"))for(var d=0,f=u.length;d]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete e.languages.objectivec["class-name"],e.languages.objc=e.languages.objectivec}nI.displayName="perl";nI.aliases=[];function nI(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)}Xs.displayName="markup-templating";Xs.aliases=[];function Xs(e){e.register(ks),function(t){function n(r,i){return"___"+r.toUpperCase()+i+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(r,i,a,s){if(r.language===i){var o=r.tokenStack=[];r.code=r.code.replace(a,function(l){if(typeof s=="function"&&!s(l))return l;for(var u=o.length,d;r.code.indexOf(d=n(i,u))!==-1;)++u;return o[u]=l,d}),r.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(r,i){if(r.language!==i||!r.tokenStack)return;r.grammar=t.languages[i];var a=0,s=Object.keys(r.tokenStack);function o(l){for(var u=0;u=s.length);u++){var d=l[u];if(typeof d=="string"||d.content&&typeof d.content=="string"){var f=s[a],p=r.tokenStack[f],g=typeof d=="string"?d:d.content,O=n(i,f),S=g.indexOf(O);if(S>-1){++a;var T=g.substring(0,S),w=new t.Token(i,t.tokenize(p,r.grammar),"language-"+i,p),x=g.substring(S+O.length),k=[];T&&k.push.apply(k,o([T])),k.push(w),x&&k.push.apply(k,o([x])),typeof d=="string"?l.splice.apply(l,[u,1].concat(k)):d.content=k}}else d.content&&o(d.content)}return l}o(r.tokens)}}})}(e)}j1.displayName="php";j1.aliases=[];function j1(e){e.register(Xs),function(t){var n=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,r=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],i=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,a=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,s=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:n,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:i,operator:a,punctuation:s};var o={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},l=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:o}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:o}}];t.languages.insertBefore("php","variable",{string:l,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:n,string:l,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,number:i,operator:a,punctuation:s}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(u){if(/<\?/.test(u.code)){var d=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;t.languages["markup-templating"].buildPlaceholders(u,"php",d)}}),t.hooks.add("after-tokenize",function(u){t.languages["markup-templating"].tokenizePlaceholders(u,"php")})}(e)}ex.displayName="python";ex.aliases=["py"];function ex(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}rI.displayName="r";rI.aliases=[];function rI(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:/[(){}\[\],;]/}}H1.displayName="ruby";H1.aliases=["rb"];function H1(e){e.register(Sr),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)}iI.displayName="rust";iI.aliases=[];function iI(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)}aI.displayName="sass";aI.aliases=[];function aI(e){e.register(Tm),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)}sI.displayName="scss";sI.aliases=[];function sI(e){e.register(Tm),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}wO.displayName="sql";wO.aliases=[];function wO(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:/[;[\]()`,.]/}}oI.displayName="swift";oI.aliases=[];function oI(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})}TO.displayName="typescript";TO.aliases=["ts"];function TO(e){e.register(Zs),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)}tx.displayName="basic";tx.aliases=[];function tx(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:/[,;:()]/}}nx.displayName="vbnet";nx.aliases=[];function nx(e){e.register(tx),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:/[,;:(){}]/})}class rx{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}rx.prototype.property={};rx.prototype.normal={};rx.prototype.space=null;function r0e(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&utt.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace($J,ftt);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!$J.test(a)){let s=a.replace(ctt,dtt);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=KB}return new i(r,t)}function dtt(e){return"-"+e.toLowerCase()}function ftt(e){return e.charAt(1).toUpperCase()}const htt={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"},W1=r0e([s0e,a0e,u0e,c0e,ott],"html"),xp=r0e([s0e,a0e,u0e,c0e,ltt],"svg"),FJ=/[#.]/g;function ptt(e,t){const n=e||"",r={};let i=0,a,s;for(;i=48&&t<=57}function Ett(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function wtt(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function zJ(e){return wtt(e)||f0e(e)}const jJ=document.createElement("i");function Yw(e){const t="&"+e+";";jJ.innerHTML=t;const n=jJ.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const Lb=String.fromCharCode,Ttt=["","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 xtt(e,t={}){const n=typeof t.additional=="string"?t.additional.charCodeAt(0):t.additional,r=[];let i=0,a=-1,s="",o,l;t.position&&("start"in t.position||"indent"in t.position?(l=t.position.indent,o=t.position.start):o=t.position);let u=(o?o.line:0)||1,d=(o?o.column:0)||1,f=g(),p;for(i--;++i<=e.length;)if(p===10&&(d=(l?l[a]:0)||1),p=e.charCodeAt(i),p===38){const T=e.charCodeAt(i+1);if(T===9||T===10||T===12||T===32||T===38||T===60||Number.isNaN(T)||n&&T===n){s+=Lb(p),d++;continue}const w=i+1;let x=w,k=w,_;if(T===35){k=++x;const W=e.charCodeAt(k);W===88||W===120?(_="hexadecimal",k=++x):_="decimal"}else _="named";let R="",N="",P="";const L=_==="named"?zJ:_==="decimal"?f0e:Ett;for(k--;++k<=e.length;){const W=e.charCodeAt(k);if(!L(W))break;P+=Lb(W),_==="named"&&Stt.includes(P)&&(R=P,N=Yw(P))}let j=e.charCodeAt(k)===59;if(j){k++;const W=_==="named"?Yw(P):!1;W&&(R=P,N=W)}let B=1+k-w,V="";if(!(!j&&t.nonTerminated===!1))if(!P)_!=="named"&&O(4,B);else if(_==="named"){if(j&&!N)O(5,1);else if(R!==P&&(k=x+R.length,B=1+k-x,j=!1),!j){const W=R?1:3;if(t.attribute){const re=e.charCodeAt(k);re===61?(O(W,B),N=""):zJ(re)?N="":O(W,B)}else O(W,B)}V=N}else{j||O(2,B);let W=Number.parseInt(P,_==="hexadecimal"?16:10);if(ktt(W))O(7,B),V=Lb(65533);else if(W in UJ)O(6,B),V=UJ[W];else{let re="";Att(W)&&O(6,B),W>65535&&(W-=65536,re+=Lb(W>>>10|55296),W=56320|W&1023),V=re+Lb(W)}}if(V){S(),f=g(),i=k-1,d+=k-w+1,r.push(V);const W=g();W.offset++,t.reference&&t.reference.call(t.referenceContext,V,{start:f,end:W},e.slice(w-1,k)),f=W}else P=e.slice(w-1,k),s+=P,d+=P.length,i=k-1}else p===10&&(u++,a++,d=0),Number.isNaN(p)?S():(s+=Lb(p),d++);return r.join("");function g(){return{line:u,column:d,offset:i+((o?o.offset:0)||0)}}function O(T,w){let x;t.warning&&(x=g(),x.column+=w,x.offset+=w,t.warning.call(t.warningContext,Ttt[T],x,T))}function S(){s&&(r.push(s),t.text&&t.text.call(t.textContext,s,{start:f,end:g()}),s="")}}function ktt(e){return e>=55296&&e<=57343||e>1114111}function Att(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 _tt=0,e4={},ys={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++_tt}),e.__id},clone:function e(t,n){n=n||{};var r,i;switch(ys.util.type(t)){case"Object":if(i=ys.util.objId(t),n[i])return n[i];r={},n[i]=r;for(var a in t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=ys.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach(function(s,o){r[o]=e(s,n)}),r);default:return t}}},languages:{plain:e4,plaintext:e4,text:e4,txt:e4,extend:function(e,t){var n=ys.util.clone(ys.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r=r||ys.languages;var i=r[e],a={};for(var s in i)if(i.hasOwnProperty(s)){if(s==t)for(var o in n)n.hasOwnProperty(o)&&(a[o]=n[o]);n.hasOwnProperty(s)||(a[s]=i[s])}var l=r[e];return r[e]=a,ys.languages.DFS(ys.languages,function(u,d){d===l&&u!=e&&(this[u]=a)}),a},DFS:function e(t,n,r,i){i=i||{};var a=ys.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var o=t[s],l=ys.util.type(o);l==="Object"&&!i[a(o)]?(i[a(o)]=!0,e(o,n,null,i)):l==="Array"&&!i[a(o)]&&(i[a(o)]=!0,e(o,n,s,i))}}},plugins:{},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(ys.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=ys.tokenize(r.code,r.grammar),ys.hooks.run("after-tokenize",r),w2.stringify(ys.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 Ctt;return b_(i,i.head,e),h0e(e,i,t,i.head,0),Itt(i)},hooks:{all:{},add:function(e,t){var n=ys.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=ys.hooks.all[e];if(!(!n||!n.length))for(var r=0,i;i=n[r++];)i(t)}},Token:w2};function w2(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||"").length|0}function HJ(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function h0e(e,t,n,r,i,a){for(var s in n)if(!(!n.hasOwnProperty(s)||!n[s])){var o=n[s];o=Array.isArray(o)?o:[o];for(var l=0;l=a.reach);w+=T.value.length,T=T.next){var x=T.value;if(t.length>e.length)return;if(!(x instanceof w2)){var k=1,_;if(p){if(_=HJ(S,w,e,f),!_||_.index>=e.length)break;var L=_.index,R=_.index+_[0].length,N=w;for(N+=T.value.length;L>=N;)T=T.next,N+=T.value.length;if(N-=T.value.length,w=N,T.value instanceof w2)continue;for(var P=T;P!==t.tail&&(Na.reach&&(a.reach=W);var re=T.prev;B&&(re=b_(t,re,B),w+=B.length),Rtt(t,re,k);var ee=new w2(s,d?ys.tokenize(j,d):j,g,j);if(T=b_(t,re,ee),V&&b_(t,T,V),k>1){var q={cause:s+","+l,reach:W};h0e(e,t,n,T.prev,w,q),a&&q.reach>a.reach&&(a.reach=q.reach)}}}}}}function Ctt(){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 b_(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 Rtt(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:/[,.:()]/}}nU.displayName="abnf";nU.aliases=[];function nU(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)}rU.displayName="actionscript";rU.aliases=[];function rU(e){e.register(Zs),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}})}iU.displayName="ada";iU.aliases=[];function iU(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}}aU.displayName="agda";aU.aliases=[];function aU(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)}sU.displayName="al";sU.aliases=[];function sU(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:/[()\[\]{}:.;,]/}}oU.displayName="antlr4";oU.aliases=["g4"];function oU(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}lU.displayName="apacheconf";lU.aliases=[];function lU(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:/\^?.*\$|\^.*\$?/}}uU.displayName="apex";uU.aliases=[];function uU(e){e.register(Sr),e.register(wO),function(t){var n=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,r=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(//g,function(){return n.source});function i(s){return RegExp(s.replace(//g,function(){return r}),"i")}var a={keyword:n,punctuation:/[()\[\]{};,:.<>]/};t.languages.apex={comment:t.languages.clike.comment,string:t.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:t.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:i(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)/.source),lookbehind:!0,inside:a},{pattern:i(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:a},{pattern:i(/(?=\s*\w+\s*[;=,(){:])/.source),inside:a}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:n,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(e)}cU.displayName="apl";cU.aliases=[];function cU(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"}}}dU.displayName="applescript";dU.aliases=[];function dU(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:/[{}():,¬«»《》]/}}fU.displayName="aql";fU.aliases=[];function fU(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:/::|[?.:,;()[\]{}]/}}hU.displayName="arff";hU.aliases=[];function hU(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:/[{},]/}}pU.displayName="armasm";pU.aliases=["arm-asm"];function pU(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}mU.displayName="arturo";mU.aliases=["art"];function mU(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)}gU.displayName="asciidoc";gU.aliases=["adoc"];function gU(e){(function(t){var n={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},r=t.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})$[\s\S]*?^\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:n,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:n.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:n,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function i(a){a=a.split(" ");for(var s={},o=0,l=a.length;o/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:e.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:e.languages.csharp}}}),e.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,e.languages.insertBefore("inside","punctuation",{directive:e.languages.aspnet.directive},e.languages.aspnet.tag.inside["attr-value"]),e.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),e.languages.insertBefore("aspnet",e.languages.javascript?"script":"tag",{"asp-script":{pattern:/(]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:e.languages.csharp||{}}})}yU.displayName="asm6502";yU.aliases=[];function yU(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:/[(),:]/}}vU.displayName="asmatmel";vU.aliases=[];function vU(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:/[(),:]/}}OU.displayName="autohotkey";OU.aliases=[];function OU(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:/[{}[\]():,]/}}SU.displayName="autoit";SU.aliases=[];function SU(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:/[\[\]().,:]/}}EU.displayName="avisynth";EU.aliases=["avs"];function EU(e){(function(t){function n(u,d){return u.replace(/<<(\d+)>>/g,function(f,p){return d[+p]})}function r(u,d,f){return RegExp(n(u,d),f)}var i=/bool|clip|float|int|string|val/.source,a=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),s=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),o=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),l=[a,s,o].join("|");t.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:r(/\b(?:<<0>>)\s+("?)\w+\1/.source,[i],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:r(/\b(?:<<0>>)\b/.source,[l],"i"),alias:"function"},"type-cast":{pattern:r(/\b(?:<<0>>)(?=\s*\()/.source,[i],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},t.languages.avs=t.languages.avisynth})(e)}wU.displayName="avro-idl";wU.aliases=["avdl"];function wU(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"]}TU.displayName="awk";TU.aliases=["gawk"];function TU(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}xU.displayName="batch";xU.aliases=[];function xU(e){(function(t){var n=/%%?[~:\w]+%?|!\S+!/,r={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},i=/"(?:[\\"]"|[^"])*"(?!")/,a=/(?:\b|-)\d+\b/;t.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:i,parameter:r,variable:n,number:a,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:i,parameter:r,variable:n,number:a,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:i,parameter:r,variable:[n,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:a,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:i,parameter:r,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:n,number:a,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(e)}kU.displayName="bbcode";kU.aliases=["shortcode"];function kU(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}AU.displayName="bbj";AU.aliases=[];function AU(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)}_U.displayName="bicep";_U.aliases=[];function _U(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}CU.displayName="birb";CU.aliases=[];function CU(e){e.register(Sr),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"}})}RU.displayName="bison";RU.aliases=[];function RU(e){e.register(Fd),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:/%[%?]|[|:;\[\]<>]/}}})}IU.displayName="bnf";IU.aliases=["rbnf"];function IU(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}NU.displayName="bqn";NU.aliases=[];function NU(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:/[←⇐↩(){}⟨⟩[\]‿·⋄,.;:?]/}}DU.displayName="brainfuck";DU.aliases=[];function DU(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}PU.displayName="brightscript";PU.aliases=[];function PU(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}LU.displayName="bro";LU.aliases=[];function LU(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:/[{}[\];(),.:]/}}MU.displayName="bsl";MU.aliases=["oscript"];function MU(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}$U.displayName="cfscript";$U.aliases=["cfc"];function $U(e){e.register(Sr),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}FU.displayName="chaiscript";FU.aliases=[];function FU(e){e.register(Sr),e.register(B1),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]+/}}})}BU.displayName="cil";BU.aliases=[];function BU(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]+/}}UU.displayName="cilkc";UU.aliases=["cilk-c"];function UU(e){e.register(Fd),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}zU.displayName="cilkcpp";zU.aliases=["cilk","cilk-cpp"];function zU(e){e.register(B1),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}jU.displayName="clojure";jU.aliases=[];function jU(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:/[{}\[\](),]/}}HU.displayName="cmake";HU.aliases=[];function HU(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:/[()>}]|\$[<{]/}}QU.displayName="cobol";QU.aliases=[];function QU(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:/[.:,()]/}}WU.displayName="coffeescript";WU.aliases=["coffee"];function WU(e){e.register(Zs),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)}VU.displayName="concurnas";VU.aliases=["conc"];function VU(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}qU.displayName="csp";qU.aliases=[];function qU(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)}GU.displayName="cooklang";GU.aliases=[];function GU(e){(function(t){var n=/(?:(?!\s)[\d$+<=a-zA-Z\x80-\uFFFF])+/.source,r=/[^{}@#]+/.source,i=/\{[^}#@]*\}/.source,a=r+i,s=/(?:h|hours|hrs|m|min|minutes)/.source,o={pattern:/\{[^{}]*\}/,inside:{amount:{pattern:/([\{|])[^{}|*%]+/,lookbehind:!0,alias:"number"},unit:{pattern:/(%)[^}]+/,lookbehind:!0,alias:"symbol"},"servings-scaler":{pattern:/\*/,alias:"operator"},"servings-alternative-separator":{pattern:/\|/,alias:"operator"},"unit-separator":{pattern:/(?:%|(\*)%)/,lookbehind:!0,alias:"operator"},punctuation:/[{}]/}};t.languages.cooklang={comment:{pattern:/\[-[\s\S]*?-\]|--.*/,greedy:!0},meta:{pattern:/>>.*:.*/,inside:{property:{pattern:/(>>\s*)[^\s:](?:[^:]*[^\s:])?/,lookbehind:!0}}},"cookware-group":{pattern:new RegExp("#(?:"+a+"|"+n+")"),inside:{cookware:{pattern:new RegExp("(^#)(?:"+r+")"),lookbehind:!0,alias:"variable"},"cookware-keyword":{pattern:/^#/,alias:"keyword"},"quantity-group":{pattern:new RegExp(/\{[^{}@#]*\}/),inside:{quantity:{pattern:new RegExp(/(^\{)/.source+r),lookbehind:!0,alias:"number"},punctuation:/[{}]/}}}},"ingredient-group":{pattern:new RegExp("@(?:"+a+"|"+n+")"),inside:{ingredient:{pattern:new RegExp("(^@)(?:"+r+")"),lookbehind:!0,alias:"variable"},"ingredient-keyword":{pattern:/^@/,alias:"keyword"},"amount-group":o}},"timer-group":{pattern:/~(?!\s)[^@#~{}]*\{[^{}]*\}/,inside:{timer:{pattern:/(^~)[^{]+/,lookbehind:!0,alias:"variable"},"duration-group":{pattern:/\{[^{}]*\}/,inside:{punctuation:/[{}]/,unit:{pattern:new RegExp(/(%\s*)/.source+s+/\b/.source),lookbehind:!0,alias:"symbol"},operator:/%/,duration:{pattern:/\d+/,alias:"number"}}},"timer-keyword":{pattern:/^~/,alias:"keyword"}}}}})(e)}YU.displayName="coq";YU.aliases=[];function YU(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)}ZU.displayName="crystal";ZU.aliases=[];function ZU(e){e.register(H1),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)}XU.displayName="css-extras";XU.aliases=[];function XU(e){e.register(Tm),function(t){var n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r;t.languages.css.selector={pattern:t.languages.css.selector.pattern,lookbehind:!0,inside:r={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},t.languages.css.atrule.inside["selector-function-argument"].inside=r,t.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var i={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};t.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:i,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:i,number:a})}(e)}KU.displayName="csv";KU.aliases=[];function KU(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}JU.displayName="cue";JU.aliases=[];function JU(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)}ez.displayName="cypher";ez.aliases=[];function ez(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:/[()[\]{},;.]/}}tz.displayName="d";tz.aliases=[];function tz(e){e.register(Sr),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"}})}nz.displayName="dart";nz.aliases=[];function nz(e){e.register(Sr),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)}rz.displayName="dataweave";rz.aliases=[];function rz(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)}iz.displayName="dax";iz.aliases=[];function iz(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:/[;\[\](){}`,.]/}}az.displayName="dhall";az.aliases=[];function az(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}sz.displayName="django";sz.aliases=["jinja2"];function sz(e){e.register(Xs),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)}oz.displayName="dns-zone-file";oz.aliases=["dns-zone"];function oz(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"]}lz.displayName="docker";lz.aliases=["dockerfile"];function lz(e){(function(t){var n=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,r=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,function(){return n}),i=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,a=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return i}),s={pattern:RegExp(i),greedy:!0},o={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function l(u,d){return u=u.replace(//g,function(){return a}).replace(//g,function(){return r}),RegExp(u,d)}t.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:l(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[s,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:l(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:l(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:l(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:o,string:s,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:o},t.languages.dockerfile=t.languages.docker})(e)}uz.displayName="dot";uz.aliases=["gv"];function uz(e){(function(t){var n="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",r={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:t.languages.markup}};function i(a,s){return RegExp(a.replace(//g,function(){return n}),s)}t.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:i(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:r},"attr-value":{pattern:i(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:r},"attr-name":{pattern:i(/([\[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:r},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:i(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:r},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},t.languages.gv=t.languages.dot})(e)}cz.displayName="ebnf";cz.aliases=[];function cz(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:/[-=|*/!]/}}dz.displayName="editorconfig";dz.aliases=[];function dz(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:/^=/}}}}fz.displayName="eiffel";fz.aliases=[];function fz(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:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}hz.displayName="ejs";hz.aliases=["eta"];function hz(e){e.register(Zs),e.register(Xs),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)}pz.displayName="elixir";pz.aliases=[];function pz(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}}}})}mz.displayName="elm";mz.aliases=[];function mz(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:/[{}[\]|(),.:]/}}gz.displayName="etlua";gz.aliases=[];function gz(e){e.register(KT),e.register(Xs),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)}bz.displayName="erb";bz.aliases=[];function bz(e){e.register(Xs),e.register(H1),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)}yz.displayName="erlang";yz.aliases=[];function yz(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:/[()[\]{}:;,.#|]|<<|>>/}}vz.displayName="excel-formula";vz.aliases=["xls","xlsx"];function vz(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"]}Oz.displayName="fsharp";Oz.aliases=[];function Oz(e){e.register(Sr),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}})}Sz.displayName="factor";Sz.aliases=[];function Sz(e){(function(t){var n={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},r={number:/\\[^\s']|%\w/},i={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:n},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:n}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:r.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:r}},a=function(u){return(u+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},s=function(u){return new RegExp("(^|\\s)(?:"+u.map(a).join("|")+")(?=\\s|$)")},o={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated",">>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(o).forEach(function(u){i[u].pattern=s(o[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=s(l),t.languages.factor=i})(e)}Ez.displayName="false";Ez.aliases=[];function Ez(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:/,/}}})}Tz.displayName="flow";Tz.aliases=[];function Tz(e){e.register(Zs),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)}xz.displayName="fortran";xz.aliases=[];function xz(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:/\(\/|\/\)|[(),;:&]/}}kz.displayName="ftl";kz.aliases=[];function kz(e){e.register(Xs),function(t){for(var n=/[^<()"']|\((?:)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,/[^\s\S]/.source);var i={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:))*\})*\1/.source.replace(//g,function(){return n})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:))*\}/.source.replace(//g,function(){return n})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};i.string[1].inside.interpolation.inside.rest=i,t.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}}},t.hooks.add("before-tokenize",function(a){var s=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return n}),"gi");t.languages["markup-templating"].buildPlaceholders(a,"ftl",s)}),t.hooks.add("after-tokenize",function(a){t.languages["markup-templating"].tokenizePlaceholders(a,"ftl")})}(e)}Az.displayName="gml";Az.aliases=["gamemakerlanguage"];function Az(e){e.register(Sr),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/})}_z.displayName="gap";_z.aliases=[];function _z(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}Cz.displayName="gcode";Cz.aliases=[];function Cz(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:/[:*]/}}Rz.displayName="gdscript";Rz.aliases=[];function Rz(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:/[.:,;()[\]{}]/}}Iz.displayName="gedcom";Iz.aliases=[];function Iz(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"}}}Nz.displayName="gettext";Nz.aliases=["po"];function Nz(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}Dz.displayName="gherkin";Dz.aliases=[];function Dz(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)}Pz.displayName="git";Pz.aliases=[];function Pz(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}}Lz.displayName="glsl";Lz.aliases=[];function Lz(e){e.register(Fd),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/})}Mz.displayName="gn";Mz.aliases=["gni"];function Mz(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}$z.displayName="linker-script";$z.aliases=["ld"];function $z(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"]}Fz.displayName="go-module";Fz.aliases=["go-mod"];function Fz(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:/[()[\],]/}}Bz.displayName="gradle";Bz.aliases=[];function Bz(e){e.register(Sr),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)}Uz.displayName="graphql";Uz.aliases=[];function Uz(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(T){return typeof T!="string"&&T.type!=="comment"&&T.type!=="scalar"}),i=0;function a(T){return r[i+T]}function s(T,w){w=w||0;for(var x=0;x0)){var g=o(/^\{$/,/^\}$/);if(g===-1)continue;for(var O=i;O=0&&l(S,"variable-input")}}}}})}zz.displayName="groovy";zz.aliases=[];function zz(e){e.register(Sr),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)}jz.displayName="textile";jz.aliases=[];function jz(e){e.register(ks),function(t){var n=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,r=/\)|\((?![^|()\n]+\))/.source;function i(f,p){return RegExp(f.replace(//g,function(){return"(?:"+n+")"}).replace(//g,function(){return"(?:"+r+")"}),p||"")}var a={css:{pattern:/\{[^{}]+\}/,inside:{rest:t.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},s=t.languages.textile=t.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:i(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:i(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:a},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:i(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:i(/(^[*#]+)+/.source),lookbehind:!0,inside:a},punctuation:/^[*#]+/}},table:{pattern:i(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:i(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:a},punctuation:/\||^\./}},inline:{pattern:i(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:i(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:i(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:i(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:i(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:i(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:i(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:i(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:i(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:a},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:i(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:i(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:i(/(^")+/.source),lookbehind:!0,inside:a},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:i(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:i(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:i(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:a},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),o=s.phrase.inside,l={inline:o.inline,link:o.link,image:o.image,footnote:o.footnote,acronym:o.acronym,mark:o.mark};s.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var u=o.inline.inside;u.bold.inside=l,u.italic.inside=l,u.inserted.inside=l,u.deleted.inside=l,u.span.inside=l;var d=o.table.inside;d.inline=l.inline,d.link=l.link,d.image=l.image,d.footnote=l.footnote,d.acronym=l.acronym,d.mark=l.mark}(e)}Hz.displayName="haml";Hz.aliases=[];function Hz(e){e.register(H1),function(t){t.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:t.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:t.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:t.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:t.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:t.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:t.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var n="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",r=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],i={},a=0,s=r.length;a@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},t.hooks.add("before-tokenize",function(n){var r=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;t.languages["markup-templating"].buildPlaceholders(n,"handlebars",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"handlebars")}),t.languages.hbs=t.languages.handlebars,t.languages.mustache=t.languages.handlebars}(e)}ix.displayName="haskell";ix.aliases=["hs"];function ix(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}Wz.displayName="haxe";Wz.aliases=[];function Wz(e){e.register(Sr),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"}})}Vz.displayName="hcl";Vz.aliases=[];function Vz(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:/[=\[\]{}]/}}qz.displayName="hlsl";qz.aliases=[];function qz(e){e.register(Fd),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/})}Gz.displayName="hoon";Gz.aliases=[];function Gz(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:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}Yz.displayName="hpkp";Yz.aliases=[];function Yz(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}Zz.displayName="hsts";Zz.aliases=[];function Zz(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}Xz.displayName="uri";Xz.aliases=["url"];function Xz(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}Kz.displayName="http";Kz.aliases=[];function Kz(e){(function(t){function n(d){return RegExp("(^(?:"+d+"):[ ]*(?![ ]))[^]+","i")}t.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:t.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:n(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:t.languages.csp},{pattern:n(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:t.languages.hpkp},{pattern:n(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:t.languages.hsts},{pattern:n(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var r=t.languages,i={"application/javascript":r.javascript,"application/json":r.json||r.javascript,"application/xml":r.xml,"text/xml":r.xml,"text/html":r.html,"text/css":r.css,"text/plain":r.plain},a={"application/json":!0,"application/xml":!0};function s(d){var f=d.replace(/^[a-z]+\//,""),p="\\w+/(?:[\\w.-]+\\+)+"+f+"(?![+\\w.-])";return"(?:"+d+"|"+p+")"}var o;for(var l in i)if(i[l]){o=o||{};var u=a[l]?s(l):l;o[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]}}o&&t.languages.insertBefore("http","header",o)})(e)}Jz.displayName="ichigojam";Jz.aliases=[];function Jz(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:/[\[,;:()\]]/}}ej.displayName="icon";ej.aliases=[];function ej(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:/[\[\](){},;]/}}tj.displayName="icu-message-format";tj.aliases=[];function tj(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"},a={pattern:r,greedy:!0,inside:{escape:i}},s=n(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return r.source}),8),o={pattern:RegExp(s),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};t.languages["icu-message-format"]={argument:{pattern:RegExp(s),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":o,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":o,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+n(/(?:[^{}']|'[^']*'|\{(?:)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:i,string:a},o.inside.message.inside=t.languages["icu-message-format"],t.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=t.languages["icu-message-format"]})(e)}nj.displayName="idris";nj.aliases=["idr"];function nj(e){e.register(ix),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}rj.displayName="ignore";rj.aliases=["gitignore","hgignore","npmignore"];function rj(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)}ij.displayName="inform7";ij.aliases=[];function ij(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"}}aj.displayName="io";aj.aliases=[];function aj(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:/[()]/}}_O.displayName="javadoclike";_O.aliases=[];function _O(e){(function(t){var n=t.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function r(a,s){var o="doc-comment",l=t.languages[a];if(l){var u=l[o];if(!u){var d={};d[o]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},l=t.languages.insertBefore(a,"comment",d),u=l[o]}if(u instanceof RegExp&&(u=l[o]={pattern:u}),Array.isArray(u))for(var f=0,p=u.length;f|\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}lj.displayName="javadoc";lj.aliases=[];function lj(e){e.register(z1),e.register(_O),e.register(ks),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)}uj.displayName="javastacktrace";uj.aliases=[];function uj(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/}}}}cj.displayName="jexl";cj.aliases=[];function cj(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:/[{}[\](),.]/}}dj.displayName="jolie";dj.aliases=[];function dj(e){e.register(Sr),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]*:)/}})}fj.displayName="jq";fj.aliases=[];function fj(e){(function(t){var n=/\\\((?:[^()]|\([^()]*\))*\)/.source,r=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return n})),i={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+n),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},a=t.languages.jq={comment:/#.*/,property:{pattern:RegExp(r.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:i},string:{pattern:r,lookbehind:!0,greedy:!0,inside:i},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};i.interpolation.inside.content.inside=a})(e)}hj.displayName="js-templates";hj.aliases=[];function hj(e){e.register(Zs),function(t){var n=t.languages.javascript["template-string"],r=n.pattern.source,i=n.inside.interpolation,a=i.inside["interpolation-punctuation"],s=i.pattern.source;function o(O,S){if(t.languages[O])return{pattern:RegExp("((?:"+S+")\\s*)"+r),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:O}}}}t.languages.javascript["template-string"]=[o("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),o("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),o("svg",/\bsvg/.source),o("markdown",/\b(?:markdown|md)/.source),o("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),o("sql",/\bsql/.source),n].filter(Boolean);function l(O,S){return"___"+S.toUpperCase()+"_"+O+"___"}function u(O,S,T){var w={code:O,grammar:S,language:T};return t.hooks.run("before-tokenize",w),w.tokens=t.tokenize(w.code,w.grammar),t.hooks.run("after-tokenize",w),w.tokens}function d(O){var S={};S["interpolation-punctuation"]=a;var T=t.tokenize(O,S);if(T.length===3){var w=[1,1];w.push.apply(w,u(T[1],t.languages.javascript,"javascript")),T.splice.apply(T,w)}return new t.Token("interpolation",T,i.alias,O)}function f(O,S,T){var w=t.tokenize(O,{interpolation:{pattern:RegExp(s),lookbehind:!0}}),x=0,k={},_=w.map(function(L){if(typeof L=="string")return L;for(var j=L.content,B;O.indexOf(B=l(x++,T))!==-1;);return k[B]=j,B}).join(""),R=u(_,S,T),N=Object.keys(k);x=0;function P(L){for(var j=0;j=N.length)return;var B=L[j];if(typeof B=="string"||typeof B.content=="string"){var V=N[x],W=typeof B=="string"?B:B.content,re=W.indexOf(V);if(re!==-1){++x;var ee=W.substring(0,re),q=d(k[V]),ne=W.substring(re+V.length),K=[];if(ee&&K.push(ee),K.push(q),ne){var G=[ne];P(G),K.push.apply(K,G)}typeof B=="string"?(L.splice.apply(L,[j,1].concat(K)),j+=K.length-1):B.content=K}}else{var ie=B.content;Array.isArray(ie)?P(ie):P([ie])}}}return P(R),new t.Token(T,R,"language-"+T,O)}var p={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};t.hooks.add("after-tokenize",function(O){if(!(O.language in p))return;function S(T){for(var w=0,x=T.length;w\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)}mj.displayName="n4js";mj.aliases=["n4jsd"];function mj(e){e.register(Zs),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}gj.displayName="js-extras";gj.aliases=[];function gj(e){e.register(Zs),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:/:/}}}}}}Oj.displayName="julia";Oj.aliases=[];function Oj(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|[πℯ]/}}Sj.displayName="keepalived";Sj.aliases=[];function Sj(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:/[\{\}]/}}Ej.displayName="keyman";Ej.aliases=[];function Ej(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:/[()=,]/}}wj.displayName="kumir";wj.aliases=["kum"];function wj(e){(function(t){var n=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function r(i,a){return RegExp(i.replace(//g,n),a)}t.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:r(/(^|[])(?:да|нет)(?=[]|$)/.source),lookbehind:!0},"operator-word":{pattern:r(/(^|[])(?:и|или|не)(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:r(/(^|[])знач(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:r(/(^|[])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:r(/(^|[])(?:компл|сканкод|файл|цвет)(?=[]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:r(/(^|[])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[]|$)/.source),lookbehind:!0},name:{pattern:r(/(^|[])[^\d][^]*(?:\x20+[^]+)*(?=[]|$)/.source),lookbehind:!0},number:{pattern:r(/(^|[])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},t.languages.kum=t.languages.kumir})(e)}Tj.displayName="kusto";Tj.aliases=[];function Tj(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:/[()\[\]{},;.:]/}}xj.displayName="latex";xj.aliases=["context","tex"];function xj(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)}kj.displayName="latte";kj.aliases=[];function kj(e){e.register(Sr),e.register(Xs),e.register(j1),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)}ax.displayName="scheme";ax.aliases=[];function ax(e){(function(t){t.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(n({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function n(r){for(var i in r)r[i]=r[i].replace(/<[\w\s]+>/g,function(a){return"(?:"+r[a].trim()+")"});return r[i]}})(e)}Aj.displayName="lilypond";Aj.aliases=["ly"];function Aj(e){e.register(ax),function(t){for(var n=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|)*\)/.source,r=5,i=0;i/g,function(){return n});n=n.replace(//g,/[^\s\S]/.source);var a=t.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|))/.source.replace(//g,function(){return n}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:t.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};a["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=a,t.languages.ly=a}(e)}_j.displayName="liquid";_j.aliases=[];function _j(e){e.register(Xs),e.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},e.hooks.add("before-tokenize",function(t){var n=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,r=!1;e.languages["markup-templating"].buildPlaceholders(t,"liquid",n,function(i){var a=/^\{%-?\s*(\w+)/.exec(i);if(a){var s=a[1];if(s==="raw"&&!r)return r=!0,!0;if(s==="endraw")return r=!1,!0}return!r})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"liquid")})}Cj.displayName="lisp";Cj.aliases=["elisp","emacs","emacs-lisp"];function Cj(e){(function(t){function n(O){return RegExp(/(\()/.source+"(?:"+O+")"+/(?=[\s\)])/.source)}function r(O){return RegExp(/([\s([])/.source+"(?:"+O+")"+/(?=[\s)])/.source)}var i=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,a="&"+i,s="(\\()",o="(?=\\))",l="(?=\\s)",u=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,d={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+i+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+i),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+i),alias:"property"},splice:{pattern:RegExp(",@?"+i),alias:["symbol","variable"]},keyword:[{pattern:RegExp(s+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+l),lookbehind:!0},{pattern:RegExp(s+"(?:append|by|collect|concat|do|finally|for|in|return)"+l),lookbehind:!0}],declare:{pattern:n(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:n(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:r(/nil|t/.source),lookbehind:!0},number:{pattern:r(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(s+"def(?:const|custom|group|var)\\s+"+i),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(i)}},defun:{pattern:RegExp(s+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+i+/\s+\(/.source+u+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+i),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(s+"lambda\\s+\\(\\s*(?:&?"+i+"(?:\\s+&?"+i+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(s+i),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},f={"lisp-marker":RegExp(a),varform:{pattern:RegExp(/\(/.source+i+/\s+(?=\S)/.source+u+/\)/.source),inside:d},argument:{pattern:RegExp(/(^|[\s(])/.source+i),lookbehind:!0,alias:"variable"},rest:d},p="\\S+(?:\\s+\\S+)*",g={pattern:RegExp(s+u+o),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+p),inside:f},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+p),inside:f},keys:{pattern:RegExp("&key\\s+"+p+"(?:\\s+&allow-other-keys)?"),inside:f},argument:{pattern:RegExp(i),alias:"variable"},punctuation:/[()]/}};d.lambda.inside.arguments=g,d.defun.inside.arguments=t.util.clone(g),d.defun.inside.arguments.inside.sublist=g,t.languages.lisp=d,t.languages.elisp=d,t.languages.emacs=d,t.languages["emacs-lisp"]=d})(e)}Rj.displayName="livescript";Rj.aliases=[];function Rj(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}Ij.displayName="llvm";Ij.aliases=[];function Ij(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)}Nj.displayName="log";Nj.aliases=[];function Nj(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:/[\[\].,]/}}Dj.displayName="lolcode";Dj.aliases=[];function Dj(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}|…|,|!/}}Pj.displayName="magma";Pj.aliases=[];function Pj(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:/[()[\]{}<>,;.:]/}}lI.displayName="mata";lI.aliases=[];function lI(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)}Lj.displayName="matlab";Lj.aliases=[];function Lj(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}|[.,;\[\](){}!]/}}Mj.displayName="maxscript";Mj.aliases=[];function Mj(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)}$j.displayName="mel";$j.aliases=[];function $j(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}Fj.displayName="mermaid";Fj.aliases=[];function Fj(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:/[(){};]/}}Bj.displayName="metafont";Bj.aliases=[];function Bj(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}}}Uj.displayName="mizar";Uj.aliases=[];function Uj(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:/\(#|#\)|[,:;\[\](){}]/}}zj.displayName="mongodb";zj.aliases=[];function zj(e){e.register(Zs),function(t){var n=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],r=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];n=n.map(function(a){return a.replace("$","\\$")});var i="(?:"+n.join("|")+")\\b";t.languages.mongodb=t.languages.extend("javascript",{}),t.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+i+"(?:\\1)?$")}}}),t.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},t.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+r.join("|")+")\\b"),alias:"keyword"}})}(e)}jj.displayName="monkey";jj.aliases=[];function jj(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:/[.,:;()\[\]]/}}Hj.displayName="moonscript";Hj.aliases=["moon"];function Hj(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}Qj.displayName="n1ql";Qj.aliases=[];function Qj(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:/[;[\](),.{}:]/}}Wj.displayName="nand2tetris-hdl";Wj.aliases=[];function Wj(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:/[{}[\];(),:]/}}Vj.displayName="naniscript";Vj.aliases=["nani"];function Vj(e){(function(t){var n=/\{[^\r\n\[\]{}]*\}/,r={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:n,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};t.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:n,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:r}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:n,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:r},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},t.languages.nani=t.languages.naniscript,t.hooks.add("after-tokenize",function(s){var o=s.tokens;o.forEach(function(l){if(typeof l!="string"&&l.type==="generic-text"){var u=a(l);i(u)||(l.type="bad-line",l.content=u)}})});function i(s){for(var o="[]{}",l=[],u=0;u=&|$!]/}}Gj.displayName="neon";Gj.aliases=[];function Gj(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:/[,:=[\]{}()-]/}}Yj.displayName="nevod";Yj.aliases=[];function Yj(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\-.]+/}}Zj.displayName="nginx";Zj.aliases=[];function Zj(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)}Xj.displayName="nim";Xj.aliases=[];function Xj(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:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}Kj.displayName="nix";Kj.aliases=[];function Kj(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}Jj.displayName="nsis";Jj.aliases=[];function Jj(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}}}eH.displayName="ocaml";eH.aliases=[];function eH(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/}}tH.displayName="odin";tH.aliases=[];function tH(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)}nH.displayName="opencl";nH.aliases=[];function nH(e){e.register(Fd),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)}rH.displayName="openqasm";rH.aliases=["qasm"];function rH(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}iH.displayName="oz";iH.aliases=[];function iH(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:/[\[\](){}.:;?]/}}aH.displayName="parigp";aH.aliases=[];function aH(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:/[\[\]{}().,:;|]/}}sH.displayName="parser";sH.aliases=[];function sH(e){e.register(ks),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)}oH.displayName="pascal";oH.aliases=["objectpascal"];function oH(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}lH.displayName="pascaligo";lH.aliases=[];function lH(e){(function(t){var n=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,r=/(?:\b\w+(?:)?|)/.source.replace(//g,function(){return n}),i=t.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)/.source.replace(//g,function(){return r}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/(?=\s+is\b)/.source.replace(//g,function(){return r}),"i"),inside:null},{pattern:RegExp(/(:\s*)/.source.replace(//g,function(){return r})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},a=["comment","keyword","builtin","operator","punctuation"].reduce(function(s,o){return s[o]=i[o],s},{});i["class-name"].forEach(function(s){s.inside=a})})(e)}uH.displayName="psl";uH.aliases=[];function uH(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:/[(){}\[\];,]/}}cH.displayName="pcaxis";cH.aliases=["px"];function cH(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}dH.displayName="peoplecode";dH.aliases=["pcode"];function dH(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}fH.displayName="phpdoc";fH.aliases=[];function fH(e){e.register(_O),e.register(j1),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)}hH.displayName="php-extras";hH.aliases=[];function hH(e){e.register(j1),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:/::|\\/}}})}pH.displayName="plant-uml";pH.aliases=["plantuml"];function pH(e){(function(t){var n=/\$\w+|%[a-z]+%/,r=/\[[^[\]]*\]/.source,i=/(?:[drlu]|do|down|le|left|ri|right|up)/.source,a="(?:-+"+i+"-+|\\.+"+i+"\\.+|-+(?:"+r+"-*)?|"+r+"-+|\\.+(?:"+r+"\\.*)?|"+r+"\\.+)",s=/(?:<{1,2}|\/{1,2}|\\{1,2}|<\||[#*^+}xo])/.source,o=/(?:>{1,2}|\/{1,2}|\\{1,2}|\|>|[#*^+{xo])/.source,l=/[[?]?[ox]?/.source,u=/[ox]?[\]?]?/.source,d=l+"(?:"+a+o+"|"+s+a+"(?:"+o+")?)"+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+d+/(?![-.<>?|\\\]ox])/.source),lookbehind:!0,greedy:!0,alias:"operator",inside:{expression:{pattern:/(\[)[^[\]]+(?=\])/,lookbehind:!0,inside:null},punctuation:/\[(?=$|\])|^\]/}},string:{pattern:/"[^"]*"/,greedy:!0},text:{pattern:/(\[[ \t]*[\r\n]+(?![\r\n]))[^\]]*(?=\])/,lookbehind:!0,greedy:!0,alias:"string"},keyword:[{pattern:/^([ \t]*)(?:abstract\s+class|end\s+(?:box|fork|group|merge|note|ref|split|title)|(?:fork|split)(?:\s+again)?|activate|actor|agent|alt|annotation|artifact|autoactivate|autonumber|backward|binary|boundary|box|break|caption|card|case|circle|class|clock|cloud|collections|component|concise|control|create|critical|database|deactivate|destroy|detach|diamond|else|elseif|end|end[hr]note|endif|endswitch|endwhile|entity|enum|file|folder|footer|frame|group|[hr]?note|header|hexagon|hide|if|interface|label|legend|loop|map|namespace|network|newpage|node|nwdiag|object|opt|package|page|par|participant|person|queue|rectangle|ref|remove|repeat|restore|return|robust|scale|set|show|skinparam|stack|start|state|stop|storage|switch|title|together|usecase|usecase\/|while)(?=\s|$)/m,lookbehind:!0,greedy:!0},/\b(?:elseif|equals|not|while)(?=\s*\()/,/\b(?:as|is|then)\b/],divider:{pattern:/^==.+==$/m,greedy:!0,alias:"important"},time:{pattern:/@(?:\d+(?:[:/]\d+){2}|[+-]?\d+|:[a-z]\w*(?:[+-]\d+)?)\b/i,greedy:!0,alias:"number"},color:{pattern:/#(?:[a-z_]+|[a-fA-F0-9]+)\b/,alias:"symbol"},variable:n,punctuation:/[:,;()[\]{}]|\.{3}/},t.languages["plant-uml"].arrow.inside.expression.inside=t.languages["plant-uml"],t.languages.plantuml=t.languages["plant-uml"]})(e)}mH.displayName="plsql";mH.aliases=[];function mH(e){e.register(wO),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"}})}gH.displayName="powerquery";gH.aliases=["mscript","pq"];function gH(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}bH.displayName="powershell";bH.aliases=[];function bH(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)}yH.displayName="processing";yH.aliases=[];function yH(e){e.register(Sr),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"}})}vH.displayName="prolog";vH.aliases=[];function vH(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:/[(){}\[\],]/}}OH.displayName="promql";OH.aliases=[];function OH(e){(function(t){var n=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],r=["on","ignoring","group_right","group_left","by","without"],i=["offset"],a=n.concat(r,i);t.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+r.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+a.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(e)}SH.displayName="properties";SH.aliases=[];function SH(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:/[=:]/}}EH.displayName="protobuf";EH.aliases=[];function EH(e){e.register(Sr),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)}wH.displayName="stylus";wH.aliases=[];function wH(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)}TH.displayName="twig";TH.aliases=[];function TH(e){e.register(Xs),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")})}xH.displayName="pug";xH.aliases=[];function xH(e){e.register(Zs),e.register(ks),function(t){t.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:t.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:t.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:t.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:t.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:t.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:t.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:t.languages.javascript}],punctuation:/[.\-!=|]+/};for(var n=/(^([\t ]*)):(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,r=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],i={},a=0,s=r.length;a",function(){return o.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[o.language,"language-"+o.language],inside:t.languages[o.language]}}})}t.languages.insertBefore("pug","filter",i)}(e)}kH.displayName="puppet";kH.aliases=[];function kH(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)}AH.displayName="pure";AH.aliases=[];function AH(e){(function(t){t.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var n=["c",{lang:"c++",alias:"cpp"},"fortran"],r=/%< *-\*- *\d* *-\*-[\s\S]+?%>/.source;n.forEach(function(i){var a=i;if(typeof i!="string"&&(a=i.alias,i=i.lang),t.languages[a]){var s={};s["inline-lang-"+a]={pattern:RegExp(r.replace("",i.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:t.util.clone(t.languages.pure["inline-lang"].inside)},s["inline-lang-"+a].inside.rest=t.util.clone(t.languages[a]),t.languages.insertBefore("pure","inline-lang",s)}}),t.languages.c&&(t.languages.pure["inline-lang"].inside.rest=t.util.clone(t.languages.c))})(e)}_H.displayName="purebasic";_H.aliases=["pbfasm"];function _H(e){e.register(Sr),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}CH.displayName="purescript";CH.aliases=["purs"];function CH(e){e.register(ix),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}RH.displayName="qsharp";RH.aliases=["qs"];function RH(e){e.register(Sr),function(t){function n(g,O){return g.replace(/<<(\d+)>>/g,function(S,T){return"(?:"+O[+T]+")"})}function r(g,O,S){return RegExp(n(g,O),"")}function i(g,O){for(var S=0;S>/g,function(){return"(?:"+g+")"});return g.replace(/<>/g,"[^\\s\\S]")}var a={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function s(g){return"\\b(?:"+g.trim().replace(/ /g,"|")+")\\b"}var o=RegExp(s(a.type+" "+a.other)),l=/\b[A-Za-z_]\w*\b/.source,u=n(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[l]),d={keyword:o,punctuation:/[<>()?,.:[\]]/},f=/"(?:\\.|[^\\"])*"/.source;t.languages.qsharp=t.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[f]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[u]),lookbehind:!0,inside:d},{pattern:r(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[u]),lookbehind:!0,inside:d}],keyword:o,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),t.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var p=i(n(/\{(?:[^"{}]|<<0>>|<>)*\}/.source,[f]),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}IH.displayName="q";IH.aliases=[];function IH(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:/[(){}\[\];.]/}}NH.displayName="qml";NH.aliases=[];function NH(e){e.register(Zs),function(t){for(var n=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,r=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,i=/(?:[^\\()[\]{}"'/]||\/(?![*/])||\(*\)|\[*\]|\{*\}|\\[\s\S])/.source.replace(//g,function(){return n}).replace(//g,function(){return r}),a=0;a<2;a++)i=i.replace(//g,function(){return i});i=i.replace(//g,"[^\\s\\S]"),t.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(*\)\s*\{*\}/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}]))+/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}}(e)}DH.displayName="qore";DH.aliases=[];function DH(e){e.register(Sr),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/})}PH.displayName="racket";PH.aliases=["rkt"];function PH(e){e.register(ax),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}LH.displayName="cshtml";LH.aliases=["razor"];function LH(e){e.register(U1),e.register(ks),function(t){var n=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,r=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function i(x,k){for(var _=0;_/g,function(){return"(?:"+x+")"});return x.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+r+")").replace(//g,"(?:"+n+")")}var a=i(/\((?:[^()'"@/]|||)*\)/.source,2),s=i(/\[(?:[^\[\]'"@/]|||)*\]/.source,1),o=i(/\{(?:[^{}'"@/]|||)*\}/.source,2),l=i(/<(?:[^<>'"@/]||)*>/.source,1),u=/@/.source+/(?:await\b\s*)?/.source+"(?:"+/(?!await\b)\w+\b/.source+"|"+a+")(?:"+/[?!]?\.\w+\b/.source+"|(?:"+l+")?"+a+"|"+s+")*"+/(?![?!\.(\[]|<(?!\/))/.source,d=/@(?![\w()])/.source+"|"+u,f="(?:"+/"[^"@]*"|'[^'@]*'|[^\s'"@>=]+(?=[\s>])/.source+`|["'][^"'@]*(?:(?:`+d+`)[^"'@]*)+["'])`,p=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*|(?=[\s/>])))+)?/.source.replace(//,f),g=/(?!\d)[^\s>\/=$<%]+/.source+p+/\s*\/?>/.source,O=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|"+i(/<\1/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/*\.{3}(?:[^{}]|)*\})/.source;function s(u,d){return u=u.replace(//g,function(){return r}).replace(//g,function(){return i}).replace(//g,function(){return a}),RegExp(u,d)}a=s(a).source,t.languages.jsx=t.languages.extend("markup",n),t.languages.jsx.tag.pattern=s(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=n.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:s(//.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:s(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var o=function(u){return u?typeof u=="string"?u:typeof u.content=="string"?u.content:u.content.map(o).join(""):""},l=function(u){for(var d=[],f=0;f0&&d[d.length-1].tagName===o(p.content[0].content[1])&&d.pop():p.content[p.content.length-1].content==="/>"||d.push({tagName:o(p.content[0].content[1]),openedBraces:0}):d.length>0&&p.type==="punctuation"&&p.content==="{"?d[d.length-1].openedBraces++:d.length>0&&d[d.length-1].openedBraces>0&&p.type==="punctuation"&&p.content==="}"?d[d.length-1].openedBraces--:g=!0),(g||typeof p=="string")&&d.length>0&&d[d.length-1].openedBraces===0){var O=o(p);f0&&(typeof u[f-1]=="string"||u[f-1].type==="plain-text")&&(O=o(u[f-1])+O,u.splice(f-1,1),f--),u[f]=new t.Token("plain-text",O,null,O)}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)}MH.displayName="tsx";MH.aliases=[];function MH(e){e.register(uI),e.register(TO),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)}$H.displayName="reason";$H.aliases=[];function $H(e){e.register(Sr),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}FH.displayName="rego";FH.aliases=[];function FH(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:/[,;.\[\]{}()]/}}BH.displayName="renpy";BH.aliases=["rpy"];function BH(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}UH.displayName="rescript";UH.aliases=["res"];function UH(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}zH.displayName="rest";zH.aliases=[];function zH(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}}}jH.displayName="rip";jH.aliases=[];function jH(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`'",.:;#\/\\()<>\[\]{}]*/}}HH.displayName="roboconf";HH.aliases=[];function HH(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:/[{},.;:=]/}}QH.displayName="robotframework";QH.aliases=["robot"];function QH(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 d={};d["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var f in u)d[f]=u[f];return d.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},d.variable=r,d.comment=n,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return l}),"im"),alias:"section",inside:d}}var a={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},s={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:r}},o={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:r}};t.languages.robotframework={settings:i("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:i("Variables"),"test-cases":i("Test Cases",{"test-name":s,documentation:a,property:o}),keywords:i("Keywords",{"keyword-name":s,documentation:a,property:o}),tasks:i("Tasks",{"task-name":s,documentation:a,property:o}),comment:n},t.languages.robot=t.languages.robotframework})(e)}WH.displayName="sas";WH.aliases=[];function WH(e){(function(t){var n=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,r=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,i={pattern:RegExp(n+"[bx]"),alias:"number"},a={pattern:/&[a-z_]\w*/i},s={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},o={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},l=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],u={pattern:RegExp(n),greedy:!0},d=/[$%@.(){}\[\];,\\]/,f={pattern:/%?\b\w+(?=\()/,alias:"keyword"},p={function:f,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":a,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:r,"numeric-constant":i,punctuation:d,string:u},g={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},O={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},S={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},T={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},w=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,x={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return w}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return w}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:l,function:f,"arg-value":p["arg-value"],operator:p.operator,argument:p.arg,number:r,"numeric-constant":i,punctuation:d,string:u}},k={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};t.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:|[^;"'])+;/.source.replace(//g,function(){return n}),"im"),alias:"language-sql",inside:t.languages.sql},"global-statements":S,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:r,"numeric-constant":i,punctuation:d,string: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:k,"submit-statement":T,"global-statements":S,number:r,"numeric-constant":i,punctuation:d,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:k,"submit-statement":T,"global-statements":S,number:r,"numeric-constant":i,punctuation:d,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":x,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:p},step:o,keyword:k,function:f,format:g,altformat:O,"global-statements":S,number:r,"numeric-constant":i,punctuation:d,string:u}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,inside:p},"macro-keyword":s,"macro-variable":a,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":s,"macro-variable":a,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:d}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:l,number:r,"numeric-constant":i}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:p},"cas-actions":x,comment:l,function:f,format:g,altformat:O,"numeric-constant":i,datetime:{pattern:RegExp(n+"(?:dt?|t)"),alias:"number"},string:u,step:o,keyword:k,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:r,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:d}})(e)}VH.displayName="shell-session";VH.aliases=["sh-session","shellsession"];function VH(e){e.register(XT),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)}qH.displayName="smali";qH.aliases=[];function qH(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:/[{}(),;:]/}}GH.displayName="smalltalk";GH.aliases=[];function GH(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:/[.;:?\[\](){}]/}}YH.displayName="smarty";YH.aliases=[];function YH(e){e.register(Xs),function(t){t.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:t.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},t.languages.smarty["embedded-php"].inside.smarty.inside=t.languages.smarty,t.languages.smarty.string[0].inside.interpolation.inside.expression.inside=t.languages.smarty;var n=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,r=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']||\{(?:[^{}"']||\{(?:[^{}"']|)*\})*\})*\}/.source.replace(//g,function(){return n.source}),"g");t.hooks.add("before-tokenize",function(i){var a="{literal}",s="{/literal}",o=!1;t.languages["markup-templating"].buildPlaceholders(i,"smarty",r,function(l){return l===s&&(o=!1),o?!1:(l===a&&(o=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"smarty")})}(e)}ZH.displayName="sml";ZH.aliases=["smlnj"];function ZH(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)}XH.displayName="solidity";XH.aliases=["sol"];function XH(e){e.register(Sr),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}KH.displayName="solution-file";KH.aliases=["sln"];function KH(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)}JH.displayName="soy";JH.aliases=[];function JH(e){e.register(Xs),function(t){var n=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;t.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:n,greedy:!0},number:r,punctuation:/[\[\].?]/}},string:{pattern:n,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:r,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},t.hooks.add("before-tokenize",function(i){var a=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,s="{literal}",o="{/literal}",l=!1;t.languages["markup-templating"].buildPlaceholders(i,"soy",a,function(u){return u===o&&(l=!1),l?!1:(u===s&&(l=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"soy")})}(e)}cI.displayName="turtle";cI.aliases=["trig"];function cI(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}eQ.displayName="sparql";eQ.aliases=["rq"];function eQ(e){e.register(cI),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}tQ.displayName="splunk-spl";tQ.aliases=[];function tQ(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:/[()[\],]/}}nQ.displayName="sqf";nQ.aliases=[];function nQ(e){e.register(Sr),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"]}rQ.displayName="squirrel";rQ.aliases=[];function rQ(e){e.register(Sr),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"}})}iQ.displayName="stan";iQ.aliases=[];function iQ(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)}aQ.displayName="stata";aQ.aliases=[];function aQ(e){e.register(z1),e.register(lI),e.register(ex),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}sQ.displayName="iecst";sQ.aliases=[];function sQ(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:/[()[\].,;]/}}oQ.displayName="supercollider";oQ.aliases=["sclang"];function oQ(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}lQ.displayName="systemd";lQ.aliases=[];function lQ(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)}sx.displayName="t4-templating";sx.aliases=[];function sx(e){(function(t){function n(i,a,s){return{pattern:RegExp("<#"+i+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+i+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:a,alias:s}}}}function r(i){var a=t.languages[i],s="language-"+i;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:n("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:n("=",a,s),"class-feature":n("\\+",a,s),standard:n("",a,s)}}}}t.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:r})})(e)}uQ.displayName="t4-cs";uQ.aliases=["t4"];function uQ(e){e.register(U1),e.register(sx),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}cQ.displayName="t4-vb";cQ.aliases=[];function cQ(e){e.register(sx),e.register(nx),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}dQ.displayName="tap";dQ.aliases=[];function dQ(e){e.register(JT),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"}}}fQ.displayName="tcl";fQ.aliases=[];function fQ(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:/[{}()\[\]]/}}hQ.displayName="tt2";hQ.aliases=[];function hQ(e){e.register(Sr),e.register(Xs),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)}pQ.displayName="toml";pQ.aliases=[];function pQ(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)}mQ.displayName="tremor";mQ.aliases=["trickle","troy"];function mQ(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)}gQ.displayName="typoscript";gQ.aliases=["tsconfig"];function gQ(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)}bQ.displayName="unrealscript";bQ.aliases=["uc","uscript"];function bQ(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}yQ.displayName="uorazor";yQ.aliases=[];function yQ(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:/[()\[\]{}:.,]/}}vQ.displayName="v";vQ.aliases=[];function vQ(e){e.register(Sr),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)}OQ.displayName="vala";OQ.aliases=[];function OQ(e){e.register(Sr),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]+$/}}})}SQ.displayName="velocity";SQ.aliases=[];function SQ(e){e.register(ks),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)}EQ.displayName="verilog";EQ.aliases=[];function EQ(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:/[[\];(),.:]/}}wQ.displayName="vhdl";wQ.aliases=[];function wQ(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:/[{}[\];(),.:]/}}TQ.displayName="vim";TQ.aliases=[];function TQ(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:/[{}[\](),;:]/}}xQ.displayName="visual-basic";xQ.aliases=["vb","vba"];function xQ(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"]}kQ.displayName="warpscript";kQ.aliases=[];function kQ(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/}}AQ.displayName="wasm";AQ.aliases=[];function AQ(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:/[()]/}}_Q.displayName="web-idl";_Q.aliases=["webidl"];function _Q(e){(function(t){var n=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,r="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+n+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,i={};t.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+n),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+r),lookbehind:!0,inside:i},{pattern:RegExp("("+/\bcallback\s+/.source+n+/\s*=\s*/.source+")"+r),lookbehind:!0,inside:i},{pattern:RegExp(/(\btypedef\b\s*)/.source+r),lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+n),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+n),lookbehind:!0},RegExp(n+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+n),lookbehind:!0},{pattern:RegExp(r+"(?="+/\s*(?:\.{3}\s*)?/.source+n+/\s*[(),;=]/.source+")"),inside:i}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var a in t.languages["web-idl"])a!=="class-name"&&(i[a]=t.languages["web-idl"][a]);t.languages.webidl=t.languages["web-idl"]})(e)}CQ.displayName="wgsl";CQ.aliases=[];function CQ(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:/[@(){}[\],;<>:.]/}}RQ.displayName="wiki";RQ.aliases=[];function RQ(e){e.register(ks),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}}}})}IQ.displayName="wolfram";IQ.aliases=["mathematica","nb","wl"];function IQ(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}NQ.displayName="wren";NQ.aliases=[];function NQ(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]+/}}}DQ.displayName="xeora";DQ.aliases=["xeoracube"];function DQ(e){e.register(ks),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)}PQ.displayName="xml-doc";PQ.aliases=[];function PQ(e){e.register(ks),function(t){function n(s,o){t.languages[s]&&t.languages.insertBefore(s,"comment",{"doc-comment":o})}var r=t.languages.markup.tag,i={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:r}},a={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:r}};n("csharp",i),n("fsharp",i),n("vbnet",a)}(e)}LQ.displayName="xojo";LQ.aliases=[];function LQ(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:/[.,;:()]/}}MQ.displayName="xquery";MQ.aliases=[];function MQ(e){e.register(ks),function(t){t.languages.xquery=t.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),t.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,t.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,t.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,t.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:t.languages.xquery,alias:"language-xquery"};var n=function(i){return typeof i=="string"?i:typeof i.content=="string"?i.content:i.content.map(n).join("")},r=function(i){for(var a=[],s=0;s0&&a[a.length-1].tagName===n(o.content[0].content[1])&&a.pop():o.content[o.content.length-1].content==="/>"||a.push({tagName:n(o.content[0].content[1]),openedBraces:0}):a.length>0&&o.type==="punctuation"&&o.content==="{"&&(!i[s+1]||i[s+1].type!=="punctuation"||i[s+1].content!=="{")&&(!i[s-1]||i[s-1].type!=="plain-text"||i[s-1].content!=="{")?a[a.length-1].openedBraces++:a.length>0&&a[a.length-1].openedBraces>0&&o.type==="punctuation"&&o.content==="}"?a[a.length-1].openedBraces--:o.type!=="comment"&&(l=!0)),(l||typeof o=="string")&&a.length>0&&a[a.length-1].openedBraces===0){var u=n(o);s0&&(typeof i[s-1]=="string"||i[s-1].type==="plain-text")&&(u=n(i[s-1])+u,i.splice(s-1,1),s--),/^\s+$/.test(u)?i[s]=u:i[s]=new t.Token("plain-text",u,null,u)}o.content&&typeof o.content!="string"&&r(o.content)}};t.hooks.add("after-tokenize",function(i){i.language==="xquery"&&r(i.tokens)})}(e)}$Q.displayName="yang";$Q.aliases=[];function $Q(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:/[{};:]/}}FQ.displayName="zig";FQ.aliases=[];function FQ(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",a=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,s=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,n(a)),o=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,n(i)),l="(?!\\s)(?:!?\\s*(?:"+s+"\\s*)*"+o+")+";t.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)(?=\s*(?:\s*)?[=;,)])|(?=\s*(?:\s*)?\{)/.source.replace(//g,n(l)).replace(//g,n(a))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,n(l)).replace(//g,n(a))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:r,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},t.languages.zig["class-name"].forEach(function(u){u.inside===null&&(u.inside=t.languages.zig)})})(e)}se.register(ks);se.register(Tm);se.register(Sr);se.register(ZR);se.register(Zs);se.register(tU);se.register(nU);se.register(rU);se.register(iU);se.register(aU);se.register(sU);se.register(oU);se.register(lU);se.register(wO);se.register(uU);se.register(cU);se.register(dU);se.register(fU);se.register(Fd);se.register(B1);se.register(VR);se.register(hU);se.register(pU);se.register(XT);se.register(JT);se.register(eI);se.register(mU);se.register(gU);se.register(U1);se.register(bU);se.register(yU);se.register(vU);se.register(OU);se.register(SU);se.register(EU);se.register(wU);se.register(TU);se.register(tx);se.register(xU);se.register(kU);se.register(AU);se.register(_U);se.register(CU);se.register(RU);se.register(IU);se.register(NU);se.register(DU);se.register(PU);se.register(LU);se.register(MU);se.register($U);se.register(FU);se.register(BU);se.register(UU);se.register(zU);se.register(jU);se.register(HU);se.register(QU);se.register(WU);se.register(VU);se.register(qU);se.register(GU);se.register(YU);se.register(H1);se.register(ZU);se.register(XU);se.register(KU);se.register(JU);se.register(ez);se.register(tz);se.register(nz);se.register(rz);se.register(iz);se.register(az);se.register(qR);se.register(Xs);se.register(sz);se.register(oz);se.register(lz);se.register(uz);se.register(cz);se.register(dz);se.register(fz);se.register(hz);se.register(pz);se.register(mz);se.register(KT);se.register(gz);se.register(bz);se.register(yz);se.register(vz);se.register(Oz);se.register(Sz);se.register(Ez);se.register(wz);se.register(Tz);se.register(xz);se.register(kz);se.register(Az);se.register(_z);se.register(Cz);se.register(Rz);se.register(Iz);se.register(Nz);se.register(Dz);se.register(Pz);se.register(Lz);se.register(Mz);se.register($z);se.register(GR);se.register(Fz);se.register(Bz);se.register(Uz);se.register(zz);se.register(KR);se.register(sI);se.register(jz);se.register(Hz);se.register(Qz);se.register(ix);se.register(Wz);se.register(Vz);se.register(qz);se.register(Gz);se.register(Yz);se.register(Zz);se.register(EO);se.register(Xz);se.register(Kz);se.register(Jz);se.register(ej);se.register(tj);se.register(nj);se.register(rj);se.register(ij);se.register(YR);se.register(aj);se.register(sj);se.register(z1);se.register(j1);se.register(_O);se.register(oj);se.register(lj);se.register(uj);se.register(cj);se.register(dj);se.register(fj);se.register(hj);se.register(TO);se.register(pj);se.register(mj);se.register(gj);se.register(bj);se.register(yj);se.register(vj);se.register(Oj);se.register(Sj);se.register(Ej);se.register(XR);se.register(wj);se.register(Tj);se.register(xj);se.register(kj);se.register(ax);se.register(Aj);se.register(_j);se.register(Cj);se.register(Rj);se.register(Ij);se.register(Nj);se.register(Dj);se.register(Pj);se.register(JR);se.register(lI);se.register(Lj);se.register(Mj);se.register($j);se.register(Fj);se.register(Bj);se.register(Uj);se.register(zj);se.register(jj);se.register(Hj);se.register(Qj);se.register(Wj);se.register(Vj);se.register(qj);se.register(Gj);se.register(Yj);se.register(Zj);se.register(Xj);se.register(Kj);se.register(Jj);se.register(tI);se.register(eH);se.register(tH);se.register(nH);se.register(rH);se.register(iH);se.register(aH);se.register(sH);se.register(oH);se.register(lH);se.register(uH);se.register(cH);se.register(dH);se.register(nI);se.register(fH);se.register(hH);se.register(pH);se.register(mH);se.register(gH);se.register(bH);se.register(yH);se.register(vH);se.register(OH);se.register(SH);se.register(EH);se.register(wH);se.register(TH);se.register(xH);se.register(kH);se.register(AH);se.register(_H);se.register(CH);se.register(ex);se.register(RH);se.register(IH);se.register(NH);se.register(DH);se.register(rI);se.register(PH);se.register(LH);se.register(uI);se.register(MH);se.register($H);se.register(FH);se.register(BH);se.register(UH);se.register(zH);se.register(jH);se.register(HH);se.register(QH);se.register(iI);se.register(WH);se.register(aI);se.register(VH);se.register(qH);se.register(GH);se.register(YH);se.register(ZH);se.register(XH);se.register(KH);se.register(JH);se.register(cI);se.register(eQ);se.register(tQ);se.register(nQ);se.register(rQ);se.register(iQ);se.register(aQ);se.register(sQ);se.register(oQ);se.register(oI);se.register(lQ);se.register(sx);se.register(uQ);se.register(nx);se.register(cQ);se.register(dQ);se.register(fQ);se.register(hQ);se.register(pQ);se.register(mQ);se.register(gQ);se.register(bQ);se.register(yQ);se.register(vQ);se.register(OQ);se.register(SQ);se.register(EQ);se.register(wQ);se.register(TQ);se.register(xQ);se.register(kQ);se.register(AQ);se.register(_Q);se.register(CQ);se.register(RQ);se.register(IQ);se.register(NQ);se.register(DQ);se.register(PQ);se.register(LQ);se.register(MQ);se.register($Q);se.register(FQ);function jL(){jL=function(i,a){return new n(i,void 0,a)};var e=RegExp.prototype,t=new WeakMap;function n(i,a,s){var o=new RegExp(i,a);return t.set(o,s||t.get(i)),EC(o,n.prototype)}function r(i,a){var s=t.get(a);return Object.keys(s).reduce(function(o,l){var u=s[l];if(typeof u=="number")o[l]=i[u];else{for(var d=0;i[u[d]]===void 0&&d+1]+)>/g,function(l,u){var d=s[u];return"$"+(Array.isArray(d)?d.join("$"):d)}))}if(typeof a=="function"){var o=this;return e[Symbol.replace].call(this,i,function(){var l=arguments;return typeof l[l.length-1]!="object"&&(l=[].slice.call(l)).push(r(l,o)),a.apply(this,l)})}return e[Symbol.replace].call(this,i,a)},jL.apply(this,arguments)}function EC(e,t){return EC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},EC(e,t)}function QJ(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 Btt=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){So(r,"element",n)};function n(r,i,a){var s,o;if(a&&a.tagName==="pre"&&r.tagName==="code"){var l=(r==null||(s=r.data)==null?void 0:s.meta)||(r==null||(o=r.properties)==null?void 0:o.metastring)||"";r.properties.className?typeof r.properties.className=="boolean"?r.properties.className=[]:Array.isArray(r.properties.className)||(r.properties.className=[r.properties.className]):r.properties.className=[];var u,d,f=function(R){for(var N,P=HD(R.properties.className);!(N=P()).done;){var L=N.value;if(L.slice(0,9)==="language-")return L.slice(9).toLowerCase()}return null}(r);if(!f&&t.defaultLanguage&&r.properties.className.push("language-"+(f=t.defaultLanguage)),r.properties.className.push("code-highlight"),f)try{var p,g;g=(p=f)!=null&&p.includes("diff-")?f.split("-")[1]:f,u=e.highlight(vy(r),g),a.properties.className=(a.properties.className||[]).concat("language-"+g)}catch(R){if(!t.ignoreMissing||!/Unknown language/.test(R.message))throw R;u=r}else u=r;u.children=(d=1,function R(N){return N.reduce(function(P,L){if(L.type==="text"){var j=L.value,B=(j.match(/\n/g)||"").length;if(B===0)L.position={start:{line:d,column:1},end:{line:d,column:1}},P.push(L);else for(var V,W=j.split(` +`),re=HD(W.entries());!(V=re()).done;){var ee=V.value,q=ee[0],ne=ee[1];P.push({type:"text",value:q===W.length-1?ne:ne+` +`,position:{start:{line:d+q,column:1},end:{line:d+q,column:1}}})}return d+=B,P}if(Object.prototype.hasOwnProperty.call(L,"children")){var K=d;return L.children=R(L.children),P.push(L),L.position={start:{line:K,column:1},end:{line:d,column:1}},P}return P.push(L),P},[])})(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 O,S=function(R){var N=/{([\d,-]+)}/,P=R.split(",").map(function(B){return B.trim()}).join();if(N.test(P)){var L=N.exec(P)[1],j=itt(L);return function(B){return j.includes(B+1)}}return function(){return!1}}(l),T=function(R){var N=jL(/showLineNumbers=(\d+)/i,{lines:1});if(N.test(R)){var P=N.exec(R);return Number(P.groups.lines)}return 1}(l),w=function(R){for(var N=new Array(R),P=0;P=L+1});j.children=B.children,!l.toLowerCase().includes("showLineNumbers".toLowerCase())&&!t.showLineNumbers||x.some(function(V){return l.toLowerCase().includes(V)})||(j.properties.line=[(L+T).toString()],j.properties.className.push("line-number")),S(L)&&j.properties.className.push("highlight-line"),(f==="diff"||(R=f)!=null&&R.includes("diff-"))&&vy(j).substring(0,1)==="-"?j.properties.className.push("deleted"):(f==="diff"||(N=f)!=null&&N.includes("diff-"))&&vy(j).substring(0,1)==="+"&&j.properties.className.push("inserted")},_=HD(w.entries());!(O=_()).done;)k();w.length>0&&vy(w[w.length-1]).trim()===""&&w.pop(),r.children=w}}}},Utt=Btt(se),y_={},HL={};function ztt(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"]}}}),WL=ox(b0e,{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"]}}}),VL=ox(WL,{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"]}}}),Ytt=ox(VL,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}}),ZJ={css1:g0e,css2:b0e,css3:WL,"selectors-3":WL,"selectors-4":VL,latest:VL,progressive:Ytt};function yE(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="-"||e==="_"||e==="\\"||e>=" "}function XJ(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="-"||e==="_"||e>=" "}function vE(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var Ztt={" ":!0," ":!0,"\n":!0,"\r":!0,"\f":!0},Xtt={'"':!0,"'":!0},WD={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},Ktt=6,VD="css-selector-parser parse error: ";function Jtt(e){e===void 0&&(e={});var t=e.syntax,n=t===void 0?"latest":t,r=e.substitutes,i=e.strict,a=i===void 0?!0:i,s=typeof n=="object"?n:ZJ[n];s.baseSyntax&&(s=ox(ZJ[s.baseSyntax],s));var o=s.tag?[!0,!!Vtt(s.tag).wildcard]:[!1,!1],l=o[0],u=o[1],d=!!s.ids,f=!!s.classNames,p=!!s.namespace,g=s.namespace&&(s.namespace===!0||s.namespace.wildcard===!0);if(p&&!l)throw new Error("".concat(VD,"Namespaces cannot be enabled while tags are disabled."));var O=!!r,S=s.combinators?WJ(s.combinators):y_,T=s.attributes?[!0,s.attributes.operators?WJ(s.attributes.operators):y_,s.attributes.caseSensitivityModifiers?jtt(s.attributes.caseSensitivityModifiers):HL,s.attributes.unknownCaseSensitivityModifiers==="accept"]:[!1,y_,HL,!1],w=T[0],x=T[1],k=T[2],_=T[3],R=_||Object.keys(k).length>0,N=s.pseudoClasses?[!0,s.pseudoClasses.definitions?qJ(s.pseudoClasses.definitions):t4,s.pseudoClasses.unknown==="accept"]:[!1,t4,!1],P=N[0],L=N[1],j=N[2],B=s.pseudoElements?[!0,s.pseudoElements.notation==="singleColon"||s.pseudoElements.notation==="both",!s.pseudoElements.notation||s.pseudoElements.notation==="doubleColon"||s.pseudoElements.notation==="both",s.pseudoElements.definitions?qJ(Array.isArray(s.pseudoElements.definitions)?{NoArgument:s.pseudoElements.definitions}:s.pseudoElements.definitions):t4,s.pseudoElements.unknown==="accept"]:[!1,!1,!1,t4,!1],V=B[0],W=B[1],re=B[2],ee=B[3],q=B[4],ne="",K=ne.length,G=0,ie="",H=function(we){return ie===we},Re=function(){return H("*")||yE(ie)},Se=function(we){G=we,ie=ne.charAt(G)},Z=function(){G++,ie=ne.charAt(G)},ke=function(){var we=ie;return G++,ie=ne.charAt(G),we};function $e(we){var be=Math.min(K-1,G),xe=new Error("".concat(VD).concat(we," Pos: ").concat(be,"."));throw xe.position=be,xe.name="ParserError",xe}function ae(we,be){if(!we)return $e(be)}var Xe=function(){ae(G=K},Ye=function(we){ae(G=2&&$e("Identifiers cannot start with two hyphens with strict mode on."),KD[ie]&&$e("Identifiers cannot start with hyphens followed by digits.");G=2&&$e("Identifiers cannot start with two hyphens with strict mode on."),WD[ie]&&$e("Identifiers cannot start with hyphens followed by digits.");G0)return(t.commaSeparated?dU:cU)(e)}else return String(e)}const wnt=[];function Tnt(e,t){return(t.properties.className||wnt).includes(e.name)}function xnt(e,t){return t.properties.id===e.name}function knt(e,t){return e.name===t.tagName}function Ant(e,t){return function(n,r){let i=lee(n,"tag");const a=lee(r??"*","range"),s=[];let o=-1;for(;++o=cee&&e.charCodeAt(t)<=Nnt;)u=u*10+(e.charCodeAt(t)-cee),t++;return t===l?null:u}function o(){for(;ta<=n;if(t===0)return a=>a===n;if(t===1)return n<0?dee.trueFunc:a=>a>=n;const r=Math.abs(t),i=(n%r+r)%r;return t>1?a=>a>=n&&a%r===i:a=>a<=n&&a%r===i}function fee(e){return Lnt(Dnt(e))}const hee={}.hasOwnProperty;function ZQ(e,t){const n=t||{};function r(i,...a){let s=r.invalid;const o=r.handlers;if(i&&hee.call(i,e)){const l=String(i[e]);s=hee.call(o,l)?o[l]:r.unknown}if(s)return s.call(this,i,...a)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const Mnt=fee.default||fee,$nt=ZQ("name",{handlers:{"any-link":Fnt,blank:Bnt,checked:Unt,dir:znt,disabled:I0e,empty:jnt,enabled:Hnt,"first-child":Qnt,"first-of-type":Wnt,has:Vnt,is:N0e,lang:Gnt,"last-child":Ynt,"last-of-type":Znt,not:Xnt,"nth-child":Knt,"nth-last-child":Jnt,"nth-last-of-type":ert,"nth-of-type":trt,"only-child":nrt,"only-of-type":rrt,optional:irt,"read-only":art,"read-write":D0e,required:P0e,root:srt,scope:ort},invalid:qnt,unknown:lrt});function Fnt(e,t){return(t.tagName==="a"||t.tagName==="area"||t.tagName==="link")&&k1(t,"href")}function Kf(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function Bnt(e,t){return!L0e(t,n);function n(r){return r.type==="element"||r.type==="text"&&!R0e(r)}}function Unt(e,t){return t.tagName==="input"||t.tagName==="menuitem"?!!((t.properties.type==="checkbox"||t.properties.type==="radio")&&k1(t,"checked")):t.tagName==="option"?k1(t,"selected"):!1}function znt(e,t,n,r,i){return e.argument,e.argument.type,i.direction===e.argument.value}function I0e(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")&&k1(t,"disabled")}function jnt(e,t){return!L0e(t,n);function n(r){return r.type==="element"||r.type==="text"}}function Hnt(e,t){return!I0e(e,t)}function Qnt(e,t,n,r,i){return Kf(i,e),i.elementIndex===0}function Wnt(e,t,n,r,i){return Kf(i,e),i.typeIndex===0}function hI(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=Mnt(n.a+"n+"+n.b),e._cachedFn=t}return t}function Vnt(e,t,n,r,i){e.argument,e.argument.type;const a={...i,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return XQ(a,{type:"root",children:t.children}),a.results.length>0}function qnt(){}function N0e(e,t,n,r,i){e.argument,e.argument.type;const a={...i,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return XQ(a,t),a.results[0]===t}function Gnt(e,t,n,r,i){return e.argument,e.argument.type,i.language!==""&&i.language!==void 0&&_nt(i.language,Vw(e.argument.value)).length>0}function Ynt(e,t,n,r,i){return Kf(i,e),!!(i.elementCount&&i.elementIndex===i.elementCount-1)}function Znt(e,t,n,r,i){return Kf(i,e),typeof i.typeIndex=="number"&&typeof i.typeCount=="number"&&i.typeIndex===i.typeCount-1}function Xnt(e,t,n,r,i){return!N0e(e,t,n,r,i)}function Knt(e,t,n,r,i){const a=hI(e);return Kf(i,e),typeof i.elementIndex=="number"&&a(i.elementIndex)}function Jnt(e,t,n,r,i){const a=hI(e);return Kf(i,e),!!(typeof i.elementCount=="number"&&typeof i.elementIndex=="number"&&a(i.elementCount-i.elementIndex-1))}function ert(e,t,n,r,i){const a=hI(e);return Kf(i,e),typeof i.typeCount=="number"&&typeof i.typeIndex=="number"&&a(i.typeCount-1-i.typeIndex)}function trt(e,t,n,r,i){const a=hI(e);return Kf(i,e),typeof i.typeIndex=="number"&&a(i.typeIndex)}function nrt(e,t,n,r,i){return Kf(i,e),i.elementCount===1}function rrt(e,t,n,r,i){return Kf(i,e),i.typeCount===1}function irt(e,t){return!P0e(e,t)}function art(e,t,n,r,i){return!D0e(e,t,n,r,i)}function D0e(e,t,n,r,i){return t.tagName==="input"||t.tagName==="textarea"?!k1(t,"readOnly")&&!k1(t,"disabled"):!!i.editableOrEditingHost}function P0e(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&k1(t,"required")}function srt(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 ort(e,t,n,r,i){return i.scopeElements.includes(t)}function L0e(e,t){const n=e.children;let r=-1;for(;++r"?"directChild":"descendant";t7(a,u,l)}else e.found=!0,e.results.includes(n)||e.results.push(n)}o.combinator===void 0?t7(a,"descendant",o):o.combinator==="~"&&t7(a,"generalSibling",o)}return a}function v_(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:crt}function pee(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 M0e(e,t,n,r,i,a){let s={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const o=Ont(e,n);if(n.type==="element"){let l=e.rootQuery.rules;i&&i!==a&&(l=e.rootQuery.rules.filter(u=>u.combinator===void 0||u.combinator===">"&&i===a)),s=frt(e,v_(t,l),n,r,i)}return"children"in n&&!e.shallow&&!(e.one&&e.found)&&drt(e,s,n,a),o(),s}function hrt(e,t,n){const r=prt(e,t);return XQ(r,t||void 0),r.results}function prt(e,t,n){return{direction:"ltr",editableOrEditingHost:!1,elementCount:void 0,elementIndex:void 0,found:!1,language:void 0,one:!1,results:[],rootQuery:gnt(e),schema:H1,scopeElements:t?t.type==="root"?t.children:[t]:[],shallow:!1,typeIndex:void 0,typeCount:void 0}}const KQ=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=KQ(n.children))}),t),mrt=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const i=hrt(t,r);i&&i.length>0&&Eo(r,i,(a,s,o)=>{n(a,s,o)});return}Eo(r,(i,a,s)=>{n(i,a,s)})}}},grt=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),brt=(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]}},$0e=(e=[],t,n,r)=>{let i=t;for(;i/,"$2")||"")?void 0:r?$0e(e,i,"pre",r)?void 0:(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a):(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a)}},mee=({value:e=""})=>{const t=grt(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},gee=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},yrt=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{Eo(r,"element",(i,a,s)=>{if(n&&i.tagName==="pre"&&i&&Array.isArray(i.children)&&s&&Array.isArray(s.children)&&s.children.length>1){const o=i.children[0];if(o&&o.tagName==="code"&&typeof a=="number"){const l=brt(s.children,a);if(l){const u=mee(l);Object.keys(u).length>0&&(i.properties={...i.properties,"data-type":"rehyp"},o.properties=gee(o.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)&&s&&Array.isArray(s.children)&&typeof a=="number"){const o=$0e(s.children,a,"",n);if(o){const l=mee(o);Object.keys(l).length>0&&(i.properties=gee(i.properties,l,t))}}})}},F0e=-1,pI=0,k3=1,A3=2,JQ=3,eW=4,tW=5,nW=6,B0e=7,U0e=8,bee=typeof self=="object"?self:globalThis,vrt=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,s]=t[i];switch(a){case pI:case F0e:return n(s,i);case k3:{const o=n([],i);for(const l of s)o.push(r(l));return o}case A3:{const o=n({},i);for(const[l,u]of s)o[r(l)]=r(u);return o}case JQ:return n(new Date(s),i);case eW:{const{source:o,flags:l}=s;return n(new RegExp(o,l),i)}case tW:{const o=n(new Map,i);for(const[l,u]of s)o.set(r(l),r(u));return o}case nW:{const o=n(new Set,i);for(const l of s)o.add(r(l));return o}case B0e:{const{name:o,message:l}=s;return n(new bee[o](l),i)}case U0e:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i)}return n(new bee[a](s),i)};return r},yee=e=>vrt(new Map,e)(0),Wb="",{toString:Ort}={},{keys:Srt}=Object,yE=e=>{const t=typeof e;if(t!=="object"||!e)return[pI,t];const n=Ort.call(e).slice(8,-1);switch(n){case"Array":return[k3,Wb];case"Object":return[A3,Wb];case"Date":return[JQ,Wb];case"RegExp":return[eW,Wb];case"Map":return[tW,Wb];case"Set":return[nW,Wb]}return n.includes("Array")?[k3,n]:n.includes("Error")?[B0e,n]:[A3,n]},n4=([e,t])=>e===pI&&(t==="function"||t==="symbol"),Ert=(e,t,n,r)=>{const i=(s,o)=>{const l=r.push(s)-1;return n.set(o,l),l},a=s=>{if(n.has(s))return n.get(s);let[o,l]=yE(s);switch(o){case pI:{let d=s;switch(l){case"bigint":o=U0e,d=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);d=null;break;case"undefined":return i([F0e],s)}return i([o,d],s)}case k3:{if(l)return i([l,[...s]],s);const d=[],f=i([o,d],s);for(const p of s)d.push(a(p));return f}case A3:{if(l)switch(l){case"BigInt":return i([l,s.toString()],s);case"Boolean":case"Number":case"String":return i([l,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const d=[],f=i([o,d],s);for(const p of Srt(s))(e||!n4(yE(s[p])))&&d.push([a(p),a(s[p])]);return f}case JQ:return i([o,s.toISOString()],s);case eW:{const{source:d,flags:f}=s;return i([o,{source:d,flags:f}],s)}case tW:{const d=[],f=i([o,d],s);for(const[p,g]of s)(e||!(n4(yE(p))||n4(yE(g))))&&d.push([a(p),a(g)]);return f}case nW:{const d=[],f=i([o,d],s);for(const p of s)(e||!n4(yE(p)))&&d.push(a(p));return f}}const{message:u}=s;return i([o,{name:l,message:u}],s)};return a},vee=(e,{json:t,lossy:n}={})=>{const r=[];return Ert(!(t||n),!!t,new Map,r)(e),r},Ed=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?yee(vee(e,t)):structuredClone(e):(e,t)=>yee(vee(e,t)),Oee=/[#.]/g;function wrt(e,t){const n=e||"",r={};let i=0,a,s;for(;i-1&&a<=t.length){let s=0;for(;;){let o=n[s];if(o===void 0){const l=Eee(t,n[s-1]);o=l===-1?t.length+1:l+1,n[s]=o}if(o>a)return{line:s+1,column:a-(s>0?n[s-1]:0)+1,offset:a};s++}}}function i(a){if(a&&typeof a.line=="number"&&typeof a.column=="number"&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;n.length1?n[a.line-2]:0)+a.column-1;if(s=55296&&e<=57343}function qrt(e){return e>=56320&&e<=57343}function Grt(e,t){return(e-55296)*1024+9216+t}function G0e(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Y0e(e){return e>=64976&&e<=65007||Vrt.has(e)}var Ke;(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"})(Ke=Ke||(Ke={}));const Yrt=65536;class Zrt{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=Yrt,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(qrt(n))return this.pos++,this._addGap(),Grt(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,ce.EOF;return this._err(Ke.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,ce.EOF;const r=this.html.charCodeAt(n);return r===ce.CARRIAGE_RETURN?ce.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,ce.EOF;let t=this.html.charCodeAt(this.pos);return t===ce.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,ce.LINE_FEED):t===ce.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,q0e(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===ce.LINE_FEED||t===ce.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){G0e(t)?this._err(Ke.controlCharacterInInputStream):Y0e(t)&&this._err(Ke.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 f0=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Xrt=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var n7;const Krt=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Jrt=(n7=String.fromCodePoint)!==null&&n7!==void 0?n7:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function eit(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Krt.get(e))!==null&&t!==void 0?t:e}var Os;(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"})(Os||(Os={}));const tit=32;var _f;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(_f||(_f={}));function iM(e){return e>=Os.ZERO&&e<=Os.NINE}function nit(e){return e>=Os.UPPER_A&&e<=Os.UPPER_F||e>=Os.LOWER_A&&e<=Os.LOWER_F}function rit(e){return e>=Os.UPPER_A&&e<=Os.UPPER_Z||e>=Os.LOWER_A&&e<=Os.LOWER_Z||iM(e)}function iit(e){return e===Os.EQUALS||rit(e)}var bs;(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"})(bs||(bs={}));var _g;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(_g||(_g={}));class ait{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=bs.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=_g.Strict}startEntity(t){this.decodeMode=t,this.state=bs.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case bs.EntityStart:return t.charCodeAt(n)===Os.NUM?(this.state=bs.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=bs.NamedEntity,this.stateNamedEntity(t,n));case bs.NumericStart:return this.stateNumericStart(t,n);case bs.NumericDecimal:return this.stateNumericDecimal(t,n);case bs.NumericHex:return this.stateNumericHex(t,n);case bs.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|tit)===Os.LOWER_X?(this.state=bs.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=bs.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const a=r-n;this.result=this.result*Math.pow(i,a)+parseInt(t.substr(n,a),i),this.consumed+=a}}stateNumericHex(t,n){const r=n;for(;n>14;for(;n>14,a!==0){if(s===Os.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==_g.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]&_f.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]&~_f.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case bs.NamedEntity:return this.result!==0&&(this.decodeMode!==_g.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case bs.NumericDecimal:return this.emitNumericEntity(0,2);case bs.NumericHex:return this.emitNumericEntity(0,3);case bs.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case bs.EntityStart:return 0}}}function X0e(e){let t="";const n=new ait(e,r=>t+=Jrt(r));return function(i,a){let s=0,o=0;for(;(o=i.indexOf("&",o))>=0;){t+=i.slice(s,o),n.startEntity(a);const u=n.write(i,o+1);if(u<0){s=o+n.end();break}s=o+u,o=u===0?s+1:s}const l=t+i.slice(s);return t="",l}}function K0e(e,t,n,r){const i=(t&_f.BRANCH_LENGTH)>>7,a=t&_f.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){const l=r-a;return l<0||l>=i?-1:e[n+l]-1}let s=n,o=s+i-1;for(;s<=o;){const l=s+o>>>1,u=e[l];if(ur)o=l-1;else return e[l+i]}return-1}X0e(f0);X0e(Xrt);var pt;(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/"})(pt=pt||(pt={}));var am;(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"})(am=am||(am={}));var mu;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(mu=mu||(mu={}));var He;(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"})(He=He||(He={}));var C;(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"})(C=C||(C={}));const sit=new Map([[He.A,C.A],[He.ADDRESS,C.ADDRESS],[He.ANNOTATION_XML,C.ANNOTATION_XML],[He.APPLET,C.APPLET],[He.AREA,C.AREA],[He.ARTICLE,C.ARTICLE],[He.ASIDE,C.ASIDE],[He.B,C.B],[He.BASE,C.BASE],[He.BASEFONT,C.BASEFONT],[He.BGSOUND,C.BGSOUND],[He.BIG,C.BIG],[He.BLOCKQUOTE,C.BLOCKQUOTE],[He.BODY,C.BODY],[He.BR,C.BR],[He.BUTTON,C.BUTTON],[He.CAPTION,C.CAPTION],[He.CENTER,C.CENTER],[He.CODE,C.CODE],[He.COL,C.COL],[He.COLGROUP,C.COLGROUP],[He.DD,C.DD],[He.DESC,C.DESC],[He.DETAILS,C.DETAILS],[He.DIALOG,C.DIALOG],[He.DIR,C.DIR],[He.DIV,C.DIV],[He.DL,C.DL],[He.DT,C.DT],[He.EM,C.EM],[He.EMBED,C.EMBED],[He.FIELDSET,C.FIELDSET],[He.FIGCAPTION,C.FIGCAPTION],[He.FIGURE,C.FIGURE],[He.FONT,C.FONT],[He.FOOTER,C.FOOTER],[He.FOREIGN_OBJECT,C.FOREIGN_OBJECT],[He.FORM,C.FORM],[He.FRAME,C.FRAME],[He.FRAMESET,C.FRAMESET],[He.H1,C.H1],[He.H2,C.H2],[He.H3,C.H3],[He.H4,C.H4],[He.H5,C.H5],[He.H6,C.H6],[He.HEAD,C.HEAD],[He.HEADER,C.HEADER],[He.HGROUP,C.HGROUP],[He.HR,C.HR],[He.HTML,C.HTML],[He.I,C.I],[He.IMG,C.IMG],[He.IMAGE,C.IMAGE],[He.INPUT,C.INPUT],[He.IFRAME,C.IFRAME],[He.KEYGEN,C.KEYGEN],[He.LABEL,C.LABEL],[He.LI,C.LI],[He.LINK,C.LINK],[He.LISTING,C.LISTING],[He.MAIN,C.MAIN],[He.MALIGNMARK,C.MALIGNMARK],[He.MARQUEE,C.MARQUEE],[He.MATH,C.MATH],[He.MENU,C.MENU],[He.META,C.META],[He.MGLYPH,C.MGLYPH],[He.MI,C.MI],[He.MO,C.MO],[He.MN,C.MN],[He.MS,C.MS],[He.MTEXT,C.MTEXT],[He.NAV,C.NAV],[He.NOBR,C.NOBR],[He.NOFRAMES,C.NOFRAMES],[He.NOEMBED,C.NOEMBED],[He.NOSCRIPT,C.NOSCRIPT],[He.OBJECT,C.OBJECT],[He.OL,C.OL],[He.OPTGROUP,C.OPTGROUP],[He.OPTION,C.OPTION],[He.P,C.P],[He.PARAM,C.PARAM],[He.PLAINTEXT,C.PLAINTEXT],[He.PRE,C.PRE],[He.RB,C.RB],[He.RP,C.RP],[He.RT,C.RT],[He.RTC,C.RTC],[He.RUBY,C.RUBY],[He.S,C.S],[He.SCRIPT,C.SCRIPT],[He.SECTION,C.SECTION],[He.SELECT,C.SELECT],[He.SOURCE,C.SOURCE],[He.SMALL,C.SMALL],[He.SPAN,C.SPAN],[He.STRIKE,C.STRIKE],[He.STRONG,C.STRONG],[He.STYLE,C.STYLE],[He.SUB,C.SUB],[He.SUMMARY,C.SUMMARY],[He.SUP,C.SUP],[He.TABLE,C.TABLE],[He.TBODY,C.TBODY],[He.TEMPLATE,C.TEMPLATE],[He.TEXTAREA,C.TEXTAREA],[He.TFOOT,C.TFOOT],[He.TD,C.TD],[He.TH,C.TH],[He.THEAD,C.THEAD],[He.TITLE,C.TITLE],[He.TR,C.TR],[He.TRACK,C.TRACK],[He.TT,C.TT],[He.U,C.U],[He.UL,C.UL],[He.SVG,C.SVG],[He.VAR,C.VAR],[He.WBR,C.WBR],[He.XMP,C.XMP]]);function UO(e){var t;return(t=sit.get(e))!==null&&t!==void 0?t:C.UNKNOWN}const Nt=C,oit={[pt.HTML]:new Set([Nt.ADDRESS,Nt.APPLET,Nt.AREA,Nt.ARTICLE,Nt.ASIDE,Nt.BASE,Nt.BASEFONT,Nt.BGSOUND,Nt.BLOCKQUOTE,Nt.BODY,Nt.BR,Nt.BUTTON,Nt.CAPTION,Nt.CENTER,Nt.COL,Nt.COLGROUP,Nt.DD,Nt.DETAILS,Nt.DIR,Nt.DIV,Nt.DL,Nt.DT,Nt.EMBED,Nt.FIELDSET,Nt.FIGCAPTION,Nt.FIGURE,Nt.FOOTER,Nt.FORM,Nt.FRAME,Nt.FRAMESET,Nt.H1,Nt.H2,Nt.H3,Nt.H4,Nt.H5,Nt.H6,Nt.HEAD,Nt.HEADER,Nt.HGROUP,Nt.HR,Nt.HTML,Nt.IFRAME,Nt.IMG,Nt.INPUT,Nt.LI,Nt.LINK,Nt.LISTING,Nt.MAIN,Nt.MARQUEE,Nt.MENU,Nt.META,Nt.NAV,Nt.NOEMBED,Nt.NOFRAMES,Nt.NOSCRIPT,Nt.OBJECT,Nt.OL,Nt.P,Nt.PARAM,Nt.PLAINTEXT,Nt.PRE,Nt.SCRIPT,Nt.SECTION,Nt.SELECT,Nt.SOURCE,Nt.STYLE,Nt.SUMMARY,Nt.TABLE,Nt.TBODY,Nt.TD,Nt.TEMPLATE,Nt.TEXTAREA,Nt.TFOOT,Nt.TH,Nt.THEAD,Nt.TITLE,Nt.TR,Nt.TRACK,Nt.UL,Nt.WBR,Nt.XMP]),[pt.MATHML]:new Set([Nt.MI,Nt.MO,Nt.MN,Nt.MS,Nt.MTEXT,Nt.ANNOTATION_XML]),[pt.SVG]:new Set([Nt.TITLE,Nt.FOREIGN_OBJECT,Nt.DESC]),[pt.XLINK]:new Set,[pt.XML]:new Set,[pt.XMLNS]:new Set};function J0e(e){return e===Nt.H1||e===Nt.H2||e===Nt.H3||e===Nt.H4||e===Nt.H5||e===Nt.H6}He.STYLE,He.SCRIPT,He.XMP,He.IFRAME,He.NOEMBED,He.NOFRAMES,He.PLAINTEXT;const lit=new Map([[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);var pe;(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"})(pe||(pe={}));const Na={DATA:pe.DATA,RCDATA:pe.RCDATA,RAWTEXT:pe.RAWTEXT,SCRIPT_DATA:pe.SCRIPT_DATA,PLAINTEXT:pe.PLAINTEXT,CDATA_SECTION:pe.CDATA_SECTION};function E2(e){return e>=ce.DIGIT_0&&e<=ce.DIGIT_9}function jE(e){return e>=ce.LATIN_CAPITAL_A&&e<=ce.LATIN_CAPITAL_Z}function uit(e){return e>=ce.LATIN_SMALL_A&&e<=ce.LATIN_SMALL_Z}function h0(e){return uit(e)||jE(e)}function aM(e){return h0(e)||E2(e)}function eme(e){return e>=ce.LATIN_CAPITAL_A&&e<=ce.LATIN_CAPITAL_F}function tme(e){return e>=ce.LATIN_SMALL_A&&e<=ce.LATIN_SMALL_F}function cit(e){return E2(e)||eme(e)||tme(e)}function r4(e){return e+32}function nme(e){return e===ce.SPACE||e===ce.LINE_FEED||e===ce.TABULATION||e===ce.FORM_FEED}function dit(e){return e===ce.EQUALS_SIGN||aM(e)}function Tee(e){return nme(e)||e===ce.SOLIDUS||e===ce.GREATER_THAN_SIGN}class fit{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=pe.DATA,this.returnState=pe.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Zrt(n),this.currentLocation=this.getCurrentLocation(-1)}_err(t){var n,r;(r=(n=this.handler).onParseError)===null||r===void 0||r.call(n,this.preprocessor.getError(t))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r==null||r()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(t){this.consumedAfterSnapshot-=t,this.preprocessor.retreat(t)}_reconsumeInState(t,n){this.state=t,this._callState(n)}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n0&&this._err(Ke.endTagWithAttributes),t.selfClosing&&this._err(Ke.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 fr.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case fr.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case fr.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:fr.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=nme(t)?fr.WHITESPACE_CHARACTER:t===ce.NULL?fr.NULL_CHARACTER:fr.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(fr.CHARACTER,t)}_matchNamedCharacterReference(t){let n=null,r=0,i=!1;for(let a=0,s=f0[0];a>=0&&(a=K0e(f0,s,a+1,t),!(a<0));t=this._consume()){r+=1,s=f0[a];const o=s&_f.VALUE_LENGTH;if(o){const l=(o>>14)-1;if(t!==ce.SEMICOLON&&this._isCharacterReferenceInAttribute()&&dit(this.preprocessor.peek(1))?(n=[ce.AMPERSAND],a+=l):(n=l===0?[f0[a]&~_f.VALUE_LENGTH]:l===1?[f0[++a]]:[f0[++a],f0[++a]],r=0,i=t!==ce.SEMICOLON),l===0){this._consume();break}}}return this._unconsume(r),i&&!this.preprocessor.endOfChunkHit&&this._err(Ke.missingSemicolonAfterCharacterReference),this._unconsume(1),n}_isCharacterReferenceInAttribute(){return this.returnState===pe.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===pe.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===pe.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case pe.DATA:{this._stateData(t);break}case pe.RCDATA:{this._stateRcdata(t);break}case pe.RAWTEXT:{this._stateRawtext(t);break}case pe.SCRIPT_DATA:{this._stateScriptData(t);break}case pe.PLAINTEXT:{this._statePlaintext(t);break}case pe.TAG_OPEN:{this._stateTagOpen(t);break}case pe.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case pe.TAG_NAME:{this._stateTagName(t);break}case pe.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case pe.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case pe.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case pe.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case pe.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case pe.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case pe.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case pe.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case pe.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case pe.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case pe.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case pe.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case pe.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case pe.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case pe.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case pe.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case pe.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case pe.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case pe.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case pe.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case pe.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case pe.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case pe.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case pe.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case pe.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case pe.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case pe.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case pe.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case pe.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case pe.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case pe.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case pe.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case pe.BOGUS_COMMENT:{this._stateBogusComment(t);break}case pe.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case pe.COMMENT_START:{this._stateCommentStart(t);break}case pe.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case pe.COMMENT:{this._stateComment(t);break}case pe.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case pe.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case pe.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case pe.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case pe.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case pe.COMMENT_END:{this._stateCommentEnd(t);break}case pe.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case pe.DOCTYPE:{this._stateDoctype(t);break}case pe.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case pe.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case pe.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case pe.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case pe.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case pe.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case pe.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case pe.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case pe.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case pe.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case pe.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case pe.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case pe.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case pe.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case pe.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case pe.CDATA_SECTION:{this._stateCdataSection(t);break}case pe.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case pe.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case pe.CHARACTER_REFERENCE:{this._stateCharacterReference(t);break}case pe.NAMED_CHARACTER_REFERENCE:{this._stateNamedCharacterReference(t);break}case pe.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}case pe.NUMERIC_CHARACTER_REFERENCE:{this._stateNumericCharacterReference(t);break}case pe.HEXADEMICAL_CHARACTER_REFERENCE_START:{this._stateHexademicalCharacterReferenceStart(t);break}case pe.HEXADEMICAL_CHARACTER_REFERENCE:{this._stateHexademicalCharacterReference(t);break}case pe.DECIMAL_CHARACTER_REFERENCE:{this._stateDecimalCharacterReference(t);break}case pe.NUMERIC_CHARACTER_REFERENCE_END:{this._stateNumericCharacterReferenceEnd(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case ce.LESS_THAN_SIGN:{this.state=pe.TAG_OPEN;break}case ce.AMPERSAND:{this.returnState=pe.DATA,this.state=pe.CHARACTER_REFERENCE;break}case ce.NULL:{this._err(Ke.unexpectedNullCharacter),this._emitCodePoint(t);break}case ce.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case ce.AMPERSAND:{this.returnState=pe.RCDATA,this.state=pe.CHARACTER_REFERENCE;break}case ce.LESS_THAN_SIGN:{this.state=pe.RCDATA_LESS_THAN_SIGN;break}case ce.NULL:{this._err(Ke.unexpectedNullCharacter),this._emitChars(Xi);break}case ce.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case ce.LESS_THAN_SIGN:{this.state=pe.RAWTEXT_LESS_THAN_SIGN;break}case ce.NULL:{this._err(Ke.unexpectedNullCharacter),this._emitChars(Xi);break}case ce.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case ce.LESS_THAN_SIGN:{this.state=pe.SCRIPT_DATA_LESS_THAN_SIGN;break}case ce.NULL:{this._err(Ke.unexpectedNullCharacter),this._emitChars(Xi);break}case ce.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case ce.NULL:{this._err(Ke.unexpectedNullCharacter),this._emitChars(Xi);break}case ce.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(h0(t))this._createStartTagToken(),this.state=pe.TAG_NAME,this._stateTagName(t);else switch(t){case ce.EXCLAMATION_MARK:{this.state=pe.MARKUP_DECLARATION_OPEN;break}case ce.SOLIDUS:{this.state=pe.END_TAG_OPEN;break}case ce.QUESTION_MARK:{this._err(Ke.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=pe.BOGUS_COMMENT,this._stateBogusComment(t);break}case ce.EOF:{this._err(Ke.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(Ke.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=pe.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(h0(t))this._createEndTagToken(),this.state=pe.TAG_NAME,this._stateTagName(t);else switch(t){case ce.GREATER_THAN_SIGN:{this._err(Ke.missingEndTagName),this.state=pe.DATA;break}case ce.EOF:{this._err(Ke.eofBeforeTagName),this._emitChars("");break}case ce.NULL:{this._err(Ke.unexpectedNullCharacter),this.state=pe.SCRIPT_DATA_ESCAPED,this._emitChars(Xi);break}case ce.EOF:{this._err(Ke.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=pe.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===ce.SOLIDUS?this.state=pe.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:h0(t)?(this._emitChars("<"),this.state=pe.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=pe.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){h0(t)?(this.state=pe.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("");break}case ce.NULL:{this._err(Ke.unexpectedNullCharacter),this.state=pe.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Xi);break}case ce.EOF:{this._err(Ke.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=pe.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===ce.SOLIDUS?(this.state=pe.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=pe.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(dl.SCRIPT,!1)&&Tee(this.preprocessor.peek(dl.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n1114111)this._err(Ke.characterReferenceOutsideUnicodeRange),this.charRefCode=ce.REPLACEMENT_CHARACTER;else if(q0e(this.charRefCode))this._err(Ke.surrogateCharacterReference),this.charRefCode=ce.REPLACEMENT_CHARACTER;else if(Y0e(this.charRefCode))this._err(Ke.noncharacterCharacterReference);else if(G0e(this.charRefCode)||this.charRefCode===ce.CARRIAGE_RETURN){this._err(Ke.controlCharacterReference);const n=lit.get(this.charRefCode);n!==void 0&&(this.charRefCode=n)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,t)}}const rme=new Set([C.DD,C.DT,C.LI,C.OPTGROUP,C.OPTION,C.P,C.RB,C.RP,C.RT,C.RTC]),xee=new Set([...rme,C.CAPTION,C.COLGROUP,C.TBODY,C.TD,C.TFOOT,C.TH,C.THEAD,C.TR]),i4=new Map([[C.APPLET,pt.HTML],[C.CAPTION,pt.HTML],[C.HTML,pt.HTML],[C.MARQUEE,pt.HTML],[C.OBJECT,pt.HTML],[C.TABLE,pt.HTML],[C.TD,pt.HTML],[C.TEMPLATE,pt.HTML],[C.TH,pt.HTML],[C.ANNOTATION_XML,pt.MATHML],[C.MI,pt.MATHML],[C.MN,pt.MATHML],[C.MO,pt.MATHML],[C.MS,pt.MATHML],[C.MTEXT,pt.MATHML],[C.DESC,pt.SVG],[C.FOREIGN_OBJECT,pt.SVG],[C.TITLE,pt.SVG]]),hit=[C.H1,C.H2,C.H3,C.H4,C.H5,C.H6],pit=[C.TR,C.TEMPLATE,C.HTML],mit=[C.TBODY,C.TFOOT,C.THEAD,C.TEMPLATE,C.HTML],git=[C.TABLE,C.TEMPLATE,C.HTML],bit=[C.TD,C.TH];class yit{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=C.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===C.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===pt.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])!==pt.HTML);this.shortenToLength(n<0?0:n)}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop=0;r--)if(t.includes(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(git,pt.HTML)}clearBackToTableBodyContext(){this.clearBackTo(mit,pt.HTML)}clearBackToTableRowContext(){this.clearBackTo(pit,pt.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]===C.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]===C.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===pt.HTML)return!0;if(i4.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(J0e(n)&&r===pt.HTML)return!0;if(i4.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===pt.HTML)return!0;if((r===C.UL||r===C.OL)&&i===pt.HTML||i4.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===pt.HTML)return!0;if(r===C.BUTTON&&i===pt.HTML||i4.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])===pt.HTML){if(r===t)return!0;if(r===C.TABLE||r===C.TEMPLATE||r===C.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])===pt.HTML){if(n===C.TBODY||n===C.THEAD||n===C.TFOOT)return!0;if(n===C.TABLE||n===C.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])===pt.HTML){if(r===t)return!0;if(r!==C.OPTION&&r!==C.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;rme.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;xee.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&xee.has(this.currentTagId);)this.pop()}}const r7=3;var pd;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(pd=pd||(pd={}));const kee={type:pd.Marker};class vit{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,a=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let o=0;o[s.name,s.value]));let a=0;for(let s=0;si.get(l.name)===l.value)&&(a+=1,a>=r7&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(kee)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:pd.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:pd.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(kee);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===pd.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===pd.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===pd.Element&&n.element===t)}}function Aee(e){return{nodeName:"#text",value:e,parentNode:null}}const ny={createDocument(){return{nodeName:"#document",mode:mu.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const i=e.childNodes.find(a=>a.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};ny.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(ny.isTextNode(n)){n.value+=t;return}}ny.appendChild(e,Aee(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&ny.isTextNode(r)?r.value+=t:ny.insertBefore(e,Aee(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;re.startsWith(n))}function xit(e){return e.name===ime&&e.publicId===null&&(e.systemId===null||e.systemId===Oit)}function kit(e){if(e.name!==ime)return mu.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===Sit)return mu.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),wit.has(n))return mu.QUIRKS;let r=t===null?Eit:ame;if(_ee(n,r))return mu.QUIRKS;if(r=t===null?sme:Tit,_ee(n,r))return mu.LIMITED_QUIRKS}return mu.NO_QUIRKS}const Cee={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Ait="definitionurl",_it="definitionURL",Cit=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),Rit=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:pt.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:pt.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:pt.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:pt.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:pt.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:pt.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:pt.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:pt.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:pt.XML}],["xml:space",{prefix:"xml",name:"space",namespace:pt.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:pt.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:pt.XMLNS}]]),Iit=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),Nit=new Set([C.B,C.BIG,C.BLOCKQUOTE,C.BODY,C.BR,C.CENTER,C.CODE,C.DD,C.DIV,C.DL,C.DT,C.EM,C.EMBED,C.H1,C.H2,C.H3,C.H4,C.H5,C.H6,C.HEAD,C.HR,C.I,C.IMG,C.LI,C.LISTING,C.MENU,C.META,C.NOBR,C.OL,C.P,C.PRE,C.RUBY,C.S,C.SMALL,C.SPAN,C.STRONG,C.STRIKE,C.SUB,C.SUP,C.TABLE,C.TT,C.U,C.UL,C.VAR]);function Dit(e){const t=e.tagID;return t===C.FONT&&e.attrs.some(({name:r})=>r===am.COLOR||r===am.SIZE||r===am.FACE)||Nit.has(t)}function ome(e){for(let t=0;t0&&this._setContextModes(t,n)}onItemPop(t,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,t,this.openElements.current),n){let a,s;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,s=this.fragmentContextID):{current:a,currentTagId:s}=this.openElements,this._setContextModes(a,s)}}_setContextModes(t,n){const r=t===this.document||this.treeAdapter.getNamespaceURI(t)===pt.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,pt.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=Ee.TEXT}switchToPlaintextParsing(){this.insertionMode=Ee.TEXT,this.originalInsertionMode=Ee.IN_BODY,this.tokenizer.state=Na.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)===He.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==pt.HTML))switch(this.fragmentContextID){case C.TITLE:case C.TEXTAREA:{this.tokenizer.state=Na.RCDATA;break}case C.STYLE:case C.XMP:case C.IFRAME:case C.NOEMBED:case C.NOFRAMES:case C.NOSCRIPT:{this.tokenizer.state=Na.RAWTEXT;break}case C.SCRIPT:{this.tokenizer.state=Na.SCRIPT_DATA;break}case C.PLAINTEXT:{this.tokenizer.state=Na.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,pt.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,pt.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(He.HTML,pt.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,C.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const i=this.treeAdapter.getChildNodes(n),a=r?i.lastIndexOf(r):i.length,s=i[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:l,endCol:u,endOffset:d}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:l,endCol:u,endOffset:d})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,i=this.treeAdapter.getTagName(t),a=n.type===fr.END_TAG&&i===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,a)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===C.SVG&&this.treeAdapter.getTagName(n)===He.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===pt.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===C.MGLYPH||t.tagID===C.MALIGNMARK)&&!this._isIntegrationPoint(r,n,pt.HTML)}_processToken(t){switch(t.type){case fr.CHARACTER:{this.onCharacter(t);break}case fr.NULL_CHARACTER:{this.onNullCharacter(t);break}case fr.COMMENT:{this.onComment(t);break}case fr.DOCTYPE:{this.onDoctype(t);break}case fr.START_TAG:{this._processStartTag(t);break}case fr.END_TAG:{this.onEndTag(t);break}case fr.EOF:{this.onEof(t);break}case fr.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return $it(t,i,a,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===pd.Marker||this.openElements.contains(i.element)),r=n<0?t-1:n-1;for(let i=r;i>=0;i--){const a=this.activeFormattingElements.entries[i];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Ee.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(C.P),this.openElements.popUntilTagNamePopped(C.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case C.TR:{this.insertionMode=Ee.IN_ROW;return}case C.TBODY:case C.THEAD:case C.TFOOT:{this.insertionMode=Ee.IN_TABLE_BODY;return}case C.CAPTION:{this.insertionMode=Ee.IN_CAPTION;return}case C.COLGROUP:{this.insertionMode=Ee.IN_COLUMN_GROUP;return}case C.TABLE:{this.insertionMode=Ee.IN_TABLE;return}case C.BODY:{this.insertionMode=Ee.IN_BODY;return}case C.FRAMESET:{this.insertionMode=Ee.IN_FRAMESET;return}case C.SELECT:{this._resetInsertionModeForSelect(t);return}case C.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case C.HTML:{this.insertionMode=this.headElement?Ee.AFTER_HEAD:Ee.BEFORE_HEAD;return}case C.TD:case C.TH:{if(t>0){this.insertionMode=Ee.IN_CELL;return}break}case C.HEAD:{if(t>0){this.insertionMode=Ee.IN_HEAD;return}break}}this.insertionMode=Ee.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===C.TEMPLATE)break;if(r===C.TABLE){this.insertionMode=Ee.IN_SELECT_IN_TABLE;return}}this.insertionMode=Ee.IN_SELECT}_isElementCausesFosterParenting(t){return ume.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 C.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===pt.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case C.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return oit[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){bst(this,t);return}switch(this.insertionMode){case Ee.INITIAL:{vE(this,t);break}case Ee.BEFORE_HTML:{w2(this,t);break}case Ee.BEFORE_HEAD:{T2(this,t);break}case Ee.IN_HEAD:{x2(this,t);break}case Ee.IN_HEAD_NO_SCRIPT:{k2(this,t);break}case Ee.AFTER_HEAD:{A2(this,t);break}case Ee.IN_BODY:case Ee.IN_CAPTION:case Ee.IN_CELL:case Ee.IN_TEMPLATE:{dme(this,t);break}case Ee.TEXT:case Ee.IN_SELECT:case Ee.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case Ee.IN_TABLE:case Ee.IN_TABLE_BODY:case Ee.IN_ROW:{i7(this,t);break}case Ee.IN_TABLE_TEXT:{bme(this,t);break}case Ee.IN_COLUMN_GROUP:{_3(this,t);break}case Ee.AFTER_BODY:{C3(this,t);break}case Ee.AFTER_AFTER_BODY:{S_(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){gst(this,t);return}switch(this.insertionMode){case Ee.INITIAL:{vE(this,t);break}case Ee.BEFORE_HTML:{w2(this,t);break}case Ee.BEFORE_HEAD:{T2(this,t);break}case Ee.IN_HEAD:{x2(this,t);break}case Ee.IN_HEAD_NO_SCRIPT:{k2(this,t);break}case Ee.AFTER_HEAD:{A2(this,t);break}case Ee.TEXT:{this._insertCharacters(t);break}case Ee.IN_TABLE:case Ee.IN_TABLE_BODY:case Ee.IN_ROW:{i7(this,t);break}case Ee.IN_COLUMN_GROUP:{_3(this,t);break}case Ee.AFTER_BODY:{C3(this,t);break}case Ee.AFTER_AFTER_BODY:{S_(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){sM(this,t);return}switch(this.insertionMode){case Ee.INITIAL:case Ee.BEFORE_HTML:case Ee.BEFORE_HEAD:case Ee.IN_HEAD:case Ee.IN_HEAD_NO_SCRIPT:case Ee.AFTER_HEAD:case Ee.IN_BODY:case Ee.IN_TABLE:case Ee.IN_CAPTION:case Ee.IN_COLUMN_GROUP:case Ee.IN_TABLE_BODY:case Ee.IN_ROW:case Ee.IN_CELL:case Ee.IN_SELECT:case Ee.IN_SELECT_IN_TABLE:case Ee.IN_TEMPLATE:case Ee.IN_FRAMESET:case Ee.AFTER_FRAMESET:{sM(this,t);break}case Ee.IN_TABLE_TEXT:{OE(this,t);break}case Ee.AFTER_BODY:{Git(this,t);break}case Ee.AFTER_AFTER_BODY:case Ee.AFTER_AFTER_FRAMESET:{Yit(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case Ee.INITIAL:{Zit(this,t);break}case Ee.BEFORE_HEAD:case Ee.IN_HEAD:case Ee.IN_HEAD_NO_SCRIPT:case Ee.AFTER_HEAD:{this._err(t,Ke.misplacedDoctype);break}case Ee.IN_TABLE_TEXT:{OE(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,Ke.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?yst(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case Ee.INITIAL:{vE(this,t);break}case Ee.BEFORE_HTML:{Xit(this,t);break}case Ee.BEFORE_HEAD:{Jit(this,t);break}case Ee.IN_HEAD:{Ud(this,t);break}case Ee.IN_HEAD_NO_SCRIPT:{nat(this,t);break}case Ee.AFTER_HEAD:{iat(this,t);break}case Ee.IN_BODY:{To(this,t);break}case Ee.IN_TABLE:{Gv(this,t);break}case Ee.IN_TABLE_TEXT:{OE(this,t);break}case Ee.IN_CAPTION:{est(this,t);break}case Ee.IN_COLUMN_GROUP:{lW(this,t);break}case Ee.IN_TABLE_BODY:{bI(this,t);break}case Ee.IN_ROW:{yI(this,t);break}case Ee.IN_CELL:{rst(this,t);break}case Ee.IN_SELECT:{Ome(this,t);break}case Ee.IN_SELECT_IN_TABLE:{ast(this,t);break}case Ee.IN_TEMPLATE:{ost(this,t);break}case Ee.AFTER_BODY:{ust(this,t);break}case Ee.IN_FRAMESET:{cst(this,t);break}case Ee.AFTER_FRAMESET:{fst(this,t);break}case Ee.AFTER_AFTER_BODY:{pst(this,t);break}case Ee.AFTER_AFTER_FRAMESET:{mst(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?vst(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case Ee.INITIAL:{vE(this,t);break}case Ee.BEFORE_HTML:{Kit(this,t);break}case Ee.BEFORE_HEAD:{eat(this,t);break}case Ee.IN_HEAD:{tat(this,t);break}case Ee.IN_HEAD_NO_SCRIPT:{rat(this,t);break}case Ee.AFTER_HEAD:{aat(this,t);break}case Ee.IN_BODY:{gI(this,t);break}case Ee.TEXT:{Qat(this,t);break}case Ee.IN_TABLE:{Gw(this,t);break}case Ee.IN_TABLE_TEXT:{OE(this,t);break}case Ee.IN_CAPTION:{tst(this,t);break}case Ee.IN_COLUMN_GROUP:{nst(this,t);break}case Ee.IN_TABLE_BODY:{oM(this,t);break}case Ee.IN_ROW:{vme(this,t);break}case Ee.IN_CELL:{ist(this,t);break}case Ee.IN_SELECT:{Sme(this,t);break}case Ee.IN_SELECT_IN_TABLE:{sst(this,t);break}case Ee.IN_TEMPLATE:{lst(this,t);break}case Ee.AFTER_BODY:{wme(this,t);break}case Ee.IN_FRAMESET:{dst(this,t);break}case Ee.AFTER_FRAMESET:{hst(this,t);break}case Ee.AFTER_AFTER_BODY:{S_(this,t);break}}}onEof(t){switch(this.insertionMode){case Ee.INITIAL:{vE(this,t);break}case Ee.BEFORE_HTML:{w2(this,t);break}case Ee.BEFORE_HEAD:{T2(this,t);break}case Ee.IN_HEAD:{x2(this,t);break}case Ee.IN_HEAD_NO_SCRIPT:{k2(this,t);break}case Ee.AFTER_HEAD:{A2(this,t);break}case Ee.IN_BODY:case Ee.IN_TABLE:case Ee.IN_CAPTION:case Ee.IN_COLUMN_GROUP:case Ee.IN_TABLE_BODY:case Ee.IN_ROW:case Ee.IN_CELL:case Ee.IN_SELECT:case Ee.IN_SELECT_IN_TABLE:{mme(this,t);break}case Ee.TEXT:{Wat(this,t);break}case Ee.IN_TABLE_TEXT:{OE(this,t);break}case Ee.IN_TEMPLATE:{Eme(this,t);break}case Ee.AFTER_BODY:case Ee.IN_FRAMESET:case Ee.AFTER_FRAMESET:case Ee.AFTER_AFTER_BODY:case Ee.AFTER_AFTER_FRAMESET:{oW(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===ce.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 Ee.IN_HEAD:case Ee.IN_HEAD_NO_SCRIPT:case Ee.AFTER_HEAD:case Ee.TEXT:case Ee.IN_COLUMN_GROUP:case Ee.IN_SELECT:case Ee.IN_SELECT_IN_TABLE:case Ee.IN_FRAMESET:case Ee.AFTER_FRAMESET:{this._insertCharacters(t);break}case Ee.IN_BODY:case Ee.IN_CAPTION:case Ee.IN_CELL:case Ee.IN_TEMPLATE:case Ee.AFTER_BODY:case Ee.AFTER_AFTER_BODY:case Ee.AFTER_AFTER_FRAMESET:{cme(this,t);break}case Ee.IN_TABLE:case Ee.IN_TABLE_BODY:case Ee.IN_ROW:{i7(this,t);break}case Ee.IN_TABLE_TEXT:{gme(this,t);break}}}};function jit(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):pme(e,t),n}function Hit(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),n}function Qit(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,s=i;s!==n;a++,s=i){i=e.openElements.getCommonAncestor(s);const o=e.activeFormattingElements.getElementEntry(s),l=o&&a>=Uit;!o||l?(l&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=Wit(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function Wit(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function Vit(e,t,n){const r=e.treeAdapter.getTagName(t),i=UO(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);i===C.TEMPLATE&&a===pt.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function qit(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,i.tagID)}function sW(e,t){for(let n=0;n=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(a);s&&!s.endTag&&e._setEndLocation(a,t)}}}}function Zit(e,t){e._setDocumentType(t);const n=t.forceQuirks?mu.QUIRKS:kit(t);xit(t)||e._err(t,Ke.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=Ee.BEFORE_HTML}function vE(e,t){e._err(t,Ke.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,mu.QUIRKS),e.insertionMode=Ee.BEFORE_HTML,e._processToken(t)}function Xit(e,t){t.tagID===C.HTML?(e._insertElement(t,pt.HTML),e.insertionMode=Ee.BEFORE_HEAD):w2(e,t)}function Kit(e,t){const n=t.tagID;(n===C.HTML||n===C.HEAD||n===C.BODY||n===C.BR)&&w2(e,t)}function w2(e,t){e._insertFakeRootElement(),e.insertionMode=Ee.BEFORE_HEAD,e._processToken(t)}function Jit(e,t){switch(t.tagID){case C.HTML:{To(e,t);break}case C.HEAD:{e._insertElement(t,pt.HTML),e.headElement=e.openElements.current,e.insertionMode=Ee.IN_HEAD;break}default:T2(e,t)}}function eat(e,t){const n=t.tagID;n===C.HEAD||n===C.BODY||n===C.HTML||n===C.BR?T2(e,t):e._err(t,Ke.endTagWithoutMatchingOpenElement)}function T2(e,t){e._insertFakeElement(He.HEAD,C.HEAD),e.headElement=e.openElements.current,e.insertionMode=Ee.IN_HEAD,e._processToken(t)}function Ud(e,t){switch(t.tagID){case C.HTML:{To(e,t);break}case C.BASE:case C.BASEFONT:case C.BGSOUND:case C.LINK:case C.META:{e._appendElement(t,pt.HTML),t.ackSelfClosing=!0;break}case C.TITLE:{e._switchToTextParsing(t,Na.RCDATA);break}case C.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Na.RAWTEXT):(e._insertElement(t,pt.HTML),e.insertionMode=Ee.IN_HEAD_NO_SCRIPT);break}case C.NOFRAMES:case C.STYLE:{e._switchToTextParsing(t,Na.RAWTEXT);break}case C.SCRIPT:{e._switchToTextParsing(t,Na.SCRIPT_DATA);break}case C.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Ee.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(Ee.IN_TEMPLATE);break}case C.HEAD:{e._err(t,Ke.misplacedStartTagForHeadElement);break}default:x2(e,t)}}function tat(e,t){switch(t.tagID){case C.HEAD:{e.openElements.pop(),e.insertionMode=Ee.AFTER_HEAD;break}case C.BODY:case C.BR:case C.HTML:{x2(e,t);break}case C.TEMPLATE:{Q1(e,t);break}default:e._err(t,Ke.endTagWithoutMatchingOpenElement)}}function Q1(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==C.TEMPLATE&&e._err(t,Ke.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(C.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,Ke.endTagWithoutMatchingOpenElement)}function x2(e,t){e.openElements.pop(),e.insertionMode=Ee.AFTER_HEAD,e._processToken(t)}function nat(e,t){switch(t.tagID){case C.HTML:{To(e,t);break}case C.BASEFONT:case C.BGSOUND:case C.HEAD:case C.LINK:case C.META:case C.NOFRAMES:case C.STYLE:{Ud(e,t);break}case C.NOSCRIPT:{e._err(t,Ke.nestedNoscriptInHead);break}default:k2(e,t)}}function rat(e,t){switch(t.tagID){case C.NOSCRIPT:{e.openElements.pop(),e.insertionMode=Ee.IN_HEAD;break}case C.BR:{k2(e,t);break}default:e._err(t,Ke.endTagWithoutMatchingOpenElement)}}function k2(e,t){const n=t.type===fr.EOF?Ke.openElementsLeftAfterEof:Ke.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=Ee.IN_HEAD,e._processToken(t)}function iat(e,t){switch(t.tagID){case C.HTML:{To(e,t);break}case C.BODY:{e._insertElement(t,pt.HTML),e.framesetOk=!1,e.insertionMode=Ee.IN_BODY;break}case C.FRAMESET:{e._insertElement(t,pt.HTML),e.insertionMode=Ee.IN_FRAMESET;break}case C.BASE:case C.BASEFONT:case C.BGSOUND:case C.LINK:case C.META:case C.NOFRAMES:case C.SCRIPT:case C.STYLE:case C.TEMPLATE:case C.TITLE:{e._err(t,Ke.abandonedHeadElementChild),e.openElements.push(e.headElement,C.HEAD),Ud(e,t),e.openElements.remove(e.headElement);break}case C.HEAD:{e._err(t,Ke.misplacedStartTagForHeadElement);break}default:A2(e,t)}}function aat(e,t){switch(t.tagID){case C.BODY:case C.HTML:case C.BR:{A2(e,t);break}case C.TEMPLATE:{Q1(e,t);break}default:e._err(t,Ke.endTagWithoutMatchingOpenElement)}}function A2(e,t){e._insertFakeElement(He.BODY,C.BODY),e.insertionMode=Ee.IN_BODY,mI(e,t)}function mI(e,t){switch(t.type){case fr.CHARACTER:{dme(e,t);break}case fr.WHITESPACE_CHARACTER:{cme(e,t);break}case fr.COMMENT:{sM(e,t);break}case fr.START_TAG:{To(e,t);break}case fr.END_TAG:{gI(e,t);break}case fr.EOF:{mme(e,t);break}}}function cme(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function dme(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function sat(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function oat(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function lat(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,pt.HTML),e.insertionMode=Ee.IN_FRAMESET)}function uat(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,pt.HTML)}function cat(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),J0e(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,pt.HTML)}function dat(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,pt.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function fat(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,pt.HTML),n||(e.formElement=e.openElements.current))}function hat(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.tagIDs[r];if(n===C.LI&&i===C.LI||(n===C.DD||n===C.DT)&&(i===C.DD||i===C.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==C.ADDRESS&&i!==C.DIV&&i!==C.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,pt.HTML)}function pat(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,pt.HTML),e.tokenizer.state=Na.PLAINTEXT}function mat(e,t){e.openElements.hasInScope(C.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(C.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,pt.HTML),e.framesetOk=!1}function gat(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(He.A);n&&(sW(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,pt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function bat(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,pt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function yat(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(C.NOBR)&&(sW(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,pt.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function vat(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,pt.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Oat(e,t){e.treeAdapter.getDocumentMode(e.document)!==mu.QUIRKS&&e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,pt.HTML),e.framesetOk=!1,e.insertionMode=Ee.IN_TABLE}function fme(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,pt.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function hme(e){const t=Z0e(e,am.TYPE);return t!=null&&t.toLowerCase()===Fit}function Sat(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,pt.HTML),hme(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function Eat(e,t){e._appendElement(t,pt.HTML),t.ackSelfClosing=!0}function wat(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._appendElement(t,pt.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Tat(e,t){t.tagName=He.IMG,t.tagID=C.IMG,fme(e,t)}function xat(e,t){e._insertElement(t,pt.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Na.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Ee.TEXT}function kat(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Na.RAWTEXT)}function Aat(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Na.RAWTEXT)}function Nee(e,t){e._switchToTextParsing(t,Na.RAWTEXT)}function _at(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,pt.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===Ee.IN_TABLE||e.insertionMode===Ee.IN_CAPTION||e.insertionMode===Ee.IN_TABLE_BODY||e.insertionMode===Ee.IN_ROW||e.insertionMode===Ee.IN_CELL?Ee.IN_SELECT_IN_TABLE:Ee.IN_SELECT}function Cat(e,t){e.openElements.currentTagId===C.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,pt.HTML)}function Rat(e,t){e.openElements.hasInScope(C.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,pt.HTML)}function Iat(e,t){e.openElements.hasInScope(C.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(C.RTC),e._insertElement(t,pt.HTML)}function Nat(e,t){e._reconstructActiveFormattingElements(),ome(t),aW(t),t.selfClosing?e._appendElement(t,pt.MATHML):e._insertElement(t,pt.MATHML),t.ackSelfClosing=!0}function Dat(e,t){e._reconstructActiveFormattingElements(),lme(t),aW(t),t.selfClosing?e._appendElement(t,pt.SVG):e._insertElement(t,pt.SVG),t.ackSelfClosing=!0}function Dee(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,pt.HTML)}function To(e,t){switch(t.tagID){case C.I:case C.S:case C.B:case C.U:case C.EM:case C.TT:case C.BIG:case C.CODE:case C.FONT:case C.SMALL:case C.STRIKE:case C.STRONG:{bat(e,t);break}case C.A:{gat(e,t);break}case C.H1:case C.H2:case C.H3:case C.H4:case C.H5:case C.H6:{cat(e,t);break}case C.P:case C.DL:case C.OL:case C.UL:case C.DIV:case C.DIR:case C.NAV:case C.MAIN:case C.MENU:case C.ASIDE:case C.CENTER:case C.FIGURE:case C.FOOTER:case C.HEADER:case C.HGROUP:case C.DIALOG:case C.DETAILS:case C.ADDRESS:case C.ARTICLE:case C.SECTION:case C.SUMMARY:case C.FIELDSET:case C.BLOCKQUOTE:case C.FIGCAPTION:{uat(e,t);break}case C.LI:case C.DD:case C.DT:{hat(e,t);break}case C.BR:case C.IMG:case C.WBR:case C.AREA:case C.EMBED:case C.KEYGEN:{fme(e,t);break}case C.HR:{wat(e,t);break}case C.RB:case C.RTC:{Rat(e,t);break}case C.RT:case C.RP:{Iat(e,t);break}case C.PRE:case C.LISTING:{dat(e,t);break}case C.XMP:{kat(e,t);break}case C.SVG:{Dat(e,t);break}case C.HTML:{sat(e,t);break}case C.BASE:case C.LINK:case C.META:case C.STYLE:case C.TITLE:case C.SCRIPT:case C.BGSOUND:case C.BASEFONT:case C.TEMPLATE:{Ud(e,t);break}case C.BODY:{oat(e,t);break}case C.FORM:{fat(e,t);break}case C.NOBR:{yat(e,t);break}case C.MATH:{Nat(e,t);break}case C.TABLE:{Oat(e,t);break}case C.INPUT:{Sat(e,t);break}case C.PARAM:case C.TRACK:case C.SOURCE:{Eat(e,t);break}case C.IMAGE:{Tat(e,t);break}case C.BUTTON:{mat(e,t);break}case C.APPLET:case C.OBJECT:case C.MARQUEE:{vat(e,t);break}case C.IFRAME:{Aat(e,t);break}case C.SELECT:{_at(e,t);break}case C.OPTION:case C.OPTGROUP:{Cat(e,t);break}case C.NOEMBED:{Nee(e,t);break}case C.FRAMESET:{lat(e,t);break}case C.TEXTAREA:{xat(e,t);break}case C.NOSCRIPT:{e.options.scriptingEnabled?Nee(e,t):Dee(e,t);break}case C.PLAINTEXT:{pat(e,t);break}case C.COL:case C.TH:case C.TD:case C.TR:case C.HEAD:case C.FRAME:case C.TBODY:case C.TFOOT:case C.THEAD:case C.CAPTION:case C.COLGROUP:break;default:Dee(e,t)}}function Pat(e,t){if(e.openElements.hasInScope(C.BODY)&&(e.insertionMode=Ee.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function Lat(e,t){e.openElements.hasInScope(C.BODY)&&(e.insertionMode=Ee.AFTER_BODY,wme(e,t))}function Mat(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function $at(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(C.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(C.FORM):n&&e.openElements.remove(n))}function Fat(e){e.openElements.hasInButtonScope(C.P)||e._insertFakeElement(He.P,C.P),e._closePElement()}function Bat(e){e.openElements.hasInListItemScope(C.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(C.LI),e.openElements.popUntilTagNamePopped(C.LI))}function Uat(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function zat(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function jat(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function Hat(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(He.BR,C.BR),e.openElements.pop(),e.framesetOk=!1}function pme(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const a=e.openElements.items[i],s=e.openElements.tagIDs[i];if(r===s&&(r!==C.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(a,s))break}}function gI(e,t){switch(t.tagID){case C.A:case C.B:case C.I:case C.S:case C.U:case C.EM:case C.TT:case C.BIG:case C.CODE:case C.FONT:case C.NOBR:case C.SMALL:case C.STRIKE:case C.STRONG:{sW(e,t);break}case C.P:{Fat(e);break}case C.DL:case C.UL:case C.OL:case C.DIR:case C.DIV:case C.NAV:case C.PRE:case C.MAIN:case C.MENU:case C.ASIDE:case C.BUTTON:case C.CENTER:case C.FIGURE:case C.FOOTER:case C.HEADER:case C.HGROUP:case C.DIALOG:case C.ADDRESS:case C.ARTICLE:case C.DETAILS:case C.SECTION:case C.SUMMARY:case C.LISTING:case C.FIELDSET:case C.BLOCKQUOTE:case C.FIGCAPTION:{Mat(e,t);break}case C.LI:{Bat(e);break}case C.DD:case C.DT:{Uat(e,t);break}case C.H1:case C.H2:case C.H3:case C.H4:case C.H5:case C.H6:{zat(e);break}case C.BR:{Hat(e);break}case C.BODY:{Pat(e,t);break}case C.HTML:{Lat(e,t);break}case C.FORM:{$at(e);break}case C.APPLET:case C.OBJECT:case C.MARQUEE:{jat(e,t);break}case C.TEMPLATE:{Q1(e,t);break}default:pme(e,t)}}function mme(e,t){e.tmplInsertionModeStack.length>0?Eme(e,t):oW(e,t)}function Qat(e,t){var n;t.tagID===C.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Wat(e,t){e._err(t,Ke.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function i7(e,t){if(ume.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Ee.IN_TABLE_TEXT,t.type){case fr.CHARACTER:{bme(e,t);break}case fr.WHITESPACE_CHARACTER:{gme(e,t);break}}else ox(e,t)}function Vat(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,pt.HTML),e.insertionMode=Ee.IN_CAPTION}function qat(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,pt.HTML),e.insertionMode=Ee.IN_COLUMN_GROUP}function Gat(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(He.COLGROUP,C.COLGROUP),e.insertionMode=Ee.IN_COLUMN_GROUP,lW(e,t)}function Yat(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,pt.HTML),e.insertionMode=Ee.IN_TABLE_BODY}function Zat(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(He.TBODY,C.TBODY),e.insertionMode=Ee.IN_TABLE_BODY,bI(e,t)}function Xat(e,t){e.openElements.hasInTableScope(C.TABLE)&&(e.openElements.popUntilTagNamePopped(C.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function Kat(e,t){hme(t)?e._appendElement(t,pt.HTML):ox(e,t),t.ackSelfClosing=!0}function Jat(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,pt.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Gv(e,t){switch(t.tagID){case C.TD:case C.TH:case C.TR:{Zat(e,t);break}case C.STYLE:case C.SCRIPT:case C.TEMPLATE:{Ud(e,t);break}case C.COL:{Gat(e,t);break}case C.FORM:{Jat(e,t);break}case C.TABLE:{Xat(e,t);break}case C.TBODY:case C.TFOOT:case C.THEAD:{Yat(e,t);break}case C.INPUT:{Kat(e,t);break}case C.CAPTION:{Vat(e,t);break}case C.COLGROUP:{qat(e,t);break}default:ox(e,t)}}function Gw(e,t){switch(t.tagID){case C.TABLE:{e.openElements.hasInTableScope(C.TABLE)&&(e.openElements.popUntilTagNamePopped(C.TABLE),e._resetInsertionMode());break}case C.TEMPLATE:{Q1(e,t);break}case C.BODY:case C.CAPTION:case C.COL:case C.COLGROUP:case C.HTML:case C.TBODY:case C.TD:case C.TFOOT:case C.TH:case C.THEAD:case C.TR:break;default:ox(e,t)}}function ox(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,mI(e,t),e.fosterParentingEnabled=n}function gme(e,t){e.pendingCharacterTokens.push(t)}function bme(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function OE(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&e.openElements.currentTagId===C.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===C.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===C.OPTGROUP&&e.openElements.pop();break}case C.OPTION:{e.openElements.currentTagId===C.OPTION&&e.openElements.pop();break}case C.SELECT:{e.openElements.hasInSelectScope(C.SELECT)&&(e.openElements.popUntilTagNamePopped(C.SELECT),e._resetInsertionMode());break}case C.TEMPLATE:{Q1(e,t);break}}}function ast(e,t){const n=t.tagID;n===C.CAPTION||n===C.TABLE||n===C.TBODY||n===C.TFOOT||n===C.THEAD||n===C.TR||n===C.TD||n===C.TH?(e.openElements.popUntilTagNamePopped(C.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Ome(e,t)}function sst(e,t){const n=t.tagID;n===C.CAPTION||n===C.TABLE||n===C.TBODY||n===C.TFOOT||n===C.THEAD||n===C.TR||n===C.TD||n===C.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(C.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Sme(e,t)}function ost(e,t){switch(t.tagID){case C.BASE:case C.BASEFONT:case C.BGSOUND:case C.LINK:case C.META:case C.NOFRAMES:case C.SCRIPT:case C.STYLE:case C.TEMPLATE:case C.TITLE:{Ud(e,t);break}case C.CAPTION:case C.COLGROUP:case C.TBODY:case C.TFOOT:case C.THEAD:{e.tmplInsertionModeStack[0]=Ee.IN_TABLE,e.insertionMode=Ee.IN_TABLE,Gv(e,t);break}case C.COL:{e.tmplInsertionModeStack[0]=Ee.IN_COLUMN_GROUP,e.insertionMode=Ee.IN_COLUMN_GROUP,lW(e,t);break}case C.TR:{e.tmplInsertionModeStack[0]=Ee.IN_TABLE_BODY,e.insertionMode=Ee.IN_TABLE_BODY,bI(e,t);break}case C.TD:case C.TH:{e.tmplInsertionModeStack[0]=Ee.IN_ROW,e.insertionMode=Ee.IN_ROW,yI(e,t);break}default:e.tmplInsertionModeStack[0]=Ee.IN_BODY,e.insertionMode=Ee.IN_BODY,To(e,t)}}function lst(e,t){t.tagID===C.TEMPLATE&&Q1(e,t)}function Eme(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(C.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):oW(e,t)}function ust(e,t){t.tagID===C.HTML?To(e,t):C3(e,t)}function wme(e,t){var n;if(t.tagID===C.HTML){if(e.fragmentContext||(e.insertionMode=Ee.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===C.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 C3(e,t)}function C3(e,t){e.insertionMode=Ee.IN_BODY,mI(e,t)}function cst(e,t){switch(t.tagID){case C.HTML:{To(e,t);break}case C.FRAMESET:{e._insertElement(t,pt.HTML);break}case C.FRAME:{e._appendElement(t,pt.HTML),t.ackSelfClosing=!0;break}case C.NOFRAMES:{Ud(e,t);break}}}function dst(e,t){t.tagID===C.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==C.FRAMESET&&(e.insertionMode=Ee.AFTER_FRAMESET))}function fst(e,t){switch(t.tagID){case C.HTML:{To(e,t);break}case C.NOFRAMES:{Ud(e,t);break}}}function hst(e,t){t.tagID===C.HTML&&(e.insertionMode=Ee.AFTER_AFTER_FRAMESET)}function pst(e,t){t.tagID===C.HTML?To(e,t):S_(e,t)}function S_(e,t){e.insertionMode=Ee.IN_BODY,mI(e,t)}function mst(e,t){switch(t.tagID){case C.HTML:{To(e,t);break}case C.NOFRAMES:{Ud(e,t);break}}}function gst(e,t){t.chars=Xi,e._insertCharacters(t)}function bst(e,t){e._insertCharacters(t),e.framesetOk=!1}function Tme(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==pt.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function yst(e,t){if(Dit(t))Tme(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===pt.MATHML?ome(t):r===pt.SVG&&(Pit(t),lme(t)),aW(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function vst(e,t){if(t.tagID===C.P||t.tagID===C.BR){Tme(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)===pt.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}He.AREA,He.BASE,He.BASEFONT,He.BGSOUND,He.BR,He.COL,He.EMBED,He.FRAME,He.HR,He.IMG,He.INPUT,He.KEYGEN,He.LINK,He.META,He.PARAM,He.SOURCE,He.TRACK,He.WBR;const vI=xme("end"),Jf=xme("start");function xme(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 kme(e){const t=Jf(e),n=vI(e);if(t&&n)return{start:t,end:n}}const Ost=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Pee={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Ame(e,t){const n=Rst(e),r=ZQ("type",{handlers:{root:Sst,element:Est,text:wst,comment:Cme,doctype:Tst,raw:kst},unknown:Ast}),i={parser:n?new Iee(Pee):Iee.getFragmentParser(void 0,Pee),handle(o){r(o,i)},stitches:!1,options:t||{}};r(e,i),zO(i,Jf());const a=n?i.parser.document:i.parser.getFragment(),s=Nrt(a,{file:i.options.file});return i.stitches&&Eo(s,"comment",function(o,l,u){const d=o;if(d.value.stitch&&u&&l!==void 0){const f=u.children;return f[l]=d.value.stitch,l}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function _me(e,t){let n=-1;if(e)for(;++n4&&(t.parser.tokenizer.state=0);const n={type:fr.CHARACTER,chars:e.value,location:lx(e)};zO(t,Jf(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Tst(e,t){const n={type:fr.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:lx(e)};zO(t,Jf(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function xst(e,t){t.stitches=!0;const n=Ist(e);if("children"in e&&"children"in n){const r=Ame({type:"root",children:e.children},t.options);n.children=r.children}Cme({type:"comment",value:{stitch:n}},t)}function Cme(e,t){const n=e.value,r={type:fr.COMMENT,data:n,location:lx(e)};zO(t,Jf(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function kst(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,Rme(t,Jf(e)),t.parser.tokenizer.write(e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function Ast(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))xst(n,t);else{let r="";throw Ost.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function zO(e,t){Rme(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Na.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function Rme(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function _st(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Na.PLAINTEXT)return;zO(t,Jf(e));const r=t.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:Af.html;i===Af.html&&n==="svg"&&(i=Af.svg);const a=$rt({...e,children:[]},{space:i===Af.svg?"svg":"html"}),s={type:fr.START_TAG,tagName:n,tagID:UO(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:lx(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function Cst(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&Wrt.includes(n)||t.parser.tokenizer.state===Na.PLAINTEXT)return;zO(t,vI(e));const r={type:fr.END_TAG,tagName:n,tagID:UO(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:lx(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Na.RCDATA||t.parser.tokenizer.state===Na.RAWTEXT||t.parser.tokenizer.state===Na.SCRIPT_DATA)&&(t.parser.tokenizer.state=Na.DATA)}function Rst(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function lx(e){const t=Jf(e)||{line:void 0,column:void 0,offset:void 0},n=vI(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function Ist(e){return"children"in e?Ed({...e,children:[]}):Ed(e)}function Ime(e){return function(t,n){return Ame(t,{...e,file:n})}}var Nst=Bse();const Dst=Nu(Nst),Pst=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Lst=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Mst={};function Lee(e,t){return(Mst.jsx?Lst:Pst).test(e)}var Nme={},Mee=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,$st=/\n/g,Fst=/^\s*/,Bst=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Ust=/^:\s*/,zst=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,jst=/^[;\s]*/,Hst=/^\s+|\s+$/g,Qst=` -`,$ee="/",Fee="*",Cg="",Wst="comment",Vst="declaration",qst=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(O){var S=O.match($st);S&&(n+=S.length);var T=O.lastIndexOf(Qst);r=~T?O.length-T:r+O.length}function a(){var O={line:n,column:r};return function(S){return S.position=new s(O),u(),S}}function s(O){this.start=O,this.end={line:n,column:r},this.source=t.source}s.prototype.content=e;function o(O){var S=new Error(t.source+":"+n+":"+r+": "+O);if(S.reason=O,S.filename=t.source,S.line=n,S.column=r,S.source=e,!t.silent)throw S}function l(O){var S=O.exec(e);if(S){var T=S[0];return i(T),e=e.slice(T.length),S}}function u(){l(Fst)}function d(O){var S;for(O=O||[];S=f();)S!==!1&&O.push(S);return O}function f(){var O=a();if(!($ee!=e.charAt(0)||Fee!=e.charAt(1))){for(var S=2;Cg!=e.charAt(S)&&(Fee!=e.charAt(S)||$ee!=e.charAt(S+1));)++S;if(S+=2,Cg===e.charAt(S-1))return o("End of comment missing");var T=e.slice(2,S-2);return r+=2,i(T),e=e.slice(S),r+=2,O({type:Wst,comment:T})}}function p(){var O=a(),S=l(Bst);if(S){if(f(),!l(Ust))return o("property missing ':'");var T=l(zst),w=O({type:Vst,property:Bee(S[0].replace(Mee,Cg)),value:T?Bee(T[0].replace(Mee,Cg)):Cg});return l(jst),w}}function g(){var O=[];d(O);for(var S;S=p();)S!==!1&&(O.push(S),d(O));return O}return u(),g()};function Bee(e){return e?e.replace(Hst,Cg):Cg}var Gst=yf&&yf.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Nme,"__esModule",{value:!0});var Uee=Nme.default=Zst,Yst=Gst(qst);function Zst(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,Yst.default)(e),i=typeof t=="function";return r.forEach(function(a){if(a.type==="declaration"){var s=a.property,o=a.value;i?t(s,o,a):o&&(n=n||{},n[s]=o)}}),n}const Xst=Uee.default||Uee;function _2(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?zee(e.position):"start"in e||"end"in e?zee(e):"line"in e||"column"in e?lM(e):""}function lM(e){return jee(e&&e.line)+":"+jee(e&&e.column)}function zee(e){return lM(e&&e.start)+"-"+lM(e&&e.end)}function jee(e){return e&&typeof e=="number"?e:1}class xo extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},s=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(s=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?a.ruleId=r:(a.source=r.slice(0,l),a.ruleId=r.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const o=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=o?o.line:void 0,this.name=_2(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}xo.prototype.file="";xo.prototype.name="";xo.prototype.reason="";xo.prototype.message="";xo.prototype.stack="";xo.prototype.column=void 0;xo.prototype.line=void 0;xo.prototype.ancestors=void 0;xo.prototype.cause=void 0;xo.prototype.fatal=void 0;xo.prototype.place=void 0;xo.prototype.ruleId=void 0;xo.prototype.source=void 0;const uW={}.hasOwnProperty,Kst=new Map,Jst=/[A-Z]/g,eot=/-([a-z])/g,tot=new Set(["table","tbody","thead","tfoot","tr"]),not=new Set(["td","th"]),Dme="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function rot(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=dot(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=cot(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"?Ip:H1,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Pme(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Pme(e,t,n){if(t.type==="element")return iot(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return aot(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return oot(e,t,n);if(t.type==="mdxjsEsm")return sot(e,t);if(t.type==="root")return lot(e,t,n);if(t.type==="text")return uot(e,t)}function iot(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Ip,e.schema=i),e.ancestors.push(t);const a=Mme(e,t.tagName,!1),s=fot(e,t);let o=dW(e,t);return tot.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!R0e(l):!0})),Lme(e,s,a,t),cW(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function aot(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)}Yw(e,t.position)}function sot(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Yw(e,t.position)}function oot(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Ip,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:Mme(e,t.name,!0),s=hot(e,t),o=dW(e,t);return Lme(e,s,a,t),cW(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function lot(e,t,n){const r={};return cW(r,dW(e,t)),e.create(t,e.Fragment,r,n)}function uot(e,t){return t.value}function Lme(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function cW(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function cot(e,t,n){return r;function r(i,a,s,o){const u=Array.isArray(s.children)?n:t;return o?u(a,s,o):u(a,s)}}function dot(e,t){return n;function n(r,i,a,s){const o=Array.isArray(a.children),l=Jf(r);return t(i,a,s,o,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function fot(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&uW.call(t.properties,i)){const a=pot(e,i,t.properties[i]);if(a){const[s,o]=a;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&¬.has(t.tagName)?r=o:n[s]=o}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function hot(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const s=a.expression;s.type;const o=s.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else Yw(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];o.type,a=e.evaluater.evaluateExpression(o.expression)}else Yw(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function dW(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:Kst;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);a0?(Ec(e,e.length,0,t),e):t}const Qee={}.hasOwnProperty;function Fme(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 wd(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Qo=Nm(/[A-Za-z]/),bo=Nm(/[\dA-Za-z]/),Tot=Nm(/[#-'*+\--9=?A-Z^-~]/);function R3(e){return e!==null&&(e<32||e===127)}const uM=Nm(/\d/),xot=Nm(/[\dA-Fa-f]/),kot=Nm(/[!-/:-@[-`{-~]/);function An(e){return e!==null&&e<-2}function Ti(e){return e!==null&&(e<0||e===32)}function Or(e){return e===-2||e===-1||e===32}const OI=Nm(new RegExp("\\p{P}|\\p{S}","u")),A1=Nm(/\s/);function Nm(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function jO(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&a<57344){const o=e.charCodeAt(n+1);a<56320&&o>56319&&o<57344?(s=String.fromCharCode(a,o),i=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function gr(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(l){return Or(l)?(e.enter(n),o(l)):t(l)}function o(l){return Or(l)&&a++s))return;const D=t.events.length;let L=D,j,B;for(;L--;)if(t.events[L][0]==="exit"&&t.events[L][1].type==="chunkFlow"){if(j){B=t.events[L][1].end;break}j=!0}for(w(r),N=D;Nk;){const R=n[_];t.containerState=R[1],R[0].exit.call(t,e)}n.length=k}function x(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Iot(e,t,n){return gr(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function I3(e){if(e===null||Ti(e)||A1(e))return 1;if(OI(e))return 2}function SI(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f=Object.assign({},e[r][1].end),p=Object.assign({},e[n][1].start);Vee(f,-l),Vee(p,l),s={type:l>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[r][1].end)},o={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:p},a={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},s.start),end:Object.assign({},o.end)},e[r][1].end=Object.assign({},s.start),e[n][1].start=Object.assign({},o.end),u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=uc(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=uc(u,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",a,t]]),u=uc(u,SI(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=uc(u,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,u=uc(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,Ec(e,r-1,n-r+3,u),n=r+u.length-d-2;break}}for(n=-1;++n0&&Or(N)?gr(e,x,"linePrefix",a+1)(N):x(N)}function x(N){return N===null||An(N)?e.check(qee,S,_)(N):(e.enter("codeFlowValue"),k(N))}function k(N){return N===null||An(N)?(e.exit("codeFlowValue"),x(N)):(e.consume(N),k)}function _(N){return e.exit("codeFenced"),t(N)}function R(N,D,L){let j=0;return B;function B(q){return N.enter("lineEnding"),N.consume(q),N.exit("lineEnding"),V}function V(q){return N.enter("codeFencedFence"),Or(q)?gr(N,W,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(q):W(q)}function W(q){return q===o?(N.enter("codeFencedFenceSequence"),re(q)):L(q)}function re(q){return q===o?(j++,N.consume(q),re):j>=s?(N.exit("codeFencedFenceSequence"),Or(q)?gr(N,ee,"whitespace")(q):ee(q)):L(q)}function ee(q){return q===null||An(q)?(N.exit("codeFencedFence"),D(q)):L(q)}}}function Hot(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const s7={name:"codeIndented",tokenize:Wot},Qot={tokenize:Vot,partial:!0};function Wot(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),gr(e,a,"linePrefix",5)(u)}function a(u){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?s(u):n(u)}function s(u){return u===null?l(u):An(u)?e.attempt(Qot,s,l)(u):(e.enter("codeFlowValue"),o(u))}function o(u){return u===null||An(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),o)}function l(u){return e.exit("codeIndented"),t(u)}}function Vot(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):An(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):gr(e,a,"linePrefix",5)(s)}function a(s){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):An(s)?i(s):n(s)}}const qot={name:"codeText",tokenize:Zot,resolve:Got,previous:Yot};function Got(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=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return tthis.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&SE(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),SE(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),SE(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function Qme(e,t,n,r,i,a,s,o,l){const u=l||Number.POSITIVE_INFINITY;let d=0;return f;function f(w){return w===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(w),e.exit(a),p):w===null||w===32||w===41||R3(w)?n(w):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),S(w))}function p(w){return w===62?(e.enter(a),e.consume(w),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),g(w))}function g(w){return w===62?(e.exit("chunkString"),e.exit(o),p(w)):w===null||w===60||An(w)?n(w):(e.consume(w),w===92?O:g)}function O(w){return w===60||w===62||w===92?(e.consume(w),g):g(w)}function S(w){return!d&&(w===null||w===41||Ti(w))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(w)):d999||g===null||g===91||g===93&&!l||g===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(g):g===93?(e.exit(a),e.enter(i),e.consume(g),e.exit(i),e.exit(r),t):An(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),f(g))}function f(g){return g===null||g===91||g===93||An(g)||o++>999?(e.exit("chunkString"),d(g)):(e.consume(g),l||(l=!Or(g)),g===92?p:f)}function p(g){return g===91||g===92||g===93?(e.consume(g),o++,f):f(g)}}function Vme(e,t,n,r,i,a){let s;return o;function o(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),s=p===40?41:p,l):n(p)}function l(p){return p===s?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(a),u(p))}function u(p){return p===s?(e.exit(a),l(s)):p===null?n(p):An(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),gr(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===s||p===null||An(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?f:d)}function f(p){return p===s||p===92?(e.consume(p),d):d(p)}}function C2(e,t){let n;return r;function r(i){return An(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Or(i)?gr(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const ilt={name:"definition",tokenize:slt},alt={tokenize:olt,partial:!0};function slt(e,t,n){const r=this;let i;return a;function a(g){return e.enter("definition"),s(g)}function s(g){return Wme.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function o(g){return i=wd(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),l):n(g)}function l(g){return Ti(g)?C2(e,u)(g):u(g)}function u(g){return Qme(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function d(g){return e.attempt(alt,f,f)(g)}function f(g){return Or(g)?gr(e,p,"whitespace")(g):p(g)}function p(g){return g===null||An(g)?(e.exit("definition"),r.parser.defined.push(i),t(g)):n(g)}}function olt(e,t,n){return r;function r(o){return Ti(o)?C2(e,i)(o):n(o)}function i(o){return Vme(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function a(o){return Or(o)?gr(e,s,"whitespace")(o):s(o)}function s(o){return o===null||An(o)?t(o):n(o)}}const llt={name:"hardBreakEscape",tokenize:ult};function ult(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return An(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const clt={name:"headingAtx",tokenize:flt,resolve:dlt};function dlt(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Ec(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function flt(e,t,n){let r=0;return i;function i(d){return e.enter("atxHeading"),a(d)}function a(d){return e.enter("atxHeadingSequence"),s(d)}function s(d){return d===35&&r++<6?(e.consume(d),s):d===null||Ti(d)?(e.exit("atxHeadingSequence"),o(d)):n(d)}function o(d){return d===35?(e.enter("atxHeadingSequence"),l(d)):d===null||An(d)?(e.exit("atxHeading"),t(d)):Or(d)?gr(e,o,"whitespace")(d):(e.enter("atxHeadingText"),u(d))}function l(d){return d===35?(e.consume(d),l):(e.exit("atxHeadingSequence"),o(d))}function u(d){return d===null||d===35||Ti(d)?(e.exit("atxHeadingText"),o(d)):(e.consume(d),u)}}const hlt=["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"],Yee=["pre","script","style","textarea"],plt={name:"htmlFlow",tokenize:ylt,resolveTo:blt,concrete:!0},mlt={tokenize:Olt,partial:!0},glt={tokenize:vlt,partial:!0};function blt(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 ylt(e,t,n){const r=this;let i,a,s,o,l;return u;function u(Z){return d(Z)}function d(Z){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(Z),f}function f(Z){return Z===33?(e.consume(Z),p):Z===47?(e.consume(Z),a=!0,S):Z===63?(e.consume(Z),i=3,r.interrupt?t:H):Qo(Z)?(e.consume(Z),s=String.fromCharCode(Z),T):n(Z)}function p(Z){return Z===45?(e.consume(Z),i=2,g):Z===91?(e.consume(Z),i=5,o=0,O):Qo(Z)?(e.consume(Z),i=4,r.interrupt?t:H):n(Z)}function g(Z){return Z===45?(e.consume(Z),r.interrupt?t:H):n(Z)}function O(Z){const ke="CDATA[";return Z===ke.charCodeAt(o++)?(e.consume(Z),o===ke.length?r.interrupt?t:W:O):n(Z)}function S(Z){return Qo(Z)?(e.consume(Z),s=String.fromCharCode(Z),T):n(Z)}function T(Z){if(Z===null||Z===47||Z===62||Ti(Z)){const ke=Z===47,$e=s.toLowerCase();return!ke&&!a&&Yee.includes($e)?(i=1,r.interrupt?t(Z):W(Z)):hlt.includes(s.toLowerCase())?(i=6,ke?(e.consume(Z),w):r.interrupt?t(Z):W(Z)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(Z):a?x(Z):k(Z))}return Z===45||bo(Z)?(e.consume(Z),s+=String.fromCharCode(Z),T):n(Z)}function w(Z){return Z===62?(e.consume(Z),r.interrupt?t:W):n(Z)}function x(Z){return Or(Z)?(e.consume(Z),x):B(Z)}function k(Z){return Z===47?(e.consume(Z),B):Z===58||Z===95||Qo(Z)?(e.consume(Z),_):Or(Z)?(e.consume(Z),k):B(Z)}function _(Z){return Z===45||Z===46||Z===58||Z===95||bo(Z)?(e.consume(Z),_):R(Z)}function R(Z){return Z===61?(e.consume(Z),N):Or(Z)?(e.consume(Z),R):k(Z)}function N(Z){return Z===null||Z===60||Z===61||Z===62||Z===96?n(Z):Z===34||Z===39?(e.consume(Z),l=Z,D):Or(Z)?(e.consume(Z),N):L(Z)}function D(Z){return Z===l?(e.consume(Z),l=null,j):Z===null||An(Z)?n(Z):(e.consume(Z),D)}function L(Z){return Z===null||Z===34||Z===39||Z===47||Z===60||Z===61||Z===62||Z===96||Ti(Z)?R(Z):(e.consume(Z),L)}function j(Z){return Z===47||Z===62||Or(Z)?k(Z):n(Z)}function B(Z){return Z===62?(e.consume(Z),V):n(Z)}function V(Z){return Z===null||An(Z)?W(Z):Or(Z)?(e.consume(Z),V):n(Z)}function W(Z){return Z===45&&i===2?(e.consume(Z),te):Z===60&&i===1?(e.consume(Z),K):Z===62&&i===4?(e.consume(Z),Re):Z===63&&i===3?(e.consume(Z),H):Z===93&&i===5?(e.consume(Z),ie):An(Z)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(mlt,Se,re)(Z)):Z===null||An(Z)?(e.exit("htmlFlowData"),re(Z)):(e.consume(Z),W)}function re(Z){return e.check(glt,ee,Se)(Z)}function ee(Z){return e.enter("lineEnding"),e.consume(Z),e.exit("lineEnding"),q}function q(Z){return Z===null||An(Z)?re(Z):(e.enter("htmlFlowData"),W(Z))}function te(Z){return Z===45?(e.consume(Z),H):W(Z)}function K(Z){return Z===47?(e.consume(Z),s="",G):W(Z)}function G(Z){if(Z===62){const ke=s.toLowerCase();return Yee.includes(ke)?(e.consume(Z),Re):W(Z)}return Qo(Z)&&s.length<8?(e.consume(Z),s+=String.fromCharCode(Z),G):W(Z)}function ie(Z){return Z===93?(e.consume(Z),H):W(Z)}function H(Z){return Z===62?(e.consume(Z),Re):Z===45&&i===2?(e.consume(Z),H):W(Z)}function Re(Z){return Z===null||An(Z)?(e.exit("htmlFlowData"),Se(Z)):(e.consume(Z),Re)}function Se(Z){return e.exit("htmlFlow"),t(Z)}}function vlt(e,t,n){const r=this;return i;function i(s){return An(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):n(s)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function Olt(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(ux,t,n)}}const Slt={name:"htmlText",tokenize:Elt};function Elt(e,t,n){const r=this;let i,a,s;return o;function o(H){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(H),l}function l(H){return H===33?(e.consume(H),u):H===47?(e.consume(H),R):H===63?(e.consume(H),k):Qo(H)?(e.consume(H),L):n(H)}function u(H){return H===45?(e.consume(H),d):H===91?(e.consume(H),a=0,O):Qo(H)?(e.consume(H),x):n(H)}function d(H){return H===45?(e.consume(H),g):n(H)}function f(H){return H===null?n(H):H===45?(e.consume(H),p):An(H)?(s=f,K(H)):(e.consume(H),f)}function p(H){return H===45?(e.consume(H),g):f(H)}function g(H){return H===62?te(H):H===45?p(H):f(H)}function O(H){const Re="CDATA[";return H===Re.charCodeAt(a++)?(e.consume(H),a===Re.length?S:O):n(H)}function S(H){return H===null?n(H):H===93?(e.consume(H),T):An(H)?(s=S,K(H)):(e.consume(H),S)}function T(H){return H===93?(e.consume(H),w):S(H)}function w(H){return H===62?te(H):H===93?(e.consume(H),w):S(H)}function x(H){return H===null||H===62?te(H):An(H)?(s=x,K(H)):(e.consume(H),x)}function k(H){return H===null?n(H):H===63?(e.consume(H),_):An(H)?(s=k,K(H)):(e.consume(H),k)}function _(H){return H===62?te(H):k(H)}function R(H){return Qo(H)?(e.consume(H),N):n(H)}function N(H){return H===45||bo(H)?(e.consume(H),N):D(H)}function D(H){return An(H)?(s=D,K(H)):Or(H)?(e.consume(H),D):te(H)}function L(H){return H===45||bo(H)?(e.consume(H),L):H===47||H===62||Ti(H)?j(H):n(H)}function j(H){return H===47?(e.consume(H),te):H===58||H===95||Qo(H)?(e.consume(H),B):An(H)?(s=j,K(H)):Or(H)?(e.consume(H),j):te(H)}function B(H){return H===45||H===46||H===58||H===95||bo(H)?(e.consume(H),B):V(H)}function V(H){return H===61?(e.consume(H),W):An(H)?(s=V,K(H)):Or(H)?(e.consume(H),V):j(H)}function W(H){return H===null||H===60||H===61||H===62||H===96?n(H):H===34||H===39?(e.consume(H),i=H,re):An(H)?(s=W,K(H)):Or(H)?(e.consume(H),W):(e.consume(H),ee)}function re(H){return H===i?(e.consume(H),i=void 0,q):H===null?n(H):An(H)?(s=re,K(H)):(e.consume(H),re)}function ee(H){return H===null||H===34||H===39||H===60||H===61||H===96?n(H):H===47||H===62||Ti(H)?j(H):(e.consume(H),ee)}function q(H){return H===47||H===62||Ti(H)?j(H):n(H)}function te(H){return H===62?(e.consume(H),e.exit("htmlTextData"),e.exit("htmlText"),t):n(H)}function K(H){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(H),e.exit("lineEnding"),G}function G(H){return Or(H)?gr(e,ie,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):ie(H)}function ie(H){return e.enter("htmlTextData"),s(H)}}const hW={name:"labelEnd",tokenize:_lt,resolveTo:Alt,resolveAll:klt},wlt={tokenize:Clt},Tlt={tokenize:Rlt},xlt={tokenize:Ilt};function klt(e){let t=-1;for(;++t=3&&(u===null||An(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),Or(u)?gr(e,o,"whitespace")(u):o(u))}}const fl={name:"list",tokenize:Ult,continuation:{tokenize:zlt},exit:Hlt},Flt={tokenize:Qlt,partial:!0},Blt={tokenize:jlt,partial:!0};function Ult(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return o;function o(g){const O=r.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(O==="listUnordered"?!r.containerState.marker||g===r.containerState.marker:uM(g)){if(r.containerState.type||(r.containerState.type=O,e.enter(O,{_container:!0})),O==="listUnordered")return e.enter("listItemPrefix"),g===42||g===45?e.check(E_,n,u)(g):u(g);if(!r.interrupt||g===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(g)}return n(g)}function l(g){return uM(g)&&++s<10?(e.consume(g),l):(!r.interrupt||s<2)&&(r.containerState.marker?g===r.containerState.marker:g===41||g===46)?(e.exit("listItemValue"),u(g)):n(g)}function u(g){return e.enter("listItemMarker"),e.consume(g),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||g,e.check(ux,r.interrupt?n:d,e.attempt(Flt,p,f))}function d(g){return r.containerState.initialBlankLine=!0,a++,p(g)}function f(g){return Or(g)?(e.enter("listItemPrefixWhitespace"),e.consume(g),e.exit("listItemPrefixWhitespace"),p):n(g)}function p(g){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(g)}}function zlt(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(ux,i,a);function i(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,gr(e,t,"listItemIndent",r.containerState.size+1)(o)}function a(o){return r.containerState.furtherBlankLines||!Or(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Blt,t,s)(o))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,gr(e,e.attempt(fl,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function jlt(e,t,n){const r=this;return gr(e,i,"listItemIndent",r.containerState.size+1);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(a):n(a)}}function Hlt(e){e.exit(this.containerState.type)}function Qlt(e,t,n){const r=this;return gr(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const s=r.events[r.events.length-1];return!Or(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const Zee={name:"setextUnderline",tokenize:Vlt,resolveTo:Wlt};function Wlt(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const s={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",s,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[a][1].end)):e[r][1]=s,e.push(["exit",s,t]),e}function Vlt(e,t,n){const r=this;let i;return a;function a(u){let d=r.events.length,f;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){f=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=u,s(u)):n(u)}function s(u){return e.enter("setextHeadingLineSequence"),o(u)}function o(u){return u===i?(e.consume(u),o):(e.exit("setextHeadingLineSequence"),Or(u)?gr(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||An(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const qlt={tokenize:Glt};function Glt(e){const t=this,n=e.attempt(ux,r,e.attempt(this.parser.constructs.flowInitial,i,gr(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Jot,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Ylt={resolveAll:Gme()},Zlt=qme("string"),Xlt=qme("text");function qme(e){return{tokenize:t,resolveAll:Gme(e==="text"?Klt:void 0)};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,s,o);return s;function s(d){return u(d)?a(d):o(d)}function o(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),l}function l(d){return u(d)?(n.exit("data"),a(d)):(n.consume(d),l)}function u(d){if(d===null)return!0;const f=i[d];let p=-1;if(f)for(;++p-1){const o=s[0];typeof o=="string"?s[0]=o.slice(r):s.shift()}a>0&&s.push(e[i].slice(0,a))}return s}function tut(e,t){let n=-1;const r=[];let i;for(;++n0)return(t.commaSeparated?eU:JB)(e)}else return String(e)}const lnt=[];function unt(e,t){return(t.properties.className||lnt).includes(e.name)}function cnt(e,t){return t.properties.id===e.name}function dnt(e,t){return e.name===t.tagName}function fnt(e,t){return function(n,r){let i=JJ(n,"tag");const a=JJ(r??"*","range"),s=[];let o=-1;for(;++o=tee&&e.charCodeAt(t)<=bnt;)u=u*10+(e.charCodeAt(t)-tee),t++;return t===l?null:u}function o(){for(;ta<=n;if(t===0)return a=>a===n;if(t===1)return n<0?nee.trueFunc:a=>a>=n;const r=Math.abs(t),i=(n%r+r)%r;return t>1?a=>a>=n&&a%r===i:a=>a<=n&&a%r===i}function ree(e){return Ont(ynt(e))}const iee={}.hasOwnProperty;function BQ(e,t){const n=t||{};function r(i,...a){let s=r.invalid;const o=r.handlers;if(i&&iee.call(i,e)){const l=String(i[e]);s=iee.call(o,l)?o[l]:r.unknown}if(s)return s.call(this,i,...a)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const Snt=ree.default||ree,Ent=BQ("name",{handlers:{"any-link":wnt,blank:Tnt,checked:xnt,dir:knt,disabled:S0e,empty:Ant,enabled:_nt,"first-child":Cnt,"first-of-type":Rnt,has:Int,is:E0e,lang:Dnt,"last-child":Pnt,"last-of-type":Lnt,not:Mnt,"nth-child":$nt,"nth-last-child":Fnt,"nth-last-of-type":Bnt,"nth-of-type":Unt,"only-child":znt,"only-of-type":jnt,optional:Hnt,"read-only":Qnt,"read-write":w0e,required:T0e,root:Wnt,scope:Vnt},invalid:Nnt,unknown:qnt});function wnt(e,t){return(t.tagName==="a"||t.tagName==="area"||t.tagName==="link")&&_1(t,"href")}function Yf(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function Tnt(e,t){return!x0e(t,n);function n(r){return r.type==="element"||r.type==="text"&&!O0e(r)}}function xnt(e,t){return t.tagName==="input"||t.tagName==="menuitem"?!!((t.properties.type==="checkbox"||t.properties.type==="radio")&&_1(t,"checked")):t.tagName==="option"?_1(t,"selected"):!1}function knt(e,t,n,r,i){return e.argument,e.argument.type,i.direction===e.argument.value}function S0e(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")&&_1(t,"disabled")}function Ant(e,t){return!x0e(t,n);function n(r){return r.type==="element"||r.type==="text"}}function _nt(e,t){return!S0e(e,t)}function Cnt(e,t,n,r,i){return Yf(i,e),i.elementIndex===0}function Rnt(e,t,n,r,i){return Yf(i,e),i.typeIndex===0}function dI(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=Snt(n.a+"n+"+n.b),e._cachedFn=t}return t}function Int(e,t,n,r,i){e.argument,e.argument.type;const a={...i,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return UQ(a,{type:"root",children:t.children}),a.results.length>0}function Nnt(){}function E0e(e,t,n,r,i){e.argument,e.argument.type;const a={...i,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return UQ(a,t),a.results[0]===t}function Dnt(e,t,n,r,i){return e.argument,e.argument.type,i.language!==""&&i.language!==void 0&&hnt(i.language,Gw(e.argument.value)).length>0}function Pnt(e,t,n,r,i){return Yf(i,e),!!(i.elementCount&&i.elementIndex===i.elementCount-1)}function Lnt(e,t,n,r,i){return Yf(i,e),typeof i.typeIndex=="number"&&typeof i.typeCount=="number"&&i.typeIndex===i.typeCount-1}function Mnt(e,t,n,r,i){return!E0e(e,t,n,r,i)}function $nt(e,t,n,r,i){const a=dI(e);return Yf(i,e),typeof i.elementIndex=="number"&&a(i.elementIndex)}function Fnt(e,t,n,r,i){const a=dI(e);return Yf(i,e),!!(typeof i.elementCount=="number"&&typeof i.elementIndex=="number"&&a(i.elementCount-i.elementIndex-1))}function Bnt(e,t,n,r,i){const a=dI(e);return Yf(i,e),typeof i.typeCount=="number"&&typeof i.typeIndex=="number"&&a(i.typeCount-1-i.typeIndex)}function Unt(e,t,n,r,i){const a=dI(e);return Yf(i,e),typeof i.typeIndex=="number"&&a(i.typeIndex)}function znt(e,t,n,r,i){return Yf(i,e),i.elementCount===1}function jnt(e,t,n,r,i){return Yf(i,e),i.typeCount===1}function Hnt(e,t){return!T0e(e,t)}function Qnt(e,t,n,r,i){return!w0e(e,t,n,r,i)}function w0e(e,t,n,r,i){return t.tagName==="input"||t.tagName==="textarea"?!_1(t,"readOnly")&&!_1(t,"disabled"):!!i.editableOrEditingHost}function T0e(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&_1(t,"required")}function Wnt(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 Vnt(e,t,n,r,i){return i.scopeElements.includes(t)}function x0e(e,t){const n=e.children;let r=-1;for(;++r"?"directChild":"descendant";GD(a,u,l)}else e.found=!0,e.results.includes(n)||e.results.push(n)}o.combinator===void 0?GD(a,"descendant",o):o.combinator==="~"&&GD(a,"generalSibling",o)}return a}function v_(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:Ynt}function aee(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 k0e(e,t,n,r,i,a){let s={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const o=ant(e,n);if(n.type==="element"){let l=e.rootQuery.rules;i&&i!==a&&(l=e.rootQuery.rules.filter(u=>u.combinator===void 0||u.combinator===">"&&i===a)),s=Xnt(e,v_(t,l),n,r,i)}return"children"in n&&!e.shallow&&!(e.one&&e.found)&&Znt(e,s,n,a),o(),s}function Knt(e,t,n){const r=Jnt(e,t);return UQ(r,t||void 0),r.results}function Jnt(e,t,n){return{direction:"ltr",editableOrEditingHost:!1,elementCount:void 0,elementIndex:void 0,found:!1,language:void 0,one:!1,results:[],rootQuery:tnt(e),schema:W1,scopeElements:t?t.type==="root"?t.children:[t]:[],shallow:!1,typeIndex:void 0,typeCount:void 0}}const zQ=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=zQ(n.children))}),t),ert=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const i=Knt(t,r);i&&i.length>0&&So(r,i,(a,s,o)=>{n(a,s,o)});return}So(r,(i,a,s)=>{n(i,a,s)})}}},trt=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),nrt=(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]}},A0e=(e=[],t,n,r)=>{let i=t;for(;i/,"$2")||"")?void 0:r?A0e(e,i,"pre",r)?void 0:(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a):(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a)}},see=({value:e=""})=>{const t=trt(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},oee=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},rrt=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{So(r,"element",(i,a,s)=>{if(n&&i.tagName==="pre"&&i&&Array.isArray(i.children)&&s&&Array.isArray(s.children)&&s.children.length>1){const o=i.children[0];if(o&&o.tagName==="code"&&typeof a=="number"){const l=nrt(s.children,a);if(l){const u=see(l);Object.keys(u).length>0&&(i.properties={...i.properties,"data-type":"rehyp"},o.properties=oee(o.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)&&s&&Array.isArray(s.children)&&typeof a=="number"){const o=A0e(s.children,a,"",n);if(o){const l=see(o);Object.keys(l).length>0&&(i.properties=oee(i.properties,l,t))}}})}},_0e=-1,fI=0,TC=1,xC=2,jQ=3,HQ=4,QQ=5,WQ=6,C0e=7,R0e=8,lee=typeof self=="object"?self:globalThis,irt=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,s]=t[i];switch(a){case fI:case _0e:return n(s,i);case TC:{const o=n([],i);for(const l of s)o.push(r(l));return o}case xC:{const o=n({},i);for(const[l,u]of s)o[r(l)]=r(u);return o}case jQ:return n(new Date(s),i);case HQ:{const{source:o,flags:l}=s;return n(new RegExp(o,l),i)}case QQ:{const o=n(new Map,i);for(const[l,u]of s)o.set(r(l),r(u));return o}case WQ:{const o=n(new Set,i);for(const l of s)o.add(r(l));return o}case C0e:{const{name:o,message:l}=s;return n(new lee[o](l),i)}case R0e:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i)}return n(new lee[a](s),i)};return r},uee=e=>irt(new Map,e)(0),$b="",{toString:art}={},{keys:srt}=Object,OE=e=>{const t=typeof e;if(t!=="object"||!e)return[fI,t];const n=art.call(e).slice(8,-1);switch(n){case"Array":return[TC,$b];case"Object":return[xC,$b];case"Date":return[jQ,$b];case"RegExp":return[HQ,$b];case"Map":return[QQ,$b];case"Set":return[WQ,$b]}return n.includes("Array")?[TC,n]:n.includes("Error")?[C0e,n]:[xC,n]},n4=([e,t])=>e===fI&&(t==="function"||t==="symbol"),ort=(e,t,n,r)=>{const i=(s,o)=>{const l=r.push(s)-1;return n.set(o,l),l},a=s=>{if(n.has(s))return n.get(s);let[o,l]=OE(s);switch(o){case fI:{let d=s;switch(l){case"bigint":o=R0e,d=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);d=null;break;case"undefined":return i([_0e],s)}return i([o,d],s)}case TC:{if(l)return i([l,[...s]],s);const d=[],f=i([o,d],s);for(const p of s)d.push(a(p));return f}case xC:{if(l)switch(l){case"BigInt":return i([l,s.toString()],s);case"Boolean":case"Number":case"String":return i([l,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const d=[],f=i([o,d],s);for(const p of srt(s))(e||!n4(OE(s[p])))&&d.push([a(p),a(s[p])]);return f}case jQ:return i([o,s.toISOString()],s);case HQ:{const{source:d,flags:f}=s;return i([o,{source:d,flags:f}],s)}case QQ:{const d=[],f=i([o,d],s);for(const[p,g]of s)(e||!(n4(OE(p))||n4(OE(g))))&&d.push([a(p),a(g)]);return f}case WQ:{const d=[],f=i([o,d],s);for(const p of s)(e||!n4(OE(p)))&&d.push(a(p));return f}}const{message:u}=s;return i([o,{name:l,message:u}],s)};return a},cee=(e,{json:t,lossy:n}={})=>{const r=[];return ort(!(t||n),!!t,new Map,r)(e),r},Ed=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?uee(cee(e,t)):structuredClone(e):(e,t)=>uee(cee(e,t)),dee=/[#.]/g;function lrt(e,t){const n=e||"",r={};let i=0,a,s;for(;i-1&&a<=t.length){let s=0;for(;;){let o=n[s];if(o===void 0){const l=hee(t,n[s-1]);o=l===-1?t.length+1:l+1,n[s]=o}if(o>a)return{line:s+1,column:a-(s>0?n[s-1]:0)+1,offset:a};s++}}}function i(a){if(a&&typeof a.line=="number"&&typeof a.column=="number"&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;n.length1?n[a.line-2]:0)+a.column-1;if(s=55296&&e<=57343}function Nrt(e){return e>=56320&&e<=57343}function Drt(e,t){return(e-55296)*1024+9216+t}function F0e(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function B0e(e){return e>=64976&&e<=65007||Irt.has(e)}var Ze;(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"})(Ze=Ze||(Ze={}));const Prt=65536;class Lrt{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=Prt,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(Nrt(n))return this.pos++,this._addGap(),Drt(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,ce.EOF;return this._err(Ze.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,ce.EOF;const r=this.html.charCodeAt(n);return r===ce.CARRIAGE_RETURN?ce.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,ce.EOF;let t=this.html.charCodeAt(this.pos);return t===ce.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,ce.LINE_FEED):t===ce.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,$0e(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===ce.LINE_FEED||t===ce.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){F0e(t)?this._err(Ze.controlCharacterInInputStream):B0e(t)&&this._err(Ze.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 a0=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))),Mrt=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var YD;const $rt=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]]),Frt=(YD=String.fromCodePoint)!==null&&YD!==void 0?YD: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 Brt(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=$rt.get(e))!==null&&t!==void 0?t:e}var Es;(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"})(Es||(Es={}));const Urt=32;var Tf;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Tf||(Tf={}));function YL(e){return e>=Es.ZERO&&e<=Es.NINE}function zrt(e){return e>=Es.UPPER_A&&e<=Es.UPPER_F||e>=Es.LOWER_A&&e<=Es.LOWER_F}function jrt(e){return e>=Es.UPPER_A&&e<=Es.UPPER_Z||e>=Es.LOWER_A&&e<=Es.LOWER_Z||YL(e)}function Hrt(e){return e===Es.EQUALS||jrt(e)}var vs;(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"})(vs||(vs={}));var Ig;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Ig||(Ig={}));class Qrt{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=vs.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Ig.Strict}startEntity(t){this.decodeMode=t,this.state=vs.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case vs.EntityStart:return t.charCodeAt(n)===Es.NUM?(this.state=vs.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=vs.NamedEntity,this.stateNamedEntity(t,n));case vs.NumericStart:return this.stateNumericStart(t,n);case vs.NumericDecimal:return this.stateNumericDecimal(t,n);case vs.NumericHex:return this.stateNumericHex(t,n);case vs.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|Urt)===Es.LOWER_X?(this.state=vs.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=vs.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const a=r-n;this.result=this.result*Math.pow(i,a)+parseInt(t.substr(n,a),i),this.consumed+=a}}stateNumericHex(t,n){const r=n;for(;n>14;for(;n>14,a!==0){if(s===Es.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==Ig.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]&Tf.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]&~Tf.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case vs.NamedEntity:return this.result!==0&&(this.decodeMode!==Ig.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case vs.NumericDecimal:return this.emitNumericEntity(0,2);case vs.NumericHex:return this.emitNumericEntity(0,3);case vs.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case vs.EntityStart:return 0}}}function z0e(e){let t="";const n=new Qrt(e,r=>t+=Frt(r));return function(i,a){let s=0,o=0;for(;(o=i.indexOf("&",o))>=0;){t+=i.slice(s,o),n.startEntity(a);const u=n.write(i,o+1);if(u<0){s=o+n.end();break}s=o+u,o=u===0?s+1:s}const l=t+i.slice(s);return t="",l}}function j0e(e,t,n,r){const i=(t&Tf.BRANCH_LENGTH)>>7,a=t&Tf.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){const l=r-a;return l<0||l>=i?-1:e[n+l]-1}let s=n,o=s+i-1;for(;s<=o;){const l=s+o>>>1,u=e[l];if(ur)o=l-1;else return e[l+i]}return-1}z0e(a0);z0e(Mrt);var ht;(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/"})(ht=ht||(ht={}));var K0;(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"})(K0=K0||(K0={}));var du;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(du=du||(du={}));var He;(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"})(He=He||(He={}));var C;(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"})(C=C||(C={}));const Wrt=new Map([[He.A,C.A],[He.ADDRESS,C.ADDRESS],[He.ANNOTATION_XML,C.ANNOTATION_XML],[He.APPLET,C.APPLET],[He.AREA,C.AREA],[He.ARTICLE,C.ARTICLE],[He.ASIDE,C.ASIDE],[He.B,C.B],[He.BASE,C.BASE],[He.BASEFONT,C.BASEFONT],[He.BGSOUND,C.BGSOUND],[He.BIG,C.BIG],[He.BLOCKQUOTE,C.BLOCKQUOTE],[He.BODY,C.BODY],[He.BR,C.BR],[He.BUTTON,C.BUTTON],[He.CAPTION,C.CAPTION],[He.CENTER,C.CENTER],[He.CODE,C.CODE],[He.COL,C.COL],[He.COLGROUP,C.COLGROUP],[He.DD,C.DD],[He.DESC,C.DESC],[He.DETAILS,C.DETAILS],[He.DIALOG,C.DIALOG],[He.DIR,C.DIR],[He.DIV,C.DIV],[He.DL,C.DL],[He.DT,C.DT],[He.EM,C.EM],[He.EMBED,C.EMBED],[He.FIELDSET,C.FIELDSET],[He.FIGCAPTION,C.FIGCAPTION],[He.FIGURE,C.FIGURE],[He.FONT,C.FONT],[He.FOOTER,C.FOOTER],[He.FOREIGN_OBJECT,C.FOREIGN_OBJECT],[He.FORM,C.FORM],[He.FRAME,C.FRAME],[He.FRAMESET,C.FRAMESET],[He.H1,C.H1],[He.H2,C.H2],[He.H3,C.H3],[He.H4,C.H4],[He.H5,C.H5],[He.H6,C.H6],[He.HEAD,C.HEAD],[He.HEADER,C.HEADER],[He.HGROUP,C.HGROUP],[He.HR,C.HR],[He.HTML,C.HTML],[He.I,C.I],[He.IMG,C.IMG],[He.IMAGE,C.IMAGE],[He.INPUT,C.INPUT],[He.IFRAME,C.IFRAME],[He.KEYGEN,C.KEYGEN],[He.LABEL,C.LABEL],[He.LI,C.LI],[He.LINK,C.LINK],[He.LISTING,C.LISTING],[He.MAIN,C.MAIN],[He.MALIGNMARK,C.MALIGNMARK],[He.MARQUEE,C.MARQUEE],[He.MATH,C.MATH],[He.MENU,C.MENU],[He.META,C.META],[He.MGLYPH,C.MGLYPH],[He.MI,C.MI],[He.MO,C.MO],[He.MN,C.MN],[He.MS,C.MS],[He.MTEXT,C.MTEXT],[He.NAV,C.NAV],[He.NOBR,C.NOBR],[He.NOFRAMES,C.NOFRAMES],[He.NOEMBED,C.NOEMBED],[He.NOSCRIPT,C.NOSCRIPT],[He.OBJECT,C.OBJECT],[He.OL,C.OL],[He.OPTGROUP,C.OPTGROUP],[He.OPTION,C.OPTION],[He.P,C.P],[He.PARAM,C.PARAM],[He.PLAINTEXT,C.PLAINTEXT],[He.PRE,C.PRE],[He.RB,C.RB],[He.RP,C.RP],[He.RT,C.RT],[He.RTC,C.RTC],[He.RUBY,C.RUBY],[He.S,C.S],[He.SCRIPT,C.SCRIPT],[He.SECTION,C.SECTION],[He.SELECT,C.SELECT],[He.SOURCE,C.SOURCE],[He.SMALL,C.SMALL],[He.SPAN,C.SPAN],[He.STRIKE,C.STRIKE],[He.STRONG,C.STRONG],[He.STYLE,C.STYLE],[He.SUB,C.SUB],[He.SUMMARY,C.SUMMARY],[He.SUP,C.SUP],[He.TABLE,C.TABLE],[He.TBODY,C.TBODY],[He.TEMPLATE,C.TEMPLATE],[He.TEXTAREA,C.TEXTAREA],[He.TFOOT,C.TFOOT],[He.TD,C.TD],[He.TH,C.TH],[He.THEAD,C.THEAD],[He.TITLE,C.TITLE],[He.TR,C.TR],[He.TRACK,C.TRACK],[He.TT,C.TT],[He.U,C.U],[He.UL,C.UL],[He.SVG,C.SVG],[He.VAR,C.VAR],[He.WBR,C.WBR],[He.XMP,C.XMP]]);function RO(e){var t;return(t=Wrt.get(e))!==null&&t!==void 0?t:C.UNKNOWN}const It=C,Vrt={[ht.HTML]:new Set([It.ADDRESS,It.APPLET,It.AREA,It.ARTICLE,It.ASIDE,It.BASE,It.BASEFONT,It.BGSOUND,It.BLOCKQUOTE,It.BODY,It.BR,It.BUTTON,It.CAPTION,It.CENTER,It.COL,It.COLGROUP,It.DD,It.DETAILS,It.DIR,It.DIV,It.DL,It.DT,It.EMBED,It.FIELDSET,It.FIGCAPTION,It.FIGURE,It.FOOTER,It.FORM,It.FRAME,It.FRAMESET,It.H1,It.H2,It.H3,It.H4,It.H5,It.H6,It.HEAD,It.HEADER,It.HGROUP,It.HR,It.HTML,It.IFRAME,It.IMG,It.INPUT,It.LI,It.LINK,It.LISTING,It.MAIN,It.MARQUEE,It.MENU,It.META,It.NAV,It.NOEMBED,It.NOFRAMES,It.NOSCRIPT,It.OBJECT,It.OL,It.P,It.PARAM,It.PLAINTEXT,It.PRE,It.SCRIPT,It.SECTION,It.SELECT,It.SOURCE,It.STYLE,It.SUMMARY,It.TABLE,It.TBODY,It.TD,It.TEMPLATE,It.TEXTAREA,It.TFOOT,It.TH,It.THEAD,It.TITLE,It.TR,It.TRACK,It.UL,It.WBR,It.XMP]),[ht.MATHML]:new Set([It.MI,It.MO,It.MN,It.MS,It.MTEXT,It.ANNOTATION_XML]),[ht.SVG]:new Set([It.TITLE,It.FOREIGN_OBJECT,It.DESC]),[ht.XLINK]:new Set,[ht.XML]:new Set,[ht.XMLNS]:new Set};function H0e(e){return e===It.H1||e===It.H2||e===It.H3||e===It.H4||e===It.H5||e===It.H6}He.STYLE,He.SCRIPT,He.XMP,He.IFRAME,He.NOEMBED,He.NOFRAMES,He.PLAINTEXT;const qrt=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 pe;(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"})(pe||(pe={}));const Pa={DATA:pe.DATA,RCDATA:pe.RCDATA,RAWTEXT:pe.RAWTEXT,SCRIPT_DATA:pe.SCRIPT_DATA,PLAINTEXT:pe.PLAINTEXT,CDATA_SECTION:pe.CDATA_SECTION};function T2(e){return e>=ce.DIGIT_0&&e<=ce.DIGIT_9}function QE(e){return e>=ce.LATIN_CAPITAL_A&&e<=ce.LATIN_CAPITAL_Z}function Grt(e){return e>=ce.LATIN_SMALL_A&&e<=ce.LATIN_SMALL_Z}function s0(e){return Grt(e)||QE(e)}function ZL(e){return s0(e)||T2(e)}function Q0e(e){return e>=ce.LATIN_CAPITAL_A&&e<=ce.LATIN_CAPITAL_F}function W0e(e){return e>=ce.LATIN_SMALL_A&&e<=ce.LATIN_SMALL_F}function Yrt(e){return T2(e)||Q0e(e)||W0e(e)}function r4(e){return e+32}function V0e(e){return e===ce.SPACE||e===ce.LINE_FEED||e===ce.TABULATION||e===ce.FORM_FEED}function Zrt(e){return e===ce.EQUALS_SIGN||ZL(e)}function mee(e){return V0e(e)||e===ce.SOLIDUS||e===ce.GREATER_THAN_SIGN}class Xrt{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=pe.DATA,this.returnState=pe.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Lrt(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(Ze.endTagWithAttributes),t.selfClosing&&this._err(Ze.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case cr.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case cr.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case cr.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:cr.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type!==t)this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();else{this.currentCharacterToken.chars+=n;return}this._createCharacterToken(t,n)}_emitCodePoint(t){const n=V0e(t)?cr.WHITESPACE_CHARACTER:t===ce.NULL?cr.NULL_CHARACTER:cr.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(cr.CHARACTER,t)}_matchNamedCharacterReference(t){let n=null,r=0,i=!1;for(let a=0,s=a0[0];a>=0&&(a=j0e(a0,s,a+1,t),!(a<0));t=this._consume()){r+=1,s=a0[a];const o=s&Tf.VALUE_LENGTH;if(o){const l=(o>>14)-1;if(t!==ce.SEMICOLON&&this._isCharacterReferenceInAttribute()&&Zrt(this.preprocessor.peek(1))?(n=[ce.AMPERSAND],a+=l):(n=l===0?[a0[a]&~Tf.VALUE_LENGTH]:l===1?[a0[++a]]:[a0[++a],a0[++a]],r=0,i=t!==ce.SEMICOLON),l===0){this._consume();break}}}return this._unconsume(r),i&&!this.preprocessor.endOfChunkHit&&this._err(Ze.missingSemicolonAfterCharacterReference),this._unconsume(1),n}_isCharacterReferenceInAttribute(){return this.returnState===pe.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===pe.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===pe.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case pe.DATA:{this._stateData(t);break}case pe.RCDATA:{this._stateRcdata(t);break}case pe.RAWTEXT:{this._stateRawtext(t);break}case pe.SCRIPT_DATA:{this._stateScriptData(t);break}case pe.PLAINTEXT:{this._statePlaintext(t);break}case pe.TAG_OPEN:{this._stateTagOpen(t);break}case pe.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case pe.TAG_NAME:{this._stateTagName(t);break}case pe.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case pe.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case pe.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case pe.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case pe.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case pe.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case pe.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case pe.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case pe.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case pe.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case pe.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case pe.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case pe.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case pe.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case pe.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case pe.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case pe.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case pe.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case pe.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case pe.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case pe.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case pe.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case pe.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case pe.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case pe.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case pe.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case pe.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case pe.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case pe.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case pe.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case pe.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case pe.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case pe.BOGUS_COMMENT:{this._stateBogusComment(t);break}case pe.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case pe.COMMENT_START:{this._stateCommentStart(t);break}case pe.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case pe.COMMENT:{this._stateComment(t);break}case pe.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case pe.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case pe.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case pe.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case pe.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case pe.COMMENT_END:{this._stateCommentEnd(t);break}case pe.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case pe.DOCTYPE:{this._stateDoctype(t);break}case pe.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case pe.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case pe.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case pe.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case pe.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case pe.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case pe.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case pe.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case pe.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case pe.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case pe.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case pe.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case pe.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case pe.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case pe.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case pe.CDATA_SECTION:{this._stateCdataSection(t);break}case pe.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case pe.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case pe.CHARACTER_REFERENCE:{this._stateCharacterReference(t);break}case pe.NAMED_CHARACTER_REFERENCE:{this._stateNamedCharacterReference(t);break}case pe.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}case pe.NUMERIC_CHARACTER_REFERENCE:{this._stateNumericCharacterReference(t);break}case pe.HEXADEMICAL_CHARACTER_REFERENCE_START:{this._stateHexademicalCharacterReferenceStart(t);break}case pe.HEXADEMICAL_CHARACTER_REFERENCE:{this._stateHexademicalCharacterReference(t);break}case pe.DECIMAL_CHARACTER_REFERENCE:{this._stateDecimalCharacterReference(t);break}case pe.NUMERIC_CHARACTER_REFERENCE_END:{this._stateNumericCharacterReferenceEnd(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case ce.LESS_THAN_SIGN:{this.state=pe.TAG_OPEN;break}case ce.AMPERSAND:{this.returnState=pe.DATA,this.state=pe.CHARACTER_REFERENCE;break}case ce.NULL:{this._err(Ze.unexpectedNullCharacter),this._emitCodePoint(t);break}case ce.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case ce.AMPERSAND:{this.returnState=pe.RCDATA,this.state=pe.CHARACTER_REFERENCE;break}case ce.LESS_THAN_SIGN:{this.state=pe.RCDATA_LESS_THAN_SIGN;break}case ce.NULL:{this._err(Ze.unexpectedNullCharacter),this._emitChars(Zi);break}case ce.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case ce.LESS_THAN_SIGN:{this.state=pe.RAWTEXT_LESS_THAN_SIGN;break}case ce.NULL:{this._err(Ze.unexpectedNullCharacter),this._emitChars(Zi);break}case ce.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case ce.LESS_THAN_SIGN:{this.state=pe.SCRIPT_DATA_LESS_THAN_SIGN;break}case ce.NULL:{this._err(Ze.unexpectedNullCharacter),this._emitChars(Zi);break}case ce.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case ce.NULL:{this._err(Ze.unexpectedNullCharacter),this._emitChars(Zi);break}case ce.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(s0(t))this._createStartTagToken(),this.state=pe.TAG_NAME,this._stateTagName(t);else switch(t){case ce.EXCLAMATION_MARK:{this.state=pe.MARKUP_DECLARATION_OPEN;break}case ce.SOLIDUS:{this.state=pe.END_TAG_OPEN;break}case ce.QUESTION_MARK:{this._err(Ze.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=pe.BOGUS_COMMENT,this._stateBogusComment(t);break}case ce.EOF:{this._err(Ze.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(Ze.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=pe.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(s0(t))this._createEndTagToken(),this.state=pe.TAG_NAME,this._stateTagName(t);else switch(t){case ce.GREATER_THAN_SIGN:{this._err(Ze.missingEndTagName),this.state=pe.DATA;break}case ce.EOF:{this._err(Ze.eofBeforeTagName),this._emitChars("");break}case ce.NULL:{this._err(Ze.unexpectedNullCharacter),this.state=pe.SCRIPT_DATA_ESCAPED,this._emitChars(Zi);break}case ce.EOF:{this._err(Ze.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=pe.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===ce.SOLIDUS?this.state=pe.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:s0(t)?(this._emitChars("<"),this.state=pe.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=pe.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){s0(t)?(this.state=pe.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("");break}case ce.NULL:{this._err(Ze.unexpectedNullCharacter),this.state=pe.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Zi);break}case ce.EOF:{this._err(Ze.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=pe.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===ce.SOLIDUS?(this.state=pe.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=pe.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(fl.SCRIPT,!1)&&mee(this.preprocessor.peek(fl.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n1114111)this._err(Ze.characterReferenceOutsideUnicodeRange),this.charRefCode=ce.REPLACEMENT_CHARACTER;else if($0e(this.charRefCode))this._err(Ze.surrogateCharacterReference),this.charRefCode=ce.REPLACEMENT_CHARACTER;else if(B0e(this.charRefCode))this._err(Ze.noncharacterCharacterReference);else if(F0e(this.charRefCode)||this.charRefCode===ce.CARRIAGE_RETURN){this._err(Ze.controlCharacterReference);const n=qrt.get(this.charRefCode);n!==void 0&&(this.charRefCode=n)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,t)}}const q0e=new Set([C.DD,C.DT,C.LI,C.OPTGROUP,C.OPTION,C.P,C.RB,C.RP,C.RT,C.RTC]),gee=new Set([...q0e,C.CAPTION,C.COLGROUP,C.TBODY,C.TD,C.TFOOT,C.TH,C.THEAD,C.TR]),i4=new Map([[C.APPLET,ht.HTML],[C.CAPTION,ht.HTML],[C.HTML,ht.HTML],[C.MARQUEE,ht.HTML],[C.OBJECT,ht.HTML],[C.TABLE,ht.HTML],[C.TD,ht.HTML],[C.TEMPLATE,ht.HTML],[C.TH,ht.HTML],[C.ANNOTATION_XML,ht.MATHML],[C.MI,ht.MATHML],[C.MN,ht.MATHML],[C.MO,ht.MATHML],[C.MS,ht.MATHML],[C.MTEXT,ht.MATHML],[C.DESC,ht.SVG],[C.FOREIGN_OBJECT,ht.SVG],[C.TITLE,ht.SVG]]),Krt=[C.H1,C.H2,C.H3,C.H4,C.H5,C.H6],Jrt=[C.TR,C.TEMPLATE,C.HTML],eit=[C.TBODY,C.TFOOT,C.THEAD,C.TEMPLATE,C.HTML],tit=[C.TABLE,C.TEMPLATE,C.HTML],nit=[C.TD,C.TH];class rit{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=C.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===C.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===ht.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])!==ht.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(tit,ht.HTML)}clearBackToTableBodyContext(){this.clearBackTo(eit,ht.HTML)}clearBackToTableRowContext(){this.clearBackTo(Jrt,ht.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]===C.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]===C.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===ht.HTML)return!0;if(i4.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(H0e(n)&&r===ht.HTML)return!0;if(i4.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===ht.HTML)return!0;if((r===C.UL||r===C.OL)&&i===ht.HTML||i4.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===ht.HTML)return!0;if(r===C.BUTTON&&i===ht.HTML||i4.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])===ht.HTML){if(r===t)return!0;if(r===C.TABLE||r===C.TEMPLATE||r===C.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])===ht.HTML){if(n===C.TBODY||n===C.THEAD||n===C.TFOOT)return!0;if(n===C.TABLE||n===C.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])===ht.HTML){if(r===t)return!0;if(r!==C.OPTION&&r!==C.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;q0e.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;gee.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&gee.has(this.currentTagId);)this.pop()}}const ZD=3;var pd;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(pd=pd||(pd={}));const bee={type:pd.Marker};class iit{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,a=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let o=0;o[s.name,s.value]));let a=0;for(let s=0;si.get(l.name)===l.value)&&(a+=1,a>=ZD&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(bee)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:pd.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:pd.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(bee);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===pd.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===pd.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===pd.Element&&n.element===t)}}function yee(e){return{nodeName:"#text",value:e,parentNode:null}}const Gb={createDocument(){return{nodeName:"#document",mode:du.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const i=e.childNodes.find(a=>a.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Gb.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Gb.isTextNode(n)){n.value+=t;return}}Gb.appendChild(e,yee(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Gb.isTextNode(r)?r.value+=t:Gb.insertBefore(e,yee(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;re.startsWith(n))}function cit(e){return e.name===G0e&&e.publicId===null&&(e.systemId===null||e.systemId===ait)}function dit(e){if(e.name!==G0e)return du.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===sit)return du.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),lit.has(n))return du.QUIRKS;let r=t===null?oit:Y0e;if(vee(n,r))return du.QUIRKS;if(r=t===null?Z0e:uit,vee(n,r))return du.LIMITED_QUIRKS}return du.NO_QUIRKS}const Oee={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},fit="definitionurl",hit="definitionURL",pit=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])),mit=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:ht.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:ht.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:ht.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:ht.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:ht.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:ht.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:ht.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:ht.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:ht.XML}],["xml:space",{prefix:"xml",name:"space",namespace:ht.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:ht.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:ht.XMLNS}]]),git=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])),bit=new Set([C.B,C.BIG,C.BLOCKQUOTE,C.BODY,C.BR,C.CENTER,C.CODE,C.DD,C.DIV,C.DL,C.DT,C.EM,C.EMBED,C.H1,C.H2,C.H3,C.H4,C.H5,C.H6,C.HEAD,C.HR,C.I,C.IMG,C.LI,C.LISTING,C.MENU,C.META,C.NOBR,C.OL,C.P,C.PRE,C.RUBY,C.S,C.SMALL,C.SPAN,C.STRONG,C.STRIKE,C.SUB,C.SUP,C.TABLE,C.TT,C.U,C.UL,C.VAR]);function yit(e){const t=e.tagID;return t===C.FONT&&e.attrs.some(({name:r})=>r===K0.COLOR||r===K0.SIZE||r===K0.FACE)||bit.has(t)}function X0e(e){for(let t=0;t0&&this._setContextModes(t,n)}onItemPop(t,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,t,this.openElements.current),n){let a,s;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,s=this.fragmentContextID):{current:a,currentTagId:s}=this.openElements,this._setContextModes(a,s)}}_setContextModes(t,n){const r=t===this.document||this.treeAdapter.getNamespaceURI(t)===ht.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,ht.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=Ee.TEXT}switchToPlaintextParsing(){this.insertionMode=Ee.TEXT,this.originalInsertionMode=Ee.IN_BODY,this.tokenizer.state=Pa.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)===He.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==ht.HTML))switch(this.fragmentContextID){case C.TITLE:case C.TEXTAREA:{this.tokenizer.state=Pa.RCDATA;break}case C.STYLE:case C.XMP:case C.IFRAME:case C.NOEMBED:case C.NOFRAMES:case C.NOSCRIPT:{this.tokenizer.state=Pa.RAWTEXT;break}case C.SCRIPT:{this.tokenizer.state=Pa.SCRIPT_DATA;break}case C.PLAINTEXT:{this.tokenizer.state=Pa.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,ht.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,ht.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(He.HTML,ht.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,C.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const i=this.treeAdapter.getChildNodes(n),a=r?i.lastIndexOf(r):i.length,s=i[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:l,endCol:u,endOffset:d}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:l,endCol:u,endOffset:d})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,i=this.treeAdapter.getTagName(t),a=n.type===cr.END_TAG&&i===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,a)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===C.SVG&&this.treeAdapter.getTagName(n)===He.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===ht.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===C.MGLYPH||t.tagID===C.MALIGNMARK)&&!this._isIntegrationPoint(r,n,ht.HTML)}_processToken(t){switch(t.type){case cr.CHARACTER:{this.onCharacter(t);break}case cr.NULL_CHARACTER:{this.onNullCharacter(t);break}case cr.COMMENT:{this.onComment(t);break}case cr.DOCTYPE:{this.onDoctype(t);break}case cr.START_TAG:{this._processStartTag(t);break}case cr.END_TAG:{this.onEndTag(t);break}case cr.EOF:{this.onEof(t);break}case cr.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return Eit(t,i,a,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===pd.Marker||this.openElements.contains(i.element)),r=n<0?t-1:n-1;for(let i=r;i>=0;i--){const a=this.activeFormattingElements.entries[i];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Ee.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(C.P),this.openElements.popUntilTagNamePopped(C.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case C.TR:{this.insertionMode=Ee.IN_ROW;return}case C.TBODY:case C.THEAD:case C.TFOOT:{this.insertionMode=Ee.IN_TABLE_BODY;return}case C.CAPTION:{this.insertionMode=Ee.IN_CAPTION;return}case C.COLGROUP:{this.insertionMode=Ee.IN_COLUMN_GROUP;return}case C.TABLE:{this.insertionMode=Ee.IN_TABLE;return}case C.BODY:{this.insertionMode=Ee.IN_BODY;return}case C.FRAMESET:{this.insertionMode=Ee.IN_FRAMESET;return}case C.SELECT:{this._resetInsertionModeForSelect(t);return}case C.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case C.HTML:{this.insertionMode=this.headElement?Ee.AFTER_HEAD:Ee.BEFORE_HEAD;return}case C.TD:case C.TH:{if(t>0){this.insertionMode=Ee.IN_CELL;return}break}case C.HEAD:{if(t>0){this.insertionMode=Ee.IN_HEAD;return}break}}this.insertionMode=Ee.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===C.TEMPLATE)break;if(r===C.TABLE){this.insertionMode=Ee.IN_SELECT_IN_TABLE;return}}this.insertionMode=Ee.IN_SELECT}_isElementCausesFosterParenting(t){return J0e.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 C.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===ht.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case C.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 Vrt[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){nst(this,t);return}switch(this.insertionMode){case Ee.INITIAL:{SE(this,t);break}case Ee.BEFORE_HTML:{x2(this,t);break}case Ee.BEFORE_HEAD:{k2(this,t);break}case Ee.IN_HEAD:{A2(this,t);break}case Ee.IN_HEAD_NO_SCRIPT:{_2(this,t);break}case Ee.AFTER_HEAD:{C2(this,t);break}case Ee.IN_BODY:case Ee.IN_CAPTION:case Ee.IN_CELL:case Ee.IN_TEMPLATE:{tme(this,t);break}case Ee.TEXT:case Ee.IN_SELECT:case Ee.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case Ee.IN_TABLE:case Ee.IN_TABLE_BODY:case Ee.IN_ROW:{XD(this,t);break}case Ee.IN_TABLE_TEXT:{ome(this,t);break}case Ee.IN_COLUMN_GROUP:{kC(this,t);break}case Ee.AFTER_BODY:{AC(this,t);break}case Ee.AFTER_AFTER_BODY:{S_(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){tst(this,t);return}switch(this.insertionMode){case Ee.INITIAL:{SE(this,t);break}case Ee.BEFORE_HTML:{x2(this,t);break}case Ee.BEFORE_HEAD:{k2(this,t);break}case Ee.IN_HEAD:{A2(this,t);break}case Ee.IN_HEAD_NO_SCRIPT:{_2(this,t);break}case Ee.AFTER_HEAD:{C2(this,t);break}case Ee.TEXT:{this._insertCharacters(t);break}case Ee.IN_TABLE:case Ee.IN_TABLE_BODY:case Ee.IN_ROW:{XD(this,t);break}case Ee.IN_COLUMN_GROUP:{kC(this,t);break}case Ee.AFTER_BODY:{AC(this,t);break}case Ee.AFTER_AFTER_BODY:{S_(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){XL(this,t);return}switch(this.insertionMode){case Ee.INITIAL:case Ee.BEFORE_HTML:case Ee.BEFORE_HEAD:case Ee.IN_HEAD:case Ee.IN_HEAD_NO_SCRIPT:case Ee.AFTER_HEAD:case Ee.IN_BODY:case Ee.IN_TABLE:case Ee.IN_CAPTION:case Ee.IN_COLUMN_GROUP:case Ee.IN_TABLE_BODY:case Ee.IN_ROW:case Ee.IN_CELL:case Ee.IN_SELECT:case Ee.IN_SELECT_IN_TABLE:case Ee.IN_TEMPLATE:case Ee.IN_FRAMESET:case Ee.AFTER_FRAMESET:{XL(this,t);break}case Ee.IN_TABLE_TEXT:{EE(this,t);break}case Ee.AFTER_BODY:{Dit(this,t);break}case Ee.AFTER_AFTER_BODY:case Ee.AFTER_AFTER_FRAMESET:{Pit(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case Ee.INITIAL:{Lit(this,t);break}case Ee.BEFORE_HEAD:case Ee.IN_HEAD:case Ee.IN_HEAD_NO_SCRIPT:case Ee.AFTER_HEAD:{this._err(t,Ze.misplacedDoctype);break}case Ee.IN_TABLE_TEXT:{EE(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,Ze.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?rst(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case Ee.INITIAL:{SE(this,t);break}case Ee.BEFORE_HTML:{Mit(this,t);break}case Ee.BEFORE_HEAD:{Fit(this,t);break}case Ee.IN_HEAD:{Bd(this,t);break}case Ee.IN_HEAD_NO_SCRIPT:{zit(this,t);break}case Ee.AFTER_HEAD:{Hit(this,t);break}case Ee.IN_BODY:{wo(this,t);break}case Ee.IN_TABLE:{Fv(this,t);break}case Ee.IN_TABLE_TEXT:{EE(this,t);break}case Ee.IN_CAPTION:{Bat(this,t);break}case Ee.IN_COLUMN_GROUP:{XQ(this,t);break}case Ee.IN_TABLE_BODY:{mI(this,t);break}case Ee.IN_ROW:{gI(this,t);break}case Ee.IN_CELL:{jat(this,t);break}case Ee.IN_SELECT:{cme(this,t);break}case Ee.IN_SELECT_IN_TABLE:{Qat(this,t);break}case Ee.IN_TEMPLATE:{Vat(this,t);break}case Ee.AFTER_BODY:{Gat(this,t);break}case Ee.IN_FRAMESET:{Yat(this,t);break}case Ee.AFTER_FRAMESET:{Xat(this,t);break}case Ee.AFTER_AFTER_BODY:{Jat(this,t);break}case Ee.AFTER_AFTER_FRAMESET:{est(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?ist(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case Ee.INITIAL:{SE(this,t);break}case Ee.BEFORE_HTML:{$it(this,t);break}case Ee.BEFORE_HEAD:{Bit(this,t);break}case Ee.IN_HEAD:{Uit(this,t);break}case Ee.IN_HEAD_NO_SCRIPT:{jit(this,t);break}case Ee.AFTER_HEAD:{Qit(this,t);break}case Ee.IN_BODY:{pI(this,t);break}case Ee.TEXT:{Cat(this,t);break}case Ee.IN_TABLE:{Zw(this,t);break}case Ee.IN_TABLE_TEXT:{EE(this,t);break}case Ee.IN_CAPTION:{Uat(this,t);break}case Ee.IN_COLUMN_GROUP:{zat(this,t);break}case Ee.IN_TABLE_BODY:{KL(this,t);break}case Ee.IN_ROW:{ume(this,t);break}case Ee.IN_CELL:{Hat(this,t);break}case Ee.IN_SELECT:{dme(this,t);break}case Ee.IN_SELECT_IN_TABLE:{Wat(this,t);break}case Ee.IN_TEMPLATE:{qat(this,t);break}case Ee.AFTER_BODY:{hme(this,t);break}case Ee.IN_FRAMESET:{Zat(this,t);break}case Ee.AFTER_FRAMESET:{Kat(this,t);break}case Ee.AFTER_AFTER_BODY:{S_(this,t);break}}}onEof(t){switch(this.insertionMode){case Ee.INITIAL:{SE(this,t);break}case Ee.BEFORE_HTML:{x2(this,t);break}case Ee.BEFORE_HEAD:{k2(this,t);break}case Ee.IN_HEAD:{A2(this,t);break}case Ee.IN_HEAD_NO_SCRIPT:{_2(this,t);break}case Ee.AFTER_HEAD:{C2(this,t);break}case Ee.IN_BODY:case Ee.IN_TABLE:case Ee.IN_CAPTION:case Ee.IN_COLUMN_GROUP:case Ee.IN_TABLE_BODY:case Ee.IN_ROW:case Ee.IN_CELL:case Ee.IN_SELECT:case Ee.IN_SELECT_IN_TABLE:{ame(this,t);break}case Ee.TEXT:{Rat(this,t);break}case Ee.IN_TABLE_TEXT:{EE(this,t);break}case Ee.IN_TEMPLATE:{fme(this,t);break}case Ee.AFTER_BODY:case Ee.IN_FRAMESET:case Ee.AFTER_FRAMESET:case Ee.AFTER_AFTER_BODY:case Ee.AFTER_AFTER_FRAMESET:{ZQ(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===ce.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 Ee.IN_HEAD:case Ee.IN_HEAD_NO_SCRIPT:case Ee.AFTER_HEAD:case Ee.TEXT:case Ee.IN_COLUMN_GROUP:case Ee.IN_SELECT:case Ee.IN_SELECT_IN_TABLE:case Ee.IN_FRAMESET:case Ee.AFTER_FRAMESET:{this._insertCharacters(t);break}case Ee.IN_BODY:case Ee.IN_CAPTION:case Ee.IN_CELL:case Ee.IN_TEMPLATE:case Ee.AFTER_BODY:case Ee.AFTER_AFTER_BODY:case Ee.AFTER_AFTER_FRAMESET:{eme(this,t);break}case Ee.IN_TABLE:case Ee.IN_TABLE_BODY:case Ee.IN_ROW:{XD(this,t);break}case Ee.IN_TABLE_TEXT:{sme(this,t);break}}}};function Ait(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):ime(e,t),n}function _it(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 Cit(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,s=i;s!==n;a++,s=i){i=e.openElements.getCommonAncestor(s);const o=e.activeFormattingElements.getElementEntry(s),l=o&&a>=xit;!o||l?(l&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=Rit(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function Rit(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 Iit(e,t,n){const r=e.treeAdapter.getTagName(t),i=RO(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);i===C.TEMPLATE&&a===ht.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function Nit(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,i.tagID)}function YQ(e,t){for(let n=0;n=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(a);s&&!s.endTag&&e._setEndLocation(a,t)}}}}function Lit(e,t){e._setDocumentType(t);const n=t.forceQuirks?du.QUIRKS:dit(t);cit(t)||e._err(t,Ze.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=Ee.BEFORE_HTML}function SE(e,t){e._err(t,Ze.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,du.QUIRKS),e.insertionMode=Ee.BEFORE_HTML,e._processToken(t)}function Mit(e,t){t.tagID===C.HTML?(e._insertElement(t,ht.HTML),e.insertionMode=Ee.BEFORE_HEAD):x2(e,t)}function $it(e,t){const n=t.tagID;(n===C.HTML||n===C.HEAD||n===C.BODY||n===C.BR)&&x2(e,t)}function x2(e,t){e._insertFakeRootElement(),e.insertionMode=Ee.BEFORE_HEAD,e._processToken(t)}function Fit(e,t){switch(t.tagID){case C.HTML:{wo(e,t);break}case C.HEAD:{e._insertElement(t,ht.HTML),e.headElement=e.openElements.current,e.insertionMode=Ee.IN_HEAD;break}default:k2(e,t)}}function Bit(e,t){const n=t.tagID;n===C.HEAD||n===C.BODY||n===C.HTML||n===C.BR?k2(e,t):e._err(t,Ze.endTagWithoutMatchingOpenElement)}function k2(e,t){e._insertFakeElement(He.HEAD,C.HEAD),e.headElement=e.openElements.current,e.insertionMode=Ee.IN_HEAD,e._processToken(t)}function Bd(e,t){switch(t.tagID){case C.HTML:{wo(e,t);break}case C.BASE:case C.BASEFONT:case C.BGSOUND:case C.LINK:case C.META:{e._appendElement(t,ht.HTML),t.ackSelfClosing=!0;break}case C.TITLE:{e._switchToTextParsing(t,Pa.RCDATA);break}case C.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Pa.RAWTEXT):(e._insertElement(t,ht.HTML),e.insertionMode=Ee.IN_HEAD_NO_SCRIPT);break}case C.NOFRAMES:case C.STYLE:{e._switchToTextParsing(t,Pa.RAWTEXT);break}case C.SCRIPT:{e._switchToTextParsing(t,Pa.SCRIPT_DATA);break}case C.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Ee.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(Ee.IN_TEMPLATE);break}case C.HEAD:{e._err(t,Ze.misplacedStartTagForHeadElement);break}default:A2(e,t)}}function Uit(e,t){switch(t.tagID){case C.HEAD:{e.openElements.pop(),e.insertionMode=Ee.AFTER_HEAD;break}case C.BODY:case C.BR:case C.HTML:{A2(e,t);break}case C.TEMPLATE:{V1(e,t);break}default:e._err(t,Ze.endTagWithoutMatchingOpenElement)}}function V1(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==C.TEMPLATE&&e._err(t,Ze.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(C.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,Ze.endTagWithoutMatchingOpenElement)}function A2(e,t){e.openElements.pop(),e.insertionMode=Ee.AFTER_HEAD,e._processToken(t)}function zit(e,t){switch(t.tagID){case C.HTML:{wo(e,t);break}case C.BASEFONT:case C.BGSOUND:case C.HEAD:case C.LINK:case C.META:case C.NOFRAMES:case C.STYLE:{Bd(e,t);break}case C.NOSCRIPT:{e._err(t,Ze.nestedNoscriptInHead);break}default:_2(e,t)}}function jit(e,t){switch(t.tagID){case C.NOSCRIPT:{e.openElements.pop(),e.insertionMode=Ee.IN_HEAD;break}case C.BR:{_2(e,t);break}default:e._err(t,Ze.endTagWithoutMatchingOpenElement)}}function _2(e,t){const n=t.type===cr.EOF?Ze.openElementsLeftAfterEof:Ze.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=Ee.IN_HEAD,e._processToken(t)}function Hit(e,t){switch(t.tagID){case C.HTML:{wo(e,t);break}case C.BODY:{e._insertElement(t,ht.HTML),e.framesetOk=!1,e.insertionMode=Ee.IN_BODY;break}case C.FRAMESET:{e._insertElement(t,ht.HTML),e.insertionMode=Ee.IN_FRAMESET;break}case C.BASE:case C.BASEFONT:case C.BGSOUND:case C.LINK:case C.META:case C.NOFRAMES:case C.SCRIPT:case C.STYLE:case C.TEMPLATE:case C.TITLE:{e._err(t,Ze.abandonedHeadElementChild),e.openElements.push(e.headElement,C.HEAD),Bd(e,t),e.openElements.remove(e.headElement);break}case C.HEAD:{e._err(t,Ze.misplacedStartTagForHeadElement);break}default:C2(e,t)}}function Qit(e,t){switch(t.tagID){case C.BODY:case C.HTML:case C.BR:{C2(e,t);break}case C.TEMPLATE:{V1(e,t);break}default:e._err(t,Ze.endTagWithoutMatchingOpenElement)}}function C2(e,t){e._insertFakeElement(He.BODY,C.BODY),e.insertionMode=Ee.IN_BODY,hI(e,t)}function hI(e,t){switch(t.type){case cr.CHARACTER:{tme(e,t);break}case cr.WHITESPACE_CHARACTER:{eme(e,t);break}case cr.COMMENT:{XL(e,t);break}case cr.START_TAG:{wo(e,t);break}case cr.END_TAG:{pI(e,t);break}case cr.EOF:{ame(e,t);break}}}function eme(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function tme(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Wit(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Vit(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function qit(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,ht.HTML),e.insertionMode=Ee.IN_FRAMESET)}function Git(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,ht.HTML)}function Yit(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),H0e(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,ht.HTML)}function Zit(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,ht.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Xit(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,ht.HTML),n||(e.formElement=e.openElements.current))}function Kit(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===C.LI&&i===C.LI||(n===C.DD||n===C.DT)&&(i===C.DD||i===C.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==C.ADDRESS&&i!==C.DIV&&i!==C.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,ht.HTML)}function Jit(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,ht.HTML),e.tokenizer.state=Pa.PLAINTEXT}function eat(e,t){e.openElements.hasInScope(C.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(C.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,ht.HTML),e.framesetOk=!1}function tat(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(He.A);n&&(YQ(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,ht.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function nat(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ht.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function rat(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(C.NOBR)&&(YQ(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,ht.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function iat(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ht.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function aat(e,t){e.treeAdapter.getDocumentMode(e.document)!==du.QUIRKS&&e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,ht.HTML),e.framesetOk=!1,e.insertionMode=Ee.IN_TABLE}function nme(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ht.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function rme(e){const t=U0e(e,K0.TYPE);return t!=null&&t.toLowerCase()===wit}function sat(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ht.HTML),rme(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function oat(e,t){e._appendElement(t,ht.HTML),t.ackSelfClosing=!0}function lat(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._appendElement(t,ht.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function uat(e,t){t.tagName=He.IMG,t.tagID=C.IMG,nme(e,t)}function cat(e,t){e._insertElement(t,ht.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Pa.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Ee.TEXT}function dat(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Pa.RAWTEXT)}function fat(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Pa.RAWTEXT)}function wee(e,t){e._switchToTextParsing(t,Pa.RAWTEXT)}function hat(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ht.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===Ee.IN_TABLE||e.insertionMode===Ee.IN_CAPTION||e.insertionMode===Ee.IN_TABLE_BODY||e.insertionMode===Ee.IN_ROW||e.insertionMode===Ee.IN_CELL?Ee.IN_SELECT_IN_TABLE:Ee.IN_SELECT}function pat(e,t){e.openElements.currentTagId===C.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,ht.HTML)}function mat(e,t){e.openElements.hasInScope(C.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,ht.HTML)}function gat(e,t){e.openElements.hasInScope(C.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(C.RTC),e._insertElement(t,ht.HTML)}function bat(e,t){e._reconstructActiveFormattingElements(),X0e(t),GQ(t),t.selfClosing?e._appendElement(t,ht.MATHML):e._insertElement(t,ht.MATHML),t.ackSelfClosing=!0}function yat(e,t){e._reconstructActiveFormattingElements(),K0e(t),GQ(t),t.selfClosing?e._appendElement(t,ht.SVG):e._insertElement(t,ht.SVG),t.ackSelfClosing=!0}function Tee(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ht.HTML)}function wo(e,t){switch(t.tagID){case C.I:case C.S:case C.B:case C.U:case C.EM:case C.TT:case C.BIG:case C.CODE:case C.FONT:case C.SMALL:case C.STRIKE:case C.STRONG:{nat(e,t);break}case C.A:{tat(e,t);break}case C.H1:case C.H2:case C.H3:case C.H4:case C.H5:case C.H6:{Yit(e,t);break}case C.P:case C.DL:case C.OL:case C.UL:case C.DIV:case C.DIR:case C.NAV:case C.MAIN:case C.MENU:case C.ASIDE:case C.CENTER:case C.FIGURE:case C.FOOTER:case C.HEADER:case C.HGROUP:case C.DIALOG:case C.DETAILS:case C.ADDRESS:case C.ARTICLE:case C.SECTION:case C.SUMMARY:case C.FIELDSET:case C.BLOCKQUOTE:case C.FIGCAPTION:{Git(e,t);break}case C.LI:case C.DD:case C.DT:{Kit(e,t);break}case C.BR:case C.IMG:case C.WBR:case C.AREA:case C.EMBED:case C.KEYGEN:{nme(e,t);break}case C.HR:{lat(e,t);break}case C.RB:case C.RTC:{mat(e,t);break}case C.RT:case C.RP:{gat(e,t);break}case C.PRE:case C.LISTING:{Zit(e,t);break}case C.XMP:{dat(e,t);break}case C.SVG:{yat(e,t);break}case C.HTML:{Wit(e,t);break}case C.BASE:case C.LINK:case C.META:case C.STYLE:case C.TITLE:case C.SCRIPT:case C.BGSOUND:case C.BASEFONT:case C.TEMPLATE:{Bd(e,t);break}case C.BODY:{Vit(e,t);break}case C.FORM:{Xit(e,t);break}case C.NOBR:{rat(e,t);break}case C.MATH:{bat(e,t);break}case C.TABLE:{aat(e,t);break}case C.INPUT:{sat(e,t);break}case C.PARAM:case C.TRACK:case C.SOURCE:{oat(e,t);break}case C.IMAGE:{uat(e,t);break}case C.BUTTON:{eat(e,t);break}case C.APPLET:case C.OBJECT:case C.MARQUEE:{iat(e,t);break}case C.IFRAME:{fat(e,t);break}case C.SELECT:{hat(e,t);break}case C.OPTION:case C.OPTGROUP:{pat(e,t);break}case C.NOEMBED:{wee(e,t);break}case C.FRAMESET:{qit(e,t);break}case C.TEXTAREA:{cat(e,t);break}case C.NOSCRIPT:{e.options.scriptingEnabled?wee(e,t):Tee(e,t);break}case C.PLAINTEXT:{Jit(e,t);break}case C.COL:case C.TH:case C.TD:case C.TR:case C.HEAD:case C.FRAME:case C.TBODY:case C.TFOOT:case C.THEAD:case C.CAPTION:case C.COLGROUP:break;default:Tee(e,t)}}function vat(e,t){if(e.openElements.hasInScope(C.BODY)&&(e.insertionMode=Ee.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function Oat(e,t){e.openElements.hasInScope(C.BODY)&&(e.insertionMode=Ee.AFTER_BODY,hme(e,t))}function Sat(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function Eat(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(C.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(C.FORM):n&&e.openElements.remove(n))}function wat(e){e.openElements.hasInButtonScope(C.P)||e._insertFakeElement(He.P,C.P),e._closePElement()}function Tat(e){e.openElements.hasInListItemScope(C.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(C.LI),e.openElements.popUntilTagNamePopped(C.LI))}function xat(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function kat(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Aat(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function _at(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(He.BR,C.BR),e.openElements.pop(),e.framesetOk=!1}function ime(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const a=e.openElements.items[i],s=e.openElements.tagIDs[i];if(r===s&&(r!==C.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(a,s))break}}function pI(e,t){switch(t.tagID){case C.A:case C.B:case C.I:case C.S:case C.U:case C.EM:case C.TT:case C.BIG:case C.CODE:case C.FONT:case C.NOBR:case C.SMALL:case C.STRIKE:case C.STRONG:{YQ(e,t);break}case C.P:{wat(e);break}case C.DL:case C.UL:case C.OL:case C.DIR:case C.DIV:case C.NAV:case C.PRE:case C.MAIN:case C.MENU:case C.ASIDE:case C.BUTTON:case C.CENTER:case C.FIGURE:case C.FOOTER:case C.HEADER:case C.HGROUP:case C.DIALOG:case C.ADDRESS:case C.ARTICLE:case C.DETAILS:case C.SECTION:case C.SUMMARY:case C.LISTING:case C.FIELDSET:case C.BLOCKQUOTE:case C.FIGCAPTION:{Sat(e,t);break}case C.LI:{Tat(e);break}case C.DD:case C.DT:{xat(e,t);break}case C.H1:case C.H2:case C.H3:case C.H4:case C.H5:case C.H6:{kat(e);break}case C.BR:{_at(e);break}case C.BODY:{vat(e,t);break}case C.HTML:{Oat(e,t);break}case C.FORM:{Eat(e);break}case C.APPLET:case C.OBJECT:case C.MARQUEE:{Aat(e,t);break}case C.TEMPLATE:{V1(e,t);break}default:ime(e,t)}}function ame(e,t){e.tmplInsertionModeStack.length>0?fme(e,t):ZQ(e,t)}function Cat(e,t){var n;t.tagID===C.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Rat(e,t){e._err(t,Ze.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function XD(e,t){if(J0e.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Ee.IN_TABLE_TEXT,t.type){case cr.CHARACTER:{ome(e,t);break}case cr.WHITESPACE_CHARACTER:{sme(e,t);break}}else lx(e,t)}function Iat(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,ht.HTML),e.insertionMode=Ee.IN_CAPTION}function Nat(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ht.HTML),e.insertionMode=Ee.IN_COLUMN_GROUP}function Dat(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(He.COLGROUP,C.COLGROUP),e.insertionMode=Ee.IN_COLUMN_GROUP,XQ(e,t)}function Pat(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ht.HTML),e.insertionMode=Ee.IN_TABLE_BODY}function Lat(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(He.TBODY,C.TBODY),e.insertionMode=Ee.IN_TABLE_BODY,mI(e,t)}function Mat(e,t){e.openElements.hasInTableScope(C.TABLE)&&(e.openElements.popUntilTagNamePopped(C.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function $at(e,t){rme(t)?e._appendElement(t,ht.HTML):lx(e,t),t.ackSelfClosing=!0}function Fat(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,ht.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Fv(e,t){switch(t.tagID){case C.TD:case C.TH:case C.TR:{Lat(e,t);break}case C.STYLE:case C.SCRIPT:case C.TEMPLATE:{Bd(e,t);break}case C.COL:{Dat(e,t);break}case C.FORM:{Fat(e,t);break}case C.TABLE:{Mat(e,t);break}case C.TBODY:case C.TFOOT:case C.THEAD:{Pat(e,t);break}case C.INPUT:{$at(e,t);break}case C.CAPTION:{Iat(e,t);break}case C.COLGROUP:{Nat(e,t);break}default:lx(e,t)}}function Zw(e,t){switch(t.tagID){case C.TABLE:{e.openElements.hasInTableScope(C.TABLE)&&(e.openElements.popUntilTagNamePopped(C.TABLE),e._resetInsertionMode());break}case C.TEMPLATE:{V1(e,t);break}case C.BODY:case C.CAPTION:case C.COL:case C.COLGROUP:case C.HTML:case C.TBODY:case C.TD:case C.TFOOT:case C.TH:case C.THEAD:case C.TR:break;default:lx(e,t)}}function lx(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,hI(e,t),e.fosterParentingEnabled=n}function sme(e,t){e.pendingCharacterTokens.push(t)}function ome(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function EE(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&e.openElements.currentTagId===C.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===C.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===C.OPTGROUP&&e.openElements.pop();break}case C.OPTION:{e.openElements.currentTagId===C.OPTION&&e.openElements.pop();break}case C.SELECT:{e.openElements.hasInSelectScope(C.SELECT)&&(e.openElements.popUntilTagNamePopped(C.SELECT),e._resetInsertionMode());break}case C.TEMPLATE:{V1(e,t);break}}}function Qat(e,t){const n=t.tagID;n===C.CAPTION||n===C.TABLE||n===C.TBODY||n===C.TFOOT||n===C.THEAD||n===C.TR||n===C.TD||n===C.TH?(e.openElements.popUntilTagNamePopped(C.SELECT),e._resetInsertionMode(),e._processStartTag(t)):cme(e,t)}function Wat(e,t){const n=t.tagID;n===C.CAPTION||n===C.TABLE||n===C.TBODY||n===C.TFOOT||n===C.THEAD||n===C.TR||n===C.TD||n===C.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(C.SELECT),e._resetInsertionMode(),e.onEndTag(t)):dme(e,t)}function Vat(e,t){switch(t.tagID){case C.BASE:case C.BASEFONT:case C.BGSOUND:case C.LINK:case C.META:case C.NOFRAMES:case C.SCRIPT:case C.STYLE:case C.TEMPLATE:case C.TITLE:{Bd(e,t);break}case C.CAPTION:case C.COLGROUP:case C.TBODY:case C.TFOOT:case C.THEAD:{e.tmplInsertionModeStack[0]=Ee.IN_TABLE,e.insertionMode=Ee.IN_TABLE,Fv(e,t);break}case C.COL:{e.tmplInsertionModeStack[0]=Ee.IN_COLUMN_GROUP,e.insertionMode=Ee.IN_COLUMN_GROUP,XQ(e,t);break}case C.TR:{e.tmplInsertionModeStack[0]=Ee.IN_TABLE_BODY,e.insertionMode=Ee.IN_TABLE_BODY,mI(e,t);break}case C.TD:case C.TH:{e.tmplInsertionModeStack[0]=Ee.IN_ROW,e.insertionMode=Ee.IN_ROW,gI(e,t);break}default:e.tmplInsertionModeStack[0]=Ee.IN_BODY,e.insertionMode=Ee.IN_BODY,wo(e,t)}}function qat(e,t){t.tagID===C.TEMPLATE&&V1(e,t)}function fme(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(C.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):ZQ(e,t)}function Gat(e,t){t.tagID===C.HTML?wo(e,t):AC(e,t)}function hme(e,t){var n;if(t.tagID===C.HTML){if(e.fragmentContext||(e.insertionMode=Ee.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===C.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 AC(e,t)}function AC(e,t){e.insertionMode=Ee.IN_BODY,hI(e,t)}function Yat(e,t){switch(t.tagID){case C.HTML:{wo(e,t);break}case C.FRAMESET:{e._insertElement(t,ht.HTML);break}case C.FRAME:{e._appendElement(t,ht.HTML),t.ackSelfClosing=!0;break}case C.NOFRAMES:{Bd(e,t);break}}}function Zat(e,t){t.tagID===C.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==C.FRAMESET&&(e.insertionMode=Ee.AFTER_FRAMESET))}function Xat(e,t){switch(t.tagID){case C.HTML:{wo(e,t);break}case C.NOFRAMES:{Bd(e,t);break}}}function Kat(e,t){t.tagID===C.HTML&&(e.insertionMode=Ee.AFTER_AFTER_FRAMESET)}function Jat(e,t){t.tagID===C.HTML?wo(e,t):S_(e,t)}function S_(e,t){e.insertionMode=Ee.IN_BODY,hI(e,t)}function est(e,t){switch(t.tagID){case C.HTML:{wo(e,t);break}case C.NOFRAMES:{Bd(e,t);break}}}function tst(e,t){t.chars=Zi,e._insertCharacters(t)}function nst(e,t){e._insertCharacters(t),e.framesetOk=!1}function pme(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==ht.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function rst(e,t){if(yit(t))pme(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===ht.MATHML?X0e(t):r===ht.SVG&&(vit(t),K0e(t)),GQ(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function ist(e,t){if(t.tagID===C.P||t.tagID===C.BR){pme(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)===ht.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}He.AREA,He.BASE,He.BASEFONT,He.BGSOUND,He.BR,He.COL,He.EMBED,He.FRAME,He.HR,He.IMG,He.INPUT,He.KEYGEN,He.LINK,He.META,He.PARAM,He.SOURCE,He.TRACK,He.WBR;const bI=mme("end"),Zf=mme("start");function mme(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 gme(e){const t=Zf(e),n=bI(e);if(t&&n)return{start:t,end:n}}const ast=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),xee={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function bme(e,t){const n=mst(e),r=BQ("type",{handlers:{root:sst,element:ost,text:lst,comment:vme,doctype:ust,raw:dst},unknown:fst}),i={parser:n?new Eee(xee):Eee.getFragmentParser(void 0,xee),handle(o){r(o,i)},stitches:!1,options:t||{}};r(e,i),IO(i,Zf());const a=n?i.parser.document:i.parser.getFragment(),s=brt(a,{file:i.options.file});return i.stitches&&So(s,"comment",function(o,l,u){const d=o;if(d.value.stitch&&u&&l!==void 0){const f=u.children;return f[l]=d.value.stitch,l}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function yme(e,t){let n=-1;if(e)for(;++n4&&(t.parser.tokenizer.state=0);const n={type:cr.CHARACTER,chars:e.value,location:ux(e)};IO(t,Zf(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function ust(e,t){const n={type:cr.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:ux(e)};IO(t,Zf(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function cst(e,t){t.stitches=!0;const n=gst(e);if("children"in e&&"children"in n){const r=bme({type:"root",children:e.children},t.options);n.children=r.children}vme({type:"comment",value:{stitch:n}},t)}function vme(e,t){const n=e.value,r={type:cr.COMMENT,data:n,location:ux(e)};IO(t,Zf(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function dst(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,Ome(t,Zf(e)),t.parser.tokenizer.write(e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function fst(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))cst(n,t);else{let r="";throw ast.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function IO(e,t){Ome(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Pa.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function Ome(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function hst(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Pa.PLAINTEXT)return;IO(t,Zf(e));const r=t.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:wf.html;i===wf.html&&n==="svg"&&(i=wf.svg);const a=Ert({...e,children:[]},{space:i===wf.svg?"svg":"html"}),s={type:cr.START_TAG,tagName:n,tagID:RO(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:ux(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function pst(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&Rrt.includes(n)||t.parser.tokenizer.state===Pa.PLAINTEXT)return;IO(t,bI(e));const r={type:cr.END_TAG,tagName:n,tagID:RO(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:ux(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Pa.RCDATA||t.parser.tokenizer.state===Pa.RAWTEXT||t.parser.tokenizer.state===Pa.SCRIPT_DATA)&&(t.parser.tokenizer.state=Pa.DATA)}function mst(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function ux(e){const t=Zf(e)||{line:void 0,column:void 0,offset:void 0},n=bI(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function gst(e){return"children"in e?Ed({...e,children:[]}):Ed(e)}function Sme(e){return function(t,n){return bme(t,{...e,file:n})}}var bst=Rse();const yst=Cu(bst),vst=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ost=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Sst={};function kee(e,t){return(Sst.jsx?Ost:vst).test(e)}var Eme={},Aee=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Est=/\n/g,wst=/^\s*/,Tst=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,xst=/^:\s*/,kst=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Ast=/^[;\s]*/,_st=/^\s+|\s+$/g,Cst=` +`,_ee="/",Cee="*",Ng="",Rst="comment",Ist="declaration",Nst=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(O){var S=O.match(Est);S&&(n+=S.length);var T=O.lastIndexOf(Cst);r=~T?O.length-T:r+O.length}function a(){var O={line:n,column:r};return function(S){return S.position=new s(O),u(),S}}function s(O){this.start=O,this.end={line:n,column:r},this.source=t.source}s.prototype.content=e;function o(O){var S=new Error(t.source+":"+n+":"+r+": "+O);if(S.reason=O,S.filename=t.source,S.line=n,S.column=r,S.source=e,!t.silent)throw S}function l(O){var S=O.exec(e);if(S){var T=S[0];return i(T),e=e.slice(T.length),S}}function u(){l(wst)}function d(O){var S;for(O=O||[];S=f();)S!==!1&&O.push(S);return O}function f(){var O=a();if(!(_ee!=e.charAt(0)||Cee!=e.charAt(1))){for(var S=2;Ng!=e.charAt(S)&&(Cee!=e.charAt(S)||_ee!=e.charAt(S+1));)++S;if(S+=2,Ng===e.charAt(S-1))return o("End of comment missing");var T=e.slice(2,S-2);return r+=2,i(T),e=e.slice(S),r+=2,O({type:Rst,comment:T})}}function p(){var O=a(),S=l(Tst);if(S){if(f(),!l(xst))return o("property missing ':'");var T=l(kst),w=O({type:Ist,property:Ree(S[0].replace(Aee,Ng)),value:T?Ree(T[0].replace(Aee,Ng)):Ng});return l(Ast),w}}function g(){var O=[];d(O);for(var S;S=p();)S!==!1&&(O.push(S),d(O));return O}return u(),g()};function Ree(e){return e?e.replace(_st,Ng):Ng}var Dst=pf&&pf.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Eme,"__esModule",{value:!0});var Iee=Eme.default=Lst,Pst=Dst(Nst);function Lst(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,Pst.default)(e),i=typeof t=="function";return r.forEach(function(a){if(a.type==="declaration"){var s=a.property,o=a.value;i?t(s,o,a):o&&(n=n||{},n[s]=o)}}),n}const Mst=Iee.default||Iee;function R2(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Nee(e.position):"start"in e||"end"in e?Nee(e):"line"in e||"column"in e?JL(e):""}function JL(e){return Dee(e&&e.line)+":"+Dee(e&&e.column)}function Nee(e){return JL(e&&e.start)+"-"+JL(e&&e.end)}function Dee(e){return e&&typeof e=="number"?e:1}class To extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},s=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(s=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?a.ruleId=r:(a.source=r.slice(0,l),a.ruleId=r.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const o=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=o?o.line:void 0,this.name=R2(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}To.prototype.file="";To.prototype.name="";To.prototype.reason="";To.prototype.message="";To.prototype.stack="";To.prototype.column=void 0;To.prototype.line=void 0;To.prototype.ancestors=void 0;To.prototype.cause=void 0;To.prototype.fatal=void 0;To.prototype.place=void 0;To.prototype.ruleId=void 0;To.prototype.source=void 0;const KQ={}.hasOwnProperty,$st=new Map,Fst=/[A-Z]/g,Bst=/-([a-z])/g,Ust=new Set(["table","tbody","thead","tfoot","tr"]),zst=new Set(["td","th"]),wme="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function jst(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=Zst(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=Yst(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"?xp:W1,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Tme(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Tme(e,t,n){if(t.type==="element")return Hst(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Qst(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Vst(e,t,n);if(t.type==="mdxjsEsm")return Wst(e,t);if(t.type==="root")return qst(e,t,n);if(t.type==="text")return Gst(e,t)}function Hst(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=xp,e.schema=i),e.ancestors.push(t);const a=kme(e,t.tagName,!1),s=Xst(e,t);let o=eW(e,t);return Ust.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!O0e(l):!0})),xme(e,s,a,t),JQ(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function Qst(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)}Xw(e,t.position)}function Wst(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Xw(e,t.position)}function Vst(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=xp,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:kme(e,t.name,!0),s=Kst(e,t),o=eW(e,t);return xme(e,s,a,t),JQ(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function qst(e,t,n){const r={};return JQ(r,eW(e,t)),e.create(t,e.Fragment,r,n)}function Gst(e,t){return t.value}function xme(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function JQ(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Yst(e,t,n){return r;function r(i,a,s,o){const u=Array.isArray(s.children)?n:t;return o?u(a,s,o):u(a,s)}}function Zst(e,t){return n;function n(r,i,a,s){const o=Array.isArray(a.children),l=Zf(r);return t(i,a,s,o,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function Xst(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&KQ.call(t.properties,i)){const a=Jst(e,i,t.properties[i]);if(a){const[s,o]=a;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&zst.has(t.tagName)?r=o:n[s]=o}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Kst(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const s=a.expression;s.type;const o=s.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else Xw(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];o.type,a=e.evaluater.evaluateExpression(o.expression)}else Xw(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function eW(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:$st;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);a0?(Ec(e,e.length,0,t),e):t}const Lee={}.hasOwnProperty;function _me(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 wd(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Vo=xm(/[A-Za-z]/),go=xm(/[\dA-Za-z]/),uot=xm(/[#-'*+\--9=?A-Z^-~]/);function _C(e){return e!==null&&(e<32||e===127)}const eM=xm(/\d/),cot=xm(/[\dA-Fa-f]/),dot=xm(/[!-/:-@[-`{-~]/);function xn(e){return e!==null&&e<-2}function Oi(e){return e!==null&&(e<0||e===32)}function yr(e){return e===-2||e===-1||e===32}const yI=xm(new RegExp("\\p{P}|\\p{S}","u")),C1=xm(/\s/);function xm(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function NO(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&a<57344){const o=e.charCodeAt(n+1);a<56320&&o>56319&&o<57344?(s=String.fromCharCode(a,o),i=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function hr(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(l){return yr(l)?(e.enter(n),o(l)):t(l)}function o(l){return yr(l)&&a++s))return;const P=t.events.length;let L=P,j,B;for(;L--;)if(t.events[L][0]==="exit"&&t.events[L][1].type==="chunkFlow"){if(j){B=t.events[L][1].end;break}j=!0}for(w(r),N=P;Nk;){const R=n[_];t.containerState=R[1],R[0].exit.call(t,e)}n.length=k}function x(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function got(e,t,n){return hr(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function CC(e){if(e===null||Oi(e)||C1(e))return 1;if(yI(e))return 2}function vI(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f=Object.assign({},e[r][1].end),p=Object.assign({},e[n][1].start);$ee(f,-l),$ee(p,l),s={type:l>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[r][1].end)},o={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:p},a={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},s.start),end:Object.assign({},o.end)},e[r][1].end=Object.assign({},s.start),e[n][1].start=Object.assign({},o.end),u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=lc(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=lc(u,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",a,t]]),u=lc(u,vI(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=lc(u,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,u=lc(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,Ec(e,r-1,n-r+3,u),n=r+u.length-d-2;break}}for(n=-1;++n0&&yr(N)?hr(e,x,"linePrefix",a+1)(N):x(N)}function x(N){return N===null||xn(N)?e.check(Fee,S,_)(N):(e.enter("codeFlowValue"),k(N))}function k(N){return N===null||xn(N)?(e.exit("codeFlowValue"),x(N)):(e.consume(N),k)}function _(N){return e.exit("codeFenced"),t(N)}function R(N,P,L){let j=0;return B;function B(q){return N.enter("lineEnding"),N.consume(q),N.exit("lineEnding"),V}function V(q){return N.enter("codeFencedFence"),yr(q)?hr(N,W,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(q):W(q)}function W(q){return q===o?(N.enter("codeFencedFenceSequence"),re(q)):L(q)}function re(q){return q===o?(j++,N.consume(q),re):j>=s?(N.exit("codeFencedFenceSequence"),yr(q)?hr(N,ee,"whitespace")(q):ee(q)):L(q)}function ee(q){return q===null||xn(q)?(N.exit("codeFencedFence"),P(q)):L(q)}}}function _ot(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const JD={name:"codeIndented",tokenize:Rot},Cot={tokenize:Iot,partial:!0};function Rot(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),hr(e,a,"linePrefix",5)(u)}function a(u){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?s(u):n(u)}function s(u){return u===null?l(u):xn(u)?e.attempt(Cot,s,l)(u):(e.enter("codeFlowValue"),o(u))}function o(u){return u===null||xn(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),o)}function l(u){return e.exit("codeIndented"),t(u)}}function Iot(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):xn(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):hr(e,a,"linePrefix",5)(s)}function a(s){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):xn(s)?i(s):n(s)}}const Not={name:"codeText",tokenize:Lot,resolve:Dot,previous:Pot};function Dot(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=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return tthis.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&wE(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),wE(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),wE(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function Pme(e,t,n,r,i,a,s,o,l){const u=l||Number.POSITIVE_INFINITY;let d=0;return f;function f(w){return w===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(w),e.exit(a),p):w===null||w===32||w===41||_C(w)?n(w):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),S(w))}function p(w){return w===62?(e.enter(a),e.consume(w),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),g(w))}function g(w){return w===62?(e.exit("chunkString"),e.exit(o),p(w)):w===null||w===60||xn(w)?n(w):(e.consume(w),w===92?O:g)}function O(w){return w===60||w===62||w===92?(e.consume(w),g):g(w)}function S(w){return!d&&(w===null||w===41||Oi(w))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(w)):d999||g===null||g===91||g===93&&!l||g===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(g):g===93?(e.exit(a),e.enter(i),e.consume(g),e.exit(i),e.exit(r),t):xn(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),f(g))}function f(g){return g===null||g===91||g===93||xn(g)||o++>999?(e.exit("chunkString"),d(g)):(e.consume(g),l||(l=!yr(g)),g===92?p:f)}function p(g){return g===91||g===92||g===93?(e.consume(g),o++,f):f(g)}}function Mme(e,t,n,r,i,a){let s;return o;function o(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),s=p===40?41:p,l):n(p)}function l(p){return p===s?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(a),u(p))}function u(p){return p===s?(e.exit(a),l(s)):p===null?n(p):xn(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),hr(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===s||p===null||xn(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?f:d)}function f(p){return p===s||p===92?(e.consume(p),d):d(p)}}function I2(e,t){let n;return r;function r(i){return xn(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):yr(i)?hr(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const Hot={name:"definition",tokenize:Wot},Qot={tokenize:Vot,partial:!0};function Wot(e,t,n){const r=this;let i;return a;function a(g){return e.enter("definition"),s(g)}function s(g){return Lme.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function o(g){return i=wd(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),l):n(g)}function l(g){return Oi(g)?I2(e,u)(g):u(g)}function u(g){return Pme(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function d(g){return e.attempt(Qot,f,f)(g)}function f(g){return yr(g)?hr(e,p,"whitespace")(g):p(g)}function p(g){return g===null||xn(g)?(e.exit("definition"),r.parser.defined.push(i),t(g)):n(g)}}function Vot(e,t,n){return r;function r(o){return Oi(o)?I2(e,i)(o):n(o)}function i(o){return Mme(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function a(o){return yr(o)?hr(e,s,"whitespace")(o):s(o)}function s(o){return o===null||xn(o)?t(o):n(o)}}const qot={name:"hardBreakEscape",tokenize:Got};function Got(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return xn(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const Yot={name:"headingAtx",tokenize:Xot,resolve:Zot};function Zot(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Ec(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function Xot(e,t,n){let r=0;return i;function i(d){return e.enter("atxHeading"),a(d)}function a(d){return e.enter("atxHeadingSequence"),s(d)}function s(d){return d===35&&r++<6?(e.consume(d),s):d===null||Oi(d)?(e.exit("atxHeadingSequence"),o(d)):n(d)}function o(d){return d===35?(e.enter("atxHeadingSequence"),l(d)):d===null||xn(d)?(e.exit("atxHeading"),t(d)):yr(d)?hr(e,o,"whitespace")(d):(e.enter("atxHeadingText"),u(d))}function l(d){return d===35?(e.consume(d),l):(e.exit("atxHeadingSequence"),o(d))}function u(d){return d===null||d===35||Oi(d)?(e.exit("atxHeadingText"),o(d)):(e.consume(d),u)}}const Kot=["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"],Uee=["pre","script","style","textarea"],Jot={name:"htmlFlow",tokenize:rlt,resolveTo:nlt,concrete:!0},elt={tokenize:alt,partial:!0},tlt={tokenize:ilt,partial:!0};function nlt(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 rlt(e,t,n){const r=this;let i,a,s,o,l;return u;function u(Z){return d(Z)}function d(Z){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(Z),f}function f(Z){return Z===33?(e.consume(Z),p):Z===47?(e.consume(Z),a=!0,S):Z===63?(e.consume(Z),i=3,r.interrupt?t:H):Vo(Z)?(e.consume(Z),s=String.fromCharCode(Z),T):n(Z)}function p(Z){return Z===45?(e.consume(Z),i=2,g):Z===91?(e.consume(Z),i=5,o=0,O):Vo(Z)?(e.consume(Z),i=4,r.interrupt?t:H):n(Z)}function g(Z){return Z===45?(e.consume(Z),r.interrupt?t:H):n(Z)}function O(Z){const ke="CDATA[";return Z===ke.charCodeAt(o++)?(e.consume(Z),o===ke.length?r.interrupt?t:W:O):n(Z)}function S(Z){return Vo(Z)?(e.consume(Z),s=String.fromCharCode(Z),T):n(Z)}function T(Z){if(Z===null||Z===47||Z===62||Oi(Z)){const ke=Z===47,$e=s.toLowerCase();return!ke&&!a&&Uee.includes($e)?(i=1,r.interrupt?t(Z):W(Z)):Kot.includes(s.toLowerCase())?(i=6,ke?(e.consume(Z),w):r.interrupt?t(Z):W(Z)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(Z):a?x(Z):k(Z))}return Z===45||go(Z)?(e.consume(Z),s+=String.fromCharCode(Z),T):n(Z)}function w(Z){return Z===62?(e.consume(Z),r.interrupt?t:W):n(Z)}function x(Z){return yr(Z)?(e.consume(Z),x):B(Z)}function k(Z){return Z===47?(e.consume(Z),B):Z===58||Z===95||Vo(Z)?(e.consume(Z),_):yr(Z)?(e.consume(Z),k):B(Z)}function _(Z){return Z===45||Z===46||Z===58||Z===95||go(Z)?(e.consume(Z),_):R(Z)}function R(Z){return Z===61?(e.consume(Z),N):yr(Z)?(e.consume(Z),R):k(Z)}function N(Z){return Z===null||Z===60||Z===61||Z===62||Z===96?n(Z):Z===34||Z===39?(e.consume(Z),l=Z,P):yr(Z)?(e.consume(Z),N):L(Z)}function P(Z){return Z===l?(e.consume(Z),l=null,j):Z===null||xn(Z)?n(Z):(e.consume(Z),P)}function L(Z){return Z===null||Z===34||Z===39||Z===47||Z===60||Z===61||Z===62||Z===96||Oi(Z)?R(Z):(e.consume(Z),L)}function j(Z){return Z===47||Z===62||yr(Z)?k(Z):n(Z)}function B(Z){return Z===62?(e.consume(Z),V):n(Z)}function V(Z){return Z===null||xn(Z)?W(Z):yr(Z)?(e.consume(Z),V):n(Z)}function W(Z){return Z===45&&i===2?(e.consume(Z),ne):Z===60&&i===1?(e.consume(Z),K):Z===62&&i===4?(e.consume(Z),Re):Z===63&&i===3?(e.consume(Z),H):Z===93&&i===5?(e.consume(Z),ie):xn(Z)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(elt,Se,re)(Z)):Z===null||xn(Z)?(e.exit("htmlFlowData"),re(Z)):(e.consume(Z),W)}function re(Z){return e.check(tlt,ee,Se)(Z)}function ee(Z){return e.enter("lineEnding"),e.consume(Z),e.exit("lineEnding"),q}function q(Z){return Z===null||xn(Z)?re(Z):(e.enter("htmlFlowData"),W(Z))}function ne(Z){return Z===45?(e.consume(Z),H):W(Z)}function K(Z){return Z===47?(e.consume(Z),s="",G):W(Z)}function G(Z){if(Z===62){const ke=s.toLowerCase();return Uee.includes(ke)?(e.consume(Z),Re):W(Z)}return Vo(Z)&&s.length<8?(e.consume(Z),s+=String.fromCharCode(Z),G):W(Z)}function ie(Z){return Z===93?(e.consume(Z),H):W(Z)}function H(Z){return Z===62?(e.consume(Z),Re):Z===45&&i===2?(e.consume(Z),H):W(Z)}function Re(Z){return Z===null||xn(Z)?(e.exit("htmlFlowData"),Se(Z)):(e.consume(Z),Re)}function Se(Z){return e.exit("htmlFlow"),t(Z)}}function ilt(e,t,n){const r=this;return i;function i(s){return xn(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):n(s)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function alt(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(cx,t,n)}}const slt={name:"htmlText",tokenize:olt};function olt(e,t,n){const r=this;let i,a,s;return o;function o(H){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(H),l}function l(H){return H===33?(e.consume(H),u):H===47?(e.consume(H),R):H===63?(e.consume(H),k):Vo(H)?(e.consume(H),L):n(H)}function u(H){return H===45?(e.consume(H),d):H===91?(e.consume(H),a=0,O):Vo(H)?(e.consume(H),x):n(H)}function d(H){return H===45?(e.consume(H),g):n(H)}function f(H){return H===null?n(H):H===45?(e.consume(H),p):xn(H)?(s=f,K(H)):(e.consume(H),f)}function p(H){return H===45?(e.consume(H),g):f(H)}function g(H){return H===62?ne(H):H===45?p(H):f(H)}function O(H){const Re="CDATA[";return H===Re.charCodeAt(a++)?(e.consume(H),a===Re.length?S:O):n(H)}function S(H){return H===null?n(H):H===93?(e.consume(H),T):xn(H)?(s=S,K(H)):(e.consume(H),S)}function T(H){return H===93?(e.consume(H),w):S(H)}function w(H){return H===62?ne(H):H===93?(e.consume(H),w):S(H)}function x(H){return H===null||H===62?ne(H):xn(H)?(s=x,K(H)):(e.consume(H),x)}function k(H){return H===null?n(H):H===63?(e.consume(H),_):xn(H)?(s=k,K(H)):(e.consume(H),k)}function _(H){return H===62?ne(H):k(H)}function R(H){return Vo(H)?(e.consume(H),N):n(H)}function N(H){return H===45||go(H)?(e.consume(H),N):P(H)}function P(H){return xn(H)?(s=P,K(H)):yr(H)?(e.consume(H),P):ne(H)}function L(H){return H===45||go(H)?(e.consume(H),L):H===47||H===62||Oi(H)?j(H):n(H)}function j(H){return H===47?(e.consume(H),ne):H===58||H===95||Vo(H)?(e.consume(H),B):xn(H)?(s=j,K(H)):yr(H)?(e.consume(H),j):ne(H)}function B(H){return H===45||H===46||H===58||H===95||go(H)?(e.consume(H),B):V(H)}function V(H){return H===61?(e.consume(H),W):xn(H)?(s=V,K(H)):yr(H)?(e.consume(H),V):j(H)}function W(H){return H===null||H===60||H===61||H===62||H===96?n(H):H===34||H===39?(e.consume(H),i=H,re):xn(H)?(s=W,K(H)):yr(H)?(e.consume(H),W):(e.consume(H),ee)}function re(H){return H===i?(e.consume(H),i=void 0,q):H===null?n(H):xn(H)?(s=re,K(H)):(e.consume(H),re)}function ee(H){return H===null||H===34||H===39||H===60||H===61||H===96?n(H):H===47||H===62||Oi(H)?j(H):(e.consume(H),ee)}function q(H){return H===47||H===62||Oi(H)?j(H):n(H)}function ne(H){return H===62?(e.consume(H),e.exit("htmlTextData"),e.exit("htmlText"),t):n(H)}function K(H){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(H),e.exit("lineEnding"),G}function G(H){return yr(H)?hr(e,ie,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):ie(H)}function ie(H){return e.enter("htmlTextData"),s(H)}}const nW={name:"labelEnd",tokenize:hlt,resolveTo:flt,resolveAll:dlt},llt={tokenize:plt},ult={tokenize:mlt},clt={tokenize:glt};function dlt(e){let t=-1;for(;++t=3&&(u===null||xn(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),yr(u)?hr(e,o,"whitespace")(u):o(u))}}const hl={name:"list",tokenize:xlt,continuation:{tokenize:klt},exit:_lt},wlt={tokenize:Clt,partial:!0},Tlt={tokenize:Alt,partial:!0};function xlt(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return o;function o(g){const O=r.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(O==="listUnordered"?!r.containerState.marker||g===r.containerState.marker:eM(g)){if(r.containerState.type||(r.containerState.type=O,e.enter(O,{_container:!0})),O==="listUnordered")return e.enter("listItemPrefix"),g===42||g===45?e.check(E_,n,u)(g):u(g);if(!r.interrupt||g===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(g)}return n(g)}function l(g){return eM(g)&&++s<10?(e.consume(g),l):(!r.interrupt||s<2)&&(r.containerState.marker?g===r.containerState.marker:g===41||g===46)?(e.exit("listItemValue"),u(g)):n(g)}function u(g){return e.enter("listItemMarker"),e.consume(g),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||g,e.check(cx,r.interrupt?n:d,e.attempt(wlt,p,f))}function d(g){return r.containerState.initialBlankLine=!0,a++,p(g)}function f(g){return yr(g)?(e.enter("listItemPrefixWhitespace"),e.consume(g),e.exit("listItemPrefixWhitespace"),p):n(g)}function p(g){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(g)}}function klt(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(cx,i,a);function i(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,hr(e,t,"listItemIndent",r.containerState.size+1)(o)}function a(o){return r.containerState.furtherBlankLines||!yr(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Tlt,t,s)(o))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,hr(e,e.attempt(hl,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function Alt(e,t,n){const r=this;return hr(e,i,"listItemIndent",r.containerState.size+1);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(a):n(a)}}function _lt(e){e.exit(this.containerState.type)}function Clt(e,t,n){const r=this;return hr(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const s=r.events[r.events.length-1];return!yr(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const zee={name:"setextUnderline",tokenize:Ilt,resolveTo:Rlt};function Rlt(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const s={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",s,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[a][1].end)):e[r][1]=s,e.push(["exit",s,t]),e}function Ilt(e,t,n){const r=this;let i;return a;function a(u){let d=r.events.length,f;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){f=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=u,s(u)):n(u)}function s(u){return e.enter("setextHeadingLineSequence"),o(u)}function o(u){return u===i?(e.consume(u),o):(e.exit("setextHeadingLineSequence"),yr(u)?hr(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||xn(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const Nlt={tokenize:Dlt};function Dlt(e){const t=this,n=e.attempt(cx,r,e.attempt(this.parser.constructs.flowInitial,i,hr(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Fot,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Plt={resolveAll:Fme()},Llt=$me("string"),Mlt=$me("text");function $me(e){return{tokenize:t,resolveAll:Fme(e==="text"?$lt:void 0)};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,s,o);return s;function s(d){return u(d)?a(d):o(d)}function o(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),l}function l(d){return u(d)?(n.exit("data"),a(d)):(n.consume(d),l)}function u(d){if(d===null)return!0;const f=i[d];let p=-1;if(f)for(;++p-1){const o=s[0];typeof o=="string"?s[0]=o.slice(r):s.shift()}a>0&&s.push(e[i].slice(0,a))}return s}function Ult(e,t){let n=-1;const r=[];let i;for(;++n0){const It=be.tokenStack[be.tokenStack.length-1];(It[1]||Kee).call(be,void 0,It[0])}for(we.position={start:o0(Fe.length>0?Fe[0][1].start:{line:1,column:1,offset:0}),end:o0(Fe.length>0?Fe[Fe.length-2][1].end:{line:1,column:1,offset:0})},Ue=-1;++Ue1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function _ut(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 Cut(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Xme(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function Rut(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Xme(e,t);const i={src:jO(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function Iut(e,t){const n={src:jO(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 Nut(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 Dut(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Xme(e,t);const i={href:jO(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Put(e,t){const n={href:jO(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 Lut(e,t,n){const r=e.all(t),i=n?Mut(n):Kme(t),a={},s=[];if(typeof t.checked=="boolean"){const d=r[0];let f;d&&d.type==="element"&&d.tagName==="p"?f=d:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let o=-1;for(;++o0){const Ct=be.tokenStack[be.tokenStack.length-1];(Ct[1]||Hee).call(be,void 0,Ct[0])}for(we.position={start:e0(Fe.length>0?Fe[0][1].start:{line:1,column:1,offset:0}),end:e0(Fe.length>0?Fe[Fe.length-2][1].end:{line:1,column:1,offset:0})},Ue=-1;++Ue1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function hut(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 put(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function zme(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function mut(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return zme(e,t);const i={src:NO(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function gut(e,t){const n={src:NO(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 but(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 yut(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return zme(e,t);const i={href:NO(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function vut(e,t){const n={href:NO(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 Out(e,t,n){const r=e.all(t),i=n?Sut(n):jme(t),a={},s=[];if(typeof t.checked=="boolean"){const d=r[0];let f;d&&d.type==="element"&&d.tagName==="p"?f=d:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let o=-1;for(;++o1}function $ut(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=Jf(t.children[1]),l=vI(t.children[t.children.length-1]);o&&l&&(s.position={start:o,end:l}),i.push(s)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function jut(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,o=s?s.length:t.children.length;let l=-1;const u=[];for(;++l0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(tte(t.slice(i),i>0,!1)),a.join("")}function tte(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===Jee||a===ete;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===Jee||a===ete;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Wut(e,t){const n={type:"text",value:Qut(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Vut(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const qut={blockquote:Eut,break:wut,code:Tut,delete:xut,emphasis:kut,footnoteReference:Aut,heading:_ut,html:Cut,imageReference:Rut,image:Iut,inlineCode:Nut,linkReference:Dut,link:Put,listItem:Lut,list:$ut,paragraph:Fut,root:But,strong:Uut,table:zut,tableCell:Hut,tableRow:jut,text:Wut,thematicBreak:Vut,toml:a4,yaml:a4,definition:a4,footnoteDefinition:a4};function a4(){}function Gut(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 Yut(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Zut(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Gut,r=e.options.footnoteBackLabel||Yut,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let l=-1;for(;++l0&&O.push({type:"text",value:" "});let x=typeof n=="string"?n:n(l,g);typeof x=="string"&&(x={type:"text",value:x}),O.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(g>1?"-"+g:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,g),className:["data-footnote-backref"]},children:Array.isArray(x)?x:[x]})}const T=d[d.length-1];if(T&&T.type==="element"&&T.tagName==="p"){const x=T.children[T.children.length-1];x&&x.type==="text"?x.value+=" ":T.children.push({type:"text",value:" "}),T.children.push(...O)}else d.push(...O);const w={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(d,!0)};e.patch(u,w),o.push(w)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Ed(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` +`});const u={type:"element",tagName:"li",properties:a,children:s};return e.patch(t,u),e.applyData(t,u)}function Sut(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r1}function Eut(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=Zf(t.children[1]),l=bI(t.children[t.children.length-1]);o&&l&&(s.position={start:o,end:l}),i.push(s)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function Aut(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,o=s?s.length:t.children.length;let l=-1;const u=[];for(;++l0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(Vee(t.slice(i),i>0,!1)),a.join("")}function Vee(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===Qee||a===Wee;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===Qee||a===Wee;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Rut(e,t){const n={type:"text",value:Cut(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Iut(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Nut={blockquote:out,break:lut,code:uut,delete:cut,emphasis:dut,footnoteReference:fut,heading:hut,html:put,imageReference:mut,image:gut,inlineCode:but,linkReference:yut,link:vut,listItem:Out,list:Eut,paragraph:wut,root:Tut,strong:xut,table:kut,tableCell:_ut,tableRow:Aut,text:Rut,thematicBreak:Iut,toml:a4,yaml:a4,definition:a4,footnoteDefinition:a4};function a4(){}function Dut(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 Put(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Lut(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Dut,r=e.options.footnoteBackLabel||Put,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let l=-1;for(;++l0&&O.push({type:"text",value:" "});let x=typeof n=="string"?n:n(l,g);typeof x=="string"&&(x={type:"text",value:x}),O.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(g>1?"-"+g:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,g),className:["data-footnote-backref"]},children:Array.isArray(x)?x:[x]})}const T=d[d.length-1];if(T&&T.type==="element"&&T.tagName==="p"){const x=T.children[T.children.length-1];x&&x.type==="text"?x.value+=" ":T.children.push({type:"text",value:" "}),T.children.push(...O)}else d.push(...O);const w={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(d,!0)};e.patch(u,w),o.push(w)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Ed(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` `},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:` -`}]}}const dM={}.hasOwnProperty,Xut={};function Kut(e,t){const n=t||Xut,r=new Map,i=new Map,a=new Map,s={...qut,...n.handlers},o={all:u,applyData:ect,definitionById:r,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:s,one:l,options:n,patch:Jut,wrap:nct};return Eo(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const f=d.type==="definition"?r:i,p=String(d.identifier).toUpperCase();f.has(p)||f.set(p,d)}}),o;function l(d,f){const p=d.type,g=o.handlers[p];if(dM.call(o.handlers,p)&&g)return g(o,d,f);if(o.options.passThrough&&o.options.passThrough.includes(p)){if("children"in d){const{children:S,...T}=d,w=Ed(T);return w.children=o.all(d),w}return Ed(d)}return(o.options.unknownHandler||tct)(o,d,f)}function u(d){const f=[];if("children"in d){const p=d.children;let g=-1;for(;++g0&&n.push({type:"text",value:` -`}),n}function nte(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function rte(e,t){const n=Kut(e,t),r=n.one(e,void 0),i=Zut(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:` -`},i),a}function rct(e,t){return e&&"run"in e?async function(n,r){const i=rte(n,{file:r,...t});await e.run(i,r)}:function(n,r){return rte(n,{file:r,...t||e})}}function ite(e){if(e)throw e}var w_=Object.prototype.hasOwnProperty,Jme=Object.prototype.toString,ate=Object.defineProperty,ste=Object.getOwnPropertyDescriptor,ote=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Jme.call(t)==="[object Array]"},lte=function(t){if(!t||Jme.call(t)!=="[object Object]")return!1;var n=w_.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&w_.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||w_.call(t,i)},ute=function(t,n){ate&&n.name==="__proto__"?ate(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},cte=function(t,n){if(n==="__proto__")if(w_.call(t,n)){if(ste)return ste(t,n).value}else return;return t[n]},ict=function e(){var t,n,r,i,a,s,o=arguments[0],l=1,u=arguments.length,d=!1;for(typeof o=="boolean"&&(d=o,o=arguments[1]||{},l=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});ls.length;let l;o&&s.push(i);try{l=e.apply(this,s)}catch(u){const d=u;if(o&&n)throw d;return i(d)}o||(l&&l.then&&typeof l.then=="function"?l.then(a,i):l instanceof Error?i(l):a(l))}function i(s,...o){n||(n=!0,t(s,...o))}function a(s){i(null,s)}}const uf={basename:oct,dirname:lct,extname:uct,join:cct,sep:"/"};function oct(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');cx(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,o=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else s<0&&(a=!0,s=i+1),o>-1&&(e.codePointAt(i)===t.codePointAt(o--)?o<0&&(r=i):(o=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function lct(e){if(cx(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 uct(e){cx(e);let t=e.length,n=-1,r=0,i=-1,a=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),o===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function cct(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function fct(e,t){let n="",r=0,i=-1,a=0,s=-1,o,l;for(;++s<=e.length;){if(s2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=s,a=0;continue}}else if(n.length>0){n="",r=0,i=s,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===46&&a>-1?a++:a=-1}return n}function cx(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const hct={cwd:pct};function pct(){return"/"}function hM(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function mct(e){if(typeof e=="string")e=new URL(e);else if(!hM(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 gct(e)}function gct(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[g,...O]=d;const S=r[p][1];fM(S)&&fM(g)&&(g=l7(!0,S,g)),r[p]=[u,g,...O]}}}}const Oct=new pW().freeze();function f7(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function h7(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function p7(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 fte(e){if(!fM(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function hte(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function s4(e){return Sct(e)?e:new ege(e)}function Sct(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Ect(e){return typeof e=="string"||wct(e)}function wct(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Tct="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",pte=[],mte={allowDangerousHtml:!0},xct=/^(https?|ircs?|mailto|xmpp)$/i,kct=[{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 Act(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,a=e.components,s=e.disallowedElements,o=e.rehypePlugins||pte,l=e.remarkPlugins||pte,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...mte}:mte,d=e.skipHtml,f=e.unwrapDisallowed,p=e.urlTransform||_ct,g=Oct().use(Sut).use(l).use(rct,u).use(o),O=new ege;typeof r=="string"&&(O.value=r);for(const x of kct)Object.hasOwn(e,x.from)&&(""+x.from+(x.to?"use `"+x.to+"` instead":"remove it")+Tct+x.id,void 0);const S=g.parse(O);let T=g.runSync(S,O);return i&&(T={type:"element",tagName:"div",properties:{className:i},children:T.type==="root"?T.children:[T]}),Eo(T,w),rot(T,{Fragment:I.Fragment,components:a,ignoreInvalidStyle:!0,jsx:I.jsx,jsxs:I.jsxs,passKeys:!0,passNode:!0});function w(x,k,_){if(x.type==="raw"&&_&&typeof k=="number")return d?_.children.splice(k,1):_.children[k]={type:"text",value:x.value},k;if(x.type==="element"){let R;for(R in a7)if(Object.hasOwn(a7,R)&&Object.hasOwn(x.properties,R)){const N=x.properties[R],D=a7[R];(D===null||D.includes(x.tagName))&&(x.properties[R]=p(String(N||""),R,x))}}if(x.type==="element"){let R=t?!t.includes(x.tagName):s?s.includes(x.tagName):!1;if(!R&&n&&typeof k=="number"&&(R=!n(x,k,_)),R&&_&&typeof k=="number")return f&&x.children?_.children.splice(k,1,...x.children):_.children.splice(k,1),k}}}function _ct(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||xct.test(e.slice(0,t))?e:""}function gte(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 Cct(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Rct(e,t,n){const i=IO((n||{}).ignore||[]),a=Ict(t);let s=-1;for(;++s0?{type:"text",value:N}:void 0),N===!1?p.lastIndex=_+1:(O!==_&&x.push({type:"text",value:u.value.slice(O,_)}),Array.isArray(N)?x.push(...N):N&&x.push(N),O=_+k[0].length,w=!0),!p.global)break;k=p.exec(u.value)}return w?(O?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=gte(e,"(");let a=gte(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function tge(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||A1(n)||OI(n))&&(!t||n!==47)}nge.peek=ndt;function Vct(){return{enter:{gfmFootnoteDefinition:Gct,gfmFootnoteDefinitionLabelString:Yct,gfmFootnoteCall:Kct,gfmFootnoteCallString:Jct},exit:{gfmFootnoteDefinition:Xct,gfmFootnoteDefinitionLabelString:Zct,gfmFootnoteCall:tdt,gfmFootnoteCallString:edt}}}function qct(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:rdt,footnoteReference:nge}}}function Gct(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Yct(){this.buffer()}function Zct(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=wd(this.sliceSerialize(e)).toLowerCase()}function Xct(e){this.exit(e)}function Kct(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Jct(){this.buffer()}function edt(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=wd(this.sliceSerialize(e)).toLowerCase()}function tdt(e){this.exit(e)}function nge(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const s=n.enter("footnoteReference"),o=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{...i.current(),before:a,after:"]"})),o(),s(),a+=i.move("]"),a}function ndt(){return"["}function rdt(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const s=n.enter("footnoteDefinition"),o=n.enter("label");return a+=i.move(n.safe(n.associationId(e),{...i.current(),before:a,after:"]"})),o(),a+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),a+=i.move(n.indentLines(n.containerFlow(e,i.current()),idt)),s(),a}function idt(e,t,n){return t===0?e:(n?"":" ")+e}const adt=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];rge.peek=cdt;function sdt(){return{canContainEols:["delete"],enter:{strikethrough:ldt},exit:{strikethrough:udt}}}function odt(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:adt}],handlers:{delete:rge}}}function ldt(e){this.enter({type:"delete",children:[]},e)}function udt(e){this.exit(e)}function rge(e,t,n,r){const i=n.createTracker(r),a=n.enter("strikethrough");let s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),a(),s}function cdt(){return"~"}function ddt(e,t={}){const n=(t.align||[]).concat(),r=t.stringLength||hdt,i=[],a=[],s=[],o=[];let l=0,u=-1;for(;++ul&&(l=e[u].length);++To[T])&&(o[T]=x)}O.push(w)}a[u]=O,s[u]=S}let d=-1;if(typeof n=="object"&&"length"in n)for(;++do[d]&&(o[d]=w),p[d]=w),f[d]=x}a.splice(1,0,f),s.splice(1,0,p),u=-1;const g=[];for(;++u "),a.shift(2);const s=n.indentLines(n.containerFlow(e,a.current()),mdt);return i(),s}function mdt(e,t,n){return">"+(n?"":" ")+e}function gdt(e,t){return yte(e,t.inConstruct,!0)&&!yte(e,t.notInConstruct,!1)}function yte(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++rs&&(s=a):a=1,i=r+t.length,r=n.indexOf(t,i);return s}function bdt(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 ydt(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 vdt(e,t,n,r){const i=ydt(n),a=e.value||"",s=i==="`"?"GraveAccent":"Tilde";if(bdt(e,n)){const f=n.enter("codeIndented"),p=n.indentLines(a,Odt);return f(),p}const o=n.createTracker(r),l=i.repeat(Math.max(ige(a,i)+1,3)),u=n.enter("codeFenced");let d=o.move(l);if(e.lang){const f=n.enter(`codeFencedLang${s}`);d+=o.move(n.safe(e.lang,{before:d,after:" ",encode:["`"],...o.current()})),f()}if(e.lang&&e.meta){const f=n.enter(`codeFencedMeta${s}`);d+=o.move(" "),d+=o.move(n.safe(e.meta,{before:d,after:` +`}),n}function qee(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Gee(e,t){const n=$ut(e,t),r=n.one(e,void 0),i=Lut(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:` +`},i),a}function jut(e,t){return e&&"run"in e?async function(n,r){const i=Gee(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Gee(n,{file:r,...t||e})}}function Yee(e){if(e)throw e}var w_=Object.prototype.hasOwnProperty,Hme=Object.prototype.toString,Zee=Object.defineProperty,Xee=Object.getOwnPropertyDescriptor,Kee=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Hme.call(t)==="[object Array]"},Jee=function(t){if(!t||Hme.call(t)!=="[object Object]")return!1;var n=w_.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&w_.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||w_.call(t,i)},ete=function(t,n){Zee&&n.name==="__proto__"?Zee(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},tte=function(t,n){if(n==="__proto__")if(w_.call(t,n)){if(Xee)return Xee(t,n).value}else return;return t[n]},Hut=function e(){var t,n,r,i,a,s,o=arguments[0],l=1,u=arguments.length,d=!1;for(typeof o=="boolean"&&(d=o,o=arguments[1]||{},l=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});ls.length;let l;o&&s.push(i);try{l=e.apply(this,s)}catch(u){const d=u;if(o&&n)throw d;return i(d)}o||(l&&l.then&&typeof l.then=="function"?l.then(a,i):l instanceof Error?i(l):a(l))}function i(s,...o){n||(n=!0,t(s,...o))}function a(s){i(null,s)}}const af={basename:Vut,dirname:qut,extname:Gut,join:Yut,sep:"/"};function Vut(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');dx(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,o=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else s<0&&(a=!0,s=i+1),o>-1&&(e.codePointAt(i)===t.codePointAt(o--)?o<0&&(r=i):(o=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function qut(e){if(dx(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 Gut(e){dx(e);let t=e.length,n=-1,r=0,i=-1,a=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),o===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function Yut(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Xut(e,t){let n="",r=0,i=-1,a=0,s=-1,o,l;for(;++s<=e.length;){if(s2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=s,a=0;continue}}else if(n.length>0){n="",r=0,i=s,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===46&&a>-1?a++:a=-1}return n}function dx(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Kut={cwd:Jut};function Jut(){return"/"}function iM(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function ect(e){if(typeof e=="string")e=new URL(e);else if(!iM(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 tct(e)}function tct(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[g,...O]=d;const S=r[p][1];rM(S)&&rM(g)&&(g=t7(!0,S,g)),r[p]=[u,g,...O]}}}}const act=new rW().freeze();function a7(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function s7(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function o7(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 rte(e){if(!rM(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function ite(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function s4(e){return sct(e)?e:new Qme(e)}function sct(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function oct(e){return typeof e=="string"||lct(e)}function lct(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const uct="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",ate=[],ste={allowDangerousHtml:!0},cct=/^(https?|ircs?|mailto|xmpp)$/i,dct=[{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 fct(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,a=e.components,s=e.disallowedElements,o=e.rehypePlugins||ate,l=e.remarkPlugins||ate,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...ste}:ste,d=e.skipHtml,f=e.unwrapDisallowed,p=e.urlTransform||hct,g=act().use(sut).use(l).use(jut,u).use(o),O=new Qme;typeof r=="string"&&(O.value=r);for(const x of dct)Object.hasOwn(e,x.from)&&(""+x.from+(x.to?"use `"+x.to+"` instead":"remove it")+uct+x.id,void 0);const S=g.parse(O);let T=g.runSync(S,O);return i&&(T={type:"element",tagName:"div",properties:{className:i},children:T.type==="root"?T.children:[T]}),So(T,w),jst(T,{Fragment:I.Fragment,components:a,ignoreInvalidStyle:!0,jsx:I.jsx,jsxs:I.jsxs,passKeys:!0,passNode:!0});function w(x,k,_){if(x.type==="raw"&&_&&typeof k=="number")return d?_.children.splice(k,1):_.children[k]={type:"text",value:x.value},k;if(x.type==="element"){let R;for(R in KD)if(Object.hasOwn(KD,R)&&Object.hasOwn(x.properties,R)){const N=x.properties[R],P=KD[R];(P===null||P.includes(x.tagName))&&(x.properties[R]=p(String(N||""),R,x))}}if(x.type==="element"){let R=t?!t.includes(x.tagName):s?s.includes(x.tagName):!1;if(!R&&n&&typeof k=="number"&&(R=!n(x,k,_)),R&&_&&typeof k=="number")return f&&x.children?_.children.splice(k,1,...x.children):_.children.splice(k,1),k}}}function hct(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||cct.test(e.slice(0,t))?e:""}function ote(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 pct(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function mct(e,t,n){const i=SO((n||{}).ignore||[]),a=gct(t);let s=-1;for(;++s0?{type:"text",value:N}:void 0),N===!1?p.lastIndex=_+1:(O!==_&&x.push({type:"text",value:u.value.slice(O,_)}),Array.isArray(N)?x.push(...N):N&&x.push(N),O=_+k[0].length,w=!0),!p.global)break;k=p.exec(u.value)}return w?(O?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=ote(e,"(");let a=ote(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function Wme(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||C1(n)||yI(n))&&(!t||n!==47)}Vme.peek=zct;function Ict(){return{enter:{gfmFootnoteDefinition:Dct,gfmFootnoteDefinitionLabelString:Pct,gfmFootnoteCall:$ct,gfmFootnoteCallString:Fct},exit:{gfmFootnoteDefinition:Mct,gfmFootnoteDefinitionLabelString:Lct,gfmFootnoteCall:Uct,gfmFootnoteCallString:Bct}}}function Nct(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:jct,footnoteReference:Vme}}}function Dct(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Pct(){this.buffer()}function Lct(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=wd(this.sliceSerialize(e)).toLowerCase()}function Mct(e){this.exit(e)}function $ct(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Fct(){this.buffer()}function Bct(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=wd(this.sliceSerialize(e)).toLowerCase()}function Uct(e){this.exit(e)}function Vme(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const s=n.enter("footnoteReference"),o=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{...i.current(),before:a,after:"]"})),o(),s(),a+=i.move("]"),a}function zct(){return"["}function jct(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const s=n.enter("footnoteDefinition"),o=n.enter("label");return a+=i.move(n.safe(n.associationId(e),{...i.current(),before:a,after:"]"})),o(),a+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),a+=i.move(n.indentLines(n.containerFlow(e,i.current()),Hct)),s(),a}function Hct(e,t,n){return t===0?e:(n?"":" ")+e}const Qct=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];qme.peek=Yct;function Wct(){return{canContainEols:["delete"],enter:{strikethrough:qct},exit:{strikethrough:Gct}}}function Vct(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Qct}],handlers:{delete:qme}}}function qct(e){this.enter({type:"delete",children:[]},e)}function Gct(e){this.exit(e)}function qme(e,t,n,r){const i=n.createTracker(r),a=n.enter("strikethrough");let s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),a(),s}function Yct(){return"~"}function Zct(e,t={}){const n=(t.align||[]).concat(),r=t.stringLength||Kct,i=[],a=[],s=[],o=[];let l=0,u=-1;for(;++ul&&(l=e[u].length);++To[T])&&(o[T]=x)}O.push(w)}a[u]=O,s[u]=S}let d=-1;if(typeof n=="object"&&"length"in n)for(;++do[d]&&(o[d]=w),p[d]=w),f[d]=x}a.splice(1,0,f),s.splice(1,0,p),u=-1;const g=[];for(;++u "),a.shift(2);const s=n.indentLines(n.containerFlow(e,a.current()),edt);return i(),s}function edt(e,t,n){return">"+(n?"":" ")+e}function tdt(e,t){return ute(e,t.inConstruct,!0)&&!ute(e,t.notInConstruct,!1)}function ute(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++rs&&(s=a):a=1,i=r+t.length,r=n.indexOf(t,i);return s}function ndt(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 rdt(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 idt(e,t,n,r){const i=rdt(n),a=e.value||"",s=i==="`"?"GraveAccent":"Tilde";if(ndt(e,n)){const f=n.enter("codeIndented"),p=n.indentLines(a,adt);return f(),p}const o=n.createTracker(r),l=i.repeat(Math.max(Gme(a,i)+1,3)),u=n.enter("codeFenced");let d=o.move(l);if(e.lang){const f=n.enter(`codeFencedLang${s}`);d+=o.move(n.safe(e.lang,{before:d,after:" ",encode:["`"],...o.current()})),f()}if(e.lang&&e.meta){const f=n.enter(`codeFencedMeta${s}`);d+=o.move(" "),d+=o.move(n.safe(e.meta,{before:d,after:` `,encode:["`"],...o.current()})),f()}return d+=o.move(` `),a&&(d+=o.move(a+` -`)),d+=o.move(l),u(),d}function Odt(e,t,n){return(n?"":" ")+e}function mW(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 Sdt(e,t,n,r){const i=mW(n),a=i==='"'?"Quote":"Apostrophe",s=n.enter("definition");let o=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("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":` -`,...l.current()}))),o(),e.title&&(o=n.enter(`title${a}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),o()),s(),u}function Edt(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}age.peek=wdt;function age(e,t,n,r){const i=Edt(n),a=n.enter("emphasis"),s=n.createTracker(r);let o=s.move(i);return o+=s.move(n.containerPhrasing(e,{before:o,after:i,...s.current()})),o+=s.move(i),a(),o}function wdt(e,t,n){return n.options.emphasis||"*"}function Tdt(e,t){let n=!1;return Eo(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,w3}),!!((!e.depth||e.depth<3)&&fW(e)&&(t.options.setext||n))}function xdt(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(Tdt(e,n)){const d=n.enter("headingSetext"),f=n.enter("phrasing"),p=n.containerPhrasing(e,{...a.current(),before:` +`)),d+=o.move(l),u(),d}function adt(e,t,n){return(n?"":" ")+e}function iW(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 sdt(e,t,n,r){const i=iW(n),a=i==='"'?"Quote":"Apostrophe",s=n.enter("definition");let o=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("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":` +`,...l.current()}))),o(),e.title&&(o=n.enter(`title${a}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),o()),s(),u}function odt(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}Yme.peek=ldt;function Yme(e,t,n,r){const i=odt(n),a=n.enter("emphasis"),s=n.createTracker(r);let o=s.move(i);return o+=s.move(n.containerPhrasing(e,{before:o,after:i,...s.current()})),o+=s.move(i),a(),o}function ldt(e,t,n){return n.options.emphasis||"*"}function udt(e,t){let n=!1;return So(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,SC}),!!((!e.depth||e.depth<3)&&tW(e)&&(t.options.setext||n))}function cdt(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(udt(e,n)){const d=n.enter("headingSetext"),f=n.enter("phrasing"),p=n.containerPhrasing(e,{...a.current(),before:` `,after:` `});return f(),d(),p+` `+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(` `))+1))}const s="#".repeat(i),o=n.enter("headingAtx"),l=n.enter("phrasing");a.move(s+" ");let u=n.containerPhrasing(e,{before:"# ",after:` -`,...a.current()});return/^[\t ]/.test(u)&&(u="&#x"+u.charCodeAt(0).toString(16).toUpperCase()+";"+u.slice(1)),u=u?s+" "+u:s,n.options.closeAtx&&(u+=" "+s),l(),o(),u}sge.peek=kdt;function sge(e){return e.value||""}function kdt(){return"<"}oge.peek=Adt;function oge(e,t,n,r){const i=mW(n),a=i==='"'?"Quote":"Apostrophe",s=n.enter("image");let o=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("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),o(),e.title&&(o=n.enter(`title${a}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),o()),u+=l.move(")"),s(),u}function Adt(){return"!"}lge.peek=_dt;function lge(e,t,n,r){const i=e.referenceType,a=n.enter("imageReference");let s=n.enter("label");const o=n.createTracker(r);let l=o.move("![");const u=n.safe(e.alt,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const d=n.stack;n.stack=[],s=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return s(),n.stack=d,a(),i==="full"||!u||u!==f?l+=o.move(f+"]"):i==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function _dt(){return"!"}uge.peek=Cdt;function uge(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a\u007F]/.test(e.url))}dge.peek=Rdt;function dge(e,t,n,r){const i=mW(n),a=i==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let o,l;if(cge(e,n)){const d=n.stack;n.stack=[],o=n.enter("autolink");let f=s.move("<");return f+=s.move(n.containerPhrasing(e,{before:f,after:">",...s.current()})),f+=s.move(">"),o(),n.stack=d,f}o=n.enter("link"),l=n.enter("label");let u=s.move("[");return u+=s.move(n.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=n.enter(`title${a}`),u+=s.move(" "+i),u+=s.move(n.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),l()),u+=s.move(")"),o(),u}function Rdt(e,t,n){return cge(e,n)?"<":"["}fge.peek=Idt;function fge(e,t,n,r){const i=e.referenceType,a=n.enter("linkReference");let s=n.enter("label");const o=n.createTracker(r);let l=o.move("[");const u=n.containerPhrasing(e,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const d=n.stack;n.stack=[],s=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return s(),n.stack=d,a(),i==="full"||!u||u!==f?l+=o.move(f+"]"):i==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function Idt(){return"["}function gW(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 Ndt(e){const t=gW(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 Ddt(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 hge(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 Pdt(e,t,n,r){const i=n.enter("list"),a=n.bulletCurrent;let s=e.ordered?Ddt(n):gW(n);const o=e.ordered?s==="."?")":".":Ndt(n);let l=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const d=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&d&&(!d.children||!d.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),hge(n)===s&&d){let f=-1;for(;++f-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let s=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const o=n.createTracker(r);o.move(a+" ".repeat(s-a.length)),o.shift(s);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,o.current()),d);return l(),u;function d(f,p,g){return p?(g?"":" ".repeat(s))+f:(g?a:a+" ".repeat(s-a.length))+f}}function $dt(e,t,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),s=n.containerPhrasing(e,r);return a(),i(),s}const Fdt=IO(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Bdt(e,t,n,r){return(e.children.some(function(s){return Fdt(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Udt(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}pge.peek=zdt;function pge(e,t,n,r){const i=Udt(n),a=n.enter("strong"),s=n.createTracker(r);let o=s.move(i+i);return o+=s.move(n.containerPhrasing(e,{before:o,after:i,...s.current()})),o+=s.move(i+i),a(),o}function zdt(e,t,n){return n.options.strong||"*"}function jdt(e,t,n,r){return n.safe(e.value,r)}function Hdt(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 Qdt(e,t,n){const r=(hge(n)+(n.options.ruleSpaces?" ":"")).repeat(Hdt(n));return n.options.ruleSpaces?r.slice(0,-1):r}const mge={blockquote:pdt,break:vte,code:vdt,definition:Sdt,emphasis:age,hardBreak:vte,heading:xdt,html:sge,image:oge,imageReference:lge,inlineCode:uge,link:dge,linkReference:fge,list:Pdt,listItem:Mdt,paragraph:$dt,root:Bdt,strong:pge,text:jdt,thematicBreak:Qdt};function Wdt(){return{enter:{table:Vdt,tableData:Ote,tableHeader:Ote,tableRow:Gdt},exit:{codeText:Ydt,table:qdt,tableData:y7,tableHeader:y7,tableRow:y7}}}function Vdt(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 qdt(e){this.exit(e),this.data.inTable=void 0}function Gdt(e){this.enter({type:"tableRow",children:[]},e)}function y7(e){this.exit(e)}function Ote(e){this.enter({type:"tableCell",children:[]},e)}function Ydt(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Zdt));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Zdt(e,t){return t==="|"?t:e}function Xdt(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` +`,...a.current()});return/^[\t ]/.test(u)&&(u="&#x"+u.charCodeAt(0).toString(16).toUpperCase()+";"+u.slice(1)),u=u?s+" "+u:s,n.options.closeAtx&&(u+=" "+s),l(),o(),u}Zme.peek=ddt;function Zme(e){return e.value||""}function ddt(){return"<"}Xme.peek=fdt;function Xme(e,t,n,r){const i=iW(n),a=i==='"'?"Quote":"Apostrophe",s=n.enter("image");let o=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("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),o(),e.title&&(o=n.enter(`title${a}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),o()),u+=l.move(")"),s(),u}function fdt(){return"!"}Kme.peek=hdt;function Kme(e,t,n,r){const i=e.referenceType,a=n.enter("imageReference");let s=n.enter("label");const o=n.createTracker(r);let l=o.move("![");const u=n.safe(e.alt,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const d=n.stack;n.stack=[],s=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return s(),n.stack=d,a(),i==="full"||!u||u!==f?l+=o.move(f+"]"):i==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function hdt(){return"!"}Jme.peek=pdt;function Jme(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a\u007F]/.test(e.url))}tge.peek=mdt;function tge(e,t,n,r){const i=iW(n),a=i==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let o,l;if(ege(e,n)){const d=n.stack;n.stack=[],o=n.enter("autolink");let f=s.move("<");return f+=s.move(n.containerPhrasing(e,{before:f,after:">",...s.current()})),f+=s.move(">"),o(),n.stack=d,f}o=n.enter("link"),l=n.enter("label");let u=s.move("[");return u+=s.move(n.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=n.enter(`title${a}`),u+=s.move(" "+i),u+=s.move(n.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),l()),u+=s.move(")"),o(),u}function mdt(e,t,n){return ege(e,n)?"<":"["}nge.peek=gdt;function nge(e,t,n,r){const i=e.referenceType,a=n.enter("linkReference");let s=n.enter("label");const o=n.createTracker(r);let l=o.move("[");const u=n.containerPhrasing(e,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const d=n.stack;n.stack=[],s=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return s(),n.stack=d,a(),i==="full"||!u||u!==f?l+=o.move(f+"]"):i==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function gdt(){return"["}function aW(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 bdt(e){const t=aW(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 ydt(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 rge(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 vdt(e,t,n,r){const i=n.enter("list"),a=n.bulletCurrent;let s=e.ordered?ydt(n):aW(n);const o=e.ordered?s==="."?")":".":bdt(n);let l=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const d=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&d&&(!d.children||!d.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),rge(n)===s&&d){let f=-1;for(;++f-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let s=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const o=n.createTracker(r);o.move(a+" ".repeat(s-a.length)),o.shift(s);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,o.current()),d);return l(),u;function d(f,p,g){return p?(g?"":" ".repeat(s))+f:(g?a:a+" ".repeat(s-a.length))+f}}function Edt(e,t,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),s=n.containerPhrasing(e,r);return a(),i(),s}const wdt=SO(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Tdt(e,t,n,r){return(e.children.some(function(s){return wdt(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function xdt(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}ige.peek=kdt;function ige(e,t,n,r){const i=xdt(n),a=n.enter("strong"),s=n.createTracker(r);let o=s.move(i+i);return o+=s.move(n.containerPhrasing(e,{before:o,after:i,...s.current()})),o+=s.move(i+i),a(),o}function kdt(e,t,n){return n.options.strong||"*"}function Adt(e,t,n,r){return n.safe(e.value,r)}function _dt(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 Cdt(e,t,n){const r=(rge(n)+(n.options.ruleSpaces?" ":"")).repeat(_dt(n));return n.options.ruleSpaces?r.slice(0,-1):r}const age={blockquote:Jct,break:cte,code:idt,definition:sdt,emphasis:Yme,hardBreak:cte,heading:cdt,html:Zme,image:Xme,imageReference:Kme,inlineCode:Jme,link:tge,linkReference:nge,list:vdt,listItem:Sdt,paragraph:Edt,root:Tdt,strong:ige,text:Adt,thematicBreak:Cdt};function Rdt(){return{enter:{table:Idt,tableData:dte,tableHeader:dte,tableRow:Ddt},exit:{codeText:Pdt,table:Ndt,tableData:d7,tableHeader:d7,tableRow:d7}}}function Idt(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 Ndt(e){this.exit(e),this.data.inTable=void 0}function Ddt(e){this.enter({type:"tableRow",children:[]},e)}function d7(e){this.exit(e)}function dte(e){this.enter({type:"tableCell",children:[]},e)}function Pdt(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Ldt));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Ldt(e,t){return t==="|"?t:e}function Mdt(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:s,tableCell:l,tableRow:o}};function s(g,O,S,T){return u(d(g,S,T),g.align)}function o(g,O,S,T){const w=f(g,S,T),x=u([w]);return x.slice(0,x.indexOf(` -`))}function l(g,O,S,T){const w=S.enter("tableCell"),x=S.enter("phrasing"),k=S.containerPhrasing(g,{...T,before:a,after:a});return x(),w(),k}function u(g,O){return ddt(g,{align:O,alignDelimiters:r,padding:n,stringLength:i})}function d(g,O,S){const T=g.children;let w=-1;const x=[],k=O.enter("table");for(;++w0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const mft={tokenize:wft,partial:!0};function gft(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Oft,continuation:{tokenize:Sft},exit:Eft}},text:{91:{name:"gfmFootnoteCall",tokenize:vft},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:bft,resolveTo:yft}}}}function bft(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return o;function o(l){if(!s||!s._balanced)return n(l);const u=wd(r.sliceSerialize({start:s.end,end:r.now()}));return u.codePointAt(0)!==94||!a.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function yft(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function vft(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,s;return o;function o(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),l}function l(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(f){if(a>999||f===93&&!s||f===null||f===91||Ti(f))return n(f);if(f===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(wd(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return Ti(f)||(s=!0),a++,e.consume(f),f===92?d:u}function d(f){return f===91||f===92||f===93?(e.consume(f),a++,u):u(f)}}function Oft(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,s=0,o;return l;function l(O){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(O),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(O){return O===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(O),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):n(O)}function d(O){if(s>999||O===93&&!o||O===null||O===91||Ti(O))return n(O);if(O===93){e.exit("chunkString");const S=e.exit("gfmFootnoteDefinitionLabelString");return a=wd(r.sliceSerialize(S)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(O),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return Ti(O)||(o=!0),s++,e.consume(O),O===92?f:d}function f(O){return O===91||O===92||O===93?(e.consume(O),s++,d):d(O)}function p(O){return O===58?(e.enter("definitionMarker"),e.consume(O),e.exit("definitionMarker"),i.includes(a)||i.push(a),gr(e,g,"gfmFootnoteDefinitionWhitespace")):n(O)}function g(O){return t(O)}}function Sft(e,t,n){return e.check(ux,t,e.attempt(mft,t,n))}function Eft(e){e.exit("gfmFootnoteDefinition")}function wft(e,t,n){const r=this;return gr(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(a):n(a)}}function Tft(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(s,o){let l=-1;for(;++l1?l(O):(s.consume(O),f++,g);if(f<2&&!n)return l(O);const T=s.exit("strikethroughSequenceTemporary"),w=I3(O);return T._open=!w||w===2&&!!S,T._close=!S||S===2&&!!w,o(O)}}}class xft{constructor(){this.map=[]}add(t,n,r){kft(this,t,n,r)}consume(t){if(this.map.sort(function(a,s){return a[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push([...t]),t.length=0;let i=r.pop();for(;i;)t.push(...i),i=r.pop();this.map.length=0}}function kft(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const ee=r.events[V][1].type;if(ee==="lineEnding"||ee==="linePrefix")V--;else break}const W=V>-1?r.events[V][1].type:null,re=W==="tableHead"||W==="tableRow"?N:l;return re===N&&r.parser.lazy[r.now().line]?n(B):re(B)}function l(B){return e.enter("tableHead"),e.enter("tableRow"),u(B)}function u(B){return B===124||(s=!0,a+=1),d(B)}function d(B){return B===null?n(B):An(B)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),g):n(B):Or(B)?gr(e,d,"whitespace")(B):(a+=1,s&&(s=!1,i+=1),B===124?(e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),s=!0,d):(e.enter("data"),f(B)))}function f(B){return B===null||B===124||Ti(B)?(e.exit("data"),d(B)):(e.consume(B),B===92?p:f)}function p(B){return B===92||B===124?(e.consume(B),f):f(B)}function g(B){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(B):(e.enter("tableDelimiterRow"),s=!1,Or(B)?gr(e,O,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):O(B))}function O(B){return B===45||B===58?T(B):B===124?(s=!0,e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),S):R(B)}function S(B){return Or(B)?gr(e,T,"whitespace")(B):T(B)}function T(B){return B===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(B),e.exit("tableDelimiterMarker"),w):B===45?(a+=1,w(B)):B===null||An(B)?_(B):R(B)}function w(B){return B===45?(e.enter("tableDelimiterFiller"),x(B)):R(B)}function x(B){return B===45?(e.consume(B),x):B===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(B),e.exit("tableDelimiterMarker"),k):(e.exit("tableDelimiterFiller"),k(B))}function k(B){return Or(B)?gr(e,_,"whitespace")(B):_(B)}function _(B){return B===124?O(B):B===null||An(B)?!s||i!==a?R(B):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(B)):R(B)}function R(B){return n(B)}function N(B){return e.enter("tableRow"),D(B)}function D(B){return B===124?(e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),D):B===null||An(B)?(e.exit("tableRow"),t(B)):Or(B)?gr(e,D,"whitespace")(B):(e.enter("data"),L(B))}function L(B){return B===null||B===124||Ti(B)?(e.exit("data"),D(B)):(e.consume(B),B===92?j:L)}function j(B){return B===92||B===124?(e.consume(B),L):L(B)}}function Rft(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],s=[0,0,0,0],o=!1,l=0,u,d,f;const p=new xft;for(;++nn[2]+1){const O=n[2]+1,S=n[3]-n[2]-1;e.add(O,S,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return i!==void 0&&(a.end=Object.assign({},ry(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function Ete(e,t,n,r,i){const a=[],s=ry(t.events,n);i&&(i.end=Object.assign({},s),a.push(["exit",i,t])),r.end=Object.assign({},s),a.push(["exit",r,t]),e.add(n+1,0,a)}function ry(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const Ift={name:"tasklistCheck",tokenize:Dft};function Nft(){return{text:{91:Ift}}}function Dft(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),a)}function a(l){return Ti(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),s):n(l)}function s(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(l)}function o(l){return An(l)?t(l):Or(l)?e.check({tokenize:Pft},t,n)(l):n(l)}}function Pft(e,t,n){return gr(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function Lft(e){return Fme([sft(),gft(),Tft(e),_ft(),Nft()])}const Mft={};function $ft(e){const t=this,n=e||Mft,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Lft(n)),a.push(nft()),s.push(rft(n))}const Fft=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]/i,Bft=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)(\/.*)?\]/i,Uft=({legacyTitle:e=!1}={})=>t=>{Eo(t,"blockquote",(n,r,i)=>{let a="",s="",o=!0,l=n.children.map(u=>{if(o&&u.type==="paragraph"){const d=u.children[0],f=d.type==="text"?d.value:"",p=e?Bft:Fft,g=f.match(p);if(g&&(o=!1,a=g[1].toLocaleLowerCase(),s=e&&g[2]||a.toLocaleUpperCase(),f.includes(` +`))}function l(g,O,S,T){const w=S.enter("tableCell"),x=S.enter("phrasing"),k=S.containerPhrasing(g,{...T,before:a,after:a});return x(),w(),k}function u(g,O){return Zct(g,{align:O,alignDelimiters:r,padding:n,stringLength:i})}function d(g,O,S){const T=g.children;let w=-1;const x=[],k=O.enter("table");for(;++w0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const eft={tokenize:lft,partial:!0};function tft(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:aft,continuation:{tokenize:sft},exit:oft}},text:{91:{name:"gfmFootnoteCall",tokenize:ift},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:nft,resolveTo:rft}}}}function nft(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return o;function o(l){if(!s||!s._balanced)return n(l);const u=wd(r.sliceSerialize({start:s.end,end:r.now()}));return u.codePointAt(0)!==94||!a.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function rft(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function ift(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,s;return o;function o(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),l}function l(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(f){if(a>999||f===93&&!s||f===null||f===91||Oi(f))return n(f);if(f===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(wd(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return Oi(f)||(s=!0),a++,e.consume(f),f===92?d:u}function d(f){return f===91||f===92||f===93?(e.consume(f),a++,u):u(f)}}function aft(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,s=0,o;return l;function l(O){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(O),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(O){return O===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(O),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):n(O)}function d(O){if(s>999||O===93&&!o||O===null||O===91||Oi(O))return n(O);if(O===93){e.exit("chunkString");const S=e.exit("gfmFootnoteDefinitionLabelString");return a=wd(r.sliceSerialize(S)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(O),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return Oi(O)||(o=!0),s++,e.consume(O),O===92?f:d}function f(O){return O===91||O===92||O===93?(e.consume(O),s++,d):d(O)}function p(O){return O===58?(e.enter("definitionMarker"),e.consume(O),e.exit("definitionMarker"),i.includes(a)||i.push(a),hr(e,g,"gfmFootnoteDefinitionWhitespace")):n(O)}function g(O){return t(O)}}function sft(e,t,n){return e.check(cx,t,e.attempt(eft,t,n))}function oft(e){e.exit("gfmFootnoteDefinition")}function lft(e,t,n){const r=this;return hr(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(a):n(a)}}function uft(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(s,o){let l=-1;for(;++l1?l(O):(s.consume(O),f++,g);if(f<2&&!n)return l(O);const T=s.exit("strikethroughSequenceTemporary"),w=CC(O);return T._open=!w||w===2&&!!S,T._close=!S||S===2&&!!w,o(O)}}}class cft{constructor(){this.map=[]}add(t,n,r){dft(this,t,n,r)}consume(t){if(this.map.sort(function(a,s){return a[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push([...t]),t.length=0;let i=r.pop();for(;i;)t.push(...i),i=r.pop();this.map.length=0}}function dft(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const ee=r.events[V][1].type;if(ee==="lineEnding"||ee==="linePrefix")V--;else break}const W=V>-1?r.events[V][1].type:null,re=W==="tableHead"||W==="tableRow"?N:l;return re===N&&r.parser.lazy[r.now().line]?n(B):re(B)}function l(B){return e.enter("tableHead"),e.enter("tableRow"),u(B)}function u(B){return B===124||(s=!0,a+=1),d(B)}function d(B){return B===null?n(B):xn(B)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),g):n(B):yr(B)?hr(e,d,"whitespace")(B):(a+=1,s&&(s=!1,i+=1),B===124?(e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),s=!0,d):(e.enter("data"),f(B)))}function f(B){return B===null||B===124||Oi(B)?(e.exit("data"),d(B)):(e.consume(B),B===92?p:f)}function p(B){return B===92||B===124?(e.consume(B),f):f(B)}function g(B){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(B):(e.enter("tableDelimiterRow"),s=!1,yr(B)?hr(e,O,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):O(B))}function O(B){return B===45||B===58?T(B):B===124?(s=!0,e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),S):R(B)}function S(B){return yr(B)?hr(e,T,"whitespace")(B):T(B)}function T(B){return B===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(B),e.exit("tableDelimiterMarker"),w):B===45?(a+=1,w(B)):B===null||xn(B)?_(B):R(B)}function w(B){return B===45?(e.enter("tableDelimiterFiller"),x(B)):R(B)}function x(B){return B===45?(e.consume(B),x):B===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(B),e.exit("tableDelimiterMarker"),k):(e.exit("tableDelimiterFiller"),k(B))}function k(B){return yr(B)?hr(e,_,"whitespace")(B):_(B)}function _(B){return B===124?O(B):B===null||xn(B)?!s||i!==a?R(B):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(B)):R(B)}function R(B){return n(B)}function N(B){return e.enter("tableRow"),P(B)}function P(B){return B===124?(e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),P):B===null||xn(B)?(e.exit("tableRow"),t(B)):yr(B)?hr(e,P,"whitespace")(B):(e.enter("data"),L(B))}function L(B){return B===null||B===124||Oi(B)?(e.exit("data"),P(B)):(e.consume(B),B===92?j:L)}function j(B){return B===92||B===124?(e.consume(B),L):L(B)}}function mft(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],s=[0,0,0,0],o=!1,l=0,u,d,f;const p=new cft;for(;++nn[2]+1){const O=n[2]+1,S=n[3]-n[2]-1;e.add(O,S,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return i!==void 0&&(a.end=Object.assign({},Yb(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function hte(e,t,n,r,i){const a=[],s=Yb(t.events,n);i&&(i.end=Object.assign({},s),a.push(["exit",i,t])),r.end=Object.assign({},s),a.push(["exit",r,t]),e.add(n+1,0,a)}function Yb(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const gft={name:"tasklistCheck",tokenize:yft};function bft(){return{text:{91:gft}}}function yft(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),a)}function a(l){return Oi(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),s):n(l)}function s(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(l)}function o(l){return xn(l)?t(l):yr(l)?e.check({tokenize:vft},t,n)(l):n(l)}}function vft(e,t,n){return hr(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function Oft(e){return _me([Wdt(),tft(),uft(e),hft(),bft()])}const Sft={};function Eft(e){const t=this,n=e||Sft,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Oft(n)),a.push(zdt()),s.push(jdt(n))}const wft=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]/i,Tft=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)(\/.*)?\]/i,xft=({legacyTitle:e=!1}={})=>t=>{So(t,"blockquote",(n,r,i)=>{let a="",s="",o=!0,l=n.children.map(u=>{if(o&&u.type==="paragraph"){const d=u.children[0],f=d.type==="text"?d.value:"",p=e?Tft:wft,g=f.match(p);if(g&&(o=!1,a=g[1].toLocaleLowerCase(),s=e&&g[2]||a.toLocaleUpperCase(),f.includes(` `)&&(u.children[0]={type:"text",value:f.replace(p,"").replace(/^\n+/,"")}),!f.includes(` -`))){const O=[];u.children.forEach((S,T)=>{T!=0&&(T==1&&S.type==="break"||O.push(S))}),u.children=[...O]}}return u});a&&(n.data={hName:"div",hProperties:{class:`markdown-alert markdown-alert-${a}`,dir:"auto"}},l.unshift({type:"paragraph",children:[zft(a),{type:"text",value:s.replace(/^\//,"")}],data:{hProperties:{class:"markdown-alert-title",dir:"auto"}}})),n.children=[...l]})};function zft(e){let t=jft[e]??"";return{type:"emphasis",data:{hName:"svg",hProperties:{class:"octicon",viewBox:"0 0 16 16",width:"16",height:"16",ariaHidden:"true"}},children:[{type:"emphasis",data:{hName:"path",hProperties:{d:t}},children:[]}]}}const jft={note:"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z",tip:"M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z",important:"M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",warning:"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",caution:"M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"};function Hft(e,t){if(typeof document>"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 Tge(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?Tge(t.parentElement):null}function Qft(e){var t=n=>{var r=Tge(n.target);r&&(r.classList.add("active"),Hft(r.dataset.code,function(){setTimeout(()=>{r.classList.remove("active")},2e3)}))};M.useEffect(()=>{var n,r;return(n=e.current)==null||n.removeEventListener("click",t,!1),(r=e.current)==null||r.addEventListener("click",t,!1),()=>{var i;(i=e.current)==null||i.removeEventListener("click",t,!1)}},[e])}var Wft=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],Vft=e=>e;const qft=sn.forwardRef((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:i,style:a,disableCopy:s=!1,skipHtml:o=!0,onScroll:l,onMouseOver:u,pluginsFilter:d,wrapperElement:f={},warpperElement:p={},urlTransform:g}=e,O=Dst(e,Wft),S=sn.useRef(null);M.useImperativeHandle(t,()=>Vh({},e,{mdp:S}),[S,e]);var T=(n||"")+" "+(r||"");Qft(S);var w=[...O.rehypePlugins||[]],x={allowElement:(R,N,D)=>O.allowElement?O.allowElement(R,N,D):/^[A-Za-z0-9]+$/.test(R.tagName)};o&&w.push(Ime);var k=[Uft,...O.remarkPlugins||[],$ft],_=Vh({},p,f);return I.jsx("div",Vh({ref:S,onScroll:l,onMouseOver:u},_,{className:T,style:a,children:I.jsx(Act,Vh({},x,O,{skipHtml:o,urlTransform:g||Vft,rehypePlugins:d?d("rehype",w):w,remarkPlugins:d?d("remark",k):k,children:i||""}))}))});var Gft=function(t){return n=>{Eo(n,r=>{r.type==="element"&&r.tagName==="code"&&r.data&&r.data.meta&&(r.properties=Vh({},r.properties,{"data-meta":String(r.data.meta)}))})}},Yft=function(t){return n=>{Eo(n,r=>{if(r.type==="element"&&r.tagName==="code"&&r.properties&&r.properties.dataMeta){r.data||(r.data={});var i=r.properties.dataMeta;typeof i=="string"&&(r.data.meta=i),delete r.properties.dataMeta}})}};const Zft=/[\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,Xft=Object.hasOwnProperty;class Kft{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let i=Jft(t,n===!0);const a=i;for(;Xft.call(r.occurrences,i);)r.occurrences[a]++,i=a+"-"+r.occurrences[a];return r.occurrences[i]=0,i}reset(){this.occurrences=Object.create(null)}}function Jft(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(Zft,"").replace(/ /g,"-"))}function xge(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 eht={},wte=new Kft;function tht(e){const n=(e||eht).prefix||"";return function(r){wte.reset(),Eo(r,"element",function(i){xge(i)&&!i.properties.id&&(i.properties.id=n+wte.slug(Ay(i)))})}}const Dp=function(e){if(e==null)return iht;if(typeof e=="string")return rht(e);if(typeof e=="object")return nht(e);if(typeof e=="function")return yW(e);throw new Error("Expected function, string, or array as `test`")};function nht(e){const t=[];let n=-1;for(;++n{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{Eo(r,(i,a,s)=>{if(i.type==="element"||i.type==="root"){let o=!1;i.children=i.children.filter(l=>{if(l.type==="raw"||l.type==="comment"){let u=(l.value||"").trim();if(u=u.replace(/^/,"$1"),u===t)return o=!0,!1;if(u===n)return o=!1,!1}return!o})}})}};var uht={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 cht(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 dht=(e,t)=>(n,r,i)=>{if(n.type==="element"&&i&&i.type==="root"&&/h(1|2|3|4|5|6)/.test(n.tagName)){var a=n.children&&n.children[0];a&&a.properties&&a.properties.ariaHidden==="true"&&(a.properties=Vh({class:"anchor"},a.properties),a.children=[uht])}if(n.type==="element"&&n.tagName==="pre"&&!e){var s=KQ(n.children);n.children.push(cht(s))}t&&t(n,r===null?void 0:r,i===null?void 0:i)},fht=[tht,oht,lht];const Age=sn.forwardRef((e,t)=>{var n,r=[Gft,Ime,Yft,...fht,[mrt,{rewrite:dht((n=e.disableCopy)!=null?n:!1,e.rehypeRewrite)}],[yrt,{properties:"attr"}],...e.rehypePlugins||[],[tnt,{ignoreMissing:!0}]];return I.jsx(qft,Vh({},e,{rehypePlugins:r,ref:t}))});function mM(e){return e.split(` +`))){const O=[];u.children.forEach((S,T)=>{T!=0&&(T==1&&S.type==="break"||O.push(S))}),u.children=[...O]}}return u});a&&(n.data={hName:"div",hProperties:{class:`markdown-alert markdown-alert-${a}`,dir:"auto"}},l.unshift({type:"paragraph",children:[kft(a),{type:"text",value:s.replace(/^\//,"")}],data:{hProperties:{class:"markdown-alert-title",dir:"auto"}}})),n.children=[...l]})};function kft(e){let t=Aft[e]??"";return{type:"emphasis",data:{hName:"svg",hProperties:{class:"octicon",viewBox:"0 0 16 16",width:"16",height:"16",ariaHidden:"true"}},children:[{type:"emphasis",data:{hName:"path",hProperties:{d:t}},children:[]}]}}const Aft={note:"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z",tip:"M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z",important:"M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",warning:"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",caution:"M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"};function _ft(e,t){if(typeof document>"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 pge(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?pge(t.parentElement):null}function Cft(e){var t=n=>{var r=pge(n.target);r&&(r.classList.add("active"),_ft(r.dataset.code,function(){setTimeout(()=>{r.classList.remove("active")},2e3)}))};M.useEffect(()=>{var n,r;return(n=e.current)==null||n.removeEventListener("click",t,!1),(r=e.current)==null||r.addEventListener("click",t,!1),()=>{var i;(i=e.current)==null||i.removeEventListener("click",t,!1)}},[e])}var Rft=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],Ift=e=>e;const Nft=rn.forwardRef((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:i,style:a,disableCopy:s=!1,skipHtml:o=!0,onScroll:l,onMouseOver:u,pluginsFilter:d,wrapperElement:f={},warpperElement:p={},urlTransform:g}=e,O=yst(e,Rft),S=rn.useRef(null);M.useImperativeHandle(t,()=>Uh({},e,{mdp:S}),[S,e]);var T=(n||"")+" "+(r||"");Cft(S);var w=[...O.rehypePlugins||[]],x={allowElement:(R,N,P)=>O.allowElement?O.allowElement(R,N,P):/^[A-Za-z0-9]+$/.test(R.tagName)};o&&w.push(Sme);var k=[xft,...O.remarkPlugins||[],Eft],_=Uh({},p,f);return I.jsx("div",Uh({ref:S,onScroll:l,onMouseOver:u},_,{className:T,style:a,children:I.jsx(fct,Uh({},x,O,{skipHtml:o,urlTransform:g||Ift,rehypePlugins:d?d("rehype",w):w,remarkPlugins:d?d("remark",k):k,children:i||""}))}))});var Dft=function(t){return n=>{So(n,r=>{r.type==="element"&&r.tagName==="code"&&r.data&&r.data.meta&&(r.properties=Uh({},r.properties,{"data-meta":String(r.data.meta)}))})}},Pft=function(t){return n=>{So(n,r=>{if(r.type==="element"&&r.tagName==="code"&&r.properties&&r.properties.dataMeta){r.data||(r.data={});var i=r.properties.dataMeta;typeof i=="string"&&(r.data.meta=i),delete r.properties.dataMeta}})}};const Lft=/[\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,Mft=Object.hasOwnProperty;class $ft{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let i=Fft(t,n===!0);const a=i;for(;Mft.call(r.occurrences,i);)r.occurrences[a]++,i=a+"-"+r.occurrences[a];return r.occurrences[i]=0,i}reset(){this.occurrences=Object.create(null)}}function Fft(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(Lft,"").replace(/ /g,"-"))}function mge(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 Bft={},pte=new $ft;function Uft(e){const n=(e||Bft).prefix||"";return function(r){pte.reset(),So(r,"element",function(i){mge(i)&&!i.properties.id&&(i.properties.id=n+pte.slug(vy(i)))})}}const Ap=function(e){if(e==null)return Hft;if(typeof e=="string")return jft(e);if(typeof e=="object")return zft(e);if(typeof e=="function")return oW(e);throw new Error("Expected function, string, or array as `test`")};function zft(e){const t=[];let n=-1;for(;++n{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{So(r,(i,a,s)=>{if(i.type==="element"||i.type==="root"){let o=!1;i.children=i.children.filter(l=>{if(l.type==="raw"||l.type==="comment"){let u=(l.value||"").trim();if(u=u.replace(/^/,"$1"),u===t)return o=!0,!1;if(u===n)return o=!1,!1}return!o})}})}};var Gft={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 Yft(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 Zft=(e,t)=>(n,r,i)=>{if(n.type==="element"&&i&&i.type==="root"&&/h(1|2|3|4|5|6)/.test(n.tagName)){var a=n.children&&n.children[0];a&&a.properties&&a.properties.ariaHidden==="true"&&(a.properties=Uh({class:"anchor"},a.properties),a.children=[Gft])}if(n.type==="element"&&n.tagName==="pre"&&!e){var s=zQ(n.children);n.children.push(Yft(s))}t&&t(n,r===null?void 0:r,i===null?void 0:i)},Xft=[Uft,Vft,qft];const bge=rn.forwardRef((e,t)=>{var n,r=[Dft,Sme,Pft,...Xft,[ert,{rewrite:Zft((n=e.disableCopy)!=null?n:!1,e.rehypeRewrite)}],[rrt,{properties:"attr"}],...e.rehypePlugins||[],[Utt,{ignoreMissing:!0}]];return I.jsx(Nft,Uh({},e,{rehypePlugins:r,ref:t}))});function sM(e){return e.split(` `).map(t=>t+" ").join(` -`)}function hht(e){const{title:t,feature:n,onClose:r}=e,i=Hf(),a=$T(),s=Pr(xp),{data:o,memoryKey:l,isLoading:u,isComplete:d,mutateAsync:f}=att(n),{data:p,isLoading:g,isComplete:O,mutateAsync:S}=stt(l),[T,w]=M.useState(""),x=document.getElementById(O3),k=M.useMemo(()=>u||g,[u,g]),_=M.useMemo(()=>d||O,[d,O]),R=M.useMemo(()=>p||o,[o,p]),{enqueueSnackbar:N}=CT(),D=M.useRef(null),L=wue(),{reset:j,formState:B}=L;M.useEffect(()=>{B.isSubmitSuccessful&&j({content:""})},[B.isSubmitSuccessful,j]),M.useEffect(()=>{w((x==null?void 0:x.getAttribute("content"))??"")},[x]),M.useEffect(()=>{T&&f(T)},[T,f]),M.useEffect(()=>{R&&D.current&&D.current.scrollTo({behavior:"smooth",top:D.current.scrollHeight})},[R]);const V=async()=>{R&&(await M1.write(R),N("URL Copied!",{variant:"success"}))},W=async()=>{S("Recreate the last statement with a paraphrase or adjust it slightly to better suit the user's input.")},re=q=>{S(q.content)},ee=(q=!1)=>{var Se,Z;if(!s.cmView)return;const te=s.cmView.state.selection.main;let K=Math.min(te.to,te.from);const G=Math.max(te.to,te.from);let ie=R;q||(K=G,ie=` -${ie}`);const H=q?K:K+1,Re=K+ie.length;(Se=s.doc)==null||Se.update((ke,$e)=>{ke.content.edit(K,G,ie),$e.set({selection:ke.content.indexRangeToPosRange([H,Re])})}),(Z=s.cmView)==null||Z.dispatch({changes:{from:K,to:G,insert:ie},selection:{anchor:H,head:Re}}),r()};return I.jsxs(zn,{gap:4,children:[I.jsx(ta,{bgcolor:i.palette.background.paper,p:1,borderRadius:2,border:1,children:I.jsx(Tr,{children:t})}),k&&I.jsx(kd,{sx:{marginX:"auto"}}),I.jsx(ta,{ref:D,sx:{height:350,overflow:"auto"},children:!k&&I.jsx(Age,{source:mM(R||""),wrapperElement:{"data-color-mode":a}})}),I.jsxs(zn,{gap:2,children:[I.jsx(dC,{in:_,children:I.jsxs(zn,{direction:"row",justifyContent:"flex-end",gap:1,children:[I.jsx(go,{variant:"outlined",onClick:W,children:I.jsx(u0e,{fontSize:"small"})}),I.jsx(go,{variant:"outlined",onClick:V,children:I.jsx(_R,{fontSize:"small"})}),I.jsx(go,{variant:"outlined",onClick:()=>ee(),children:"Insert below"}),I.jsx(go,{variant:"contained",onClick:()=>ee(!0),children:"Replace"})]})}),I.jsx(Mc,{children:I.jsx(SO,{defaultValues:{content:""},formContext:L,onSuccess:re,children:I.jsx(zn,{gap:4,alignItems:"flex-end",children:I.jsx(NT,{variant:"outlined",name:"content",placeholder:"Tell Yorkie what to do next",required:!0,fullWidth:!0,disabled:!_,size:"small",InputProps:{startAdornment:I.jsx(YP,{position:"start",children:I.jsx("img",{src:"/yorkie.png",height:20})}),endAdornment:I.jsx(dC,{in:_,children:I.jsx(YP,{position:"end",children:I.jsx(So,{type:"submit",edge:"end",children:I.jsx(c0e,{})})})})}})})})})]})]})}function pht(e){const{onCloseIntelligence:t,...n}=e,r=()=>{var a;(a=n==null?void 0:n.onClose)==null||a.call(n,new Event("Close Modal"),"escapeKeyDown")},i=()=>{t(),r()};return I.jsx(pO,{disableAutoFocus:!0,...n,children:I.jsx(Hs,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4},children:I.jsxs(zn,{gap:4,children:[I.jsxs(zn,{alignItems:"center",gap:1,children:[I.jsx("img",{src:"/yorkie.png",alt:"yorkie",width:60}),I.jsxs(Tr,{variant:"h6",align:"center",children:["Do you want to discard",I.jsx("br",{}),"the Yorkie response?"]})]}),I.jsxs(zn,{direction:"row",gap:1,justifyContent:"center",children:[I.jsx(go,{variant:"outlined",onClick:i,children:"Discard"}),I.jsx(go,{variant:"contained",onClick:r,children:"Cancel"})]})]})})})}function mht(e){const{onClose:t}=e,n=Hf(),r=Pr(xp),i=M.useRef(null),[a,s]=M.useState(null),[o,l]=M.useState(null),[u,d]=M.useState(),[f,p]=M.useState(!1),g=M.useRef(null),O=M.useMemo(()=>r.cmView.contentDOM.getBoundingClientRect().width-12,[r.cmView]);M.useEffect(()=>{if(i.current)return d(i.current),()=>{d(void 0)}},[]);const S=(w,x)=>{l(w),s(x)},T=()=>{p(w=>!w)};return I.jsxs(ta,{sx:{position:"absolute",mt:1},children:[I.jsx("span",{ref:i,style:{marginTop:4}}),I.jsx(gO,{open:!!u,anchorEl:u,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:T,children:I.jsx(ooe,{ref:g,sx:{boxShadow:n.shadows[11],borderRadius:2,width:O,padding:2},children:o&&a?I.jsx(hht,{title:a,feature:o,onClose:t}):I.jsx(Ket,{onSelectFeature:S})})}),I.jsx(pht,{open:f,onCloseIntelligence:t,onClose:T})]})}function ght(){const[e,t]=M.useState(!1),[n,r]=M.useState(null),{yorkieIntelligence:i}=Pr(WR);M.useEffect(()=>{const s=document.getElementById(O3);r(s),document.addEventListener("selectionchange",function(){const o=document.getElementById(O3);r(o)})},[]);const a=()=>{t(s=>!s)};if(n)return I.jsxs(I.Fragment,{children:[I.jsxs(go,{onClick:a,sx:{padding:"3px 5px",border:"none","&:hover":{border:"none"}},disabled:!(i!=null&&i.enable),children:[I.jsx("img",{src:"/yorkie.png",height:20,alt:"yorkie_img",style:{filter:i!=null&&i.enable?"none":"grayscale(100%)"}}),I.jsx(Tr,{variant:"subtitle1",fontSize:14,children:"Yorkie Intelligence"})]}),e&&aO.createPortal(I.jsx(mht,{onClose:a}),n)]})}function bht({toolBarState:{show:e,position:t,selectedFormats:n},onChangeToolBarState:r}){const{toggleButtonChangeHandler:i}=n0e(),[a,s]=M.useState(null);if(HR(()=>{s(e)},500,[e]),!!a)return I.jsx(gO,{open:a,anchorReference:"anchorPosition",anchorPosition:{top:t.top,left:t.left},onClose:()=>r(o=>({...o,show:!1})),anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"},disableAutoFocus:!0,TransitionComponent:dC,TransitionProps:{timeout:300},children:I.jsxs(zn,{direction:"row",margin:"5px 7px",children:[I.jsx(ght,{}),I.jsx(Iv,{orientation:"vertical",flexItem:!0,sx:{height:"20px",alignSelf:"center",margin:"0 5px"}}),I.jsx(woe,{value:Array.from(n),onChange:i(n,r),exclusive:!0,"aria-label":"text formatting",children:I.jsxs(zn,{direction:"row",gap:"5px",alignItems:"center",children:[I.jsx(JA,{color:n.has(uu.ITALIC)?"primary":"secondary",title:"Cmd+I / Ctrl+I",value:uu.ITALIC,children:I.jsx("i",{children:"i"})}),I.jsx(JA,{color:n.has(uu.BOLD)?"primary":"secondary",title:"Cmd+B / Ctrl+B",value:uu.BOLD,children:I.jsx("strong",{children:"B"})}),I.jsx(JA,{color:n.has(uu.STRIKETHROUGH)?"primary":"secondary",title:"Cmd+Shift+X / Ctrl+Shfit+X",value:uu.STRIKETHROUGH,children:"~"}),I.jsx(JA,{color:n.has(uu.CODE)?"primary":"secondary",title:"Cmd+E / Ctrl+E",value:uu.CODE,children:""})]})})]})})}function kte(){var T;const e=Mu(),t=$T(),[n,r]=M.useState(),i=Pr(xp),a=Pr(WR),s=Pr(pR),{mutateAsync:o}=g$e(),{mutateAsync:l}=b$e(),[u,d]=M.useState({show:!1,position:{top:0,left:0},selectedFormats:new Set}),{getFormatMarkerLength:f,applyFormat:p,setKeymapConfig:g}=n0e(),O=M.useCallback(w=>{w&&r(w)},[]),S=M.useCallback(w=>{const x=w.state.selection.main;if(x.empty)d(k=>({...k,show:!1,selectedFormats:new Set}));else{const k=w.view.coordsAtPos(x.from);if(k){const _=f(w.view.state,x.from),R=w.state.sliceDoc(x.from-_,x.from),N=w.state.sliceDoc(x.to,x.to+_),D=new Set,L=(j,B)=>{R.includes(j)&&N.includes(j)&&D.add(B)};L("**",uu.BOLD),L("_",uu.ITALIC),L("`",uu.CODE),L("~~",uu.STRIKETHROUGH),d(j=>({...j,show:!0,position:{top:k.top-5,left:k.left},selectedFormats:D}))}}},[f]);return M.useEffect(()=>{var _,R;let w;if(!n||!i.doc||!i.client||typeof((_=a.fileUpload)==null?void 0:_.enable)!="boolean")return;const x=async N=>{if(!s.data)return"";const D=await o({workspaceId:s.data.id,contentLength:new Blob([N]).size,contentType:N.type});return await l({...D,file:N}),`https://codepair-api.yorkie.dev/files/${D.fileKey}`},k=Dr.create({doc:((R=i.doc.getRoot().content)==null?void 0:R.toString())??"",extensions:[xO.of(g()),FYe,ZJe(),Let(i.doc,i.client),t=="light"?net:set,Kt.theme({"&":{width:"100%"}}),Kt.lineWrapping,Tet,...a.fileUpload.enable?[fet(x,i.doc)]:[],Kt.updateListener.of(N=>{N.selectionSet&&S(N)})]});return w=new Kt({state:k,parent:n}),e(l9e(w)),()=>{w==null||w.destroy()}},[e,i.client,i.doc,n,t,s.data,o,l,(T=a.fileUpload)==null?void 0:T.enable,p,S,g]),I.jsx(WL.ScrollSyncPane,{children:I.jsxs("div",{style:{height:"100%",overflow:"auto"},children:[I.jsx("div",{ref:O,style:{display:"flex",alignItems:"stretch",minHeight:"100%"}}),!!u.show&&I.jsx(bht,{toolBarState:u,onChangeToolBarState:d})]})})}class hu{constructor(t,n,r){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=n,this.end=r}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new hu(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}}class wc{constructor(t,n){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=n}range(t,n){return new wc(n,hu.range(this,t))}}class $t{constructor(t,n){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var r="KaTeX parse error: "+t,i,a,s=n&&n.loc;if(s&&s.start<=s.end){var o=s.lexer.input;i=s.start,a=s.end,i===o.length?r+=" at end of input: ":r+=" at position "+(i+1)+": ";var l=o.slice(i,a).replace(/[^]/g,"$&̲"),u;i>15?u="…"+o.slice(i-15,i):u=o.slice(0,i);var d;a+15":">","<":"<",'"':""","'":"'"},wht=/[&><"']/g;function Tht(e){return String(e).replace(wht,t=>Eht[t])}var _ge=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},xht=function(t){var n=_ge(t);return n.type==="mathord"||n.type==="textord"||n.type==="atom"},kht=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},Aht=function(t){var n=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);return n?n[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(n[1])?null:n[1].toLowerCase():"_relative"},Nn={contains:yht,deflt:vht,escape:Tht,hyphenate:Sht,getBaseElem:_ge,isCharacterBox:xht,protocolFromUrl:Aht},T_={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand ",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function _ht(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if(typeof n!="string")return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class OW{constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var n in T_)if(T_.hasOwnProperty(n)){var r=T_[n];this[n]=t[n]!==void 0?r.processor?r.processor(t[n]):t[n]:_ht(r)}}reportNonstrict(t,n,r){var i=this.strict;if(typeof i=="function"&&(i=i(t,n,r)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new $t("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+t+"]"),r);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]"))}}useStrictBehavior(t,n,r){var i=this.strict;if(typeof i=="function")try{i=i(t,n,r)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]")),!1)}isTrusted(t){if(t.url&&!t.protocol){var n=Nn.protocolFromUrl(t.url);if(n==null)return!1;t.protocol=n}var r=typeof this.trust=="function"?this.trust(t):this.trust;return!!r}}class l0{constructor(t,n,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=n,this.cramped=r}sup(){return bf[Cht[this.id]]}sub(){return bf[Rht[this.id]]}fracNum(){return bf[Iht[this.id]]}fracDen(){return bf[Nht[this.id]]}cramp(){return bf[Dht[this.id]]}text(){return bf[Pht[this.id]]}isTight(){return this.size>=2}}var SW=0,N3=1,ev=2,rp=3,Zw=4,bc=5,Yv=6,Wo=7,bf=[new l0(SW,0,!1),new l0(N3,0,!0),new l0(ev,1,!1),new l0(rp,1,!0),new l0(Zw,2,!1),new l0(bc,2,!0),new l0(Yv,3,!1),new l0(Wo,3,!0)],Cht=[Zw,bc,Zw,bc,Yv,Wo,Yv,Wo],Rht=[bc,bc,bc,bc,Wo,Wo,Wo,Wo],Iht=[ev,rp,Zw,bc,Yv,Wo,Yv,Wo],Nht=[rp,rp,bc,bc,Wo,Wo,Wo,Wo],Dht=[N3,N3,rp,rp,bc,bc,Wo,Wo],Pht=[SW,N3,ev,rp,ev,rp,ev,rp],Ln={DISPLAY:bf[SW],TEXT:bf[ev],SCRIPT:bf[Zw],SCRIPTSCRIPT:bf[Yv]},gM=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function Lht(e){for(var t=0;t=i[0]&&e<=i[1])return n.name}return null}var x_=[];gM.forEach(e=>e.blocks.forEach(t=>x_.push(...t)));function Cge(e){for(var t=0;t=x_[t]&&e<=x_[t+1])return!0;return!1}var Vb=80,Mht=function(t,n){return"M95,"+(622+t+n)+` +`)}function Kft(e){const{title:t,feature:n,onClose:r}=e,i=Uf(),a=BT(),s=Pr(vp),{data:o,memoryKey:l,isLoading:u,isComplete:d,mutateAsync:f}=Qet(n),{data:p,isLoading:g,isComplete:O,mutateAsync:S}=Wet(l),[T,w]=M.useState(""),x=document.getElementById(yC),k=M.useMemo(()=>u||g,[u,g]),_=M.useMemo(()=>d||O,[d,O]),R=M.useMemo(()=>p||o,[o,p]),{enqueueSnackbar:N}=IT(),P=M.useRef(null),L=pue(),{reset:j,formState:B}=L;M.useEffect(()=>{B.isSubmitSuccessful&&j({content:""})},[B.isSubmitSuccessful,j]),M.useEffect(()=>{w((x==null?void 0:x.getAttribute("content"))??"")},[x]),M.useEffect(()=>{T&&f(T)},[T,f]),M.useEffect(()=>{R&&P.current&&P.current.scrollTo({behavior:"smooth",top:P.current.scrollHeight})},[R]);const V=async()=>{R&&(await F1.write(R),N("URL Copied!",{variant:"success"}))},W=async()=>{S("Recreate the last statement with a paraphrase or adjust it slightly to better suit the user's input.")},re=q=>{S(q.content)},ee=(q=!1)=>{var Se,Z;if(!s.cmView)return;const ne=s.cmView.state.selection.main;let K=Math.min(ne.to,ne.from);const G=Math.max(ne.to,ne.from);let ie=R;q||(K=G,ie=` +${ie}`);const H=q?K:K+1,Re=K+ie.length;(Se=s.doc)==null||Se.update((ke,$e)=>{ke.content.edit(K,G,ie),$e.set({selection:ke.content.indexRangeToPosRange([H,Re])})}),(Z=s.cmView)==null||Z.dispatch({changes:{from:K,to:G,insert:ie},selection:{anchor:H,head:Re}}),r()};return I.jsxs(Bn,{gap:4,children:[I.jsx(ea,{bgcolor:i.palette.background.paper,p:1,borderRadius:2,border:1,children:I.jsx(wr,{children:t})}),k&&I.jsx(kd,{sx:{marginX:"auto"}}),I.jsx(ea,{ref:P,sx:{height:350,overflow:"auto"},children:!k&&I.jsx(bge,{source:sM(R||""),wrapperElement:{"data-color-mode":a}})}),I.jsxs(Bn,{gap:2,children:[I.jsx(d3,{in:_,children:I.jsxs(Bn,{direction:"row",justifyContent:"flex-end",gap:1,children:[I.jsx(po,{variant:"outlined",onClick:W,children:I.jsx(Jpe,{fontSize:"small"})}),I.jsx(po,{variant:"outlined",onClick:V,children:I.jsx(kR,{fontSize:"small"})}),I.jsx(po,{variant:"outlined",onClick:()=>ee(),children:"Insert below"}),I.jsx(po,{variant:"contained",onClick:()=>ee(!0),children:"Replace"})]})}),I.jsx(Lc,{children:I.jsx(dO,{defaultValues:{content:""},formContext:L,onSuccess:re,children:I.jsx(Bn,{gap:4,alignItems:"flex-end",children:I.jsx(PT,{variant:"outlined",name:"content",placeholder:"Tell Yorkie what to do next",required:!0,fullWidth:!0,disabled:!_,size:"small",InputProps:{startAdornment:I.jsx(jP,{position:"start",children:I.jsx("img",{src:"/yorkie.png",height:20})}),endAdornment:I.jsx(d3,{in:_,children:I.jsx(jP,{position:"end",children:I.jsx(Oo,{type:"submit",edge:"end",children:I.jsx(e0e,{})})})})}})})})})]})]})}function Jft(e){const{onCloseIntelligence:t,...n}=e,r=()=>{var a;(a=n==null?void 0:n.onClose)==null||a.call(n,new Event("Close Modal"),"escapeKeyDown")},i=()=>{t(),r()};return I.jsx(iO,{disableAutoFocus:!0,...n,children:I.jsx(Gs,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4},children:I.jsxs(Bn,{gap:4,children:[I.jsxs(Bn,{alignItems:"center",gap:1,children:[I.jsx("img",{src:"/yorkie.png",alt:"yorkie",width:60}),I.jsxs(wr,{variant:"h6",align:"center",children:["Do you want to discard",I.jsx("br",{}),"the Yorkie response?"]})]}),I.jsxs(Bn,{direction:"row",gap:1,justifyContent:"center",children:[I.jsx(po,{variant:"outlined",onClick:i,children:"Discard"}),I.jsx(po,{variant:"contained",onClick:r,children:"Cancel"})]})]})})})}function eht(e){const{onClose:t}=e,n=Uf(),r=Pr(vp),i=M.useRef(null),[a,s]=M.useState(null),[o,l]=M.useState(null),[u,d]=M.useState(),[f,p]=M.useState(!1),g=M.useRef(null),O=M.useMemo(()=>r.cmView.contentDOM.getBoundingClientRect().width-12,[r.cmView]);M.useEffect(()=>{if(i.current)return d(i.current),()=>{d(void 0)}},[]);const S=(w,x)=>{l(w),s(x)},T=()=>{p(w=>!w)};return I.jsxs(ea,{sx:{position:"absolute",mt:1},children:[I.jsx("span",{ref:i,style:{marginTop:4}}),I.jsx(sO,{open:!!u,anchorEl:u,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:T,children:I.jsx(Kse,{ref:g,sx:{boxShadow:n.shadows[11],borderRadius:2,width:O,padding:2},children:o&&a?I.jsx(Kft,{title:a,feature:o,onClose:t}):I.jsx($et,{onSelectFeature:S})})}),I.jsx(Jft,{open:f,onCloseIntelligence:t,onClose:T})]})}function tht(){const[e,t]=M.useState(!1),[n,r]=M.useState(null),{yorkieIntelligence:i}=Pr(HR);M.useEffect(()=>{const s=document.getElementById(yC);r(s),document.addEventListener("selectionchange",function(){const o=document.getElementById(yC);r(o)})},[]);const a=()=>{t(s=>!s)};if(n)return I.jsxs(I.Fragment,{children:[I.jsxs(po,{onClick:a,sx:{padding:"3px 5px",border:"none","&:hover":{border:"none"}},disabled:!(i!=null&&i.enable),children:[I.jsx("img",{src:"/yorkie.png",height:20,alt:"yorkie_img",style:{filter:i!=null&&i.enable?"none":"grayscale(100%)"}}),I.jsx(wr,{variant:"subtitle1",fontSize:14,children:"Yorkie Intelligence"})]}),e&&Yv.createPortal(I.jsx(eht,{onClose:a}),n)]})}function nht({toolBarState:{show:e,position:t,selectedFormats:n},onChangeToolBarState:r}){const{toggleButtonChangeHandler:i}=Vpe(),[a,s]=M.useState(null);if(zR(()=>{s(e)},500,[e]),!!a)return I.jsx(sO,{open:a,anchorReference:"anchorPosition",anchorPosition:{top:t.top,left:t.left},onClose:()=>r(o=>({...o,show:!1})),anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"},disableAutoFocus:!0,TransitionComponent:d3,TransitionProps:{timeout:300},children:I.jsxs(Bn,{direction:"row",margin:"5px 7px",children:[I.jsx(tht,{}),I.jsx(wv,{orientation:"vertical",flexItem:!0,sx:{height:"20px",alignSelf:"center",margin:"0 5px"}}),I.jsx(poe,{value:Array.from(n),onChange:i(n,r),exclusive:!0,"aria-label":"text formatting",children:I.jsxs(Bn,{direction:"row",gap:"5px",alignItems:"center",children:[I.jsx(JA,{color:n.has(au.ITALIC)?"primary":"secondary",title:"Cmd+I / Ctrl+I",value:au.ITALIC,children:I.jsx("i",{children:"i"})}),I.jsx(JA,{color:n.has(au.BOLD)?"primary":"secondary",title:"Cmd+B / Ctrl+B",value:au.BOLD,children:I.jsx("strong",{children:"B"})}),I.jsx(JA,{color:n.has(au.STRIKETHROUGH)?"primary":"secondary",title:"Cmd+Shift+X / Ctrl+Shfit+X",value:au.STRIKETHROUGH,children:"~"}),I.jsx(JA,{color:n.has(au.CODE)?"primary":"secondary",title:"Cmd+E / Ctrl+E",value:au.CODE,children:""})]})})]})})}function bte(){var T;const e=Du(),t=BT(),[n,r]=M.useState(),i=Pr(vp),a=Pr(HR),s=Pr(fR),{mutateAsync:o}=a$e(),{mutateAsync:l}=s$e(),[u,d]=M.useState({show:!1,position:{top:0,left:0},selectedFormats:new Set}),{getFormatMarkerLength:f,applyFormat:p,setKeymapConfig:g}=Vpe(),O=M.useCallback(w=>{w&&r(w)},[]),S=M.useCallback(w=>{const x=w.state.selection.main;if(x.empty)d(k=>({...k,show:!1,selectedFormats:new Set}));else{const k=w.view.coordsAtPos(x.from);if(k){const _=f(w.view.state,x.from),R=w.state.sliceDoc(x.from-_,x.from),N=w.state.sliceDoc(x.to,x.to+_),P=new Set,L=(j,B)=>{R.includes(j)&&N.includes(j)&&P.add(B)};L("**",au.BOLD),L("_",au.ITALIC),L("`",au.CODE),L("~~",au.STRIKETHROUGH),d(j=>({...j,show:!0,position:{top:k.top-5,left:k.left},selectedFormats:P}))}}},[f]);return M.useEffect(()=>{var _,R;let w;if(!n||!i.doc||!i.client||typeof((_=a.fileUpload)==null?void 0:_.enable)!="boolean")return;const x=async N=>{if(!s.data)return"";const P=await o({workspaceId:s.data.id,contentLength:new Blob([N]).size,contentType:N.type});return await l({...P,file:N}),`https://codepair-api.yorkie.dev/files/${P.fileKey}`},k=Dr.create({doc:((R=i.doc.getRoot().content)==null?void 0:R.toString())??"",extensions:[mO.of(g()),wYe,LJe(),vet(i.doc,i.client),t=="light"?zJe:WJe,en.theme({"&":{width:"100%"}}),en.lineWrapping,oet,...a.fileUpload.enable?[ZJe(x,i.doc)]:[],en.updateListener.of(N=>{N.selectionSet&&S(N)})]});return w=new en({state:k,parent:n}),e(XMe(w)),()=>{w==null||w.destroy()}},[e,i.client,i.doc,n,t,s.data,o,l,(T=a.fileUpload)==null?void 0:T.enable,p,S,g]),I.jsx(ML.ScrollSyncPane,{children:I.jsxs("div",{style:{height:"100%",overflow:"auto"},children:[I.jsx("div",{ref:O,style:{display:"flex",alignItems:"stretch",minHeight:"100%"}}),!!u.show&&I.jsx(nht,{toolBarState:u,onChangeToolBarState:d})]})})}class uu{constructor(t,n,r){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=n,this.end=r}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new uu(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}}class wc{constructor(t,n){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=n}range(t,n){return new wc(n,uu.range(this,t))}}class Mt{constructor(t,n){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var r="KaTeX parse error: "+t,i,a,s=n&&n.loc;if(s&&s.start<=s.end){var o=s.lexer.input;i=s.start,a=s.end,i===o.length?r+=" at end of input: ":r+=" at position "+(i+1)+": ";var l=o.slice(i,a).replace(/[^]/g,"$&̲"),u;i>15?u="…"+o.slice(i-15,i):u=o.slice(0,i);var d;a+15":">","<":"<",'"':""","'":"'"},lht=/[&><"']/g;function uht(e){return String(e).replace(lht,t=>oht[t])}var yge=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},cht=function(t){var n=yge(t);return n.type==="mathord"||n.type==="textord"||n.type==="atom"},dht=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},fht=function(t){var n=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);return n?n[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(n[1])?null:n[1].toLowerCase():"_relative"},Nn={contains:rht,deflt:iht,escape:uht,hyphenate:sht,getBaseElem:yge,isCharacterBox:cht,protocolFromUrl:fht},T_={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand ",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function hht(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if(typeof n!="string")return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class uW{constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var n in T_)if(T_.hasOwnProperty(n)){var r=T_[n];this[n]=t[n]!==void 0?r.processor?r.processor(t[n]):t[n]:hht(r)}}reportNonstrict(t,n,r){var i=this.strict;if(typeof i=="function"&&(i=i(t,n,r)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new Mt("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+t+"]"),r);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]"))}}useStrictBehavior(t,n,r){var i=this.strict;if(typeof i=="function")try{i=i(t,n,r)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]")),!1)}isTrusted(t){if(t.url&&!t.protocol){var n=Nn.protocolFromUrl(t.url);if(n==null)return!1;t.protocol=n}var r=typeof this.trust=="function"?this.trust(t):this.trust;return!!r}}class t0{constructor(t,n,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=n,this.cramped=r}sup(){return hf[pht[this.id]]}sub(){return hf[mht[this.id]]}fracNum(){return hf[ght[this.id]]}fracDen(){return hf[bht[this.id]]}cramp(){return hf[yht[this.id]]}text(){return hf[vht[this.id]]}isTight(){return this.size>=2}}var cW=0,RC=1,Vy=2,Zh=3,Kw=4,gc=5,Bv=6,qo=7,hf=[new t0(cW,0,!1),new t0(RC,0,!0),new t0(Vy,1,!1),new t0(Zh,1,!0),new t0(Kw,2,!1),new t0(gc,2,!0),new t0(Bv,3,!1),new t0(qo,3,!0)],pht=[Kw,gc,Kw,gc,Bv,qo,Bv,qo],mht=[gc,gc,gc,gc,qo,qo,qo,qo],ght=[Vy,Zh,Kw,gc,Bv,qo,Bv,qo],bht=[Zh,Zh,gc,gc,qo,qo,qo,qo],yht=[RC,RC,Zh,Zh,gc,gc,qo,qo],vht=[cW,RC,Vy,Zh,Vy,Zh,Vy,Zh],Ln={DISPLAY:hf[cW],TEXT:hf[Vy],SCRIPT:hf[Kw],SCRIPTSCRIPT:hf[Bv]},oM=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function Oht(e){for(var t=0;t=i[0]&&e<=i[1])return n.name}return null}var x_=[];oM.forEach(e=>e.blocks.forEach(t=>x_.push(...t)));function vge(e){for(var t=0;t=x_[t]&&e<=x_[t+1])return!0;return!1}var Fb=80,Sht=function(t,n){return"M95,"+(622+t+n)+` c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 @@ -349,7 +348,7 @@ c5.3,-9.3,12,-14,20,-14 H400000v`+(40+t)+`H845.2724 s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z -M`+(834+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},$ht=function(t,n){return"M263,"+(601+t+n)+`c0.7,0,18,39.7,52,119 +M`+(834+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Eht=function(t,n){return"M263,"+(601+t+n)+`c0.7,0,18,39.7,52,119 c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 c340,-704.7,510.7,-1060.3,512,-1067 l`+t/2.084+" -"+t+` @@ -359,7 +358,7 @@ s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5, c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z -M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Fht=function(t,n){return"M983 "+(10+t+n)+` +M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},wht=function(t,n){return"M983 "+(10+t+n)+` l`+t/3.13+" -"+t+` c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+` H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 @@ -368,7 +367,7 @@ c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 c53.7,-170.3,84.5,-266.8,92.5,-289.5z -M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Bht=function(t,n){return"M424,"+(2398+t+n)+` +M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Tht=function(t,n){return"M424,"+(2398+t+n)+` c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 @@ -378,18 +377,18 @@ v`+(40+t)+`H1014.6 s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+n+` -h400000v`+(40+t)+"h-400000z"},Uht=function(t,n){return"M473,"+(2713+t+n)+` +h400000v`+(40+t)+"h-400000z"},xht=function(t,n){return"M473,"+(2713+t+n)+` c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+` c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7 s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, -606zM`+(1001+t)+" "+n+"h400000v"+(40+t)+"H1017.7z"},zht=function(t){var n=t/2;return"M400000 "+t+" H0 L"+n+" 0 l65 45 L145 "+(t-80)+" H400000z"},jht=function(t,n,r){var i=r-54-n-t;return"M702 "+(t+n)+"H400000"+(40+t)+` +606zM`+(1001+t)+" "+n+"h400000v"+(40+t)+"H1017.7z"},kht=function(t){var n=t/2;return"M400000 "+t+" H0 L"+n+" 0 l65 45 L145 "+(t-80)+" H400000z"},Aht=function(t,n,r){var i=r-54-n-t;return"M702 "+(t+n)+"H400000"+(40+t)+` H742v`+i+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 -219 661 l218 661zM702 `+n+"H400000v"+(40+t)+"H742z"},Hht=function(t,n,r){n=1e3*n;var i="";switch(t){case"sqrtMain":i=Mht(n,Vb);break;case"sqrtSize1":i=$ht(n,Vb);break;case"sqrtSize2":i=Fht(n,Vb);break;case"sqrtSize3":i=Bht(n,Vb);break;case"sqrtSize4":i=Uht(n,Vb);break;case"sqrtTall":i=jht(n,Vb,r)}return i},Qht=function(t,n){switch(t){case"⎜":return"M291 0 H417 V"+n+" H291z M291 0 H417 V"+n+" H291z";case"∣":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z";case"∥":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z"+("M367 0 H410 V"+n+" H367z M367 0 H410 V"+n+" H367z");case"⎟":return"M457 0 H583 V"+n+" H457z M457 0 H583 V"+n+" H457z";case"⎢":return"M319 0 H403 V"+n+" H319z M319 0 H403 V"+n+" H319z";case"⎥":return"M263 0 H347 V"+n+" H263z M263 0 H347 V"+n+" H263z";case"⎪":return"M384 0 H504 V"+n+" H384z M384 0 H504 V"+n+" H384z";case"⏐":return"M312 0 H355 V"+n+" H312z M312 0 H355 V"+n+" H312z";case"‖":return"M257 0 H300 V"+n+" H257z M257 0 H300 V"+n+" H257z"+("M478 0 H521 V"+n+" H478z M478 0 H521 V"+n+" H478z");default:return""}},Ate={doubleleftarrow:`M262 157 +219 661 l218 661zM702 `+n+"H400000v"+(40+t)+"H742z"},_ht=function(t,n,r){n=1e3*n;var i="";switch(t){case"sqrtMain":i=Sht(n,Fb);break;case"sqrtSize1":i=Eht(n,Fb);break;case"sqrtSize2":i=wht(n,Fb);break;case"sqrtSize3":i=Tht(n,Fb);break;case"sqrtSize4":i=xht(n,Fb);break;case"sqrtTall":i=Aht(n,Fb,r)}return i},Cht=function(t,n){switch(t){case"⎜":return"M291 0 H417 V"+n+" H291z M291 0 H417 V"+n+" H291z";case"∣":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z";case"∥":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z"+("M367 0 H410 V"+n+" H367z M367 0 H410 V"+n+" H367z");case"⎟":return"M457 0 H583 V"+n+" H457z M457 0 H583 V"+n+" H457z";case"⎢":return"M319 0 H403 V"+n+" H319z M319 0 H403 V"+n+" H319z";case"⎥":return"M263 0 H347 V"+n+" H263z M263 0 H347 V"+n+" H263z";case"⎪":return"M384 0 H504 V"+n+" H384z M384 0 H504 V"+n+" H384z";case"⏐":return"M312 0 H355 V"+n+" H312z M312 0 H355 V"+n+" H312z";case"‖":return"M257 0 H300 V"+n+" H257z M257 0 H300 V"+n+" H257z"+("M478 0 H521 V"+n+" H478z M478 0 H521 V"+n+" H478z");default:return""}},yte={doubleleftarrow:`M262 157 l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5 @@ -564,7 +563,7 @@ M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z` c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z -M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Wht=function(t,n){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v1759 h347 v-84 +M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Rht=function(t,n){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v1759 h347 v-84 H403z M403 1759 V0 H319 V1759 v`+n+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v1759 H0 v84 H347z M347 1759 V0 H263 V1759 v`+n+" v1759 h84z";case"vert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15 c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15 @@ -592,40 +591,40 @@ c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6 c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, --470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};let dx=class{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return Nn.contains(this.classes,t)}toNode(){for(var t=document.createDocumentFragment(),n=0;nn.toText();return this.children.map(t).join("")}};var Cf={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},u4={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},_te={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function Vht(e,t){Cf[e]=t}function EW(e,t,n){if(!Cf[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),i=Cf[t][r];if(!i&&e[0]in _te&&(r=_te[e[0]].charCodeAt(0),i=Cf[t][r]),!i&&n==="text"&&Cge(r)&&(i=Cf[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var O7={};function qht(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!O7[t]){var n=O7[t]={cssEmPerMu:u4.quad[t]/18};for(var r in u4)u4.hasOwnProperty(r)&&(n[r]=u4[r][t])}return O7[t]}var Ght=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Cte=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Rte=function(t,n){return n.size<2?t:Ght[t-1][n.size-1]};class Uh{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||Uh.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=Cte[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return new Uh(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:Rte(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:Cte[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=Rte(Uh.BASESIZE,t);return this.size===n&&this.textSize===Uh.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Uh.BASESIZE?["sizing","reset-size"+this.size,"size"+Uh.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=qht(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Uh.BASESIZE=6;var bM={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},Yht={ex:!0,em:!0,mu:!0},Rge=function(t){return typeof t!="string"&&(t=t.unit),t in bM||t in Yht||t==="ex"},ua=function(t,n){var r;if(t.unit in bM)r=bM[t.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(t.unit==="mu")r=n.fontMetrics().cssEmPerMu;else{var i;if(n.style.isTight()?i=n.havingStyle(n.style.text()):i=n,t.unit==="ex")r=i.fontMetrics().xHeight;else if(t.unit==="em")r=i.fontMetrics().quad;else throw new $t("Invalid unit: '"+t.unit+"'");i!==n&&(r*=i.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*r,n.maxSize)},Wt=function(t){return+t.toFixed(4)+"em"},vm=function(t){return t.filter(n=>n).join(" ")},Ige=function(t,n,r){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},n){n.style.isTight()&&this.classes.push("mtight");var i=n.getColor();i&&(this.style.color=i)}},Nge=function(t){var n=document.createElement(t);n.className=vm(this.classes);for(var r in this.style)this.style.hasOwnProperty(r)&&(n.style[r]=this.style[r]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&n.setAttribute(i,this.attributes[i]);for(var a=0;a",n};let fx=class{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,Ige.call(this,t,r,i),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return Nn.contains(this.classes,t)}toNode(){return Nge.call(this,"span")}toMarkup(){return Dge.call(this,"span")}};class wW{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Ige.call(this,n,i),this.children=r||[],this.setAttribute("href",t)}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return Nn.contains(this.classes,t)}toNode(){return Nge.call(this,"a")}toMarkup(){return Dge.call(this,"a")}}class Zht{constructor(t,n,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=n,this.src=t,this.classes=["mord"],this.style=r}hasClass(t){return Nn.contains(this.classes,t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var n in this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);return t}toMarkup(){var t=''+Nn.escape(this.alt)+'0&&(n=document.createElement("span"),n.style.marginRight=Wt(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=vm(this.classes));for(var r in this.style)this.style.hasOwnProperty(r)&&(n=n||document.createElement("span"),n.style[r]=this.style[r]);return n?(n.appendChild(t),n):t}toMarkup(){var t=!1,n="0&&(r+="margin-right:"+this.italic+"em;");for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=Nn.hyphenate(i)+":"+this.style[i]+";");r&&(t=!0,n+=' style="'+Nn.escape(r)+'"');var a=Nn.escape(this.text);return t?(n+=">",n+=a,n+="",n):a}}class bp{constructor(t,n){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=n||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"svg");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);for(var i=0;i':''}}class yM{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"line");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);return n}toMarkup(){var t=" but got "+String(e)+".")}var Jht={bin:1,close:1,inner:1,open:1,punct:1,rel:1},ept={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Ni={math:{},text:{}};function $(e,t,n,r,i,a){Ni[e][i]={font:t,group:n,replace:r},a&&r&&(Ni[e][r]=Ni[e][i])}var z="math",Ct="text",J="main",ye="ams",ra="accent-token",ln="bin",el="close",HO="inner",Pn="mathord",Wa="op-token",Bu="open",EI="punct",Oe="rel",Pp="spacing",De="textord";$(z,J,Oe,"≡","\\equiv",!0);$(z,J,Oe,"≺","\\prec",!0);$(z,J,Oe,"≻","\\succ",!0);$(z,J,Oe,"∼","\\sim",!0);$(z,J,Oe,"⊥","\\perp");$(z,J,Oe,"⪯","\\preceq",!0);$(z,J,Oe,"⪰","\\succeq",!0);$(z,J,Oe,"≃","\\simeq",!0);$(z,J,Oe,"∣","\\mid",!0);$(z,J,Oe,"≪","\\ll",!0);$(z,J,Oe,"≫","\\gg",!0);$(z,J,Oe,"≍","\\asymp",!0);$(z,J,Oe,"∥","\\parallel");$(z,J,Oe,"⋈","\\bowtie",!0);$(z,J,Oe,"⌣","\\smile",!0);$(z,J,Oe,"⊑","\\sqsubseteq",!0);$(z,J,Oe,"⊒","\\sqsupseteq",!0);$(z,J,Oe,"≐","\\doteq",!0);$(z,J,Oe,"⌢","\\frown",!0);$(z,J,Oe,"∋","\\ni",!0);$(z,J,Oe,"∝","\\propto",!0);$(z,J,Oe,"⊢","\\vdash",!0);$(z,J,Oe,"⊣","\\dashv",!0);$(z,J,Oe,"∋","\\owns");$(z,J,EI,".","\\ldotp");$(z,J,EI,"⋅","\\cdotp");$(z,J,De,"#","\\#");$(Ct,J,De,"#","\\#");$(z,J,De,"&","\\&");$(Ct,J,De,"&","\\&");$(z,J,De,"ℵ","\\aleph",!0);$(z,J,De,"∀","\\forall",!0);$(z,J,De,"ℏ","\\hbar",!0);$(z,J,De,"∃","\\exists",!0);$(z,J,De,"∇","\\nabla",!0);$(z,J,De,"♭","\\flat",!0);$(z,J,De,"ℓ","\\ell",!0);$(z,J,De,"♮","\\natural",!0);$(z,J,De,"♣","\\clubsuit",!0);$(z,J,De,"℘","\\wp",!0);$(z,J,De,"♯","\\sharp",!0);$(z,J,De,"♢","\\diamondsuit",!0);$(z,J,De,"ℜ","\\Re",!0);$(z,J,De,"♡","\\heartsuit",!0);$(z,J,De,"ℑ","\\Im",!0);$(z,J,De,"♠","\\spadesuit",!0);$(z,J,De,"§","\\S",!0);$(Ct,J,De,"§","\\S");$(z,J,De,"¶","\\P",!0);$(Ct,J,De,"¶","\\P");$(z,J,De,"†","\\dag");$(Ct,J,De,"†","\\dag");$(Ct,J,De,"†","\\textdagger");$(z,J,De,"‡","\\ddag");$(Ct,J,De,"‡","\\ddag");$(Ct,J,De,"‡","\\textdaggerdbl");$(z,J,el,"⎱","\\rmoustache",!0);$(z,J,Bu,"⎰","\\lmoustache",!0);$(z,J,el,"⟯","\\rgroup",!0);$(z,J,Bu,"⟮","\\lgroup",!0);$(z,J,ln,"∓","\\mp",!0);$(z,J,ln,"⊖","\\ominus",!0);$(z,J,ln,"⊎","\\uplus",!0);$(z,J,ln,"⊓","\\sqcap",!0);$(z,J,ln,"∗","\\ast");$(z,J,ln,"⊔","\\sqcup",!0);$(z,J,ln,"◯","\\bigcirc",!0);$(z,J,ln,"∙","\\bullet",!0);$(z,J,ln,"‡","\\ddagger");$(z,J,ln,"≀","\\wr",!0);$(z,J,ln,"⨿","\\amalg");$(z,J,ln,"&","\\And");$(z,J,Oe,"⟵","\\longleftarrow",!0);$(z,J,Oe,"⇐","\\Leftarrow",!0);$(z,J,Oe,"⟸","\\Longleftarrow",!0);$(z,J,Oe,"⟶","\\longrightarrow",!0);$(z,J,Oe,"⇒","\\Rightarrow",!0);$(z,J,Oe,"⟹","\\Longrightarrow",!0);$(z,J,Oe,"↔","\\leftrightarrow",!0);$(z,J,Oe,"⟷","\\longleftrightarrow",!0);$(z,J,Oe,"⇔","\\Leftrightarrow",!0);$(z,J,Oe,"⟺","\\Longleftrightarrow",!0);$(z,J,Oe,"↦","\\mapsto",!0);$(z,J,Oe,"⟼","\\longmapsto",!0);$(z,J,Oe,"↗","\\nearrow",!0);$(z,J,Oe,"↩","\\hookleftarrow",!0);$(z,J,Oe,"↪","\\hookrightarrow",!0);$(z,J,Oe,"↘","\\searrow",!0);$(z,J,Oe,"↼","\\leftharpoonup",!0);$(z,J,Oe,"⇀","\\rightharpoonup",!0);$(z,J,Oe,"↙","\\swarrow",!0);$(z,J,Oe,"↽","\\leftharpoondown",!0);$(z,J,Oe,"⇁","\\rightharpoondown",!0);$(z,J,Oe,"↖","\\nwarrow",!0);$(z,J,Oe,"⇌","\\rightleftharpoons",!0);$(z,ye,Oe,"≮","\\nless",!0);$(z,ye,Oe,"","\\@nleqslant");$(z,ye,Oe,"","\\@nleqq");$(z,ye,Oe,"⪇","\\lneq",!0);$(z,ye,Oe,"≨","\\lneqq",!0);$(z,ye,Oe,"","\\@lvertneqq");$(z,ye,Oe,"⋦","\\lnsim",!0);$(z,ye,Oe,"⪉","\\lnapprox",!0);$(z,ye,Oe,"⊀","\\nprec",!0);$(z,ye,Oe,"⋠","\\npreceq",!0);$(z,ye,Oe,"⋨","\\precnsim",!0);$(z,ye,Oe,"⪹","\\precnapprox",!0);$(z,ye,Oe,"≁","\\nsim",!0);$(z,ye,Oe,"","\\@nshortmid");$(z,ye,Oe,"∤","\\nmid",!0);$(z,ye,Oe,"⊬","\\nvdash",!0);$(z,ye,Oe,"⊭","\\nvDash",!0);$(z,ye,Oe,"⋪","\\ntriangleleft");$(z,ye,Oe,"⋬","\\ntrianglelefteq",!0);$(z,ye,Oe,"⊊","\\subsetneq",!0);$(z,ye,Oe,"","\\@varsubsetneq");$(z,ye,Oe,"⫋","\\subsetneqq",!0);$(z,ye,Oe,"","\\@varsubsetneqq");$(z,ye,Oe,"≯","\\ngtr",!0);$(z,ye,Oe,"","\\@ngeqslant");$(z,ye,Oe,"","\\@ngeqq");$(z,ye,Oe,"⪈","\\gneq",!0);$(z,ye,Oe,"≩","\\gneqq",!0);$(z,ye,Oe,"","\\@gvertneqq");$(z,ye,Oe,"⋧","\\gnsim",!0);$(z,ye,Oe,"⪊","\\gnapprox",!0);$(z,ye,Oe,"⊁","\\nsucc",!0);$(z,ye,Oe,"⋡","\\nsucceq",!0);$(z,ye,Oe,"⋩","\\succnsim",!0);$(z,ye,Oe,"⪺","\\succnapprox",!0);$(z,ye,Oe,"≆","\\ncong",!0);$(z,ye,Oe,"","\\@nshortparallel");$(z,ye,Oe,"∦","\\nparallel",!0);$(z,ye,Oe,"⊯","\\nVDash",!0);$(z,ye,Oe,"⋫","\\ntriangleright");$(z,ye,Oe,"⋭","\\ntrianglerighteq",!0);$(z,ye,Oe,"","\\@nsupseteqq");$(z,ye,Oe,"⊋","\\supsetneq",!0);$(z,ye,Oe,"","\\@varsupsetneq");$(z,ye,Oe,"⫌","\\supsetneqq",!0);$(z,ye,Oe,"","\\@varsupsetneqq");$(z,ye,Oe,"⊮","\\nVdash",!0);$(z,ye,Oe,"⪵","\\precneqq",!0);$(z,ye,Oe,"⪶","\\succneqq",!0);$(z,ye,Oe,"","\\@nsubseteqq");$(z,ye,ln,"⊴","\\unlhd");$(z,ye,ln,"⊵","\\unrhd");$(z,ye,Oe,"↚","\\nleftarrow",!0);$(z,ye,Oe,"↛","\\nrightarrow",!0);$(z,ye,Oe,"⇍","\\nLeftarrow",!0);$(z,ye,Oe,"⇏","\\nRightarrow",!0);$(z,ye,Oe,"↮","\\nleftrightarrow",!0);$(z,ye,Oe,"⇎","\\nLeftrightarrow",!0);$(z,ye,Oe,"△","\\vartriangle");$(z,ye,De,"ℏ","\\hslash");$(z,ye,De,"▽","\\triangledown");$(z,ye,De,"◊","\\lozenge");$(z,ye,De,"Ⓢ","\\circledS");$(z,ye,De,"®","\\circledR");$(Ct,ye,De,"®","\\circledR");$(z,ye,De,"∡","\\measuredangle",!0);$(z,ye,De,"∄","\\nexists");$(z,ye,De,"℧","\\mho");$(z,ye,De,"Ⅎ","\\Finv",!0);$(z,ye,De,"⅁","\\Game",!0);$(z,ye,De,"‵","\\backprime");$(z,ye,De,"▲","\\blacktriangle");$(z,ye,De,"▼","\\blacktriangledown");$(z,ye,De,"■","\\blacksquare");$(z,ye,De,"⧫","\\blacklozenge");$(z,ye,De,"★","\\bigstar");$(z,ye,De,"∢","\\sphericalangle",!0);$(z,ye,De,"∁","\\complement",!0);$(z,ye,De,"ð","\\eth",!0);$(Ct,J,De,"ð","ð");$(z,ye,De,"╱","\\diagup");$(z,ye,De,"╲","\\diagdown");$(z,ye,De,"□","\\square");$(z,ye,De,"□","\\Box");$(z,ye,De,"◊","\\Diamond");$(z,ye,De,"¥","\\yen",!0);$(Ct,ye,De,"¥","\\yen",!0);$(z,ye,De,"✓","\\checkmark",!0);$(Ct,ye,De,"✓","\\checkmark");$(z,ye,De,"ℶ","\\beth",!0);$(z,ye,De,"ℸ","\\daleth",!0);$(z,ye,De,"ℷ","\\gimel",!0);$(z,ye,De,"ϝ","\\digamma",!0);$(z,ye,De,"ϰ","\\varkappa");$(z,ye,Bu,"┌","\\@ulcorner",!0);$(z,ye,el,"┐","\\@urcorner",!0);$(z,ye,Bu,"└","\\@llcorner",!0);$(z,ye,el,"┘","\\@lrcorner",!0);$(z,ye,Oe,"≦","\\leqq",!0);$(z,ye,Oe,"⩽","\\leqslant",!0);$(z,ye,Oe,"⪕","\\eqslantless",!0);$(z,ye,Oe,"≲","\\lesssim",!0);$(z,ye,Oe,"⪅","\\lessapprox",!0);$(z,ye,Oe,"≊","\\approxeq",!0);$(z,ye,ln,"⋖","\\lessdot");$(z,ye,Oe,"⋘","\\lll",!0);$(z,ye,Oe,"≶","\\lessgtr",!0);$(z,ye,Oe,"⋚","\\lesseqgtr",!0);$(z,ye,Oe,"⪋","\\lesseqqgtr",!0);$(z,ye,Oe,"≑","\\doteqdot");$(z,ye,Oe,"≓","\\risingdotseq",!0);$(z,ye,Oe,"≒","\\fallingdotseq",!0);$(z,ye,Oe,"∽","\\backsim",!0);$(z,ye,Oe,"⋍","\\backsimeq",!0);$(z,ye,Oe,"⫅","\\subseteqq",!0);$(z,ye,Oe,"⋐","\\Subset",!0);$(z,ye,Oe,"⊏","\\sqsubset",!0);$(z,ye,Oe,"≼","\\preccurlyeq",!0);$(z,ye,Oe,"⋞","\\curlyeqprec",!0);$(z,ye,Oe,"≾","\\precsim",!0);$(z,ye,Oe,"⪷","\\precapprox",!0);$(z,ye,Oe,"⊲","\\vartriangleleft");$(z,ye,Oe,"⊴","\\trianglelefteq");$(z,ye,Oe,"⊨","\\vDash",!0);$(z,ye,Oe,"⊪","\\Vvdash",!0);$(z,ye,Oe,"⌣","\\smallsmile");$(z,ye,Oe,"⌢","\\smallfrown");$(z,ye,Oe,"≏","\\bumpeq",!0);$(z,ye,Oe,"≎","\\Bumpeq",!0);$(z,ye,Oe,"≧","\\geqq",!0);$(z,ye,Oe,"⩾","\\geqslant",!0);$(z,ye,Oe,"⪖","\\eqslantgtr",!0);$(z,ye,Oe,"≳","\\gtrsim",!0);$(z,ye,Oe,"⪆","\\gtrapprox",!0);$(z,ye,ln,"⋗","\\gtrdot");$(z,ye,Oe,"⋙","\\ggg",!0);$(z,ye,Oe,"≷","\\gtrless",!0);$(z,ye,Oe,"⋛","\\gtreqless",!0);$(z,ye,Oe,"⪌","\\gtreqqless",!0);$(z,ye,Oe,"≖","\\eqcirc",!0);$(z,ye,Oe,"≗","\\circeq",!0);$(z,ye,Oe,"≜","\\triangleq",!0);$(z,ye,Oe,"∼","\\thicksim");$(z,ye,Oe,"≈","\\thickapprox");$(z,ye,Oe,"⫆","\\supseteqq",!0);$(z,ye,Oe,"⋑","\\Supset",!0);$(z,ye,Oe,"⊐","\\sqsupset",!0);$(z,ye,Oe,"≽","\\succcurlyeq",!0);$(z,ye,Oe,"⋟","\\curlyeqsucc",!0);$(z,ye,Oe,"≿","\\succsim",!0);$(z,ye,Oe,"⪸","\\succapprox",!0);$(z,ye,Oe,"⊳","\\vartriangleright");$(z,ye,Oe,"⊵","\\trianglerighteq");$(z,ye,Oe,"⊩","\\Vdash",!0);$(z,ye,Oe,"∣","\\shortmid");$(z,ye,Oe,"∥","\\shortparallel");$(z,ye,Oe,"≬","\\between",!0);$(z,ye,Oe,"⋔","\\pitchfork",!0);$(z,ye,Oe,"∝","\\varpropto");$(z,ye,Oe,"◀","\\blacktriangleleft");$(z,ye,Oe,"∴","\\therefore",!0);$(z,ye,Oe,"∍","\\backepsilon");$(z,ye,Oe,"▶","\\blacktriangleright");$(z,ye,Oe,"∵","\\because",!0);$(z,ye,Oe,"⋘","\\llless");$(z,ye,Oe,"⋙","\\gggtr");$(z,ye,ln,"⊲","\\lhd");$(z,ye,ln,"⊳","\\rhd");$(z,ye,Oe,"≂","\\eqsim",!0);$(z,J,Oe,"⋈","\\Join");$(z,ye,Oe,"≑","\\Doteq",!0);$(z,ye,ln,"∔","\\dotplus",!0);$(z,ye,ln,"∖","\\smallsetminus");$(z,ye,ln,"⋒","\\Cap",!0);$(z,ye,ln,"⋓","\\Cup",!0);$(z,ye,ln,"⩞","\\doublebarwedge",!0);$(z,ye,ln,"⊟","\\boxminus",!0);$(z,ye,ln,"⊞","\\boxplus",!0);$(z,ye,ln,"⋇","\\divideontimes",!0);$(z,ye,ln,"⋉","\\ltimes",!0);$(z,ye,ln,"⋊","\\rtimes",!0);$(z,ye,ln,"⋋","\\leftthreetimes",!0);$(z,ye,ln,"⋌","\\rightthreetimes",!0);$(z,ye,ln,"⋏","\\curlywedge",!0);$(z,ye,ln,"⋎","\\curlyvee",!0);$(z,ye,ln,"⊝","\\circleddash",!0);$(z,ye,ln,"⊛","\\circledast",!0);$(z,ye,ln,"⋅","\\centerdot");$(z,ye,ln,"⊺","\\intercal",!0);$(z,ye,ln,"⋒","\\doublecap");$(z,ye,ln,"⋓","\\doublecup");$(z,ye,ln,"⊠","\\boxtimes",!0);$(z,ye,Oe,"⇢","\\dashrightarrow",!0);$(z,ye,Oe,"⇠","\\dashleftarrow",!0);$(z,ye,Oe,"⇇","\\leftleftarrows",!0);$(z,ye,Oe,"⇆","\\leftrightarrows",!0);$(z,ye,Oe,"⇚","\\Lleftarrow",!0);$(z,ye,Oe,"↞","\\twoheadleftarrow",!0);$(z,ye,Oe,"↢","\\leftarrowtail",!0);$(z,ye,Oe,"↫","\\looparrowleft",!0);$(z,ye,Oe,"⇋","\\leftrightharpoons",!0);$(z,ye,Oe,"↶","\\curvearrowleft",!0);$(z,ye,Oe,"↺","\\circlearrowleft",!0);$(z,ye,Oe,"↰","\\Lsh",!0);$(z,ye,Oe,"⇈","\\upuparrows",!0);$(z,ye,Oe,"↿","\\upharpoonleft",!0);$(z,ye,Oe,"⇃","\\downharpoonleft",!0);$(z,J,Oe,"⊶","\\origof",!0);$(z,J,Oe,"⊷","\\imageof",!0);$(z,ye,Oe,"⊸","\\multimap",!0);$(z,ye,Oe,"↭","\\leftrightsquigarrow",!0);$(z,ye,Oe,"⇉","\\rightrightarrows",!0);$(z,ye,Oe,"⇄","\\rightleftarrows",!0);$(z,ye,Oe,"↠","\\twoheadrightarrow",!0);$(z,ye,Oe,"↣","\\rightarrowtail",!0);$(z,ye,Oe,"↬","\\looparrowright",!0);$(z,ye,Oe,"↷","\\curvearrowright",!0);$(z,ye,Oe,"↻","\\circlearrowright",!0);$(z,ye,Oe,"↱","\\Rsh",!0);$(z,ye,Oe,"⇊","\\downdownarrows",!0);$(z,ye,Oe,"↾","\\upharpoonright",!0);$(z,ye,Oe,"⇂","\\downharpoonright",!0);$(z,ye,Oe,"⇝","\\rightsquigarrow",!0);$(z,ye,Oe,"⇝","\\leadsto");$(z,ye,Oe,"⇛","\\Rrightarrow",!0);$(z,ye,Oe,"↾","\\restriction");$(z,J,De,"‘","`");$(z,J,De,"$","\\$");$(Ct,J,De,"$","\\$");$(Ct,J,De,"$","\\textdollar");$(z,J,De,"%","\\%");$(Ct,J,De,"%","\\%");$(z,J,De,"_","\\_");$(Ct,J,De,"_","\\_");$(Ct,J,De,"_","\\textunderscore");$(z,J,De,"∠","\\angle",!0);$(z,J,De,"∞","\\infty",!0);$(z,J,De,"′","\\prime");$(z,J,De,"△","\\triangle");$(z,J,De,"Γ","\\Gamma",!0);$(z,J,De,"Δ","\\Delta",!0);$(z,J,De,"Θ","\\Theta",!0);$(z,J,De,"Λ","\\Lambda",!0);$(z,J,De,"Ξ","\\Xi",!0);$(z,J,De,"Π","\\Pi",!0);$(z,J,De,"Σ","\\Sigma",!0);$(z,J,De,"Υ","\\Upsilon",!0);$(z,J,De,"Φ","\\Phi",!0);$(z,J,De,"Ψ","\\Psi",!0);$(z,J,De,"Ω","\\Omega",!0);$(z,J,De,"A","Α");$(z,J,De,"B","Β");$(z,J,De,"E","Ε");$(z,J,De,"Z","Ζ");$(z,J,De,"H","Η");$(z,J,De,"I","Ι");$(z,J,De,"K","Κ");$(z,J,De,"M","Μ");$(z,J,De,"N","Ν");$(z,J,De,"O","Ο");$(z,J,De,"P","Ρ");$(z,J,De,"T","Τ");$(z,J,De,"X","Χ");$(z,J,De,"¬","\\neg",!0);$(z,J,De,"¬","\\lnot");$(z,J,De,"⊤","\\top");$(z,J,De,"⊥","\\bot");$(z,J,De,"∅","\\emptyset");$(z,ye,De,"∅","\\varnothing");$(z,J,Pn,"α","\\alpha",!0);$(z,J,Pn,"β","\\beta",!0);$(z,J,Pn,"γ","\\gamma",!0);$(z,J,Pn,"δ","\\delta",!0);$(z,J,Pn,"ϵ","\\epsilon",!0);$(z,J,Pn,"ζ","\\zeta",!0);$(z,J,Pn,"η","\\eta",!0);$(z,J,Pn,"θ","\\theta",!0);$(z,J,Pn,"ι","\\iota",!0);$(z,J,Pn,"κ","\\kappa",!0);$(z,J,Pn,"λ","\\lambda",!0);$(z,J,Pn,"μ","\\mu",!0);$(z,J,Pn,"ν","\\nu",!0);$(z,J,Pn,"ξ","\\xi",!0);$(z,J,Pn,"ο","\\omicron",!0);$(z,J,Pn,"π","\\pi",!0);$(z,J,Pn,"ρ","\\rho",!0);$(z,J,Pn,"σ","\\sigma",!0);$(z,J,Pn,"τ","\\tau",!0);$(z,J,Pn,"υ","\\upsilon",!0);$(z,J,Pn,"ϕ","\\phi",!0);$(z,J,Pn,"χ","\\chi",!0);$(z,J,Pn,"ψ","\\psi",!0);$(z,J,Pn,"ω","\\omega",!0);$(z,J,Pn,"ε","\\varepsilon",!0);$(z,J,Pn,"ϑ","\\vartheta",!0);$(z,J,Pn,"ϖ","\\varpi",!0);$(z,J,Pn,"ϱ","\\varrho",!0);$(z,J,Pn,"ς","\\varsigma",!0);$(z,J,Pn,"φ","\\varphi",!0);$(z,J,ln,"∗","*",!0);$(z,J,ln,"+","+");$(z,J,ln,"−","-",!0);$(z,J,ln,"⋅","\\cdot",!0);$(z,J,ln,"∘","\\circ",!0);$(z,J,ln,"÷","\\div",!0);$(z,J,ln,"±","\\pm",!0);$(z,J,ln,"×","\\times",!0);$(z,J,ln,"∩","\\cap",!0);$(z,J,ln,"∪","\\cup",!0);$(z,J,ln,"∖","\\setminus",!0);$(z,J,ln,"∧","\\land");$(z,J,ln,"∨","\\lor");$(z,J,ln,"∧","\\wedge",!0);$(z,J,ln,"∨","\\vee",!0);$(z,J,De,"√","\\surd");$(z,J,Bu,"⟨","\\langle",!0);$(z,J,Bu,"∣","\\lvert");$(z,J,Bu,"∥","\\lVert");$(z,J,el,"?","?");$(z,J,el,"!","!");$(z,J,el,"⟩","\\rangle",!0);$(z,J,el,"∣","\\rvert");$(z,J,el,"∥","\\rVert");$(z,J,Oe,"=","=");$(z,J,Oe,":",":");$(z,J,Oe,"≈","\\approx",!0);$(z,J,Oe,"≅","\\cong",!0);$(z,J,Oe,"≥","\\ge");$(z,J,Oe,"≥","\\geq",!0);$(z,J,Oe,"←","\\gets");$(z,J,Oe,">","\\gt",!0);$(z,J,Oe,"∈","\\in",!0);$(z,J,Oe,"","\\@not");$(z,J,Oe,"⊂","\\subset",!0);$(z,J,Oe,"⊃","\\supset",!0);$(z,J,Oe,"⊆","\\subseteq",!0);$(z,J,Oe,"⊇","\\supseteq",!0);$(z,ye,Oe,"⊈","\\nsubseteq",!0);$(z,ye,Oe,"⊉","\\nsupseteq",!0);$(z,J,Oe,"⊨","\\models");$(z,J,Oe,"←","\\leftarrow",!0);$(z,J,Oe,"≤","\\le");$(z,J,Oe,"≤","\\leq",!0);$(z,J,Oe,"<","\\lt",!0);$(z,J,Oe,"→","\\rightarrow",!0);$(z,J,Oe,"→","\\to");$(z,ye,Oe,"≱","\\ngeq",!0);$(z,ye,Oe,"≰","\\nleq",!0);$(z,J,Pp," ","\\ ");$(z,J,Pp," ","\\space");$(z,J,Pp," ","\\nobreakspace");$(Ct,J,Pp," ","\\ ");$(Ct,J,Pp," "," ");$(Ct,J,Pp," ","\\space");$(Ct,J,Pp," ","\\nobreakspace");$(z,J,Pp,null,"\\nobreak");$(z,J,Pp,null,"\\allowbreak");$(z,J,EI,",",",");$(z,J,EI,";",";");$(z,ye,ln,"⊼","\\barwedge",!0);$(z,ye,ln,"⊻","\\veebar",!0);$(z,J,ln,"⊙","\\odot",!0);$(z,J,ln,"⊕","\\oplus",!0);$(z,J,ln,"⊗","\\otimes",!0);$(z,J,De,"∂","\\partial",!0);$(z,J,ln,"⊘","\\oslash",!0);$(z,ye,ln,"⊚","\\circledcirc",!0);$(z,ye,ln,"⊡","\\boxdot",!0);$(z,J,ln,"△","\\bigtriangleup");$(z,J,ln,"▽","\\bigtriangledown");$(z,J,ln,"†","\\dagger");$(z,J,ln,"⋄","\\diamond");$(z,J,ln,"⋆","\\star");$(z,J,ln,"◃","\\triangleleft");$(z,J,ln,"▹","\\triangleright");$(z,J,Bu,"{","\\{");$(Ct,J,De,"{","\\{");$(Ct,J,De,"{","\\textbraceleft");$(z,J,el,"}","\\}");$(Ct,J,De,"}","\\}");$(Ct,J,De,"}","\\textbraceright");$(z,J,Bu,"{","\\lbrace");$(z,J,el,"}","\\rbrace");$(z,J,Bu,"[","\\lbrack",!0);$(Ct,J,De,"[","\\lbrack",!0);$(z,J,el,"]","\\rbrack",!0);$(Ct,J,De,"]","\\rbrack",!0);$(z,J,Bu,"(","\\lparen",!0);$(z,J,el,")","\\rparen",!0);$(Ct,J,De,"<","\\textless",!0);$(Ct,J,De,">","\\textgreater",!0);$(z,J,Bu,"⌊","\\lfloor",!0);$(z,J,el,"⌋","\\rfloor",!0);$(z,J,Bu,"⌈","\\lceil",!0);$(z,J,el,"⌉","\\rceil",!0);$(z,J,De,"\\","\\backslash");$(z,J,De,"∣","|");$(z,J,De,"∣","\\vert");$(Ct,J,De,"|","\\textbar",!0);$(z,J,De,"∥","\\|");$(z,J,De,"∥","\\Vert");$(Ct,J,De,"∥","\\textbardbl");$(Ct,J,De,"~","\\textasciitilde");$(Ct,J,De,"\\","\\textbackslash");$(Ct,J,De,"^","\\textasciicircum");$(z,J,Oe,"↑","\\uparrow",!0);$(z,J,Oe,"⇑","\\Uparrow",!0);$(z,J,Oe,"↓","\\downarrow",!0);$(z,J,Oe,"⇓","\\Downarrow",!0);$(z,J,Oe,"↕","\\updownarrow",!0);$(z,J,Oe,"⇕","\\Updownarrow",!0);$(z,J,Wa,"∐","\\coprod");$(z,J,Wa,"⋁","\\bigvee");$(z,J,Wa,"⋀","\\bigwedge");$(z,J,Wa,"⨄","\\biguplus");$(z,J,Wa,"⋂","\\bigcap");$(z,J,Wa,"⋃","\\bigcup");$(z,J,Wa,"∫","\\int");$(z,J,Wa,"∫","\\intop");$(z,J,Wa,"∬","\\iint");$(z,J,Wa,"∭","\\iiint");$(z,J,Wa,"∏","\\prod");$(z,J,Wa,"∑","\\sum");$(z,J,Wa,"⨂","\\bigotimes");$(z,J,Wa,"⨁","\\bigoplus");$(z,J,Wa,"⨀","\\bigodot");$(z,J,Wa,"∮","\\oint");$(z,J,Wa,"∯","\\oiint");$(z,J,Wa,"∰","\\oiiint");$(z,J,Wa,"⨆","\\bigsqcup");$(z,J,Wa,"∫","\\smallint");$(Ct,J,HO,"…","\\textellipsis");$(z,J,HO,"…","\\mathellipsis");$(Ct,J,HO,"…","\\ldots",!0);$(z,J,HO,"…","\\ldots",!0);$(z,J,HO,"⋯","\\@cdots",!0);$(z,J,HO,"⋱","\\ddots",!0);$(z,J,De,"⋮","\\varvdots");$(z,J,ra,"ˊ","\\acute");$(z,J,ra,"ˋ","\\grave");$(z,J,ra,"¨","\\ddot");$(z,J,ra,"~","\\tilde");$(z,J,ra,"ˉ","\\bar");$(z,J,ra,"˘","\\breve");$(z,J,ra,"ˇ","\\check");$(z,J,ra,"^","\\hat");$(z,J,ra,"⃗","\\vec");$(z,J,ra,"˙","\\dot");$(z,J,ra,"˚","\\mathring");$(z,J,Pn,"","\\@imath");$(z,J,Pn,"","\\@jmath");$(z,J,De,"ı","ı");$(z,J,De,"ȷ","ȷ");$(Ct,J,De,"ı","\\i",!0);$(Ct,J,De,"ȷ","\\j",!0);$(Ct,J,De,"ß","\\ss",!0);$(Ct,J,De,"æ","\\ae",!0);$(Ct,J,De,"œ","\\oe",!0);$(Ct,J,De,"ø","\\o",!0);$(Ct,J,De,"Æ","\\AE",!0);$(Ct,J,De,"Œ","\\OE",!0);$(Ct,J,De,"Ø","\\O",!0);$(Ct,J,ra,"ˊ","\\'");$(Ct,J,ra,"ˋ","\\`");$(Ct,J,ra,"ˆ","\\^");$(Ct,J,ra,"˜","\\~");$(Ct,J,ra,"ˉ","\\=");$(Ct,J,ra,"˘","\\u");$(Ct,J,ra,"˙","\\.");$(Ct,J,ra,"¸","\\c");$(Ct,J,ra,"˚","\\r");$(Ct,J,ra,"ˇ","\\v");$(Ct,J,ra,"¨",'\\"');$(Ct,J,ra,"˝","\\H");$(Ct,J,ra,"◯","\\textcircled");var Pge={"--":!0,"---":!0,"``":!0,"''":!0};$(Ct,J,De,"–","--",!0);$(Ct,J,De,"–","\\textendash");$(Ct,J,De,"—","---",!0);$(Ct,J,De,"—","\\textemdash");$(Ct,J,De,"‘","`",!0);$(Ct,J,De,"‘","\\textquoteleft");$(Ct,J,De,"’","'",!0);$(Ct,J,De,"’","\\textquoteright");$(Ct,J,De,"“","``",!0);$(Ct,J,De,"“","\\textquotedblleft");$(Ct,J,De,"”","''",!0);$(Ct,J,De,"”","\\textquotedblright");$(z,J,De,"°","\\degree",!0);$(Ct,J,De,"°","\\degree");$(Ct,J,De,"°","\\textdegree",!0);$(z,J,De,"£","\\pounds");$(z,J,De,"£","\\mathsterling",!0);$(Ct,J,De,"£","\\pounds");$(Ct,J,De,"£","\\textsterling",!0);$(z,ye,De,"✠","\\maltese");$(Ct,ye,De,"✠","\\maltese");var Nte='0123456789/@."';for(var S7=0;S70)return dd(a,u,i,n,s.concat(d));if(l){var f,p;if(l==="boldsymbol"){var g=rpt(a,i,n,s,r);f=g.fontName,p=[g.fontClass]}else o?(f=$ge[l].fontName,p=[l]):(f=h4(l,n.fontWeight,n.fontShape),p=[l,n.fontWeight,n.fontShape]);if(wI(a,f,i).metrics)return dd(a,f,i,n,s.concat(p));if(Pge.hasOwnProperty(a)&&f.slice(0,10)==="Typewriter"){for(var O=[],S=0;S{if(vm(e.classes)!==vm(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var n=e.classes[0];if(n==="mbin"||n==="mord")return!1}for(var r in e.style)if(e.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;for(var i in t.style)if(t.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return!1;return!0},spt=e=>{for(var t=0;tn&&(n=s.height),s.depth>r&&(r=s.depth),s.maxFontSize>i&&(i=s.maxFontSize)}t.height=n,t.depth=r,t.maxFontSize=i},vl=function(t,n,r,i){var a=new fx(t,n,r,i);return TW(a),a},Lge=(e,t,n,r)=>new fx(e,t,n,r),opt=function(t,n,r){var i=vl([t],[],n);return i.height=Math.max(r||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),i.style.borderBottomWidth=Wt(i.height),i.maxFontSize=1,i},lpt=function(t,n,r,i){var a=new wW(t,n,r,i);return TW(a),a},Mge=function(t){var n=new dx(t);return TW(n),n},upt=function(t,n){return t instanceof dx?vl([],[t],n):t},cpt=function(t){if(t.positionType==="individualShift"){for(var n=t.children,r=[n[0]],i=-n[0].shift-n[0].elem.depth,a=i,s=1;s{var n=vl(["mspace"],[],t),r=ua(e,t);return n.style.marginRight=Wt(r),n},h4=function(t,n,r){var i="";switch(t){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=t}var a;return n==="textbf"&&r==="textit"?a="BoldItalic":n==="textbf"?a="Bold":n==="textit"?a="Italic":a="Regular",i+"-"+a},$ge={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},Fge={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},hpt=function(t,n){var[r,i,a]=Fge[t],s=new Om(r),o=new bp([s],{width:Wt(i),height:Wt(a),style:"width:"+Wt(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),l=Lge(["overlay"],[o],n);return l.height=a,l.style.height=Wt(a),l.style.width=Wt(i),l},Qe={fontMap:$ge,makeSymbol:dd,mathsym:npt,makeSpan:vl,makeSvgSpan:Lge,makeLineSpan:opt,makeAnchor:lpt,makeFragment:Mge,wrapFragment:upt,makeVList:dpt,makeOrd:ipt,makeGlue:fpt,staticSvg:hpt,svgData:Fge,tryCombineChars:spt},sa={number:3,unit:"mu"},bg={number:4,unit:"mu"},Nh={number:5,unit:"mu"},ppt={mord:{mop:sa,mbin:bg,mrel:Nh,minner:sa},mop:{mord:sa,mop:sa,mrel:Nh,minner:sa},mbin:{mord:bg,mop:bg,mopen:bg,minner:bg},mrel:{mord:Nh,mop:Nh,mopen:Nh,minner:Nh},mopen:{},mclose:{mop:sa,mbin:bg,mrel:Nh,minner:sa},mpunct:{mord:sa,mop:sa,mrel:Nh,mopen:sa,mclose:sa,mpunct:sa,minner:sa},minner:{mord:sa,mop:sa,mbin:bg,mrel:Nh,mopen:sa,mpunct:sa,minner:sa}},mpt={mord:{mop:sa},mop:{mord:sa,mop:sa},mbin:{},mrel:{},mopen:{},mclose:{mop:sa},mpunct:{},minner:{mop:sa}},Bge={},P3={},L3={};function rn(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},l=0;l{var T=S.classes[0],w=O.classes[0];T==="mbin"&&Nn.contains(bpt,w)?S.classes[0]="mord":w==="mbin"&&Nn.contains(gpt,T)&&(O.classes[0]="mord")},{node:f},p,g),$te(a,(O,S)=>{var T=OM(S),w=OM(O),x=T&&w?O.hasClass("mtight")?mpt[T][w]:ppt[T][w]:null;if(x)return Qe.makeGlue(x,u)},{node:f},p,g),a},$te=function e(t,n,r,i,a){i&&t.push(i);for(var s=0;sp=>{t.splice(f+1,0,p),s++})(s)}i&&t.pop()},Uge=function(t){return t instanceof dx||t instanceof wW||t instanceof fx&&t.hasClass("enclosing")?t:null},Opt=function e(t,n){var r=Uge(t);if(r){var i=r.children;if(i.length){if(n==="right")return e(i[i.length-1],"right");if(n==="left")return e(i[0],"left")}}return t},OM=function(t,n){return t?(n&&(t=Opt(t,n)),vpt[t.classes[0]]||null):null},Xw=function(t,n){var r=["nulldelimiter"].concat(t.baseSizingClasses());return yp(n.concat(r))},Br=function(t,n,r){if(!t)return yp();if(P3[t.type]){var i=P3[t.type](t,n);if(r&&n.size!==r.size){i=yp(n.sizingClasses(r),[i],n);var a=n.sizeMultiplier/r.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new $t("Got group of unknown type: '"+t.type+"'")};function p4(e,t){var n=yp(["base"],e,t),r=yp(["strut"]);return r.style.height=Wt(n.height+n.depth),n.depth&&(r.style.verticalAlign=Wt(-n.depth)),n.children.unshift(r),n}function SM(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var r=us(e,t,"root"),i;r.length===2&&r[1].hasClass("tag")&&(i=r.pop());for(var a=[],s=[],o=0;o0&&(a.push(p4(s,t)),s=[]),a.push(r[o]));s.length>0&&a.push(p4(s,t));var u;n?(u=p4(us(n,t,!0)),u.classes=["tag"],a.push(u)):i&&a.push(i);var d=yp(["katex-html"],a);if(d.setAttribute("aria-hidden","true"),u){var f=u.children[0];f.style.height=Wt(d.height+d.depth),d.depth&&(f.style.verticalAlign=Wt(-d.depth))}return d}function zge(e){return new dx(e)}class dc{constructor(t,n,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=n||[],this.classes=r||[]}setAttribute(t,n){this.attributes[t]=n}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);this.classes.length>0&&(t.className=vm(this.classes));for(var r=0;r0&&(t+=' class ="'+Nn.escape(vm(this.classes))+'"'),t+=">";for(var r=0;r",t}toText(){return this.children.map(t=>t.toText()).join("")}}class R2{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return Nn.escape(this.toText())}toText(){return this.text}}class Spt{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",Wt(this.width)),t}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}}var Dt={MathNode:dc,TextNode:R2,SpaceNode:Spt,newDocumentFragment:zge},Ic=function(t,n,r){return Ni[n][t]&&Ni[n][t].replace&&t.charCodeAt(0)!==55349&&!(Pge.hasOwnProperty(t)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(t=Ni[n][t].replace),new Dt.TextNode(t)},xW=function(t){return t.length===1?t[0]:new Dt.MathNode("mrow",t)},kW=function(t,n){if(n.fontFamily==="texttt")return"monospace";if(n.fontFamily==="textsf")return n.fontShape==="textit"&&n.fontWeight==="textbf"?"sans-serif-bold-italic":n.fontShape==="textit"?"sans-serif-italic":n.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(n.fontShape==="textit"&&n.fontWeight==="textbf")return"bold-italic";if(n.fontShape==="textit")return"italic";if(n.fontWeight==="textbf")return"bold";var r=n.font;if(!r||r==="mathnormal")return null;var i=t.mode;if(r==="mathit")return"italic";if(r==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(r==="mathbf")return"bold";if(r==="mathbb")return"double-struck";if(r==="mathfrak")return"fraktur";if(r==="mathscr"||r==="mathcal")return"script";if(r==="mathsf")return"sans-serif";if(r==="mathtt")return"monospace";var a=t.text;if(Nn.contains(["\\imath","\\jmath"],a))return null;Ni[i][a]&&Ni[i][a].replace&&(a=Ni[i][a].replace);var s=Qe.fontMap[r].fontName;return EW(a,s,i)?Qe.fontMap[r].variant:null},Ml=function(t,n,r){if(t.length===1){var i=xi(t[0],n);return r&&i instanceof dc&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],s,o=0;o0&&(f.text=f.text.slice(0,1)+"̸"+f.text.slice(1),a.pop())}}}a.push(l),s=l}return a},Sm=function(t,n,r){return xW(Ml(t,n,r))},xi=function(t,n){if(!t)return new Dt.MathNode("mrow");if(L3[t.type]){var r=L3[t.type](t,n);return r}else throw new $t("Got group of unknown type: '"+t.type+"'")};function Fte(e,t,n,r,i){var a=Ml(e,n),s;a.length===1&&a[0]instanceof dc&&Nn.contains(["mrow","mtable"],a[0].type)?s=a[0]:s=new Dt.MathNode("mrow",a);var o=new Dt.MathNode("annotation",[new Dt.TextNode(t)]);o.setAttribute("encoding","application/x-tex");var l=new Dt.MathNode("semantics",[s,o]),u=new Dt.MathNode("math",[l]);u.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&u.setAttribute("display","block");var d=i?"katex":"katex-mathml";return Qe.makeSpan([d],[u])}var jge=function(t){return new Uh({style:t.displayMode?Ln.DISPLAY:Ln.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},Hge=function(t,n){if(n.displayMode){var r=["katex-display"];n.leqno&&r.push("leqno"),n.fleqn&&r.push("fleqn"),t=Qe.makeSpan(r,[t])}return t},Ept=function(t,n,r){var i=jge(r),a;if(r.output==="mathml")return Fte(t,n,i,r.displayMode,!0);if(r.output==="html"){var s=SM(t,i);a=Qe.makeSpan(["katex"],[s])}else{var o=Fte(t,n,i,r.displayMode,!1),l=SM(t,i);a=Qe.makeSpan(["katex"],[o,l])}return Hge(a,r)},wpt=function(t,n,r){var i=jge(r),a=SM(t,i),s=Qe.makeSpan(["katex"],[a]);return Hge(s,r)},Tpt={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},xpt=function(t){var n=new Dt.MathNode("mo",[new Dt.TextNode(Tpt[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},kpt={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Apt=function(t){return t.type==="ordgroup"?t.body.length:1},_pt=function(t,n){function r(){var o=4e5,l=t.label.slice(1);if(Nn.contains(["widehat","widecheck","widetilde","utilde"],l)){var u=t,d=Apt(u.base),f,p,g;if(d>5)l==="widehat"||l==="widecheck"?(f=420,o=2364,g=.42,p=l+"4"):(f=312,o=2340,g=.34,p="tilde4");else{var O=[1,1,2,2,3,3][d];l==="widehat"||l==="widecheck"?(o=[0,1062,2364,2364,2364][O],f=[0,239,300,360,420][O],g=[0,.24,.3,.3,.36,.42][O],p=l+O):(o=[0,600,1033,2339,2340][O],f=[0,260,286,306,312][O],g=[0,.26,.286,.3,.306,.34][O],p="tilde"+O)}var S=new Om(p),T=new bp([S],{width:"100%",height:Wt(g),viewBox:"0 0 "+o+" "+f,preserveAspectRatio:"none"});return{span:Qe.makeSvgSpan([],[T],n),minWidth:0,height:g}}else{var w=[],x=kpt[l],[k,_,R]=x,N=R/1e3,D=k.length,L,j;if(D===1){var B=x[3];L=["hide-tail"],j=[B]}else if(D===2)L=["halfarrow-left","halfarrow-right"],j=["xMinYMin","xMaxYMin"];else if(D===3)L=["brace-left","brace-center","brace-right"],j=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support - `+D+" children.");for(var V=0;V0&&(i.style.minWidth=Wt(a)),i},Cpt=function(t,n,r,i,a){var s,o=t.height+t.depth+r+i;if(/fbox|color|angl/.test(n)){if(s=Qe.makeSpan(["stretchy",n],[],a),n==="fbox"){var l=a.color&&a.getColor();l&&(s.style.borderColor=l)}}else{var u=[];/^[bx]cancel$/.test(n)&&u.push(new yM({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&u.push(new yM({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var d=new bp(u,{width:"100%",height:Wt(o)});s=Qe.makeSvgSpan([],[d],a)}return s.height=o,s.style.height=Wt(o),s},vp={encloseSpan:Cpt,mathMLnode:xpt,svgSpan:_pt};function or(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function AW(e){var t=TI(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function TI(e){return e&&(e.type==="atom"||ept.hasOwnProperty(e.type))?e:null}var _W=(e,t)=>{var n,r,i;e&&e.type==="supsub"?(r=or(e.base,"accent"),n=r.base,e.base=n,i=Kht(Br(e,t)),e.base=r):(r=or(e,"accent"),n=r.base);var a=Br(n,t.havingCrampedStyle()),s=r.isShifty&&Nn.isCharacterBox(n),o=0;if(s){var l=Nn.getBaseElem(n),u=Br(l,t.havingCrampedStyle());o=Ite(u).skew}var d=r.label==="\\c",f=d?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),p;if(r.isStretchy)p=vp.svgSpan(r,t),p=Qe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:p,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+Wt(2*o)+")",marginLeft:Wt(2*o)}:void 0}]},t);else{var g,O;r.label==="\\vec"?(g=Qe.staticSvg("vec",t),O=Qe.svgData.vec[1]):(g=Qe.makeOrd({mode:r.mode,text:r.label},t,"textord"),g=Ite(g),g.italic=0,O=g.width,d&&(f+=g.depth)),p=Qe.makeSpan(["accent-body"],[g]);var S=r.label==="\\textcircled";S&&(p.classes.push("accent-full"),f=a.height);var T=o;S||(T-=O/2),p.style.left=Wt(T),r.label==="\\textcircled"&&(p.style.top=".2em"),p=Qe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-f},{type:"elem",elem:p}]},t)}var w=Qe.makeSpan(["mord","accent"],[p],t);return i?(i.children[0]=w,i.height=Math.max(w.height,i.height),i.classes[0]="mord",i):w},Qge=(e,t)=>{var n=e.isStretchy?vp.mathMLnode(e.label):new Dt.MathNode("mo",[Ic(e.label,e.mode)]),r=new Dt.MathNode("mover",[xi(e.base,t),n]);return r.setAttribute("accent","true"),r},Rpt=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));rn({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=M3(t[0]),r=!Rpt.test(e.funcName),i=!r||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:_W,mathmlBuilder:Qge});rn({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:_W,mathmlBuilder:Qge});rn({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=Br(e.base,t),r=vp.svgSpan(e,t),i=e.label==="\\utilde"?.12:0,a=Qe.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:n}]},t);return Qe.makeSpan(["mord","accentunder"],[a],t)},mathmlBuilder:(e,t)=>{var n=vp.mathMLnode(e.label),r=new Dt.MathNode("munder",[xi(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var m4=e=>{var t=new Dt.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};rn({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:i}=e;return{type:"xArrow",mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=Qe.wrapFragment(Br(e.body,r,t),t),a=e.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var s;e.below&&(r=t.havingStyle(n.sub()),s=Qe.wrapFragment(Br(e.below,r,t),t),s.classes.push(a+"-arrow-pad"));var o=vp.svgSpan(e,t),l=-t.fontMetrics().axisHeight+.5*o.height,u=-t.fontMetrics().axisHeight-.5*o.height-.111;(i.depth>.25||e.label==="\\xleftequilibrium")&&(u-=i.depth);var d;if(s){var f=-t.fontMetrics().axisHeight+s.height+.5*o.height+.111;d=Qe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:o,shift:l},{type:"elem",elem:s,shift:f}]},t)}else d=Qe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:o,shift:l}]},t);return d.children[0].children[0].children[1].classes.push("svg-align"),Qe.makeSpan(["mrel","x-arrow"],[d],t)},mathmlBuilder(e,t){var n=vp.mathMLnode(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(e.body){var i=m4(xi(e.body,t));if(e.below){var a=m4(xi(e.below,t));r=new Dt.MathNode("munderover",[n,a,i])}else r=new Dt.MathNode("mover",[n,i])}else if(e.below){var s=m4(xi(e.below,t));r=new Dt.MathNode("munder",[n,s])}else r=m4(),r=new Dt.MathNode("mover",[n,r]);return r}});var Ipt=Qe.makeSpan;function Wge(e,t){var n=us(e.body,t,!0);return Ipt([e.mclass],n,t)}function Vge(e,t){var n,r=Ml(e.body,t);return e.mclass==="minner"?n=new Dt.MathNode("mpadded",r):e.mclass==="mord"?e.isCharacterBox?(n=r[0],n.type="mi"):n=new Dt.MathNode("mi",r):(e.isCharacterBox?(n=r[0],n.type="mo"):n=new Dt.MathNode("mo",r),e.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):e.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):e.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}rn({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:Pa(i),isCharacterBox:Nn.isCharacterBox(i)}},htmlBuilder:Wge,mathmlBuilder:Vge});var xI=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};rn({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:xI(t[0]),body:Pa(t[1]),isCharacterBox:Nn.isCharacterBox(t[1])}}});rn({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,i=t[1],a=t[0],s;r!=="\\stackrel"?s=xI(i):s="mrel";var o={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:Pa(i)},l={type:"supsub",mode:a.mode,base:o,sup:r==="\\underset"?null:a,sub:r==="\\underset"?a:null};return{type:"mclass",mode:n.mode,mclass:s,body:[l],isCharacterBox:Nn.isCharacterBox(l)}},htmlBuilder:Wge,mathmlBuilder:Vge});rn({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:xI(t[0]),body:Pa(t[0])}},htmlBuilder(e,t){var n=us(e.body,t,!0),r=Qe.makeSpan([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(e,t){var n=Ml(e.body,t),r=new Dt.MathNode("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var Npt={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Bte=()=>({type:"styling",body:[],mode:"math",style:"display"}),Ute=e=>e.type==="textord"&&e.text==="@",Dpt=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function Ppt(e,t,n){var r=Npt[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var i=n.callFunction("\\\\cdleft",[t[0]],[]),a={type:"atom",text:r,mode:"math",family:"rel"},s=n.callFunction("\\Big",[a],[]),o=n.callFunction("\\\\cdright",[t[1]],[]),l={type:"ordgroup",mode:"math",body:[i,s,o]};return n.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var u={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[u],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Lpt(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n==="&"||n==="\\\\")e.consume();else if(n==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new $t("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var r=[],i=[r],a=0;a-1))if("<>AV".indexOf(u)>-1)for(var f=0;f<2;f++){for(var p=!0,g=l+1;gAV=|." after @',s[l]);var O=Ppt(u,d,e),S={type:"styling",body:[O],mode:"math",style:"display"};r.push(S),o=Bte()}a%2===0?r.push(o):r.shift(),r=[],i.push(r)}e.gullet.endGroup(),e.gullet.endGroup();var T=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:T,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}rn({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=Qe.wrapFragment(Br(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=Wt(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new Dt.MathNode("mrow",[xi(e.label,t)]);return n=new Dt.MathNode("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new Dt.MathNode("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}});rn({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=Qe.wrapFragment(Br(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new Dt.MathNode("mrow",[xi(e.fragment,t)])}});rn({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=or(t[0],"ordgroup"),i=r.body,a="",s=0;s=1114111)throw new $t("\\@char with invalid code point "+a);return l<=65535?u=String.fromCharCode(l):(l-=65536,u=String.fromCharCode((l>>10)+55296,(l&1023)+56320)),{type:"textord",mode:n.mode,text:u}}});var qge=(e,t)=>{var n=us(e.body,t.withColor(e.color),!1);return Qe.makeFragment(n)},Gge=(e,t)=>{var n=Ml(e.body,t.withColor(e.color)),r=new Dt.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r};rn({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=or(t[0],"color-token").color,i=t[1];return{type:"color",mode:n.mode,color:r,body:Pa(i)}},htmlBuilder:qge,mathmlBuilder:Gge});rn({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=or(t[0],"color-token").color;n.gullet.macros.set("\\current@color",i);var a=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:i,body:a}},htmlBuilder:qge,mathmlBuilder:Gge});rn({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:a,size:i&&or(i,"size").value}},htmlBuilder(e,t){var n=Qe.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=Wt(ua(e.size,t)))),n},mathmlBuilder(e,t){var n=new Dt.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",Wt(ua(e.size,t)))),n}});var EM={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Yge=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new $t("Expected a control sequence",e);return t},Mpt=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},Zge=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i==null&&(n.noexpand=!0,i={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};rn({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(EM[r.text])return(n==="\\global"||n==="\\\\globallong")&&(r.text=EM[r.text]),or(t.parseFunction(),"internal");throw new $t("Invalid token after macro prefix",r)}});rn({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new $t("Expected a control sequence",r);for(var a=0,s,o=[[]];t.gullet.future().text!=="{";)if(r=t.gullet.popToken(),r.text==="#"){if(t.gullet.future().text==="{"){s=t.gullet.future(),o[a].push("{");break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new $t('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==a+1)throw new $t('Argument number "'+r.text+'" out of order');a++,o.push([])}else{if(r.text==="EOF")throw new $t("Expected a macro definition");o[a].push(r.text)}var{tokens:l}=t.gullet.consumeArg();return s&&l.unshift(s),(n==="\\edef"||n==="\\xdef")&&(l=t.gullet.expandTokens(l),l.reverse()),t.gullet.macros.set(i,{tokens:l,numArgs:a,delimiters:o},n===EM[n]),{type:"internal",mode:t.mode}}});rn({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=Yge(t.gullet.popToken());t.gullet.consumeSpaces();var i=Mpt(t);return Zge(t,r,i,n==="\\\\globallet"),{type:"internal",mode:t.mode}}});rn({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=Yge(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return Zge(t,r,a,n==="\\\\globalfuture"),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var HE=function(t,n,r){var i=Ni.math[t]&&Ni.math[t].replace,a=EW(i||t,n,r);if(!a)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return a},CW=function(t,n,r,i){var a=r.havingBaseStyle(n),s=Qe.makeSpan(i.concat(a.sizingClasses(r)),[t],r),o=a.sizeMultiplier/r.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=a.sizeMultiplier,s},Xge=function(t,n,r){var i=n.havingBaseStyle(r),a=(1-n.sizeMultiplier/i.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=Wt(a),t.height-=a,t.depth+=a},$pt=function(t,n,r,i,a,s){var o=Qe.makeSymbol(t,"Main-Regular",a,i),l=CW(o,n,i,s);return r&&Xge(l,i,n),l},Fpt=function(t,n,r,i){return Qe.makeSymbol(t,"Size"+n+"-Regular",r,i)},Kge=function(t,n,r,i,a,s){var o=Fpt(t,n,a,i),l=CW(Qe.makeSpan(["delimsizing","size"+n],[o],i),Ln.TEXT,i,s);return r&&Xge(l,i,Ln.TEXT),l},x7=function(t,n,r){var i;n==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=Qe.makeSpan(["delimsizinginner",i],[Qe.makeSpan([],[Qe.makeSymbol(t,n,r)])]);return{type:"elem",elem:a}},k7=function(t,n,r){var i=Cf["Size4-Regular"][t.charCodeAt(0)]?Cf["Size4-Regular"][t.charCodeAt(0)][4]:Cf["Size1-Regular"][t.charCodeAt(0)][4],a=new Om("inner",Qht(t,Math.round(1e3*n))),s=new bp([a],{width:Wt(i),height:Wt(n),style:"width:"+Wt(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),o=Qe.makeSvgSpan([],[s],r);return o.height=n,o.style.height=Wt(n),o.style.width=Wt(i),{type:"elem",elem:o}},wM=.008,g4={type:"kern",size:-1*wM},Bpt=["|","\\lvert","\\rvert","\\vert"],Upt=["\\|","\\lVert","\\rVert","\\Vert"],Jge=function(t,n,r,i,a,s){var o,l,u,d,f="",p=0;o=u=d=t,l=null;var g="Size1-Regular";t==="\\uparrow"?u=d="⏐":t==="\\Uparrow"?u=d="‖":t==="\\downarrow"?o=u="⏐":t==="\\Downarrow"?o=u="‖":t==="\\updownarrow"?(o="\\uparrow",u="⏐",d="\\downarrow"):t==="\\Updownarrow"?(o="\\Uparrow",u="‖",d="\\Downarrow"):Nn.contains(Bpt,t)?(u="∣",f="vert",p=333):Nn.contains(Upt,t)?(u="∥",f="doublevert",p=556):t==="["||t==="\\lbrack"?(o="⎡",u="⎢",d="⎣",g="Size4-Regular",f="lbrack",p=667):t==="]"||t==="\\rbrack"?(o="⎤",u="⎥",d="⎦",g="Size4-Regular",f="rbrack",p=667):t==="\\lfloor"||t==="⌊"?(u=o="⎢",d="⎣",g="Size4-Regular",f="lfloor",p=667):t==="\\lceil"||t==="⌈"?(o="⎡",u=d="⎢",g="Size4-Regular",f="lceil",p=667):t==="\\rfloor"||t==="⌋"?(u=o="⎥",d="⎦",g="Size4-Regular",f="rfloor",p=667):t==="\\rceil"||t==="⌉"?(o="⎤",u=d="⎥",g="Size4-Regular",f="rceil",p=667):t==="("||t==="\\lparen"?(o="⎛",u="⎜",d="⎝",g="Size4-Regular",f="lparen",p=875):t===")"||t==="\\rparen"?(o="⎞",u="⎟",d="⎠",g="Size4-Regular",f="rparen",p=875):t==="\\{"||t==="\\lbrace"?(o="⎧",l="⎨",d="⎩",u="⎪",g="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(o="⎫",l="⎬",d="⎭",u="⎪",g="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(o="⎧",d="⎩",u="⎪",g="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(o="⎫",d="⎭",u="⎪",g="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(o="⎧",d="⎭",u="⎪",g="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(o="⎫",d="⎩",u="⎪",g="Size4-Regular");var O=HE(o,g,a),S=O.height+O.depth,T=HE(u,g,a),w=T.height+T.depth,x=HE(d,g,a),k=x.height+x.depth,_=0,R=1;if(l!==null){var N=HE(l,g,a);_=N.height+N.depth,R=2}var D=S+k+_,L=Math.max(0,Math.ceil((n-D)/(R*w))),j=D+L*R*w,B=i.fontMetrics().axisHeight;r&&(B*=i.sizeMultiplier);var V=j/2-B,W=[];if(f.length>0){var re=j-S-k,ee=Math.round(j*1e3),q=Wht(f,Math.round(re*1e3)),te=new Om(f,q),K=(p/1e3).toFixed(3)+"em",G=(ee/1e3).toFixed(3)+"em",ie=new bp([te],{width:K,height:G,viewBox:"0 0 "+p+" "+ee}),H=Qe.makeSvgSpan([],[ie],i);H.height=ee/1e3,H.style.width=K,H.style.height=G,W.push({type:"elem",elem:H})}else{if(W.push(x7(d,g,a)),W.push(g4),l===null){var Re=j-S-k+2*wM;W.push(k7(u,Re,i))}else{var Se=(j-S-k-_)/2+2*wM;W.push(k7(u,Se,i)),W.push(g4),W.push(x7(l,g,a)),W.push(g4),W.push(k7(u,Se,i))}W.push(g4),W.push(x7(o,g,a))}var Z=i.havingBaseStyle(Ln.TEXT),ke=Qe.makeVList({positionType:"bottom",positionData:V,children:W},Z);return CW(Qe.makeSpan(["delimsizing","mult"],[ke],Z),Ln.TEXT,i,s)},A7=80,_7=.08,C7=function(t,n,r,i,a){var s=Hht(t,i,r),o=new Om(t,s),l=new bp([o],{width:"400em",height:Wt(n),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return Qe.makeSvgSpan(["hide-tail"],[l],a)},zpt=function(t,n){var r=n.havingBaseSizing(),i=r1e("\\surd",t*r.sizeMultiplier,n1e,r),a=r.sizeMultiplier,s=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),o,l=0,u=0,d=0,f;return i.type==="small"?(d=1e3+1e3*s+A7,t<1?a=1:t<1.4&&(a=.7),l=(1+s+_7)/a,u=(1+s)/a,o=C7("sqrtMain",l,d,s,n),o.style.minWidth="0.853em",f=.833/a):i.type==="large"?(d=(1e3+A7)*I2[i.size],u=(I2[i.size]+s)/a,l=(I2[i.size]+s+_7)/a,o=C7("sqrtSize"+i.size,l,d,s,n),o.style.minWidth="1.02em",f=1/a):(l=t+s+_7,u=t+s,d=Math.floor(1e3*t+s)+A7,o=C7("sqrtTall",l,d,s,n),o.style.minWidth="0.742em",f=1.056),o.height=u,o.style.height=Wt(l),{span:o,advanceWidth:f,ruleWidth:(n.fontMetrics().sqrtRuleThickness+s)*a}},e1e=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],jpt=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],t1e=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],I2=[0,1.2,1.8,2.4,3],Hpt=function(t,n,r,i,a){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),Nn.contains(e1e,t)||Nn.contains(t1e,t))return Kge(t,n,!1,r,i,a);if(Nn.contains(jpt,t))return Jge(t,I2[n],!1,r,i,a);throw new $t("Illegal delimiter: '"+t+"'")},Qpt=[{type:"small",style:Ln.SCRIPTSCRIPT},{type:"small",style:Ln.SCRIPT},{type:"small",style:Ln.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Wpt=[{type:"small",style:Ln.SCRIPTSCRIPT},{type:"small",style:Ln.SCRIPT},{type:"small",style:Ln.TEXT},{type:"stack"}],n1e=[{type:"small",style:Ln.SCRIPTSCRIPT},{type:"small",style:Ln.SCRIPT},{type:"small",style:Ln.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Vpt=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},r1e=function(t,n,r,i){for(var a=Math.min(2,3-i.style.size),s=a;sn)return r[s]}return r[r.length-1]},i1e=function(t,n,r,i,a,s){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var o;Nn.contains(t1e,t)?o=Qpt:Nn.contains(e1e,t)?o=n1e:o=Wpt;var l=r1e(t,n,o,i);return l.type==="small"?$pt(t,l.style,r,i,a,s):l.type==="large"?Kge(t,l.size,r,i,a,s):Jge(t,n,r,i,a,s)},qpt=function(t,n,r,i,a,s){var o=i.fontMetrics().axisHeight*i.sizeMultiplier,l=901,u=5/i.fontMetrics().ptPerEm,d=Math.max(n-o,r+o),f=Math.max(d/500*l,2*d-u);return i1e(t,f,!0,i,a,s)},ip={sqrtImage:zpt,sizedDelim:Hpt,sizeToMaxHeight:I2,customSizedDelim:i1e,leftRightDelim:qpt},zte={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Gpt=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function kI(e,t){var n=TI(e);if(n&&Nn.contains(Gpt,n.text))return n;throw n?new $t("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new $t("Invalid delimiter type '"+e.type+"'",e)}rn({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=kI(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:zte[e.funcName].size,mclass:zte[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?Qe.makeSpan([e.mclass]):ip.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(Ic(e.delim,e.mode));var n=new Dt.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=Wt(ip.sizeToMaxHeight[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}});function jte(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}rn({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="string")throw new $t("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:kI(t[0],e).text,color:n}}});rn({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=kI(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var a=or(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{jte(e);for(var n=us(e.body,t,!0,["mopen","mclose"]),r=0,i=0,a=!1,s=0;s{jte(e);var n=Ml(e.body,t);if(e.left!=="."){var r=new Dt.MathNode("mo",[Ic(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if(e.right!=="."){var i=new Dt.MathNode("mo",[Ic(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),n.push(i)}return xW(n)}});rn({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=kI(t[0],e);if(!e.parser.leftrightDepth)throw new $t("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if(e.delim===".")n=Xw(t,[]);else{n=ip.sizedDelim(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?Ic("|","text"):Ic(e.delim,e.mode),r=new Dt.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var RW=(e,t)=>{var n=Qe.wrapFragment(Br(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,s=0,o=Nn.isCharacterBox(e.body);if(r==="sout")a=Qe.makeSpan(["stretchy","sout"]),a.height=t.fontMetrics().defaultRuleThickness/i,s=-.5*t.fontMetrics().xHeight;else if(r==="phase"){var l=ua({number:.6,unit:"pt"},t),u=ua({number:.35,unit:"ex"},t),d=t.havingBaseSizing();i=i/d.sizeMultiplier;var f=n.height+n.depth+l+u;n.style.paddingLeft=Wt(f/2+l);var p=Math.floor(1e3*f*i),g=zht(p),O=new bp([new Om("phase",g)],{width:"400em",height:Wt(p/1e3),viewBox:"0 0 400000 "+p,preserveAspectRatio:"xMinYMin slice"});a=Qe.makeSvgSpan(["hide-tail"],[O],t),a.style.height=Wt(f),s=n.depth+l+u}else{/cancel/.test(r)?o||n.classes.push("cancel-pad"):r==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var S=0,T=0,w=0;/box/.test(r)?(w=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),S=t.fontMetrics().fboxsep+(r==="colorbox"?0:w),T=S):r==="angl"?(w=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),S=4*w,T=Math.max(0,.25-n.depth)):(S=o?.2:0,T=S),a=vp.encloseSpan(n,r,S,T,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle="solid",a.style.borderWidth=Wt(w)):r==="angl"&&w!==.049&&(a.style.borderTopWidth=Wt(w),a.style.borderRightWidth=Wt(w)),s=n.depth+T,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var x;if(e.backgroundColor)x=Qe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:s},{type:"elem",elem:n,shift:0}]},t);else{var k=/cancel|phase/.test(r)?["svg-align"]:[];x=Qe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:a,shift:s,wrapperClasses:k}]},t)}return/cancel/.test(r)&&(x.height=n.height,x.depth=n.depth),/cancel/.test(r)&&!o?Qe.makeSpan(["mord","cancel-lap"],[x],t):Qe.makeSpan(["mord"],[x],t)},IW=(e,t)=>{var n=0,r=new Dt.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[xi(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),e.label==="\\fcolorbox"){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+i+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};rn({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=or(t[0],"color-token").color,s=t[1];return{type:"enclose",mode:r.mode,label:i,backgroundColor:a,body:s}},htmlBuilder:RW,mathmlBuilder:IW});rn({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=or(t[0],"color-token").color,s=or(t[1],"color-token").color,o=t[2];return{type:"enclose",mode:r.mode,label:i,backgroundColor:s,borderColor:a,body:o}},htmlBuilder:RW,mathmlBuilder:IW});rn({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}});rn({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"enclose",mode:n.mode,label:r,body:i}},htmlBuilder:RW,mathmlBuilder:IW});rn({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var a1e={};function th(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l{var t=e.parser.settings;if(!t.displayMode)throw new $t("{"+e.envName+"} can be used only in display mode.")};function NW(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function Dm(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:a,arraystretch:s,colSeparationType:o,autoTag:l,singleRow:u,emptySingleRow:d,maxNumCols:f,leqno:p}=t;if(e.gullet.beginGroup(),u||e.gullet.macros.set("\\cr","\\\\\\relax"),!s){var g=e.gullet.expandMacroAsText("\\arraystretch");if(g==null)s=1;else if(s=parseFloat(g),!s||s<0)throw new $t("Invalid \\arraystretch: "+g)}e.gullet.beginGroup();var O=[],S=[O],T=[],w=[],x=l!=null?[]:void 0;function k(){l&&e.gullet.macros.set("\\@eqnsw","1",!0)}function _(){x&&(e.gullet.macros.get("\\df@tag")?(x.push(e.subparse([new wc("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):x.push(!!l&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(k(),w.push(Hte(e));;){var R=e.parseExpression(!1,u?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),R={type:"ordgroup",mode:e.mode,body:R},n&&(R={type:"styling",mode:e.mode,style:n,body:[R]}),O.push(R);var N=e.fetch().text;if(N==="&"){if(f&&O.length===f){if(u||o)throw new $t("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(N==="\\end"){_(),O.length===1&&R.type==="styling"&&R.body[0].body.length===0&&(S.length>1||!d)&&S.pop(),w.length0&&(k+=.25),u.push({pos:k,isDashed:de[_e]})}for(_(s[0]),r=0;r0&&(V+=x,Dde))for(r=0;r=o)){var Je=void 0;(i>0||t.hskipBeforeAndAfter)&&(Je=Nn.deflt(Se.pregap,p),Je!==0&&(q=Qe.makeSpan(["arraycolsep"],[]),q.style.width=Wt(Je),ee.push(q)));var We=[];for(r=0;r0){for(var Lt=Qe.makeLineSpan("hline",n,d),Ht=Qe.makeLineSpan("hdashline",n,d),ft=[{type:"elem",elem:l,shift:0}];u.length>0;){var Et=u.pop(),Ot=Et.pos-W;Et.isDashed?ft.push({type:"elem",elem:Ht,shift:Ot}):ft.push({type:"elem",elem:Lt,shift:Ot})}l=Qe.makeVList({positionType:"individualShift",children:ft},n)}if(K.length===0)return Qe.makeSpan(["mord"],[l],n);var zt=Qe.makeVList({positionType:"individualShift",children:K},n);return zt=Qe.makeSpan(["tag"],[zt],n),Qe.makeFragment([l,zt])},Ypt={c:"center ",l:"left ",r:"right "},rh=function(t,n){for(var r=[],i=new Dt.MathNode("mtd",[],["mtr-glue"]),a=new Dt.MathNode("mtd",[],["mml-eqn-num"]),s=0;s0){var O=t.cols,S="",T=!1,w=0,x=O.length;O[0].type==="separator"&&(p+="top ",w=1),O[O.length-1].type==="separator"&&(p+="bottom ",x-=1);for(var k=w;k0?"left ":"",p+=L[L.length-1].length>0?"right ":"";for(var j=1;j-1?"alignat":"align",a=t.envName==="split",s=Dm(t.parser,{cols:r,addJot:!0,autoTag:a?void 0:NW(t.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:a?2:void 0,leqno:t.parser.settings.leqno},"display"),o,l=0,u={type:"ordgroup",mode:t.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var d="",f=0;f0&&g&&(T=1),r[O]={type:"align",align:S,pregap:T,postgap:0}}return s.colSeparationType=g?"align":"alignat",s};th({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=TI(t[0]),r=n?[t[0]]:or(t[0],"ordgroup").body,i=r.map(function(s){var o=AW(s),l=o.text;if("lcr".indexOf(l)!==-1)return{type:"align",align:l};if(l==="|")return{type:"separator",separator:"|"};if(l===":")return{type:"separator",separator:":"};throw new $t("Unknown column alignment: "+l,s)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return Dm(e.parser,a,DW(e.envName))},htmlBuilder:nh,mathmlBuilder:rh});th({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(e.envName.charAt(e.envName.length-1)==="*"){var i=e.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,"lcr".indexOf(n)===-1)throw new $t("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),r.cols=[{type:"align",align:n}]}}var a=Dm(e.parser,r,DW(e.envName)),s=Math.max(0,...a.body.map(o=>o.length));return a.cols=new Array(s).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:nh,mathmlBuilder:rh});th({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=Dm(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:nh,mathmlBuilder:rh});th({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=TI(t[0]),r=n?[t[0]]:or(t[0],"ordgroup").body,i=r.map(function(s){var o=AW(s),l=o.text;if("lc".indexOf(l)!==-1)return{type:"align",align:l};throw new $t("Unknown column alignment: "+l,s)});if(i.length>1)throw new $t("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(a=Dm(e.parser,a,"script"),a.body.length>0&&a.body[0].length>1)throw new $t("{subarray} can contain only one column");return a},htmlBuilder:nh,mathmlBuilder:rh});th({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=Dm(e.parser,t,DW(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:nh,mathmlBuilder:rh});th({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:o1e,htmlBuilder:nh,mathmlBuilder:rh});th({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){Nn.contains(["gather","gather*"],e.envName)&&AI(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:NW(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Dm(e.parser,t,"display")},htmlBuilder:nh,mathmlBuilder:rh});th({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:o1e,htmlBuilder:nh,mathmlBuilder:rh});th({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){AI(e);var t={autoTag:NW(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Dm(e.parser,t,"display")},htmlBuilder:nh,mathmlBuilder:rh});th({type:"array",names:["CD"],props:{numArgs:0},handler(e){return AI(e),Lpt(e.parser)},htmlBuilder:nh,mathmlBuilder:rh});oe("\\nonumber","\\gdef\\@eqnsw{0}");oe("\\notag","\\nonumber");rn({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new $t(e.funcName+" valid only within array environment")}});var Qte=a1e;rn({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];if(i.type!=="ordgroup")throw new $t("Invalid environment name",i);for(var a="",s=0;s{var n=e.font,r=t.withFont(n);return Br(e.body,r)},u1e=(e,t)=>{var n=e.font,r=t.withFont(n);return xi(e.body,r)},Wte={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};rn({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=M3(t[0]),a=r;return a in Wte&&(a=Wte[a]),{type:"font",mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:l1e,mathmlBuilder:u1e});rn({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0],i=Nn.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:xI(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:i}}});rn({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:a}=n,s=n.parseExpression(!0,i),o="math"+r.slice(1);return{type:"font",mode:a,font:o,body:{type:"ordgroup",mode:n.mode,body:s}}},htmlBuilder:l1e,mathmlBuilder:u1e});var c1e=(e,t)=>{var n=t;return e==="display"?n=n.id>=Ln.SCRIPT.id?n.text():Ln.DISPLAY:e==="text"&&n.size===Ln.DISPLAY.size?n=Ln.TEXT:e==="script"?n=Ln.SCRIPT:e==="scriptscript"&&(n=Ln.SCRIPTSCRIPT),n},PW=(e,t)=>{var n=c1e(e.size,t.style),r=n.fracNum(),i=n.fracDen(),a;a=t.havingStyle(r);var s=Br(e.numer,a,t);if(e.continued){var o=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;s.height=s.height0?O=3*p:O=7*p,S=t.fontMetrics().denom1):(f>0?(g=t.fontMetrics().num2,O=p):(g=t.fontMetrics().num3,O=3*p),S=t.fontMetrics().denom2);var T;if(d){var x=t.fontMetrics().axisHeight;g-s.depth-(x+.5*f){var n=new Dt.MathNode("mfrac",[xi(e.numer,t),xi(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var r=ua(e.barSize,t);n.setAttribute("linethickness",Wt(r))}var i=c1e(e.size,t.style);if(i.size!==t.style.size){n=new Dt.MathNode("mstyle",[n]);var a=i.size===Ln.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",a),n.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var s=[];if(e.leftDelim!=null){var o=new Dt.MathNode("mo",[new Dt.TextNode(e.leftDelim.replace("\\",""))]);o.setAttribute("fence","true"),s.push(o)}if(s.push(n),e.rightDelim!=null){var l=new Dt.MathNode("mo",[new Dt.TextNode(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),s.push(l)}return xW(s)}return n};rn({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1],s,o=null,l=null,u="auto";switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,o="(",l=")";break;case"\\\\bracefrac":s=!1,o="\\{",l="\\}";break;case"\\\\brackfrac":s=!1,o="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\dfrac":case"\\dbinom":u="display";break;case"\\tfrac":case"\\tbinom":u="text";break}return{type:"genfrac",mode:n.mode,continued:!1,numer:i,denom:a,hasBarLine:s,leftDelim:o,rightDelim:l,size:u,barSize:null}},htmlBuilder:PW,mathmlBuilder:LW});rn({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:i,denom:a,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});rn({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,i;switch(n){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:i,token:r}}});var Vte=["display","text","script","scriptscript"],qte=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};rn({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:n}=e,r=t[4],i=t[5],a=M3(t[0]),s=a.type==="atom"&&a.family==="open"?qte(a.text):null,o=M3(t[1]),l=o.type==="atom"&&o.family==="close"?qte(o.text):null,u=or(t[2],"size"),d,f=null;u.isBlank?d=!0:(f=u.value,d=f.number>0);var p="auto",g=t[3];if(g.type==="ordgroup"){if(g.body.length>0){var O=or(g.body[0],"textord");p=Vte[Number(O.text)]}}else g=or(g,"textord"),p=Vte[Number(g.text)];return{type:"genfrac",mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:d,barSize:f,leftDelim:s,rightDelim:l,size:p}},htmlBuilder:PW,mathmlBuilder:LW});rn({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:or(t[0],"size").value,token:i}}});rn({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=kht(or(t[1],"infix").size),s=t[2],o=a.number>0;return{type:"genfrac",mode:n.mode,numer:i,denom:s,continued:!1,hasBarLine:o,barSize:a,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:PW,mathmlBuilder:LW});var d1e=(e,t)=>{var n=t.style,r,i;e.type==="supsub"?(r=e.sup?Br(e.sup,t.havingStyle(n.sup()),t):Br(e.sub,t.havingStyle(n.sub()),t),i=or(e.base,"horizBrace")):i=or(e,"horizBrace");var a=Br(i.base,t.havingBaseStyle(Ln.DISPLAY)),s=vp.svgSpan(i,t),o;if(i.isOver?(o=Qe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]},t),o.children[0].children[0].children[1].classes.push("svg-align")):(o=Qe.makeVList({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]},t),o.children[0].children[0].children[0].classes.push("svg-align")),r){var l=Qe.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t);i.isOver?o=Qe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:r}]},t):o=Qe.makeVList({positionType:"bottom",positionData:l.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:l}]},t)}return Qe.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t)},Zpt=(e,t)=>{var n=vp.mathMLnode(e.label);return new Dt.MathNode(e.isOver?"mover":"munder",[xi(e.base,t),n])};rn({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:d1e,mathmlBuilder:Zpt});rn({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=or(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:n.mode,href:i,body:Pa(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=us(e.body,t,!1);return Qe.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=Sm(e.body,t);return n instanceof dc||(n=new dc("mrow",[n])),n.setAttribute("href",e.href),n}});rn({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=or(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var i=[],a=0;a{var{parser:n,funcName:r,token:i}=e,a=or(t[0],"raw").string,s=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var o,l={};switch(r){case"\\htmlClass":l.class=a,o={command:"\\htmlClass",class:a};break;case"\\htmlId":l.id=a,o={command:"\\htmlId",id:a};break;case"\\htmlStyle":l.style=a,o={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var u=a.split(","),d=0;d{var n=us(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=Qe.makeSpan(r,n,t);for(var a in e.attributes)a!=="class"&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>Sm(e.body,t)});rn({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:Pa(t[0]),mathml:Pa(t[1])}},htmlBuilder:(e,t)=>{var n=us(e.html,t,!1);return Qe.makeFragment(n)},mathmlBuilder:(e,t)=>Sm(e.mathml,t)});var R7=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!n)throw new $t("Invalid size: '"+t+"' in \\includegraphics");var r={number:+(n[1]+n[2]),unit:n[3]};if(!Rge(r))throw new $t("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};rn({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,i={number:0,unit:"em"},a={number:.9,unit:"em"},s={number:0,unit:"em"},o="";if(n[0])for(var l=or(n[0],"raw").string,u=l.split(","),d=0;d{var n=ua(e.height,t),r=0;e.totalheight.number>0&&(r=ua(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=ua(e.width,t));var a={height:Wt(n+r)};i>0&&(a.width=Wt(i)),r>0&&(a.verticalAlign=Wt(-r));var s=new Zht(e.src,e.alt,a);return s.height=n,s.depth=r,s},mathmlBuilder:(e,t)=>{var n=new Dt.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=ua(e.height,t),i=0;if(e.totalheight.number>0&&(i=ua(e.totalheight,t)-r,n.setAttribute("valign",Wt(-i))),n.setAttribute("height",Wt(r+i)),e.width.number>0){var a=ua(e.width,t);n.setAttribute("width",Wt(a))}return n.setAttribute("src",e.src),n}});rn({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=or(t[0],"size");if(n.settings.strict){var a=r[1]==="m",s=i.value.unit==="mu";a?(s||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, "+("not "+i.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):s&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return Qe.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var n=ua(e.dimension,t);return new Dt.SpaceNode(n)}});rn({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment==="clap"?(n=Qe.makeSpan([],[Br(e.body,t)]),n=Qe.makeSpan(["inner"],[n],t)):n=Qe.makeSpan(["inner"],[Br(e.body,t)]);var r=Qe.makeSpan(["fix"],[]),i=Qe.makeSpan([e.alignment],[n,r],t),a=Qe.makeSpan(["strut"]);return a.style.height=Wt(i.height+i.depth),i.depth&&(a.style.verticalAlign=Wt(-i.depth)),i.children.unshift(a),i=Qe.makeSpan(["thinbox"],[i],t),Qe.makeSpan(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var n=new Dt.MathNode("mpadded",[xi(e.body,t)]);if(e.alignment!=="rlap"){var r=e.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}});rn({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode("math");var a=n==="\\("?"\\)":"$",s=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:"styling",mode:r.mode,style:"text",body:s}}});rn({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new $t("Mismatched "+e.funcName)}});var Gte=(e,t)=>{switch(t.style.size){case Ln.DISPLAY.size:return e.display;case Ln.TEXT.size:return e.text;case Ln.SCRIPT.size:return e.script;case Ln.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};rn({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:Pa(t[0]),text:Pa(t[1]),script:Pa(t[2]),scriptscript:Pa(t[3])}},htmlBuilder:(e,t)=>{var n=Gte(e,t),r=us(n,t,!1);return Qe.makeFragment(r)},mathmlBuilder:(e,t)=>{var n=Gte(e,t);return Sm(n,t)}});var f1e=(e,t,n,r,i,a,s)=>{e=Qe.makeSpan([],[e]);var o=n&&Nn.isCharacterBox(n),l,u;if(t){var d=Br(t,r.havingStyle(i.sup()),r);u={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-d.depth)}}if(n){var f=Br(n,r.havingStyle(i.sub()),r);l={elem:f,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-f.height)}}var p;if(u&&l){var g=r.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+e.depth+s;p=Qe.makeVList({positionType:"bottom",positionData:g,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Wt(-a)},{type:"kern",size:l.kern},{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:Wt(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(l){var O=e.height-s;p=Qe.makeVList({positionType:"top",positionData:O,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Wt(-a)},{type:"kern",size:l.kern},{type:"elem",elem:e}]},r)}else if(u){var S=e.depth+s;p=Qe.makeVList({positionType:"bottom",positionData:S,children:[{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:Wt(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else return e;var T=[p];if(l&&a!==0&&!o){var w=Qe.makeSpan(["mspace"],[],r);w.style.marginRight=Wt(a),T.unshift(w)}return Qe.makeSpan(["mop","op-limits"],T,r)},h1e=["\\smallint"],QO=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=or(e.base,"op"),i=!0):a=or(e,"op");var s=t.style,o=!1;s.size===Ln.DISPLAY.size&&a.symbol&&!Nn.contains(h1e,a.name)&&(o=!0);var l;if(a.symbol){var u=o?"Size2-Regular":"Size1-Regular",d="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(d=a.name.slice(1),a.name=d==="oiint"?"\\iint":"\\iiint"),l=Qe.makeSymbol(a.name,u,"math",t,["mop","op-symbol",o?"large-op":"small-op"]),d.length>0){var f=l.italic,p=Qe.staticSvg(d+"Size"+(o?"2":"1"),t);l=Qe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:p,shift:o?.08:0}]},t),a.name="\\"+d,l.classes.unshift("mop"),l.italic=f}}else if(a.body){var g=us(a.body,t,!0);g.length===1&&g[0]instanceof Rc?(l=g[0],l.classes[0]="mop"):l=Qe.makeSpan(["mop"],g,t)}else{for(var O=[],S=1;S{var n;if(e.symbol)n=new dc("mo",[Ic(e.name,e.mode)]),Nn.contains(h1e,e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new dc("mo",Ml(e.body,t));else{n=new dc("mi",[new R2(e.name.slice(1))]);var r=new dc("mo",[Ic("⁡","text")]);e.parentIsSupSub?n=new dc("mrow",[n,r]):n=zge([n,r])}return n},Xpt={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};rn({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=r;return i.length===1&&(i=Xpt[i]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:QO,mathmlBuilder:hx});rn({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Pa(r)}},htmlBuilder:QO,mathmlBuilder:hx});var Kpt={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};rn({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:QO,mathmlBuilder:hx});rn({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:QO,mathmlBuilder:hx});rn({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=Kpt[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:QO,mathmlBuilder:hx});var p1e=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=or(e.base,"operatorname"),i=!0):a=or(e,"operatorname");var s;if(a.body.length>0){for(var o=a.body.map(f=>{var p=f.text;return typeof p=="string"?{type:"textord",mode:f.mode,text:p}:f}),l=us(o,t.withFont("mathrm"),!0),u=0;u{for(var n=Ml(e.body,t.withFont("mathrm")),r=!0,i=0;id.toText()).join("");n=[new Dt.TextNode(o)]}var l=new Dt.MathNode("mi",n);l.setAttribute("mathvariant","normal");var u=new Dt.MathNode("mo",[Ic("⁡","text")]);return e.parentIsSupSub?new Dt.MathNode("mrow",[l,u]):Dt.newDocumentFragment([l,u])};rn({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"operatorname",mode:n.mode,body:Pa(i),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:p1e,mathmlBuilder:Jpt});oe("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");W1({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?Qe.makeFragment(us(e.body,t,!1)):Qe.makeSpan(["mord"],us(e.body,t,!0),t)},mathmlBuilder(e,t){return Sm(e.body,t,!0)}});rn({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(e,t){var n=Br(e.body,t.havingCrampedStyle()),r=Qe.makeLineSpan("overline-line",t),i=t.fontMetrics().defaultRuleThickness,a=Qe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r},{type:"kern",size:i}]},t);return Qe.makeSpan(["mord","overline"],[a],t)},mathmlBuilder(e,t){var n=new Dt.MathNode("mo",[new Dt.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new Dt.MathNode("mover",[xi(e.body,t),n]);return r.setAttribute("accent","true"),r}});rn({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"phantom",mode:n.mode,body:Pa(r)}},htmlBuilder:(e,t)=>{var n=us(e.body,t.withPhantom(),!1);return Qe.makeFragment(n)},mathmlBuilder:(e,t)=>{var n=Ml(e.body,t);return new Dt.MathNode("mphantom",n)}});rn({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=Qe.makeSpan([],[Br(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r{var n=Ml(Pa(e.body),t),r=new Dt.MathNode("mphantom",n),i=new Dt.MathNode("mpadded",[r]);return i.setAttribute("height","0px"),i.setAttribute("depth","0px"),i}});rn({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=Qe.makeSpan(["inner"],[Br(e.body,t.withPhantom())]),r=Qe.makeSpan(["fix"],[]);return Qe.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=Ml(Pa(e.body),t),r=new Dt.MathNode("mphantom",n),i=new Dt.MathNode("mpadded",[r]);return i.setAttribute("width","0px"),i}});rn({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=or(t[0],"size").value,i=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=Br(e.body,t),r=ua(e.dy,t);return Qe.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){var n=new Dt.MathNode("mpadded",[xi(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}});rn({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});rn({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(e,t,n){var{parser:r}=e,i=n[0],a=or(t[0],"size"),s=or(t[1],"size");return{type:"rule",mode:r.mode,shift:i&&or(i,"size").value,width:a.value,height:s.value}},htmlBuilder(e,t){var n=Qe.makeSpan(["mord","rule"],[],t),r=ua(e.width,t),i=ua(e.height,t),a=e.shift?ua(e.shift,t):0;return n.style.borderRightWidth=Wt(r),n.style.borderTopWidth=Wt(i),n.style.bottom=Wt(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=ua(e.width,t),r=ua(e.height,t),i=e.shift?ua(e.shift,t):0,a=t.color&&t.getColor()||"black",s=new Dt.MathNode("mspace");s.setAttribute("mathbackground",a),s.setAttribute("width",Wt(n)),s.setAttribute("height",Wt(r));var o=new Dt.MathNode("mpadded",[s]);return i>=0?o.setAttribute("height",Wt(i)):(o.setAttribute("height",Wt(i)),o.setAttribute("depth",Wt(-i))),o.setAttribute("voffset",Wt(i)),o}});function m1e(e,t,n){for(var r=us(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a{var n=t.havingSize(e.size);return m1e(e.body,n,t)};rn({type:"sizing",names:Yte,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!1,n);return{type:"sizing",mode:i.mode,size:Yte.indexOf(r)+1,body:a}},htmlBuilder:e0t,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=Ml(e.body,n),i=new Dt.MathNode("mstyle",r);return i.setAttribute("mathsize",Wt(n.sizeMultiplier)),i}});rn({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,i=!1,a=!1,s=n[0]&&or(n[0],"ordgroup");if(s)for(var o="",l=0;l{var n=Qe.makeSpan([],[Br(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var r=0;r{var n=new Dt.MathNode("mpadded",[xi(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}});rn({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],a=t[0];return{type:"sqrt",mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=Br(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=Qe.wrapFragment(n,t);var r=t.fontMetrics(),i=r.defaultRuleThickness,a=i;t.style.idn.height+n.depth+s&&(s=(s+f-n.height-n.depth)/2);var p=l.height-n.height-s-u;n.style.paddingLeft=Wt(d);var g=Qe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+p)},{type:"elem",elem:l},{type:"kern",size:u}]},t);if(e.index){var O=t.havingStyle(Ln.SCRIPTSCRIPT),S=Br(e.index,O,t),T=.6*(g.height-g.depth),w=Qe.makeVList({positionType:"shift",positionData:-T,children:[{type:"elem",elem:S}]},t),x=Qe.makeSpan(["root"],[w]);return Qe.makeSpan(["mord","sqrt"],[x,g],t)}else return Qe.makeSpan(["mord","sqrt"],[g],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new Dt.MathNode("mroot",[xi(n,t),xi(r,t)]):new Dt.MathNode("msqrt",[xi(n,t)])}});var Zte={display:Ln.DISPLAY,text:Ln.TEXT,script:Ln.SCRIPT,scriptscript:Ln.SCRIPTSCRIPT};rn({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!0,n),s=r.slice(1,r.length-5);return{type:"styling",mode:i.mode,style:s,body:a}},htmlBuilder(e,t){var n=Zte[e.style],r=t.havingStyle(n).withFont("");return m1e(e.body,r,t)},mathmlBuilder(e,t){var n=Zte[e.style],r=t.havingStyle(n),i=Ml(e.body,r),a=new Dt.MathNode("mstyle",i),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[e.style];return a.setAttribute("scriptlevel",o[0]),a.setAttribute("displaystyle",o[1]),a}});var t0t=function(t,n){var r=t.base;if(r)if(r.type==="op"){var i=r.limits&&(n.style.size===Ln.DISPLAY.size||r.alwaysHandleSupSub);return i?QO:null}else if(r.type==="operatorname"){var a=r.alwaysHandleSupSub&&(n.style.size===Ln.DISPLAY.size||r.limits);return a?p1e:null}else{if(r.type==="accent")return Nn.isCharacterBox(r.base)?_W:null;if(r.type==="horizBrace"){var s=!t.sub;return s===r.isOver?d1e:null}else return null}else return null};W1({type:"supsub",htmlBuilder(e,t){var n=t0t(e,t);if(n)return n(e,t);var{base:r,sup:i,sub:a}=e,s=Br(r,t),o,l,u=t.fontMetrics(),d=0,f=0,p=r&&Nn.isCharacterBox(r);if(i){var g=t.havingStyle(t.style.sup());o=Br(i,g,t),p||(d=s.height-g.fontMetrics().supDrop*g.sizeMultiplier/t.sizeMultiplier)}if(a){var O=t.havingStyle(t.style.sub());l=Br(a,O,t),p||(f=s.depth+O.fontMetrics().subDrop*O.sizeMultiplier/t.sizeMultiplier)}var S;t.style===Ln.DISPLAY?S=u.sup1:t.style.cramped?S=u.sup3:S=u.sup2;var T=t.sizeMultiplier,w=Wt(.5/u.ptPerEm/T),x=null;if(l){var k=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(s instanceof Rc||k)&&(x=Wt(-s.italic))}var _;if(o&&l){d=Math.max(d,S,o.depth+.25*u.xHeight),f=Math.max(f,u.sub2);var R=u.defaultRuleThickness,N=4*R;if(d-o.depth-(l.height-f)0&&(d+=D,f-=D)}var L=[{type:"elem",elem:l,shift:f,marginRight:w,marginLeft:x},{type:"elem",elem:o,shift:-d,marginRight:w}];_=Qe.makeVList({positionType:"individualShift",children:L},t)}else if(l){f=Math.max(f,u.sub1,l.height-.8*u.xHeight);var j=[{type:"elem",elem:l,marginLeft:x,marginRight:w}];_=Qe.makeVList({positionType:"shift",positionData:f,children:j},t)}else if(o)d=Math.max(d,S,o.depth+.25*u.xHeight),_=Qe.makeVList({positionType:"shift",positionData:-d,children:[{type:"elem",elem:o,marginRight:w}]},t);else throw new Error("supsub must have either sup or sub.");var B=OM(s,"right")||"mord";return Qe.makeSpan([B],[s,Qe.makeSpan(["msupsub"],[_])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type==="horizBrace"&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var a=[xi(e.base,t)];e.sub&&a.push(xi(e.sub,t)),e.sup&&a.push(xi(e.sup,t));var s;if(n)s=r?"mover":"munder";else if(e.sub)if(e.sup){var u=e.base;u&&u.type==="op"&&u.limits&&t.style===Ln.DISPLAY||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(t.style===Ln.DISPLAY||u.limits)?s="munderover":s="msubsup"}else{var l=e.base;l&&l.type==="op"&&l.limits&&(t.style===Ln.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||t.style===Ln.DISPLAY)?s="munder":s="msub"}else{var o=e.base;o&&o.type==="op"&&o.limits&&(t.style===Ln.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||t.style===Ln.DISPLAY)?s="mover":s="msup"}return new Dt.MathNode(s,a)}});W1({type:"atom",htmlBuilder(e,t){return Qe.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new Dt.MathNode("mo",[Ic(e.text,e.mode)]);if(e.family==="bin"){var r=kW(e,t);r==="bold-italic"&&n.setAttribute("mathvariant",r)}else e.family==="punct"?n.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&n.setAttribute("stretchy","false");return n}});var g1e={mi:"italic",mn:"normal",mtext:"normal"};W1({type:"mathord",htmlBuilder(e,t){return Qe.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var n=new Dt.MathNode("mi",[Ic(e.text,e.mode,t)]),r=kW(e,t)||"italic";return r!==g1e[n.type]&&n.setAttribute("mathvariant",r),n}});W1({type:"textord",htmlBuilder(e,t){return Qe.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var n=Ic(e.text,e.mode,t),r=kW(e,t)||"normal",i;return e.mode==="text"?i=new Dt.MathNode("mtext",[n]):/[0-9]/.test(e.text)?i=new Dt.MathNode("mn",[n]):e.text==="\\prime"?i=new Dt.MathNode("mo",[n]):i=new Dt.MathNode("mi",[n]),r!==g1e[i.type]&&i.setAttribute("mathvariant",r),i}});var I7={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},N7={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};W1({type:"spacing",htmlBuilder(e,t){if(N7.hasOwnProperty(e.text)){var n=N7[e.text].className||"";if(e.mode==="text"){var r=Qe.makeOrd(e,t,"textord");return r.classes.push(n),r}else return Qe.makeSpan(["mspace",n],[Qe.mathsym(e.text,e.mode,t)],t)}else{if(I7.hasOwnProperty(e.text))return Qe.makeSpan(["mspace",I7[e.text]],[],t);throw new $t('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(N7.hasOwnProperty(e.text))n=new Dt.MathNode("mtext",[new Dt.TextNode(" ")]);else{if(I7.hasOwnProperty(e.text))return new Dt.MathNode("mspace");throw new $t('Unknown type of space "'+e.text+'"')}return n}});var Xte=()=>{var e=new Dt.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};W1({type:"tag",mathmlBuilder(e,t){var n=new Dt.MathNode("mtable",[new Dt.MathNode("mtr",[Xte(),new Dt.MathNode("mtd",[Sm(e.body,t)]),Xte(),new Dt.MathNode("mtd",[Sm(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var Kte={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Jte={"\\textbf":"textbf","\\textmd":"textmd"},n0t={"\\textit":"textit","\\textup":"textup"},ene=(e,t)=>{var n=e.font;if(n){if(Kte[n])return t.withTextFontFamily(Kte[n]);if(Jte[n])return t.withTextFontWeight(Jte[n]);if(n==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(n0t[n])};rn({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"text",mode:n.mode,body:Pa(i),font:r}},htmlBuilder(e,t){var n=ene(e,t),r=us(e.body,n,!0);return Qe.makeSpan(["mord","text"],r,n)},mathmlBuilder(e,t){var n=ene(e,t);return Sm(e.body,n)}});rn({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Br(e.body,t),r=Qe.makeLineSpan("underline-line",t),i=t.fontMetrics().defaultRuleThickness,a=Qe.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:i},{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n}]},t);return Qe.makeSpan(["mord","underline"],[a],t)},mathmlBuilder(e,t){var n=new Dt.MathNode("mo",[new Dt.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new Dt.MathNode("munder",[xi(e.body,t),n]);return r.setAttribute("accentunder","true"),r}});rn({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Br(e.body,t),r=t.fontMetrics().axisHeight,i=.5*(n.height-r-(n.depth+r));return Qe.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){return new Dt.MathNode("mpadded",[xi(e.body,t)],["vcenter"])}});rn({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new $t("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=tne(e),r=[],i=t.havingStyle(t.style.text()),a=0;ae.body.replace(/ /g,e.star?"␣":" "),W0=Bge,b1e=`[ \r - ]`,r0t="\\\\[a-zA-Z@]+",i0t="\\\\[^\uD800-\uDFFF]",a0t="("+r0t+")"+b1e+"*",s0t=`\\\\( +-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};let fx=class{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return Nn.contains(this.classes,t)}toNode(){for(var t=document.createDocumentFragment(),n=0;nn.toText();return this.children.map(t).join("")}};var xf={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},u4={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},vte={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function Iht(e,t){xf[e]=t}function dW(e,t,n){if(!xf[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),i=xf[t][r];if(!i&&e[0]in vte&&(r=vte[e[0]].charCodeAt(0),i=xf[t][r]),!i&&n==="text"&&vge(r)&&(i=xf[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var h7={};function Nht(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!h7[t]){var n=h7[t]={cssEmPerMu:u4.quad[t]/18};for(var r in u4)u4.hasOwnProperty(r)&&(n[r]=u4[r][t])}return h7[t]}var Dht=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Ote=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Ste=function(t,n){return n.size<2?t:Dht[t-1][n.size-1]};class Ph{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||Ph.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=Ote[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return new Ph(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:Ste(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:Ote[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=Ste(Ph.BASESIZE,t);return this.size===n&&this.textSize===Ph.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Ph.BASESIZE?["sizing","reset-size"+this.size,"size"+Ph.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=Nht(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Ph.BASESIZE=6;var lM={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},Pht={ex:!0,em:!0,mu:!0},Oge=function(t){return typeof t!="string"&&(t=t.unit),t in lM||t in Pht||t==="ex"},la=function(t,n){var r;if(t.unit in lM)r=lM[t.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(t.unit==="mu")r=n.fontMetrics().cssEmPerMu;else{var i;if(n.style.isTight()?i=n.havingStyle(n.style.text()):i=n,t.unit==="ex")r=i.fontMetrics().xHeight;else if(t.unit==="em")r=i.fontMetrics().quad;else throw new Mt("Invalid unit: '"+t.unit+"'");i!==n&&(r*=i.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*r,n.maxSize)},Qt=function(t){return+t.toFixed(4)+"em"},fm=function(t){return t.filter(n=>n).join(" ")},Sge=function(t,n,r){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},n){n.style.isTight()&&this.classes.push("mtight");var i=n.getColor();i&&(this.style.color=i)}},Ege=function(t){var n=document.createElement(t);n.className=fm(this.classes);for(var r in this.style)this.style.hasOwnProperty(r)&&(n.style[r]=this.style[r]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&n.setAttribute(i,this.attributes[i]);for(var a=0;a",n};let hx=class{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,Sge.call(this,t,r,i),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return Nn.contains(this.classes,t)}toNode(){return Ege.call(this,"span")}toMarkup(){return wge.call(this,"span")}};class fW{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Sge.call(this,n,i),this.children=r||[],this.setAttribute("href",t)}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return Nn.contains(this.classes,t)}toNode(){return Ege.call(this,"a")}toMarkup(){return wge.call(this,"a")}}class Lht{constructor(t,n,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=n,this.src=t,this.classes=["mord"],this.style=r}hasClass(t){return Nn.contains(this.classes,t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var n in this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);return t}toMarkup(){var t=''+Nn.escape(this.alt)+'0&&(n=document.createElement("span"),n.style.marginRight=Qt(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=fm(this.classes));for(var r in this.style)this.style.hasOwnProperty(r)&&(n=n||document.createElement("span"),n.style[r]=this.style[r]);return n?(n.appendChild(t),n):t}toMarkup(){var t=!1,n="0&&(r+="margin-right:"+this.italic+"em;");for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=Nn.hyphenate(i)+":"+this.style[i]+";");r&&(t=!0,n+=' style="'+Nn.escape(r)+'"');var a=Nn.escape(this.text);return t?(n+=">",n+=a,n+="",n):a}}class dp{constructor(t,n){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=n||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"svg");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);for(var i=0;i':''}}class uM{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"line");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);return n}toMarkup(){var t=" but got "+String(e)+".")}var Fht={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Bht={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Ci={math:{},text:{}};function $(e,t,n,r,i,a){Ci[e][i]={font:t,group:n,replace:r},a&&r&&(Ci[e][r]=Ci[e][i])}var z="math",At="text",J="main",ye="ams",na="accent-token",sn="bin",nl="close",DO="inner",Pn="mathord",Va="op-token",Mu="open",OI="punct",Oe="rel",_p="spacing",De="textord";$(z,J,Oe,"≡","\\equiv",!0);$(z,J,Oe,"≺","\\prec",!0);$(z,J,Oe,"≻","\\succ",!0);$(z,J,Oe,"∼","\\sim",!0);$(z,J,Oe,"⊥","\\perp");$(z,J,Oe,"⪯","\\preceq",!0);$(z,J,Oe,"⪰","\\succeq",!0);$(z,J,Oe,"≃","\\simeq",!0);$(z,J,Oe,"∣","\\mid",!0);$(z,J,Oe,"≪","\\ll",!0);$(z,J,Oe,"≫","\\gg",!0);$(z,J,Oe,"≍","\\asymp",!0);$(z,J,Oe,"∥","\\parallel");$(z,J,Oe,"⋈","\\bowtie",!0);$(z,J,Oe,"⌣","\\smile",!0);$(z,J,Oe,"⊑","\\sqsubseteq",!0);$(z,J,Oe,"⊒","\\sqsupseteq",!0);$(z,J,Oe,"≐","\\doteq",!0);$(z,J,Oe,"⌢","\\frown",!0);$(z,J,Oe,"∋","\\ni",!0);$(z,J,Oe,"∝","\\propto",!0);$(z,J,Oe,"⊢","\\vdash",!0);$(z,J,Oe,"⊣","\\dashv",!0);$(z,J,Oe,"∋","\\owns");$(z,J,OI,".","\\ldotp");$(z,J,OI,"⋅","\\cdotp");$(z,J,De,"#","\\#");$(At,J,De,"#","\\#");$(z,J,De,"&","\\&");$(At,J,De,"&","\\&");$(z,J,De,"ℵ","\\aleph",!0);$(z,J,De,"∀","\\forall",!0);$(z,J,De,"ℏ","\\hbar",!0);$(z,J,De,"∃","\\exists",!0);$(z,J,De,"∇","\\nabla",!0);$(z,J,De,"♭","\\flat",!0);$(z,J,De,"ℓ","\\ell",!0);$(z,J,De,"♮","\\natural",!0);$(z,J,De,"♣","\\clubsuit",!0);$(z,J,De,"℘","\\wp",!0);$(z,J,De,"♯","\\sharp",!0);$(z,J,De,"♢","\\diamondsuit",!0);$(z,J,De,"ℜ","\\Re",!0);$(z,J,De,"♡","\\heartsuit",!0);$(z,J,De,"ℑ","\\Im",!0);$(z,J,De,"♠","\\spadesuit",!0);$(z,J,De,"§","\\S",!0);$(At,J,De,"§","\\S");$(z,J,De,"¶","\\P",!0);$(At,J,De,"¶","\\P");$(z,J,De,"†","\\dag");$(At,J,De,"†","\\dag");$(At,J,De,"†","\\textdagger");$(z,J,De,"‡","\\ddag");$(At,J,De,"‡","\\ddag");$(At,J,De,"‡","\\textdaggerdbl");$(z,J,nl,"⎱","\\rmoustache",!0);$(z,J,Mu,"⎰","\\lmoustache",!0);$(z,J,nl,"⟯","\\rgroup",!0);$(z,J,Mu,"⟮","\\lgroup",!0);$(z,J,sn,"∓","\\mp",!0);$(z,J,sn,"⊖","\\ominus",!0);$(z,J,sn,"⊎","\\uplus",!0);$(z,J,sn,"⊓","\\sqcap",!0);$(z,J,sn,"∗","\\ast");$(z,J,sn,"⊔","\\sqcup",!0);$(z,J,sn,"◯","\\bigcirc",!0);$(z,J,sn,"∙","\\bullet",!0);$(z,J,sn,"‡","\\ddagger");$(z,J,sn,"≀","\\wr",!0);$(z,J,sn,"⨿","\\amalg");$(z,J,sn,"&","\\And");$(z,J,Oe,"⟵","\\longleftarrow",!0);$(z,J,Oe,"⇐","\\Leftarrow",!0);$(z,J,Oe,"⟸","\\Longleftarrow",!0);$(z,J,Oe,"⟶","\\longrightarrow",!0);$(z,J,Oe,"⇒","\\Rightarrow",!0);$(z,J,Oe,"⟹","\\Longrightarrow",!0);$(z,J,Oe,"↔","\\leftrightarrow",!0);$(z,J,Oe,"⟷","\\longleftrightarrow",!0);$(z,J,Oe,"⇔","\\Leftrightarrow",!0);$(z,J,Oe,"⟺","\\Longleftrightarrow",!0);$(z,J,Oe,"↦","\\mapsto",!0);$(z,J,Oe,"⟼","\\longmapsto",!0);$(z,J,Oe,"↗","\\nearrow",!0);$(z,J,Oe,"↩","\\hookleftarrow",!0);$(z,J,Oe,"↪","\\hookrightarrow",!0);$(z,J,Oe,"↘","\\searrow",!0);$(z,J,Oe,"↼","\\leftharpoonup",!0);$(z,J,Oe,"⇀","\\rightharpoonup",!0);$(z,J,Oe,"↙","\\swarrow",!0);$(z,J,Oe,"↽","\\leftharpoondown",!0);$(z,J,Oe,"⇁","\\rightharpoondown",!0);$(z,J,Oe,"↖","\\nwarrow",!0);$(z,J,Oe,"⇌","\\rightleftharpoons",!0);$(z,ye,Oe,"≮","\\nless",!0);$(z,ye,Oe,"","\\@nleqslant");$(z,ye,Oe,"","\\@nleqq");$(z,ye,Oe,"⪇","\\lneq",!0);$(z,ye,Oe,"≨","\\lneqq",!0);$(z,ye,Oe,"","\\@lvertneqq");$(z,ye,Oe,"⋦","\\lnsim",!0);$(z,ye,Oe,"⪉","\\lnapprox",!0);$(z,ye,Oe,"⊀","\\nprec",!0);$(z,ye,Oe,"⋠","\\npreceq",!0);$(z,ye,Oe,"⋨","\\precnsim",!0);$(z,ye,Oe,"⪹","\\precnapprox",!0);$(z,ye,Oe,"≁","\\nsim",!0);$(z,ye,Oe,"","\\@nshortmid");$(z,ye,Oe,"∤","\\nmid",!0);$(z,ye,Oe,"⊬","\\nvdash",!0);$(z,ye,Oe,"⊭","\\nvDash",!0);$(z,ye,Oe,"⋪","\\ntriangleleft");$(z,ye,Oe,"⋬","\\ntrianglelefteq",!0);$(z,ye,Oe,"⊊","\\subsetneq",!0);$(z,ye,Oe,"","\\@varsubsetneq");$(z,ye,Oe,"⫋","\\subsetneqq",!0);$(z,ye,Oe,"","\\@varsubsetneqq");$(z,ye,Oe,"≯","\\ngtr",!0);$(z,ye,Oe,"","\\@ngeqslant");$(z,ye,Oe,"","\\@ngeqq");$(z,ye,Oe,"⪈","\\gneq",!0);$(z,ye,Oe,"≩","\\gneqq",!0);$(z,ye,Oe,"","\\@gvertneqq");$(z,ye,Oe,"⋧","\\gnsim",!0);$(z,ye,Oe,"⪊","\\gnapprox",!0);$(z,ye,Oe,"⊁","\\nsucc",!0);$(z,ye,Oe,"⋡","\\nsucceq",!0);$(z,ye,Oe,"⋩","\\succnsim",!0);$(z,ye,Oe,"⪺","\\succnapprox",!0);$(z,ye,Oe,"≆","\\ncong",!0);$(z,ye,Oe,"","\\@nshortparallel");$(z,ye,Oe,"∦","\\nparallel",!0);$(z,ye,Oe,"⊯","\\nVDash",!0);$(z,ye,Oe,"⋫","\\ntriangleright");$(z,ye,Oe,"⋭","\\ntrianglerighteq",!0);$(z,ye,Oe,"","\\@nsupseteqq");$(z,ye,Oe,"⊋","\\supsetneq",!0);$(z,ye,Oe,"","\\@varsupsetneq");$(z,ye,Oe,"⫌","\\supsetneqq",!0);$(z,ye,Oe,"","\\@varsupsetneqq");$(z,ye,Oe,"⊮","\\nVdash",!0);$(z,ye,Oe,"⪵","\\precneqq",!0);$(z,ye,Oe,"⪶","\\succneqq",!0);$(z,ye,Oe,"","\\@nsubseteqq");$(z,ye,sn,"⊴","\\unlhd");$(z,ye,sn,"⊵","\\unrhd");$(z,ye,Oe,"↚","\\nleftarrow",!0);$(z,ye,Oe,"↛","\\nrightarrow",!0);$(z,ye,Oe,"⇍","\\nLeftarrow",!0);$(z,ye,Oe,"⇏","\\nRightarrow",!0);$(z,ye,Oe,"↮","\\nleftrightarrow",!0);$(z,ye,Oe,"⇎","\\nLeftrightarrow",!0);$(z,ye,Oe,"△","\\vartriangle");$(z,ye,De,"ℏ","\\hslash");$(z,ye,De,"▽","\\triangledown");$(z,ye,De,"◊","\\lozenge");$(z,ye,De,"Ⓢ","\\circledS");$(z,ye,De,"®","\\circledR");$(At,ye,De,"®","\\circledR");$(z,ye,De,"∡","\\measuredangle",!0);$(z,ye,De,"∄","\\nexists");$(z,ye,De,"℧","\\mho");$(z,ye,De,"Ⅎ","\\Finv",!0);$(z,ye,De,"⅁","\\Game",!0);$(z,ye,De,"‵","\\backprime");$(z,ye,De,"▲","\\blacktriangle");$(z,ye,De,"▼","\\blacktriangledown");$(z,ye,De,"■","\\blacksquare");$(z,ye,De,"⧫","\\blacklozenge");$(z,ye,De,"★","\\bigstar");$(z,ye,De,"∢","\\sphericalangle",!0);$(z,ye,De,"∁","\\complement",!0);$(z,ye,De,"ð","\\eth",!0);$(At,J,De,"ð","ð");$(z,ye,De,"╱","\\diagup");$(z,ye,De,"╲","\\diagdown");$(z,ye,De,"□","\\square");$(z,ye,De,"□","\\Box");$(z,ye,De,"◊","\\Diamond");$(z,ye,De,"¥","\\yen",!0);$(At,ye,De,"¥","\\yen",!0);$(z,ye,De,"✓","\\checkmark",!0);$(At,ye,De,"✓","\\checkmark");$(z,ye,De,"ℶ","\\beth",!0);$(z,ye,De,"ℸ","\\daleth",!0);$(z,ye,De,"ℷ","\\gimel",!0);$(z,ye,De,"ϝ","\\digamma",!0);$(z,ye,De,"ϰ","\\varkappa");$(z,ye,Mu,"┌","\\@ulcorner",!0);$(z,ye,nl,"┐","\\@urcorner",!0);$(z,ye,Mu,"└","\\@llcorner",!0);$(z,ye,nl,"┘","\\@lrcorner",!0);$(z,ye,Oe,"≦","\\leqq",!0);$(z,ye,Oe,"⩽","\\leqslant",!0);$(z,ye,Oe,"⪕","\\eqslantless",!0);$(z,ye,Oe,"≲","\\lesssim",!0);$(z,ye,Oe,"⪅","\\lessapprox",!0);$(z,ye,Oe,"≊","\\approxeq",!0);$(z,ye,sn,"⋖","\\lessdot");$(z,ye,Oe,"⋘","\\lll",!0);$(z,ye,Oe,"≶","\\lessgtr",!0);$(z,ye,Oe,"⋚","\\lesseqgtr",!0);$(z,ye,Oe,"⪋","\\lesseqqgtr",!0);$(z,ye,Oe,"≑","\\doteqdot");$(z,ye,Oe,"≓","\\risingdotseq",!0);$(z,ye,Oe,"≒","\\fallingdotseq",!0);$(z,ye,Oe,"∽","\\backsim",!0);$(z,ye,Oe,"⋍","\\backsimeq",!0);$(z,ye,Oe,"⫅","\\subseteqq",!0);$(z,ye,Oe,"⋐","\\Subset",!0);$(z,ye,Oe,"⊏","\\sqsubset",!0);$(z,ye,Oe,"≼","\\preccurlyeq",!0);$(z,ye,Oe,"⋞","\\curlyeqprec",!0);$(z,ye,Oe,"≾","\\precsim",!0);$(z,ye,Oe,"⪷","\\precapprox",!0);$(z,ye,Oe,"⊲","\\vartriangleleft");$(z,ye,Oe,"⊴","\\trianglelefteq");$(z,ye,Oe,"⊨","\\vDash",!0);$(z,ye,Oe,"⊪","\\Vvdash",!0);$(z,ye,Oe,"⌣","\\smallsmile");$(z,ye,Oe,"⌢","\\smallfrown");$(z,ye,Oe,"≏","\\bumpeq",!0);$(z,ye,Oe,"≎","\\Bumpeq",!0);$(z,ye,Oe,"≧","\\geqq",!0);$(z,ye,Oe,"⩾","\\geqslant",!0);$(z,ye,Oe,"⪖","\\eqslantgtr",!0);$(z,ye,Oe,"≳","\\gtrsim",!0);$(z,ye,Oe,"⪆","\\gtrapprox",!0);$(z,ye,sn,"⋗","\\gtrdot");$(z,ye,Oe,"⋙","\\ggg",!0);$(z,ye,Oe,"≷","\\gtrless",!0);$(z,ye,Oe,"⋛","\\gtreqless",!0);$(z,ye,Oe,"⪌","\\gtreqqless",!0);$(z,ye,Oe,"≖","\\eqcirc",!0);$(z,ye,Oe,"≗","\\circeq",!0);$(z,ye,Oe,"≜","\\triangleq",!0);$(z,ye,Oe,"∼","\\thicksim");$(z,ye,Oe,"≈","\\thickapprox");$(z,ye,Oe,"⫆","\\supseteqq",!0);$(z,ye,Oe,"⋑","\\Supset",!0);$(z,ye,Oe,"⊐","\\sqsupset",!0);$(z,ye,Oe,"≽","\\succcurlyeq",!0);$(z,ye,Oe,"⋟","\\curlyeqsucc",!0);$(z,ye,Oe,"≿","\\succsim",!0);$(z,ye,Oe,"⪸","\\succapprox",!0);$(z,ye,Oe,"⊳","\\vartriangleright");$(z,ye,Oe,"⊵","\\trianglerighteq");$(z,ye,Oe,"⊩","\\Vdash",!0);$(z,ye,Oe,"∣","\\shortmid");$(z,ye,Oe,"∥","\\shortparallel");$(z,ye,Oe,"≬","\\between",!0);$(z,ye,Oe,"⋔","\\pitchfork",!0);$(z,ye,Oe,"∝","\\varpropto");$(z,ye,Oe,"◀","\\blacktriangleleft");$(z,ye,Oe,"∴","\\therefore",!0);$(z,ye,Oe,"∍","\\backepsilon");$(z,ye,Oe,"▶","\\blacktriangleright");$(z,ye,Oe,"∵","\\because",!0);$(z,ye,Oe,"⋘","\\llless");$(z,ye,Oe,"⋙","\\gggtr");$(z,ye,sn,"⊲","\\lhd");$(z,ye,sn,"⊳","\\rhd");$(z,ye,Oe,"≂","\\eqsim",!0);$(z,J,Oe,"⋈","\\Join");$(z,ye,Oe,"≑","\\Doteq",!0);$(z,ye,sn,"∔","\\dotplus",!0);$(z,ye,sn,"∖","\\smallsetminus");$(z,ye,sn,"⋒","\\Cap",!0);$(z,ye,sn,"⋓","\\Cup",!0);$(z,ye,sn,"⩞","\\doublebarwedge",!0);$(z,ye,sn,"⊟","\\boxminus",!0);$(z,ye,sn,"⊞","\\boxplus",!0);$(z,ye,sn,"⋇","\\divideontimes",!0);$(z,ye,sn,"⋉","\\ltimes",!0);$(z,ye,sn,"⋊","\\rtimes",!0);$(z,ye,sn,"⋋","\\leftthreetimes",!0);$(z,ye,sn,"⋌","\\rightthreetimes",!0);$(z,ye,sn,"⋏","\\curlywedge",!0);$(z,ye,sn,"⋎","\\curlyvee",!0);$(z,ye,sn,"⊝","\\circleddash",!0);$(z,ye,sn,"⊛","\\circledast",!0);$(z,ye,sn,"⋅","\\centerdot");$(z,ye,sn,"⊺","\\intercal",!0);$(z,ye,sn,"⋒","\\doublecap");$(z,ye,sn,"⋓","\\doublecup");$(z,ye,sn,"⊠","\\boxtimes",!0);$(z,ye,Oe,"⇢","\\dashrightarrow",!0);$(z,ye,Oe,"⇠","\\dashleftarrow",!0);$(z,ye,Oe,"⇇","\\leftleftarrows",!0);$(z,ye,Oe,"⇆","\\leftrightarrows",!0);$(z,ye,Oe,"⇚","\\Lleftarrow",!0);$(z,ye,Oe,"↞","\\twoheadleftarrow",!0);$(z,ye,Oe,"↢","\\leftarrowtail",!0);$(z,ye,Oe,"↫","\\looparrowleft",!0);$(z,ye,Oe,"⇋","\\leftrightharpoons",!0);$(z,ye,Oe,"↶","\\curvearrowleft",!0);$(z,ye,Oe,"↺","\\circlearrowleft",!0);$(z,ye,Oe,"↰","\\Lsh",!0);$(z,ye,Oe,"⇈","\\upuparrows",!0);$(z,ye,Oe,"↿","\\upharpoonleft",!0);$(z,ye,Oe,"⇃","\\downharpoonleft",!0);$(z,J,Oe,"⊶","\\origof",!0);$(z,J,Oe,"⊷","\\imageof",!0);$(z,ye,Oe,"⊸","\\multimap",!0);$(z,ye,Oe,"↭","\\leftrightsquigarrow",!0);$(z,ye,Oe,"⇉","\\rightrightarrows",!0);$(z,ye,Oe,"⇄","\\rightleftarrows",!0);$(z,ye,Oe,"↠","\\twoheadrightarrow",!0);$(z,ye,Oe,"↣","\\rightarrowtail",!0);$(z,ye,Oe,"↬","\\looparrowright",!0);$(z,ye,Oe,"↷","\\curvearrowright",!0);$(z,ye,Oe,"↻","\\circlearrowright",!0);$(z,ye,Oe,"↱","\\Rsh",!0);$(z,ye,Oe,"⇊","\\downdownarrows",!0);$(z,ye,Oe,"↾","\\upharpoonright",!0);$(z,ye,Oe,"⇂","\\downharpoonright",!0);$(z,ye,Oe,"⇝","\\rightsquigarrow",!0);$(z,ye,Oe,"⇝","\\leadsto");$(z,ye,Oe,"⇛","\\Rrightarrow",!0);$(z,ye,Oe,"↾","\\restriction");$(z,J,De,"‘","`");$(z,J,De,"$","\\$");$(At,J,De,"$","\\$");$(At,J,De,"$","\\textdollar");$(z,J,De,"%","\\%");$(At,J,De,"%","\\%");$(z,J,De,"_","\\_");$(At,J,De,"_","\\_");$(At,J,De,"_","\\textunderscore");$(z,J,De,"∠","\\angle",!0);$(z,J,De,"∞","\\infty",!0);$(z,J,De,"′","\\prime");$(z,J,De,"△","\\triangle");$(z,J,De,"Γ","\\Gamma",!0);$(z,J,De,"Δ","\\Delta",!0);$(z,J,De,"Θ","\\Theta",!0);$(z,J,De,"Λ","\\Lambda",!0);$(z,J,De,"Ξ","\\Xi",!0);$(z,J,De,"Π","\\Pi",!0);$(z,J,De,"Σ","\\Sigma",!0);$(z,J,De,"Υ","\\Upsilon",!0);$(z,J,De,"Φ","\\Phi",!0);$(z,J,De,"Ψ","\\Psi",!0);$(z,J,De,"Ω","\\Omega",!0);$(z,J,De,"A","Α");$(z,J,De,"B","Β");$(z,J,De,"E","Ε");$(z,J,De,"Z","Ζ");$(z,J,De,"H","Η");$(z,J,De,"I","Ι");$(z,J,De,"K","Κ");$(z,J,De,"M","Μ");$(z,J,De,"N","Ν");$(z,J,De,"O","Ο");$(z,J,De,"P","Ρ");$(z,J,De,"T","Τ");$(z,J,De,"X","Χ");$(z,J,De,"¬","\\neg",!0);$(z,J,De,"¬","\\lnot");$(z,J,De,"⊤","\\top");$(z,J,De,"⊥","\\bot");$(z,J,De,"∅","\\emptyset");$(z,ye,De,"∅","\\varnothing");$(z,J,Pn,"α","\\alpha",!0);$(z,J,Pn,"β","\\beta",!0);$(z,J,Pn,"γ","\\gamma",!0);$(z,J,Pn,"δ","\\delta",!0);$(z,J,Pn,"ϵ","\\epsilon",!0);$(z,J,Pn,"ζ","\\zeta",!0);$(z,J,Pn,"η","\\eta",!0);$(z,J,Pn,"θ","\\theta",!0);$(z,J,Pn,"ι","\\iota",!0);$(z,J,Pn,"κ","\\kappa",!0);$(z,J,Pn,"λ","\\lambda",!0);$(z,J,Pn,"μ","\\mu",!0);$(z,J,Pn,"ν","\\nu",!0);$(z,J,Pn,"ξ","\\xi",!0);$(z,J,Pn,"ο","\\omicron",!0);$(z,J,Pn,"π","\\pi",!0);$(z,J,Pn,"ρ","\\rho",!0);$(z,J,Pn,"σ","\\sigma",!0);$(z,J,Pn,"τ","\\tau",!0);$(z,J,Pn,"υ","\\upsilon",!0);$(z,J,Pn,"ϕ","\\phi",!0);$(z,J,Pn,"χ","\\chi",!0);$(z,J,Pn,"ψ","\\psi",!0);$(z,J,Pn,"ω","\\omega",!0);$(z,J,Pn,"ε","\\varepsilon",!0);$(z,J,Pn,"ϑ","\\vartheta",!0);$(z,J,Pn,"ϖ","\\varpi",!0);$(z,J,Pn,"ϱ","\\varrho",!0);$(z,J,Pn,"ς","\\varsigma",!0);$(z,J,Pn,"φ","\\varphi",!0);$(z,J,sn,"∗","*",!0);$(z,J,sn,"+","+");$(z,J,sn,"−","-",!0);$(z,J,sn,"⋅","\\cdot",!0);$(z,J,sn,"∘","\\circ",!0);$(z,J,sn,"÷","\\div",!0);$(z,J,sn,"±","\\pm",!0);$(z,J,sn,"×","\\times",!0);$(z,J,sn,"∩","\\cap",!0);$(z,J,sn,"∪","\\cup",!0);$(z,J,sn,"∖","\\setminus",!0);$(z,J,sn,"∧","\\land");$(z,J,sn,"∨","\\lor");$(z,J,sn,"∧","\\wedge",!0);$(z,J,sn,"∨","\\vee",!0);$(z,J,De,"√","\\surd");$(z,J,Mu,"⟨","\\langle",!0);$(z,J,Mu,"∣","\\lvert");$(z,J,Mu,"∥","\\lVert");$(z,J,nl,"?","?");$(z,J,nl,"!","!");$(z,J,nl,"⟩","\\rangle",!0);$(z,J,nl,"∣","\\rvert");$(z,J,nl,"∥","\\rVert");$(z,J,Oe,"=","=");$(z,J,Oe,":",":");$(z,J,Oe,"≈","\\approx",!0);$(z,J,Oe,"≅","\\cong",!0);$(z,J,Oe,"≥","\\ge");$(z,J,Oe,"≥","\\geq",!0);$(z,J,Oe,"←","\\gets");$(z,J,Oe,">","\\gt",!0);$(z,J,Oe,"∈","\\in",!0);$(z,J,Oe,"","\\@not");$(z,J,Oe,"⊂","\\subset",!0);$(z,J,Oe,"⊃","\\supset",!0);$(z,J,Oe,"⊆","\\subseteq",!0);$(z,J,Oe,"⊇","\\supseteq",!0);$(z,ye,Oe,"⊈","\\nsubseteq",!0);$(z,ye,Oe,"⊉","\\nsupseteq",!0);$(z,J,Oe,"⊨","\\models");$(z,J,Oe,"←","\\leftarrow",!0);$(z,J,Oe,"≤","\\le");$(z,J,Oe,"≤","\\leq",!0);$(z,J,Oe,"<","\\lt",!0);$(z,J,Oe,"→","\\rightarrow",!0);$(z,J,Oe,"→","\\to");$(z,ye,Oe,"≱","\\ngeq",!0);$(z,ye,Oe,"≰","\\nleq",!0);$(z,J,_p," ","\\ ");$(z,J,_p," ","\\space");$(z,J,_p," ","\\nobreakspace");$(At,J,_p," ","\\ ");$(At,J,_p," "," ");$(At,J,_p," ","\\space");$(At,J,_p," ","\\nobreakspace");$(z,J,_p,null,"\\nobreak");$(z,J,_p,null,"\\allowbreak");$(z,J,OI,",",",");$(z,J,OI,";",";");$(z,ye,sn,"⊼","\\barwedge",!0);$(z,ye,sn,"⊻","\\veebar",!0);$(z,J,sn,"⊙","\\odot",!0);$(z,J,sn,"⊕","\\oplus",!0);$(z,J,sn,"⊗","\\otimes",!0);$(z,J,De,"∂","\\partial",!0);$(z,J,sn,"⊘","\\oslash",!0);$(z,ye,sn,"⊚","\\circledcirc",!0);$(z,ye,sn,"⊡","\\boxdot",!0);$(z,J,sn,"△","\\bigtriangleup");$(z,J,sn,"▽","\\bigtriangledown");$(z,J,sn,"†","\\dagger");$(z,J,sn,"⋄","\\diamond");$(z,J,sn,"⋆","\\star");$(z,J,sn,"◃","\\triangleleft");$(z,J,sn,"▹","\\triangleright");$(z,J,Mu,"{","\\{");$(At,J,De,"{","\\{");$(At,J,De,"{","\\textbraceleft");$(z,J,nl,"}","\\}");$(At,J,De,"}","\\}");$(At,J,De,"}","\\textbraceright");$(z,J,Mu,"{","\\lbrace");$(z,J,nl,"}","\\rbrace");$(z,J,Mu,"[","\\lbrack",!0);$(At,J,De,"[","\\lbrack",!0);$(z,J,nl,"]","\\rbrack",!0);$(At,J,De,"]","\\rbrack",!0);$(z,J,Mu,"(","\\lparen",!0);$(z,J,nl,")","\\rparen",!0);$(At,J,De,"<","\\textless",!0);$(At,J,De,">","\\textgreater",!0);$(z,J,Mu,"⌊","\\lfloor",!0);$(z,J,nl,"⌋","\\rfloor",!0);$(z,J,Mu,"⌈","\\lceil",!0);$(z,J,nl,"⌉","\\rceil",!0);$(z,J,De,"\\","\\backslash");$(z,J,De,"∣","|");$(z,J,De,"∣","\\vert");$(At,J,De,"|","\\textbar",!0);$(z,J,De,"∥","\\|");$(z,J,De,"∥","\\Vert");$(At,J,De,"∥","\\textbardbl");$(At,J,De,"~","\\textasciitilde");$(At,J,De,"\\","\\textbackslash");$(At,J,De,"^","\\textasciicircum");$(z,J,Oe,"↑","\\uparrow",!0);$(z,J,Oe,"⇑","\\Uparrow",!0);$(z,J,Oe,"↓","\\downarrow",!0);$(z,J,Oe,"⇓","\\Downarrow",!0);$(z,J,Oe,"↕","\\updownarrow",!0);$(z,J,Oe,"⇕","\\Updownarrow",!0);$(z,J,Va,"∐","\\coprod");$(z,J,Va,"⋁","\\bigvee");$(z,J,Va,"⋀","\\bigwedge");$(z,J,Va,"⨄","\\biguplus");$(z,J,Va,"⋂","\\bigcap");$(z,J,Va,"⋃","\\bigcup");$(z,J,Va,"∫","\\int");$(z,J,Va,"∫","\\intop");$(z,J,Va,"∬","\\iint");$(z,J,Va,"∭","\\iiint");$(z,J,Va,"∏","\\prod");$(z,J,Va,"∑","\\sum");$(z,J,Va,"⨂","\\bigotimes");$(z,J,Va,"⨁","\\bigoplus");$(z,J,Va,"⨀","\\bigodot");$(z,J,Va,"∮","\\oint");$(z,J,Va,"∯","\\oiint");$(z,J,Va,"∰","\\oiiint");$(z,J,Va,"⨆","\\bigsqcup");$(z,J,Va,"∫","\\smallint");$(At,J,DO,"…","\\textellipsis");$(z,J,DO,"…","\\mathellipsis");$(At,J,DO,"…","\\ldots",!0);$(z,J,DO,"…","\\ldots",!0);$(z,J,DO,"⋯","\\@cdots",!0);$(z,J,DO,"⋱","\\ddots",!0);$(z,J,De,"⋮","\\varvdots");$(z,J,na,"ˊ","\\acute");$(z,J,na,"ˋ","\\grave");$(z,J,na,"¨","\\ddot");$(z,J,na,"~","\\tilde");$(z,J,na,"ˉ","\\bar");$(z,J,na,"˘","\\breve");$(z,J,na,"ˇ","\\check");$(z,J,na,"^","\\hat");$(z,J,na,"⃗","\\vec");$(z,J,na,"˙","\\dot");$(z,J,na,"˚","\\mathring");$(z,J,Pn,"","\\@imath");$(z,J,Pn,"","\\@jmath");$(z,J,De,"ı","ı");$(z,J,De,"ȷ","ȷ");$(At,J,De,"ı","\\i",!0);$(At,J,De,"ȷ","\\j",!0);$(At,J,De,"ß","\\ss",!0);$(At,J,De,"æ","\\ae",!0);$(At,J,De,"œ","\\oe",!0);$(At,J,De,"ø","\\o",!0);$(At,J,De,"Æ","\\AE",!0);$(At,J,De,"Œ","\\OE",!0);$(At,J,De,"Ø","\\O",!0);$(At,J,na,"ˊ","\\'");$(At,J,na,"ˋ","\\`");$(At,J,na,"ˆ","\\^");$(At,J,na,"˜","\\~");$(At,J,na,"ˉ","\\=");$(At,J,na,"˘","\\u");$(At,J,na,"˙","\\.");$(At,J,na,"¸","\\c");$(At,J,na,"˚","\\r");$(At,J,na,"ˇ","\\v");$(At,J,na,"¨",'\\"');$(At,J,na,"˝","\\H");$(At,J,na,"◯","\\textcircled");var Tge={"--":!0,"---":!0,"``":!0,"''":!0};$(At,J,De,"–","--",!0);$(At,J,De,"–","\\textendash");$(At,J,De,"—","---",!0);$(At,J,De,"—","\\textemdash");$(At,J,De,"‘","`",!0);$(At,J,De,"‘","\\textquoteleft");$(At,J,De,"’","'",!0);$(At,J,De,"’","\\textquoteright");$(At,J,De,"“","``",!0);$(At,J,De,"“","\\textquotedblleft");$(At,J,De,"”","''",!0);$(At,J,De,"”","\\textquotedblright");$(z,J,De,"°","\\degree",!0);$(At,J,De,"°","\\degree");$(At,J,De,"°","\\textdegree",!0);$(z,J,De,"£","\\pounds");$(z,J,De,"£","\\mathsterling",!0);$(At,J,De,"£","\\pounds");$(At,J,De,"£","\\textsterling",!0);$(z,ye,De,"✠","\\maltese");$(At,ye,De,"✠","\\maltese");var wte='0123456789/@."';for(var p7=0;p70)return dd(a,u,i,n,s.concat(d));if(l){var f,p;if(l==="boldsymbol"){var g=jht(a,i,n,s,r);f=g.fontName,p=[g.fontClass]}else o?(f=Age[l].fontName,p=[l]):(f=h4(l,n.fontWeight,n.fontShape),p=[l,n.fontWeight,n.fontShape]);if(SI(a,f,i).metrics)return dd(a,f,i,n,s.concat(p));if(Tge.hasOwnProperty(a)&&f.slice(0,10)==="Typewriter"){for(var O=[],S=0;S{if(fm(e.classes)!==fm(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var n=e.classes[0];if(n==="mbin"||n==="mord")return!1}for(var r in e.style)if(e.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;for(var i in t.style)if(t.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return!1;return!0},Wht=e=>{for(var t=0;tn&&(n=s.height),s.depth>r&&(r=s.depth),s.maxFontSize>i&&(i=s.maxFontSize)}t.height=n,t.depth=r,t.maxFontSize=i},Ol=function(t,n,r,i){var a=new hx(t,n,r,i);return hW(a),a},xge=(e,t,n,r)=>new hx(e,t,n,r),Vht=function(t,n,r){var i=Ol([t],[],n);return i.height=Math.max(r||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),i.style.borderBottomWidth=Qt(i.height),i.maxFontSize=1,i},qht=function(t,n,r,i){var a=new fW(t,n,r,i);return hW(a),a},kge=function(t){var n=new fx(t);return hW(n),n},Ght=function(t,n){return t instanceof fx?Ol([],[t],n):t},Yht=function(t){if(t.positionType==="individualShift"){for(var n=t.children,r=[n[0]],i=-n[0].shift-n[0].elem.depth,a=i,s=1;s{var n=Ol(["mspace"],[],t),r=la(e,t);return n.style.marginRight=Qt(r),n},h4=function(t,n,r){var i="";switch(t){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=t}var a;return n==="textbf"&&r==="textit"?a="BoldItalic":n==="textbf"?a="Bold":n==="textit"?a="Italic":a="Regular",i+"-"+a},Age={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},_ge={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Kht=function(t,n){var[r,i,a]=_ge[t],s=new hm(r),o=new dp([s],{width:Qt(i),height:Qt(a),style:"width:"+Qt(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),l=xge(["overlay"],[o],n);return l.height=a,l.style.height=Qt(a),l.style.width=Qt(i),l},Qe={fontMap:Age,makeSymbol:dd,mathsym:zht,makeSpan:Ol,makeSvgSpan:xge,makeLineSpan:Vht,makeAnchor:qht,makeFragment:kge,wrapFragment:Ght,makeVList:Zht,makeOrd:Hht,makeGlue:Xht,staticSvg:Kht,svgData:_ge,tryCombineChars:Wht},aa={number:3,unit:"mu"},Og={number:4,unit:"mu"},kh={number:5,unit:"mu"},Jht={mord:{mop:aa,mbin:Og,mrel:kh,minner:aa},mop:{mord:aa,mop:aa,mrel:kh,minner:aa},mbin:{mord:Og,mop:Og,mopen:Og,minner:Og},mrel:{mord:kh,mop:kh,mopen:kh,minner:kh},mopen:{},mclose:{mop:aa,mbin:Og,mrel:kh,minner:aa},mpunct:{mord:aa,mop:aa,mrel:kh,mopen:aa,mclose:aa,mpunct:aa,minner:aa},minner:{mord:aa,mop:aa,mbin:Og,mrel:kh,mopen:aa,mpunct:aa,minner:aa}},ept={mord:{mop:aa},mop:{mord:aa,mop:aa},mbin:{},mrel:{},mopen:{},mclose:{mop:aa},mpunct:{},minner:{mop:aa}},Cge={},NC={},DC={};function nn(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},l=0;l{var T=S.classes[0],w=O.classes[0];T==="mbin"&&Nn.contains(npt,w)?S.classes[0]="mord":w==="mbin"&&Nn.contains(tpt,T)&&(O.classes[0]="mord")},{node:f},p,g),_te(a,(O,S)=>{var T=dM(S),w=dM(O),x=T&&w?O.hasClass("mtight")?ept[T][w]:Jht[T][w]:null;if(x)return Qe.makeGlue(x,u)},{node:f},p,g),a},_te=function e(t,n,r,i,a){i&&t.push(i);for(var s=0;sp=>{t.splice(f+1,0,p),s++})(s)}i&&t.pop()},Rge=function(t){return t instanceof fx||t instanceof fW||t instanceof hx&&t.hasClass("enclosing")?t:null},apt=function e(t,n){var r=Rge(t);if(r){var i=r.children;if(i.length){if(n==="right")return e(i[i.length-1],"right");if(n==="left")return e(i[0],"left")}}return t},dM=function(t,n){return t?(n&&(t=apt(t,n)),ipt[t.classes[0]]||null):null},Jw=function(t,n){var r=["nulldelimiter"].concat(t.baseSizingClasses());return fp(n.concat(r))},Br=function(t,n,r){if(!t)return fp();if(NC[t.type]){var i=NC[t.type](t,n);if(r&&n.size!==r.size){i=fp(n.sizingClasses(r),[i],n);var a=n.sizeMultiplier/r.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new Mt("Got group of unknown type: '"+t.type+"'")};function p4(e,t){var n=fp(["base"],e,t),r=fp(["strut"]);return r.style.height=Qt(n.height+n.depth),n.depth&&(r.style.verticalAlign=Qt(-n.depth)),n.children.unshift(r),n}function fM(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var r=us(e,t,"root"),i;r.length===2&&r[1].hasClass("tag")&&(i=r.pop());for(var a=[],s=[],o=0;o0&&(a.push(p4(s,t)),s=[]),a.push(r[o]));s.length>0&&a.push(p4(s,t));var u;n?(u=p4(us(n,t,!0)),u.classes=["tag"],a.push(u)):i&&a.push(i);var d=fp(["katex-html"],a);if(d.setAttribute("aria-hidden","true"),u){var f=u.children[0];f.style.height=Qt(d.height+d.depth),d.depth&&(f.style.verticalAlign=Qt(-d.depth))}return d}function Ige(e){return new fx(e)}class cc{constructor(t,n,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=n||[],this.classes=r||[]}setAttribute(t,n){this.attributes[t]=n}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);this.classes.length>0&&(t.className=fm(this.classes));for(var r=0;r0&&(t+=' class ="'+Nn.escape(fm(this.classes))+'"'),t+=">";for(var r=0;r",t}toText(){return this.children.map(t=>t.toText()).join("")}}class N2{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return Nn.escape(this.toText())}toText(){return this.text}}class spt{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",Qt(this.width)),t}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}}var Nt={MathNode:cc,TextNode:N2,SpaceNode:spt,newDocumentFragment:Ige},Rc=function(t,n,r){return Ci[n][t]&&Ci[n][t].replace&&t.charCodeAt(0)!==55349&&!(Tge.hasOwnProperty(t)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(t=Ci[n][t].replace),new Nt.TextNode(t)},pW=function(t){return t.length===1?t[0]:new Nt.MathNode("mrow",t)},mW=function(t,n){if(n.fontFamily==="texttt")return"monospace";if(n.fontFamily==="textsf")return n.fontShape==="textit"&&n.fontWeight==="textbf"?"sans-serif-bold-italic":n.fontShape==="textit"?"sans-serif-italic":n.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(n.fontShape==="textit"&&n.fontWeight==="textbf")return"bold-italic";if(n.fontShape==="textit")return"italic";if(n.fontWeight==="textbf")return"bold";var r=n.font;if(!r||r==="mathnormal")return null;var i=t.mode;if(r==="mathit")return"italic";if(r==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(r==="mathbf")return"bold";if(r==="mathbb")return"double-struck";if(r==="mathfrak")return"fraktur";if(r==="mathscr"||r==="mathcal")return"script";if(r==="mathsf")return"sans-serif";if(r==="mathtt")return"monospace";var a=t.text;if(Nn.contains(["\\imath","\\jmath"],a))return null;Ci[i][a]&&Ci[i][a].replace&&(a=Ci[i][a].replace);var s=Qe.fontMap[r].fontName;return dW(a,s,i)?Qe.fontMap[r].variant:null},Ll=function(t,n,r){if(t.length===1){var i=Si(t[0],n);return r&&i instanceof cc&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],s,o=0;o0&&(f.text=f.text.slice(0,1)+"̸"+f.text.slice(1),a.pop())}}}a.push(l),s=l}return a},pm=function(t,n,r){return pW(Ll(t,n,r))},Si=function(t,n){if(!t)return new Nt.MathNode("mrow");if(DC[t.type]){var r=DC[t.type](t,n);return r}else throw new Mt("Got group of unknown type: '"+t.type+"'")};function Cte(e,t,n,r,i){var a=Ll(e,n),s;a.length===1&&a[0]instanceof cc&&Nn.contains(["mrow","mtable"],a[0].type)?s=a[0]:s=new Nt.MathNode("mrow",a);var o=new Nt.MathNode("annotation",[new Nt.TextNode(t)]);o.setAttribute("encoding","application/x-tex");var l=new Nt.MathNode("semantics",[s,o]),u=new Nt.MathNode("math",[l]);u.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&u.setAttribute("display","block");var d=i?"katex":"katex-mathml";return Qe.makeSpan([d],[u])}var Nge=function(t){return new Ph({style:t.displayMode?Ln.DISPLAY:Ln.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},Dge=function(t,n){if(n.displayMode){var r=["katex-display"];n.leqno&&r.push("leqno"),n.fleqn&&r.push("fleqn"),t=Qe.makeSpan(r,[t])}return t},opt=function(t,n,r){var i=Nge(r),a;if(r.output==="mathml")return Cte(t,n,i,r.displayMode,!0);if(r.output==="html"){var s=fM(t,i);a=Qe.makeSpan(["katex"],[s])}else{var o=Cte(t,n,i,r.displayMode,!1),l=fM(t,i);a=Qe.makeSpan(["katex"],[o,l])}return Dge(a,r)},lpt=function(t,n,r){var i=Nge(r),a=fM(t,i),s=Qe.makeSpan(["katex"],[a]);return Dge(s,r)},upt={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},cpt=function(t){var n=new Nt.MathNode("mo",[new Nt.TextNode(upt[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},dpt={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},fpt=function(t){return t.type==="ordgroup"?t.body.length:1},hpt=function(t,n){function r(){var o=4e5,l=t.label.slice(1);if(Nn.contains(["widehat","widecheck","widetilde","utilde"],l)){var u=t,d=fpt(u.base),f,p,g;if(d>5)l==="widehat"||l==="widecheck"?(f=420,o=2364,g=.42,p=l+"4"):(f=312,o=2340,g=.34,p="tilde4");else{var O=[1,1,2,2,3,3][d];l==="widehat"||l==="widecheck"?(o=[0,1062,2364,2364,2364][O],f=[0,239,300,360,420][O],g=[0,.24,.3,.3,.36,.42][O],p=l+O):(o=[0,600,1033,2339,2340][O],f=[0,260,286,306,312][O],g=[0,.26,.286,.3,.306,.34][O],p="tilde"+O)}var S=new hm(p),T=new dp([S],{width:"100%",height:Qt(g),viewBox:"0 0 "+o+" "+f,preserveAspectRatio:"none"});return{span:Qe.makeSvgSpan([],[T],n),minWidth:0,height:g}}else{var w=[],x=dpt[l],[k,_,R]=x,N=R/1e3,P=k.length,L,j;if(P===1){var B=x[3];L=["hide-tail"],j=[B]}else if(P===2)L=["halfarrow-left","halfarrow-right"],j=["xMinYMin","xMaxYMin"];else if(P===3)L=["brace-left","brace-center","brace-right"],j=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support + `+P+" children.");for(var V=0;V0&&(i.style.minWidth=Qt(a)),i},ppt=function(t,n,r,i,a){var s,o=t.height+t.depth+r+i;if(/fbox|color|angl/.test(n)){if(s=Qe.makeSpan(["stretchy",n],[],a),n==="fbox"){var l=a.color&&a.getColor();l&&(s.style.borderColor=l)}}else{var u=[];/^[bx]cancel$/.test(n)&&u.push(new uM({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&u.push(new uM({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var d=new dp(u,{width:"100%",height:Qt(o)});s=Qe.makeSvgSpan([],[d],a)}return s.height=o,s.style.height=Qt(o),s},hp={encloseSpan:ppt,mathMLnode:cpt,svgSpan:hpt};function sr(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function gW(e){var t=EI(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function EI(e){return e&&(e.type==="atom"||Bht.hasOwnProperty(e.type))?e:null}var bW=(e,t)=>{var n,r,i;e&&e.type==="supsub"?(r=sr(e.base,"accent"),n=r.base,e.base=n,i=$ht(Br(e,t)),e.base=r):(r=sr(e,"accent"),n=r.base);var a=Br(n,t.havingCrampedStyle()),s=r.isShifty&&Nn.isCharacterBox(n),o=0;if(s){var l=Nn.getBaseElem(n),u=Br(l,t.havingCrampedStyle());o=Ete(u).skew}var d=r.label==="\\c",f=d?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),p;if(r.isStretchy)p=hp.svgSpan(r,t),p=Qe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:p,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+Qt(2*o)+")",marginLeft:Qt(2*o)}:void 0}]},t);else{var g,O;r.label==="\\vec"?(g=Qe.staticSvg("vec",t),O=Qe.svgData.vec[1]):(g=Qe.makeOrd({mode:r.mode,text:r.label},t,"textord"),g=Ete(g),g.italic=0,O=g.width,d&&(f+=g.depth)),p=Qe.makeSpan(["accent-body"],[g]);var S=r.label==="\\textcircled";S&&(p.classes.push("accent-full"),f=a.height);var T=o;S||(T-=O/2),p.style.left=Qt(T),r.label==="\\textcircled"&&(p.style.top=".2em"),p=Qe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-f},{type:"elem",elem:p}]},t)}var w=Qe.makeSpan(["mord","accent"],[p],t);return i?(i.children[0]=w,i.height=Math.max(w.height,i.height),i.classes[0]="mord",i):w},Pge=(e,t)=>{var n=e.isStretchy?hp.mathMLnode(e.label):new Nt.MathNode("mo",[Rc(e.label,e.mode)]),r=new Nt.MathNode("mover",[Si(e.base,t),n]);return r.setAttribute("accent","true"),r},mpt=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));nn({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=PC(t[0]),r=!mpt.test(e.funcName),i=!r||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:bW,mathmlBuilder:Pge});nn({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:bW,mathmlBuilder:Pge});nn({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=Br(e.base,t),r=hp.svgSpan(e,t),i=e.label==="\\utilde"?.12:0,a=Qe.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:n}]},t);return Qe.makeSpan(["mord","accentunder"],[a],t)},mathmlBuilder:(e,t)=>{var n=hp.mathMLnode(e.label),r=new Nt.MathNode("munder",[Si(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var m4=e=>{var t=new Nt.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};nn({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:i}=e;return{type:"xArrow",mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=Qe.wrapFragment(Br(e.body,r,t),t),a=e.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var s;e.below&&(r=t.havingStyle(n.sub()),s=Qe.wrapFragment(Br(e.below,r,t),t),s.classes.push(a+"-arrow-pad"));var o=hp.svgSpan(e,t),l=-t.fontMetrics().axisHeight+.5*o.height,u=-t.fontMetrics().axisHeight-.5*o.height-.111;(i.depth>.25||e.label==="\\xleftequilibrium")&&(u-=i.depth);var d;if(s){var f=-t.fontMetrics().axisHeight+s.height+.5*o.height+.111;d=Qe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:o,shift:l},{type:"elem",elem:s,shift:f}]},t)}else d=Qe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:o,shift:l}]},t);return d.children[0].children[0].children[1].classes.push("svg-align"),Qe.makeSpan(["mrel","x-arrow"],[d],t)},mathmlBuilder(e,t){var n=hp.mathMLnode(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(e.body){var i=m4(Si(e.body,t));if(e.below){var a=m4(Si(e.below,t));r=new Nt.MathNode("munderover",[n,a,i])}else r=new Nt.MathNode("mover",[n,i])}else if(e.below){var s=m4(Si(e.below,t));r=new Nt.MathNode("munder",[n,s])}else r=m4(),r=new Nt.MathNode("mover",[n,r]);return r}});var gpt=Qe.makeSpan;function Lge(e,t){var n=us(e.body,t,!0);return gpt([e.mclass],n,t)}function Mge(e,t){var n,r=Ll(e.body,t);return e.mclass==="minner"?n=new Nt.MathNode("mpadded",r):e.mclass==="mord"?e.isCharacterBox?(n=r[0],n.type="mi"):n=new Nt.MathNode("mi",r):(e.isCharacterBox?(n=r[0],n.type="mo"):n=new Nt.MathNode("mo",r),e.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):e.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):e.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}nn({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:Ma(i),isCharacterBox:Nn.isCharacterBox(i)}},htmlBuilder:Lge,mathmlBuilder:Mge});var wI=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};nn({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:wI(t[0]),body:Ma(t[1]),isCharacterBox:Nn.isCharacterBox(t[1])}}});nn({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,i=t[1],a=t[0],s;r!=="\\stackrel"?s=wI(i):s="mrel";var o={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:Ma(i)},l={type:"supsub",mode:a.mode,base:o,sup:r==="\\underset"?null:a,sub:r==="\\underset"?a:null};return{type:"mclass",mode:n.mode,mclass:s,body:[l],isCharacterBox:Nn.isCharacterBox(l)}},htmlBuilder:Lge,mathmlBuilder:Mge});nn({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:wI(t[0]),body:Ma(t[0])}},htmlBuilder(e,t){var n=us(e.body,t,!0),r=Qe.makeSpan([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(e,t){var n=Ll(e.body,t),r=new Nt.MathNode("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var bpt={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Rte=()=>({type:"styling",body:[],mode:"math",style:"display"}),Ite=e=>e.type==="textord"&&e.text==="@",ypt=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function vpt(e,t,n){var r=bpt[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var i=n.callFunction("\\\\cdleft",[t[0]],[]),a={type:"atom",text:r,mode:"math",family:"rel"},s=n.callFunction("\\Big",[a],[]),o=n.callFunction("\\\\cdright",[t[1]],[]),l={type:"ordgroup",mode:"math",body:[i,s,o]};return n.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var u={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[u],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Opt(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n==="&"||n==="\\\\")e.consume();else if(n==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new Mt("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var r=[],i=[r],a=0;a-1))if("<>AV".indexOf(u)>-1)for(var f=0;f<2;f++){for(var p=!0,g=l+1;gAV=|." after @',s[l]);var O=vpt(u,d,e),S={type:"styling",body:[O],mode:"math",style:"display"};r.push(S),o=Rte()}a%2===0?r.push(o):r.shift(),r=[],i.push(r)}e.gullet.endGroup(),e.gullet.endGroup();var T=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:T,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}nn({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=Qe.wrapFragment(Br(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=Qt(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new Nt.MathNode("mrow",[Si(e.label,t)]);return n=new Nt.MathNode("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new Nt.MathNode("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}});nn({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=Qe.wrapFragment(Br(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new Nt.MathNode("mrow",[Si(e.fragment,t)])}});nn({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=sr(t[0],"ordgroup"),i=r.body,a="",s=0;s=1114111)throw new Mt("\\@char with invalid code point "+a);return l<=65535?u=String.fromCharCode(l):(l-=65536,u=String.fromCharCode((l>>10)+55296,(l&1023)+56320)),{type:"textord",mode:n.mode,text:u}}});var $ge=(e,t)=>{var n=us(e.body,t.withColor(e.color),!1);return Qe.makeFragment(n)},Fge=(e,t)=>{var n=Ll(e.body,t.withColor(e.color)),r=new Nt.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r};nn({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=sr(t[0],"color-token").color,i=t[1];return{type:"color",mode:n.mode,color:r,body:Ma(i)}},htmlBuilder:$ge,mathmlBuilder:Fge});nn({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=sr(t[0],"color-token").color;n.gullet.macros.set("\\current@color",i);var a=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:i,body:a}},htmlBuilder:$ge,mathmlBuilder:Fge});nn({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:a,size:i&&sr(i,"size").value}},htmlBuilder(e,t){var n=Qe.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=Qt(la(e.size,t)))),n},mathmlBuilder(e,t){var n=new Nt.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",Qt(la(e.size,t)))),n}});var hM={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Bge=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new Mt("Expected a control sequence",e);return t},Spt=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},Uge=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i==null&&(n.noexpand=!0,i={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};nn({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(hM[r.text])return(n==="\\global"||n==="\\\\globallong")&&(r.text=hM[r.text]),sr(t.parseFunction(),"internal");throw new Mt("Invalid token after macro prefix",r)}});nn({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new Mt("Expected a control sequence",r);for(var a=0,s,o=[[]];t.gullet.future().text!=="{";)if(r=t.gullet.popToken(),r.text==="#"){if(t.gullet.future().text==="{"){s=t.gullet.future(),o[a].push("{");break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new Mt('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==a+1)throw new Mt('Argument number "'+r.text+'" out of order');a++,o.push([])}else{if(r.text==="EOF")throw new Mt("Expected a macro definition");o[a].push(r.text)}var{tokens:l}=t.gullet.consumeArg();return s&&l.unshift(s),(n==="\\edef"||n==="\\xdef")&&(l=t.gullet.expandTokens(l),l.reverse()),t.gullet.macros.set(i,{tokens:l,numArgs:a,delimiters:o},n===hM[n]),{type:"internal",mode:t.mode}}});nn({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=Bge(t.gullet.popToken());t.gullet.consumeSpaces();var i=Spt(t);return Uge(t,r,i,n==="\\\\globallet"),{type:"internal",mode:t.mode}}});nn({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=Bge(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return Uge(t,r,a,n==="\\\\globalfuture"),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var WE=function(t,n,r){var i=Ci.math[t]&&Ci.math[t].replace,a=dW(i||t,n,r);if(!a)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return a},yW=function(t,n,r,i){var a=r.havingBaseStyle(n),s=Qe.makeSpan(i.concat(a.sizingClasses(r)),[t],r),o=a.sizeMultiplier/r.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=a.sizeMultiplier,s},zge=function(t,n,r){var i=n.havingBaseStyle(r),a=(1-n.sizeMultiplier/i.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=Qt(a),t.height-=a,t.depth+=a},Ept=function(t,n,r,i,a,s){var o=Qe.makeSymbol(t,"Main-Regular",a,i),l=yW(o,n,i,s);return r&&zge(l,i,n),l},wpt=function(t,n,r,i){return Qe.makeSymbol(t,"Size"+n+"-Regular",r,i)},jge=function(t,n,r,i,a,s){var o=wpt(t,n,a,i),l=yW(Qe.makeSpan(["delimsizing","size"+n],[o],i),Ln.TEXT,i,s);return r&&zge(l,i,Ln.TEXT),l},y7=function(t,n,r){var i;n==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=Qe.makeSpan(["delimsizinginner",i],[Qe.makeSpan([],[Qe.makeSymbol(t,n,r)])]);return{type:"elem",elem:a}},v7=function(t,n,r){var i=xf["Size4-Regular"][t.charCodeAt(0)]?xf["Size4-Regular"][t.charCodeAt(0)][4]:xf["Size1-Regular"][t.charCodeAt(0)][4],a=new hm("inner",Cht(t,Math.round(1e3*n))),s=new dp([a],{width:Qt(i),height:Qt(n),style:"width:"+Qt(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),o=Qe.makeSvgSpan([],[s],r);return o.height=n,o.style.height=Qt(n),o.style.width=Qt(i),{type:"elem",elem:o}},pM=.008,g4={type:"kern",size:-1*pM},Tpt=["|","\\lvert","\\rvert","\\vert"],xpt=["\\|","\\lVert","\\rVert","\\Vert"],Hge=function(t,n,r,i,a,s){var o,l,u,d,f="",p=0;o=u=d=t,l=null;var g="Size1-Regular";t==="\\uparrow"?u=d="⏐":t==="\\Uparrow"?u=d="‖":t==="\\downarrow"?o=u="⏐":t==="\\Downarrow"?o=u="‖":t==="\\updownarrow"?(o="\\uparrow",u="⏐",d="\\downarrow"):t==="\\Updownarrow"?(o="\\Uparrow",u="‖",d="\\Downarrow"):Nn.contains(Tpt,t)?(u="∣",f="vert",p=333):Nn.contains(xpt,t)?(u="∥",f="doublevert",p=556):t==="["||t==="\\lbrack"?(o="⎡",u="⎢",d="⎣",g="Size4-Regular",f="lbrack",p=667):t==="]"||t==="\\rbrack"?(o="⎤",u="⎥",d="⎦",g="Size4-Regular",f="rbrack",p=667):t==="\\lfloor"||t==="⌊"?(u=o="⎢",d="⎣",g="Size4-Regular",f="lfloor",p=667):t==="\\lceil"||t==="⌈"?(o="⎡",u=d="⎢",g="Size4-Regular",f="lceil",p=667):t==="\\rfloor"||t==="⌋"?(u=o="⎥",d="⎦",g="Size4-Regular",f="rfloor",p=667):t==="\\rceil"||t==="⌉"?(o="⎤",u=d="⎥",g="Size4-Regular",f="rceil",p=667):t==="("||t==="\\lparen"?(o="⎛",u="⎜",d="⎝",g="Size4-Regular",f="lparen",p=875):t===")"||t==="\\rparen"?(o="⎞",u="⎟",d="⎠",g="Size4-Regular",f="rparen",p=875):t==="\\{"||t==="\\lbrace"?(o="⎧",l="⎨",d="⎩",u="⎪",g="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(o="⎫",l="⎬",d="⎭",u="⎪",g="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(o="⎧",d="⎩",u="⎪",g="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(o="⎫",d="⎭",u="⎪",g="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(o="⎧",d="⎭",u="⎪",g="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(o="⎫",d="⎩",u="⎪",g="Size4-Regular");var O=WE(o,g,a),S=O.height+O.depth,T=WE(u,g,a),w=T.height+T.depth,x=WE(d,g,a),k=x.height+x.depth,_=0,R=1;if(l!==null){var N=WE(l,g,a);_=N.height+N.depth,R=2}var P=S+k+_,L=Math.max(0,Math.ceil((n-P)/(R*w))),j=P+L*R*w,B=i.fontMetrics().axisHeight;r&&(B*=i.sizeMultiplier);var V=j/2-B,W=[];if(f.length>0){var re=j-S-k,ee=Math.round(j*1e3),q=Rht(f,Math.round(re*1e3)),ne=new hm(f,q),K=(p/1e3).toFixed(3)+"em",G=(ee/1e3).toFixed(3)+"em",ie=new dp([ne],{width:K,height:G,viewBox:"0 0 "+p+" "+ee}),H=Qe.makeSvgSpan([],[ie],i);H.height=ee/1e3,H.style.width=K,H.style.height=G,W.push({type:"elem",elem:H})}else{if(W.push(y7(d,g,a)),W.push(g4),l===null){var Re=j-S-k+2*pM;W.push(v7(u,Re,i))}else{var Se=(j-S-k-_)/2+2*pM;W.push(v7(u,Se,i)),W.push(g4),W.push(y7(l,g,a)),W.push(g4),W.push(v7(u,Se,i))}W.push(g4),W.push(y7(o,g,a))}var Z=i.havingBaseStyle(Ln.TEXT),ke=Qe.makeVList({positionType:"bottom",positionData:V,children:W},Z);return yW(Qe.makeSpan(["delimsizing","mult"],[ke],Z),Ln.TEXT,i,s)},O7=80,S7=.08,E7=function(t,n,r,i,a){var s=_ht(t,i,r),o=new hm(t,s),l=new dp([o],{width:"400em",height:Qt(n),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return Qe.makeSvgSpan(["hide-tail"],[l],a)},kpt=function(t,n){var r=n.havingBaseSizing(),i=qge("\\surd",t*r.sizeMultiplier,Vge,r),a=r.sizeMultiplier,s=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),o,l=0,u=0,d=0,f;return i.type==="small"?(d=1e3+1e3*s+O7,t<1?a=1:t<1.4&&(a=.7),l=(1+s+S7)/a,u=(1+s)/a,o=E7("sqrtMain",l,d,s,n),o.style.minWidth="0.853em",f=.833/a):i.type==="large"?(d=(1e3+O7)*D2[i.size],u=(D2[i.size]+s)/a,l=(D2[i.size]+s+S7)/a,o=E7("sqrtSize"+i.size,l,d,s,n),o.style.minWidth="1.02em",f=1/a):(l=t+s+S7,u=t+s,d=Math.floor(1e3*t+s)+O7,o=E7("sqrtTall",l,d,s,n),o.style.minWidth="0.742em",f=1.056),o.height=u,o.style.height=Qt(l),{span:o,advanceWidth:f,ruleWidth:(n.fontMetrics().sqrtRuleThickness+s)*a}},Qge=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],Apt=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],Wge=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],D2=[0,1.2,1.8,2.4,3],_pt=function(t,n,r,i,a){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),Nn.contains(Qge,t)||Nn.contains(Wge,t))return jge(t,n,!1,r,i,a);if(Nn.contains(Apt,t))return Hge(t,D2[n],!1,r,i,a);throw new Mt("Illegal delimiter: '"+t+"'")},Cpt=[{type:"small",style:Ln.SCRIPTSCRIPT},{type:"small",style:Ln.SCRIPT},{type:"small",style:Ln.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Rpt=[{type:"small",style:Ln.SCRIPTSCRIPT},{type:"small",style:Ln.SCRIPT},{type:"small",style:Ln.TEXT},{type:"stack"}],Vge=[{type:"small",style:Ln.SCRIPTSCRIPT},{type:"small",style:Ln.SCRIPT},{type:"small",style:Ln.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Ipt=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},qge=function(t,n,r,i){for(var a=Math.min(2,3-i.style.size),s=a;sn)return r[s]}return r[r.length-1]},Gge=function(t,n,r,i,a,s){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var o;Nn.contains(Wge,t)?o=Cpt:Nn.contains(Qge,t)?o=Vge:o=Rpt;var l=qge(t,n,o,i);return l.type==="small"?Ept(t,l.style,r,i,a,s):l.type==="large"?jge(t,l.size,r,i,a,s):Hge(t,n,r,i,a,s)},Npt=function(t,n,r,i,a,s){var o=i.fontMetrics().axisHeight*i.sizeMultiplier,l=901,u=5/i.fontMetrics().ptPerEm,d=Math.max(n-o,r+o),f=Math.max(d/500*l,2*d-u);return Gge(t,f,!0,i,a,s)},Xh={sqrtImage:kpt,sizedDelim:_pt,sizeToMaxHeight:D2,customSizedDelim:Gge,leftRightDelim:Npt},Nte={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Dpt=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function TI(e,t){var n=EI(e);if(n&&Nn.contains(Dpt,n.text))return n;throw n?new Mt("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new Mt("Invalid delimiter type '"+e.type+"'",e)}nn({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=TI(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Nte[e.funcName].size,mclass:Nte[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?Qe.makeSpan([e.mclass]):Xh.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(Rc(e.delim,e.mode));var n=new Nt.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=Qt(Xh.sizeToMaxHeight[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}});function Dte(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}nn({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="string")throw new Mt("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:TI(t[0],e).text,color:n}}});nn({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=TI(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var a=sr(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{Dte(e);for(var n=us(e.body,t,!0,["mopen","mclose"]),r=0,i=0,a=!1,s=0;s{Dte(e);var n=Ll(e.body,t);if(e.left!=="."){var r=new Nt.MathNode("mo",[Rc(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if(e.right!=="."){var i=new Nt.MathNode("mo",[Rc(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),n.push(i)}return pW(n)}});nn({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=TI(t[0],e);if(!e.parser.leftrightDepth)throw new Mt("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if(e.delim===".")n=Jw(t,[]);else{n=Xh.sizedDelim(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?Rc("|","text"):Rc(e.delim,e.mode),r=new Nt.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var vW=(e,t)=>{var n=Qe.wrapFragment(Br(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,s=0,o=Nn.isCharacterBox(e.body);if(r==="sout")a=Qe.makeSpan(["stretchy","sout"]),a.height=t.fontMetrics().defaultRuleThickness/i,s=-.5*t.fontMetrics().xHeight;else if(r==="phase"){var l=la({number:.6,unit:"pt"},t),u=la({number:.35,unit:"ex"},t),d=t.havingBaseSizing();i=i/d.sizeMultiplier;var f=n.height+n.depth+l+u;n.style.paddingLeft=Qt(f/2+l);var p=Math.floor(1e3*f*i),g=kht(p),O=new dp([new hm("phase",g)],{width:"400em",height:Qt(p/1e3),viewBox:"0 0 400000 "+p,preserveAspectRatio:"xMinYMin slice"});a=Qe.makeSvgSpan(["hide-tail"],[O],t),a.style.height=Qt(f),s=n.depth+l+u}else{/cancel/.test(r)?o||n.classes.push("cancel-pad"):r==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var S=0,T=0,w=0;/box/.test(r)?(w=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),S=t.fontMetrics().fboxsep+(r==="colorbox"?0:w),T=S):r==="angl"?(w=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),S=4*w,T=Math.max(0,.25-n.depth)):(S=o?.2:0,T=S),a=hp.encloseSpan(n,r,S,T,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle="solid",a.style.borderWidth=Qt(w)):r==="angl"&&w!==.049&&(a.style.borderTopWidth=Qt(w),a.style.borderRightWidth=Qt(w)),s=n.depth+T,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var x;if(e.backgroundColor)x=Qe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:s},{type:"elem",elem:n,shift:0}]},t);else{var k=/cancel|phase/.test(r)?["svg-align"]:[];x=Qe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:a,shift:s,wrapperClasses:k}]},t)}return/cancel/.test(r)&&(x.height=n.height,x.depth=n.depth),/cancel/.test(r)&&!o?Qe.makeSpan(["mord","cancel-lap"],[x],t):Qe.makeSpan(["mord"],[x],t)},OW=(e,t)=>{var n=0,r=new Nt.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Si(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),e.label==="\\fcolorbox"){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+i+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};nn({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=sr(t[0],"color-token").color,s=t[1];return{type:"enclose",mode:r.mode,label:i,backgroundColor:a,body:s}},htmlBuilder:vW,mathmlBuilder:OW});nn({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=sr(t[0],"color-token").color,s=sr(t[1],"color-token").color,o=t[2];return{type:"enclose",mode:r.mode,label:i,backgroundColor:s,borderColor:a,body:o}},htmlBuilder:vW,mathmlBuilder:OW});nn({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}});nn({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"enclose",mode:n.mode,label:r,body:i}},htmlBuilder:vW,mathmlBuilder:OW});nn({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var Yge={};function Kf(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l{var t=e.parser.settings;if(!t.displayMode)throw new Mt("{"+e.envName+"} can be used only in display mode.")};function SW(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function km(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:a,arraystretch:s,colSeparationType:o,autoTag:l,singleRow:u,emptySingleRow:d,maxNumCols:f,leqno:p}=t;if(e.gullet.beginGroup(),u||e.gullet.macros.set("\\cr","\\\\\\relax"),!s){var g=e.gullet.expandMacroAsText("\\arraystretch");if(g==null)s=1;else if(s=parseFloat(g),!s||s<0)throw new Mt("Invalid \\arraystretch: "+g)}e.gullet.beginGroup();var O=[],S=[O],T=[],w=[],x=l!=null?[]:void 0;function k(){l&&e.gullet.macros.set("\\@eqnsw","1",!0)}function _(){x&&(e.gullet.macros.get("\\df@tag")?(x.push(e.subparse([new wc("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):x.push(!!l&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(k(),w.push(Pte(e));;){var R=e.parseExpression(!1,u?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),R={type:"ordgroup",mode:e.mode,body:R},n&&(R={type:"styling",mode:e.mode,style:n,body:[R]}),O.push(R);var N=e.fetch().text;if(N==="&"){if(f&&O.length===f){if(u||o)throw new Mt("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(N==="\\end"){_(),O.length===1&&R.type==="styling"&&R.body[0].body.length===0&&(S.length>1||!d)&&S.pop(),w.length0&&(k+=.25),u.push({pos:k,isDashed:de[_e]})}for(_(s[0]),r=0;r0&&(V+=x,Pde))for(r=0;r=o)){var Xe=void 0;(i>0||t.hskipBeforeAndAfter)&&(Xe=Nn.deflt(Se.pregap,p),Xe!==0&&(q=Qe.makeSpan(["arraycolsep"],[]),q.style.width=Qt(Xe),ee.push(q)));var We=[];for(r=0;r0){for(var Pt=Qe.makeLineSpan("hline",n,d),jt=Qe.makeLineSpan("hdashline",n,d),ct=[{type:"elem",elem:l,shift:0}];u.length>0;){var Ot=u.pop(),yt=Ot.pos-W;Ot.isDashed?ct.push({type:"elem",elem:jt,shift:yt}):ct.push({type:"elem",elem:Pt,shift:yt})}l=Qe.makeVList({positionType:"individualShift",children:ct},n)}if(K.length===0)return Qe.makeSpan(["mord"],[l],n);var Ut=Qe.makeVList({positionType:"individualShift",children:K},n);return Ut=Qe.makeSpan(["tag"],[Ut],n),Qe.makeFragment([l,Ut])},Ppt={c:"center ",l:"left ",r:"right "},eh=function(t,n){for(var r=[],i=new Nt.MathNode("mtd",[],["mtr-glue"]),a=new Nt.MathNode("mtd",[],["mml-eqn-num"]),s=0;s0){var O=t.cols,S="",T=!1,w=0,x=O.length;O[0].type==="separator"&&(p+="top ",w=1),O[O.length-1].type==="separator"&&(p+="bottom ",x-=1);for(var k=w;k0?"left ":"",p+=L[L.length-1].length>0?"right ":"";for(var j=1;j-1?"alignat":"align",a=t.envName==="split",s=km(t.parser,{cols:r,addJot:!0,autoTag:a?void 0:SW(t.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:a?2:void 0,leqno:t.parser.settings.leqno},"display"),o,l=0,u={type:"ordgroup",mode:t.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var d="",f=0;f0&&g&&(T=1),r[O]={type:"align",align:S,pregap:T,postgap:0}}return s.colSeparationType=g?"align":"alignat",s};Kf({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=EI(t[0]),r=n?[t[0]]:sr(t[0],"ordgroup").body,i=r.map(function(s){var o=gW(s),l=o.text;if("lcr".indexOf(l)!==-1)return{type:"align",align:l};if(l==="|")return{type:"separator",separator:"|"};if(l===":")return{type:"separator",separator:":"};throw new Mt("Unknown column alignment: "+l,s)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return km(e.parser,a,EW(e.envName))},htmlBuilder:Jf,mathmlBuilder:eh});Kf({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(e.envName.charAt(e.envName.length-1)==="*"){var i=e.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,"lcr".indexOf(n)===-1)throw new Mt("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),r.cols=[{type:"align",align:n}]}}var a=km(e.parser,r,EW(e.envName)),s=Math.max(0,...a.body.map(o=>o.length));return a.cols=new Array(s).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:Jf,mathmlBuilder:eh});Kf({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=km(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:Jf,mathmlBuilder:eh});Kf({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=EI(t[0]),r=n?[t[0]]:sr(t[0],"ordgroup").body,i=r.map(function(s){var o=gW(s),l=o.text;if("lc".indexOf(l)!==-1)return{type:"align",align:l};throw new Mt("Unknown column alignment: "+l,s)});if(i.length>1)throw new Mt("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(a=km(e.parser,a,"script"),a.body.length>0&&a.body[0].length>1)throw new Mt("{subarray} can contain only one column");return a},htmlBuilder:Jf,mathmlBuilder:eh});Kf({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=km(e.parser,t,EW(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Jf,mathmlBuilder:eh});Kf({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Xge,htmlBuilder:Jf,mathmlBuilder:eh});Kf({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){Nn.contains(["gather","gather*"],e.envName)&&xI(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:SW(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return km(e.parser,t,"display")},htmlBuilder:Jf,mathmlBuilder:eh});Kf({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Xge,htmlBuilder:Jf,mathmlBuilder:eh});Kf({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){xI(e);var t={autoTag:SW(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return km(e.parser,t,"display")},htmlBuilder:Jf,mathmlBuilder:eh});Kf({type:"array",names:["CD"],props:{numArgs:0},handler(e){return xI(e),Opt(e.parser)},htmlBuilder:Jf,mathmlBuilder:eh});oe("\\nonumber","\\gdef\\@eqnsw{0}");oe("\\notag","\\nonumber");nn({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new Mt(e.funcName+" valid only within array environment")}});var Lte=Yge;nn({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];if(i.type!=="ordgroup")throw new Mt("Invalid environment name",i);for(var a="",s=0;s{var n=e.font,r=t.withFont(n);return Br(e.body,r)},Jge=(e,t)=>{var n=e.font,r=t.withFont(n);return Si(e.body,r)},Mte={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};nn({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=PC(t[0]),a=r;return a in Mte&&(a=Mte[a]),{type:"font",mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:Kge,mathmlBuilder:Jge});nn({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0],i=Nn.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:wI(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:i}}});nn({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:a}=n,s=n.parseExpression(!0,i),o="math"+r.slice(1);return{type:"font",mode:a,font:o,body:{type:"ordgroup",mode:n.mode,body:s}}},htmlBuilder:Kge,mathmlBuilder:Jge});var e1e=(e,t)=>{var n=t;return e==="display"?n=n.id>=Ln.SCRIPT.id?n.text():Ln.DISPLAY:e==="text"&&n.size===Ln.DISPLAY.size?n=Ln.TEXT:e==="script"?n=Ln.SCRIPT:e==="scriptscript"&&(n=Ln.SCRIPTSCRIPT),n},wW=(e,t)=>{var n=e1e(e.size,t.style),r=n.fracNum(),i=n.fracDen(),a;a=t.havingStyle(r);var s=Br(e.numer,a,t);if(e.continued){var o=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;s.height=s.height0?O=3*p:O=7*p,S=t.fontMetrics().denom1):(f>0?(g=t.fontMetrics().num2,O=p):(g=t.fontMetrics().num3,O=3*p),S=t.fontMetrics().denom2);var T;if(d){var x=t.fontMetrics().axisHeight;g-s.depth-(x+.5*f){var n=new Nt.MathNode("mfrac",[Si(e.numer,t),Si(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var r=la(e.barSize,t);n.setAttribute("linethickness",Qt(r))}var i=e1e(e.size,t.style);if(i.size!==t.style.size){n=new Nt.MathNode("mstyle",[n]);var a=i.size===Ln.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",a),n.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var s=[];if(e.leftDelim!=null){var o=new Nt.MathNode("mo",[new Nt.TextNode(e.leftDelim.replace("\\",""))]);o.setAttribute("fence","true"),s.push(o)}if(s.push(n),e.rightDelim!=null){var l=new Nt.MathNode("mo",[new Nt.TextNode(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),s.push(l)}return pW(s)}return n};nn({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1],s,o=null,l=null,u="auto";switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,o="(",l=")";break;case"\\\\bracefrac":s=!1,o="\\{",l="\\}";break;case"\\\\brackfrac":s=!1,o="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\dfrac":case"\\dbinom":u="display";break;case"\\tfrac":case"\\tbinom":u="text";break}return{type:"genfrac",mode:n.mode,continued:!1,numer:i,denom:a,hasBarLine:s,leftDelim:o,rightDelim:l,size:u,barSize:null}},htmlBuilder:wW,mathmlBuilder:TW});nn({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:i,denom:a,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});nn({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,i;switch(n){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:i,token:r}}});var $te=["display","text","script","scriptscript"],Fte=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};nn({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:n}=e,r=t[4],i=t[5],a=PC(t[0]),s=a.type==="atom"&&a.family==="open"?Fte(a.text):null,o=PC(t[1]),l=o.type==="atom"&&o.family==="close"?Fte(o.text):null,u=sr(t[2],"size"),d,f=null;u.isBlank?d=!0:(f=u.value,d=f.number>0);var p="auto",g=t[3];if(g.type==="ordgroup"){if(g.body.length>0){var O=sr(g.body[0],"textord");p=$te[Number(O.text)]}}else g=sr(g,"textord"),p=$te[Number(g.text)];return{type:"genfrac",mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:d,barSize:f,leftDelim:s,rightDelim:l,size:p}},htmlBuilder:wW,mathmlBuilder:TW});nn({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:sr(t[0],"size").value,token:i}}});nn({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=dht(sr(t[1],"infix").size),s=t[2],o=a.number>0;return{type:"genfrac",mode:n.mode,numer:i,denom:s,continued:!1,hasBarLine:o,barSize:a,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:wW,mathmlBuilder:TW});var t1e=(e,t)=>{var n=t.style,r,i;e.type==="supsub"?(r=e.sup?Br(e.sup,t.havingStyle(n.sup()),t):Br(e.sub,t.havingStyle(n.sub()),t),i=sr(e.base,"horizBrace")):i=sr(e,"horizBrace");var a=Br(i.base,t.havingBaseStyle(Ln.DISPLAY)),s=hp.svgSpan(i,t),o;if(i.isOver?(o=Qe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]},t),o.children[0].children[0].children[1].classes.push("svg-align")):(o=Qe.makeVList({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]},t),o.children[0].children[0].children[0].classes.push("svg-align")),r){var l=Qe.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t);i.isOver?o=Qe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:r}]},t):o=Qe.makeVList({positionType:"bottom",positionData:l.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:l}]},t)}return Qe.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t)},Lpt=(e,t)=>{var n=hp.mathMLnode(e.label);return new Nt.MathNode(e.isOver?"mover":"munder",[Si(e.base,t),n])};nn({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:t1e,mathmlBuilder:Lpt});nn({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=sr(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:n.mode,href:i,body:Ma(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=us(e.body,t,!1);return Qe.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=pm(e.body,t);return n instanceof cc||(n=new cc("mrow",[n])),n.setAttribute("href",e.href),n}});nn({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=sr(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var i=[],a=0;a{var{parser:n,funcName:r,token:i}=e,a=sr(t[0],"raw").string,s=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var o,l={};switch(r){case"\\htmlClass":l.class=a,o={command:"\\htmlClass",class:a};break;case"\\htmlId":l.id=a,o={command:"\\htmlId",id:a};break;case"\\htmlStyle":l.style=a,o={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var u=a.split(","),d=0;d{var n=us(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=Qe.makeSpan(r,n,t);for(var a in e.attributes)a!=="class"&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>pm(e.body,t)});nn({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:Ma(t[0]),mathml:Ma(t[1])}},htmlBuilder:(e,t)=>{var n=us(e.html,t,!1);return Qe.makeFragment(n)},mathmlBuilder:(e,t)=>pm(e.mathml,t)});var w7=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!n)throw new Mt("Invalid size: '"+t+"' in \\includegraphics");var r={number:+(n[1]+n[2]),unit:n[3]};if(!Oge(r))throw new Mt("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};nn({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,i={number:0,unit:"em"},a={number:.9,unit:"em"},s={number:0,unit:"em"},o="";if(n[0])for(var l=sr(n[0],"raw").string,u=l.split(","),d=0;d{var n=la(e.height,t),r=0;e.totalheight.number>0&&(r=la(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=la(e.width,t));var a={height:Qt(n+r)};i>0&&(a.width=Qt(i)),r>0&&(a.verticalAlign=Qt(-r));var s=new Lht(e.src,e.alt,a);return s.height=n,s.depth=r,s},mathmlBuilder:(e,t)=>{var n=new Nt.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=la(e.height,t),i=0;if(e.totalheight.number>0&&(i=la(e.totalheight,t)-r,n.setAttribute("valign",Qt(-i))),n.setAttribute("height",Qt(r+i)),e.width.number>0){var a=la(e.width,t);n.setAttribute("width",Qt(a))}return n.setAttribute("src",e.src),n}});nn({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=sr(t[0],"size");if(n.settings.strict){var a=r[1]==="m",s=i.value.unit==="mu";a?(s||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, "+("not "+i.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):s&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return Qe.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var n=la(e.dimension,t);return new Nt.SpaceNode(n)}});nn({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment==="clap"?(n=Qe.makeSpan([],[Br(e.body,t)]),n=Qe.makeSpan(["inner"],[n],t)):n=Qe.makeSpan(["inner"],[Br(e.body,t)]);var r=Qe.makeSpan(["fix"],[]),i=Qe.makeSpan([e.alignment],[n,r],t),a=Qe.makeSpan(["strut"]);return a.style.height=Qt(i.height+i.depth),i.depth&&(a.style.verticalAlign=Qt(-i.depth)),i.children.unshift(a),i=Qe.makeSpan(["thinbox"],[i],t),Qe.makeSpan(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var n=new Nt.MathNode("mpadded",[Si(e.body,t)]);if(e.alignment!=="rlap"){var r=e.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}});nn({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode("math");var a=n==="\\("?"\\)":"$",s=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:"styling",mode:r.mode,style:"text",body:s}}});nn({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new Mt("Mismatched "+e.funcName)}});var Bte=(e,t)=>{switch(t.style.size){case Ln.DISPLAY.size:return e.display;case Ln.TEXT.size:return e.text;case Ln.SCRIPT.size:return e.script;case Ln.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};nn({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:Ma(t[0]),text:Ma(t[1]),script:Ma(t[2]),scriptscript:Ma(t[3])}},htmlBuilder:(e,t)=>{var n=Bte(e,t),r=us(n,t,!1);return Qe.makeFragment(r)},mathmlBuilder:(e,t)=>{var n=Bte(e,t);return pm(n,t)}});var n1e=(e,t,n,r,i,a,s)=>{e=Qe.makeSpan([],[e]);var o=n&&Nn.isCharacterBox(n),l,u;if(t){var d=Br(t,r.havingStyle(i.sup()),r);u={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-d.depth)}}if(n){var f=Br(n,r.havingStyle(i.sub()),r);l={elem:f,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-f.height)}}var p;if(u&&l){var g=r.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+e.depth+s;p=Qe.makeVList({positionType:"bottom",positionData:g,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Qt(-a)},{type:"kern",size:l.kern},{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:Qt(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(l){var O=e.height-s;p=Qe.makeVList({positionType:"top",positionData:O,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Qt(-a)},{type:"kern",size:l.kern},{type:"elem",elem:e}]},r)}else if(u){var S=e.depth+s;p=Qe.makeVList({positionType:"bottom",positionData:S,children:[{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:Qt(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else return e;var T=[p];if(l&&a!==0&&!o){var w=Qe.makeSpan(["mspace"],[],r);w.style.marginRight=Qt(a),T.unshift(w)}return Qe.makeSpan(["mop","op-limits"],T,r)},r1e=["\\smallint"],PO=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=sr(e.base,"op"),i=!0):a=sr(e,"op");var s=t.style,o=!1;s.size===Ln.DISPLAY.size&&a.symbol&&!Nn.contains(r1e,a.name)&&(o=!0);var l;if(a.symbol){var u=o?"Size2-Regular":"Size1-Regular",d="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(d=a.name.slice(1),a.name=d==="oiint"?"\\iint":"\\iiint"),l=Qe.makeSymbol(a.name,u,"math",t,["mop","op-symbol",o?"large-op":"small-op"]),d.length>0){var f=l.italic,p=Qe.staticSvg(d+"Size"+(o?"2":"1"),t);l=Qe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:p,shift:o?.08:0}]},t),a.name="\\"+d,l.classes.unshift("mop"),l.italic=f}}else if(a.body){var g=us(a.body,t,!0);g.length===1&&g[0]instanceof Cc?(l=g[0],l.classes[0]="mop"):l=Qe.makeSpan(["mop"],g,t)}else{for(var O=[],S=1;S{var n;if(e.symbol)n=new cc("mo",[Rc(e.name,e.mode)]),Nn.contains(r1e,e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new cc("mo",Ll(e.body,t));else{n=new cc("mi",[new N2(e.name.slice(1))]);var r=new cc("mo",[Rc("⁡","text")]);e.parentIsSupSub?n=new cc("mrow",[n,r]):n=Ige([n,r])}return n},Mpt={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};nn({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=r;return i.length===1&&(i=Mpt[i]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:PO,mathmlBuilder:px});nn({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Ma(r)}},htmlBuilder:PO,mathmlBuilder:px});var $pt={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};nn({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:PO,mathmlBuilder:px});nn({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:PO,mathmlBuilder:px});nn({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=$pt[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:PO,mathmlBuilder:px});var i1e=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=sr(e.base,"operatorname"),i=!0):a=sr(e,"operatorname");var s;if(a.body.length>0){for(var o=a.body.map(f=>{var p=f.text;return typeof p=="string"?{type:"textord",mode:f.mode,text:p}:f}),l=us(o,t.withFont("mathrm"),!0),u=0;u{for(var n=Ll(e.body,t.withFont("mathrm")),r=!0,i=0;id.toText()).join("");n=[new Nt.TextNode(o)]}var l=new Nt.MathNode("mi",n);l.setAttribute("mathvariant","normal");var u=new Nt.MathNode("mo",[Rc("⁡","text")]);return e.parentIsSupSub?new Nt.MathNode("mrow",[l,u]):Nt.newDocumentFragment([l,u])};nn({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"operatorname",mode:n.mode,body:Ma(i),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:i1e,mathmlBuilder:Fpt});oe("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");q1({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?Qe.makeFragment(us(e.body,t,!1)):Qe.makeSpan(["mord"],us(e.body,t,!0),t)},mathmlBuilder(e,t){return pm(e.body,t,!0)}});nn({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(e,t){var n=Br(e.body,t.havingCrampedStyle()),r=Qe.makeLineSpan("overline-line",t),i=t.fontMetrics().defaultRuleThickness,a=Qe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r},{type:"kern",size:i}]},t);return Qe.makeSpan(["mord","overline"],[a],t)},mathmlBuilder(e,t){var n=new Nt.MathNode("mo",[new Nt.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new Nt.MathNode("mover",[Si(e.body,t),n]);return r.setAttribute("accent","true"),r}});nn({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"phantom",mode:n.mode,body:Ma(r)}},htmlBuilder:(e,t)=>{var n=us(e.body,t.withPhantom(),!1);return Qe.makeFragment(n)},mathmlBuilder:(e,t)=>{var n=Ll(e.body,t);return new Nt.MathNode("mphantom",n)}});nn({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=Qe.makeSpan([],[Br(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r{var n=Ll(Ma(e.body),t),r=new Nt.MathNode("mphantom",n),i=new Nt.MathNode("mpadded",[r]);return i.setAttribute("height","0px"),i.setAttribute("depth","0px"),i}});nn({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=Qe.makeSpan(["inner"],[Br(e.body,t.withPhantom())]),r=Qe.makeSpan(["fix"],[]);return Qe.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=Ll(Ma(e.body),t),r=new Nt.MathNode("mphantom",n),i=new Nt.MathNode("mpadded",[r]);return i.setAttribute("width","0px"),i}});nn({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=sr(t[0],"size").value,i=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=Br(e.body,t),r=la(e.dy,t);return Qe.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){var n=new Nt.MathNode("mpadded",[Si(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}});nn({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});nn({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(e,t,n){var{parser:r}=e,i=n[0],a=sr(t[0],"size"),s=sr(t[1],"size");return{type:"rule",mode:r.mode,shift:i&&sr(i,"size").value,width:a.value,height:s.value}},htmlBuilder(e,t){var n=Qe.makeSpan(["mord","rule"],[],t),r=la(e.width,t),i=la(e.height,t),a=e.shift?la(e.shift,t):0;return n.style.borderRightWidth=Qt(r),n.style.borderTopWidth=Qt(i),n.style.bottom=Qt(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=la(e.width,t),r=la(e.height,t),i=e.shift?la(e.shift,t):0,a=t.color&&t.getColor()||"black",s=new Nt.MathNode("mspace");s.setAttribute("mathbackground",a),s.setAttribute("width",Qt(n)),s.setAttribute("height",Qt(r));var o=new Nt.MathNode("mpadded",[s]);return i>=0?o.setAttribute("height",Qt(i)):(o.setAttribute("height",Qt(i)),o.setAttribute("depth",Qt(-i))),o.setAttribute("voffset",Qt(i)),o}});function a1e(e,t,n){for(var r=us(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a{var n=t.havingSize(e.size);return a1e(e.body,n,t)};nn({type:"sizing",names:Ute,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!1,n);return{type:"sizing",mode:i.mode,size:Ute.indexOf(r)+1,body:a}},htmlBuilder:Bpt,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=Ll(e.body,n),i=new Nt.MathNode("mstyle",r);return i.setAttribute("mathsize",Qt(n.sizeMultiplier)),i}});nn({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,i=!1,a=!1,s=n[0]&&sr(n[0],"ordgroup");if(s)for(var o="",l=0;l{var n=Qe.makeSpan([],[Br(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var r=0;r{var n=new Nt.MathNode("mpadded",[Si(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}});nn({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],a=t[0];return{type:"sqrt",mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=Br(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=Qe.wrapFragment(n,t);var r=t.fontMetrics(),i=r.defaultRuleThickness,a=i;t.style.idn.height+n.depth+s&&(s=(s+f-n.height-n.depth)/2);var p=l.height-n.height-s-u;n.style.paddingLeft=Qt(d);var g=Qe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+p)},{type:"elem",elem:l},{type:"kern",size:u}]},t);if(e.index){var O=t.havingStyle(Ln.SCRIPTSCRIPT),S=Br(e.index,O,t),T=.6*(g.height-g.depth),w=Qe.makeVList({positionType:"shift",positionData:-T,children:[{type:"elem",elem:S}]},t),x=Qe.makeSpan(["root"],[w]);return Qe.makeSpan(["mord","sqrt"],[x,g],t)}else return Qe.makeSpan(["mord","sqrt"],[g],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new Nt.MathNode("mroot",[Si(n,t),Si(r,t)]):new Nt.MathNode("msqrt",[Si(n,t)])}});var zte={display:Ln.DISPLAY,text:Ln.TEXT,script:Ln.SCRIPT,scriptscript:Ln.SCRIPTSCRIPT};nn({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!0,n),s=r.slice(1,r.length-5);return{type:"styling",mode:i.mode,style:s,body:a}},htmlBuilder(e,t){var n=zte[e.style],r=t.havingStyle(n).withFont("");return a1e(e.body,r,t)},mathmlBuilder(e,t){var n=zte[e.style],r=t.havingStyle(n),i=Ll(e.body,r),a=new Nt.MathNode("mstyle",i),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[e.style];return a.setAttribute("scriptlevel",o[0]),a.setAttribute("displaystyle",o[1]),a}});var Upt=function(t,n){var r=t.base;if(r)if(r.type==="op"){var i=r.limits&&(n.style.size===Ln.DISPLAY.size||r.alwaysHandleSupSub);return i?PO:null}else if(r.type==="operatorname"){var a=r.alwaysHandleSupSub&&(n.style.size===Ln.DISPLAY.size||r.limits);return a?i1e:null}else{if(r.type==="accent")return Nn.isCharacterBox(r.base)?bW:null;if(r.type==="horizBrace"){var s=!t.sub;return s===r.isOver?t1e:null}else return null}else return null};q1({type:"supsub",htmlBuilder(e,t){var n=Upt(e,t);if(n)return n(e,t);var{base:r,sup:i,sub:a}=e,s=Br(r,t),o,l,u=t.fontMetrics(),d=0,f=0,p=r&&Nn.isCharacterBox(r);if(i){var g=t.havingStyle(t.style.sup());o=Br(i,g,t),p||(d=s.height-g.fontMetrics().supDrop*g.sizeMultiplier/t.sizeMultiplier)}if(a){var O=t.havingStyle(t.style.sub());l=Br(a,O,t),p||(f=s.depth+O.fontMetrics().subDrop*O.sizeMultiplier/t.sizeMultiplier)}var S;t.style===Ln.DISPLAY?S=u.sup1:t.style.cramped?S=u.sup3:S=u.sup2;var T=t.sizeMultiplier,w=Qt(.5/u.ptPerEm/T),x=null;if(l){var k=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(s instanceof Cc||k)&&(x=Qt(-s.italic))}var _;if(o&&l){d=Math.max(d,S,o.depth+.25*u.xHeight),f=Math.max(f,u.sub2);var R=u.defaultRuleThickness,N=4*R;if(d-o.depth-(l.height-f)0&&(d+=P,f-=P)}var L=[{type:"elem",elem:l,shift:f,marginRight:w,marginLeft:x},{type:"elem",elem:o,shift:-d,marginRight:w}];_=Qe.makeVList({positionType:"individualShift",children:L},t)}else if(l){f=Math.max(f,u.sub1,l.height-.8*u.xHeight);var j=[{type:"elem",elem:l,marginLeft:x,marginRight:w}];_=Qe.makeVList({positionType:"shift",positionData:f,children:j},t)}else if(o)d=Math.max(d,S,o.depth+.25*u.xHeight),_=Qe.makeVList({positionType:"shift",positionData:-d,children:[{type:"elem",elem:o,marginRight:w}]},t);else throw new Error("supsub must have either sup or sub.");var B=dM(s,"right")||"mord";return Qe.makeSpan([B],[s,Qe.makeSpan(["msupsub"],[_])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type==="horizBrace"&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var a=[Si(e.base,t)];e.sub&&a.push(Si(e.sub,t)),e.sup&&a.push(Si(e.sup,t));var s;if(n)s=r?"mover":"munder";else if(e.sub)if(e.sup){var u=e.base;u&&u.type==="op"&&u.limits&&t.style===Ln.DISPLAY||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(t.style===Ln.DISPLAY||u.limits)?s="munderover":s="msubsup"}else{var l=e.base;l&&l.type==="op"&&l.limits&&(t.style===Ln.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||t.style===Ln.DISPLAY)?s="munder":s="msub"}else{var o=e.base;o&&o.type==="op"&&o.limits&&(t.style===Ln.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||t.style===Ln.DISPLAY)?s="mover":s="msup"}return new Nt.MathNode(s,a)}});q1({type:"atom",htmlBuilder(e,t){return Qe.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new Nt.MathNode("mo",[Rc(e.text,e.mode)]);if(e.family==="bin"){var r=mW(e,t);r==="bold-italic"&&n.setAttribute("mathvariant",r)}else e.family==="punct"?n.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&n.setAttribute("stretchy","false");return n}});var s1e={mi:"italic",mn:"normal",mtext:"normal"};q1({type:"mathord",htmlBuilder(e,t){return Qe.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var n=new Nt.MathNode("mi",[Rc(e.text,e.mode,t)]),r=mW(e,t)||"italic";return r!==s1e[n.type]&&n.setAttribute("mathvariant",r),n}});q1({type:"textord",htmlBuilder(e,t){return Qe.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var n=Rc(e.text,e.mode,t),r=mW(e,t)||"normal",i;return e.mode==="text"?i=new Nt.MathNode("mtext",[n]):/[0-9]/.test(e.text)?i=new Nt.MathNode("mn",[n]):e.text==="\\prime"?i=new Nt.MathNode("mo",[n]):i=new Nt.MathNode("mi",[n]),r!==s1e[i.type]&&i.setAttribute("mathvariant",r),i}});var T7={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},x7={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};q1({type:"spacing",htmlBuilder(e,t){if(x7.hasOwnProperty(e.text)){var n=x7[e.text].className||"";if(e.mode==="text"){var r=Qe.makeOrd(e,t,"textord");return r.classes.push(n),r}else return Qe.makeSpan(["mspace",n],[Qe.mathsym(e.text,e.mode,t)],t)}else{if(T7.hasOwnProperty(e.text))return Qe.makeSpan(["mspace",T7[e.text]],[],t);throw new Mt('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(x7.hasOwnProperty(e.text))n=new Nt.MathNode("mtext",[new Nt.TextNode(" ")]);else{if(T7.hasOwnProperty(e.text))return new Nt.MathNode("mspace");throw new Mt('Unknown type of space "'+e.text+'"')}return n}});var jte=()=>{var e=new Nt.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};q1({type:"tag",mathmlBuilder(e,t){var n=new Nt.MathNode("mtable",[new Nt.MathNode("mtr",[jte(),new Nt.MathNode("mtd",[pm(e.body,t)]),jte(),new Nt.MathNode("mtd",[pm(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var Hte={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Qte={"\\textbf":"textbf","\\textmd":"textmd"},zpt={"\\textit":"textit","\\textup":"textup"},Wte=(e,t)=>{var n=e.font;if(n){if(Hte[n])return t.withTextFontFamily(Hte[n]);if(Qte[n])return t.withTextFontWeight(Qte[n]);if(n==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(zpt[n])};nn({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"text",mode:n.mode,body:Ma(i),font:r}},htmlBuilder(e,t){var n=Wte(e,t),r=us(e.body,n,!0);return Qe.makeSpan(["mord","text"],r,n)},mathmlBuilder(e,t){var n=Wte(e,t);return pm(e.body,n)}});nn({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Br(e.body,t),r=Qe.makeLineSpan("underline-line",t),i=t.fontMetrics().defaultRuleThickness,a=Qe.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:i},{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n}]},t);return Qe.makeSpan(["mord","underline"],[a],t)},mathmlBuilder(e,t){var n=new Nt.MathNode("mo",[new Nt.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new Nt.MathNode("munder",[Si(e.body,t),n]);return r.setAttribute("accentunder","true"),r}});nn({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Br(e.body,t),r=t.fontMetrics().axisHeight,i=.5*(n.height-r-(n.depth+r));return Qe.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){return new Nt.MathNode("mpadded",[Si(e.body,t)],["vcenter"])}});nn({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new Mt("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=Vte(e),r=[],i=t.havingStyle(t.style.text()),a=0;ae.body.replace(/ /g,e.star?"␣":" "),$0=Cge,o1e=`[ \r + ]`,jpt="\\\\[a-zA-Z@]+",Hpt="\\\\[^\uD800-\uDFFF]",Qpt="("+jpt+")"+o1e+"*",Wpt=`\\\\( |[ \r ]+ -?)[ \r ]*`,TM="[̀-ͯ]",o0t=new RegExp(TM+"+$"),l0t="("+b1e+"+)|"+(s0t+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(TM+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(TM+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+a0t)+("|"+i0t+")");class nne{constructor(t,n){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=n,this.tokenRegex=new RegExp(l0t,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,n){this.catcodes[t]=n}lex(){var t=this.input,n=this.tokenRegex.lastIndex;if(n===t.length)return new wc("EOF",new hu(this,n,n));var r=this.tokenRegex.exec(t);if(r===null||r.index!==n)throw new $t("Unexpected character: '"+t[n]+"'",new wc(t[n],new hu(this,n,n+1)));var i=r[6]||r[3]||(r[2]?"\\ ":" ");if(this.catcodes[i]===14){var a=t.indexOf(` -`,this.tokenRegex.lastIndex);return a===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=a+1,this.lex()}return new wc(i,new hu(this,n,this.tokenRegex.lastIndex))}}class u0t{constructor(t,n){t===void 0&&(t={}),n===void 0&&(n={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=n,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new $t("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var n in t)t.hasOwnProperty(n)&&(t[n]==null?delete this.current[n]:this.current[n]=t[n])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,n,r){if(r===void 0&&(r=!1),r){for(var i=0;i0&&(this.undefStack[this.undefStack.length-1][t]=n)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(t)&&(a[t]=this.current[t])}n==null?delete this.current[t]:this.current[t]=n}}var c0t=s1e;oe("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});oe("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});oe("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});oe("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});oe("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});oe("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");oe("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var rne={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};oe("\\char",function(e){var t=e.popToken(),n,r="";if(t.text==="'")n=8,t=e.popToken();else if(t.text==='"')n=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")r=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new $t("\\char` missing argument");r=t.text.charCodeAt(0)}else n=10;if(n){if(r=rne[t.text],r==null||r>=n)throw new $t("Invalid base-"+n+" digit "+t.text);for(var i;(i=rne[e.future().text])!=null&&i{var r=e.consumeArg().tokens;if(r.length!==1)throw new $t("\\newcommand's first argument must be a macro name");var i=r[0].text,a=e.isDefined(i);if(a&&!t)throw new $t("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!a&&!n)throw new $t("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var s=0;if(r=e.consumeArg().tokens,r.length===1&&r[0].text==="["){for(var o="",l=e.expandNextToken();l.text!=="]"&&l.text!=="EOF";)o+=l.text,l=e.expandNextToken();if(!o.match(/^\s*[0-9]+\s*$/))throw new $t("Invalid number of arguments: "+o);s=parseInt(o),r=e.consumeArg().tokens}return e.macros.set(i,{tokens:r,numArgs:s}),""};oe("\\newcommand",e=>MW(e,!1,!0));oe("\\renewcommand",e=>MW(e,!0,!1));oe("\\providecommand",e=>MW(e,!0,!0));oe("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(n=>n.text).join("")),""});oe("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(n=>n.text).join("")),""});oe("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),W0[n],Ni.math[n],Ni.text[n]),""});oe("\\bgroup","{");oe("\\egroup","}");oe("~","\\nobreakspace");oe("\\lq","`");oe("\\rq","'");oe("\\aa","\\r a");oe("\\AA","\\r A");oe("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");oe("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");oe("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");oe("ℬ","\\mathscr{B}");oe("ℰ","\\mathscr{E}");oe("ℱ","\\mathscr{F}");oe("ℋ","\\mathscr{H}");oe("ℐ","\\mathscr{I}");oe("ℒ","\\mathscr{L}");oe("ℳ","\\mathscr{M}");oe("ℛ","\\mathscr{R}");oe("ℭ","\\mathfrak{C}");oe("ℌ","\\mathfrak{H}");oe("ℨ","\\mathfrak{Z}");oe("\\Bbbk","\\Bbb{k}");oe("·","\\cdotp");oe("\\llap","\\mathllap{\\textrm{#1}}");oe("\\rlap","\\mathrlap{\\textrm{#1}}");oe("\\clap","\\mathclap{\\textrm{#1}}");oe("\\mathstrut","\\vphantom{(}");oe("\\underbar","\\underline{\\text{#1}}");oe("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');oe("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");oe("\\ne","\\neq");oe("≠","\\neq");oe("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");oe("∉","\\notin");oe("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");oe("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");oe("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");oe("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");oe("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");oe("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");oe("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");oe("⟂","\\perp");oe("‼","\\mathclose{!\\mkern-0.8mu!}");oe("∌","\\notni");oe("⌜","\\ulcorner");oe("⌝","\\urcorner");oe("⌞","\\llcorner");oe("⌟","\\lrcorner");oe("©","\\copyright");oe("®","\\textregistered");oe("️","\\textregistered");oe("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');oe("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');oe("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');oe("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');oe("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}");oe("⋮","\\vdots");oe("\\varGamma","\\mathit{\\Gamma}");oe("\\varDelta","\\mathit{\\Delta}");oe("\\varTheta","\\mathit{\\Theta}");oe("\\varLambda","\\mathit{\\Lambda}");oe("\\varXi","\\mathit{\\Xi}");oe("\\varPi","\\mathit{\\Pi}");oe("\\varSigma","\\mathit{\\Sigma}");oe("\\varUpsilon","\\mathit{\\Upsilon}");oe("\\varPhi","\\mathit{\\Phi}");oe("\\varPsi","\\mathit{\\Psi}");oe("\\varOmega","\\mathit{\\Omega}");oe("\\substack","\\begin{subarray}{c}#1\\end{subarray}");oe("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");oe("\\boxed","\\fbox{$\\displaystyle{#1}$}");oe("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");oe("\\implies","\\DOTSB\\;\\Longrightarrow\\;");oe("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var ine={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};oe("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in ine?t=ine[n]:(n.slice(0,4)==="\\not"||n in Ni.math&&Nn.contains(["bin","rel"],Ni.math[n].group))&&(t="\\dotsb"),t});var $W={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};oe("\\dotso",function(e){var t=e.future().text;return t in $W?"\\ldots\\,":"\\ldots"});oe("\\dotsc",function(e){var t=e.future().text;return t in $W&&t!==","?"\\ldots\\,":"\\ldots"});oe("\\cdots",function(e){var t=e.future().text;return t in $W?"\\@cdots\\,":"\\@cdots"});oe("\\dotsb","\\cdots");oe("\\dotsm","\\cdots");oe("\\dotsi","\\!\\cdots");oe("\\dotsx","\\ldots\\,");oe("\\DOTSI","\\relax");oe("\\DOTSB","\\relax");oe("\\DOTSX","\\relax");oe("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");oe("\\,","\\tmspace+{3mu}{.1667em}");oe("\\thinspace","\\,");oe("\\>","\\mskip{4mu}");oe("\\:","\\tmspace+{4mu}{.2222em}");oe("\\medspace","\\:");oe("\\;","\\tmspace+{5mu}{.2777em}");oe("\\thickspace","\\;");oe("\\!","\\tmspace-{3mu}{.1667em}");oe("\\negthinspace","\\!");oe("\\negmedspace","\\tmspace-{4mu}{.2222em}");oe("\\negthickspace","\\tmspace-{5mu}{.277em}");oe("\\enspace","\\kern.5em ");oe("\\enskip","\\hskip.5em\\relax");oe("\\quad","\\hskip1em\\relax");oe("\\qquad","\\hskip2em\\relax");oe("\\tag","\\@ifstar\\tag@literal\\tag@paren");oe("\\tag@paren","\\tag@literal{({#1})}");oe("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new $t("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});oe("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");oe("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");oe("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");oe("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");oe("\\newline","\\\\\\relax");oe("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var y1e=Wt(Cf["Main-Regular"][84][1]-.7*Cf["Main-Regular"][65][1]);oe("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+y1e+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");oe("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+y1e+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");oe("\\hspace","\\@ifstar\\@hspacer\\@hspace");oe("\\@hspace","\\hskip #1\\relax");oe("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");oe("\\ordinarycolon",":");oe("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");oe("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');oe("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');oe("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');oe("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');oe("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');oe("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');oe("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');oe("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');oe("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');oe("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');oe("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');oe("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');oe("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');oe("∷","\\dblcolon");oe("∹","\\eqcolon");oe("≔","\\coloneqq");oe("≕","\\eqqcolon");oe("⩴","\\Coloneqq");oe("\\ratio","\\vcentcolon");oe("\\coloncolon","\\dblcolon");oe("\\colonequals","\\coloneqq");oe("\\coloncolonequals","\\Coloneqq");oe("\\equalscolon","\\eqqcolon");oe("\\equalscoloncolon","\\Eqqcolon");oe("\\colonminus","\\coloneq");oe("\\coloncolonminus","\\Coloneq");oe("\\minuscolon","\\eqcolon");oe("\\minuscoloncolon","\\Eqcolon");oe("\\coloncolonapprox","\\Colonapprox");oe("\\coloncolonsim","\\Colonsim");oe("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");oe("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");oe("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");oe("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");oe("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");oe("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");oe("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");oe("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");oe("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");oe("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");oe("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");oe("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");oe("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");oe("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");oe("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");oe("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");oe("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");oe("\\nleqq","\\html@mathml{\\@nleqq}{≰}");oe("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");oe("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");oe("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");oe("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");oe("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");oe("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");oe("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");oe("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");oe("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");oe("\\imath","\\html@mathml{\\@imath}{ı}");oe("\\jmath","\\html@mathml{\\@jmath}{ȷ}");oe("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");oe("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");oe("⟦","\\llbracket");oe("⟧","\\rrbracket");oe("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");oe("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");oe("⦃","\\lBrace");oe("⦄","\\rBrace");oe("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");oe("⦵","\\minuso");oe("\\darr","\\downarrow");oe("\\dArr","\\Downarrow");oe("\\Darr","\\Downarrow");oe("\\lang","\\langle");oe("\\rang","\\rangle");oe("\\uarr","\\uparrow");oe("\\uArr","\\Uparrow");oe("\\Uarr","\\Uparrow");oe("\\N","\\mathbb{N}");oe("\\R","\\mathbb{R}");oe("\\Z","\\mathbb{Z}");oe("\\alef","\\aleph");oe("\\alefsym","\\aleph");oe("\\Alpha","\\mathrm{A}");oe("\\Beta","\\mathrm{B}");oe("\\bull","\\bullet");oe("\\Chi","\\mathrm{X}");oe("\\clubs","\\clubsuit");oe("\\cnums","\\mathbb{C}");oe("\\Complex","\\mathbb{C}");oe("\\Dagger","\\ddagger");oe("\\diamonds","\\diamondsuit");oe("\\empty","\\emptyset");oe("\\Epsilon","\\mathrm{E}");oe("\\Eta","\\mathrm{H}");oe("\\exist","\\exists");oe("\\harr","\\leftrightarrow");oe("\\hArr","\\Leftrightarrow");oe("\\Harr","\\Leftrightarrow");oe("\\hearts","\\heartsuit");oe("\\image","\\Im");oe("\\infin","\\infty");oe("\\Iota","\\mathrm{I}");oe("\\isin","\\in");oe("\\Kappa","\\mathrm{K}");oe("\\larr","\\leftarrow");oe("\\lArr","\\Leftarrow");oe("\\Larr","\\Leftarrow");oe("\\lrarr","\\leftrightarrow");oe("\\lrArr","\\Leftrightarrow");oe("\\Lrarr","\\Leftrightarrow");oe("\\Mu","\\mathrm{M}");oe("\\natnums","\\mathbb{N}");oe("\\Nu","\\mathrm{N}");oe("\\Omicron","\\mathrm{O}");oe("\\plusmn","\\pm");oe("\\rarr","\\rightarrow");oe("\\rArr","\\Rightarrow");oe("\\Rarr","\\Rightarrow");oe("\\real","\\Re");oe("\\reals","\\mathbb{R}");oe("\\Reals","\\mathbb{R}");oe("\\Rho","\\mathrm{P}");oe("\\sdot","\\cdot");oe("\\sect","\\S");oe("\\spades","\\spadesuit");oe("\\sub","\\subset");oe("\\sube","\\subseteq");oe("\\supe","\\supseteq");oe("\\Tau","\\mathrm{T}");oe("\\thetasym","\\vartheta");oe("\\weierp","\\wp");oe("\\Zeta","\\mathrm{Z}");oe("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");oe("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");oe("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");oe("\\bra","\\mathinner{\\langle{#1}|}");oe("\\ket","\\mathinner{|{#1}\\rangle}");oe("\\braket","\\mathinner{\\langle{#1}\\rangle}");oe("\\Bra","\\left\\langle#1\\right|");oe("\\Ket","\\left|#1\\right\\rangle");var v1e=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,s=t.macros.get("|"),o=t.macros.get("\\|");t.macros.beginGroup();var l=f=>p=>{e&&(p.macros.set("|",s),i.length&&p.macros.set("\\|",o));var g=f;if(!f&&i.length){var O=p.future();O.text==="|"&&(p.popToken(),g=!0)}return{tokens:g?i:r,numArgs:0}};t.macros.set("|",l(!1)),i.length&&t.macros.set("\\|",l(!0));var u=t.consumeArg().tokens,d=t.expandTokens([...a,...u,...n]);return t.macros.endGroup(),{tokens:d.reverse(),numArgs:0}};oe("\\bra@ket",v1e(!1));oe("\\bra@set",v1e(!0));oe("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");oe("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");oe("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");oe("\\angln","{\\angl n}");oe("\\blue","\\textcolor{##6495ed}{#1}");oe("\\orange","\\textcolor{##ffa500}{#1}");oe("\\pink","\\textcolor{##ff00af}{#1}");oe("\\red","\\textcolor{##df0030}{#1}");oe("\\green","\\textcolor{##28ae7b}{#1}");oe("\\gray","\\textcolor{gray}{#1}");oe("\\purple","\\textcolor{##9d38bd}{#1}");oe("\\blueA","\\textcolor{##ccfaff}{#1}");oe("\\blueB","\\textcolor{##80f6ff}{#1}");oe("\\blueC","\\textcolor{##63d9ea}{#1}");oe("\\blueD","\\textcolor{##11accd}{#1}");oe("\\blueE","\\textcolor{##0c7f99}{#1}");oe("\\tealA","\\textcolor{##94fff5}{#1}");oe("\\tealB","\\textcolor{##26edd5}{#1}");oe("\\tealC","\\textcolor{##01d1c1}{#1}");oe("\\tealD","\\textcolor{##01a995}{#1}");oe("\\tealE","\\textcolor{##208170}{#1}");oe("\\greenA","\\textcolor{##b6ffb0}{#1}");oe("\\greenB","\\textcolor{##8af281}{#1}");oe("\\greenC","\\textcolor{##74cf70}{#1}");oe("\\greenD","\\textcolor{##1fab54}{#1}");oe("\\greenE","\\textcolor{##0d923f}{#1}");oe("\\goldA","\\textcolor{##ffd0a9}{#1}");oe("\\goldB","\\textcolor{##ffbb71}{#1}");oe("\\goldC","\\textcolor{##ff9c39}{#1}");oe("\\goldD","\\textcolor{##e07d10}{#1}");oe("\\goldE","\\textcolor{##a75a05}{#1}");oe("\\redA","\\textcolor{##fca9a9}{#1}");oe("\\redB","\\textcolor{##ff8482}{#1}");oe("\\redC","\\textcolor{##f9685d}{#1}");oe("\\redD","\\textcolor{##e84d39}{#1}");oe("\\redE","\\textcolor{##bc2612}{#1}");oe("\\maroonA","\\textcolor{##ffbde0}{#1}");oe("\\maroonB","\\textcolor{##ff92c6}{#1}");oe("\\maroonC","\\textcolor{##ed5fa6}{#1}");oe("\\maroonD","\\textcolor{##ca337c}{#1}");oe("\\maroonE","\\textcolor{##9e034e}{#1}");oe("\\purpleA","\\textcolor{##ddd7ff}{#1}");oe("\\purpleB","\\textcolor{##c6b9fc}{#1}");oe("\\purpleC","\\textcolor{##aa87ff}{#1}");oe("\\purpleD","\\textcolor{##7854ab}{#1}");oe("\\purpleE","\\textcolor{##543b78}{#1}");oe("\\mintA","\\textcolor{##f5f9e8}{#1}");oe("\\mintB","\\textcolor{##edf2df}{#1}");oe("\\mintC","\\textcolor{##e0e5cc}{#1}");oe("\\grayA","\\textcolor{##f6f7f7}{#1}");oe("\\grayB","\\textcolor{##f0f1f2}{#1}");oe("\\grayC","\\textcolor{##e3e5e6}{#1}");oe("\\grayD","\\textcolor{##d6d8da}{#1}");oe("\\grayE","\\textcolor{##babec2}{#1}");oe("\\grayF","\\textcolor{##888d93}{#1}");oe("\\grayG","\\textcolor{##626569}{#1}");oe("\\grayH","\\textcolor{##3b3e40}{#1}");oe("\\grayI","\\textcolor{##21242c}{#1}");oe("\\kaBlue","\\textcolor{##314453}{#1}");oe("\\kaGreen","\\textcolor{##71B307}{#1}");var O1e={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class d0t{constructor(t,n,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=n,this.expansionCount=0,this.feed(t),this.macros=new u0t(c0t,n.macros),this.mode=r,this.stack=[]}feed(t){this.lexer=new nne(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var n,r,i;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:i,end:r}=this.consumeArg(["]"])}else({tokens:i,start:n,end:r}=this.consumeArg());return this.pushToken(new wc("EOF",r.loc)),this.pushTokens(i),n.range(r,"")}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var n=[],r=t&&t.length>0;r||this.consumeSpaces();var i=this.future(),a,s=0,o=0;do{if(a=this.popToken(),n.push(a),a.text==="{")++s;else if(a.text==="}"){if(--s,s===-1)throw new $t("Extra }",a)}else if(a.text==="EOF")throw new $t("Unexpected end of input in a macro argument, expected '"+(t&&r?t[o]:"}")+"'",a);if(t&&r)if((s===0||s===1&&t[o]==="{")&&a.text===t[o]){if(++o,o===t.length){n.splice(-o,o);break}}else o=0}while(s!==0||r);return i.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:i,end:a}}consumeArgs(t,n){if(n){if(n.length!==t+1)throw new $t("The length of delimiters doesn't match the number of args!");for(var r=n[0],i=0;ithis.settings.maxExpand)throw new $t("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var n=this.popToken(),r=n.text,i=n.noexpand?null:this._getExpansion(r);if(i==null||t&&i.unexpandable){if(t&&i==null&&r[0]==="\\"&&!this.isDefined(r))throw new $t("Undefined control sequence: "+r);return this.pushToken(n),!1}this.countExpansion(1);var a=i.tokens,s=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){a=a.slice();for(var o=a.length-1;o>=0;--o){var l=a[o];if(l.text==="#"){if(o===0)throw new $t("Incomplete placeholder at end of macro body",l);if(l=a[--o],l.text==="#")a.splice(o+1,1);else if(/^[1-9]$/.test(l.text))a.splice(o,2,...s[+l.text-1]);else throw new $t("Not a valid argument number",l)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}throw new Error}expandMacro(t){return this.macros.has(t)?this.expandTokens([new wc(t)]):void 0}expandTokens(t){var n=[],r=this.stack.length;for(this.pushTokens(t);this.stack.length>r;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),n.push(i)}return this.countExpansion(n.length),n}expandMacroAsText(t){var n=this.expandMacro(t);return n&&n.map(r=>r.text).join("")}_getExpansion(t){var n=this.macros.get(t);if(n==null)return n;if(t.length===1){var r=this.lexer.catcodes[t];if(r!=null&&r!==13)return}var i=typeof n=="function"?n(this):n;if(typeof i=="string"){var a=0;if(i.indexOf("#")!==-1)for(var s=i.replace(/##/g,"");s.indexOf("#"+(a+1))!==-1;)++a;for(var o=new nne(i,this.settings),l=[],u=o.lex();u.text!=="EOF";)l.push(u),u=o.lex();l.reverse();var d={tokens:l,numArgs:a};return d}return i}isDefined(t){return this.macros.has(t)||W0.hasOwnProperty(t)||Ni.math.hasOwnProperty(t)||Ni.text.hasOwnProperty(t)||O1e.hasOwnProperty(t)}isExpandable(t){var n=this.macros.get(t);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:W0.hasOwnProperty(t)&&!W0[t].primitive}}var ane=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,b4=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),D7={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},sne={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class _I{constructor(t,n){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new d0t(t,n,this.mode),this.settings=n,this.leftrightDepth=0}expect(t,n){if(n===void 0&&(n=!0),this.fetch().text!==t)throw new $t("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());n&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var n=this.nextToken;this.consume(),this.gullet.pushToken(new wc("}")),this.gullet.pushTokens(t);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=n,r}parseExpression(t,n){for(var r=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(_I.endOfExpression.indexOf(i.text)!==-1||n&&i.text===n||t&&W0[i.text]&&W0[i.text].infix)break;var a=this.parseAtom(n);if(a){if(a.type==="internal")continue}else break;r.push(a)}return this.mode==="text"&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(t){for(var n=-1,r,i=0;i=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',t);var o=Ni[this.mode][n].group,l=hu.range(t),u;if(Jht.hasOwnProperty(o)){var d=o;u={type:"atom",mode:this.mode,family:d,loc:l,text:n}}else u={type:o,mode:this.mode,loc:l,text:n};s=u}else if(n.charCodeAt(0)>=128)this.settings.strict&&(Cge(n.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+n[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+n[0]+'"'+(" ("+n.charCodeAt(0)+")"),t)),s={type:"textord",mode:"text",loc:hu.range(t),text:n};else return null;if(this.consume(),a)for(var f=0;f0&&(a.properties.rel=[...p]),g&&(a.properties.target=g),d){const S=EE(t.contentProperties,a)||{};a.children.push({type:"element",tagName:"span",properties:Ed(S),children:Ed(d)})}}}})}}function EE(e,t){return typeof e=="function"?e(t):e}function E0t(e,t){return w1e(e,{})||{type:"root",children:[]}}function w1e(e,t){const n=w0t(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function w0t(e,t){switch(e.nodeType){case 1:return A0t(e,t);case 3:return x0t(e);case 8:return k0t(e);case 9:return one(e,t);case 10:return T0t();case 11:return one(e,t);default:return}}function one(e,t){return{type:"root",children:T1e(e,t)}}function T0t(){return{type:"doctype"}}function x0t(e){return{type:"text",value:e.nodeValue||""}}function k0t(e){return{type:"comment",value:e.nodeValue||""}}function A0t(e,t){const n=e.namespaceURI,r=n===Af.svg?H0e:j0e,i=n===Af.html?e.tagName.toLowerCase():e.tagName,a=n===Af.html&&i==="template"?e.content:e,s=e.getAttributeNames(),o={};let l=-1;for(;++lu&&(u=d):d&&(u!==void 0&&u>-1&&l.push(` -`.repeat(u)||" "),u=-1,l.push(d))}return l.join("")}function k1e(e,t,n){return e.type==="element"?D0t(e,t,n):e.type==="text"?n.whitespace==="normal"?A1e(e,n):P0t(e):[]}function D0t(e,t,n){const r=_1e(e,n),i=e.children||[];let a=-1,s=[];if(I0t(e))return s;let o,l;for(xM(e)||fne(e)&&lne(t,e,fne)?l=` -`:R0t(e)?(o=2,l=2):x1e(e)&&(o=1,l=1);++a"),a={type:"comment",value:r<0?n:n.slice(0,r)};return px(a,t),a}}function Q0t(e,t){if(e.schema.allowDoctypes){const n={type:"doctype"};return px(n,t),n}}function W0t(e,t){const n=typeof t.tagName=="string"?t.tagName:"";e.stack.push(n);const r=R1e(e,t.children),i=G0t(e,t.properties);e.stack.pop();let a=!1;if(n&&n!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(a=!0,e.schema.ancestors&&y0.call(e.schema.ancestors,n))){const o=e.schema.ancestors[n];let l=-1;for(a=!1;++l1){let i=!1,a=0;for(;++a-1&&a>l||s>-1&&a>s||o>-1&&a>o)return!0;let u=-1;for(;++u4&&t.slice(0,4).toLowerCase()==="data")return n}function X0t(e){return function(t){return j0t(t,e)}}function K0t(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:a},exit:{mathFlow:i,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:o,mathText:s,mathTextData:o}};function e(l){const u={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[u]}},l)}function t(){this.buffer()}function n(){const l=this.resume(),u=this.stack[this.stack.length-1];u.type,u.meta=l}function r(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function i(l){const u=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),d=this.stack[this.stack.length-1];d.type,this.exit(l),d.value=u;const f=d.data.hChildren[0];f.type,f.tagName,f.children.push({type:"text",value:u}),this.data.mathFlowInside=void 0}function a(l){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},l),this.buffer()}function s(l){const u=this.resume(),d=this.stack[this.stack.length-1];d.type,this.exit(l),d.value=u,d.data.hChildren.push({type:"text",value:u})}function o(l){this.config.enter.data.call(this,l),this.config.exit.data.call(this,l)}}function J0t(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),r.peek=i,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:` -`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:n,inlineMath:r}};function n(a,s,o,l){const u=a.value||"",d=o.createTracker(l),f="$".repeat(Math.max(ige(u,"$")+1,2)),p=o.enter("mathFlow");let g=d.move(f);if(a.meta){const O=o.enter("mathFlowMeta");g+=d.move(o.safe(a.meta,{after:` +?)[ \r ]*`,mM="[̀-ͯ]",Vpt=new RegExp(mM+"+$"),qpt="("+o1e+"+)|"+(Wpt+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(mM+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(mM+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+Qpt)+("|"+Hpt+")");class qte{constructor(t,n){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=n,this.tokenRegex=new RegExp(qpt,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,n){this.catcodes[t]=n}lex(){var t=this.input,n=this.tokenRegex.lastIndex;if(n===t.length)return new wc("EOF",new uu(this,n,n));var r=this.tokenRegex.exec(t);if(r===null||r.index!==n)throw new Mt("Unexpected character: '"+t[n]+"'",new wc(t[n],new uu(this,n,n+1)));var i=r[6]||r[3]||(r[2]?"\\ ":" ");if(this.catcodes[i]===14){var a=t.indexOf(` +`,this.tokenRegex.lastIndex);return a===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=a+1,this.lex()}return new wc(i,new uu(this,n,this.tokenRegex.lastIndex))}}class Gpt{constructor(t,n){t===void 0&&(t={}),n===void 0&&(n={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=n,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Mt("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var n in t)t.hasOwnProperty(n)&&(t[n]==null?delete this.current[n]:this.current[n]=t[n])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,n,r){if(r===void 0&&(r=!1),r){for(var i=0;i0&&(this.undefStack[this.undefStack.length-1][t]=n)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(t)&&(a[t]=this.current[t])}n==null?delete this.current[t]:this.current[t]=n}}var Ypt=Zge;oe("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});oe("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});oe("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});oe("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});oe("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});oe("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");oe("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var Gte={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};oe("\\char",function(e){var t=e.popToken(),n,r="";if(t.text==="'")n=8,t=e.popToken();else if(t.text==='"')n=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")r=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new Mt("\\char` missing argument");r=t.text.charCodeAt(0)}else n=10;if(n){if(r=Gte[t.text],r==null||r>=n)throw new Mt("Invalid base-"+n+" digit "+t.text);for(var i;(i=Gte[e.future().text])!=null&&i{var r=e.consumeArg().tokens;if(r.length!==1)throw new Mt("\\newcommand's first argument must be a macro name");var i=r[0].text,a=e.isDefined(i);if(a&&!t)throw new Mt("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!a&&!n)throw new Mt("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var s=0;if(r=e.consumeArg().tokens,r.length===1&&r[0].text==="["){for(var o="",l=e.expandNextToken();l.text!=="]"&&l.text!=="EOF";)o+=l.text,l=e.expandNextToken();if(!o.match(/^\s*[0-9]+\s*$/))throw new Mt("Invalid number of arguments: "+o);s=parseInt(o),r=e.consumeArg().tokens}return e.macros.set(i,{tokens:r,numArgs:s}),""};oe("\\newcommand",e=>xW(e,!1,!0));oe("\\renewcommand",e=>xW(e,!0,!1));oe("\\providecommand",e=>xW(e,!0,!0));oe("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(n=>n.text).join("")),""});oe("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(n=>n.text).join("")),""});oe("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),$0[n],Ci.math[n],Ci.text[n]),""});oe("\\bgroup","{");oe("\\egroup","}");oe("~","\\nobreakspace");oe("\\lq","`");oe("\\rq","'");oe("\\aa","\\r a");oe("\\AA","\\r A");oe("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");oe("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");oe("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");oe("ℬ","\\mathscr{B}");oe("ℰ","\\mathscr{E}");oe("ℱ","\\mathscr{F}");oe("ℋ","\\mathscr{H}");oe("ℐ","\\mathscr{I}");oe("ℒ","\\mathscr{L}");oe("ℳ","\\mathscr{M}");oe("ℛ","\\mathscr{R}");oe("ℭ","\\mathfrak{C}");oe("ℌ","\\mathfrak{H}");oe("ℨ","\\mathfrak{Z}");oe("\\Bbbk","\\Bbb{k}");oe("·","\\cdotp");oe("\\llap","\\mathllap{\\textrm{#1}}");oe("\\rlap","\\mathrlap{\\textrm{#1}}");oe("\\clap","\\mathclap{\\textrm{#1}}");oe("\\mathstrut","\\vphantom{(}");oe("\\underbar","\\underline{\\text{#1}}");oe("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');oe("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");oe("\\ne","\\neq");oe("≠","\\neq");oe("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");oe("∉","\\notin");oe("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");oe("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");oe("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");oe("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");oe("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");oe("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");oe("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");oe("⟂","\\perp");oe("‼","\\mathclose{!\\mkern-0.8mu!}");oe("∌","\\notni");oe("⌜","\\ulcorner");oe("⌝","\\urcorner");oe("⌞","\\llcorner");oe("⌟","\\lrcorner");oe("©","\\copyright");oe("®","\\textregistered");oe("️","\\textregistered");oe("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');oe("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');oe("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');oe("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');oe("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}");oe("⋮","\\vdots");oe("\\varGamma","\\mathit{\\Gamma}");oe("\\varDelta","\\mathit{\\Delta}");oe("\\varTheta","\\mathit{\\Theta}");oe("\\varLambda","\\mathit{\\Lambda}");oe("\\varXi","\\mathit{\\Xi}");oe("\\varPi","\\mathit{\\Pi}");oe("\\varSigma","\\mathit{\\Sigma}");oe("\\varUpsilon","\\mathit{\\Upsilon}");oe("\\varPhi","\\mathit{\\Phi}");oe("\\varPsi","\\mathit{\\Psi}");oe("\\varOmega","\\mathit{\\Omega}");oe("\\substack","\\begin{subarray}{c}#1\\end{subarray}");oe("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");oe("\\boxed","\\fbox{$\\displaystyle{#1}$}");oe("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");oe("\\implies","\\DOTSB\\;\\Longrightarrow\\;");oe("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var Yte={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};oe("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in Yte?t=Yte[n]:(n.slice(0,4)==="\\not"||n in Ci.math&&Nn.contains(["bin","rel"],Ci.math[n].group))&&(t="\\dotsb"),t});var kW={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};oe("\\dotso",function(e){var t=e.future().text;return t in kW?"\\ldots\\,":"\\ldots"});oe("\\dotsc",function(e){var t=e.future().text;return t in kW&&t!==","?"\\ldots\\,":"\\ldots"});oe("\\cdots",function(e){var t=e.future().text;return t in kW?"\\@cdots\\,":"\\@cdots"});oe("\\dotsb","\\cdots");oe("\\dotsm","\\cdots");oe("\\dotsi","\\!\\cdots");oe("\\dotsx","\\ldots\\,");oe("\\DOTSI","\\relax");oe("\\DOTSB","\\relax");oe("\\DOTSX","\\relax");oe("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");oe("\\,","\\tmspace+{3mu}{.1667em}");oe("\\thinspace","\\,");oe("\\>","\\mskip{4mu}");oe("\\:","\\tmspace+{4mu}{.2222em}");oe("\\medspace","\\:");oe("\\;","\\tmspace+{5mu}{.2777em}");oe("\\thickspace","\\;");oe("\\!","\\tmspace-{3mu}{.1667em}");oe("\\negthinspace","\\!");oe("\\negmedspace","\\tmspace-{4mu}{.2222em}");oe("\\negthickspace","\\tmspace-{5mu}{.277em}");oe("\\enspace","\\kern.5em ");oe("\\enskip","\\hskip.5em\\relax");oe("\\quad","\\hskip1em\\relax");oe("\\qquad","\\hskip2em\\relax");oe("\\tag","\\@ifstar\\tag@literal\\tag@paren");oe("\\tag@paren","\\tag@literal{({#1})}");oe("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new Mt("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});oe("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");oe("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");oe("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");oe("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");oe("\\newline","\\\\\\relax");oe("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var l1e=Qt(xf["Main-Regular"][84][1]-.7*xf["Main-Regular"][65][1]);oe("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+l1e+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");oe("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+l1e+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");oe("\\hspace","\\@ifstar\\@hspacer\\@hspace");oe("\\@hspace","\\hskip #1\\relax");oe("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");oe("\\ordinarycolon",":");oe("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");oe("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');oe("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');oe("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');oe("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');oe("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');oe("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');oe("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');oe("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');oe("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');oe("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');oe("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');oe("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');oe("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');oe("∷","\\dblcolon");oe("∹","\\eqcolon");oe("≔","\\coloneqq");oe("≕","\\eqqcolon");oe("⩴","\\Coloneqq");oe("\\ratio","\\vcentcolon");oe("\\coloncolon","\\dblcolon");oe("\\colonequals","\\coloneqq");oe("\\coloncolonequals","\\Coloneqq");oe("\\equalscolon","\\eqqcolon");oe("\\equalscoloncolon","\\Eqqcolon");oe("\\colonminus","\\coloneq");oe("\\coloncolonminus","\\Coloneq");oe("\\minuscolon","\\eqcolon");oe("\\minuscoloncolon","\\Eqcolon");oe("\\coloncolonapprox","\\Colonapprox");oe("\\coloncolonsim","\\Colonsim");oe("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");oe("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");oe("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");oe("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");oe("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");oe("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");oe("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");oe("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");oe("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");oe("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");oe("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");oe("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");oe("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");oe("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");oe("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");oe("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");oe("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");oe("\\nleqq","\\html@mathml{\\@nleqq}{≰}");oe("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");oe("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");oe("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");oe("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");oe("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");oe("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");oe("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");oe("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");oe("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");oe("\\imath","\\html@mathml{\\@imath}{ı}");oe("\\jmath","\\html@mathml{\\@jmath}{ȷ}");oe("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");oe("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");oe("⟦","\\llbracket");oe("⟧","\\rrbracket");oe("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");oe("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");oe("⦃","\\lBrace");oe("⦄","\\rBrace");oe("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");oe("⦵","\\minuso");oe("\\darr","\\downarrow");oe("\\dArr","\\Downarrow");oe("\\Darr","\\Downarrow");oe("\\lang","\\langle");oe("\\rang","\\rangle");oe("\\uarr","\\uparrow");oe("\\uArr","\\Uparrow");oe("\\Uarr","\\Uparrow");oe("\\N","\\mathbb{N}");oe("\\R","\\mathbb{R}");oe("\\Z","\\mathbb{Z}");oe("\\alef","\\aleph");oe("\\alefsym","\\aleph");oe("\\Alpha","\\mathrm{A}");oe("\\Beta","\\mathrm{B}");oe("\\bull","\\bullet");oe("\\Chi","\\mathrm{X}");oe("\\clubs","\\clubsuit");oe("\\cnums","\\mathbb{C}");oe("\\Complex","\\mathbb{C}");oe("\\Dagger","\\ddagger");oe("\\diamonds","\\diamondsuit");oe("\\empty","\\emptyset");oe("\\Epsilon","\\mathrm{E}");oe("\\Eta","\\mathrm{H}");oe("\\exist","\\exists");oe("\\harr","\\leftrightarrow");oe("\\hArr","\\Leftrightarrow");oe("\\Harr","\\Leftrightarrow");oe("\\hearts","\\heartsuit");oe("\\image","\\Im");oe("\\infin","\\infty");oe("\\Iota","\\mathrm{I}");oe("\\isin","\\in");oe("\\Kappa","\\mathrm{K}");oe("\\larr","\\leftarrow");oe("\\lArr","\\Leftarrow");oe("\\Larr","\\Leftarrow");oe("\\lrarr","\\leftrightarrow");oe("\\lrArr","\\Leftrightarrow");oe("\\Lrarr","\\Leftrightarrow");oe("\\Mu","\\mathrm{M}");oe("\\natnums","\\mathbb{N}");oe("\\Nu","\\mathrm{N}");oe("\\Omicron","\\mathrm{O}");oe("\\plusmn","\\pm");oe("\\rarr","\\rightarrow");oe("\\rArr","\\Rightarrow");oe("\\Rarr","\\Rightarrow");oe("\\real","\\Re");oe("\\reals","\\mathbb{R}");oe("\\Reals","\\mathbb{R}");oe("\\Rho","\\mathrm{P}");oe("\\sdot","\\cdot");oe("\\sect","\\S");oe("\\spades","\\spadesuit");oe("\\sub","\\subset");oe("\\sube","\\subseteq");oe("\\supe","\\supseteq");oe("\\Tau","\\mathrm{T}");oe("\\thetasym","\\vartheta");oe("\\weierp","\\wp");oe("\\Zeta","\\mathrm{Z}");oe("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");oe("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");oe("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");oe("\\bra","\\mathinner{\\langle{#1}|}");oe("\\ket","\\mathinner{|{#1}\\rangle}");oe("\\braket","\\mathinner{\\langle{#1}\\rangle}");oe("\\Bra","\\left\\langle#1\\right|");oe("\\Ket","\\left|#1\\right\\rangle");var u1e=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,s=t.macros.get("|"),o=t.macros.get("\\|");t.macros.beginGroup();var l=f=>p=>{e&&(p.macros.set("|",s),i.length&&p.macros.set("\\|",o));var g=f;if(!f&&i.length){var O=p.future();O.text==="|"&&(p.popToken(),g=!0)}return{tokens:g?i:r,numArgs:0}};t.macros.set("|",l(!1)),i.length&&t.macros.set("\\|",l(!0));var u=t.consumeArg().tokens,d=t.expandTokens([...a,...u,...n]);return t.macros.endGroup(),{tokens:d.reverse(),numArgs:0}};oe("\\bra@ket",u1e(!1));oe("\\bra@set",u1e(!0));oe("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");oe("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");oe("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");oe("\\angln","{\\angl n}");oe("\\blue","\\textcolor{##6495ed}{#1}");oe("\\orange","\\textcolor{##ffa500}{#1}");oe("\\pink","\\textcolor{##ff00af}{#1}");oe("\\red","\\textcolor{##df0030}{#1}");oe("\\green","\\textcolor{##28ae7b}{#1}");oe("\\gray","\\textcolor{gray}{#1}");oe("\\purple","\\textcolor{##9d38bd}{#1}");oe("\\blueA","\\textcolor{##ccfaff}{#1}");oe("\\blueB","\\textcolor{##80f6ff}{#1}");oe("\\blueC","\\textcolor{##63d9ea}{#1}");oe("\\blueD","\\textcolor{##11accd}{#1}");oe("\\blueE","\\textcolor{##0c7f99}{#1}");oe("\\tealA","\\textcolor{##94fff5}{#1}");oe("\\tealB","\\textcolor{##26edd5}{#1}");oe("\\tealC","\\textcolor{##01d1c1}{#1}");oe("\\tealD","\\textcolor{##01a995}{#1}");oe("\\tealE","\\textcolor{##208170}{#1}");oe("\\greenA","\\textcolor{##b6ffb0}{#1}");oe("\\greenB","\\textcolor{##8af281}{#1}");oe("\\greenC","\\textcolor{##74cf70}{#1}");oe("\\greenD","\\textcolor{##1fab54}{#1}");oe("\\greenE","\\textcolor{##0d923f}{#1}");oe("\\goldA","\\textcolor{##ffd0a9}{#1}");oe("\\goldB","\\textcolor{##ffbb71}{#1}");oe("\\goldC","\\textcolor{##ff9c39}{#1}");oe("\\goldD","\\textcolor{##e07d10}{#1}");oe("\\goldE","\\textcolor{##a75a05}{#1}");oe("\\redA","\\textcolor{##fca9a9}{#1}");oe("\\redB","\\textcolor{##ff8482}{#1}");oe("\\redC","\\textcolor{##f9685d}{#1}");oe("\\redD","\\textcolor{##e84d39}{#1}");oe("\\redE","\\textcolor{##bc2612}{#1}");oe("\\maroonA","\\textcolor{##ffbde0}{#1}");oe("\\maroonB","\\textcolor{##ff92c6}{#1}");oe("\\maroonC","\\textcolor{##ed5fa6}{#1}");oe("\\maroonD","\\textcolor{##ca337c}{#1}");oe("\\maroonE","\\textcolor{##9e034e}{#1}");oe("\\purpleA","\\textcolor{##ddd7ff}{#1}");oe("\\purpleB","\\textcolor{##c6b9fc}{#1}");oe("\\purpleC","\\textcolor{##aa87ff}{#1}");oe("\\purpleD","\\textcolor{##7854ab}{#1}");oe("\\purpleE","\\textcolor{##543b78}{#1}");oe("\\mintA","\\textcolor{##f5f9e8}{#1}");oe("\\mintB","\\textcolor{##edf2df}{#1}");oe("\\mintC","\\textcolor{##e0e5cc}{#1}");oe("\\grayA","\\textcolor{##f6f7f7}{#1}");oe("\\grayB","\\textcolor{##f0f1f2}{#1}");oe("\\grayC","\\textcolor{##e3e5e6}{#1}");oe("\\grayD","\\textcolor{##d6d8da}{#1}");oe("\\grayE","\\textcolor{##babec2}{#1}");oe("\\grayF","\\textcolor{##888d93}{#1}");oe("\\grayG","\\textcolor{##626569}{#1}");oe("\\grayH","\\textcolor{##3b3e40}{#1}");oe("\\grayI","\\textcolor{##21242c}{#1}");oe("\\kaBlue","\\textcolor{##314453}{#1}");oe("\\kaGreen","\\textcolor{##71B307}{#1}");var c1e={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class Zpt{constructor(t,n,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=n,this.expansionCount=0,this.feed(t),this.macros=new Gpt(Ypt,n.macros),this.mode=r,this.stack=[]}feed(t){this.lexer=new qte(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var n,r,i;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:i,end:r}=this.consumeArg(["]"])}else({tokens:i,start:n,end:r}=this.consumeArg());return this.pushToken(new wc("EOF",r.loc)),this.pushTokens(i),n.range(r,"")}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var n=[],r=t&&t.length>0;r||this.consumeSpaces();var i=this.future(),a,s=0,o=0;do{if(a=this.popToken(),n.push(a),a.text==="{")++s;else if(a.text==="}"){if(--s,s===-1)throw new Mt("Extra }",a)}else if(a.text==="EOF")throw new Mt("Unexpected end of input in a macro argument, expected '"+(t&&r?t[o]:"}")+"'",a);if(t&&r)if((s===0||s===1&&t[o]==="{")&&a.text===t[o]){if(++o,o===t.length){n.splice(-o,o);break}}else o=0}while(s!==0||r);return i.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:i,end:a}}consumeArgs(t,n){if(n){if(n.length!==t+1)throw new Mt("The length of delimiters doesn't match the number of args!");for(var r=n[0],i=0;ithis.settings.maxExpand)throw new Mt("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var n=this.popToken(),r=n.text,i=n.noexpand?null:this._getExpansion(r);if(i==null||t&&i.unexpandable){if(t&&i==null&&r[0]==="\\"&&!this.isDefined(r))throw new Mt("Undefined control sequence: "+r);return this.pushToken(n),!1}this.countExpansion(1);var a=i.tokens,s=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){a=a.slice();for(var o=a.length-1;o>=0;--o){var l=a[o];if(l.text==="#"){if(o===0)throw new Mt("Incomplete placeholder at end of macro body",l);if(l=a[--o],l.text==="#")a.splice(o+1,1);else if(/^[1-9]$/.test(l.text))a.splice(o,2,...s[+l.text-1]);else throw new Mt("Not a valid argument number",l)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}throw new Error}expandMacro(t){return this.macros.has(t)?this.expandTokens([new wc(t)]):void 0}expandTokens(t){var n=[],r=this.stack.length;for(this.pushTokens(t);this.stack.length>r;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),n.push(i)}return this.countExpansion(n.length),n}expandMacroAsText(t){var n=this.expandMacro(t);return n&&n.map(r=>r.text).join("")}_getExpansion(t){var n=this.macros.get(t);if(n==null)return n;if(t.length===1){var r=this.lexer.catcodes[t];if(r!=null&&r!==13)return}var i=typeof n=="function"?n(this):n;if(typeof i=="string"){var a=0;if(i.indexOf("#")!==-1)for(var s=i.replace(/##/g,"");s.indexOf("#"+(a+1))!==-1;)++a;for(var o=new qte(i,this.settings),l=[],u=o.lex();u.text!=="EOF";)l.push(u),u=o.lex();l.reverse();var d={tokens:l,numArgs:a};return d}return i}isDefined(t){return this.macros.has(t)||$0.hasOwnProperty(t)||Ci.math.hasOwnProperty(t)||Ci.text.hasOwnProperty(t)||c1e.hasOwnProperty(t)}isExpandable(t){var n=this.macros.get(t);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:$0.hasOwnProperty(t)&&!$0[t].primitive}}var Zte=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,b4=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),k7={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},Xte={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class kI{constructor(t,n){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new Zpt(t,n,this.mode),this.settings=n,this.leftrightDepth=0}expect(t,n){if(n===void 0&&(n=!0),this.fetch().text!==t)throw new Mt("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());n&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var n=this.nextToken;this.consume(),this.gullet.pushToken(new wc("}")),this.gullet.pushTokens(t);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=n,r}parseExpression(t,n){for(var r=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(kI.endOfExpression.indexOf(i.text)!==-1||n&&i.text===n||t&&$0[i.text]&&$0[i.text].infix)break;var a=this.parseAtom(n);if(a){if(a.type==="internal")continue}else break;r.push(a)}return this.mode==="text"&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(t){for(var n=-1,r,i=0;i=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',t);var o=Ci[this.mode][n].group,l=uu.range(t),u;if(Fht.hasOwnProperty(o)){var d=o;u={type:"atom",mode:this.mode,family:d,loc:l,text:n}}else u={type:o,mode:this.mode,loc:l,text:n};s=u}else if(n.charCodeAt(0)>=128)this.settings.strict&&(vge(n.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+n[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+n[0]+'"'+(" ("+n.charCodeAt(0)+")"),t)),s={type:"textord",mode:"text",loc:uu.range(t),text:n};else return null;if(this.consume(),a)for(var f=0;f0&&(a.properties.rel=[...p]),g&&(a.properties.target=g),d){const S=TE(t.contentProperties,a)||{};a.children.push({type:"element",tagName:"span",properties:Ed(S),children:Ed(d)})}}}})}}function TE(e,t){return typeof e=="function"?e(t):e}function o0t(e,t){return h1e(e,{})||{type:"root",children:[]}}function h1e(e,t){const n=l0t(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function l0t(e,t){switch(e.nodeType){case 1:return f0t(e,t);case 3:return c0t(e);case 8:return d0t(e);case 9:return Kte(e,t);case 10:return u0t();case 11:return Kte(e,t);default:return}}function Kte(e,t){return{type:"root",children:p1e(e,t)}}function u0t(){return{type:"doctype"}}function c0t(e){return{type:"text",value:e.nodeValue||""}}function d0t(e){return{type:"comment",value:e.nodeValue||""}}function f0t(e,t){const n=e.namespaceURI,r=n===wf.svg?D0e:N0e,i=n===wf.html?e.tagName.toLowerCase():e.tagName,a=n===wf.html&&i==="template"?e.content:e,s=e.getAttributeNames(),o={};let l=-1;for(;++lu&&(u=d):d&&(u!==void 0&&u>-1&&l.push(` +`.repeat(u)||" "),u=-1,l.push(d))}return l.join("")}function g1e(e,t,n){return e.type==="element"?y0t(e,t,n):e.type==="text"?n.whitespace==="normal"?b1e(e,n):v0t(e):[]}function y0t(e,t,n){const r=y1e(e,n),i=e.children||[];let a=-1,s=[];if(g0t(e))return s;let o,l;for(gM(e)||rne(e)&&Jte(t,e,rne)?l=` +`:m0t(e)?(o=2,l=2):m1e(e)&&(o=1,l=1);++a"),a={type:"comment",value:r<0?n:n.slice(0,r)};return mx(a,t),a}}function C0t(e,t){if(e.schema.allowDoctypes){const n={type:"doctype"};return mx(n,t),n}}function R0t(e,t){const n=typeof t.tagName=="string"?t.tagName:"";e.stack.push(n);const r=O1e(e,t.children),i=D0t(e,t.properties);e.stack.pop();let a=!1;if(n&&n!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(a=!0,e.schema.ancestors&&d0.call(e.schema.ancestors,n))){const o=e.schema.ancestors[n];let l=-1;for(a=!1;++l1){let i=!1,a=0;for(;++a-1&&a>l||s>-1&&a>s||o>-1&&a>o)return!0;let u=-1;for(;++u4&&t.slice(0,4).toLowerCase()==="data")return n}function M0t(e){return function(t){return A0t(t,e)}}function $0t(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:a},exit:{mathFlow:i,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:o,mathText:s,mathTextData:o}};function e(l){const u={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[u]}},l)}function t(){this.buffer()}function n(){const l=this.resume(),u=this.stack[this.stack.length-1];u.type,u.meta=l}function r(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function i(l){const u=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),d=this.stack[this.stack.length-1];d.type,this.exit(l),d.value=u;const f=d.data.hChildren[0];f.type,f.tagName,f.children.push({type:"text",value:u}),this.data.mathFlowInside=void 0}function a(l){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},l),this.buffer()}function s(l){const u=this.resume(),d=this.stack[this.stack.length-1];d.type,this.exit(l),d.value=u,d.data.hChildren.push({type:"text",value:u})}function o(l){this.config.enter.data.call(this,l),this.config.exit.data.call(this,l)}}function F0t(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),r.peek=i,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:` +`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:n,inlineMath:r}};function n(a,s,o,l){const u=a.value||"",d=o.createTracker(l),f="$".repeat(Math.max(Gme(u,"$")+1,2)),p=o.enter("mathFlow");let g=d.move(f);if(a.meta){const O=o.enter("mathFlowMeta");g+=d.move(o.safe(a.meta,{after:` `,before:g,encode:["$"],...d.current()})),O()}return g+=d.move(` `),u&&(g+=d.move(u+` -`)),g+=d.move(f),p(),g}function r(a,s,o){let l=a.value||"",u=1;for(t||u++;new RegExp("(^|[^$])"+"\\$".repeat(u)+"([^$]|$)").test(l);)u++;const d="$".repeat(u);/[^ \r\n]/.test(l)&&(/^[ \r\n]/.test(l)&&/[ \r\n]$/.test(l)||/^\$|\$$/.test(l))&&(l=" "+l+" ");let f=-1;for(;++f{if(!t.doc)return;const i=()=>{var o,l;const s=((l=(o=t.doc)==null?void 0:o.getRoot().content)==null?void 0:l.toString())||"";r(mM(s))};i();const a=t.doc.subscribe("$.content",()=>{i()});return()=>{a(),r("")}},[t.doc]),t!=null&&t.doc?I.jsx(Age,{source:mM(n),wrapperElement:{"data-color-mode":e,style:{whiteSpace:"wrap !important",WebkitUserModify:"read-only"}},remarkPlugins:[lmt],rehypePlugins:[[X0t,{...F3,attributes:{...F3.attributes,code:[["className",/^language-./,"math-inline","math-display"]]}}],z0t,[S0t,{target:"_blank"}]],components:{code:({children:i=[],className:a,...s})=>{if(typeof i=="string"&&/^\$\$(.*)\$\$/.test(i)){const l=$3.renderToString(i.replace(/^\$\$(.*)\$\$/,"$1"),{throwOnError:!1});return I.jsx("code",{dangerouslySetInnerHTML:{__html:l},style:{background:"transparent"}})}const o=s.node&&s.node.children?KQ(s.node.children):i;if(typeof o=="string"&&typeof a=="string"&&/^language-katex/.test(a.toLocaleLowerCase())){const l=$3.renderToString(o,{throwOnError:!1});return I.jsx("code",{style:{fontSize:"150%"},dangerouslySetInnerHTML:{__html:l}})}return I.jsx("code",{className:String(a),children:i})}}}):I.jsx(zn,{direction:"row",justifyContent:"center",children:I.jsx(kd,{sx:{mt:2}})})}function N1e(){const e=Pr(xp),t=JZe();return!e.doc||!e.client?I.jsx(hO,{open:!0,children:I.jsx(kd,{color:"inherit"})}):I.jsxs(I.Fragment,{children:[I.jsx("div",{className:"wmde-markdown-var"}),e.mode==="both"&&I.jsx(VZe,{axis:"x",initial:t/2,min:400,children:({position:n,separatorProps:r})=>I.jsx(WL.ScrollSync,{children:I.jsxs("div",{id:"wrapper",style:{display:"flex",height:"100%",overflow:"hidden"},children:[I.jsx("div",{id:"left-block",style:{width:n},children:I.jsx(kte,{})}),I.jsx(Hs,{id:"splitter",...r,sx:{height:"100%",width:8,borderRadius:0,cursor:"col-resize",zIndex:0}}),I.jsx(WL.ScrollSyncPane,{children:I.jsx("div",{className:"right-block",style:{width:`calc(100% - ${n}px)`,overflow:"auto"},children:I.jsx(ta,{sx:{p:4},height:"100%",children:I.jsx(gne,{})})})})]})})}),e.mode==="read"&&I.jsx(ta,{sx:{p:4,overflow:"auto"},height:"100%",children:I.jsx(gne,{})}),e.mode==="edit"&&I.jsx(kte,{})]})}var D1e={exports:{}},umt={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]},P1e={exports:{}},cmt=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")},dmt=cmt,fmt=Array.prototype.concat,hmt=Array.prototype.slice,bne=P1e.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+")"};wu.to.keyword=function(e){return M1e[e.slice(0,3)]};function sm(e,t,n){return Math.min(Math.max(t,e),n)}function y4(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var mmt=D1e.exports,gmt={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 Kw=gmt,$1e={};for(const e of Object.keys(Kw))$1e[Kw[e]]=e;const On={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 F1e=On;for(const e of Object.keys(On)){if(!("channels"in On[e]))throw new Error("missing channels property: "+e);if(!("labels"in On[e]))throw new Error("missing channel labels property: "+e);if(On[e].labels.length!==On[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=On[e];delete On[e].channels,delete On[e].labels,Object.defineProperty(On[e],"channels",{value:t}),Object.defineProperty(On[e],"labels",{value:n})}On.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),s=a-i;let o,l;a===i?o=0:t===a?o=(n-r)/s:n===a?o=2+(r-t)/s:r===a&&(o=4+(t-n)/s),o=Math.min(o*60,360),o<0&&(o+=360);const u=(i+a)/2;return a===i?l=0:u<=.5?l=s/(a+i):l=s/(2-a-i),[o,l*100,u*100]};On.rgb.hsv=function(e){let t,n,r,i,a;const s=e[0]/255,o=e[1]/255,l=e[2]/255,u=Math.max(s,o,l),d=u-Math.min(s,o,l),f=function(p){return(u-p)/6/d+1/2};return d===0?(i=0,a=0):(a=d/u,t=f(s),n=f(o),r=f(l),s===u?i=r-n:o===u?i=1/3+t-r:l===u&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[i*360,a*100,u*100]};On.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const i=On.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[i,a*100,r*100]};On.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(1-t,1-n,1-r),a=(1-t-i)/(1-i)||0,s=(1-n-i)/(1-i)||0,o=(1-r-i)/(1-i)||0;return[a*100,s*100,o*100,i*100]};function bmt(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}On.rgb.keyword=function(e){const t=$1e[e];if(t)return t;let n=1/0,r;for(const i of Object.keys(Kw)){const a=Kw[i],s=bmt(e,a);s.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const i=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,s=t*.0193+n*.1192+r*.9505;return[i*100,a*100,s*100]};On.rgb.lab=function(e){const t=On.rgb.xyz(e);let n=t[0],r=t[1],i=t[2];n/=95.047,r/=100,i/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;const a=116*r-16,s=500*(n-r),o=200*(r-i);return[a,s,o]};On.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let i,a,s;if(n===0)return s=r*255,[s,s,s];r<.5?i=r*(1+n):i=r+n-r*n;const o=2*r-i,l=[0,0,0];for(let u=0;u<3;u++)a=t+1/3*-(u-1),a<0&&a++,a>1&&a--,6*a<1?s=o+(i-o)*6*a:2*a<1?s=i:3*a<2?s=o+(i-o)*(2/3-a)*6:s=o,l[u]=s*255;return l};On.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,i=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,i*=a<=1?a:2-a;const s=(r+n)/2,o=r===0?2*i/(a+i):2*n/(r+n);return[t,o*100,s*100]};On.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const i=Math.floor(t)%6,a=t-Math.floor(t),s=255*r*(1-n),o=255*r*(1-n*a),l=255*r*(1-n*(1-a));switch(r*=255,i){case 0:return[r,l,s];case 1:return[o,r,s];case 2:return[s,r,l];case 3:return[s,o,r];case 4:return[l,s,r];case 5:return[r,s,o]}};On.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01);let a,s;s=(2-n)*r;const o=(2-n)*i;return a=n*i,a/=o<=1?o:2-o,a=a||0,s/=2,[t,a*100,s*100]};On.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const i=n+r;let a;i>1&&(n/=i,r/=i);const s=Math.floor(6*t),o=1-r;a=6*t-s,s&1&&(a=1-a);const l=n+a*(o-n);let u,d,f;switch(s){default:case 6:case 0:u=o,d=l,f=n;break;case 1:u=l,d=o,f=n;break;case 2:u=n,d=o,f=l;break;case 3:u=n,d=l,f=o;break;case 4:u=l,d=n,f=o;break;case 5:u=o,d=n,f=l;break}return[u*255,d*255,f*255]};On.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100,a=1-Math.min(1,t*(1-i)+i),s=1-Math.min(1,n*(1-i)+i),o=1-Math.min(1,r*(1-i)+i);return[a*255,s*255,o*255]};On.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let i,a,s;return i=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,s=t*.0557+n*-.204+r*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),[i*255,a*255,s*255]};On.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const i=116*n-16,a=500*(t-n),s=200*(n-r);return[i,a,s]};On.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let i,a,s;a=(t+16)/116,i=n/500+a,s=a-r/200;const o=a**3,l=i**3,u=s**3;return a=o>.008856?o:(a-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,s=u>.008856?u:(s-16/116)/7.787,i*=95.047,a*=100,s*=108.883,[i,a,s]};On.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let i;i=Math.atan2(r,n)*360/2/Math.PI,i<0&&(i+=360);const s=Math.sqrt(n*n+r*r);return[t,s,i]};On.lch.lab=function(e){const t=e[0],n=e[1],i=e[2]/360*2*Math.PI,a=n*Math.cos(i),s=n*Math.sin(i);return[t,a,s]};On.rgb.ansi16=function(e,t=null){const[n,r,i]=e;let a=t===null?On.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let s=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(s+=60),s};On.hsv.ansi16=function(e){return On.rgb.ansi16(On.hsv.rgb(e),e[2])};On.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)};On.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,i=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,i,a]};On.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[n,r,i]};On.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};On.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(o=>o+o).join(""));const r=parseInt(n,16),i=r>>16&255,a=r>>8&255,s=r&255;return[i,a,s]};On.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),s=i-a;let o,l;return s<1?o=a/(1-s):o=0,s<=0?l=0:i===t?l=(n-r)/s%6:i===n?l=2+(r-t)/s:l=4+(t-n)/s,l/=6,l%=1,[l*360,s*100,o*100]};On.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]};On.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]};On.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const i=[0,0,0],a=t%1*6,s=a%1,o=1-s;let l=0;switch(Math.floor(a)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=o,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=o,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=o}return l=(1-n)*r,[(n*i[0]+l)*255,(n*i[1]+l)*255,(n*i[2]+l)*255]};On.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]};On.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]};On.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]};On.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,i=r-t;let a=0;return i<1&&(a=(r-i)/(1-i)),[e[0],i*100,a*100]};On.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};On.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};On.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};On.gray.hsl=function(e){return[0,0,e[0]]};On.gray.hsv=On.gray.hsl;On.gray.hwb=function(e){return[0,100,e[0]]};On.gray.cmyk=function(e){return[0,0,0,e[0]]};On.gray.lab=function(e){return[e[0],0,0]};On.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};On.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const B3=F1e;function ymt(){const e={},t=Object.keys(B3);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function kmt(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const i=e(n);if(typeof i=="object")for(let a=i.length,s=0;s{iy[e]={},Object.defineProperty(iy[e],"channels",{value:kM[e].channels}),Object.defineProperty(iy[e],"labels",{value:kM[e].labels});const t=wmt(e);Object.keys(t).forEach(r=>{const i=t[r];iy[e][r]=kmt(i),iy[e][r].raw=xmt(i)})});var Amt=iy;const ay=mmt,vu=Amt,B1e=["keyword","gray","hex"],AM={};for(const e of Object.keys(vu))AM[[...vu[e].labels].sort().join("")]=e;const U3={};function vs(e,t){if(!(this instanceof vs))return new vs(e,t);if(t&&t in B1e&&(t=null),t&&!(t in vu))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 vs)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const i=ay.get(e);if(i===null)throw new Error("Unable to parse color from string: "+e);this.model=i.model,r=vu[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=vu[this.model].channels;const i=Array.prototype.slice.call(e,0,r);this.color=_M(i,r),this.valpha=typeof e[r]=="number"?e[r]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;const i=Object.keys(e);"alpha"in e&&(i.splice(i.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);const a=i.sort().join("");if(!(a in AM))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=AM[a];const{labels:s}=vu[this.model],o=[];for(n=0;n(e%360+360)%360),saturationl:ya("hsl",1,Ka(100)),lightness:ya("hsl",2,Ka(100)),saturationv:ya("hsv",1,Ka(100)),value:ya("hsv",2,Ka(100)),chroma:ya("hcg",1,Ka(100)),gray:ya("hcg",2,Ka(100)),white:ya("hwb",1,Ka(100)),wblack:ya("hwb",2,Ka(100)),cyan:ya("cmyk",0,Ka(100)),magenta:ya("cmyk",1,Ka(100)),yellow:ya("cmyk",2,Ka(100)),black:ya("cmyk",3,Ka(100)),x:ya("xyz",0,Ka(95.047)),y:ya("xyz",1,Ka(100)),z:ya("xyz",2,Ka(108.833)),l:ya("lab",0,Ka(100)),a:ya("lab",1),b:ya("lab",2),keyword(e){return e!==void 0?new vs(e):vu[this.model].keyword(this.color)},hex(e){return e!==void 0?new vs(e):ay.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new vs(e);const t=this.rgb().round().color;let n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),ay.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 vs.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),r=this.rgb(),i=t===void 0?.5:t,a=2*i-1,s=n.alpha()-r.alpha(),o=((a*s===-1?a:(a+s)/(1+a*s))+1)/2,l=1-o;return vs.rgb(o*n.red()+l*r.red(),o*n.green()+l*r.green(),o*n.blue()+l*r.blue(),n.alpha()*i+r.alpha()*(1-i))}};for(const e of Object.keys(vu)){if(B1e.includes(e))continue;const{channels:t}=vu[e];vs.prototype[e]=function(...n){return this.model===e?new vs(this):n.length>0?new vs(n,e):new vs([...Rmt(vu[this.model][e].raw(this.color)),this.valpha],e)},vs[e]=function(...n){let r=n[0];return typeof r=="number"&&(r=_M(n,t)),new vs(r,e)}}function _mt(e,t){return Number(e.toFixed(t))}function Cmt(e){return function(t){return _mt(t,e)}}function ya(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(U3[r]||(U3[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 Ka(e){return function(t){return Math.max(0,Math.min(e,t))}}function Rmt(e){return Array.isArray(e)?e:[e]}function _M(e,t){for(let n=0;nW.length;){var ee=a(D);n!==null&&(D.seed=n),W.push(ee)}return D.count=V,W}return L=s(D),j=o(L,D),B=l(L,j,D),u([L,j,B],D)};function s(D){if(i.length>0){var L=N(D.hue),j=O(L),B=(L[1]-L[0])/i.length,V=parseInt((j-L[0])/B);i[V]===!0?V=(V+2)%i.length:i[V]=!0;var W=(L[0]+V*B)%359,re=(L[0]+(V+1)*B)%359;return L=[W,re],j=O(L),j<0&&(j=360+j),j}else{var L=f(D.hue);return j=O(L),j<0&&(j=360+j),j}}function o(D,L){if(L.hue==="monochrome")return 0;if(L.luminosity==="random")return O([0,100]);var j=p(D),B=j[0],V=j[1];switch(L.luminosity){case"bright":B=55;break;case"dark":B=V-10;break;case"light":V=55;break}return O([B,V])}function l(D,L,j){var B=d(D,L),V=100;switch(j.luminosity){case"dark":V=B+20;break;case"light":B=(V+B)/2;break;case"random":B=0,V=100;break}return O([B,V])}function u(D,L){switch(L.format){case"hsvArray":return D;case"hslArray":return _(D);case"hsl":var j=_(D);return"hsl("+j[0]+", "+j[1]+"%, "+j[2]+"%)";case"hsla":var B=_(D),re=L.alpha||Math.random();return"hsla("+B[0]+", "+B[1]+"%, "+B[2]+"%, "+re+")";case"rgbArray":return x(D);case"rgb":var V=x(D);return"rgb("+V.join(", ")+")";case"rgba":var W=x(D),re=L.alpha||Math.random();return"rgba("+W.join(", ")+", "+re+")";default:return S(D)}}function d(D,L){for(var j=g(D).lowerBounds,B=0;B=V&&L<=re){var q=(ee-W)/(re-V),te=W-q*V;return q*L+te}}return 0}function f(D){if(typeof parseInt(D)=="number"){var L=parseInt(D);if(L<360&&L>0)return[L,L]}if(typeof D=="string"){if(r[D]){var j=r[D];if(j.hueRange)return j.hueRange}else if(D.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)){var B=k(D)[0];return[B,B]}}return[0,360]}function p(D){return g(D).saturationRange}function g(D){D>=334&&D<=360&&(D-=360);for(var L in r){var j=r[L];if(j.hueRange&&D>=j.hueRange[0]&&D<=j.hueRange[1])return r[L]}return"Color not found"}function O(D){if(n===null){var L=.618033988749895,j=Math.random();return j+=L,j%=1,Math.floor(D[0]+j*(D[1]+1-D[0]))}else{var B=D[1]||1,V=D[0]||0;n=(n*9301+49297)%233280;var W=n/233280;return Math.floor(V+W*(B-V))}}function S(D){var L=x(D);function j(V){var W=V.toString(16);return W.length==1?"0"+W:W}var B="#"+j(L[0])+j(L[1])+j(L[2]);return B}function T(D,L,j){var B=j[0][0],V=j[j.length-1][0],W=j[j.length-1][1],re=j[0][1];r[D]={hueRange:L,lowerBounds:j,saturationRange:[B,V],brightnessRange:[W,re]}}function w(){T("monochrome",null,[[0,0],[100,0]]),T("red",[-26,18],[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]),T("orange",[18,46],[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]),T("yellow",[46,62],[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]),T("green",[62,178],[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]),T("blue",[178,257],[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]),T("purple",[257,282],[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]),T("pink",[282,334],[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]])}function x(D){var L=D[0];L===0&&(L=1),L===360&&(L=359),L=L/360;var j=D[1]/100,B=D[2]/100,V=Math.floor(L*6),W=L*6-V,re=B*(1-j),ee=B*(1-W*j),q=B*(1-(1-W)*j),te=256,K=256,G=256;switch(V){case 0:te=B,K=q,G=re;break;case 1:te=ee,K=B,G=re;break;case 2:te=re,K=B,G=q;break;case 3:te=re,K=ee,G=B;break;case 4:te=q,K=re,G=B;break;case 5:te=B,K=re,G=ee;break}var ie=[Math.floor(te*255),Math.floor(K*255),Math.floor(G*255)];return ie}function k(D){D=D.replace(/^#/,""),D=D.length===3?D.replace(/(.)/g,"$1$1"):D;var L=parseInt(D.substr(0,2),16)/255,j=parseInt(D.substr(2,2),16)/255,B=parseInt(D.substr(4,2),16)/255,V=Math.max(L,j,B),W=V-Math.min(L,j,B),re=V?W/V:0;switch(V){case L:return[60*((j-B)/W%6)||0,re,V];case j:return[60*((B-L)/W+2)||0,re,V];case B:return[60*((L-j)/W+4)||0,re,V]}}function _(D){var L=D[0],j=D[1]/100,B=D[2]/100,V=(2-j)*B;return[L,Math.round(j*B/(V<1?V:2-V)*1e4)/100,V/2*100]}function R(D){for(var L=0,j=0;j!==D.length&&!(L>=Number.MAX_SAFE_INTEGER);j++)L+=D.charCodeAt(j);return L}function N(D){if(isNaN(D)){if(typeof D=="string"){if(r[D]){var j=r[D];if(j.hueRange)return j.hueRange}else if(D.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)){var B=k(D)[0];return g(B).hueRange}}}else{var L=parseInt(D);if(L<360&&L>0)return g(D).hueRange}return[0,360]}return a})})(CM,CM.exports);var Dmt=CM.exports;const Pmt=Nu(Dmt),Lmt="https://api.yorkie.dev",Mmt="cbovg64qfu96agb5i0fg";S3.setLogLevel(4);const U1e=(e,t)=>{const[n]=Z$(),r=Pr(YT),[i,a]=M.useState(null),[s,o]=M.useState(null),l=M.useCallback(()=>{const p=n.get("token");return p?`share:${p}`:`default:${r.accessToken}`},[r.accessToken,n]),u=M.useCallback(async p=>{const g=new S3.Client(Lmt,{apiKey:Mmt,token:p});return await g.activate(),g},[]),d=M.useCallback((p,g,O)=>{const S=new S3.Document(g,{enableDevtools:!0});return p.attach(S,{initialPresence:{name:O,color:Nmt(Pmt()).fade(.15).toString(),selection:null,cursor:null}})},[]),f=M.useCallback(async()=>{if(!(!i||!s))try{await i.detach(s),await i.deactivate()}catch(p){console.error("Error during Yorkie cleanup:",p)}},[i,s]);return M.useEffect(()=>{let p=!0;return!e||!t||s||i?void 0:((async()=>{try{const O=l(),S=await u(O),T=await d(S,e,t);if(!p){await S.detach(T),await S.deactivate();return}a(S),o(T)}catch(O){console.error("Error initializing Yorkie: ",O)}})(),()=>{p=!1})},[t,e,s,i,l,u,d]),M.useEffect(()=>()=>{f()},[f]),{client:i,doc:s}};function $mt(){var u;const e=Mu(),t=Cm(),n=Pr(_T),{data:r,isLoading:i}=UB(t.workspaceSlug),{data:a,isLoading:s}=Eje(r==null?void 0:r.id,t.documentId),{doc:o,client:l}=U1e(a==null?void 0:a.yorkieDocumentId,(u=n.data)==null?void 0:u.nickname);return M.useEffect(()=>{if(!(!o||!l))return e(kC(o)),e(AC(l)),()=>{e(kC(null)),e(AC(null))}},[e,l,o]),s||i?I.jsx(hO,{open:!0,children:I.jsx(kd,{color:"inherit"})}):I.jsx(ta,{height:"calc(100% - 64px)",children:I.jsx(N1e,{})})}const Fmt=e=>["documents","share",e],Bmt=e=>{const t=Mu(),n=OO({queryKey:Fmt(e||""),enabled:!!e,queryFn:async()=>(await rr.get("/documents/share",{params:{token:e}})).data,meta:{errorMessage:"This is a non-existent or expired document."}});return M.useEffect(()=>(n.data&&t(_C(n.data)),()=>{t(_C(null))}),[t,n.data]),n};function Umt(){const e=Mu(),t=_m(),[n]=Z$(),r=M.useMemo(()=>n.get("token"),[n]),{data:i}=Bmt(r),{doc:a,client:s}=U1e(i==null?void 0:i.yorkieDocumentId,"Anonymous");return M.useEffect(()=>{i!=null&&i.role&&(e(o9e(i.role)),i.role==="READ"&&e(h8("read")))},[e,i==null?void 0:i.role]),M.useEffect(()=>{if(!(!a||!s))return e(kC(a)),e(AC(s)),()=>{e(kC(null)),e(AC(null))}},[e,s,a]),r?I.jsx(ta,{height:"calc(100% - 64px)",children:I.jsx(N1e,{})}):I.jsx(Y$,{to:"/",state:{from:t},replace:!0})}function zmt(){const e=Cm(),t=$c(),{mutateAsync:n}=nZe();return M.useEffect(()=>{e.invitationToken&&n({invitationToken:e.invitationToken}).then(r=>{t(`/${r.slug}`)})},[n,t,e.invitationToken]),I.jsx(hO,{open:!0,children:I.jsx(kd,{color:"inherit"})})}const jmt=e=>["workspaces",e,"users"],Hmt=e=>mF({queryKey:jmt(e||""),queryFn:async({pageParam:t})=>(await rr.get(`/workspaces/${e}/users`,{params:{cursor:t}})).data,enabled:!!e,initialPageParam:void 0,getPreviousPageParam:t=>t.cursor??void 0,getNextPageParam:t=>t.cursor??void 0});function Qmt(e){var d;const{open:t,onClose:n}=e,r=Pr(pR),{mutateAsync:i}=tZe(((d=r.data)==null?void 0:d.id)||""),{enqueueSnackbar:a}=CT(),[s,o]=M.useState(null),l=async f=>{let p;if(f.expiredString===zy[0])p=null;else{const[O,S]=f.expiredString.split(" ");p=nn().add(Number(O),S).toDate()}const{invitationToken:g}=await i({expiredAt:p});o(`${window.location.origin}/join/${g}`)},u=async()=>{s&&(await M1.write(s),a("URL Copied!",{variant:"success"}))};return I.jsx(pO,{open:t,disableAutoFocus:!0,onClose:n,children:I.jsxs(Hs,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:538},children:[I.jsx(So,{sx:{position:"absolute",top:28,right:28},onClick:n,children:I.jsx(CR,{})}),I.jsxs(zn,{gap:4,children:[I.jsxs(zn,{children:[I.jsx(Tr,{variant:"h5",fontWeight:"bold",children:"Add Members"}),I.jsx(Tr,{children:"Generate and share the link."})]}),I.jsx(zn,{gap:1,children:I.jsx(Mc,{children:I.jsx(SO,{defaultValues:{expiredString:zy[0]},onSuccess:l,children:I.jsxs(zn,{gap:2,children:[I.jsx(R8,{label:"Expired Date",name:"expiredString",options:zy.map(f=>({id:f,label:f})),size:"small",sx:{width:1}}),I.jsx(go,{type:"submit",variant:"contained",children:"Generate"})]})})})}),I.jsxs(zn,{gap:1,children:[I.jsx(Tr,{variant:"h6",fontWeight:"bold",children:"Invite Link"}),I.jsx(ta,{height:40,children:s?I.jsxs(zn,{direction:"row",alignItems:"center",gap:2,children:[I.jsx(Tr,{variant:"body1",children:s}),I.jsx(B0,{title:"Copy URL",children:I.jsx(So,{onClick:u,children:I.jsx(_R,{})})})]}):I.jsx(Tr,{mx:"auto",children:"No link has been generated."})})]})]})]})})}function Wmt(){const e=Cm(),{data:t}=UB(e.workspaceSlug),{data:n,fetchNextPage:r,hasNextPage:i}=Hmt(t==null?void 0:t.id),[a,s]=M.useState(!1),o=M.useMemo(()=>(n==null?void 0:n.pages.reduce((u,d)=>u.concat(d.workspaceUsers),[]))??[],[n==null?void 0:n.pages]),l=()=>{s(u=>!u)};return I.jsxs(D$,{maxWidth:"lg",children:[I.jsxs(zn,{gap:4,children:[I.jsxs(zn,{direction:"row",justifyContent:"space-between",alignItems:"center",px:2,children:[I.jsxs(Tr,{variant:"h5",fontWeight:"bold",children:[t==null?void 0:t.title," ",I.jsx(Tr,{component:"span",variant:"inherit",color:"primary",children:n==null?void 0:n.pages[0].workspaceUsers.length})]}),I.jsx(go,{variant:"contained",startIcon:I.jsx(jR,{}),onClick:l,children:"Add Members"})]}),I.jsxs(n7e,{component:ta,children:[I.jsx(Iv,{}),I.jsx(zw,{pageStart:0,loadMore:()=>r(),hasMore:i,loader:I.jsx(ta,{className:"loader",children:I.jsx(kd,{size:"sm"})},0),useWindow:!1,style:{width:"100%"},children:I.jsxs(UDe,{children:[I.jsx(l7e,{children:I.jsxs(LY,{children:[I.jsx(Fb,{children:"Name"}),I.jsx(Fb,{children:"Role"}),I.jsx(Fb,{})]})}),I.jsx(VDe,{style:{maxHeight:"100%",overflow:"auto"},children:o.map(u=>I.jsxs(LY,{sx:{width:"100%"},children:[I.jsx(Fb,{component:"th",scope:"row",children:u.nickname}),I.jsx(Fb,{children:"-"}),I.jsx(Fb,{children:"-"})]},u.id))})]})})]})]}),I.jsx(Qmt,{open:a,onClose:l})]})}const Vmt=[{path:"",accessType:2,element:I.jsx(jYe,{}),children:[{path:"",element:I.jsx(DZe,{})}]},{path:":workspaceSlug",accessType:1,element:I.jsx(RZe,{}),children:[{path:"",element:I.jsx(zZe,{})},{path:"member",element:I.jsx(Wmt,{})}]},{path:":workspaceSlug",element:I.jsx(zYe,{}),children:[{path:":documentId",accessType:1,element:I.jsx($mt,{})},{path:":documentId/share",accessType:0,element:I.jsx(Umt,{})}]},{path:"auth/callback",accessType:2,element:I.jsx(PZe,{})},{path:"join/:invitationToken",accessType:1,element:I.jsx(zmt,{})},{path:"/404",accessType:0,element:I.jsx(LZe,{})},{path:"settings/profile",accessType:1,element:I.jsx(XYe,{}),children:[{path:"",element:I.jsx($Ze,{})}]}],qmt=e=>{const t=n=>(n.accessType===1?n.element=I.jsx(WMe,{children:n.element}):n.accessType===2&&(n.element=I.jsx(QMe,{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=I.jsx(zMe,{}),n))},Gmt=qmt(Vmt);function Ymt(e){const[t,n]=M.useState(""),[r,i]=M.useState(""),{data:a}=HB(r),{mutateAsync:s}=zhe(),o=M.useMemo(()=>a!=null&&a.conflict?"Already Exists":null,[a==null?void 0:a.conflict]);HR(()=>{i(t)},500,[t]);const l=d=>{n(d.target.value)},u=async d=>{await s(d)};return I.jsx(pO,{disableAutoFocus:!0,...e,children:I.jsx(Hs,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:I.jsxs(zn,{gap:4,children:[I.jsx(Tr,{variant:"h5",children:"Create Your Nickname"}),I.jsx(Mc,{children:I.jsx(SO,{defaultValues:{nickname:""},onSuccess:u,children:I.jsxs(zn,{gap:4,alignItems:"flex-end",children:[I.jsx(NT,{variant:"standard",name:"nickname",label:"Enter your nickname",required:!0,fullWidth:!0,inputProps:{maxLength:255},onChange:l,error:!!o,helperText:o}),I.jsx(go,{type:"submit",variant:"contained",size:"large",disabled:!!o,children:"OK"})]})})})]})})})}function Zmt(e){const{children:t}=e,{data:n,isSuccess:r,isLoading:i}=MZe(),a=M.useMemo(()=>r&&!n.nickname,[r,n==null?void 0:n.nickname]);return I.jsx(sF.Provider,{value:{isLoggedIn:r,isLoading:i},children:a?I.jsx(Ymt,{open:!0}):t})}function Xmt(){const{enqueueSnackbar:e}=CT();return M.useCallback(n=>{var r;e(((r=n.response)==null?void 0:r.data.message)||n.message||"Something went wrong...",{variant:"error"})},[e])}const z1e=Object.prototype.toString;function j1e(e){switch(z1e.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Op(e,Error)}}function WO(e,t){return z1e.call(e)===`[object ${t}]`}function UW(e){return WO(e,"ErrorEvent")}function yne(e){return WO(e,"DOMError")}function Kmt(e){return WO(e,"DOMException")}function Ff(e){return WO(e,"String")}function zW(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function jW(e){return e===null||zW(e)||typeof e!="object"&&typeof e!="function"}function Zv(e){return WO(e,"Object")}function CI(e){return typeof Event<"u"&&Op(e,Event)}function Jmt(e){return typeof Element<"u"&&Op(e,Element)}function egt(e){return WO(e,"RegExp")}function RI(e){return!!(e&&e.then&&typeof e.then=="function")}function tgt(e){return Zv(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function H1e(e){return typeof e=="number"&&e!==e}function Op(e,t){try{return e instanceof t}catch{return!1}}function Q1e(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function tv(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function vne(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;rngt(e,r,n))}function rgt(e,t,n=250,r,i,a,s){if(!a.exception||!a.exception.values||!s||!Op(s.originalException,Error))return;const o=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;o&&(a.exception.values=igt(RM(e,t,i,s.originalException,r,a.exception.values,o,0),n))}function RM(e,t,n,r,i,a,s,o){if(a.length>=n+1)return a;let l=[...a];if(Op(r[i],Error)){One(s,o);const u=e(t,r[i]),d=l.length;Sne(u,i,d,o),l=RM(e,t,n,r[i],i,[u,...l],u,d)}return Array.isArray(r.errors)&&r.errors.forEach((u,d)=>{if(Op(u,Error)){One(s,o);const f=e(t,u),p=l.length;Sne(f,`errors[${d}]`,p,o),l=RM(e,t,n,u,i,[f,...l],f,p)}}),l}function One(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function Sne(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function igt(e,t){return e.map(n=>(n.value&&(n.value=tv(n.value,t)),n))}function v4(e){return e&&e.Math==Math?e:void 0}const Gr=typeof globalThis=="object"&&v4(globalThis)||typeof window=="object"&&v4(window)||typeof self=="object"&&v4(self)||typeof global=="object"&&v4(global)||function(){return this}()||{};function HW(){return Gr}function W1e(e,t,n){const r=n||Gr,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}const nv=HW(),agt=80;function Xv(e,t={}){if(!e)return"";try{let n=e;const r=5,i=[];let a=0,s=0;const o=" > ",l=o.length;let u;const d=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||agt;for(;n&&a++1&&s+i.length*l+u.length>=f));)i.push(u),s+=u.length,n=n.parentNode;return i.reverse().join(o)}catch{return""}}function sgt(e,t){const n=e,r=[];let i,a,s,o,l;if(!n||!n.tagName)return"";if(nv.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const u=t&&t.length?t.filter(f=>n.getAttribute(f)).map(f=>[f,n.getAttribute(f)]):null;if(u&&u.length)u.forEach(f=>{r.push(`[${f[0]}="${f[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&Ff(i))for(a=i.split(/\s+/),l=0;l"u"||__SENTRY_DEBUG__,ugt="Sentry Logger ",IM=["debug","info","warn","error","log","assert","trace"],z3={};function II(e){if(!("console"in Gr))return e();const t=Gr.console,n={},r=Object.keys(z3);r.forEach(i=>{const a=z3[i];n[i]=t[i],t[i]=a});try{return e()}finally{r.forEach(i=>{t[i]=n[i]})}}function cgt(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return VO?IM.forEach(n=>{t[n]=(...r)=>{e&&II(()=>{Gr.console[n](`${ugt}[${n}]:`,...r)})}}):IM.forEach(n=>{t[n]=()=>{}}),t}const _t=cgt(),dgt=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function fgt(e){return e==="http"||e==="https"}function qO(e,t=!1){const{host:n,path:r,pass:i,port:a,projectId:s,protocol:o,publicKey:l}=e;return`${o}://${l}${t&&i?`:${i}`:""}@${n}${a?`:${a}`:""}/${r&&`${r}/`}${s}`}function hgt(e){const t=dgt.exec(e);if(!t){II(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,i="",a,s="",o]=t.slice(1);let l="",u=o;const d=u.split("/");if(d.length>1&&(l=d.slice(0,-1).join("/"),u=d.pop()),u){const f=u.match(/^\d+/);f&&(u=f[0])}return q1e({host:a,pass:i,path:l,projectId:u,port:s,protocol:n,publicKey:r})}function q1e(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function pgt(e){if(!VO)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(_t.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?fgt(r)?t&&isNaN(parseInt(t,10))?(_t.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(_t.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(_t.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function mgt(e){const t=typeof e=="string"?hgt(e):q1e(e);if(!(!t||!pgt(t)))return t}class Ef extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function Us(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);typeof i=="function"&&G1e(i,r),e[t]=i}function _1(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{VO&&_t.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function G1e(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,_1(e,"__sentry_original__",t)}catch{}}function QW(e){return e.__sentry_original__}function ggt(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function Y1e(e){if(j1e(e))return{message:e.message,name:e.name,stack:e.stack,...wne(e)};if(CI(e)){const t={type:e.type,target:Ene(e.target),currentTarget:Ene(e.currentTarget),...wne(e)};return typeof CustomEvent<"u"&&Op(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Ene(e){try{return Jmt(e)?Xv(e):Object.prototype.toString.call(e)}catch{return""}}function wne(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function bgt(e,t=40){const n=Object.keys(Y1e(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return tv(n[0],t);for(let r=n.length;r>0;r--){const i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:tv(i,t)}return""}function Tu(e){return NM(e,new Map)}function NM(e,t){if(ygt(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const i of Object.keys(e))typeof e[i]<"u"&&(r[i]=NM(e[i],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(i=>{r.push(NM(i,t))}),r}return e}function ygt(e){if(!Zv(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const Z1e=50,Tne=/\(error: (.*)\)/,xne=/captureMessage|captureException/;function X1e(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{const i=[],a=n.split(` -`);for(let s=r;s1024)continue;const l=Tne.test(o)?o.replace(Tne,"$1"):o;if(!l.match(/\S*Error: /)){for(const u of t){const d=u(l);if(d){i.push(d);break}}if(i.length>=Z1e)break}}return Ogt(i)}}function vgt(e){return Array.isArray(e)?X1e(...e):e}function Ogt(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),xne.test(t[t.length-1].function||"")&&(t.pop(),xne.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,Z1e).map(n=>({...n,filename:n.filename||t[t.length-1].filename,function:n.function||"?"}))}const L7="";function Sp(e){try{return!e||typeof e!="function"?L7:e.name||L7}catch{return L7}}const k_={},kne={};function V1(e,t){k_[e]=k_[e]||[],k_[e].push(t)}function q1(e,t){kne[e]||(t(),kne[e]=!0)}function Td(e,t){const n=e&&k_[e];if(n)for(const r of n)try{r(t)}catch(i){VO&&_t.error(`Error while triggering instrumentation handler. +`)),g+=d.move(f),p(),g}function r(a,s,o){let l=a.value||"",u=1;for(t||u++;new RegExp("(^|[^$])"+"\\$".repeat(u)+"([^$]|$)").test(l);)u++;const d="$".repeat(u);/[^ \r\n]/.test(l)&&(/^[ \r\n]/.test(l)&&/[ \r\n]$/.test(l)||/^\$|\$$/.test(l))&&(l=" "+l+" ");let f=-1;for(;++f{if(!t.doc)return;const i=()=>{var o,l;const s=((l=(o=t.doc)==null?void 0:o.getRoot().content)==null?void 0:l.toString())||"";r(sM(s))};i();const a=t.doc.subscribe("$.content",()=>{i()});return()=>{a(),r("")}},[t.doc]),t!=null&&t.doc?I.jsx(bge,{source:sM(n),wrapperElement:{"data-color-mode":e,style:{whiteSpace:"wrap !important",WebkitUserModify:"read-only"}},remarkPlugins:[q0t],rehypePlugins:[[M0t,{...MC,attributes:{...MC.attributes,code:[["className",/^language-./,"math-inline","math-display"]]}}],k0t,[s0t,{target:"_blank"}]],components:{code:({children:i=[],className:a,...s})=>{if(typeof i=="string"&&/^\$\$(.*)\$\$/.test(i)){const l=LC.renderToString(i.replace(/^\$\$(.*)\$\$/,"$1"),{throwOnError:!1});return I.jsx("code",{dangerouslySetInnerHTML:{__html:l},style:{background:"transparent"}})}const o=s.node&&s.node.children?zQ(s.node.children):i;if(typeof o=="string"&&typeof a=="string"&&/^language-katex/.test(a.toLocaleLowerCase())){const l=LC.renderToString(o,{throwOnError:!1});return I.jsx("code",{style:{fontSize:"150%"},dangerouslySetInnerHTML:{__html:l}})}return I.jsx("code",{className:String(a),children:i})}}}):I.jsx(Bn,{direction:"row",justifyContent:"center",children:I.jsx(kd,{sx:{mt:2}})})}function E1e(){const e=Pr(vp),t=FZe();return!e.doc||!e.client?I.jsx(rO,{open:!0,children:I.jsx(kd,{color:"inherit"})}):I.jsxs(I.Fragment,{children:[I.jsx("div",{className:"wmde-markdown-var"}),e.mode==="both"&&I.jsx(IZe,{axis:"x",initial:t/2,min:400,children:({position:n,separatorProps:r})=>I.jsx(ML.ScrollSync,{children:I.jsxs("div",{id:"wrapper",style:{display:"flex",height:"100%",overflow:"hidden"},children:[I.jsx("div",{id:"left-block",style:{width:n},children:I.jsx(bte,{})}),I.jsx(Gs,{id:"splitter",...r,sx:{height:"100%",width:8,borderRadius:0,cursor:"col-resize",zIndex:0}}),I.jsx(ML.ScrollSyncPane,{children:I.jsx("div",{className:"right-block",style:{width:`calc(100% - ${n}px)`,overflow:"auto"},children:I.jsx(ea,{sx:{p:4},height:"100%",children:I.jsx(one,{})})})})]})})}),e.mode==="read"&&I.jsx(ea,{sx:{p:4,overflow:"auto"},height:"100%",children:I.jsx(one,{})}),e.mode==="edit"&&I.jsx(bte,{})]})}var w1e={exports:{}},G0t={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]},T1e={exports:{}},Y0t=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")},Z0t=Y0t,X0t=Array.prototype.concat,K0t=Array.prototype.slice,lne=T1e.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+")"};Ou.to.keyword=function(e){return k1e[e.slice(0,3)]};function J0(e,t,n){return Math.min(Math.max(t,e),n)}function y4(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var emt=w1e.exports,tmt={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 eT=tmt,A1e={};for(const e of Object.keys(eT))A1e[eT[e]]=e;const yn={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 _1e=yn;for(const e of Object.keys(yn)){if(!("channels"in yn[e]))throw new Error("missing channels property: "+e);if(!("labels"in yn[e]))throw new Error("missing channel labels property: "+e);if(yn[e].labels.length!==yn[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=yn[e];delete yn[e].channels,delete yn[e].labels,Object.defineProperty(yn[e],"channels",{value:t}),Object.defineProperty(yn[e],"labels",{value:n})}yn.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),s=a-i;let o,l;a===i?o=0:t===a?o=(n-r)/s:n===a?o=2+(r-t)/s:r===a&&(o=4+(t-n)/s),o=Math.min(o*60,360),o<0&&(o+=360);const u=(i+a)/2;return a===i?l=0:u<=.5?l=s/(a+i):l=s/(2-a-i),[o,l*100,u*100]};yn.rgb.hsv=function(e){let t,n,r,i,a;const s=e[0]/255,o=e[1]/255,l=e[2]/255,u=Math.max(s,o,l),d=u-Math.min(s,o,l),f=function(p){return(u-p)/6/d+1/2};return d===0?(i=0,a=0):(a=d/u,t=f(s),n=f(o),r=f(l),s===u?i=r-n:o===u?i=1/3+t-r:l===u&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[i*360,a*100,u*100]};yn.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const i=yn.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[i,a*100,r*100]};yn.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(1-t,1-n,1-r),a=(1-t-i)/(1-i)||0,s=(1-n-i)/(1-i)||0,o=(1-r-i)/(1-i)||0;return[a*100,s*100,o*100,i*100]};function nmt(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}yn.rgb.keyword=function(e){const t=A1e[e];if(t)return t;let n=1/0,r;for(const i of Object.keys(eT)){const a=eT[i],s=nmt(e,a);s.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const i=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,s=t*.0193+n*.1192+r*.9505;return[i*100,a*100,s*100]};yn.rgb.lab=function(e){const t=yn.rgb.xyz(e);let n=t[0],r=t[1],i=t[2];n/=95.047,r/=100,i/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;const a=116*r-16,s=500*(n-r),o=200*(r-i);return[a,s,o]};yn.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let i,a,s;if(n===0)return s=r*255,[s,s,s];r<.5?i=r*(1+n):i=r+n-r*n;const o=2*r-i,l=[0,0,0];for(let u=0;u<3;u++)a=t+1/3*-(u-1),a<0&&a++,a>1&&a--,6*a<1?s=o+(i-o)*6*a:2*a<1?s=i:3*a<2?s=o+(i-o)*(2/3-a)*6:s=o,l[u]=s*255;return l};yn.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,i=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,i*=a<=1?a:2-a;const s=(r+n)/2,o=r===0?2*i/(a+i):2*n/(r+n);return[t,o*100,s*100]};yn.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const i=Math.floor(t)%6,a=t-Math.floor(t),s=255*r*(1-n),o=255*r*(1-n*a),l=255*r*(1-n*(1-a));switch(r*=255,i){case 0:return[r,l,s];case 1:return[o,r,s];case 2:return[s,r,l];case 3:return[s,o,r];case 4:return[l,s,r];case 5:return[r,s,o]}};yn.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01);let a,s;s=(2-n)*r;const o=(2-n)*i;return a=n*i,a/=o<=1?o:2-o,a=a||0,s/=2,[t,a*100,s*100]};yn.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const i=n+r;let a;i>1&&(n/=i,r/=i);const s=Math.floor(6*t),o=1-r;a=6*t-s,s&1&&(a=1-a);const l=n+a*(o-n);let u,d,f;switch(s){default:case 6:case 0:u=o,d=l,f=n;break;case 1:u=l,d=o,f=n;break;case 2:u=n,d=o,f=l;break;case 3:u=n,d=l,f=o;break;case 4:u=l,d=n,f=o;break;case 5:u=o,d=n,f=l;break}return[u*255,d*255,f*255]};yn.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100,a=1-Math.min(1,t*(1-i)+i),s=1-Math.min(1,n*(1-i)+i),o=1-Math.min(1,r*(1-i)+i);return[a*255,s*255,o*255]};yn.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let i,a,s;return i=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,s=t*.0557+n*-.204+r*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),[i*255,a*255,s*255]};yn.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const i=116*n-16,a=500*(t-n),s=200*(n-r);return[i,a,s]};yn.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let i,a,s;a=(t+16)/116,i=n/500+a,s=a-r/200;const o=a**3,l=i**3,u=s**3;return a=o>.008856?o:(a-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,s=u>.008856?u:(s-16/116)/7.787,i*=95.047,a*=100,s*=108.883,[i,a,s]};yn.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let i;i=Math.atan2(r,n)*360/2/Math.PI,i<0&&(i+=360);const s=Math.sqrt(n*n+r*r);return[t,s,i]};yn.lch.lab=function(e){const t=e[0],n=e[1],i=e[2]/360*2*Math.PI,a=n*Math.cos(i),s=n*Math.sin(i);return[t,a,s]};yn.rgb.ansi16=function(e,t=null){const[n,r,i]=e;let a=t===null?yn.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let s=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(s+=60),s};yn.hsv.ansi16=function(e){return yn.rgb.ansi16(yn.hsv.rgb(e),e[2])};yn.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)};yn.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,i=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,i,a]};yn.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[n,r,i]};yn.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};yn.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(o=>o+o).join(""));const r=parseInt(n,16),i=r>>16&255,a=r>>8&255,s=r&255;return[i,a,s]};yn.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),s=i-a;let o,l;return s<1?o=a/(1-s):o=0,s<=0?l=0:i===t?l=(n-r)/s%6:i===n?l=2+(r-t)/s:l=4+(t-n)/s,l/=6,l%=1,[l*360,s*100,o*100]};yn.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]};yn.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]};yn.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const i=[0,0,0],a=t%1*6,s=a%1,o=1-s;let l=0;switch(Math.floor(a)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=o,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=o,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=o}return l=(1-n)*r,[(n*i[0]+l)*255,(n*i[1]+l)*255,(n*i[2]+l)*255]};yn.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]};yn.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]};yn.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]};yn.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,i=r-t;let a=0;return i<1&&(a=(r-i)/(1-i)),[e[0],i*100,a*100]};yn.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};yn.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};yn.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};yn.gray.hsl=function(e){return[0,0,e[0]]};yn.gray.hsv=yn.gray.hsl;yn.gray.hwb=function(e){return[0,100,e[0]]};yn.gray.cmyk=function(e){return[0,0,0,e[0]]};yn.gray.lab=function(e){return[e[0],0,0]};yn.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};yn.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const $C=_1e;function rmt(){const e={},t=Object.keys($C);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function dmt(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const i=e(n);if(typeof i=="object")for(let a=i.length,s=0;s{Zb[e]={},Object.defineProperty(Zb[e],"channels",{value:bM[e].channels}),Object.defineProperty(Zb[e],"labels",{value:bM[e].labels});const t=lmt(e);Object.keys(t).forEach(r=>{const i=t[r];Zb[e][r]=dmt(i),Zb[e][r].raw=cmt(i)})});var fmt=Zb;const Xb=emt,gu=fmt,C1e=["keyword","gray","hex"],yM={};for(const e of Object.keys(gu))yM[[...gu[e].labels].sort().join("")]=e;const FC={};function Ss(e,t){if(!(this instanceof Ss))return new Ss(e,t);if(t&&t in C1e&&(t=null),t&&!(t in gu))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 Ss)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const i=Xb.get(e);if(i===null)throw new Error("Unable to parse color from string: "+e);this.model=i.model,r=gu[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=gu[this.model].channels;const i=Array.prototype.slice.call(e,0,r);this.color=vM(i,r),this.valpha=typeof e[r]=="number"?e[r]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;const i=Object.keys(e);"alpha"in e&&(i.splice(i.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);const a=i.sort().join("");if(!(a in yM))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=yM[a];const{labels:s}=gu[this.model],o=[];for(n=0;n(e%360+360)%360),saturationl:ya("hsl",1,Xa(100)),lightness:ya("hsl",2,Xa(100)),saturationv:ya("hsv",1,Xa(100)),value:ya("hsv",2,Xa(100)),chroma:ya("hcg",1,Xa(100)),gray:ya("hcg",2,Xa(100)),white:ya("hwb",1,Xa(100)),wblack:ya("hwb",2,Xa(100)),cyan:ya("cmyk",0,Xa(100)),magenta:ya("cmyk",1,Xa(100)),yellow:ya("cmyk",2,Xa(100)),black:ya("cmyk",3,Xa(100)),x:ya("xyz",0,Xa(95.047)),y:ya("xyz",1,Xa(100)),z:ya("xyz",2,Xa(108.833)),l:ya("lab",0,Xa(100)),a:ya("lab",1),b:ya("lab",2),keyword(e){return e!==void 0?new Ss(e):gu[this.model].keyword(this.color)},hex(e){return e!==void 0?new Ss(e):Xb.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new Ss(e);const t=this.rgb().round().color;let n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),Xb.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 Ss.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),r=this.rgb(),i=t===void 0?.5:t,a=2*i-1,s=n.alpha()-r.alpha(),o=((a*s===-1?a:(a+s)/(1+a*s))+1)/2,l=1-o;return Ss.rgb(o*n.red()+l*r.red(),o*n.green()+l*r.green(),o*n.blue()+l*r.blue(),n.alpha()*i+r.alpha()*(1-i))}};for(const e of Object.keys(gu)){if(C1e.includes(e))continue;const{channels:t}=gu[e];Ss.prototype[e]=function(...n){return this.model===e?new Ss(this):n.length>0?new Ss(n,e):new Ss([...mmt(gu[this.model][e].raw(this.color)),this.valpha],e)},Ss[e]=function(...n){let r=n[0];return typeof r=="number"&&(r=vM(n,t)),new Ss(r,e)}}function hmt(e,t){return Number(e.toFixed(t))}function pmt(e){return function(t){return hmt(t,e)}}function ya(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(FC[r]||(FC[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 Xa(e){return function(t){return Math.max(0,Math.min(e,t))}}function mmt(e){return Array.isArray(e)?e:[e]}function vM(e,t){for(let n=0;nW.length;){var ee=a(P);n!==null&&(P.seed=n),W.push(ee)}return P.count=V,W}return L=s(P),j=o(L,P),B=l(L,j,P),u([L,j,B],P)};function s(P){if(i.length>0){var L=N(P.hue),j=O(L),B=(L[1]-L[0])/i.length,V=parseInt((j-L[0])/B);i[V]===!0?V=(V+2)%i.length:i[V]=!0;var W=(L[0]+V*B)%359,re=(L[0]+(V+1)*B)%359;return L=[W,re],j=O(L),j<0&&(j=360+j),j}else{var L=f(P.hue);return j=O(L),j<0&&(j=360+j),j}}function o(P,L){if(L.hue==="monochrome")return 0;if(L.luminosity==="random")return O([0,100]);var j=p(P),B=j[0],V=j[1];switch(L.luminosity){case"bright":B=55;break;case"dark":B=V-10;break;case"light":V=55;break}return O([B,V])}function l(P,L,j){var B=d(P,L),V=100;switch(j.luminosity){case"dark":V=B+20;break;case"light":B=(V+B)/2;break;case"random":B=0,V=100;break}return O([B,V])}function u(P,L){switch(L.format){case"hsvArray":return P;case"hslArray":return _(P);case"hsl":var j=_(P);return"hsl("+j[0]+", "+j[1]+"%, "+j[2]+"%)";case"hsla":var B=_(P),re=L.alpha||Math.random();return"hsla("+B[0]+", "+B[1]+"%, "+B[2]+"%, "+re+")";case"rgbArray":return x(P);case"rgb":var V=x(P);return"rgb("+V.join(", ")+")";case"rgba":var W=x(P),re=L.alpha||Math.random();return"rgba("+W.join(", ")+", "+re+")";default:return S(P)}}function d(P,L){for(var j=g(P).lowerBounds,B=0;B=V&&L<=re){var q=(ee-W)/(re-V),ne=W-q*V;return q*L+ne}}return 0}function f(P){if(typeof parseInt(P)=="number"){var L=parseInt(P);if(L<360&&L>0)return[L,L]}if(typeof P=="string"){if(r[P]){var j=r[P];if(j.hueRange)return j.hueRange}else if(P.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)){var B=k(P)[0];return[B,B]}}return[0,360]}function p(P){return g(P).saturationRange}function g(P){P>=334&&P<=360&&(P-=360);for(var L in r){var j=r[L];if(j.hueRange&&P>=j.hueRange[0]&&P<=j.hueRange[1])return r[L]}return"Color not found"}function O(P){if(n===null){var L=.618033988749895,j=Math.random();return j+=L,j%=1,Math.floor(P[0]+j*(P[1]+1-P[0]))}else{var B=P[1]||1,V=P[0]||0;n=(n*9301+49297)%233280;var W=n/233280;return Math.floor(V+W*(B-V))}}function S(P){var L=x(P);function j(V){var W=V.toString(16);return W.length==1?"0"+W:W}var B="#"+j(L[0])+j(L[1])+j(L[2]);return B}function T(P,L,j){var B=j[0][0],V=j[j.length-1][0],W=j[j.length-1][1],re=j[0][1];r[P]={hueRange:L,lowerBounds:j,saturationRange:[B,V],brightnessRange:[W,re]}}function w(){T("monochrome",null,[[0,0],[100,0]]),T("red",[-26,18],[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]),T("orange",[18,46],[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]),T("yellow",[46,62],[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]),T("green",[62,178],[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]),T("blue",[178,257],[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]),T("purple",[257,282],[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]),T("pink",[282,334],[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]])}function x(P){var L=P[0];L===0&&(L=1),L===360&&(L=359),L=L/360;var j=P[1]/100,B=P[2]/100,V=Math.floor(L*6),W=L*6-V,re=B*(1-j),ee=B*(1-W*j),q=B*(1-(1-W)*j),ne=256,K=256,G=256;switch(V){case 0:ne=B,K=q,G=re;break;case 1:ne=ee,K=B,G=re;break;case 2:ne=re,K=B,G=q;break;case 3:ne=re,K=ee,G=B;break;case 4:ne=q,K=re,G=B;break;case 5:ne=B,K=re,G=ee;break}var ie=[Math.floor(ne*255),Math.floor(K*255),Math.floor(G*255)];return ie}function k(P){P=P.replace(/^#/,""),P=P.length===3?P.replace(/(.)/g,"$1$1"):P;var L=parseInt(P.substr(0,2),16)/255,j=parseInt(P.substr(2,2),16)/255,B=parseInt(P.substr(4,2),16)/255,V=Math.max(L,j,B),W=V-Math.min(L,j,B),re=V?W/V:0;switch(V){case L:return[60*((j-B)/W%6)||0,re,V];case j:return[60*((B-L)/W+2)||0,re,V];case B:return[60*((L-j)/W+4)||0,re,V]}}function _(P){var L=P[0],j=P[1]/100,B=P[2]/100,V=(2-j)*B;return[L,Math.round(j*B/(V<1?V:2-V)*1e4)/100,V/2*100]}function R(P){for(var L=0,j=0;j!==P.length&&!(L>=Number.MAX_SAFE_INTEGER);j++)L+=P.charCodeAt(j);return L}function N(P){if(isNaN(P)){if(typeof P=="string"){if(r[P]){var j=r[P];if(j.hueRange)return j.hueRange}else if(P.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)){var B=k(P)[0];return g(B).hueRange}}}else{var L=parseInt(P);if(L<360&&L>0)return g(P).hueRange}return[0,360]}return a})})(OM,OM.exports);var ymt=OM.exports;const vmt=Cu(ymt),Omt="https://api.yorkie.dev",Smt="cbovg64qfu96agb5i0fg";vC.setLogLevel(4);const R1e=(e,t)=>{const[n]=z$(),r=Pr(ZT),[i,a]=M.useState(null),[s,o]=M.useState(null),l=M.useCallback(()=>{const p=n.get("token");return p?`share:${p}`:`default:${r.accessToken}`},[r.accessToken,n]),u=M.useCallback(async p=>{const g=new vC.Client(Omt,{apiKey:Smt,token:p});return await g.activate(),g},[]),d=M.useCallback((p,g,O)=>{const S=new vC.Document(g,{enableDevtools:!0});return p.attach(S,{initialPresence:{name:O,color:bmt(vmt()).fade(.15).toString(),selection:null,cursor:null}})},[]),f=M.useCallback(async()=>{if(!(!i||!s))try{await i.detach(s),await i.deactivate()}catch(p){console.error("Error during Yorkie cleanup:",p)}},[i,s]);return M.useEffect(()=>{let p=!0;return!e||!t||s||i?void 0:((async()=>{try{const O=l(),S=await u(O),T=await d(S,e,t);if(!p){await S.detach(T),await S.deactivate();return}a(S),o(T)}catch(O){console.error("Error initializing Yorkie: ",O)}})(),()=>{p=!1})},[t,e,s,i,l,u,d]),M.useEffect(()=>()=>{f()},[f]),{client:i,doc:s}};function Emt(){var u;const e=Du(),t=Em(),n=Pr(RT),{data:r,isLoading:i}=CB(t.workspaceSlug),{data:a,isLoading:s}=dje(r==null?void 0:r.id,t.documentId),{doc:o,client:l}=R1e(a==null?void 0:a.yorkieDocumentId,(u=n.data)==null?void 0:u.nickname);return M.useEffect(()=>{if(!(!o||!l))return e(k3(o)),e(A3(l)),()=>{e(k3(null)),e(A3(null))}},[e,l,o]),s||i?I.jsx(rO,{open:!0,children:I.jsx(kd,{color:"inherit"})}):I.jsx(ea,{height:"calc(100% - 64px)",children:I.jsx(E1e,{})})}const wmt=e=>["documents","share",e],Tmt=e=>{const t=Du(),n=cO({queryKey:wmt(e||""),enabled:!!e,queryFn:async()=>(await tr.get("/documents/share",{params:{token:e}})).data,meta:{errorMessage:"This is a non-existent or expired document."}});return M.useEffect(()=>(n.data&&t(_3(n.data)),()=>{t(_3(null))}),[t,n.data]),n};function xmt(){const e=Du(),t=Sm(),[n]=z$(),r=M.useMemo(()=>n.get("token"),[n]),{data:i}=Tmt(r),{doc:a,client:s}=R1e(i==null?void 0:i.yorkieDocumentId,"Anonymous");return M.useEffect(()=>{i!=null&&i.role&&(e(ZMe(i.role)),i.role==="READ"&&e(s8("read")))},[e,i==null?void 0:i.role]),M.useEffect(()=>{if(!(!a||!s))return e(k3(a)),e(A3(s)),()=>{e(k3(null)),e(A3(null))}},[e,s,a]),r?I.jsx(ea,{height:"calc(100% - 64px)",children:I.jsx(E1e,{})}):I.jsx(U$,{to:"/",state:{from:t},replace:!0})}function kmt(){const e=Em(),t=Mc(),{mutateAsync:n}=zYe();return M.useEffect(()=>{e.invitationToken&&n({invitationToken:e.invitationToken}).then(r=>{t(`/${r.slug}`)})},[n,t,e.invitationToken]),I.jsx(rO,{open:!0,children:I.jsx(kd,{color:"inherit"})})}const Amt=e=>["workspaces",e,"users"],_mt=e=>sF({queryKey:Amt(e||""),queryFn:async({pageParam:t})=>(await tr.get(`/workspaces/${e}/users`,{params:{cursor:t}})).data,enabled:!!e,initialPageParam:void 0,getPreviousPageParam:t=>t.cursor??void 0,getNextPageParam:t=>t.cursor??void 0});function Cmt(e){var d;const{open:t,onClose:n}=e,r=Pr(fR),{mutateAsync:i}=UYe(((d=r.data)==null?void 0:d.id)||""),{enqueueSnackbar:a}=IT(),[s,o]=M.useState(null),l=async f=>{let p;if(f.expiredString===Dy[0])p=null;else{const[O,S]=f.expiredString.split(" ");p=tn().add(Number(O),S).toDate()}const{invitationToken:g}=await i({expiredAt:p});o(`${window.location.origin}/join/${g}`)},u=async()=>{s&&(await F1.write(s),a("URL Copied!",{variant:"success"}))};return I.jsx(iO,{open:t,disableAutoFocus:!0,onClose:n,children:I.jsxs(Gs,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:538},children:[I.jsx(Oo,{sx:{position:"absolute",top:28,right:28},onClick:n,children:I.jsx(AR,{})}),I.jsxs(Bn,{gap:4,children:[I.jsxs(Bn,{children:[I.jsx(wr,{variant:"h5",fontWeight:"bold",children:"Add Members"}),I.jsx(wr,{children:"Generate and share the link."})]}),I.jsx(Bn,{gap:1,children:I.jsx(Lc,{children:I.jsx(dO,{defaultValues:{expiredString:Dy[0]},onSuccess:l,children:I.jsxs(Bn,{gap:2,children:[I.jsx(w8,{label:"Expired Date",name:"expiredString",options:Dy.map(f=>({id:f,label:f})),size:"small",sx:{width:1}}),I.jsx(po,{type:"submit",variant:"contained",children:"Generate"})]})})})}),I.jsxs(Bn,{gap:1,children:[I.jsx(wr,{variant:"h6",fontWeight:"bold",children:"Invite Link"}),I.jsx(ea,{height:40,children:s?I.jsxs(Bn,{direction:"row",alignItems:"center",gap:2,children:[I.jsx(wr,{variant:"body1",children:s}),I.jsx(I0,{title:"Copy URL",children:I.jsx(Oo,{onClick:u,children:I.jsx(kR,{})})})]}):I.jsx(wr,{mx:"auto",children:"No link has been generated."})})]})]})]})})}function Rmt(){const e=Em(),{data:t}=CB(e.workspaceSlug),{data:n,fetchNextPage:r,hasNextPage:i}=_mt(t==null?void 0:t.id),[a,s]=M.useState(!1),o=M.useMemo(()=>(n==null?void 0:n.pages.reduce((u,d)=>u.concat(d.workspaceUsers),[]))??[],[n==null?void 0:n.pages]),l=()=>{s(u=>!u)};return I.jsxs(T$,{maxWidth:"lg",children:[I.jsxs(Bn,{gap:4,children:[I.jsxs(Bn,{direction:"row",justifyContent:"space-between",alignItems:"center",px:2,children:[I.jsxs(wr,{variant:"h5",fontWeight:"bold",children:[t==null?void 0:t.title," ",I.jsx(wr,{component:"span",variant:"inherit",color:"primary",children:n==null?void 0:n.pages[0].workspaceUsers.length})]}),I.jsx(po,{variant:"contained",startIcon:I.jsx(UR,{}),onClick:l,children:"Add Members"})]}),I.jsxs(WDe,{component:ea,children:[I.jsx(wv,{}),I.jsx(Hw,{pageStart:0,loadMore:()=>r(),hasMore:i,loader:I.jsx(ea,{className:"loader",children:I.jsx(kd,{size:"sm"})},0),useWindow:!1,style:{width:"100%"},children:I.jsxs(CDe,{children:[I.jsx(XDe,{children:I.jsxs(xY,{children:[I.jsx(Rb,{children:"Name"}),I.jsx(Rb,{children:"Role"}),I.jsx(Rb,{})]})}),I.jsx(LDe,{style:{maxHeight:"100%",overflow:"auto"},children:o.map(u=>I.jsxs(xY,{sx:{width:"100%"},children:[I.jsx(Rb,{component:"th",scope:"row",children:u.nickname}),I.jsx(Rb,{children:"-"}),I.jsx(Rb,{children:"-"})]},u.id))})]})})]})]}),I.jsx(Cmt,{open:a,onClose:l})]})}const Imt=[{path:"",accessType:2,element:I.jsx(AYe,{}),children:[{path:"",element:I.jsx(yZe,{})}]},{path:":workspaceSlug",accessType:1,element:I.jsx(mZe,{}),children:[{path:"",element:I.jsx(kZe,{})},{path:"member",element:I.jsx(Rmt,{})}]},{path:":workspaceSlug",element:I.jsx(kYe,{}),children:[{path:":documentId",accessType:1,element:I.jsx(Emt,{})},{path:":documentId/share",accessType:0,element:I.jsx(xmt,{})}]},{path:"auth/callback",accessType:2,element:I.jsx(vZe,{})},{path:"join/:invitationToken",accessType:1,element:I.jsx(kmt,{})},{path:"/404",accessType:0,element:I.jsx(OZe,{})},{path:"settings/profile",accessType:1,element:I.jsx(MYe,{}),children:[{path:"",element:I.jsx(EZe,{})}]}],Nmt=e=>{const t=n=>(n.accessType===1?n.element=I.jsx(PMe,{children:n.element}):n.accessType===2&&(n.element=I.jsx(DMe,{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=I.jsx(RMe,{}),n))},Dmt=Nmt(Imt);function Pmt(e){const[t,n]=M.useState(""),[r,i]=M.useState(""),{data:a}=NB(r),{mutateAsync:s}=Ihe(),o=M.useMemo(()=>a!=null&&a.conflict?"Already Exists":null,[a==null?void 0:a.conflict]);zR(()=>{i(t)},500,[t]);const l=d=>{n(d.target.value)},u=async d=>{await s(d)};return I.jsx(iO,{disableAutoFocus:!0,...e,children:I.jsx(Gs,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:I.jsxs(Bn,{gap:4,children:[I.jsx(wr,{variant:"h5",children:"Create Your Nickname"}),I.jsx(Lc,{children:I.jsx(dO,{defaultValues:{nickname:""},onSuccess:u,children:I.jsxs(Bn,{gap:4,alignItems:"flex-end",children:[I.jsx(PT,{variant:"standard",name:"nickname",label:"Enter your nickname",required:!0,fullWidth:!0,inputProps:{maxLength:255},onChange:l,error:!!o,helperText:o}),I.jsx(po,{type:"submit",variant:"contained",size:"large",disabled:!!o,children:"OK"})]})})})]})})})}function Lmt(e){const{children:t}=e,{data:n,isSuccess:r,isLoading:i}=SZe(),a=M.useMemo(()=>r&&!n.nickname,[r,n==null?void 0:n.nickname]);return I.jsx(X$.Provider,{value:{isLoggedIn:r,isLoading:i},children:a?I.jsx(Pmt,{open:!0}):t})}function Mmt(){const{enqueueSnackbar:e}=IT();return M.useCallback(n=>{var r;e(((r=n.response)==null?void 0:r.data.message)||n.message||"Something went wrong...",{variant:"error"})},[e])}const I1e=Object.prototype.toString;function N1e(e){switch(I1e.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return pp(e,Error)}}function LO(e,t){return I1e.call(e)===`[object ${t}]`}function CW(e){return LO(e,"ErrorEvent")}function une(e){return LO(e,"DOMError")}function $mt(e){return LO(e,"DOMException")}function Pf(e){return LO(e,"String")}function RW(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function IW(e){return e===null||RW(e)||typeof e!="object"&&typeof e!="function"}function Uv(e){return LO(e,"Object")}function AI(e){return typeof Event<"u"&&pp(e,Event)}function Fmt(e){return typeof Element<"u"&&pp(e,Element)}function Bmt(e){return LO(e,"RegExp")}function _I(e){return!!(e&&e.then&&typeof e.then=="function")}function Umt(e){return Uv(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function D1e(e){return typeof e=="number"&&e!==e}function pp(e,t){try{return e instanceof t}catch{return!1}}function P1e(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function qy(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function cne(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;rzmt(e,r,n))}function jmt(e,t,n=250,r,i,a,s){if(!a.exception||!a.exception.values||!s||!pp(s.originalException,Error))return;const o=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;o&&(a.exception.values=Hmt(SM(e,t,i,s.originalException,r,a.exception.values,o,0),n))}function SM(e,t,n,r,i,a,s,o){if(a.length>=n+1)return a;let l=[...a];if(pp(r[i],Error)){dne(s,o);const u=e(t,r[i]),d=l.length;fne(u,i,d,o),l=SM(e,t,n,r[i],i,[u,...l],u,d)}return Array.isArray(r.errors)&&r.errors.forEach((u,d)=>{if(pp(u,Error)){dne(s,o);const f=e(t,u),p=l.length;fne(f,`errors[${d}]`,p,o),l=SM(e,t,n,u,i,[f,...l],f,p)}}),l}function dne(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function fne(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function Hmt(e,t){return e.map(n=>(n.value&&(n.value=qy(n.value,t)),n))}function v4(e){return e&&e.Math==Math?e:void 0}const Gr=typeof globalThis=="object"&&v4(globalThis)||typeof window=="object"&&v4(window)||typeof self=="object"&&v4(self)||typeof global=="object"&&v4(global)||function(){return this}()||{};function NW(){return Gr}function L1e(e,t,n){const r=n||Gr,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}const Gy=NW(),Qmt=80;function zv(e,t={}){if(!e)return"";try{let n=e;const r=5,i=[];let a=0,s=0;const o=" > ",l=o.length;let u;const d=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||Qmt;for(;n&&a++1&&s+i.length*l+u.length>=f));)i.push(u),s+=u.length,n=n.parentNode;return i.reverse().join(o)}catch{return""}}function Wmt(e,t){const n=e,r=[];let i,a,s,o,l;if(!n||!n.tagName)return"";if(Gy.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const u=t&&t.length?t.filter(f=>n.getAttribute(f)).map(f=>[f,n.getAttribute(f)]):null;if(u&&u.length)u.forEach(f=>{r.push(`[${f[0]}="${f[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&Pf(i))for(a=i.split(/\s+/),l=0;l"u"||__SENTRY_DEBUG__,Gmt="Sentry Logger ",EM=["debug","info","warn","error","log","assert","trace"],BC={};function CI(e){if(!("console"in Gr))return e();const t=Gr.console,n={},r=Object.keys(BC);r.forEach(i=>{const a=BC[i];n[i]=t[i],t[i]=a});try{return e()}finally{r.forEach(i=>{t[i]=n[i]})}}function Ymt(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return MO?EM.forEach(n=>{t[n]=(...r)=>{e&&CI(()=>{Gr.console[n](`${Gmt}[${n}]:`,...r)})}}):EM.forEach(n=>{t[n]=()=>{}}),t}const kt=Ymt(),Zmt=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Xmt(e){return e==="http"||e==="https"}function $O(e,t=!1){const{host:n,path:r,pass:i,port:a,projectId:s,protocol:o,publicKey:l}=e;return`${o}://${l}${t&&i?`:${i}`:""}@${n}${a?`:${a}`:""}/${r&&`${r}/`}${s}`}function Kmt(e){const t=Zmt.exec(e);if(!t){CI(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,i="",a,s="",o]=t.slice(1);let l="",u=o;const d=u.split("/");if(d.length>1&&(l=d.slice(0,-1).join("/"),u=d.pop()),u){const f=u.match(/^\d+/);f&&(u=f[0])}return $1e({host:a,pass:i,path:l,projectId:u,port:s,protocol:n,publicKey:r})}function $1e(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Jmt(e){if(!MO)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(kt.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?Xmt(r)?t&&isNaN(parseInt(t,10))?(kt.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(kt.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(kt.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function egt(e){const t=typeof e=="string"?Kmt(e):$1e(e);if(!(!t||!Jmt(t)))return t}class yf extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function Ws(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);typeof i=="function"&&F1e(i,r),e[t]=i}function R1(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{MO&&kt.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function F1e(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,R1(e,"__sentry_original__",t)}catch{}}function DW(e){return e.__sentry_original__}function tgt(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function B1e(e){if(N1e(e))return{message:e.message,name:e.name,stack:e.stack,...pne(e)};if(AI(e)){const t={type:e.type,target:hne(e.target),currentTarget:hne(e.currentTarget),...pne(e)};return typeof CustomEvent<"u"&&pp(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function hne(e){try{return Fmt(e)?zv(e):Object.prototype.toString.call(e)}catch{return""}}function pne(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function ngt(e,t=40){const n=Object.keys(B1e(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return qy(n[0],t);for(let r=n.length;r>0;r--){const i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:qy(i,t)}return""}function Su(e){return wM(e,new Map)}function wM(e,t){if(rgt(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const i of Object.keys(e))typeof e[i]<"u"&&(r[i]=wM(e[i],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(i=>{r.push(wM(i,t))}),r}return e}function rgt(e){if(!Uv(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const U1e=50,mne=/\(error: (.*)\)/,gne=/captureMessage|captureException/;function z1e(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{const i=[],a=n.split(` +`);for(let s=r;s1024)continue;const l=mne.test(o)?o.replace(mne,"$1"):o;if(!l.match(/\S*Error: /)){for(const u of t){const d=u(l);if(d){i.push(d);break}}if(i.length>=U1e)break}}return agt(i)}}function igt(e){return Array.isArray(e)?z1e(...e):e}function agt(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),gne.test(t[t.length-1].function||"")&&(t.pop(),gne.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,U1e).map(n=>({...n,filename:n.filename||t[t.length-1].filename,function:n.function||"?"}))}const _7="";function mp(e){try{return!e||typeof e!="function"?_7:e.name||_7}catch{return _7}}const k_={},bne={};function G1(e,t){k_[e]=k_[e]||[],k_[e].push(t)}function Y1(e,t){bne[e]||(t(),bne[e]=!0)}function Td(e,t){const n=e&&k_[e];if(n)for(const r of n)try{r(t)}catch(i){MO&&kt.error(`Error while triggering instrumentation handler. Type: ${e} -Name: ${Sp(r)} -Error:`,i)}}function Sgt(e){const t="console";V1(t,e),q1(t,Egt)}function Egt(){"console"in Gr&&IM.forEach(function(e){e in Gr.console&&Us(Gr.console,e,function(t){return z3[e]=t,function(...n){Td("console",{args:n,level:e});const i=z3[e];i&&i.apply(Gr.console,n)}})})}function Da(){const e=Gr,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function K1e(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function A0(e){const{message:t,event_id:n}=e;if(t)return t;const r=K1e(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function DM(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type="Error")}function Jw(e,t){const n=K1e(e);if(!n)return;const r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&"data"in t){const a={...i&&i.data,...t.data};n.mechanism.data=a}}function Ane(e){if(e&&e.__sentry_captured__)return!0;try{_1(e,"__sentry_captured__",!0)}catch{}return!1}function J1e(e){return Array.isArray(e)?e:[e]}const sy=Gr,wgt=1e3;let _ne,PM,LM;function Tgt(e){const t="dom";V1(t,e),q1(t,xgt)}function xgt(){if(!sy.document)return;const e=Td.bind(null,"dom"),t=Cne(e,!0);sy.document.addEventListener("click",t,!1),sy.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const r=sy[n]&&sy[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(Us(r,"addEventListener",function(i){return function(a,s,o){if(a==="click"||a=="keypress")try{const l=this,u=l.__sentry_instrumentation_handlers__=l.__sentry_instrumentation_handlers__||{},d=u[a]=u[a]||{refCount:0};if(!d.handler){const f=Cne(e);d.handler=f,i.call(this,a,f,o)}d.refCount++}catch{}return i.call(this,a,s,o)}}),Us(r,"removeEventListener",function(i){return function(a,s,o){if(a==="click"||a=="keypress")try{const l=this,u=l.__sentry_instrumentation_handlers__||{},d=u[a];d&&(d.refCount--,d.refCount<=0&&(i.call(this,a,d.handler,o),d.handler=void 0,delete u[a]),Object.keys(u).length===0&&delete l.__sentry_instrumentation_handlers__)}catch{}return i.call(this,a,s,o)}}))})}function kgt(e){if(e.type!==PM)return!1;try{if(!e.target||e.target._sentryId!==LM)return!1}catch{}return!0}function Agt(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function Cne(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=_gt(n);if(Agt(n.type,r))return;_1(n,"_sentryCaptured",!0),r&&!r._sentryId&&_1(r,"_sentryId",Da());const i=n.type==="keypress"?"input":n.type;kgt(n)||(e({event:n,name:i,global:t}),PM=n.type,LM=r?r._sentryId:void 0),clearTimeout(_ne),_ne=sy.setTimeout(()=>{LM=void 0,PM=void 0},wgt)}}function _gt(e){try{return e.target}catch{return null}}const MM=HW();function ebe(){if(!("fetch"in MM))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function $M(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Cgt(){if(typeof EdgeRuntime=="string")return!0;if(!ebe())return!1;if($M(MM.fetch))return!0;let e=!1;const t=MM.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=$M(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){VO&&_t.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function tbe(e){const t="fetch";V1(t,e),q1(t,Rgt)}function Rgt(){Cgt()&&Us(Gr,"fetch",function(e){return function(...t){const{method:n,url:r}=Igt(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return Td("fetch",{...i}),e.apply(Gr,t).then(a=>{const s={...i,endTimestamp:Date.now(),response:a};return Td("fetch",s),a},a=>{const s={...i,endTimestamp:Date.now(),error:a};throw Td("fetch",s),a})}})}function FM(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Rne(e){return typeof e=="string"?e:e?FM(e,"url")?e.url:e.toString?e.toString():"":""}function Igt(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:Rne(n),method:FM(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:Rne(t),method:FM(t,"method")?String(t.method).toUpperCase():"GET"}}let O4=null;function nbe(e){const t="error";V1(t,e),q1(t,Ngt)}function Ngt(){O4=Gr.onerror,Gr.onerror=function(e,t,n,r,i){return Td("error",{column:r,error:i,line:n,msg:e,url:t}),O4&&!O4.__SENTRY_LOADER__?O4.apply(this,arguments):!1},Gr.onerror.__SENTRY_INSTRUMENTED__=!0}let S4=null;function rbe(e){const t="unhandledrejection";V1(t,e),q1(t,Dgt)}function Dgt(){S4=Gr.onunhandledrejection,Gr.onunhandledrejection=function(e){return Td("unhandledrejection",e),S4&&!S4.__SENTRY_LOADER__?S4.apply(this,arguments):!0},Gr.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const E4=HW();function Pgt(){const e=E4.chrome,t=e&&e.app&&e.app.runtime,n="history"in E4&&!!E4.history.pushState&&!!E4.history.replaceState;return!t&&n}const wE=Gr;let w4;function WW(e){const t="history";V1(t,e),q1(t,Lgt)}function Lgt(){if(!Pgt())return;const e=wE.onpopstate;wE.onpopstate=function(...n){const r=wE.location.href,i=w4;if(w4=r,Td("history",{from:i,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const i=r.length>2?r[2]:void 0;if(i){const a=w4,s=String(i);w4=s,Td("history",{from:a,to:s})}return n.apply(this,r)}}Us(wE.history,"pushState",t),Us(wE.history,"replaceState",t)}const Mgt=Gr,Cy="__sentry_xhr_v3__";function ibe(e){const t="xhr";V1(t,e),q1(t,$gt)}function $gt(){if(!Mgt.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;Us(e,"open",function(t){return function(...n){const r=Date.now(),i=Ff(n[0])?n[0].toUpperCase():void 0,a=Fgt(n[1]);if(!i||!a)return t.apply(this,n);this[Cy]={method:i,url:a,request_headers:{}},i==="POST"&&a.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const s=()=>{const o=this[Cy];if(o&&this.readyState===4){try{o.status_code=this.status}catch{}const l={args:[i,a],endTimestamp:Date.now(),startTimestamp:r,xhr:this};Td("xhr",l)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?Us(this,"onreadystatechange",function(o){return function(...l){return s(),o.apply(this,l)}}):this.addEventListener("readystatechange",s),Us(this,"setRequestHeader",function(o){return function(...l){const[u,d]=l,f=this[Cy];return f&&Ff(u)&&Ff(d)&&(f.request_headers[u.toLowerCase()]=d),o.apply(this,l)}}),t.apply(this,n)}}),Us(e,"send",function(t){return function(...n){const r=this[Cy];if(!r)return t.apply(this,n);n[0]!==void 0&&(r.body=n[0]);const i={args:[r.method,r.url],startTimestamp:Date.now(),xhr:this};return Td("xhr",i),t.apply(this,n)}})}function Fgt(e){if(Ff(e))return e;try{return e.toString()}catch{}}function Bgt(){return"npm"}function Ugt(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(i){if(e)return t.has(i)?!0:(t.add(i),!1);for(let a=0;an?abe(e,t-1,n):r}function BM(e,t,n=1/0,r=1/0,i=Ugt()){const[a,s]=i;if(t==null||["number","boolean","string"].includes(typeof t)&&!H1e(t))return t;const o=zgt(e,t);if(!o.startsWith("[object "))return o;if(t.__sentry_skip_normalization__)return t;const l=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(l===0)return o.replace("object ","");if(a(t))return"[Circular ~]";const u=t;if(u&&typeof u.toJSON=="function")try{const g=u.toJSON();return BM("",g,l-1,r,i)}catch{}const d=Array.isArray(t)?[]:{};let f=0;const p=Y1e(t);for(const g in p){if(!Object.prototype.hasOwnProperty.call(p,g))continue;if(f>=r){d[g]="[MaxProperties ~]";break}const O=p[g];d[g]=BM(g,O,l-1,r,i),f++}return s(t),d}function zgt(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(Q1e(t))return"[VueViewModel]";if(tgt(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${Sp(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=jgt(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function jgt(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function Hgt(e){return~-encodeURI(e).split(/%..|./).length}function Qgt(e){return Hgt(JSON.stringify(e))}var $h;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})($h||($h={}));function Kv(e){return new gu(t=>{t(e)})}function VW(e){return new gu((t,n)=>{n(e)})}class gu{constructor(t){gu.prototype.__init.call(this),gu.prototype.__init2.call(this),gu.prototype.__init3.call(this),gu.prototype.__init4.call(this),this._state=$h.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new gu((r,i)=>{this._handlers.push([!1,a=>{if(!t)r(a);else try{r(t(a))}catch(s){i(s)}},a=>{if(!n)i(a);else try{r(n(a))}catch(s){i(s)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new gu((n,r)=>{let i,a;return this.then(s=>{a=!1,i=s,t&&t()},s=>{a=!0,i=s,t&&t()}).then(()=>{if(a){r(i);return}n(i)})})}__init(){this._resolve=t=>{this._setResult($h.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult($h.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===$h.PENDING){if(RI(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===$h.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===$h.RESOLVED&&n[1](this._value),this._state===$h.REJECTED&&n[2](this._value),n[0]=!0)})}}}function Wgt(e){const t=[];function n(){return e===void 0||t.lengthr(o)).then(null,()=>r(o).then(null,()=>{})),o}function a(s){return new gu((o,l)=>{let u=t.length;if(!u)return o(!0);const d=setTimeout(()=>{s&&s>0&&o(!1)},s);t.forEach(f=>{Kv(f).then(()=>{--u||(clearTimeout(d),o(!0))},l)})})}return{$:t,add:i,drain:a}}function s1(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const Vgt=["fatal","error","warning","log","info","debug"];function qgt(e){return e==="warn"?"warning":Vgt.includes(e)?e:"log"}const sbe=1e3;function bx(){return Date.now()/sbe}function Ggt(){const{performance:e}=Gr;if(!e||!e.now)return bx;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/sbe}const yx=Ggt(),Nc=(()=>{const{performance:e}=Gr;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,a=i{const a=Ine(i);for(const s of Object.keys(a))r[s]=a[s];return r},{});else{if(!e)return;t=Ine(e)}const n=Object.entries(t).reduce((r,[i,a])=>{if(i.match(Ygt)){const s=i.slice(obe.length);r[s]=a}return r},{});if(Object.keys(n).length>0)return n}function lbe(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,i])=>(i&&(n[`${obe}${r}`]=i),n),{});return Kgt(t)}function Ine(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(t[n]=r,t),{})}function Kgt(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],i)=>{const a=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,s=i===0?a:`${t},${a}`;return s.length>Zgt?(VO&&_t.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):s},"")}const Jgt=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function e1t(e){if(!e)return;const t=e.match(Jgt);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function t1t(e,t){const n=e1t(e),r=Xgt(t),{traceId:i,parentSpanId:a,parentSampled:s}=n||{};return n?{traceId:i||Da(),parentSpanId:a||Da().substring(16),spanId:Da().substring(16),sampled:s,dsc:r||{}}:{traceId:i||Da(),spanId:Da().substring(16)}}function qW(e=Da(),t=Da().substring(16),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function G1(e,t=[]){return[e,t]}function n1t(e,t){const[n,r]=e;return[n,[...r,t]]}function Nne(e,t){const n=e[1];for(const r of n){const i=r[0].type;if(t(r,i))return!0}return!1}function zM(e,t){return(t||new TextEncoder).encode(e)}function r1t(e,t){const[n,r]=e;let i=JSON.stringify(n);function a(s){typeof i=="string"?i=typeof s=="string"?i+s:[zM(i,t),s]:i.push(typeof s=="string"?zM(s,t):s)}for(const s of r){const[o,l]=s;if(a(` +Name: ${mp(r)} +Error:`,i)}}function sgt(e){const t="console";G1(t,e),Y1(t,ogt)}function ogt(){"console"in Gr&&EM.forEach(function(e){e in Gr.console&&Ws(Gr.console,e,function(t){return BC[e]=t,function(...n){Td("console",{args:n,level:e});const i=BC[e];i&&i.apply(Gr.console,n)}})})}function La(){const e=Gr,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function j1e(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function v0(e){const{message:t,event_id:n}=e;if(t)return t;const r=j1e(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function TM(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type="Error")}function tT(e,t){const n=j1e(e);if(!n)return;const r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&"data"in t){const a={...i&&i.data,...t.data};n.mechanism.data=a}}function yne(e){if(e&&e.__sentry_captured__)return!0;try{R1(e,"__sentry_captured__",!0)}catch{}return!1}function H1e(e){return Array.isArray(e)?e:[e]}const Kb=Gr,lgt=1e3;let vne,xM,kM;function ugt(e){const t="dom";G1(t,e),Y1(t,cgt)}function cgt(){if(!Kb.document)return;const e=Td.bind(null,"dom"),t=One(e,!0);Kb.document.addEventListener("click",t,!1),Kb.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const r=Kb[n]&&Kb[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(Ws(r,"addEventListener",function(i){return function(a,s,o){if(a==="click"||a=="keypress")try{const l=this,u=l.__sentry_instrumentation_handlers__=l.__sentry_instrumentation_handlers__||{},d=u[a]=u[a]||{refCount:0};if(!d.handler){const f=One(e);d.handler=f,i.call(this,a,f,o)}d.refCount++}catch{}return i.call(this,a,s,o)}}),Ws(r,"removeEventListener",function(i){return function(a,s,o){if(a==="click"||a=="keypress")try{const l=this,u=l.__sentry_instrumentation_handlers__||{},d=u[a];d&&(d.refCount--,d.refCount<=0&&(i.call(this,a,d.handler,o),d.handler=void 0,delete u[a]),Object.keys(u).length===0&&delete l.__sentry_instrumentation_handlers__)}catch{}return i.call(this,a,s,o)}}))})}function dgt(e){if(e.type!==xM)return!1;try{if(!e.target||e.target._sentryId!==kM)return!1}catch{}return!0}function fgt(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function One(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=hgt(n);if(fgt(n.type,r))return;R1(n,"_sentryCaptured",!0),r&&!r._sentryId&&R1(r,"_sentryId",La());const i=n.type==="keypress"?"input":n.type;dgt(n)||(e({event:n,name:i,global:t}),xM=n.type,kM=r?r._sentryId:void 0),clearTimeout(vne),vne=Kb.setTimeout(()=>{kM=void 0,xM=void 0},lgt)}}function hgt(e){try{return e.target}catch{return null}}const AM=NW();function Q1e(){if(!("fetch"in AM))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function _M(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function pgt(){if(typeof EdgeRuntime=="string")return!0;if(!Q1e())return!1;if(_M(AM.fetch))return!0;let e=!1;const t=AM.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=_M(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){MO&&kt.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function W1e(e){const t="fetch";G1(t,e),Y1(t,mgt)}function mgt(){pgt()&&Ws(Gr,"fetch",function(e){return function(...t){const{method:n,url:r}=ggt(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return Td("fetch",{...i}),e.apply(Gr,t).then(a=>{const s={...i,endTimestamp:Date.now(),response:a};return Td("fetch",s),a},a=>{const s={...i,endTimestamp:Date.now(),error:a};throw Td("fetch",s),a})}})}function CM(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Sne(e){return typeof e=="string"?e:e?CM(e,"url")?e.url:e.toString?e.toString():"":""}function ggt(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:Sne(n),method:CM(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:Sne(t),method:CM(t,"method")?String(t.method).toUpperCase():"GET"}}let O4=null;function V1e(e){const t="error";G1(t,e),Y1(t,bgt)}function bgt(){O4=Gr.onerror,Gr.onerror=function(e,t,n,r,i){return Td("error",{column:r,error:i,line:n,msg:e,url:t}),O4&&!O4.__SENTRY_LOADER__?O4.apply(this,arguments):!1},Gr.onerror.__SENTRY_INSTRUMENTED__=!0}let S4=null;function q1e(e){const t="unhandledrejection";G1(t,e),Y1(t,ygt)}function ygt(){S4=Gr.onunhandledrejection,Gr.onunhandledrejection=function(e){return Td("unhandledrejection",e),S4&&!S4.__SENTRY_LOADER__?S4.apply(this,arguments):!0},Gr.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const E4=NW();function vgt(){const e=E4.chrome,t=e&&e.app&&e.app.runtime,n="history"in E4&&!!E4.history.pushState&&!!E4.history.replaceState;return!t&&n}const xE=Gr;let w4;function PW(e){const t="history";G1(t,e),Y1(t,Ogt)}function Ogt(){if(!vgt())return;const e=xE.onpopstate;xE.onpopstate=function(...n){const r=xE.location.href,i=w4;if(w4=r,Td("history",{from:i,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const i=r.length>2?r[2]:void 0;if(i){const a=w4,s=String(i);w4=s,Td("history",{from:a,to:s})}return n.apply(this,r)}}Ws(xE.history,"pushState",t),Ws(xE.history,"replaceState",t)}const Sgt=Gr,Sy="__sentry_xhr_v3__";function G1e(e){const t="xhr";G1(t,e),Y1(t,Egt)}function Egt(){if(!Sgt.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;Ws(e,"open",function(t){return function(...n){const r=Date.now(),i=Pf(n[0])?n[0].toUpperCase():void 0,a=wgt(n[1]);if(!i||!a)return t.apply(this,n);this[Sy]={method:i,url:a,request_headers:{}},i==="POST"&&a.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const s=()=>{const o=this[Sy];if(o&&this.readyState===4){try{o.status_code=this.status}catch{}const l={args:[i,a],endTimestamp:Date.now(),startTimestamp:r,xhr:this};Td("xhr",l)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?Ws(this,"onreadystatechange",function(o){return function(...l){return s(),o.apply(this,l)}}):this.addEventListener("readystatechange",s),Ws(this,"setRequestHeader",function(o){return function(...l){const[u,d]=l,f=this[Sy];return f&&Pf(u)&&Pf(d)&&(f.request_headers[u.toLowerCase()]=d),o.apply(this,l)}}),t.apply(this,n)}}),Ws(e,"send",function(t){return function(...n){const r=this[Sy];if(!r)return t.apply(this,n);n[0]!==void 0&&(r.body=n[0]);const i={args:[r.method,r.url],startTimestamp:Date.now(),xhr:this};return Td("xhr",i),t.apply(this,n)}})}function wgt(e){if(Pf(e))return e;try{return e.toString()}catch{}}function Tgt(){return"npm"}function xgt(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(i){if(e)return t.has(i)?!0:(t.add(i),!1);for(let a=0;an?Y1e(e,t-1,n):r}function RM(e,t,n=1/0,r=1/0,i=xgt()){const[a,s]=i;if(t==null||["number","boolean","string"].includes(typeof t)&&!D1e(t))return t;const o=kgt(e,t);if(!o.startsWith("[object "))return o;if(t.__sentry_skip_normalization__)return t;const l=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(l===0)return o.replace("object ","");if(a(t))return"[Circular ~]";const u=t;if(u&&typeof u.toJSON=="function")try{const g=u.toJSON();return RM("",g,l-1,r,i)}catch{}const d=Array.isArray(t)?[]:{};let f=0;const p=B1e(t);for(const g in p){if(!Object.prototype.hasOwnProperty.call(p,g))continue;if(f>=r){d[g]="[MaxProperties ~]";break}const O=p[g];d[g]=RM(g,O,l-1,r,i),f++}return s(t),d}function kgt(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(P1e(t))return"[VueViewModel]";if(Umt(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${mp(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=Agt(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function Agt(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function _gt(e){return~-encodeURI(e).split(/%..|./).length}function Cgt(e){return _gt(JSON.stringify(e))}var Ih;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(Ih||(Ih={}));function jv(e){return new fu(t=>{t(e)})}function LW(e){return new fu((t,n)=>{n(e)})}class fu{constructor(t){fu.prototype.__init.call(this),fu.prototype.__init2.call(this),fu.prototype.__init3.call(this),fu.prototype.__init4.call(this),this._state=Ih.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new fu((r,i)=>{this._handlers.push([!1,a=>{if(!t)r(a);else try{r(t(a))}catch(s){i(s)}},a=>{if(!n)i(a);else try{r(n(a))}catch(s){i(s)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new fu((n,r)=>{let i,a;return this.then(s=>{a=!1,i=s,t&&t()},s=>{a=!0,i=s,t&&t()}).then(()=>{if(a){r(i);return}n(i)})})}__init(){this._resolve=t=>{this._setResult(Ih.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(Ih.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===Ih.PENDING){if(_I(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Ih.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===Ih.RESOLVED&&n[1](this._value),this._state===Ih.REJECTED&&n[2](this._value),n[0]=!0)})}}}function Rgt(e){const t=[];function n(){return e===void 0||t.lengthr(o)).then(null,()=>r(o).then(null,()=>{})),o}function a(s){return new fu((o,l)=>{let u=t.length;if(!u)return o(!0);const d=setTimeout(()=>{s&&s>0&&o(!1)},s);t.forEach(f=>{jv(f).then(()=>{--u||(clearTimeout(d),o(!0))},l)})})}return{$:t,add:i,drain:a}}function u1(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const Igt=["fatal","error","warning","log","info","debug"];function Ngt(e){return e==="warn"?"warning":Igt.includes(e)?e:"log"}const Z1e=1e3;function yx(){return Date.now()/Z1e}function Dgt(){const{performance:e}=Gr;if(!e||!e.now)return yx;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/Z1e}const vx=Dgt(),Ic=(()=>{const{performance:e}=Gr;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,a=i{const a=Ene(i);for(const s of Object.keys(a))r[s]=a[s];return r},{});else{if(!e)return;t=Ene(e)}const n=Object.entries(t).reduce((r,[i,a])=>{if(i.match(Pgt)){const s=i.slice(X1e.length);r[s]=a}return r},{});if(Object.keys(n).length>0)return n}function K1e(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,i])=>(i&&(n[`${X1e}${r}`]=i),n),{});return $gt(t)}function Ene(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(t[n]=r,t),{})}function $gt(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],i)=>{const a=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,s=i===0?a:`${t},${a}`;return s.length>Lgt?(MO&&kt.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):s},"")}const Fgt=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Bgt(e){if(!e)return;const t=e.match(Fgt);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function Ugt(e,t){const n=Bgt(e),r=Mgt(t),{traceId:i,parentSpanId:a,parentSampled:s}=n||{};return n?{traceId:i||La(),parentSpanId:a||La().substring(16),spanId:La().substring(16),sampled:s,dsc:r||{}}:{traceId:i||La(),spanId:La().substring(16)}}function MW(e=La(),t=La().substring(16),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function Z1(e,t=[]){return[e,t]}function zgt(e,t){const[n,r]=e;return[n,[...r,t]]}function wne(e,t){const n=e[1];for(const r of n){const i=r[0].type;if(t(r,i))return!0}return!1}function NM(e,t){return(t||new TextEncoder).encode(e)}function jgt(e,t){const[n,r]=e;let i=JSON.stringify(n);function a(s){typeof i=="string"?i=typeof s=="string"?i+s:[NM(i,t),s]:i.push(typeof s=="string"?NM(s,t):s)}for(const s of r){const[o,l]=s;if(a(` ${JSON.stringify(o)} -`),typeof l=="string"||l instanceof Uint8Array)a(l);else{let u;try{u=JSON.stringify(l)}catch{u=JSON.stringify(v0(l))}a(u)}}return typeof i=="string"?i:i1t(i)}function i1t(e){const t=e.reduce((i,a)=>i+a.length,0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}function a1t(e,t){const n=typeof e.data=="string"?zM(e.data,t):e.data;return[Tu({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const s1t={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function Dne(e){return s1t[e]}function ube(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function o1t(e,t,n,r){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:qO(r)},...i&&{trace:Tu({...i})}}}function l1t(e,t,n){const r=[{type:"client_report"},{timestamp:bx(),discarded_events:e}];return G1(t?{dsn:t}:{},[r])}const u1t=60*1e3;function c1t(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?u1t:r-t}function d1t(e,t){return e[t]||e.all||0}function f1t(e,t,n=Date.now()){return d1t(e,t)>n}function h1t(e,{statusCode:t,headers:n},r=Date.now()){const i={...e},a=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(a)for(const o of a.trim().split(",")){const[l,u,,,d]=o.split(":",5),f=parseInt(l,10),p=(isNaN(f)?60:f)*1e3;if(!u)i.all=r+p;else for(const g of u.split(";"))g==="metric_bucket"?(!d||d.split(";").includes("custom"))&&(i[g]=r+p):i[g]=r+p}else s?i.all=r+c1t(s,r):t===429&&(i.all=r+60*1e3);return i}const In=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,NI="production";function GW(){return W1e("globalEventProcessors",()=>[])}function p1t(e){GW().push(e)}function j3(e,t,n,r=0){return new gu((i,a)=>{const s=e[r];if(t===null||typeof s!="function")i(t);else{const o=s({...t},n);In&&s.id&&o===null&&_t.log(`Event processor "${s.id}" dropped event`),RI(o)?o.then(l=>j3(e,l,n,r+1).then(i)).then(null,a):j3(e,o,n,r+1).then(i).then(null,a)}})}function cbe(e){const t=yx(),n={sid:Da(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>m1t(n)};return e&&C1(n,e),n}function C1(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||yx(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Da()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function dbe(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),C1(e,n)}function m1t(e){return Tu({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const g1t=0,fbe=1;function YW(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:s,tags:o,origin:l}=Xo(e);return Tu({data:r,op:i,parent_span_id:a,span_id:t,status:s,tags:o,trace_id:n,origin:l})}function DI(e){const{traceId:t,spanId:n}=e.spanContext(),r=ZW(e);return qW(t,n,r)}function PI(e){return typeof e=="number"?Pne(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Pne(e.getTime()):yx()}function Pne(e){return e>9999999999?e/1e3:e}function Xo(e){return b1t(e)?e.getSpanJSON():typeof e.toJSON=="function"?e.toJSON():{}}function b1t(e){return typeof e.getSpanJSON=="function"}function ZW(e){const{traceFlags:t}=e.spanContext();return!!(t&fbe)}function y1t(e,t,n,r,i,a){const{normalizeDepth:s=3,normalizeMaxBreadth:o=1e3}=e,l={...t,event_id:t.event_id||n.event_id||Da(),timestamp:t.timestamp||bx()},u=n.integrations||e.integrations.map(T=>T.name);v1t(l,e),E1t(l,u),t.type===void 0&&O1t(l,e.stackParser);const d=T1t(r,n.captureContext);n.mechanism&&Jw(l,n.mechanism);const f=i&&i.getEventProcessors?i.getEventProcessors():[],p=D1t().getScopeData();if(a){const T=a.getScopeData();Fne(p,T)}if(d){const T=d.getScopeData();Fne(p,T)}const g=[...n.attachments||[],...p.attachments];g.length&&(n.attachments=g),gbe(l,p);const O=[...f,...GW(),...p.eventProcessors];return j3(O,l,n).then(T=>(T&&S1t(T),typeof s=="number"&&s>0?w1t(T,s,o):T))}function v1t(e,t){const{environment:n,release:r,dist:i,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:NI),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&i!==void 0&&(e.dist=i),e.message&&(e.message=tv(e.message,a));const s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=tv(s.value,a));const o=e.request;o&&o.url&&(o.url=tv(o.url,a))}const Lne=new WeakMap;function O1t(e,t){const n=Gr._sentryDebugIds;if(!n)return;let r;const i=Lne.get(t);i?r=i:(r=new Map,Lne.set(t,r));const a=Object.keys(n).reduce((s,o)=>{let l;const u=r.get(o);u?l=u:(l=t(o),r.set(o,l));for(let d=l.length-1;d>=0;d--){const f=l[d];if(f.filename){s[f.filename]=n[o];break}}return s},{});try{e.exception.values.forEach(s=>{s.stacktrace.frames.forEach(o=>{o.filename&&(o.debug_id=a[o.filename])})})}catch{}}function S1t(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(i=>{i.debug_id&&(i.abs_path?t[i.abs_path]=i.debug_id:i.filename&&(t[i.filename]=i.debug_id),delete i.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach(r=>{n.push({type:"sourcemap",code_file:r,debug_id:t[r]})})}function E1t(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function w1t(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:v0(i.data,t,n)}}))},...e.user&&{user:v0(e.user,t,n)},...e.contexts&&{contexts:v0(e.contexts,t,n)},...e.extra&&{extra:v0(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=v0(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(i=>{const a=Xo(i).data;return a&&(i.data=v0(a,t,n)),i})),r}function T1t(e,t){if(!t)return e;const n=e?e.clone():new om;return n.update(t),n}function x1t(e,t){return Hc().captureException(e,void 0)}function hbe(e,t){return Hc().captureEvent(e,t)}function R1(e,t){Hc().addBreadcrumb(e,t)}function k1t(...e){const t=Hc();if(e.length===2){const[n,r]=e;return n?t.withScope(()=>(t.getStackTop().scope=n,r(n))):t.withScope(r)}return t.withScope(e[0])}function cs(){return Hc().getClient()}function ih(){return Hc().getScope()}function Mne(e){const t=cs(),n=Y1(),r=ih(),{release:i,environment:a=NI}=t&&t.getOptions()||{},{userAgent:s}=Gr.navigator||{},o=cbe({release:i,environment:a,user:r.getUser()||n.getUser(),...s&&{userAgent:s},...e}),l=n.getSession();return l&&l.status==="ok"&&C1(l,{status:"exited"}),pbe(),n.setSession(o),r.setSession(o),o}function pbe(){const e=Y1(),t=ih(),n=t.getSession()||e.getSession();n&&dbe(n),mbe(),e.setSession(),t.setSession()}function mbe(){const e=Y1(),t=ih(),n=cs(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function $ne(e=!1){if(e){pbe();return}mbe()}function H3(e){return e.transaction}function LI(e,t,n){const r=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:a}=n&&n.getUser()||{},s=Tu({environment:r.environment||NI,release:r.release,user_segment:a,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",s),s}function Jv(e){const t=cs();if(!t)return{};const n=LI(Xo(e).trace_id||"",t,ih()),r=H3(e);if(!r)return n;const i=r&&r._frozenDynamicSamplingContext;if(i)return i;const{sampleRate:a,source:s}=r.metadata;a!=null&&(n.sample_rate=`${a}`);const o=Xo(r);return s&&s!=="url"&&(n.transaction=o.description),n.sampled=String(ZW(r)),t.emit&&t.emit("createDsc",n),n}function gbe(e,t){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:a}=t;A1t(e,t),r&&R1t(e,r),I1t(e,n),_1t(e,i),C1t(e,a)}function Fne(e,t){const{extra:n,tags:r,user:i,contexts:a,level:s,sdkProcessingMetadata:o,breadcrumbs:l,fingerprint:u,eventProcessors:d,attachments:f,propagationContext:p,transactionName:g,span:O}=t;TE(e,"extra",n),TE(e,"tags",r),TE(e,"user",i),TE(e,"contexts",a),TE(e,"sdkProcessingMetadata",o),s&&(e.level=s),g&&(e.transactionName=g),O&&(e.span=O),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...p}}function TE(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function A1t(e,t){const{extra:n,tags:r,user:i,contexts:a,level:s,transactionName:o}=t,l=Tu(n);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});const u=Tu(r);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});const d=Tu(i);d&&Object.keys(d).length&&(e.user={...d,...e.user});const f=Tu(a);f&&Object.keys(f).length&&(e.contexts={...f,...e.contexts}),s&&(e.level=s),o&&(e.transaction=o)}function _1t(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function C1t(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function R1t(e,t){e.contexts={trace:YW(t),...e.contexts};const n=H3(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:Jv(t),...e.sdkProcessingMetadata};const r=Xo(n).description;r&&(e.tags={transaction:r,...e.tags})}}function I1t(e,t){e.fingerprint=e.fingerprint?J1e(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}const N1t=100;let M7;class om{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Bne()}static clone(t){return t?t.clone():new om}clone(){const t=new om;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&C1(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t;if(n instanceof om){const r=n.getScopeData();this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&Object.keys(r.user).length&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint.length&&(this._fingerprint=r.fingerprint),n.getRequestSession()&&(this._requestSession=n.getRequestSession()),r.propagationContext&&(this._propagationContext=r.propagationContext)}else if(Zv(n)){const r=t;this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint&&(this._fingerprint=r.fingerprint),r.requestSession&&(this._requestSession=r.requestSession),r.propagationContext&&(this._propagationContext=r.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=Bne(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:N1t;if(r<=0)return this;const i={timestamp:bx(),...t},a=this._breadcrumbs;return a.push(i),this._breadcrumbs=a.length>r?a.slice(-r):a,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:n,_contexts:r,_tags:i,_extra:a,_user:s,_level:o,_fingerprint:l,_eventProcessors:u,_propagationContext:d,_sdkProcessingMetadata:f,_transactionName:p,_span:g}=this;return{breadcrumbs:t,attachments:n,contexts:r,tags:i,extra:a,user:s,level:o,fingerprint:l||[],eventProcessors:u,propagationContext:d,sdkProcessingMetadata:f,transactionName:p,span:g}}applyToEvent(t,n={},r=[]){gbe(t,this.getScopeData());const i=[...r,...GW(),...this._eventProcessors];return j3(i,t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:Da();if(!this._client)return _t.warn("No client configured on scope - will not capture exception!"),r;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...n,event_id:r},this),r}captureMessage(t,n,r){const i=r&&r.event_id?r.event_id:Da();if(!this._client)return _t.warn("No client configured on scope - will not capture message!"),i;const a=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:a,...r,event_id:i},this),i}captureEvent(t,n){const r=n&&n.event_id?n.event_id:Da();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(_t.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function D1t(){return M7||(M7=new om),M7}function Bne(){return{traceId:Da(),spanId:Da().substring(16)}}const jM="7.119.0",bbe=parseFloat(jM),P1t=100;class ybe{constructor(t,n,r,i=bbe){this._version=i;let a;n?a=n:(a=new om,a.setClient(t));let s;r?s=r:(s=new om,s.setClient(t)),this._stack=[{scope:a}],t&&this.bindClient(t),this._isolationScope=s}isOlderThan(t){return this._version(this.popScope(),i),i=>{throw this.popScope(),i}):(this.popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:Da(),i=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:i,...n,event_id:r}),r}captureMessage(t,n,r){const i=this._lastEventId=r&&r.event_id?r.event_id:Da(),a=new Error(t);return this.getScope().captureMessage(t,n,{originalException:t,syntheticException:a,...r,event_id:i}),i}captureEvent(t,n){const r=n&&n.event_id?n.event_id:Da();return t.type||(this._lastEventId=r),this.getScope().captureEvent(t,{...n,event_id:r}),r}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){const{scope:r,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:s=P1t}=i.getOptions&&i.getOptions()||{};if(s<=0)return;const l={timestamp:bx(),...t},u=a?II(()=>a(l,n)):l;u!==null&&(i.emit&&i.emit("beforeAddBreadcrumb",u,n),r.addBreadcrumb(u,s))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n),this.getIsolationScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n),this.getIsolationScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n),this.getIsolationScope().setContext(t,n)}configureScope(t){const{scope:n,client:r}=this.getStackTop();r&&t(n)}run(t){const n=Une(this);try{t(this)}finally{Une(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return In&&_t.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){const r=this._callExtensionMethod("startTransaction",t,n);return In&&!r&&(this.getClient()?_t.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init': +`),typeof l=="string"||l instanceof Uint8Array)a(l);else{let u;try{u=JSON.stringify(l)}catch{u=JSON.stringify(f0(l))}a(u)}}return typeof i=="string"?i:Hgt(i)}function Hgt(e){const t=e.reduce((i,a)=>i+a.length,0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}function Qgt(e,t){const n=typeof e.data=="string"?NM(e.data,t):e.data;return[Su({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const Wgt={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function Tne(e){return Wgt[e]}function J1e(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Vgt(e,t,n,r){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:$O(r)},...i&&{trace:Su({...i})}}}function qgt(e,t,n){const r=[{type:"client_report"},{timestamp:yx(),discarded_events:e}];return Z1(t?{dsn:t}:{},[r])}const Ggt=60*1e3;function Ygt(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?Ggt:r-t}function Zgt(e,t){return e[t]||e.all||0}function Xgt(e,t,n=Date.now()){return Zgt(e,t)>n}function Kgt(e,{statusCode:t,headers:n},r=Date.now()){const i={...e},a=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(a)for(const o of a.trim().split(",")){const[l,u,,,d]=o.split(":",5),f=parseInt(l,10),p=(isNaN(f)?60:f)*1e3;if(!u)i.all=r+p;else for(const g of u.split(";"))g==="metric_bucket"?(!d||d.split(";").includes("custom"))&&(i[g]=r+p):i[g]=r+p}else s?i.all=r+Ygt(s,r):t===429&&(i.all=r+60*1e3);return i}const In=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,RI="production";function $W(){return L1e("globalEventProcessors",()=>[])}function Jgt(e){$W().push(e)}function UC(e,t,n,r=0){return new fu((i,a)=>{const s=e[r];if(t===null||typeof s!="function")i(t);else{const o=s({...t},n);In&&s.id&&o===null&&kt.log(`Event processor "${s.id}" dropped event`),_I(o)?o.then(l=>UC(e,l,n,r+1).then(i)).then(null,a):UC(e,o,n,r+1).then(i).then(null,a)}})}function ebe(e){const t=vx(),n={sid:La(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>e1t(n)};return e&&I1(n,e),n}function I1(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||vx(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:La()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function tbe(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),I1(e,n)}function e1t(e){return Su({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const t1t=0,nbe=1;function FW(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:s,tags:o,origin:l}=Jo(e);return Su({data:r,op:i,parent_span_id:a,span_id:t,status:s,tags:o,trace_id:n,origin:l})}function II(e){const{traceId:t,spanId:n}=e.spanContext(),r=BW(e);return MW(t,n,r)}function NI(e){return typeof e=="number"?xne(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?xne(e.getTime()):vx()}function xne(e){return e>9999999999?e/1e3:e}function Jo(e){return n1t(e)?e.getSpanJSON():typeof e.toJSON=="function"?e.toJSON():{}}function n1t(e){return typeof e.getSpanJSON=="function"}function BW(e){const{traceFlags:t}=e.spanContext();return!!(t&nbe)}function r1t(e,t,n,r,i,a){const{normalizeDepth:s=3,normalizeMaxBreadth:o=1e3}=e,l={...t,event_id:t.event_id||n.event_id||La(),timestamp:t.timestamp||yx()},u=n.integrations||e.integrations.map(T=>T.name);i1t(l,e),o1t(l,u),t.type===void 0&&a1t(l,e.stackParser);const d=u1t(r,n.captureContext);n.mechanism&&tT(l,n.mechanism);const f=i&&i.getEventProcessors?i.getEventProcessors():[],p=y1t().getScopeData();if(a){const T=a.getScopeData();Cne(p,T)}if(d){const T=d.getScopeData();Cne(p,T)}const g=[...n.attachments||[],...p.attachments];g.length&&(n.attachments=g),sbe(l,p);const O=[...f,...$W(),...p.eventProcessors];return UC(O,l,n).then(T=>(T&&s1t(T),typeof s=="number"&&s>0?l1t(T,s,o):T))}function i1t(e,t){const{environment:n,release:r,dist:i,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:RI),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&i!==void 0&&(e.dist=i),e.message&&(e.message=qy(e.message,a));const s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=qy(s.value,a));const o=e.request;o&&o.url&&(o.url=qy(o.url,a))}const kne=new WeakMap;function a1t(e,t){const n=Gr._sentryDebugIds;if(!n)return;let r;const i=kne.get(t);i?r=i:(r=new Map,kne.set(t,r));const a=Object.keys(n).reduce((s,o)=>{let l;const u=r.get(o);u?l=u:(l=t(o),r.set(o,l));for(let d=l.length-1;d>=0;d--){const f=l[d];if(f.filename){s[f.filename]=n[o];break}}return s},{});try{e.exception.values.forEach(s=>{s.stacktrace.frames.forEach(o=>{o.filename&&(o.debug_id=a[o.filename])})})}catch{}}function s1t(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(i=>{i.debug_id&&(i.abs_path?t[i.abs_path]=i.debug_id:i.filename&&(t[i.filename]=i.debug_id),delete i.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach(r=>{n.push({type:"sourcemap",code_file:r,debug_id:t[r]})})}function o1t(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function l1t(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:f0(i.data,t,n)}}))},...e.user&&{user:f0(e.user,t,n)},...e.contexts&&{contexts:f0(e.contexts,t,n)},...e.extra&&{extra:f0(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=f0(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(i=>{const a=Jo(i).data;return a&&(i.data=f0(a,t,n)),i})),r}function u1t(e,t){if(!t)return e;const n=e?e.clone():new em;return n.update(t),n}function c1t(e,t){return jc().captureException(e,void 0)}function rbe(e,t){return jc().captureEvent(e,t)}function N1(e,t){jc().addBreadcrumb(e,t)}function d1t(...e){const t=jc();if(e.length===2){const[n,r]=e;return n?t.withScope(()=>(t.getStackTop().scope=n,r(n))):t.withScope(r)}return t.withScope(e[0])}function cs(){return jc().getClient()}function th(){return jc().getScope()}function Ane(e){const t=cs(),n=X1(),r=th(),{release:i,environment:a=RI}=t&&t.getOptions()||{},{userAgent:s}=Gr.navigator||{},o=ebe({release:i,environment:a,user:r.getUser()||n.getUser(),...s&&{userAgent:s},...e}),l=n.getSession();return l&&l.status==="ok"&&I1(l,{status:"exited"}),ibe(),n.setSession(o),r.setSession(o),o}function ibe(){const e=X1(),t=th(),n=t.getSession()||e.getSession();n&&tbe(n),abe(),e.setSession(),t.setSession()}function abe(){const e=X1(),t=th(),n=cs(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function _ne(e=!1){if(e){ibe();return}abe()}function zC(e){return e.transaction}function DI(e,t,n){const r=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:a}=n&&n.getUser()||{},s=Su({environment:r.environment||RI,release:r.release,user_segment:a,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",s),s}function Hv(e){const t=cs();if(!t)return{};const n=DI(Jo(e).trace_id||"",t,th()),r=zC(e);if(!r)return n;const i=r&&r._frozenDynamicSamplingContext;if(i)return i;const{sampleRate:a,source:s}=r.metadata;a!=null&&(n.sample_rate=`${a}`);const o=Jo(r);return s&&s!=="url"&&(n.transaction=o.description),n.sampled=String(BW(r)),t.emit&&t.emit("createDsc",n),n}function sbe(e,t){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:a}=t;f1t(e,t),r&&m1t(e,r),g1t(e,n),h1t(e,i),p1t(e,a)}function Cne(e,t){const{extra:n,tags:r,user:i,contexts:a,level:s,sdkProcessingMetadata:o,breadcrumbs:l,fingerprint:u,eventProcessors:d,attachments:f,propagationContext:p,transactionName:g,span:O}=t;kE(e,"extra",n),kE(e,"tags",r),kE(e,"user",i),kE(e,"contexts",a),kE(e,"sdkProcessingMetadata",o),s&&(e.level=s),g&&(e.transactionName=g),O&&(e.span=O),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...p}}function kE(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function f1t(e,t){const{extra:n,tags:r,user:i,contexts:a,level:s,transactionName:o}=t,l=Su(n);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});const u=Su(r);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});const d=Su(i);d&&Object.keys(d).length&&(e.user={...d,...e.user});const f=Su(a);f&&Object.keys(f).length&&(e.contexts={...f,...e.contexts}),s&&(e.level=s),o&&(e.transaction=o)}function h1t(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function p1t(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function m1t(e,t){e.contexts={trace:FW(t),...e.contexts};const n=zC(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:Hv(t),...e.sdkProcessingMetadata};const r=Jo(n).description;r&&(e.tags={transaction:r,...e.tags})}}function g1t(e,t){e.fingerprint=e.fingerprint?H1e(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}const b1t=100;let C7;class em{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Rne()}static clone(t){return t?t.clone():new em}clone(){const t=new em;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&I1(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t;if(n instanceof em){const r=n.getScopeData();this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&Object.keys(r.user).length&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint.length&&(this._fingerprint=r.fingerprint),n.getRequestSession()&&(this._requestSession=n.getRequestSession()),r.propagationContext&&(this._propagationContext=r.propagationContext)}else if(Uv(n)){const r=t;this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint&&(this._fingerprint=r.fingerprint),r.requestSession&&(this._requestSession=r.requestSession),r.propagationContext&&(this._propagationContext=r.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=Rne(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:b1t;if(r<=0)return this;const i={timestamp:yx(),...t},a=this._breadcrumbs;return a.push(i),this._breadcrumbs=a.length>r?a.slice(-r):a,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:n,_contexts:r,_tags:i,_extra:a,_user:s,_level:o,_fingerprint:l,_eventProcessors:u,_propagationContext:d,_sdkProcessingMetadata:f,_transactionName:p,_span:g}=this;return{breadcrumbs:t,attachments:n,contexts:r,tags:i,extra:a,user:s,level:o,fingerprint:l||[],eventProcessors:u,propagationContext:d,sdkProcessingMetadata:f,transactionName:p,span:g}}applyToEvent(t,n={},r=[]){sbe(t,this.getScopeData());const i=[...r,...$W(),...this._eventProcessors];return UC(i,t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:La();if(!this._client)return kt.warn("No client configured on scope - will not capture exception!"),r;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...n,event_id:r},this),r}captureMessage(t,n,r){const i=r&&r.event_id?r.event_id:La();if(!this._client)return kt.warn("No client configured on scope - will not capture message!"),i;const a=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:a,...r,event_id:i},this),i}captureEvent(t,n){const r=n&&n.event_id?n.event_id:La();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(kt.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function y1t(){return C7||(C7=new em),C7}function Rne(){return{traceId:La(),spanId:La().substring(16)}}const DM="7.119.0",obe=parseFloat(DM),v1t=100;class lbe{constructor(t,n,r,i=obe){this._version=i;let a;n?a=n:(a=new em,a.setClient(t));let s;r?s=r:(s=new em,s.setClient(t)),this._stack=[{scope:a}],t&&this.bindClient(t),this._isolationScope=s}isOlderThan(t){return this._version(this.popScope(),i),i=>{throw this.popScope(),i}):(this.popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:La(),i=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:i,...n,event_id:r}),r}captureMessage(t,n,r){const i=this._lastEventId=r&&r.event_id?r.event_id:La(),a=new Error(t);return this.getScope().captureMessage(t,n,{originalException:t,syntheticException:a,...r,event_id:i}),i}captureEvent(t,n){const r=n&&n.event_id?n.event_id:La();return t.type||(this._lastEventId=r),this.getScope().captureEvent(t,{...n,event_id:r}),r}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){const{scope:r,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:s=v1t}=i.getOptions&&i.getOptions()||{};if(s<=0)return;const l={timestamp:yx(),...t},u=a?CI(()=>a(l,n)):l;u!==null&&(i.emit&&i.emit("beforeAddBreadcrumb",u,n),r.addBreadcrumb(u,s))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n),this.getIsolationScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n),this.getIsolationScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n),this.getIsolationScope().setContext(t,n)}configureScope(t){const{scope:n,client:r}=this.getStackTop();r&&t(n)}run(t){const n=Ine(this);try{t(this)}finally{Ine(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return In&&kt.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){const r=this._callExtensionMethod("startTransaction",t,n);return In&&!r&&(this.getClient()?kt.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init': Sentry.addTracingExtensions(); Sentry.init({...}); -`):_t.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,r=n.getSession();r&&dbe(r),this._sendSessionUpdate(),n.setSession()}startSession(t){const{scope:n,client:r}=this.getStackTop(),{release:i,environment:a=NI}=r&&r.getOptions()||{},{userAgent:s}=Gr.navigator||{},o=cbe({release:i,environment:a,user:n.getUser(),...s&&{userAgent:s},...t}),l=n.getSession&&n.getSession();return l&&l.status==="ok"&&C1(l,{status:"exited"}),this.endSession(),n.setSession(o),o}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:n}=this.getStackTop(),r=t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_callExtensionMethod(t,...n){const i=vx().__SENTRY__;if(i&&i.extensions&&typeof i.extensions[t]=="function")return i.extensions[t].apply(this,n);In&&_t.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function vx(){return Gr.__SENTRY__=Gr.__SENTRY__||{extensions:{},hub:void 0},Gr}function Une(e){const t=vx(),n=HM(t);return vbe(t,e),n}function Hc(){const e=vx();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return L1t(e)}function Y1(){return Hc().getIsolationScope()}function L1t(e=vx()){return(!M1t(e)||HM(e).isOlderThan(bbe))&&vbe(e,new ybe),HM(e)}function M1t(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function HM(e){return W1e("hub",()=>new ybe,e)}function vbe(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function I1(e){return Hc().getScope().getTransaction()}let zne=!1;function $1t(){zne||(zne=!0,nbe(QM),rbe(QM))}function QM(){const e=I1();if(e){const t="internal_error";In&&_t.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}QM.tag="sentry_tracingErrorCallback";var jne;(function(e){const t="ok";e.Ok=t;const n="deadline_exceeded";e.DeadlineExceeded=n;const r="unauthenticated";e.Unauthenticated=r;const i="permission_denied";e.PermissionDenied=i;const a="not_found";e.NotFound=a;const s="resource_exhausted";e.ResourceExhausted=s;const o="invalid_argument";e.InvalidArgument=o;const l="unimplemented";e.Unimplemented=l;const u="unavailable";e.Unavailable=u;const d="internal_error";e.InternalError=d;const f="unknown_error";e.UnknownError=f;const p="cancelled";e.Cancelled=p;const g="already_exists";e.AlreadyExists=g;const O="failed_precondition";e.FailedPrecondition=O;const S="aborted";e.Aborted=S;const T="out_of_range";e.OutOfRange=T;const w="data_loss";e.DataLoss=w})(jne||(jne={}));function F1t(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}function XW(e,t){e.setTag("http.status_code",String(t)),e.setData("http.response.status_code",t);const n=F1t(t);n!=="unknown_error"&&e.setStatus(n)}function GO(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=cs(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function Obe(e){if(!GO())return;const t=z1t(e),n=Hc(),r=e.scope?e.scope.getSpan():B1t();if(e.onlyIfParent&&!r)return;const s=(e.scope||ih()).clone();return U1t(n,{parentSpan:r,spanContext:t,forceTransaction:e.forceTransaction,scope:s})}function B1t(){return ih().getSpan()}function U1t(e,{parentSpan:t,spanContext:n,forceTransaction:r,scope:i}){if(!GO())return;const a=Y1();let s;if(t&&!r)s=t.startChild(n);else if(t){const o=Jv(t),{traceId:l,spanId:u}=t.spanContext(),d=ZW(t);s=e.startTransaction({traceId:l,parentSpanId:u,parentSampled:d,...n,metadata:{dynamicSamplingContext:o,...n.metadata}})}else{const{traceId:o,dsc:l,parentSpanId:u,sampled:d}={...a.getPropagationContext(),...i.getPropagationContext()};s=e.startTransaction({traceId:o,parentSpanId:u,parentSampled:d,...n,metadata:{dynamicSamplingContext:l,...n.metadata}})}return i.setSpan(s),j1t(s,i,a),s}function z1t(e){if(e.startTime){const t={...e};return t.startTimestamp=PI(e.startTime),delete t.startTime,t}return e}const Sbe="_sentryScope",Ebe="_sentryIsolationScope";function j1t(e,t,n){e&&(_1(e,Ebe,n),_1(e,Sbe,t))}function H1t(e){return{scope:e[Sbe],isolationScope:e[Ebe]}}const o1="sentry.source",Ry="sentry.sample_rate",QE="sentry.op",Qg="sentry.origin",Q1t="profile_id";class wbe{constructor(t=1e3){this._maxlen=t,this.spans=[]}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class MI{constructor(t={}){this._traceId=t.traceId||Da(),this._spanId=t.spanId||Da().substring(16),this._startTime=t.startTimestamp||yx(),this.tags=t.tags?{...t.tags}:{},this.data=t.data?{...t.data}:{},this.instrumenter=t.instrumenter||"sentry",this._attributes={},this.setAttributes({[Qg]:t.origin||"manual",[QE]:t.op,...t.attributes}),this._name=t.name||t.description,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.status&&(this._status=t.status),t.endTimestamp&&(this._endTime=t.endTimestamp),t.exclusiveTime!==void 0&&(this._exclusiveTime=t.exclusiveTime),this._measurements=t.measurements?{...t.measurements}:{}}get name(){return this._name||""}set name(t){this.updateName(t)}get description(){return this._name}set description(t){this._name=t}get traceId(){return this._traceId}set traceId(t){this._traceId=t}get spanId(){return this._spanId}set spanId(t){this._spanId=t}set parentSpanId(t){this._parentSpanId=t}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(t){this._sampled=t}get attributes(){return this._attributes}set attributes(t){this._attributes=t}get startTimestamp(){return this._startTime}set startTimestamp(t){this._startTime=t}get endTimestamp(){return this._endTime}set endTimestamp(t){this._endTime=t}get status(){return this._status}set status(t){this._status=t}get op(){return this._attributes[QE]}set op(t){this.setAttribute(QE,t)}get origin(){return this._attributes[Qg]}set origin(t){this.setAttribute(Qg,t)}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?fbe:g1t}}startChild(t){const n=new MI({...t,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n);const r=H3(this);if(n.transaction=r,In&&r){const i=t&&t.op||"< unknown op >",a=Xo(n).description||"< unknown name >",s=r.spanContext().spanId,o=`[Tracing] Starting '${i}' span on transaction '${a}' (${s}).`;_t.log(o),this._logMessage=o}return n}setTag(t,n){return this.tags={...this.tags,[t]:n},this}setData(t,n){return this.data={...this.data,[t]:n},this}setAttribute(t,n){n===void 0?delete this._attributes[t]:this._attributes[t]=n}setAttributes(t){Object.keys(t).forEach(n=>this.setAttribute(n,t[n]))}setStatus(t){return this._status=t,this}setHttpStatus(t){return XW(this,t),this}setName(t){this.updateName(t)}updateName(t){return this._name=t,this}isSuccess(){return this._status==="ok"}finish(t){return this.end(t)}end(t){if(this._endTime)return;const n=H3(this);if(In&&n&&n.spanContext().spanId!==this._spanId){const r=this._logMessage;r&&_t.log(r.replace("Starting","Finishing"))}this._endTime=PI(t)}toTraceparent(){return DI(this)}toContext(){return Tu({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(t){return this.data=t.data||{},this._name=t.name||t.description,this._endTime=t.endTimestamp,this.op=t.op,this._parentSpanId=t.parentSpanId,this._sampled=t.sampled,this._spanId=t.spanId||this._spanId,this._startTime=t.startTimestamp||this._startTime,this._status=t.status,this.tags=t.tags||{},this._traceId=t.traceId||this._traceId,this}getTraceContext(){return YW(this)}getSpanJSON(){return Tu({data:this._getData(),description:this._name,op:this._attributes[QE],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Qg],_metrics_summary:void 0,profile_id:this._attributes[Q1t],exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){const{data:t,_attributes:n}=this,r=Object.keys(t).length>0,i=Object.keys(n).length>0;if(!(!r&&!i))return r&&i?{...t,...n}:r?t:n}}class Tbe extends MI{constructor(t,n){super(t),this._contexts={},this._hub=n||Hc(),this._name=t.name||"",this._metadata={...t.metadata},this._trimEnd=t.trimEnd,this.transaction=this;const r=this._metadata.dynamicSamplingContext;r&&(this._frozenDynamicSamplingContext={...r})}get name(){return this._name}set name(t){this.setName(t)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[o1]&&{source:this._attributes[o1]},...this._attributes[Ry]&&{sampleRate:this._attributes[Ry]}}}set metadata(t){this._metadata=t}setName(t,n="custom"){this._name=t,this.setAttribute(o1,n)}updateName(t){return this._name=t,this}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new wbe(t)),this.spanRecorder.add(this)}setContext(t,n){n===null?delete this._contexts[t]:this._contexts[t]=n}setMeasurement(t,n,r=""){this._measurements[t]={value:n,unit:r}}setMetadata(t){this._metadata={...this._metadata,...t}}end(t){const n=PI(t),r=this._finishTransaction(n);if(r)return this._hub.captureEvent(r)}toContext(){const t=super.toContext();return Tu({...t,name:this._name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this._name=t.name||"",this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){return Jv(this)}setHub(t){this._hub=t}getProfileId(){if(this._contexts!==void 0&&this._contexts.profile!==void 0)return this._contexts.profile.profile_id}_finishTransaction(t){if(this._endTime!==void 0)return;this._name||(In&&_t.warn("Transaction has no name, falling back to ``."),this._name=""),super.end(t);const n=this._hub.getClient();if(n&&n.emit&&n.emit("finishTransaction",this),this._sampled!==!0){In&&_t.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),n&&n.recordDroppedEvent("sample_rate","transaction");return}const r=this.spanRecorder?this.spanRecorder.spans.filter(d=>d!==this&&Xo(d).timestamp):[];if(this._trimEnd&&r.length>0){const d=r.map(f=>Xo(f).timestamp).filter(Boolean);this._endTime=d.reduce((f,p)=>f>p?f:p)}const{scope:i,isolationScope:a}=H1t(this),{metadata:s}=this,{source:o}=s,l={contexts:{...this._contexts,trace:YW(this)},spans:r,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...s,capturedSpanScope:i,capturedSpanIsolationScope:a,...Tu({dynamicSamplingContext:Jv(this)})},_metrics_summary:void 0,...o&&{transaction_info:{source:o}}};return Object.keys(this._measurements).length>0&&(In&&_t.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),l.measurements=this._measurements),In&&_t.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),l}}const A_={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},W1t="finishReason",qb=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class V1t extends wbe{constructor(t,n,r,i){super(i),this._pushActivity=t,this._popActivity=n,this.transactionSpanId=r}add(t){if(t.spanContext().spanId!==this.transactionSpanId){const n=t.end;t.end=(...r)=>(this._popActivity(t.spanContext().spanId),n.apply(t,r)),Xo(t).timestamp===void 0&&this._pushActivity(t.spanContext().spanId)}super.add(t)}}class q1t extends Tbe{constructor(t,n,r=A_.idleTimeout,i=A_.finalTimeout,a=A_.heartbeatInterval,s=!1,o=!1){super(t,n),this._idleHub=n,this._idleTimeout=r,this._finalTimeout=i,this._heartbeatInterval=a,this._onScope=s,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=qb[4],this._autoFinishAllowed=!o,s&&(In&&_t.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),n.getScope().setSpan(this)),o||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=qb[3],this.end())},this._finalTimeout)}end(t){const n=PI(t);if(this._finished=!0,this.activities={},this.op==="ui.action.click"&&this.setAttribute(W1t,this._finishReason),this.spanRecorder){In&&_t.log("[Tracing] finishing IdleTransaction",new Date(n*1e3).toISOString(),this.op);for(const r of this._beforeFinishCallbacks)r(this,n);this.spanRecorder.spans=this.spanRecorder.spans.filter(r=>{if(r.spanContext().spanId===this.spanContext().spanId)return!0;Xo(r).timestamp||(r.setStatus("cancelled"),r.end(n),In&&_t.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(r,void 0,2)));const{start_timestamp:i,timestamp:a}=Xo(r),s=i&&i{this._finished||this._pushActivity(i)},r=i=>{this._finished||this._popActivity(i)};this.spanRecorder=new V1t(n,r,this.spanContext().spanId,t),In&&_t.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:n}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=n===!1,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,Object.keys(this.activities).length===0&&this._idleTimeoutCanceledPermanently&&(this._finishReason=qb[5],this.end(t)))}setFinishReason(t){this._finishReason=t}sendAutoFinishSignal(){this._autoFinishAllowed||(In&&_t.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(t){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&Object.keys(this.activities).length===0&&(this._finishReason=qb[1],this.end(t))},this._idleTimeout)}_pushActivity(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),In&&_t.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,In&&_t.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(In&&_t.log(`[Tracing] popActivity ${t}`),delete this.activities[t],In&&_t.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){const n=yx();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=qb[5],this.end(n)):this._restartIdleTimeout(n+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?this._autoFinishAllowed&&(In&&_t.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=qb[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){In&&_t.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function xbe(e,t,n){if(!GO(t))return e.sampled=!1,e;if(e.sampled!==void 0)return e.setAttribute(Ry,Number(e.sampled)),e;let r;return typeof t.tracesSampler=="function"?(r=t.tracesSampler(n),e.setAttribute(Ry,Number(r))):n.parentSampled!==void 0?r=n.parentSampled:typeof t.tracesSampleRate<"u"?(r=t.tracesSampleRate,e.setAttribute(Ry,Number(r))):(r=1,e.setAttribute(Ry,r)),kbe(r)?r?(e.sampled=Math.random()1?(In&&_t.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function G1t(){const t=this.getScope().getSpan();return t?{"sentry-trace":DI(t)}:{}}function Y1t(e,t){const n=this.getClient(),r=n&&n.getOptions()||{},i=r.instrumenter||"sentry",a=e.instrumenter||"sentry";i!==a&&(In&&_t.error(`A transaction was started with instrumenter=\`${a}\`, but the SDK is configured with the \`${i}\` instrumenter. -The transaction will not be sampled. Please use the ${i} instrumentation to start transactions.`),e.sampled=!1);let s=new Tbe(e,this);return s=xbe(s,r,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...t}),s.isRecording()&&s.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",s),s}function Hne(e,t,n,r,i,a,s,o=!1){const l=e.getClient(),u=l&&l.getOptions()||{};let d=new q1t(t,e,n,r,s,i,o);return d=xbe(d,u,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...a}),d.isRecording()&&d.initSpanRecorder(u._experiments&&u._experiments.maxSpans),l&&l.emit&&l.emit("startTransaction",d),d}function Z1t(){const e=vx();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=Y1t),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=G1t),$1t())}function X1t(e,t,n){const r=I1();r&&r.setMeasurement(e,t,n)}function K1t(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function J1t(e,t,n,r){const i=ube(n),a={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:qO(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return G1(a,[s])}function ebt(e,t,n,r){const i=ube(n),a=e.type&&e.type!=="replay_event"?e.type:"event";K1t(e,n&&n.sdk);const s=o1t(e,i,r,t);return delete e.sdkProcessingMetadata,G1(s,[[{type:a},e]])}const tbt="7";function nbt(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function rbt(e){return`${nbt(e)}${e.projectId}/envelope/`}function ibt(e,t){return ggt({sentry_key:e.publicKey,sentry_version:tbt,...t&&{sentry_client:`${t.name}/${t.version}`}})}function abt(e,t={}){const n=typeof t=="string"?t:t.tunnel,r=typeof t=="string"||!t._metadata?void 0:t._metadata.sdk;return n||`${rbt(e)}?${ibt(e,r)}`}const Qne=[];function sbt(e){const t={};return e.forEach(n=>{const{name:r}=n,i=t[r];i&&!i.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.keys(t).map(n=>t[n])}function obt(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(s=>{s.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...t,...n]:typeof n=="function"?r=J1e(n(t)):r=t;const i=sbt(r),a=ubt(i,s=>s.name==="Debug");if(a!==-1){const[s]=i.splice(a,1);i.push(s)}return i}function lbt(e,t){const n={};return t.forEach(r=>{r&&Abe(e,r,n)}),n}function Wne(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function Abe(e,t,n){if(n[t.name]){In&&_t.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,Qne.indexOf(t.name)===-1&&(t.setupOnce(p1t,Hc),Qne.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),e.on&&typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(i,a)=>r(i,a,e))}if(e.addEventProcessor&&typeof t.processEvent=="function"){const r=t.processEvent.bind(t),i=Object.assign((a,s)=>r(a,s,e),{id:t.name});e.addEventProcessor(i)}In&&_t.log(`Integration installed: ${t.name}`)}function ubt(e,t){for(let n=0;n0?`|#${r.map(([a,s])=>`${a}:${s}`).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${i}|T${n.timestamp} -`}return t}function dbt(e,t,n,r){const i={sent_at:new Date().toISOString()};n&&n.sdk&&(i.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(i.dsn=qO(t));const a=fbt(e);return G1(i,[a])}function fbt(e){const t=cbt(e);return[{type:"statsd",length:t.length},t]}const Vne="Not capturing exception because it's already been captured.";class hbt{constructor(t){if(this._options=t,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=mgt(t.dsn):In&&_t.warn("No DSN provided, client will not send events."),this._dsn){const n=abt(this._dsn,t);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,r){if(Ane(t)){In&&_t.log(Vne);return}let i=n&&n.event_id;return this._process(this.eventFromException(t,n).then(a=>this._captureEvent(a,n,r)).then(a=>{i=a})),i}captureMessage(t,n,r,i){let a=r&&r.event_id;const s=zW(t)?t:String(t),o=jW(t)?this.eventFromMessage(s,n,r):this.eventFromException(t,r);return this._process(o.then(l=>this._captureEvent(l,r,i)).then(l=>{a=l})),a}captureEvent(t,n,r){if(n&&n.originalException&&Ane(n.originalException)){In&&_t.log(Vne);return}let i=n&&n.event_id;const s=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,n,s||r).then(o=>{i=o})),i}captureSession(t){typeof t.release!="string"?In&&_t.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),C1(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(i=>r&&i))):Kv(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}setupIntegrations(t){(t&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(t){return this.getIntegrationByName(t)}getIntegrationByName(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch{return In&&_t.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){const n=this._integrations[t.name];Abe(this,t,this._integrations),n||Wne(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=ebt(t,this._dsn,this._options._metadata,this._options.tunnel);for(const a of n.attachments||[])r=n1t(r,a1t(a,this._options.transportOptions&&this._options.transportOptions.textEncoder));const i=this._sendEnvelope(r);i&&i.then(a=>this.emit("afterSendEvent",t,a),null)}sendSession(t){const n=J1t(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const i=typeof r=="number"?r:1,a=`${t}:${n}`;In&&_t.log(`Recording outcome: "${a}"${i>1?` (${i} times)`:""}`),this._outcomes[a]=(this._outcomes[a]||0)+i}}captureAggregateMetrics(t){In&&_t.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);const n=dbt(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}on(t,n){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(n)}emit(t,...n){this._hooks[t]&&this._hooks[t].forEach(r=>r(...n))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=lbt(this,t),Wne(this,t),this._integrationsInitialized=!0}_updateSessionFromEvent(t,n){let r=!1,i=!1;const a=n.exception&&n.exception.values;if(a){i=!0;for(const l of a){const u=l.mechanism;if(u&&u.handled===!1){r=!0;break}}}const s=t.status==="ok";(s&&t.errors===0||s&&r)&&(C1(t,{...r&&{status:"crashed"},errors:t.errors||Number(i||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new gu(n=>{let r=0;const i=1,a=setInterval(()=>{this._numProcessing==0?(clearInterval(a),n(!0)):(r+=i,t&&r>=t&&(clearInterval(a),n(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,i=Y1()){const a=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&s.length>0&&(n.integrations=s),this.emit("preprocessEvent",t,n),y1t(a,t,n,r,this,i).then(o=>{if(o===null)return o;const l={...i.getPropagationContext(),...r?r.getPropagationContext():void 0};if(!(o.contexts&&o.contexts.trace)&&l){const{traceId:d,spanId:f,parentSpanId:p,dsc:g}=l;o.contexts={trace:{trace_id:d,span_id:f,parent_span_id:p},...o.contexts};const O=g||LI(d,this,r);o.sdkProcessingMetadata={dynamicSamplingContext:O,...o.sdkProcessingMetadata}}return o})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(i=>i.event_id,i=>{if(In){const a=i;a.logLevel==="log"?_t.log(a.message):_t.warn(a)}})}_processEvent(t,n,r){const i=this.getOptions(),{sampleRate:a}=i,s=Cbe(t),o=_be(t),l=t.type||"error",u=`before send for type \`${l}\``;if(o&&typeof a=="number"&&Math.random()>a)return this.recordDroppedEvent("sample_rate","error",t),VW(new Ef(`Discarding event because it's not included in the random sample (sampling rate = ${a})`,"log"));const d=l==="replay_event"?"replay":l,p=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,r,p).then(g=>{if(g===null)throw this.recordDroppedEvent("event_processor",d,t),new Ef("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return g;const S=mbt(i,g,n);return pbt(S,u)}).then(g=>{if(g===null){if(this.recordDroppedEvent("before_send",d,t),s){const w=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",w)}throw new Ef(`${u} returned \`null\`, will not send event.`,"log")}const O=r&&r.getSession();if(!s&&O&&this._updateSessionFromEvent(O,g),s){const T=g.sdkProcessingMetadata&&g.sdkProcessingMetadata.spanCountBeforeProcessing||0,w=g.spans?g.spans.length:0,x=T-w;x>0&&this.recordDroppedEvent("before_send","span",x)}const S=g.transaction_info;if(s&&S&&g.transaction!==t.transaction){const T="custom";g.transaction_info={...S,source:T}}return this.sendEvent(g,n),g}).then(null,g=>{throw g instanceof Ef?g:(this.captureException(g,{data:{__sentry__:!0},originalException:g}),new Ef(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. -Reason: ${g}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)return this._transport.send(t).then(null,n=>{In&&_t.error("Error while sending event:",n)});In&&_t.error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map(n=>{const[r,i]=n.split(":");return{reason:r,category:i,quantity:t[n]}})}}function pbt(e,t){const n=`${t} must return \`null\` or a valid event.`;if(RI(e))return e.then(r=>{if(!Zv(r)&&r!==null)throw new Ef(n);return r},r=>{throw new Ef(`${t} rejected with ${r}`)});if(!Zv(e)&&e!==null)throw new Ef(n);return e}function mbt(e,t,n){const{beforeSend:r,beforeSendTransaction:i}=e;if(_be(t)&&r)return r(t,n);if(Cbe(t)&&i){if(t.spans){const a=t.spans.length;t.sdkProcessingMetadata={...t.sdkProcessingMetadata,spanCountBeforeProcessing:a}}return i(t,n)}return t}function _be(e){return e.type===void 0}function Cbe(e){return e.type==="transaction"}function gbt(e,t){t.debug===!0&&(In?_t.enable():II(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),ih().update(t.initialScope);const r=new e(t);bbt(r),ybt(r)}function bbt(e){const n=Hc().getStackTop();n.client=e,n.scope.setClient(e)}function ybt(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}const vbt=30;function Rbe(e,t,n=Wgt(e.bufferSize||vbt)){let r={};const i=s=>n.drain(s);function a(s){const o=[];if(Nne(s,(f,p)=>{const g=Dne(p);if(f1t(r,g)){const O=qne(f,p);e.recordDroppedEvent("ratelimit_backoff",g,O)}else o.push(f)}),o.length===0)return Kv();const l=G1(s[0],o),u=f=>{Nne(l,(p,g)=>{const O=qne(p,g);e.recordDroppedEvent(f,Dne(g),O)})},d=()=>t({body:r1t(l,e.textEncoder)}).then(f=>(f.statusCode!==void 0&&(f.statusCode<200||f.statusCode>=300)&&In&&_t.warn(`Sentry responded with status code ${f.statusCode} to sent event.`),r=h1t(r,f),f),f=>{throw u("network_error"),f});return n.add(d).then(f=>f,f=>{if(f instanceof Ef)return In&&_t.error("Skipped sending event because buffer is full."),u("queue_overflow"),Kv();throw f})}return a.__sentry__baseTransport__=!0,{send:a,flush:i}}function qne(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function Obt(e,t){const n={sent_at:new Date().toISOString()};t&&(n.dsn=qO(t));const r=e.map(Sbt);return G1(n,r)}function Sbt(e){return[{type:"span"},e]}function Ibe(e,t,n=[t],r="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(a=>({name:`${r}:@sentry/${a}`,version:jM})),version:jM}),e._metadata=i}const Ebt=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],wbt=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],Nbe="InboundFilters",Tbt=(e={})=>({name:Nbe,setupOnce(){},processEvent(t,n,r){const i=r.getOptions(),a=xbt(e,i);return kbt(t,a)?null:t}}),Dbe=Tbt;Pm(Nbe,Dbe);function xbt(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Ebt],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:wbt],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function kbt(e,t){return t.ignoreInternal&&Nbt(e)?(In&&_t.warn(`Event dropped due to being internal Sentry Error. -Event: ${A0(e)}`),!0):Abt(e,t.ignoreErrors)?(In&&_t.warn(`Event dropped due to being matched by \`ignoreErrors\` option. -Event: ${A0(e)}`),!0):_bt(e,t.ignoreTransactions)?(In&&_t.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. -Event: ${A0(e)}`),!0):Cbt(e,t.denyUrls)?(In&&_t.warn(`Event dropped due to being matched by \`denyUrls\` option. -Event: ${A0(e)}. -Url: ${Q3(e)}`),!0):Rbt(e,t.allowUrls)?!1:(In&&_t.warn(`Event dropped due to not being matched by \`allowUrls\` option. -Event: ${A0(e)}. -Url: ${Q3(e)}`),!0)}function Abt(e,t){return e.type||!t||!t.length?!1:Ibt(e).some(n=>gx(n,t))}function _bt(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?gx(n,t):!1}function Cbt(e,t){if(!t||!t.length)return!1;const n=Q3(e);return n?gx(n,t):!1}function Rbt(e,t){if(!t||!t.length)return!0;const n=Q3(e);return n?gx(n,t):!0}function Ibt(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),In&&t.length===0&&_t.error(`Could not extract message for event ${A0(e)}`),t}function Nbt(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function Dbt(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!==""&&n.filename!=="[native code]")return n.filename||null}return null}function Q3(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?Dbt(t):null}catch{return In&&_t.error(`Cannot extract url for event ${A0(e)}`),null}}let Gne;const Pbe="FunctionToString",Yne=new WeakMap,Pbt=()=>({name:Pbe,setupOnce(){Gne=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=QW(this),n=Yne.has(cs())&&t!==void 0?t:this;return Gne.apply(n,e)}}catch{}},setup(e){Yne.set(e,!0)}}),Lbe=Pbt;Pm(Pbe,Lbe);const Ci=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,nr=Gr;function Lbt(){nr.document?nr.document.addEventListener("visibilitychange",()=>{const e=I1();if(nr.document.hidden&&e){const t="cancelled",{op:n,status:r}=Xo(e);Ci&&_t.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${n}`),r||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.end()}}):Ci&&_t.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const Ox=(e,t,n)=>{let r,i;return a=>{t.value>=0&&(a||n)&&(i=t.value-(r||0),(i||r===void 0)&&(r=t.value,t.delta=i,e(t)))}},Mbt=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,$bt=()=>{const e=nr.performance.timing,t=nr.performance.navigation.type,n={entryType:"navigation",startTime:0,type:t==2?"back_forward":t===1?"reload":"navigate"};for(const r in e)r!=="navigationStart"&&r!=="toJSON"&&(n[r]=Math.max(e[r]-e.navigationStart,0));return n},$I=()=>nr.__WEB_VITALS_POLYFILL__?nr.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||$bt()):nr.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],KW=()=>{const e=$I();return e&&e.activationStart||0},Sx=(e,t)=>{const n=$I();let r="navigate";return n&&(nr.document&&nr.document.prerendering||KW()>0?r="prerender":r=n.type.replace(/_/g,"-")),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:Mbt(),navigationType:r}},YO=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(i=>{t(i.getEntries())});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},Ex=(e,t)=>{const n=r=>{(r.type==="pagehide"||nr.document.visibilityState==="hidden")&&(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};nr.document&&(addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0))},Fbt=(e,t={})=>{const n=Sx("CLS",0);let r,i=0,a=[];const s=l=>{l.forEach(u=>{if(!u.hadRecentInput){const d=a[0],f=a[a.length-1];i&&a.length!==0&&u.startTime-f.startTime<1e3&&u.startTime-d.startTime<5e3?(i+=u.value,a.push(u)):(i=u.value,a=[u]),i>n.value&&(n.value=i,n.entries=a,r&&r())}})},o=YO("layout-shift",s);if(o){r=Ox(e,n,t.reportAllChanges);const l=()=>{s(o.takeRecords()),r(!0)};return Ex(l),l}};let W3=-1;const Bbt=()=>{nr.document&&nr.document.visibilityState&&(W3=nr.document.visibilityState==="hidden"&&!nr.document.prerendering?0:1/0)},Ubt=()=>{Ex(({timeStamp:e})=>{W3=e},!0)},JW=()=>(W3<0&&(Bbt(),Ubt()),{get firstHiddenTime(){return W3}}),zbt=e=>{const t=JW(),n=Sx("FID");let r;const i=o=>{o.startTime{o.forEach(i)},s=YO("first-input",a);r=Ox(e,n),s&&Ex(()=>{a(s.takeRecords()),s.disconnect()},!0)};let Mbe=0,$7=1/0,T4=0;const jbt=e=>{e.forEach(t=>{t.interactionId&&($7=Math.min($7,t.interactionId),T4=Math.max(T4,t.interactionId),Mbe=T4?(T4-$7)/7+1:0)})};let WM;const Hbt=()=>WM?Mbe:performance.interactionCount||0,Qbt=()=>{"interactionCount"in performance||WM||(WM=YO("event",jbt,{type:"event",buffered:!0,durationThreshold:0}))},$be=()=>Hbt(),Zne=10,zh=[],F7={},Xne=e=>{const t=zh[zh.length-1],n=F7[e.interactionId];if(n||zh.lengtht.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{const r={id:e.interactionId,latency:e.duration,entries:[e]};F7[r.id]=r,zh.push(r)}zh.sort((r,i)=>i.latency-r.latency),zh.splice(Zne).forEach(r=>{delete F7[r.id]})}},Wbt=()=>{const e=Math.min(zh.length-1,Math.floor($be()/50));return zh[e]},Vbt=(e,t)=>{t=t||{},Qbt();const n=Sx("INP");let r;const i=s=>{s.forEach(l=>{l.interactionId&&Xne(l),l.entryType==="first-input"&&!zh.some(d=>d.entries.some(f=>l.duration===f.duration&&l.startTime===f.startTime))&&Xne(l)});const o=Wbt();o&&o.latency!==n.value&&(n.value=o.latency,n.entries=o.entries,r())},a=YO("event",i,{durationThreshold:t.durationThreshold||40});r=Ox(e,n,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),Ex(()=>{i(a.takeRecords()),n.value<0&&$be()>0&&(n.value=0,n.entries=[]),r(!0)}))},Kne={},qbt=e=>{const t=JW(),n=Sx("LCP");let r;const i=s=>{const o=s[s.length-1];if(o){const l=Math.max(o.startTime-KW(),0);l{Kne[n.id]||(i(a.takeRecords()),a.disconnect(),Kne[n.id]=!0,r(!0))};return["keydown","click"].forEach(o=>{nr.document&&addEventListener(o,s,{once:!0,capture:!0})}),Ex(s,!0),s}},VM=e=>{nr.document&&(nr.document.prerendering?addEventListener("prerenderingchange",()=>VM(e),!0):nr.document.readyState!=="complete"?addEventListener("load",()=>VM(e),!0):setTimeout(e,0))},Gbt=(e,t)=>{t=t||{};const n=Sx("TTFB"),r=Ox(e,n,t.reportAllChanges);VM(()=>{const i=$I();if(i){if(n.value=Math.max(i.responseStart-KW(),0),n.value<0||n.value>performance.now())return;n.entries=[i],r(!0)}})},D2={},V3={};let Fbe,Bbe,Ube,zbe,jbe;function Ybt(e,t=!1){return wx("cls",e,eyt,Fbe,t)}function Zbt(e,t=!1){return wx("lcp",e,nyt,Ube,t)}function Xbt(e){return wx("ttfb",e,ryt,zbe)}function Kbt(e){return wx("fid",e,tyt,Bbe)}function Jbt(e){return wx("inp",e,iyt,jbe)}function eT(e,t){return Hbe(e,t),V3[e]||(ayt(e),V3[e]=!0),Qbe(e,t)}function ZO(e,t){const n=D2[e];if(!(!n||!n.length))for(const r of n)try{r(t)}catch(i){Ci&&_t.error(`Error while triggering instrumentation handler. +`):kt.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,r=n.getSession();r&&tbe(r),this._sendSessionUpdate(),n.setSession()}startSession(t){const{scope:n,client:r}=this.getStackTop(),{release:i,environment:a=RI}=r&&r.getOptions()||{},{userAgent:s}=Gr.navigator||{},o=ebe({release:i,environment:a,user:n.getUser(),...s&&{userAgent:s},...t}),l=n.getSession&&n.getSession();return l&&l.status==="ok"&&I1(l,{status:"exited"}),this.endSession(),n.setSession(o),o}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:n}=this.getStackTop(),r=t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_callExtensionMethod(t,...n){const i=Ox().__SENTRY__;if(i&&i.extensions&&typeof i.extensions[t]=="function")return i.extensions[t].apply(this,n);In&&kt.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function Ox(){return Gr.__SENTRY__=Gr.__SENTRY__||{extensions:{},hub:void 0},Gr}function Ine(e){const t=Ox(),n=PM(t);return ube(t,e),n}function jc(){const e=Ox();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return O1t(e)}function X1(){return jc().getIsolationScope()}function O1t(e=Ox()){return(!S1t(e)||PM(e).isOlderThan(obe))&&ube(e,new lbe),PM(e)}function S1t(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function PM(e){return L1e("hub",()=>new lbe,e)}function ube(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function D1(e){return jc().getScope().getTransaction()}let Nne=!1;function E1t(){Nne||(Nne=!0,V1e(LM),q1e(LM))}function LM(){const e=D1();if(e){const t="internal_error";In&&kt.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}LM.tag="sentry_tracingErrorCallback";var Dne;(function(e){const t="ok";e.Ok=t;const n="deadline_exceeded";e.DeadlineExceeded=n;const r="unauthenticated";e.Unauthenticated=r;const i="permission_denied";e.PermissionDenied=i;const a="not_found";e.NotFound=a;const s="resource_exhausted";e.ResourceExhausted=s;const o="invalid_argument";e.InvalidArgument=o;const l="unimplemented";e.Unimplemented=l;const u="unavailable";e.Unavailable=u;const d="internal_error";e.InternalError=d;const f="unknown_error";e.UnknownError=f;const p="cancelled";e.Cancelled=p;const g="already_exists";e.AlreadyExists=g;const O="failed_precondition";e.FailedPrecondition=O;const S="aborted";e.Aborted=S;const T="out_of_range";e.OutOfRange=T;const w="data_loss";e.DataLoss=w})(Dne||(Dne={}));function w1t(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}function UW(e,t){e.setTag("http.status_code",String(t)),e.setData("http.response.status_code",t);const n=w1t(t);n!=="unknown_error"&&e.setStatus(n)}function FO(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=cs(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function cbe(e){if(!FO())return;const t=k1t(e),n=jc(),r=e.scope?e.scope.getSpan():T1t();if(e.onlyIfParent&&!r)return;const s=(e.scope||th()).clone();return x1t(n,{parentSpan:r,spanContext:t,forceTransaction:e.forceTransaction,scope:s})}function T1t(){return th().getSpan()}function x1t(e,{parentSpan:t,spanContext:n,forceTransaction:r,scope:i}){if(!FO())return;const a=X1();let s;if(t&&!r)s=t.startChild(n);else if(t){const o=Hv(t),{traceId:l,spanId:u}=t.spanContext(),d=BW(t);s=e.startTransaction({traceId:l,parentSpanId:u,parentSampled:d,...n,metadata:{dynamicSamplingContext:o,...n.metadata}})}else{const{traceId:o,dsc:l,parentSpanId:u,sampled:d}={...a.getPropagationContext(),...i.getPropagationContext()};s=e.startTransaction({traceId:o,parentSpanId:u,parentSampled:d,...n,metadata:{dynamicSamplingContext:l,...n.metadata}})}return i.setSpan(s),A1t(s,i,a),s}function k1t(e){if(e.startTime){const t={...e};return t.startTimestamp=NI(e.startTime),delete t.startTime,t}return e}const dbe="_sentryScope",fbe="_sentryIsolationScope";function A1t(e,t,n){e&&(R1(e,fbe,n),R1(e,dbe,t))}function _1t(e){return{scope:e[dbe],isolationScope:e[fbe]}}const c1="sentry.source",Ey="sentry.sample_rate",VE="sentry.op",qg="sentry.origin",C1t="profile_id";class hbe{constructor(t=1e3){this._maxlen=t,this.spans=[]}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class PI{constructor(t={}){this._traceId=t.traceId||La(),this._spanId=t.spanId||La().substring(16),this._startTime=t.startTimestamp||vx(),this.tags=t.tags?{...t.tags}:{},this.data=t.data?{...t.data}:{},this.instrumenter=t.instrumenter||"sentry",this._attributes={},this.setAttributes({[qg]:t.origin||"manual",[VE]:t.op,...t.attributes}),this._name=t.name||t.description,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.status&&(this._status=t.status),t.endTimestamp&&(this._endTime=t.endTimestamp),t.exclusiveTime!==void 0&&(this._exclusiveTime=t.exclusiveTime),this._measurements=t.measurements?{...t.measurements}:{}}get name(){return this._name||""}set name(t){this.updateName(t)}get description(){return this._name}set description(t){this._name=t}get traceId(){return this._traceId}set traceId(t){this._traceId=t}get spanId(){return this._spanId}set spanId(t){this._spanId=t}set parentSpanId(t){this._parentSpanId=t}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(t){this._sampled=t}get attributes(){return this._attributes}set attributes(t){this._attributes=t}get startTimestamp(){return this._startTime}set startTimestamp(t){this._startTime=t}get endTimestamp(){return this._endTime}set endTimestamp(t){this._endTime=t}get status(){return this._status}set status(t){this._status=t}get op(){return this._attributes[VE]}set op(t){this.setAttribute(VE,t)}get origin(){return this._attributes[qg]}set origin(t){this.setAttribute(qg,t)}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?nbe:t1t}}startChild(t){const n=new PI({...t,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n);const r=zC(this);if(n.transaction=r,In&&r){const i=t&&t.op||"< unknown op >",a=Jo(n).description||"< unknown name >",s=r.spanContext().spanId,o=`[Tracing] Starting '${i}' span on transaction '${a}' (${s}).`;kt.log(o),this._logMessage=o}return n}setTag(t,n){return this.tags={...this.tags,[t]:n},this}setData(t,n){return this.data={...this.data,[t]:n},this}setAttribute(t,n){n===void 0?delete this._attributes[t]:this._attributes[t]=n}setAttributes(t){Object.keys(t).forEach(n=>this.setAttribute(n,t[n]))}setStatus(t){return this._status=t,this}setHttpStatus(t){return UW(this,t),this}setName(t){this.updateName(t)}updateName(t){return this._name=t,this}isSuccess(){return this._status==="ok"}finish(t){return this.end(t)}end(t){if(this._endTime)return;const n=zC(this);if(In&&n&&n.spanContext().spanId!==this._spanId){const r=this._logMessage;r&&kt.log(r.replace("Starting","Finishing"))}this._endTime=NI(t)}toTraceparent(){return II(this)}toContext(){return Su({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(t){return this.data=t.data||{},this._name=t.name||t.description,this._endTime=t.endTimestamp,this.op=t.op,this._parentSpanId=t.parentSpanId,this._sampled=t.sampled,this._spanId=t.spanId||this._spanId,this._startTime=t.startTimestamp||this._startTime,this._status=t.status,this.tags=t.tags||{},this._traceId=t.traceId||this._traceId,this}getTraceContext(){return FW(this)}getSpanJSON(){return Su({data:this._getData(),description:this._name,op:this._attributes[VE],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[qg],_metrics_summary:void 0,profile_id:this._attributes[C1t],exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){const{data:t,_attributes:n}=this,r=Object.keys(t).length>0,i=Object.keys(n).length>0;if(!(!r&&!i))return r&&i?{...t,...n}:r?t:n}}class pbe extends PI{constructor(t,n){super(t),this._contexts={},this._hub=n||jc(),this._name=t.name||"",this._metadata={...t.metadata},this._trimEnd=t.trimEnd,this.transaction=this;const r=this._metadata.dynamicSamplingContext;r&&(this._frozenDynamicSamplingContext={...r})}get name(){return this._name}set name(t){this.setName(t)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[c1]&&{source:this._attributes[c1]},...this._attributes[Ey]&&{sampleRate:this._attributes[Ey]}}}set metadata(t){this._metadata=t}setName(t,n="custom"){this._name=t,this.setAttribute(c1,n)}updateName(t){return this._name=t,this}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new hbe(t)),this.spanRecorder.add(this)}setContext(t,n){n===null?delete this._contexts[t]:this._contexts[t]=n}setMeasurement(t,n,r=""){this._measurements[t]={value:n,unit:r}}setMetadata(t){this._metadata={...this._metadata,...t}}end(t){const n=NI(t),r=this._finishTransaction(n);if(r)return this._hub.captureEvent(r)}toContext(){const t=super.toContext();return Su({...t,name:this._name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this._name=t.name||"",this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){return Hv(this)}setHub(t){this._hub=t}getProfileId(){if(this._contexts!==void 0&&this._contexts.profile!==void 0)return this._contexts.profile.profile_id}_finishTransaction(t){if(this._endTime!==void 0)return;this._name||(In&&kt.warn("Transaction has no name, falling back to ``."),this._name=""),super.end(t);const n=this._hub.getClient();if(n&&n.emit&&n.emit("finishTransaction",this),this._sampled!==!0){In&&kt.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),n&&n.recordDroppedEvent("sample_rate","transaction");return}const r=this.spanRecorder?this.spanRecorder.spans.filter(d=>d!==this&&Jo(d).timestamp):[];if(this._trimEnd&&r.length>0){const d=r.map(f=>Jo(f).timestamp).filter(Boolean);this._endTime=d.reduce((f,p)=>f>p?f:p)}const{scope:i,isolationScope:a}=_1t(this),{metadata:s}=this,{source:o}=s,l={contexts:{...this._contexts,trace:FW(this)},spans:r,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...s,capturedSpanScope:i,capturedSpanIsolationScope:a,...Su({dynamicSamplingContext:Hv(this)})},_metrics_summary:void 0,...o&&{transaction_info:{source:o}}};return Object.keys(this._measurements).length>0&&(In&&kt.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),l.measurements=this._measurements),In&&kt.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),l}}const A_={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},R1t="finishReason",Bb=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class I1t extends hbe{constructor(t,n,r,i){super(i),this._pushActivity=t,this._popActivity=n,this.transactionSpanId=r}add(t){if(t.spanContext().spanId!==this.transactionSpanId){const n=t.end;t.end=(...r)=>(this._popActivity(t.spanContext().spanId),n.apply(t,r)),Jo(t).timestamp===void 0&&this._pushActivity(t.spanContext().spanId)}super.add(t)}}class N1t extends pbe{constructor(t,n,r=A_.idleTimeout,i=A_.finalTimeout,a=A_.heartbeatInterval,s=!1,o=!1){super(t,n),this._idleHub=n,this._idleTimeout=r,this._finalTimeout=i,this._heartbeatInterval=a,this._onScope=s,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=Bb[4],this._autoFinishAllowed=!o,s&&(In&&kt.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),n.getScope().setSpan(this)),o||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=Bb[3],this.end())},this._finalTimeout)}end(t){const n=NI(t);if(this._finished=!0,this.activities={},this.op==="ui.action.click"&&this.setAttribute(R1t,this._finishReason),this.spanRecorder){In&&kt.log("[Tracing] finishing IdleTransaction",new Date(n*1e3).toISOString(),this.op);for(const r of this._beforeFinishCallbacks)r(this,n);this.spanRecorder.spans=this.spanRecorder.spans.filter(r=>{if(r.spanContext().spanId===this.spanContext().spanId)return!0;Jo(r).timestamp||(r.setStatus("cancelled"),r.end(n),In&&kt.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(r,void 0,2)));const{start_timestamp:i,timestamp:a}=Jo(r),s=i&&i{this._finished||this._pushActivity(i)},r=i=>{this._finished||this._popActivity(i)};this.spanRecorder=new I1t(n,r,this.spanContext().spanId,t),In&&kt.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:n}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=n===!1,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,Object.keys(this.activities).length===0&&this._idleTimeoutCanceledPermanently&&(this._finishReason=Bb[5],this.end(t)))}setFinishReason(t){this._finishReason=t}sendAutoFinishSignal(){this._autoFinishAllowed||(In&&kt.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(t){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&Object.keys(this.activities).length===0&&(this._finishReason=Bb[1],this.end(t))},this._idleTimeout)}_pushActivity(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),In&&kt.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,In&&kt.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(In&&kt.log(`[Tracing] popActivity ${t}`),delete this.activities[t],In&&kt.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){const n=vx();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=Bb[5],this.end(n)):this._restartIdleTimeout(n+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?this._autoFinishAllowed&&(In&&kt.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=Bb[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){In&&kt.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function mbe(e,t,n){if(!FO(t))return e.sampled=!1,e;if(e.sampled!==void 0)return e.setAttribute(Ey,Number(e.sampled)),e;let r;return typeof t.tracesSampler=="function"?(r=t.tracesSampler(n),e.setAttribute(Ey,Number(r))):n.parentSampled!==void 0?r=n.parentSampled:typeof t.tracesSampleRate<"u"?(r=t.tracesSampleRate,e.setAttribute(Ey,Number(r))):(r=1,e.setAttribute(Ey,r)),gbe(r)?r?(e.sampled=Math.random()1?(In&&kt.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function D1t(){const t=this.getScope().getSpan();return t?{"sentry-trace":II(t)}:{}}function P1t(e,t){const n=this.getClient(),r=n&&n.getOptions()||{},i=r.instrumenter||"sentry",a=e.instrumenter||"sentry";i!==a&&(In&&kt.error(`A transaction was started with instrumenter=\`${a}\`, but the SDK is configured with the \`${i}\` instrumenter. +The transaction will not be sampled. Please use the ${i} instrumentation to start transactions.`),e.sampled=!1);let s=new pbe(e,this);return s=mbe(s,r,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...t}),s.isRecording()&&s.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",s),s}function Pne(e,t,n,r,i,a,s,o=!1){const l=e.getClient(),u=l&&l.getOptions()||{};let d=new N1t(t,e,n,r,s,i,o);return d=mbe(d,u,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...a}),d.isRecording()&&d.initSpanRecorder(u._experiments&&u._experiments.maxSpans),l&&l.emit&&l.emit("startTransaction",d),d}function L1t(){const e=Ox();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=P1t),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=D1t),E1t())}function M1t(e,t,n){const r=D1();r&&r.setMeasurement(e,t,n)}function $1t(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function F1t(e,t,n,r){const i=J1e(n),a={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:$O(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return Z1(a,[s])}function B1t(e,t,n,r){const i=J1e(n),a=e.type&&e.type!=="replay_event"?e.type:"event";$1t(e,n&&n.sdk);const s=Vgt(e,i,r,t);return delete e.sdkProcessingMetadata,Z1(s,[[{type:a},e]])}const U1t="7";function z1t(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function j1t(e){return`${z1t(e)}${e.projectId}/envelope/`}function H1t(e,t){return tgt({sentry_key:e.publicKey,sentry_version:U1t,...t&&{sentry_client:`${t.name}/${t.version}`}})}function Q1t(e,t={}){const n=typeof t=="string"?t:t.tunnel,r=typeof t=="string"||!t._metadata?void 0:t._metadata.sdk;return n||`${j1t(e)}?${H1t(e,r)}`}const Lne=[];function W1t(e){const t={};return e.forEach(n=>{const{name:r}=n,i=t[r];i&&!i.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.keys(t).map(n=>t[n])}function V1t(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(s=>{s.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...t,...n]:typeof n=="function"?r=H1e(n(t)):r=t;const i=W1t(r),a=G1t(i,s=>s.name==="Debug");if(a!==-1){const[s]=i.splice(a,1);i.push(s)}return i}function q1t(e,t){const n={};return t.forEach(r=>{r&&bbe(e,r,n)}),n}function Mne(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function bbe(e,t,n){if(n[t.name]){In&&kt.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,Lne.indexOf(t.name)===-1&&(t.setupOnce(Jgt,jc),Lne.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),e.on&&typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(i,a)=>r(i,a,e))}if(e.addEventProcessor&&typeof t.processEvent=="function"){const r=t.processEvent.bind(t),i=Object.assign((a,s)=>r(a,s,e),{id:t.name});e.addEventProcessor(i)}In&&kt.log(`Integration installed: ${t.name}`)}function G1t(e,t){for(let n=0;n0?`|#${r.map(([a,s])=>`${a}:${s}`).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${i}|T${n.timestamp} +`}return t}function Z1t(e,t,n,r){const i={sent_at:new Date().toISOString()};n&&n.sdk&&(i.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(i.dsn=$O(t));const a=X1t(e);return Z1(i,[a])}function X1t(e){const t=Y1t(e);return[{type:"statsd",length:t.length},t]}const $ne="Not capturing exception because it's already been captured.";class K1t{constructor(t){if(this._options=t,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=egt(t.dsn):In&&kt.warn("No DSN provided, client will not send events."),this._dsn){const n=Q1t(this._dsn,t);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,r){if(yne(t)){In&&kt.log($ne);return}let i=n&&n.event_id;return this._process(this.eventFromException(t,n).then(a=>this._captureEvent(a,n,r)).then(a=>{i=a})),i}captureMessage(t,n,r,i){let a=r&&r.event_id;const s=RW(t)?t:String(t),o=IW(t)?this.eventFromMessage(s,n,r):this.eventFromException(t,r);return this._process(o.then(l=>this._captureEvent(l,r,i)).then(l=>{a=l})),a}captureEvent(t,n,r){if(n&&n.originalException&&yne(n.originalException)){In&&kt.log($ne);return}let i=n&&n.event_id;const s=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,n,s||r).then(o=>{i=o})),i}captureSession(t){typeof t.release!="string"?In&&kt.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),I1(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(i=>r&&i))):jv(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}setupIntegrations(t){(t&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(t){return this.getIntegrationByName(t)}getIntegrationByName(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch{return In&&kt.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){const n=this._integrations[t.name];bbe(this,t,this._integrations),n||Mne(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=B1t(t,this._dsn,this._options._metadata,this._options.tunnel);for(const a of n.attachments||[])r=zgt(r,Qgt(a,this._options.transportOptions&&this._options.transportOptions.textEncoder));const i=this._sendEnvelope(r);i&&i.then(a=>this.emit("afterSendEvent",t,a),null)}sendSession(t){const n=F1t(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const i=typeof r=="number"?r:1,a=`${t}:${n}`;In&&kt.log(`Recording outcome: "${a}"${i>1?` (${i} times)`:""}`),this._outcomes[a]=(this._outcomes[a]||0)+i}}captureAggregateMetrics(t){In&&kt.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);const n=Z1t(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}on(t,n){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(n)}emit(t,...n){this._hooks[t]&&this._hooks[t].forEach(r=>r(...n))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=q1t(this,t),Mne(this,t),this._integrationsInitialized=!0}_updateSessionFromEvent(t,n){let r=!1,i=!1;const a=n.exception&&n.exception.values;if(a){i=!0;for(const l of a){const u=l.mechanism;if(u&&u.handled===!1){r=!0;break}}}const s=t.status==="ok";(s&&t.errors===0||s&&r)&&(I1(t,{...r&&{status:"crashed"},errors:t.errors||Number(i||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new fu(n=>{let r=0;const i=1,a=setInterval(()=>{this._numProcessing==0?(clearInterval(a),n(!0)):(r+=i,t&&r>=t&&(clearInterval(a),n(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,i=X1()){const a=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&s.length>0&&(n.integrations=s),this.emit("preprocessEvent",t,n),r1t(a,t,n,r,this,i).then(o=>{if(o===null)return o;const l={...i.getPropagationContext(),...r?r.getPropagationContext():void 0};if(!(o.contexts&&o.contexts.trace)&&l){const{traceId:d,spanId:f,parentSpanId:p,dsc:g}=l;o.contexts={trace:{trace_id:d,span_id:f,parent_span_id:p},...o.contexts};const O=g||DI(d,this,r);o.sdkProcessingMetadata={dynamicSamplingContext:O,...o.sdkProcessingMetadata}}return o})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(i=>i.event_id,i=>{if(In){const a=i;a.logLevel==="log"?kt.log(a.message):kt.warn(a)}})}_processEvent(t,n,r){const i=this.getOptions(),{sampleRate:a}=i,s=vbe(t),o=ybe(t),l=t.type||"error",u=`before send for type \`${l}\``;if(o&&typeof a=="number"&&Math.random()>a)return this.recordDroppedEvent("sample_rate","error",t),LW(new yf(`Discarding event because it's not included in the random sample (sampling rate = ${a})`,"log"));const d=l==="replay_event"?"replay":l,p=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,r,p).then(g=>{if(g===null)throw this.recordDroppedEvent("event_processor",d,t),new yf("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return g;const S=ebt(i,g,n);return J1t(S,u)}).then(g=>{if(g===null){if(this.recordDroppedEvent("before_send",d,t),s){const w=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",w)}throw new yf(`${u} returned \`null\`, will not send event.`,"log")}const O=r&&r.getSession();if(!s&&O&&this._updateSessionFromEvent(O,g),s){const T=g.sdkProcessingMetadata&&g.sdkProcessingMetadata.spanCountBeforeProcessing||0,w=g.spans?g.spans.length:0,x=T-w;x>0&&this.recordDroppedEvent("before_send","span",x)}const S=g.transaction_info;if(s&&S&&g.transaction!==t.transaction){const T="custom";g.transaction_info={...S,source:T}}return this.sendEvent(g,n),g}).then(null,g=>{throw g instanceof yf?g:(this.captureException(g,{data:{__sentry__:!0},originalException:g}),new yf(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. +Reason: ${g}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)return this._transport.send(t).then(null,n=>{In&&kt.error("Error while sending event:",n)});In&&kt.error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map(n=>{const[r,i]=n.split(":");return{reason:r,category:i,quantity:t[n]}})}}function J1t(e,t){const n=`${t} must return \`null\` or a valid event.`;if(_I(e))return e.then(r=>{if(!Uv(r)&&r!==null)throw new yf(n);return r},r=>{throw new yf(`${t} rejected with ${r}`)});if(!Uv(e)&&e!==null)throw new yf(n);return e}function ebt(e,t,n){const{beforeSend:r,beforeSendTransaction:i}=e;if(ybe(t)&&r)return r(t,n);if(vbe(t)&&i){if(t.spans){const a=t.spans.length;t.sdkProcessingMetadata={...t.sdkProcessingMetadata,spanCountBeforeProcessing:a}}return i(t,n)}return t}function ybe(e){return e.type===void 0}function vbe(e){return e.type==="transaction"}function tbt(e,t){t.debug===!0&&(In?kt.enable():CI(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),th().update(t.initialScope);const r=new e(t);nbt(r),rbt(r)}function nbt(e){const n=jc().getStackTop();n.client=e,n.scope.setClient(e)}function rbt(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}const ibt=30;function Obe(e,t,n=Rgt(e.bufferSize||ibt)){let r={};const i=s=>n.drain(s);function a(s){const o=[];if(wne(s,(f,p)=>{const g=Tne(p);if(Xgt(r,g)){const O=Fne(f,p);e.recordDroppedEvent("ratelimit_backoff",g,O)}else o.push(f)}),o.length===0)return jv();const l=Z1(s[0],o),u=f=>{wne(l,(p,g)=>{const O=Fne(p,g);e.recordDroppedEvent(f,Tne(g),O)})},d=()=>t({body:jgt(l,e.textEncoder)}).then(f=>(f.statusCode!==void 0&&(f.statusCode<200||f.statusCode>=300)&&In&&kt.warn(`Sentry responded with status code ${f.statusCode} to sent event.`),r=Kgt(r,f),f),f=>{throw u("network_error"),f});return n.add(d).then(f=>f,f=>{if(f instanceof yf)return In&&kt.error("Skipped sending event because buffer is full."),u("queue_overflow"),jv();throw f})}return a.__sentry__baseTransport__=!0,{send:a,flush:i}}function Fne(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function abt(e,t){const n={sent_at:new Date().toISOString()};t&&(n.dsn=$O(t));const r=e.map(sbt);return Z1(n,r)}function sbt(e){return[{type:"span"},e]}function Sbe(e,t,n=[t],r="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(a=>({name:`${r}:@sentry/${a}`,version:DM})),version:DM}),e._metadata=i}const obt=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],lbt=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],Ebe="InboundFilters",ubt=(e={})=>({name:Ebe,setupOnce(){},processEvent(t,n,r){const i=r.getOptions(),a=cbt(e,i);return dbt(t,a)?null:t}}),wbe=ubt;Am(Ebe,wbe);function cbt(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:obt],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:lbt],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function dbt(e,t){return t.ignoreInternal&&bbt(e)?(In&&kt.warn(`Event dropped due to being internal Sentry Error. +Event: ${v0(e)}`),!0):fbt(e,t.ignoreErrors)?(In&&kt.warn(`Event dropped due to being matched by \`ignoreErrors\` option. +Event: ${v0(e)}`),!0):hbt(e,t.ignoreTransactions)?(In&&kt.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. +Event: ${v0(e)}`),!0):pbt(e,t.denyUrls)?(In&&kt.warn(`Event dropped due to being matched by \`denyUrls\` option. +Event: ${v0(e)}. +Url: ${jC(e)}`),!0):mbt(e,t.allowUrls)?!1:(In&&kt.warn(`Event dropped due to not being matched by \`allowUrls\` option. +Event: ${v0(e)}. +Url: ${jC(e)}`),!0)}function fbt(e,t){return e.type||!t||!t.length?!1:gbt(e).some(n=>bx(n,t))}function hbt(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?bx(n,t):!1}function pbt(e,t){if(!t||!t.length)return!1;const n=jC(e);return n?bx(n,t):!1}function mbt(e,t){if(!t||!t.length)return!0;const n=jC(e);return n?bx(n,t):!0}function gbt(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),In&&t.length===0&&kt.error(`Could not extract message for event ${v0(e)}`),t}function bbt(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function ybt(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!==""&&n.filename!=="[native code]")return n.filename||null}return null}function jC(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?ybt(t):null}catch{return In&&kt.error(`Cannot extract url for event ${v0(e)}`),null}}let Bne;const Tbe="FunctionToString",Une=new WeakMap,vbt=()=>({name:Tbe,setupOnce(){Bne=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=DW(this),n=Une.has(cs())&&t!==void 0?t:this;return Bne.apply(n,e)}}catch{}},setup(e){Une.set(e,!0)}}),xbe=vbt;Am(Tbe,xbe);const ki=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Jn=Gr;function Obt(){Jn.document?Jn.document.addEventListener("visibilitychange",()=>{const e=D1();if(Jn.document.hidden&&e){const t="cancelled",{op:n,status:r}=Jo(e);ki&&kt.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${n}`),r||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.end()}}):ki&&kt.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const Sx=(e,t,n)=>{let r,i;return a=>{t.value>=0&&(a||n)&&(i=t.value-(r||0),(i||r===void 0)&&(r=t.value,t.delta=i,e(t)))}},Sbt=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,Ebt=()=>{const e=Jn.performance.timing,t=Jn.performance.navigation.type,n={entryType:"navigation",startTime:0,type:t==2?"back_forward":t===1?"reload":"navigate"};for(const r in e)r!=="navigationStart"&&r!=="toJSON"&&(n[r]=Math.max(e[r]-e.navigationStart,0));return n},LI=()=>Jn.__WEB_VITALS_POLYFILL__?Jn.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||Ebt()):Jn.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],zW=()=>{const e=LI();return e&&e.activationStart||0},Ex=(e,t)=>{const n=LI();let r="navigate";return n&&(Jn.document&&Jn.document.prerendering||zW()>0?r="prerender":r=n.type.replace(/_/g,"-")),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:Sbt(),navigationType:r}},BO=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(i=>{t(i.getEntries())});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},wx=(e,t)=>{const n=r=>{(r.type==="pagehide"||Jn.document.visibilityState==="hidden")&&(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};Jn.document&&(addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0))},wbt=(e,t={})=>{const n=Ex("CLS",0);let r,i=0,a=[];const s=l=>{l.forEach(u=>{if(!u.hadRecentInput){const d=a[0],f=a[a.length-1];i&&a.length!==0&&u.startTime-f.startTime<1e3&&u.startTime-d.startTime<5e3?(i+=u.value,a.push(u)):(i=u.value,a=[u]),i>n.value&&(n.value=i,n.entries=a,r&&r())}})},o=BO("layout-shift",s);if(o){r=Sx(e,n,t.reportAllChanges);const l=()=>{s(o.takeRecords()),r(!0)};return wx(l),l}};let HC=-1;const Tbt=()=>{Jn.document&&Jn.document.visibilityState&&(HC=Jn.document.visibilityState==="hidden"&&!Jn.document.prerendering?0:1/0)},xbt=()=>{wx(({timeStamp:e})=>{HC=e},!0)},jW=()=>(HC<0&&(Tbt(),xbt()),{get firstHiddenTime(){return HC}}),kbt=e=>{const t=jW(),n=Ex("FID");let r;const i=o=>{o.startTime{o.forEach(i)},s=BO("first-input",a);r=Sx(e,n),s&&wx(()=>{a(s.takeRecords()),s.disconnect()},!0)};let kbe=0,R7=1/0,T4=0;const Abt=e=>{e.forEach(t=>{t.interactionId&&(R7=Math.min(R7,t.interactionId),T4=Math.max(T4,t.interactionId),kbe=T4?(T4-R7)/7+1:0)})};let MM;const _bt=()=>MM?kbe:performance.interactionCount||0,Cbt=()=>{"interactionCount"in performance||MM||(MM=BO("event",Abt,{type:"event",buffered:!0,durationThreshold:0}))},Abe=()=>_bt(),zne=10,Lh=[],I7={},jne=e=>{const t=Lh[Lh.length-1],n=I7[e.interactionId];if(n||Lh.lengtht.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{const r={id:e.interactionId,latency:e.duration,entries:[e]};I7[r.id]=r,Lh.push(r)}Lh.sort((r,i)=>i.latency-r.latency),Lh.splice(zne).forEach(r=>{delete I7[r.id]})}},Rbt=()=>{const e=Math.min(Lh.length-1,Math.floor(Abe()/50));return Lh[e]},Ibt=(e,t)=>{t=t||{},Cbt();const n=Ex("INP");let r;const i=s=>{s.forEach(l=>{l.interactionId&&jne(l),l.entryType==="first-input"&&!Lh.some(d=>d.entries.some(f=>l.duration===f.duration&&l.startTime===f.startTime))&&jne(l)});const o=Rbt();o&&o.latency!==n.value&&(n.value=o.latency,n.entries=o.entries,r())},a=BO("event",i,{durationThreshold:t.durationThreshold||40});r=Sx(e,n,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),wx(()=>{i(a.takeRecords()),n.value<0&&Abe()>0&&(n.value=0,n.entries=[]),r(!0)}))},Hne={},Nbt=e=>{const t=jW(),n=Ex("LCP");let r;const i=s=>{const o=s[s.length-1];if(o){const l=Math.max(o.startTime-zW(),0);l{Hne[n.id]||(i(a.takeRecords()),a.disconnect(),Hne[n.id]=!0,r(!0))};return["keydown","click"].forEach(o=>{Jn.document&&addEventListener(o,s,{once:!0,capture:!0})}),wx(s,!0),s}},$M=e=>{Jn.document&&(Jn.document.prerendering?addEventListener("prerenderingchange",()=>$M(e),!0):Jn.document.readyState!=="complete"?addEventListener("load",()=>$M(e),!0):setTimeout(e,0))},Dbt=(e,t)=>{t=t||{};const n=Ex("TTFB"),r=Sx(e,n,t.reportAllChanges);$M(()=>{const i=LI();if(i){if(n.value=Math.max(i.responseStart-zW(),0),n.value<0||n.value>performance.now())return;n.entries=[i],r(!0)}})},L2={},QC={};let _be,Cbe,Rbe,Ibe,Nbe;function Pbt(e,t=!1){return Tx("cls",e,Bbt,_be,t)}function Lbt(e,t=!1){return Tx("lcp",e,zbt,Rbe,t)}function Mbt(e){return Tx("ttfb",e,jbt,Ibe)}function $bt(e){return Tx("fid",e,Ubt,Cbe)}function Fbt(e){return Tx("inp",e,Hbt,Nbe)}function nT(e,t){return Dbe(e,t),QC[e]||(Qbt(e),QC[e]=!0),Pbe(e,t)}function UO(e,t){const n=L2[e];if(!(!n||!n.length))for(const r of n)try{r(t)}catch(i){ki&&kt.error(`Error while triggering instrumentation handler. Type: ${e} -Name: ${Sp(r)} -Error:`,i)}}function eyt(){return Fbt(e=>{ZO("cls",{metric:e}),Fbe=e},{reportAllChanges:!0})}function tyt(){return zbt(e=>{ZO("fid",{metric:e}),Bbe=e})}function nyt(){return qbt(e=>{ZO("lcp",{metric:e}),Ube=e})}function ryt(){return Gbt(e=>{ZO("ttfb",{metric:e}),zbe=e})}function iyt(){return Vbt(e=>{ZO("inp",{metric:e}),jbe=e})}function wx(e,t,n,r,i=!1){Hbe(e,t);let a;return V3[e]||(a=n(),V3[e]=!0),r&&t({metric:r}),Qbe(e,t,i?a:void 0)}function ayt(e){const t={};e==="event"&&(t.durationThreshold=0),YO(e,n=>{ZO(e,{entries:n})},t)}function Hbe(e,t){D2[e]=D2[e]||[],D2[e].push(t)}function Qbe(e,t,n){return()=>{n&&n();const r=D2[e];if(!r)return;const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function B7(e){return typeof e=="number"&&isFinite(e)}function eO(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}const syt=2147483647;function is(e){return e/1e3}function eV(){return nr&&nr.addEventListener&&nr.performance}let Jne=0,Ea={},cf,P2;function oyt(){const e=eV();if(e&&Nc){e.mark&&nr.performance.mark("sentry-tracing-init");const t=hyt(),n=dyt(),r=fyt(),i=pyt();return()=>{t(),n(),r(),i()}}return()=>{}}function lyt(){eT("longtask",({entries:e})=>{for(const t of e){const n=I1();if(!n)return;const r=is(Nc+t.startTime),i=is(t.duration);n.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+i})}})}function uyt(){eT("event",({entries:e})=>{for(const t of e){const n=I1();if(!n)return;if(t.name==="click"){const r=is(Nc+t.startTime),i=is(t.duration),a={description:Xv(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+i},s=V1e(t.target);s&&(a.attributes={"ui.component_name":s}),n.startChild(a)}}})}function cyt(e,t){if(eV()&&Nc){const r=myt(e,t);return()=>{r()}}return()=>{}}function dyt(){return Ybt(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Ci&&_t.log("[Measurements] Adding CLS"),Ea.cls={value:e.value,unit:""},P2=t)},!0)}function fyt(){return Zbt(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Ci&&_t.log("[Measurements] Adding LCP"),Ea.lcp={value:e.value,unit:"millisecond"},cf=t)},!0)}function hyt(){return Kbt(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=is(Nc),r=is(t.startTime);Ci&&_t.log("[Measurements] Adding FID"),Ea.fid={value:e.value,unit:"millisecond"},Ea["mark.fid"]={value:n+r,unit:"second"}})}function pyt(){return Xbt(({metric:e})=>{e.entries[e.entries.length-1]&&(Ci&&_t.log("[Measurements] Adding TTFB"),Ea.ttfb={value:e.value,unit:"millisecond"})})}const ere={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function myt(e,t){return Jbt(({metric:n})=>{if(n.value===void 0)return;const r=n.entries.find(k=>k.duration===n.value&&ere[k.name]!==void 0),i=cs();if(!r||!i)return;const a=ere[r.name],s=i.getOptions(),o=is(Nc+r.startTime),l=is(n.value),u=r.interactionId!==void 0?e[r.interactionId]:void 0;if(u===void 0)return;const{routeName:d,parentContext:f,activeTransaction:p,user:g,replayId:O}=u,S=g!==void 0?g.email||g.id||g.ip_address:void 0,T=p!==void 0?p.getProfileId():void 0,w=new MI({startTimestamp:o,endTimestamp:o+l,op:`ui.interaction.${a}`,name:Xv(r.target),attributes:{release:s.release,environment:s.environment,transaction:d,...S!==void 0&&S!==""?{user:S}:{},...T!==void 0?{profile_id:T}:{},...O!==void 0?{replay_id:O}:{}},exclusiveTime:n.value,measurements:{inp:{value:n.value,unit:"millisecond"}}}),x=Tyt(f,s,t);if(x&&Math.random(){Ci&&_t.error("Error while sending interaction:",R)});return}})}function gyt(e){const t=eV();if(!t||!nr.performance.getEntries||!Nc)return;Ci&&_t.log("[Tracing] Adding & adjusting spans using Performance API");const n=is(Nc),r=t.getEntries(),{op:i,start_timestamp:a}=Xo(e);if(r.slice(Jne).forEach(s=>{const o=is(s.startTime),l=is(s.duration);if(!(e.op==="navigation"&&a&&n+o{if(!Ea[o]||!a||n>=a)return;const l=Ea[o].value,u=n+is(l),d=Math.abs((u-a)*1e3),f=d-l;Ci&&_t.log(`[Measurements] Normalized ${o} from ${l} to ${d} (${f})`),Ea[o].value=d});const s=Ea["mark.fid"];s&&Ea.fid&&(eO(e,{description:"first input delay",endTimestamp:s.value+is(Ea.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:s.value}),delete Ea["mark.fid"]),"fcp"in Ea||delete Ea.cls,Object.keys(Ea).forEach(o=>{X1t(o,Ea[o].value,Ea[o].unit)}),Eyt(e)}cf=void 0,P2=void 0,Ea={}}function byt(e,t,n,r,i){const a=i+n,s=a+r;return eO(e,{description:t.name,endTimestamp:s,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:a}),a}function yyt(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{x4(e,t,r,n)}),x4(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),x4(e,t,"fetch",n,"cache","domainLookupStart"),x4(e,t,"domainLookup",n,"DNS"),vyt(e,t,n)}function x4(e,t,n,r,i,a){const s=a?t[a]:t[`${n}End`],o=t[`${n}Start`];!o||!s||eO(e,{op:"browser",origin:"auto.browser.browser.metrics",description:i||n,startTimestamp:r+is(o),endTimestamp:r+is(s)})}function vyt(e,t,n){t.responseEnd&&(eO(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+is(t.requestStart),endTimestamp:n+is(t.responseEnd)}),eO(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+is(t.responseStart),endTimestamp:n+is(t.responseEnd)}))}function Oyt(e,t,n,r,i,a){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const s=s1(n),o={};U7(o,t,"transferSize","http.response_transfer_size"),U7(o,t,"encodedBodySize","http.response_content_length"),U7(o,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(o["resource.render_blocking_status"]=t.renderBlockingStatus),s.protocol&&(o["url.scheme"]=s.protocol.split(":").pop()),s.host&&(o["server.address"]=s.host),o["url.same_origin"]=n.includes(nr.location.origin);const l=a+r,u=l+i;eO(e,{description:n.replace(nr.location.origin,""),endTimestamp:u,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:l,data:o})}function Syt(e){const t=nr.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),B7(n.rtt)&&(Ea["connection.rtt"]={value:n.rtt,unit:"millisecond"})),B7(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`),B7(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}function Eyt(e){cf&&(Ci&&_t.log("[Measurements] Adding LCP Data"),cf.element&&e.setTag("lcp.element",Xv(cf.element)),cf.id&&e.setTag("lcp.id",cf.id),cf.url&&e.setTag("lcp.url",cf.url.trim().slice(0,200)),e.setTag("lcp.size",cf.size)),P2&&P2.sources&&(Ci&&_t.log("[Measurements] Adding CLS Data"),P2.sources.forEach((t,n)=>e.setTag(`cls.source.${n+1}`,Xv(t.node))))}function U7(e,t,n,r){const i=t[n];i!=null&&i0?S.join(","):void 0}}else return{"sentry-trace":f,baggage:p}}function Ayt(e){try{return new URL(e).href}catch{return}}function _yt(e,t){if(t.response){XW(e,t.response.status);const n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){const r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus("internal_error");e.end()}const qM=["localhost",/^\/(?!\/)/],GM={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:qM,tracePropagationTargets:qM};function Cyt(e){const{traceFetch:t,traceXHR:n,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:a,enableHTTPTimings:s}={traceFetch:GM.traceFetch,traceXHR:GM.traceXHR,...e},o=typeof a=="function"?a:d=>!0,l=d=>Dyt(d,r||i),u={};t&&tbe(d=>{const f=xyt(d,o,l,u);if(f){const p=Wbe(d.fetchData.url),g=p?s1(p).host:void 0;f.setAttributes({"http.url":p,"server.address":g})}s&&f&&tre(f)}),n&&ibe(d=>{const f=Pyt(d,o,l,u);s&&f&&tre(f)})}function Ryt(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function tre(e){const{url:t}=Xo(e).data||{};if(!t||typeof t!="string")return;const n=eT("resource",({entries:r})=>{r.forEach(i=>{Ryt(i)&&i.name.endsWith(t)&&(Nyt(i).forEach(s=>e.setAttribute(...s)),setTimeout(n))})})}function Iyt(e){let t="unknown",n="unknown",r="";for(const i of e){if(i==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}function af(e=0){return((Nc||performance.timeOrigin)+e)/1e3}function Nyt(e){const{name:t,version:n}=Iyt(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),Nc?[...r,["http.request.redirect_start",af(e.redirectStart)],["http.request.fetch_start",af(e.fetchStart)],["http.request.domain_lookup_start",af(e.domainLookupStart)],["http.request.domain_lookup_end",af(e.domainLookupEnd)],["http.request.connect_start",af(e.connectStart)],["http.request.secure_connection_start",af(e.secureConnectionStart)],["http.request.connection_end",af(e.connectEnd)],["http.request.request_start",af(e.requestStart)],["http.request.response_start",af(e.responseStart)],["http.request.response_end",af(e.responseEnd)]]:r}function Dyt(e,t){return gx(e,t||qM)}function Pyt(e,t,n,r){const i=e.xhr,a=i&&i[Cy];if(!GO()||!i||i.__sentry_own_request__||!a)return;const s=t(a.url);if(e.endTimestamp&&s){const g=i.__sentry_xhr_span_id__;if(!g)return;const O=r[g];O&&a.status_code!==void 0&&(XW(O,a.status_code),O.end(),delete r[g]);return}const o=ih(),l=Y1(),u=Wbe(a.url),d=u?s1(u).host:void 0,f=s?Obe({name:`${a.method} ${a.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":a.method,"http.url":u,url:a.url,"server.address":d,[Qg]:"auto.http.browser"},op:"http.client"}):void 0;f&&(i.__sentry_xhr_span_id__=f.spanContext().spanId,r[i.__sentry_xhr_span_id__]=f);const p=cs();if(i.setRequestHeader&&n(a.url)&&p){const{traceId:g,spanId:O,sampled:S,dsc:T}={...l.getPropagationContext(),...o.getPropagationContext()},w=f?DI(f):qW(g,O,S),x=lbe(T||(f?Jv(f):LI(g,p,o)));Lyt(i,w,x)}return f}function Lyt(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(UM,n)}catch{}}function Wbe(e){try{return new URL(e,nr.location.origin).href}catch{return}}function Myt(e,t=!0,n=!0){if(!nr||!nr.location){Ci&&_t.warn("Could not initialize routing instrumentation due to invalid location");return}let r=nr.location.href,i;t&&(i=e({name:nr.location.pathname,startTimestamp:Nc?Nc/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&WW(({to:a,from:s})=>{if(s===void 0&&r&&r.indexOf(a)!==-1){r=void 0;return}s!==a&&(r=void 0,i&&(Ci&&_t.log(`[Tracing] Finishing current transaction with op: ${i.op}`),i.end()),i=e({name:nr.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})}const $yt="BrowserTracing",Fyt={...A_,markBackgroundTransactions:!0,routingInstrumentation:Myt,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...GM},nre=10;class Byt{constructor(t){this.name=$yt,this._hasSetTracePropagationTargets=!1,Z1t(),Ci&&(this._hasSetTracePropagationTargets=!!(t&&(t.tracePropagationTargets||t.tracingOrigins))),this.options={...Fyt,...t},this.options._experiments.enableLongTask!==void 0&&(this.options.enableLongTask=this.options._experiments.enableLongTask),t&&!t.tracePropagationTargets&&t.tracingOrigins&&(this.options.tracePropagationTargets=t.tracingOrigins),this._collectWebVitals=oyt(),this._interactionIdToRouteNameMapping={},this.options.enableInp&&cyt(this._interactionIdToRouteNameMapping,this.options.interactionsSampleRate),this.options.enableLongTask&&lyt(),this.options._experiments.enableInteractions&&uyt(),this._latestRoute={name:void 0,context:void 0}}setupOnce(t,n){this._getCurrentHub=n;const i=n().getClient(),a=i&&i.getOptions(),{routingInstrumentation:s,startTransactionOnLocationChange:o,startTransactionOnPageLoad:l,markBackgroundTransactions:u,traceFetch:d,traceXHR:f,shouldCreateSpanForRequest:p,enableHTTPTimings:g,_experiments:O}=this.options,S=a&&a.tracePropagationTargets,T=S||this.options.tracePropagationTargets;Ci&&this._hasSetTracePropagationTargets&&S&&_t.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),s(w=>{const x=this._createRouteTransaction(w);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(x,w,n),x},l,o),u&&Lbt(),O.enableInteractions&&this._registerInteractionListener(),this.options.enableInp&&this._registerInpInteractionListener(),Cyt({traceFetch:d,traceXHR:f,tracePropagationTargets:T,shouldCreateSpanForRequest:p,enableHTTPTimings:g})}_createRouteTransaction(t){if(!this._getCurrentHub){Ci&&_t.warn(`[Tracing] Did not create ${t.op} transaction because _getCurrentHub is invalid.`);return}const n=this._getCurrentHub(),{beforeNavigate:r,idleTimeout:i,finalTimeout:a,heartbeatInterval:s}=this.options,o=t.op==="pageload";let l;if(o){const g=o?rre("sentry-trace"):"",O=o?rre("baggage"):void 0,{traceId:S,dsc:T,parentSpanId:w,sampled:x}=t1t(g,O);l={traceId:S,parentSpanId:w,parentSampled:x,...t,metadata:{...t.metadata,dynamicSamplingContext:T},trimEnd:!0}}else l={trimEnd:!0,...t};const u=typeof r=="function"?r(l):l,d=u===void 0?{...l,sampled:!1}:u;d.metadata=d.name!==l.name?{...d.metadata,source:"custom"}:d.metadata,this._latestRoute.name=d.name,this._latestRoute.context=d,d.sampled===!1&&Ci&&_t.log(`[Tracing] Will not send ${d.op} transaction because of beforeNavigate.`),Ci&&_t.log(`[Tracing] Starting ${d.op} transaction on scope`);const{location:f}=nr,p=Hne(n,d,i,a,!0,{location:f},s,o);return o&&nr.document&&(nr.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(nr.document.readyState)&&p.sendAutoFinishSignal()}),["interactive","complete"].includes(nr.document.readyState)&&p.sendAutoFinishSignal()),p.registerBeforeFinishCallback(g=>{this._collectWebVitals(),gyt(g)}),p}_registerInteractionListener(){let t;const n=()=>{const{idleTimeout:r,finalTimeout:i,heartbeatInterval:a}=this.options,s="ui.action.click",o=I1();if(o&&o.op&&["navigation","pageload"].includes(o.op)){Ci&&_t.warn(`[Tracing] Did not create ${s} transaction because a pageload or navigation transaction is in progress.`);return}if(t&&(t.setFinishReason("interactionInterrupted"),t.end(),t=void 0),!this._getCurrentHub){Ci&&_t.warn(`[Tracing] Did not create ${s} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRoute.name){Ci&&_t.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`);return}const l=this._getCurrentHub(),{location:u}=nr,d={name:this._latestRoute.name,op:s,trimEnd:!0,data:{[o1]:this._latestRoute.context?Uyt(this._latestRoute.context):"url"}};t=Hne(l,d,r,i,!0,{location:u},a)};["click"].forEach(r=>{nr.document&&addEventListener(r,n,{once:!1,capture:!0})})}_registerInpInteractionListener(){const t=({entries:n})=>{const r=cs(),i=r!==void 0&&r.getIntegrationByName!==void 0?r.getIntegrationByName("Replay"):void 0,a=i!==void 0?i.getReplayId():void 0,s=I1(),o=ih(),l=o!==void 0?o.getUser():void 0;n.forEach(u=>{if(zyt(u)){const d=u.interactionId;if(d===void 0)return;const f=this._interactionIdToRouteNameMapping[d],p=u.duration,g=u.startTime,O=Object.keys(this._interactionIdToRouteNameMapping),S=O.length>0?O.reduce((T,w)=>this._interactionIdToRouteNameMapping[T].durationthis._interactionIdToRouteNameMapping[w]).some(w=>w.duration===p&&w.startTime===g)||!d)return;if(f)f.duration=Math.max(f.duration,p);else if(O.lengththis._interactionIdToRouteNameMapping[S].duration){const T=this._latestRoute.name,w=this._latestRoute.context;T&&w&&(S&&Object.keys(this._interactionIdToRouteNameMapping).length>=nre&&delete this._interactionIdToRouteNameMapping[S],this._interactionIdToRouteNameMapping[d]={routeName:T,duration:p,parentContext:w,user:l,activeTransaction:s,replayId:a,startTime:g})}}})};eT("event",t),eT("first-input",t)}}function rre(e){const t=lgt(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function Uyt(e){const t=e.attributes&&e.attributes[o1],n=e.data&&e.data[o1],r=e.metadata&&e.metadata.source;return t||n||r}function zyt(e){return"duration"in e}const ti=Gr;let YM=0;function Vbe(){return YM>0}function jyt(){YM++,setTimeout(()=>{YM--})}function tO(e,t={},n){if(typeof e!="function")return e;try{const i=e.__sentry_wrapped__;if(i)return i;if(QW(e))return e}catch{return e}const r=function(){const i=Array.prototype.slice.call(arguments);try{const a=i.map(s=>tO(s,t));return e.apply(this,a)}catch(a){throw jyt(),k1t(s=>{s.addEventProcessor(o=>(t.mechanism&&(DM(o,void 0),Jw(o,t.mechanism)),o.extra={...o.extra,arguments:i},o)),x1t(a)}),a}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}G1e(r,e),_1(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}const Zh=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function qbe(e,t){const n=tV(e,t),r={type:t&&t.name,value:Vyt(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Hyt(e,t,n,r){const i=cs(),a=i&&i.getOptions().normalizeDepth,s={exception:{values:[{type:CI(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Yyt(t,{isUnhandledRejection:r})}]},extra:{__serialized__:abe(t,a)}};if(n){const o=tV(e,n);o.length&&(s.exception.values[0].stacktrace={frames:o})}return s}function z7(e,t){return{exception:{values:[qbe(e,t)]}}}function tV(e,t){const n=t.stacktrace||t.stack||"",r=Wyt(t);try{return e(n,r)}catch{}return[]}const Qyt=/Minified React error #\d+;/i;function Wyt(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if(Qyt.test(e.message))return 1}return 0}function Vyt(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function qyt(e,t,n,r){const i=n&&n.syntheticException||void 0,a=nV(e,t,i,r);return Jw(a),a.level="error",n&&n.event_id&&(a.event_id=n.event_id),Kv(a)}function Gyt(e,t,n="info",r,i){const a=r&&r.syntheticException||void 0,s=ZM(e,t,a,i);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),Kv(s)}function nV(e,t,n,r,i){let a;if(UW(t)&&t.error)return z7(e,t.error);if(yne(t)||Kmt(t)){const s=t;if("stack"in t)a=z7(e,t);else{const o=s.name||(yne(s)?"DOMError":"DOMException"),l=s.message?`${o}: ${s.message}`:o;a=ZM(e,l,n,r),DM(a,l)}return"code"in s&&(a.tags={...a.tags,"DOMException.code":`${s.code}`}),a}return j1e(t)?z7(e,t):Zv(t)||CI(t)?(a=Hyt(e,t,n,i),Jw(a,{synthetic:!0}),a):(a=ZM(e,t,n,r),DM(a,`${t}`),Jw(a,{synthetic:!0}),a)}function ZM(e,t,n,r){const i={};if(r&&n){const a=tV(e,n);a.length&&(i.exception={values:[{value:t,stacktrace:{frames:a}}]})}if(zW(t)){const{__sentry_template_string__:a,__sentry_template_values__:s}=t;return i.logentry={message:a,params:s},i}return i.message=t,i}function Yyt(e,{isUnhandledRejection:t}){const n=bgt(e),r=t?"promise rejection":"exception";return UW(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:CI(e)?`Event \`${Zyt(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Zyt(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function Xyt(e,{metadata:t,tunnel:n,dsn:r}){const i={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:qO(r)}},a=Kyt(e);return G1(i,[a])}function Kyt(e){return[{type:"user_report"},e]}class Jyt extends hbt{constructor(t){const n=ti.SENTRY_SDK_SOURCE||Bgt();Ibe(t,"browser",["browser"],n),super(t),t.sendClientReports&&ti.document&&ti.document.addEventListener("visibilitychange",()=>{ti.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return qyt(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return Gyt(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){Zh&&_t.warn("SDK not enabled, will not capture user feedback.");return}const n=Xyt(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0){Zh&&_t.log("No outcomes to send");return}if(!this._dsn){Zh&&_t.log("No dsn provided, will not send outcomes");return}Zh&&_t.log("Sending outcomes:",t);const n=l1t(t,this._options.tunnel&&qO(this._dsn));this._sendEnvelope(n)}}let WE;function evt(){if(WE)return WE;if($M(ti.fetch))return WE=ti.fetch.bind(ti);const e=ti.document;let t=ti.fetch;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(n){Zh&&_t.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return WE=t.bind(ti)}function tvt(){WE=void 0}function nvt(e,t=evt()){let n=0,r=0;function i(a){const s=a.body.length;n+=s,r++;const o={body:a.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,o).then(l=>(n-=s,r--,{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}))}catch(l){return tvt(),n-=s,r--,VW(l)}}return Rbe(e,i)}const rvt=4;function ivt(e){function t(n){return new gu((r,i)=>{const a=new XMLHttpRequest;a.onerror=i,a.onreadystatechange=()=>{a.readyState===rvt&&r({statusCode:a.status,headers:{"x-sentry-rate-limits":a.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":a.getResponseHeader("Retry-After")}})},a.open("POST",e.url);for(const s in e.headers)Object.prototype.hasOwnProperty.call(e.headers,s)&&a.setRequestHeader(s,e.headers[s]);a.send(n.body)})}return Rbe(e,t)}const FI="?",avt=30,svt=40,ovt=50;function rV(e,t,n,r){const i={filename:e,function:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const lvt=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,uvt=/\((\S*)(?::(\d+))(?::(\d+))\)/,cvt=e=>{const t=lvt.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){const a=uvt.exec(t[2]);a&&(t[2]=a[1],t[3]=a[2],t[4]=a[3])}const[r,i]=Gbe(t[1]||FI,t[2]);return rV(i,r,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},dvt=[avt,cvt],fvt=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,hvt=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,pvt=e=>{const t=fvt.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const a=hvt.exec(t[3]);a&&(t[1]=t[1]||"eval",t[3]=a[1],t[4]=a[2],t[5]="")}let r=t[3],i=t[1]||FI;return[i,r]=Gbe(i,r),rV(r,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},mvt=[ovt,pvt],gvt=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,bvt=e=>{const t=gvt.exec(e);return t?rV(t[2],t[1]||FI,+t[3],t[4]?+t[4]:void 0):void 0},yvt=[svt,bvt],vvt=[dvt,mvt,yvt],Ovt=X1e(...vvt),Gbe=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:FI,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},k4=1024,Ybe="Breadcrumbs",Svt=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:Ybe,setupOnce(){},setup(n){t.console&&Sgt(Tvt(n)),t.dom&&Tgt(wvt(n,t.dom)),t.xhr&&ibe(xvt(n)),t.fetch&&tbe(kvt(n)),t.history&&WW(Avt(n)),t.sentry&&n.on&&n.on("beforeSendEvent",Evt(n))}}},Zbe=Svt;Pm(Ybe,Zbe);function Evt(e){return function(n){cs()===e&&R1({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:A0(n)},{event:n})}}function wvt(e,t){return function(r){if(cs()!==e)return;let i,a,s=typeof t=="object"?t.serializeAttribute:void 0,o=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;o&&o>k4&&(Zh&&_t.warn(`\`dom.maxStringLength\` cannot exceed ${k4}, but a value of ${o} was configured. Sentry will use ${k4} instead.`),o=k4),typeof s=="string"&&(s=[s]);try{const u=r.event,d=_vt(u)?u.target:u;i=Xv(d,{keyAttrs:s,maxStringLength:o}),a=V1e(d)}catch{i=""}if(i.length===0)return;const l={category:`ui.${r.name}`,message:i};a&&(l.data={"ui.component_name":a}),R1(l,{event:r.event,name:r.name,global:r.global})}}function Tvt(e){return function(n){if(cs()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:qgt(n.level),message:vne(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${vne(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;R1(r,{input:n.args,level:n.level})}}function xvt(e){return function(n){if(cs()!==e)return;const{startTimestamp:r,endTimestamp:i}=n,a=n.xhr[Cy];if(!r||!i||!a)return;const{method:s,url:o,status_code:l,body:u}=a,d={method:s,url:o,status_code:l},f={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:i};R1({category:"xhr",data:d,type:"http"},f)}}function kvt(e){return function(n){if(cs()!==e)return;const{startTimestamp:r,endTimestamp:i}=n;if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const a=n.fetchData,s={data:n.error,input:n.args,startTimestamp:r,endTimestamp:i};R1({category:"fetch",data:a,level:"error",type:"http"},s)}else{const a=n.response,s={...n.fetchData,status_code:a&&a.status},o={input:n.args,response:a,startTimestamp:r,endTimestamp:i};R1({category:"fetch",data:s,type:"http"},o)}}}function Avt(e){return function(n){if(cs()!==e)return;let r=n.from,i=n.to;const a=s1(ti.location.href);let s=r?s1(r):void 0;const o=s1(i);(!s||!s.path)&&(s=a),a.protocol===o.protocol&&a.host===o.host&&(i=o.relative),a.protocol===s.protocol&&a.host===s.host&&(r=s.relative),R1({category:"navigation",data:{from:r,to:i}})}}function _vt(e){return!!e&&!!e.target}const Xbe="Dedupe",Cvt=()=>{let e;return{name:Xbe,setupOnce(){},processEvent(t){if(t.type)return t;try{if(Rvt(t,e))return Zh&&_t.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},Kbe=Cvt;Pm(Xbe,Kbe);function Rvt(e,t){return t?!!(Ivt(e,t)||Nvt(e,t)):!1}function Ivt(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!eye(e,t)||!Jbe(e,t))}function Nvt(e,t){const n=ire(t),r=ire(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!eye(e,t)||!Jbe(e,t))}function Jbe(e,t){let n=are(e),r=are(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:tye,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(Pvt(n),sre("onerror")),t.onunhandledrejection&&(Lvt(n),sre("onunhandledrejection"))}}},nye=Dvt;Pm(tye,nye);function Pvt(e){nbe(t=>{const{stackParser:n,attachStacktrace:r}=iye();if(cs()!==e||Vbe())return;const{msg:i,url:a,line:s,column:o,error:l}=t,u=l===void 0&&Ff(i)?Fvt(i,a,s,o):rye(nV(n,l||i,void 0,r,!1),a,s,o);u.level="error",hbe(u,{originalException:l,mechanism:{handled:!1,type:"onerror"}})})}function Lvt(e){rbe(t=>{const{stackParser:n,attachStacktrace:r}=iye();if(cs()!==e||Vbe())return;const i=Mvt(t),a=jW(i)?$vt(i):nV(n,i,void 0,r,!0);a.level="error",hbe(a,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function Mvt(e){if(jW(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return e}function $vt(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Fvt(e,t,n,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let a=UW(e)?e.message:e,s="Error";const o=a.match(i);return o&&(s=o[1],a=o[2]),rye({exception:{values:[{type:s,value:a}]}},t,n,r)}function rye(e,t,n,r){const i=e.exception=e.exception||{},a=i.values=i.values||[],s=a[0]=a[0]||{},o=s.stacktrace=s.stacktrace||{},l=o.frames=o.frames||[],u=isNaN(parseInt(r,10))?void 0:r,d=isNaN(parseInt(n,10))?void 0:n,f=Ff(t)&&t.length>0?t:ogt();return l.length===0&&l.push({colno:u,filename:f,function:"?",in_app:!0,lineno:d}),e}function sre(e){Zh&&_t.log(`Global Handler attached: ${e}`)}function iye(){const e=cs();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const aye="HttpContext",Bvt=()=>({name:aye,setupOnce(){},preprocessEvent(e){if(!ti.navigator&&!ti.location&&!ti.document)return;const t=e.request&&e.request.url||ti.location&&ti.location.href,{referrer:n}=ti.document||{},{userAgent:r}=ti.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},a={...e.request,...t&&{url:t},headers:i};e.request=a}}),sye=Bvt;Pm(aye,sye);const Uvt="cause",zvt=5,oye="LinkedErrors",jvt=(e={})=>{const t=e.limit||zvt,n=e.key||Uvt;return{name:oye,setupOnce(){},preprocessEvent(r,i,a){const s=a.getOptions();rgt(qbe,s.stackParser,s.maxValueLength,n,t,r,i)}}},lye=jvt;Pm(oye,lye);const Hvt=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],uye="TryCatch",Qvt=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:uye,setupOnce(){t.setTimeout&&Us(ti,"setTimeout",ore),t.setInterval&&Us(ti,"setInterval",ore),t.requestAnimationFrame&&Us(ti,"requestAnimationFrame",Wvt),t.XMLHttpRequest&&"XMLHttpRequest"in ti&&Us(XMLHttpRequest.prototype,"send",Vvt);const n=t.eventTarget;n&&(Array.isArray(n)?n:Hvt).forEach(qvt)}}},cye=Qvt;Pm(uye,cye);function ore(e){return function(...t){const n=t[0];return t[0]=tO(n,{mechanism:{data:{function:Sp(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Wvt(e){return function(t){return e.apply(this,[tO(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Sp(e)},handled:!1,type:"instrument"}})])}}function Vvt(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&Us(n,i,function(a){const s={mechanism:{data:{function:i,handler:Sp(a)},handled:!1,type:"instrument"}},o=QW(a);return o&&(s.mechanism.data.handler=Sp(o)),tO(a,s)})}),e.apply(this,t)}}function qvt(e){const t=ti,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Us(n,"addEventListener",function(r){return function(i,a,s){try{typeof a.handleEvent=="function"&&(a.handleEvent=tO(a.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Sp(a),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[i,tO(a,{mechanism:{data:{function:"addEventListener",handler:Sp(a),target:e},handled:!1,type:"instrument"}}),s])}}),Us(n,"removeEventListener",function(r){return function(i,a,s){const o=a;try{const l=o&&o.__sentry_wrapped__;l&&r.call(this,i,l,s)}catch{}return r.call(this,i,o,s)}}))}const Gvt=[Dbe(),Lbe(),cye(),Zbe(),nye(),lye(),Kbe(),sye()];function Yvt(e){return[...Gvt]}function Zvt(e={}){e.defaultIntegrations===void 0&&(e.defaultIntegrations=Yvt()),e.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(e.release=__SENTRY_RELEASE__),ti.SENTRY_RELEASE&&ti.SENTRY_RELEASE.id&&(e.release=ti.SENTRY_RELEASE.id)),e.autoSessionTracking===void 0&&(e.autoSessionTracking=!0),e.sendClientReports===void 0&&(e.sendClientReports=!0);const t={...e,stackParser:vgt(e.stackParser||Ovt),integrations:obt(e),transport:e.transport||(ebe()?nvt:ivt)};gbt(Jyt,t),e.autoSessionTracking&&Xvt()}function Xvt(){if(typeof ti.document>"u"){Zh&&_t.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}Mne({ignoreDuration:!0}),$ne(),WW(({from:e,to:t})=>{e!==void 0&&e!==t&&(Mne({ignoreDuration:!0}),$ne())})}function Kvt(e){const t={...e};Ibe(t,"react"),Zvt(t)}function Jvt(e,t,n,r,i,a){return(s,o=!0,l=!0)=>{const u=ti&&ti.location&&ti.location.pathname;o&&u&&s({name:u,attributes:{[o1]:"url",[QE]:"pageload",[Qg]:"auto.pageload.react.reactrouter_v6"}})}}const eOt=()=>["settings"],tOt=()=>{const e=Mu(),t=Pr(WR),n=OO({queryKey:eOt(),enabled:t.yorkieIntelligence===null&&t.fileUpload===null,queryFn:async()=>(await rr.get("/settings")).data,staleTime:1e3*60*60*24});return M.useEffect(()=>{if(!n.isSuccess)return;const r=n.data;e(uet(r.yorkieIntelligence)),e(cet(r.fileUpload))},[e,n.data,n.isSuccess]),n},nOt=e=>{var t;return e instanceof Rle&&((t=e.response)==null?void 0:t.status)===404},rOt=e=>{var t;return e instanceof Rle&&((t=e.response)==null?void 0:t.status)===500};Kvt({dsn:"https://d287d6df8c6f423189266360055e6ca7@o553194.ingest.sentry.io/5680102",release:"codepair@0.1.8",integrations:[new Byt({routingInstrumentation:Jvt()})],tracesSampleRate:1});const iOt=p8e(Gmt);rr.defaults.baseURL="https://codepair-api.yorkie.dev";function aOt(){return tOt(),null}function sOt(){const e=Pr(tF),t=wse("(prefers-color-scheme: dark)"),n=M.useMemo(()=>{const a=t?"dark":"light";return g$({typography:{button:{textTransform:"none"}},palette:{mode:e.theme=="default"?a:e.theme}})},[e.theme,t]),r=Xmt(),i=M.useMemo(()=>new J9e({queryCache:new Zle({onError:a=>{nOt(a)||rOt(a)?window.location.href="/404":r(a)}}),defaultOptions:{queries:{retry:(a,s)=>{var o;return rr.isAxiosError(s)&&((o=s.response)==null?void 0:o.status)===401?!1:a<3}},mutations:{onError:r}}}),[r]);return I.jsx(i$e,{client:i,children:I.jsx(Zmt,{children:I.jsxs(H4e,{theme:n,children:[I.jsx(kRe,{}),I.jsx(aOt,{}),I.jsx(ta,{minHeight:"100vh",children:I.jsx(w8e,{router:iOt})})]})})})}var iV={},aV={};aV.__esModule=!0;aV.default=uOt;function __(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?__=function(n){return typeof n}:__=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},__(e)}function j7(){}var oOt={getItem:j7,setItem:j7,removeItem:j7};function lOt(e){if((typeof self>"u"?"undefined":__(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 uOt(e){var t="".concat(e,"Storage");return lOt(t)?self[t]:oOt}iV.__esModule=!0;iV.default=fOt;var cOt=dOt(aV);function dOt(e){return e&&e.__esModule?e:{default:e}}function fOt(e){var t=(0,cOt.default)(e);return{getItem:function(r){return new Promise(function(i,a){i(t.getItem(r))})},setItem:function(r,i){return new Promise(function(a,s){a(t.setItem(r,i))})},removeItem:function(r){return new Promise(function(i,a){i(t.removeItem(r))})}}}var dye=void 0,hOt=pOt(iV);function pOt(e){return e&&e.__esModule?e:{default:e}}var mOt=(0,hOt.default)("local");dye=mOt;var sV="persist:",fye="persist/FLUSH",oV="persist/REHYDRATE",hye="persist/PAUSE",pye="persist/PERSIST",mye="persist/PURGE",gye="persist/REGISTER",gOt=-1;function C_(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?C_=function(n){return typeof n}:C_=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},C_(e)}function lre(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 bOt(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _Ot(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var COt=5e3;function ROt(e,t){var n=e.version!==void 0?e.version:gOt;e.debug;var r=e.stateReconciler===void 0?vOt:e.stateReconciler,i=e.getStoredState||EOt,a=e.timeout!==void 0?e.timeout:COt,s=null,o=!1,l=!0,u=function(f){return f._persist.rehydrated&&s&&!l&&s.update(f),f};return function(d,f){var p=d||{},g=p._persist,O=AOt(p,["_persist"]),S=O;if(f.type===pye){var T=!1,w=function(L,j){T||(f.rehydrate(e.key,L,j),T=!0)};if(a&&setTimeout(function(){!T&&w(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},a),l=!1,s||(s=OOt(e)),g)return Dh({},t(S,f),{_persist:g});if(typeof f.rehydrate!="function"||typeof f.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 f.register(e.key),i(e).then(function(D){var L=e.migrate||function(j,B){return Promise.resolve(j)};L(D,n).then(function(j){w(j)},function(j){w(void 0,j)})},function(D){w(void 0,D)}),Dh({},t(S,f),{_persist:{version:n,rehydrated:!1}})}else{if(f.type===mye)return o=!0,f.result(TOt(e)),Dh({},t(S,f),{_persist:g});if(f.type===fye)return f.result(s&&s.flush()),Dh({},t(S,f),{_persist:g});if(f.type===hye)l=!0;else if(f.type===oV){if(o)return Dh({},S,{_persist:Dh({},g,{rehydrated:!0})});if(f.key===e.key){var x=t(S,f),k=f.payload,_=r!==!1&&k!==void 0?r(k,d,x,e):x,R=Dh({},_,{_persist:Dh({},g,{rehydrated:!0})});return u(R)}}}if(!g)return t(d,f);var N=t(S,f);return N===S?d:u(Dh({},N,{_persist:g}))}}function cre(e){return DOt(e)||NOt(e)||IOt()}function IOt(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function NOt(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function DOt(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:bye,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case gye:return XM({},t,{registry:[].concat(cre(t.registry),[n.key])});case oV:var r=t.registry.indexOf(n.key),i=cre(t.registry);return i.splice(r,1),XM({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function MOt(e,t,n){var r=K$(LOt,bye,void 0),i=function(l){r.dispatch({type:gye,key:l})},a=function(l,u,d){var f={type:oV,payload:u,err:d,key:l};e.dispatch(f),r.dispatch(f)},s=XM({},r,{purge:function(){var l=[];return e.dispatch({type:mye,result:function(d){l.push(d)}}),Promise.all(l)},flush:function(){var l=[];return e.dispatch({type:fye,result:function(d){l.push(d)}}),Promise.all(l)},pause:function(){e.dispatch({type:hye})},persist:function(){e.dispatch({type:pye,register:i,rehydrate:a})}});return s.persist(),s}const $Ot=Woe({auth:YYe,config:cLe,user:HMe,editor:u9e,workspace:d9e,document:F9e,setting:det}),FOt={key:"root",storage:dye,whitelist:["auth","config"]},BOt=ROt(FOt,$Ot),yye=Z8e({reducer:BOt,middleware:e=>e({serializableCheck:{ignoredActions:["persist/PERSIST","editor/setDoc","editor/setClient","editor/setCmView"],ignoredPaths:["editor.doc","editor.client","editor.cmView"]},immutableCheck:{ignoredPaths:["editor.doc","editor.client","editor.cmView"]}})});function R_(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?R_=function(n){return typeof n}:R_=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},R_(e)}function UOt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zOt(e,t){for(var n=0;n"u"&&(window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)}),(o=window).gtag.apply(o,a)}},n=t;e.default=n})(Eye);var wye={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var t=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;function n(o){return o.toString().trim().replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,function(l,u,d){return u>0&&u+l.length!==d.length&&l.search(t)>-1&&d.charAt(u-2)!==":"&&(d.charAt(u+l.length)!=="-"||d.charAt(u-1)==="-")&&d.charAt(u-1).search(/[^\s-]/)<0?l.toLowerCase():l.substr(1).search(/[A-Z]|\../)>-1?l:l.charAt(0).toUpperCase()+l.substr(1)})}function r(o){return typeof o=="string"&&o.indexOf("@")!==-1}var i="REDACTED (Potential Email Address)";function a(o){return r(o)?(console.warn("This arg looks like an email address, redacting."),i):o}function s(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,d=o||"";return l&&(d=n(o)),u&&(d=a(d)),d}})(wye);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.GA4=void 0;var t=s(Eye),n=s(wye),r=["eventCategory","eventAction","eventLabel","eventValue","hitType"],i=["title","location"],a=["page","hitType"];function s(ee){return ee&&ee.__esModule?ee:{default:ee}}function o(ee,q){if(ee==null)return{};var te=l(ee,q),K,G;if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(ee);for(G=0;G=0)&&Object.prototype.propertyIsEnumerable.call(ee,K)&&(te[K]=ee[K])}return te}function l(ee,q){if(ee==null)return{};var te={},K=Object.keys(ee),G,ie;for(ie=0;ie=0)&&(te[G]=ee[G]);return te}function u(ee){"@babel/helpers - typeof";return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(q){return typeof q}:function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},u(ee)}function d(ee){return g(ee)||p(ee)||x(ee)||f()}function f(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p(ee){if(typeof Symbol<"u"&&ee[Symbol.iterator]!=null||ee["@@iterator"]!=null)return Array.from(ee)}function g(ee){if(Array.isArray(ee))return k(ee)}function O(ee,q){var te=Object.keys(ee);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(ee);q&&(K=K.filter(function(G){return Object.getOwnPropertyDescriptor(ee,G).enumerable})),te.push.apply(te,K)}return te}function S(ee){for(var q=1;qee.length)&&(q=ee.length);for(var te=0,K=new Array(q);te2&&arguments[2]!==void 0?arguments[2]:"https://www.googletagmanager.com/gtag/js";if(!(typeof window>"u"||typeof document>"u")&&!q._hasLoadedGA){var ie=document.createElement("script");ie.async=!0,ie.src="".concat(G,"?id=").concat(te),K&&ie.setAttribute("nonce",K),document.body.appendChild(ie),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},q._hasLoadedGA=!0}}),j(this,"_toGtagOptions",function(te){if(te){var K={cookieUpdate:"cookie_update",cookieExpires:"cookie_expires",cookieDomain:"cookie_domain",cookieFlags:"cookie_flags",userId:"user_id",clientId:"client_id",anonymizeIp:"anonymize_ip",contentGroup1:"content_group1",contentGroup2:"content_group2",contentGroup3:"content_group3",contentGroup4:"content_group4",contentGroup5:"content_group5",allowAdFeatures:"allow_google_signals",allowAdPersonalizationSignals:"allow_ad_personalization_signals",nonInteraction:"non_interaction",page:"page_path",hitCallback:"event_callback"},G=Object.entries(te).reduce(function(ie,H){var Re=T(H,2),Se=Re[0],Z=Re[1];return K[Se]?ie[K[Se]]=Z:ie[Se]=Z,ie},{});return G}}),j(this,"initialize",function(te){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!te)throw new Error("Require GA_MEASUREMENT_ID");var G=typeof te=="string"?[{trackingId:te}]:te;q._currentMeasurementId=G[0].trackingId;var ie=K.gaOptions,H=K.gtagOptions,Re=K.nonce,Se=K.testMode,Z=Se===void 0?!1:Se,ke=K.gtagUrl;if(q._testMode=Z,Z||q._loadGA(q._currentMeasurementId,Re,ke),q.isInitialized||(q._gtag("js",new Date),G.forEach(function(Je){var We=S(S(S({},q._toGtagOptions(S(S({},ie),Je.gaOptions))),H),Je.gtagOptions);Object.keys(We).length?q._gtag("config",Je.trackingId,We):q._gtag("config",Je.trackingId)})),q.isInitialized=!0,!Z){var $e=d(q._queueGtag);for(q._queueGtag=[],q._isQueuing=!1;$e.length;){var ae=$e.shift();q._gtag.apply(q,d(ae)),ae[0]==="get"&&(q._isQueuing=!0)}}}),j(this,"set",function(te){if(!te){console.warn("`fieldsObject` is required in .set()");return}if(u(te)!=="object"){console.warn("Expected `fieldsObject` arg to be an Object");return}Object.keys(te).length===0&&console.warn("empty `fieldsObject` given to .set()"),q._gaCommand("set",te)}),j(this,"_gaCommandSendEvent",function(te,K,G,ie,H){q._gtag("event",K,S(S({event_category:te,event_label:G,value:ie},H&&{non_interaction:H.nonInteraction}),q._toGtagOptions(H)))}),j(this,"_gaCommandSendEventParameters",function(){for(var te=arguments.length,K=new Array(te),G=0;G1?K-1:0),ie=1;ie{UO("cls",{metric:e}),_be=e},{reportAllChanges:!0})}function Ubt(){return kbt(e=>{UO("fid",{metric:e}),Cbe=e})}function zbt(){return Nbt(e=>{UO("lcp",{metric:e}),Rbe=e})}function jbt(){return Dbt(e=>{UO("ttfb",{metric:e}),Ibe=e})}function Hbt(){return Ibt(e=>{UO("inp",{metric:e}),Nbe=e})}function Tx(e,t,n,r,i=!1){Dbe(e,t);let a;return QC[e]||(a=n(),QC[e]=!0),r&&t({metric:r}),Pbe(e,t,i?a:void 0)}function Qbt(e){const t={};e==="event"&&(t.durationThreshold=0),BO(e,n=>{UO(e,{entries:n})},t)}function Dbe(e,t){L2[e]=L2[e]||[],L2[e].push(t)}function Pbe(e,t,n){return()=>{n&&n();const r=L2[e];if(!r)return;const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function N7(e){return typeof e=="number"&&isFinite(e)}function Qv(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}const Wbt=2147483647;function is(e){return e/1e3}function HW(){return Jn&&Jn.addEventListener&&Jn.performance}let Qne=0,Ea={},sf,M2;function Vbt(){const e=HW();if(e&&Ic){e.mark&&Jn.performance.mark("sentry-tracing-init");const t=Kbt(),n=Zbt(),r=Xbt(),i=Jbt();return()=>{t(),n(),r(),i()}}return()=>{}}function qbt(){nT("longtask",({entries:e})=>{for(const t of e){const n=D1();if(!n)return;const r=is(Ic+t.startTime),i=is(t.duration);n.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+i})}})}function Gbt(){nT("event",({entries:e})=>{for(const t of e){const n=D1();if(!n)return;if(t.name==="click"){const r=is(Ic+t.startTime),i=is(t.duration),a={description:zv(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+i},s=M1e(t.target);s&&(a.attributes={"ui.component_name":s}),n.startChild(a)}}})}function Ybt(e,t){if(HW()&&Ic){const r=eyt(e,t);return()=>{r()}}return()=>{}}function Zbt(){return Pbt(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(ki&&kt.log("[Measurements] Adding CLS"),Ea.cls={value:e.value,unit:""},M2=t)},!0)}function Xbt(){return Lbt(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(ki&&kt.log("[Measurements] Adding LCP"),Ea.lcp={value:e.value,unit:"millisecond"},sf=t)},!0)}function Kbt(){return $bt(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=is(Ic),r=is(t.startTime);ki&&kt.log("[Measurements] Adding FID"),Ea.fid={value:e.value,unit:"millisecond"},Ea["mark.fid"]={value:n+r,unit:"second"}})}function Jbt(){return Mbt(({metric:e})=>{e.entries[e.entries.length-1]&&(ki&&kt.log("[Measurements] Adding TTFB"),Ea.ttfb={value:e.value,unit:"millisecond"})})}const Wne={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function eyt(e,t){return Fbt(({metric:n})=>{if(n.value===void 0)return;const r=n.entries.find(k=>k.duration===n.value&&Wne[k.name]!==void 0),i=cs();if(!r||!i)return;const a=Wne[r.name],s=i.getOptions(),o=is(Ic+r.startTime),l=is(n.value),u=r.interactionId!==void 0?e[r.interactionId]:void 0;if(u===void 0)return;const{routeName:d,parentContext:f,activeTransaction:p,user:g,replayId:O}=u,S=g!==void 0?g.email||g.id||g.ip_address:void 0,T=p!==void 0?p.getProfileId():void 0,w=new PI({startTimestamp:o,endTimestamp:o+l,op:`ui.interaction.${a}`,name:zv(r.target),attributes:{release:s.release,environment:s.environment,transaction:d,...S!==void 0&&S!==""?{user:S}:{},...T!==void 0?{profile_id:T}:{},...O!==void 0?{replay_id:O}:{}},exclusiveTime:n.value,measurements:{inp:{value:n.value,unit:"millisecond"}}}),x=uyt(f,s,t);if(x&&Math.random(){ki&&kt.error("Error while sending interaction:",R)});return}})}function tyt(e){const t=HW();if(!t||!Jn.performance.getEntries||!Ic)return;ki&&kt.log("[Tracing] Adding & adjusting spans using Performance API");const n=is(Ic),r=t.getEntries(),{op:i,start_timestamp:a}=Jo(e);if(r.slice(Qne).forEach(s=>{const o=is(s.startTime),l=is(s.duration);if(!(e.op==="navigation"&&a&&n+o{if(!Ea[o]||!a||n>=a)return;const l=Ea[o].value,u=n+is(l),d=Math.abs((u-a)*1e3),f=d-l;ki&&kt.log(`[Measurements] Normalized ${o} from ${l} to ${d} (${f})`),Ea[o].value=d});const s=Ea["mark.fid"];s&&Ea.fid&&(Qv(e,{description:"first input delay",endTimestamp:s.value+is(Ea.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:s.value}),delete Ea["mark.fid"]),"fcp"in Ea||delete Ea.cls,Object.keys(Ea).forEach(o=>{M1t(o,Ea[o].value,Ea[o].unit)}),oyt(e)}sf=void 0,M2=void 0,Ea={}}function nyt(e,t,n,r,i){const a=i+n,s=a+r;return Qv(e,{description:t.name,endTimestamp:s,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:a}),a}function ryt(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{x4(e,t,r,n)}),x4(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),x4(e,t,"fetch",n,"cache","domainLookupStart"),x4(e,t,"domainLookup",n,"DNS"),iyt(e,t,n)}function x4(e,t,n,r,i,a){const s=a?t[a]:t[`${n}End`],o=t[`${n}Start`];!o||!s||Qv(e,{op:"browser",origin:"auto.browser.browser.metrics",description:i||n,startTimestamp:r+is(o),endTimestamp:r+is(s)})}function iyt(e,t,n){t.responseEnd&&(Qv(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+is(t.requestStart),endTimestamp:n+is(t.responseEnd)}),Qv(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+is(t.responseStart),endTimestamp:n+is(t.responseEnd)}))}function ayt(e,t,n,r,i,a){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const s=u1(n),o={};D7(o,t,"transferSize","http.response_transfer_size"),D7(o,t,"encodedBodySize","http.response_content_length"),D7(o,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(o["resource.render_blocking_status"]=t.renderBlockingStatus),s.protocol&&(o["url.scheme"]=s.protocol.split(":").pop()),s.host&&(o["server.address"]=s.host),o["url.same_origin"]=n.includes(Jn.location.origin);const l=a+r,u=l+i;Qv(e,{description:n.replace(Jn.location.origin,""),endTimestamp:u,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:l,data:o})}function syt(e){const t=Jn.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),N7(n.rtt)&&(Ea["connection.rtt"]={value:n.rtt,unit:"millisecond"})),N7(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`),N7(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}function oyt(e){sf&&(ki&&kt.log("[Measurements] Adding LCP Data"),sf.element&&e.setTag("lcp.element",zv(sf.element)),sf.id&&e.setTag("lcp.id",sf.id),sf.url&&e.setTag("lcp.url",sf.url.trim().slice(0,200)),e.setTag("lcp.size",sf.size)),M2&&M2.sources&&(ki&&kt.log("[Measurements] Adding CLS Data"),M2.sources.forEach((t,n)=>e.setTag(`cls.source.${n+1}`,zv(t.node))))}function D7(e,t,n,r){const i=t[n];i!=null&&i0?S.join(","):void 0}}else return{"sentry-trace":f,baggage:p}}function fyt(e){try{return new URL(e).href}catch{return}}function hyt(e,t){if(t.response){UW(e,t.response.status);const n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){const r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus("internal_error");e.end()}const FM=["localhost",/^\/(?!\/)/],BM={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:FM,tracePropagationTargets:FM};function pyt(e){const{traceFetch:t,traceXHR:n,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:a,enableHTTPTimings:s}={traceFetch:BM.traceFetch,traceXHR:BM.traceXHR,...e},o=typeof a=="function"?a:d=>!0,l=d=>yyt(d,r||i),u={};t&&W1e(d=>{const f=cyt(d,o,l,u);if(f){const p=Lbe(d.fetchData.url),g=p?u1(p).host:void 0;f.setAttributes({"http.url":p,"server.address":g})}s&&f&&Vne(f)}),n&&G1e(d=>{const f=vyt(d,o,l,u);s&&f&&Vne(f)})}function myt(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function Vne(e){const{url:t}=Jo(e).data||{};if(!t||typeof t!="string")return;const n=nT("resource",({entries:r})=>{r.forEach(i=>{myt(i)&&i.name.endsWith(t)&&(byt(i).forEach(s=>e.setAttribute(...s)),setTimeout(n))})})}function gyt(e){let t="unknown",n="unknown",r="";for(const i of e){if(i==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}function ef(e=0){return((Ic||performance.timeOrigin)+e)/1e3}function byt(e){const{name:t,version:n}=gyt(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),Ic?[...r,["http.request.redirect_start",ef(e.redirectStart)],["http.request.fetch_start",ef(e.fetchStart)],["http.request.domain_lookup_start",ef(e.domainLookupStart)],["http.request.domain_lookup_end",ef(e.domainLookupEnd)],["http.request.connect_start",ef(e.connectStart)],["http.request.secure_connection_start",ef(e.secureConnectionStart)],["http.request.connection_end",ef(e.connectEnd)],["http.request.request_start",ef(e.requestStart)],["http.request.response_start",ef(e.responseStart)],["http.request.response_end",ef(e.responseEnd)]]:r}function yyt(e,t){return bx(e,t||FM)}function vyt(e,t,n,r){const i=e.xhr,a=i&&i[Sy];if(!FO()||!i||i.__sentry_own_request__||!a)return;const s=t(a.url);if(e.endTimestamp&&s){const g=i.__sentry_xhr_span_id__;if(!g)return;const O=r[g];O&&a.status_code!==void 0&&(UW(O,a.status_code),O.end(),delete r[g]);return}const o=th(),l=X1(),u=Lbe(a.url),d=u?u1(u).host:void 0,f=s?cbe({name:`${a.method} ${a.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":a.method,"http.url":u,url:a.url,"server.address":d,[qg]:"auto.http.browser"},op:"http.client"}):void 0;f&&(i.__sentry_xhr_span_id__=f.spanContext().spanId,r[i.__sentry_xhr_span_id__]=f);const p=cs();if(i.setRequestHeader&&n(a.url)&&p){const{traceId:g,spanId:O,sampled:S,dsc:T}={...l.getPropagationContext(),...o.getPropagationContext()},w=f?II(f):MW(g,O,S),x=K1e(T||(f?Hv(f):DI(g,p,o)));Oyt(i,w,x)}return f}function Oyt(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(IM,n)}catch{}}function Lbe(e){try{return new URL(e,Jn.location.origin).href}catch{return}}function Syt(e,t=!0,n=!0){if(!Jn||!Jn.location){ki&&kt.warn("Could not initialize routing instrumentation due to invalid location");return}let r=Jn.location.href,i;t&&(i=e({name:Jn.location.pathname,startTimestamp:Ic?Ic/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&PW(({to:a,from:s})=>{if(s===void 0&&r&&r.indexOf(a)!==-1){r=void 0;return}s!==a&&(r=void 0,i&&(ki&&kt.log(`[Tracing] Finishing current transaction with op: ${i.op}`),i.end()),i=e({name:Jn.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})}const Eyt="BrowserTracing",wyt={...A_,markBackgroundTransactions:!0,routingInstrumentation:Syt,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...BM},qne=10;class Tyt{constructor(t){this.name=Eyt,this._hasSetTracePropagationTargets=!1,L1t(),ki&&(this._hasSetTracePropagationTargets=!!(t&&(t.tracePropagationTargets||t.tracingOrigins))),this.options={...wyt,...t},this.options._experiments.enableLongTask!==void 0&&(this.options.enableLongTask=this.options._experiments.enableLongTask),t&&!t.tracePropagationTargets&&t.tracingOrigins&&(this.options.tracePropagationTargets=t.tracingOrigins),this._collectWebVitals=Vbt(),this._interactionIdToRouteNameMapping={},this.options.enableInp&&Ybt(this._interactionIdToRouteNameMapping,this.options.interactionsSampleRate),this.options.enableLongTask&&qbt(),this.options._experiments.enableInteractions&&Gbt(),this._latestRoute={name:void 0,context:void 0}}setupOnce(t,n){this._getCurrentHub=n;const i=n().getClient(),a=i&&i.getOptions(),{routingInstrumentation:s,startTransactionOnLocationChange:o,startTransactionOnPageLoad:l,markBackgroundTransactions:u,traceFetch:d,traceXHR:f,shouldCreateSpanForRequest:p,enableHTTPTimings:g,_experiments:O}=this.options,S=a&&a.tracePropagationTargets,T=S||this.options.tracePropagationTargets;ki&&this._hasSetTracePropagationTargets&&S&&kt.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),s(w=>{const x=this._createRouteTransaction(w);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(x,w,n),x},l,o),u&&Obt(),O.enableInteractions&&this._registerInteractionListener(),this.options.enableInp&&this._registerInpInteractionListener(),pyt({traceFetch:d,traceXHR:f,tracePropagationTargets:T,shouldCreateSpanForRequest:p,enableHTTPTimings:g})}_createRouteTransaction(t){if(!this._getCurrentHub){ki&&kt.warn(`[Tracing] Did not create ${t.op} transaction because _getCurrentHub is invalid.`);return}const n=this._getCurrentHub(),{beforeNavigate:r,idleTimeout:i,finalTimeout:a,heartbeatInterval:s}=this.options,o=t.op==="pageload";let l;if(o){const g=o?Gne("sentry-trace"):"",O=o?Gne("baggage"):void 0,{traceId:S,dsc:T,parentSpanId:w,sampled:x}=Ugt(g,O);l={traceId:S,parentSpanId:w,parentSampled:x,...t,metadata:{...t.metadata,dynamicSamplingContext:T},trimEnd:!0}}else l={trimEnd:!0,...t};const u=typeof r=="function"?r(l):l,d=u===void 0?{...l,sampled:!1}:u;d.metadata=d.name!==l.name?{...d.metadata,source:"custom"}:d.metadata,this._latestRoute.name=d.name,this._latestRoute.context=d,d.sampled===!1&&ki&&kt.log(`[Tracing] Will not send ${d.op} transaction because of beforeNavigate.`),ki&&kt.log(`[Tracing] Starting ${d.op} transaction on scope`);const{location:f}=Jn,p=Pne(n,d,i,a,!0,{location:f},s,o);return o&&Jn.document&&(Jn.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(Jn.document.readyState)&&p.sendAutoFinishSignal()}),["interactive","complete"].includes(Jn.document.readyState)&&p.sendAutoFinishSignal()),p.registerBeforeFinishCallback(g=>{this._collectWebVitals(),tyt(g)}),p}_registerInteractionListener(){let t;const n=()=>{const{idleTimeout:r,finalTimeout:i,heartbeatInterval:a}=this.options,s="ui.action.click",o=D1();if(o&&o.op&&["navigation","pageload"].includes(o.op)){ki&&kt.warn(`[Tracing] Did not create ${s} transaction because a pageload or navigation transaction is in progress.`);return}if(t&&(t.setFinishReason("interactionInterrupted"),t.end(),t=void 0),!this._getCurrentHub){ki&&kt.warn(`[Tracing] Did not create ${s} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRoute.name){ki&&kt.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`);return}const l=this._getCurrentHub(),{location:u}=Jn,d={name:this._latestRoute.name,op:s,trimEnd:!0,data:{[c1]:this._latestRoute.context?xyt(this._latestRoute.context):"url"}};t=Pne(l,d,r,i,!0,{location:u},a)};["click"].forEach(r=>{Jn.document&&addEventListener(r,n,{once:!1,capture:!0})})}_registerInpInteractionListener(){const t=({entries:n})=>{const r=cs(),i=r!==void 0&&r.getIntegrationByName!==void 0?r.getIntegrationByName("Replay"):void 0,a=i!==void 0?i.getReplayId():void 0,s=D1(),o=th(),l=o!==void 0?o.getUser():void 0;n.forEach(u=>{if(kyt(u)){const d=u.interactionId;if(d===void 0)return;const f=this._interactionIdToRouteNameMapping[d],p=u.duration,g=u.startTime,O=Object.keys(this._interactionIdToRouteNameMapping),S=O.length>0?O.reduce((T,w)=>this._interactionIdToRouteNameMapping[T].durationthis._interactionIdToRouteNameMapping[w]).some(w=>w.duration===p&&w.startTime===g)||!d)return;if(f)f.duration=Math.max(f.duration,p);else if(O.lengththis._interactionIdToRouteNameMapping[S].duration){const T=this._latestRoute.name,w=this._latestRoute.context;T&&w&&(S&&Object.keys(this._interactionIdToRouteNameMapping).length>=qne&&delete this._interactionIdToRouteNameMapping[S],this._interactionIdToRouteNameMapping[d]={routeName:T,duration:p,parentContext:w,user:l,activeTransaction:s,replayId:a,startTime:g})}}})};nT("event",t),nT("first-input",t)}}function Gne(e){const t=qmt(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function xyt(e){const t=e.attributes&&e.attributes[c1],n=e.data&&e.data[c1],r=e.metadata&&e.metadata.source;return t||n||r}function kyt(e){return"duration"in e}const Kr=Gr;let UM=0;function Mbe(){return UM>0}function Ayt(){UM++,setTimeout(()=>{UM--})}function Wv(e,t={},n){if(typeof e!="function")return e;try{const i=e.__sentry_wrapped__;if(i)return i;if(DW(e))return e}catch{return e}const r=function(){const i=Array.prototype.slice.call(arguments);try{const a=i.map(s=>Wv(s,t));return e.apply(this,a)}catch(a){throw Ayt(),d1t(s=>{s.addEventProcessor(o=>(t.mechanism&&(TM(o,void 0),tT(o,t.mechanism)),o.extra={...o.extra,arguments:i},o)),c1t(a)}),a}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}F1e(r,e),R1(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}const Qh=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function $be(e,t){const n=QW(e,t),r={type:t&&t.name,value:Iyt(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function _yt(e,t,n,r){const i=cs(),a=i&&i.getOptions().normalizeDepth,s={exception:{values:[{type:AI(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Pyt(t,{isUnhandledRejection:r})}]},extra:{__serialized__:Y1e(t,a)}};if(n){const o=QW(e,n);o.length&&(s.exception.values[0].stacktrace={frames:o})}return s}function P7(e,t){return{exception:{values:[$be(e,t)]}}}function QW(e,t){const n=t.stacktrace||t.stack||"",r=Ryt(t);try{return e(n,r)}catch{}return[]}const Cyt=/Minified React error #\d+;/i;function Ryt(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if(Cyt.test(e.message))return 1}return 0}function Iyt(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function Nyt(e,t,n,r){const i=n&&n.syntheticException||void 0,a=WW(e,t,i,r);return tT(a),a.level="error",n&&n.event_id&&(a.event_id=n.event_id),jv(a)}function Dyt(e,t,n="info",r,i){const a=r&&r.syntheticException||void 0,s=zM(e,t,a,i);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),jv(s)}function WW(e,t,n,r,i){let a;if(CW(t)&&t.error)return P7(e,t.error);if(une(t)||$mt(t)){const s=t;if("stack"in t)a=P7(e,t);else{const o=s.name||(une(s)?"DOMError":"DOMException"),l=s.message?`${o}: ${s.message}`:o;a=zM(e,l,n,r),TM(a,l)}return"code"in s&&(a.tags={...a.tags,"DOMException.code":`${s.code}`}),a}return N1e(t)?P7(e,t):Uv(t)||AI(t)?(a=_yt(e,t,n,i),tT(a,{synthetic:!0}),a):(a=zM(e,t,n,r),TM(a,`${t}`),tT(a,{synthetic:!0}),a)}function zM(e,t,n,r){const i={};if(r&&n){const a=QW(e,n);a.length&&(i.exception={values:[{value:t,stacktrace:{frames:a}}]})}if(RW(t)){const{__sentry_template_string__:a,__sentry_template_values__:s}=t;return i.logentry={message:a,params:s},i}return i.message=t,i}function Pyt(e,{isUnhandledRejection:t}){const n=ngt(e),r=t?"promise rejection":"exception";return CW(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:AI(e)?`Event \`${Lyt(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Lyt(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function Myt(e,{metadata:t,tunnel:n,dsn:r}){const i={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:$O(r)}},a=$yt(e);return Z1(i,[a])}function $yt(e){return[{type:"user_report"},e]}class Fyt extends K1t{constructor(t){const n=Kr.SENTRY_SDK_SOURCE||Tgt();Sbe(t,"browser",["browser"],n),super(t),t.sendClientReports&&Kr.document&&Kr.document.addEventListener("visibilitychange",()=>{Kr.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return Nyt(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return Dyt(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){Qh&&kt.warn("SDK not enabled, will not capture user feedback.");return}const n=Myt(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0){Qh&&kt.log("No outcomes to send");return}if(!this._dsn){Qh&&kt.log("No dsn provided, will not send outcomes");return}Qh&&kt.log("Sending outcomes:",t);const n=qgt(t,this._options.tunnel&&$O(this._dsn));this._sendEnvelope(n)}}let qE;function Byt(){if(qE)return qE;if(_M(Kr.fetch))return qE=Kr.fetch.bind(Kr);const e=Kr.document;let t=Kr.fetch;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(n){Qh&&kt.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return qE=t.bind(Kr)}function Uyt(){qE=void 0}function zyt(e,t=Byt()){let n=0,r=0;function i(a){const s=a.body.length;n+=s,r++;const o={body:a.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,o).then(l=>(n-=s,r--,{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}))}catch(l){return Uyt(),n-=s,r--,LW(l)}}return Obe(e,i)}const jyt=4;function Hyt(e){function t(n){return new fu((r,i)=>{const a=new XMLHttpRequest;a.onerror=i,a.onreadystatechange=()=>{a.readyState===jyt&&r({statusCode:a.status,headers:{"x-sentry-rate-limits":a.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":a.getResponseHeader("Retry-After")}})},a.open("POST",e.url);for(const s in e.headers)Object.prototype.hasOwnProperty.call(e.headers,s)&&a.setRequestHeader(s,e.headers[s]);a.send(n.body)})}return Obe(e,t)}const MI="?",Qyt=30,Wyt=40,Vyt=50;function VW(e,t,n,r){const i={filename:e,function:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const qyt=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Gyt=/\((\S*)(?::(\d+))(?::(\d+))\)/,Yyt=e=>{const t=qyt.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){const a=Gyt.exec(t[2]);a&&(t[2]=a[1],t[3]=a[2],t[4]=a[3])}const[r,i]=Fbe(t[1]||MI,t[2]);return VW(i,r,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},Zyt=[Qyt,Yyt],Xyt=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Kyt=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Jyt=e=>{const t=Xyt.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const a=Kyt.exec(t[3]);a&&(t[1]=t[1]||"eval",t[3]=a[1],t[4]=a[2],t[5]="")}let r=t[3],i=t[1]||MI;return[i,r]=Fbe(i,r),VW(r,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},evt=[Vyt,Jyt],tvt=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,nvt=e=>{const t=tvt.exec(e);return t?VW(t[2],t[1]||MI,+t[3],t[4]?+t[4]:void 0):void 0},rvt=[Wyt,nvt],ivt=[Zyt,evt,rvt],avt=z1e(...ivt),Fbe=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:MI,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},k4=1024,Bbe="Breadcrumbs",svt=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:Bbe,setupOnce(){},setup(n){t.console&&sgt(uvt(n)),t.dom&&ugt(lvt(n,t.dom)),t.xhr&&G1e(cvt(n)),t.fetch&&W1e(dvt(n)),t.history&&PW(fvt(n)),t.sentry&&n.on&&n.on("beforeSendEvent",ovt(n))}}},Ube=svt;Am(Bbe,Ube);function ovt(e){return function(n){cs()===e&&N1({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:v0(n)},{event:n})}}function lvt(e,t){return function(r){if(cs()!==e)return;let i,a,s=typeof t=="object"?t.serializeAttribute:void 0,o=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;o&&o>k4&&(Qh&&kt.warn(`\`dom.maxStringLength\` cannot exceed ${k4}, but a value of ${o} was configured. Sentry will use ${k4} instead.`),o=k4),typeof s=="string"&&(s=[s]);try{const u=r.event,d=hvt(u)?u.target:u;i=zv(d,{keyAttrs:s,maxStringLength:o}),a=M1e(d)}catch{i=""}if(i.length===0)return;const l={category:`ui.${r.name}`,message:i};a&&(l.data={"ui.component_name":a}),N1(l,{event:r.event,name:r.name,global:r.global})}}function uvt(e){return function(n){if(cs()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:Ngt(n.level),message:cne(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${cne(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;N1(r,{input:n.args,level:n.level})}}function cvt(e){return function(n){if(cs()!==e)return;const{startTimestamp:r,endTimestamp:i}=n,a=n.xhr[Sy];if(!r||!i||!a)return;const{method:s,url:o,status_code:l,body:u}=a,d={method:s,url:o,status_code:l},f={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:i};N1({category:"xhr",data:d,type:"http"},f)}}function dvt(e){return function(n){if(cs()!==e)return;const{startTimestamp:r,endTimestamp:i}=n;if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const a=n.fetchData,s={data:n.error,input:n.args,startTimestamp:r,endTimestamp:i};N1({category:"fetch",data:a,level:"error",type:"http"},s)}else{const a=n.response,s={...n.fetchData,status_code:a&&a.status},o={input:n.args,response:a,startTimestamp:r,endTimestamp:i};N1({category:"fetch",data:s,type:"http"},o)}}}function fvt(e){return function(n){if(cs()!==e)return;let r=n.from,i=n.to;const a=u1(Kr.location.href);let s=r?u1(r):void 0;const o=u1(i);(!s||!s.path)&&(s=a),a.protocol===o.protocol&&a.host===o.host&&(i=o.relative),a.protocol===s.protocol&&a.host===s.host&&(r=s.relative),N1({category:"navigation",data:{from:r,to:i}})}}function hvt(e){return!!e&&!!e.target}const zbe="Dedupe",pvt=()=>{let e;return{name:zbe,setupOnce(){},processEvent(t){if(t.type)return t;try{if(mvt(t,e))return Qh&&kt.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},jbe=pvt;Am(zbe,jbe);function mvt(e,t){return t?!!(gvt(e,t)||bvt(e,t)):!1}function gvt(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Qbe(e,t)||!Hbe(e,t))}function bvt(e,t){const n=Yne(t),r=Yne(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Qbe(e,t)||!Hbe(e,t))}function Hbe(e,t){let n=Zne(e),r=Zne(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:Wbe,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(vvt(n),Xne("onerror")),t.onunhandledrejection&&(Ovt(n),Xne("onunhandledrejection"))}}},Vbe=yvt;Am(Wbe,Vbe);function vvt(e){V1e(t=>{const{stackParser:n,attachStacktrace:r}=Gbe();if(cs()!==e||Mbe())return;const{msg:i,url:a,line:s,column:o,error:l}=t,u=l===void 0&&Pf(i)?wvt(i,a,s,o):qbe(WW(n,l||i,void 0,r,!1),a,s,o);u.level="error",rbe(u,{originalException:l,mechanism:{handled:!1,type:"onerror"}})})}function Ovt(e){q1e(t=>{const{stackParser:n,attachStacktrace:r}=Gbe();if(cs()!==e||Mbe())return;const i=Svt(t),a=IW(i)?Evt(i):WW(n,i,void 0,r,!0);a.level="error",rbe(a,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function Svt(e){if(IW(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return e}function Evt(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function wvt(e,t,n,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let a=CW(e)?e.message:e,s="Error";const o=a.match(i);return o&&(s=o[1],a=o[2]),qbe({exception:{values:[{type:s,value:a}]}},t,n,r)}function qbe(e,t,n,r){const i=e.exception=e.exception||{},a=i.values=i.values||[],s=a[0]=a[0]||{},o=s.stacktrace=s.stacktrace||{},l=o.frames=o.frames||[],u=isNaN(parseInt(r,10))?void 0:r,d=isNaN(parseInt(n,10))?void 0:n,f=Pf(t)&&t.length>0?t:Vmt();return l.length===0&&l.push({colno:u,filename:f,function:"?",in_app:!0,lineno:d}),e}function Xne(e){Qh&&kt.log(`Global Handler attached: ${e}`)}function Gbe(){const e=cs();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Ybe="HttpContext",Tvt=()=>({name:Ybe,setupOnce(){},preprocessEvent(e){if(!Kr.navigator&&!Kr.location&&!Kr.document)return;const t=e.request&&e.request.url||Kr.location&&Kr.location.href,{referrer:n}=Kr.document||{},{userAgent:r}=Kr.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},a={...e.request,...t&&{url:t},headers:i};e.request=a}}),Zbe=Tvt;Am(Ybe,Zbe);const xvt="cause",kvt=5,Xbe="LinkedErrors",Avt=(e={})=>{const t=e.limit||kvt,n=e.key||xvt;return{name:Xbe,setupOnce(){},preprocessEvent(r,i,a){const s=a.getOptions();jmt($be,s.stackParser,s.maxValueLength,n,t,r,i)}}},Kbe=Avt;Am(Xbe,Kbe);const _vt=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Jbe="TryCatch",Cvt=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:Jbe,setupOnce(){t.setTimeout&&Ws(Kr,"setTimeout",Kne),t.setInterval&&Ws(Kr,"setInterval",Kne),t.requestAnimationFrame&&Ws(Kr,"requestAnimationFrame",Rvt),t.XMLHttpRequest&&"XMLHttpRequest"in Kr&&Ws(XMLHttpRequest.prototype,"send",Ivt);const n=t.eventTarget;n&&(Array.isArray(n)?n:_vt).forEach(Nvt)}}},eye=Cvt;Am(Jbe,eye);function Kne(e){return function(...t){const n=t[0];return t[0]=Wv(n,{mechanism:{data:{function:mp(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Rvt(e){return function(t){return e.apply(this,[Wv(t,{mechanism:{data:{function:"requestAnimationFrame",handler:mp(e)},handled:!1,type:"instrument"}})])}}function Ivt(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&Ws(n,i,function(a){const s={mechanism:{data:{function:i,handler:mp(a)},handled:!1,type:"instrument"}},o=DW(a);return o&&(s.mechanism.data.handler=mp(o)),Wv(a,s)})}),e.apply(this,t)}}function Nvt(e){const t=Kr,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Ws(n,"addEventListener",function(r){return function(i,a,s){try{typeof a.handleEvent=="function"&&(a.handleEvent=Wv(a.handleEvent,{mechanism:{data:{function:"handleEvent",handler:mp(a),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[i,Wv(a,{mechanism:{data:{function:"addEventListener",handler:mp(a),target:e},handled:!1,type:"instrument"}}),s])}}),Ws(n,"removeEventListener",function(r){return function(i,a,s){const o=a;try{const l=o&&o.__sentry_wrapped__;l&&r.call(this,i,l,s)}catch{}return r.call(this,i,o,s)}}))}const Dvt=[wbe(),xbe(),eye(),Ube(),Vbe(),Kbe(),jbe(),Zbe()];function Pvt(e){return[...Dvt]}function Lvt(e={}){e.defaultIntegrations===void 0&&(e.defaultIntegrations=Pvt()),e.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(e.release=__SENTRY_RELEASE__),Kr.SENTRY_RELEASE&&Kr.SENTRY_RELEASE.id&&(e.release=Kr.SENTRY_RELEASE.id)),e.autoSessionTracking===void 0&&(e.autoSessionTracking=!0),e.sendClientReports===void 0&&(e.sendClientReports=!0);const t={...e,stackParser:igt(e.stackParser||avt),integrations:V1t(e),transport:e.transport||(Q1e()?zyt:Hyt)};tbt(Fyt,t),e.autoSessionTracking&&Mvt()}function Mvt(){if(typeof Kr.document>"u"){Qh&&kt.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}Ane({ignoreDuration:!0}),_ne(),PW(({from:e,to:t})=>{e!==void 0&&e!==t&&(Ane({ignoreDuration:!0}),_ne())})}function $vt(e){const t={...e};Sbe(t,"react"),Lvt(t)}function Fvt(e,t,n,r,i,a){return(s,o=!0,l=!0)=>{const u=Kr&&Kr.location&&Kr.location.pathname;o&&u&&s({name:u,attributes:{[c1]:"url",[VE]:"pageload",[qg]:"auto.pageload.react.reactrouter_v6"}})}}const Bvt=()=>["settings"],Uvt=()=>{const e=Du(),t=Pr(HR),n=cO({queryKey:Bvt(),enabled:t.yorkieIntelligence===null&&t.fileUpload===null,queryFn:async()=>(await tr.get("/settings")).data,staleTime:1e3*60*60*24});return M.useEffect(()=>{if(!n.isSuccess)return;const r=n.data;e(qJe(r.yorkieIntelligence)),e(GJe(r.fileUpload))},[e,n.data,n.isSuccess]),n},zvt=e=>{var t;return e instanceof Sle&&((t=e.response)==null?void 0:t.status)===404},jvt=e=>{var t;return e instanceof Sle&&((t=e.response)==null?void 0:t.status)===500};$vt({dsn:"https://d287d6df8c6f423189266360055e6ca7@o553194.ingest.sentry.io/5680102",release:"codepair@0.1.9",integrations:[new Tyt({routingInstrumentation:Fvt()})],tracesSampleRate:1});const Hvt=r8e(Dmt);tr.defaults.baseURL="https://codepair-api.yorkie.dev";function Qvt(){return Uvt(),null}function Wvt(){const e=Pr(V$),t=pse("(prefers-color-scheme: dark)"),n=M.useMemo(()=>{const a=t?"dark":"light";return o$({typography:{button:{textTransform:"none"}},palette:{mode:e.theme=="default"?a:e.theme}})},[e.theme,t]),r=Mmt(),i=M.useMemo(()=>new j9e({queryCache:new zle({onError:a=>{zvt(a)||jvt(a)?window.location.href="/404":r(a)}}),defaultOptions:{queries:{retry:(a,s)=>{var o;return tr.isAxiosError(s)&&((o=s.response)==null?void 0:o.status)===401?!1:a<3}},mutations:{onError:r}}}),[r]);return I.jsx(q9e,{client:i,children:I.jsx(Lmt,{children:I.jsxs(N4e,{theme:n,children:[I.jsx(mRe,{}),I.jsx(Qvt,{}),I.jsx(ea,{minHeight:"100vh",children:I.jsx(f8e,{router:Hvt})})]})})})}var qW={},GW={};GW.__esModule=!0;GW.default=Gvt;function __(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?__=function(n){return typeof n}:__=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},__(e)}function L7(){}var Vvt={getItem:L7,setItem:L7,removeItem:L7};function qvt(e){if((typeof self>"u"?"undefined":__(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 Gvt(e){var t="".concat(e,"Storage");return qvt(t)?self[t]:Vvt}qW.__esModule=!0;qW.default=Xvt;var Yvt=Zvt(GW);function Zvt(e){return e&&e.__esModule?e:{default:e}}function Xvt(e){var t=(0,Yvt.default)(e);return{getItem:function(r){return new Promise(function(i,a){i(t.getItem(r))})},setItem:function(r,i){return new Promise(function(a,s){a(t.setItem(r,i))})},removeItem:function(r){return new Promise(function(i,a){i(t.removeItem(r))})}}}var tye=void 0,Kvt=Jvt(qW);function Jvt(e){return e&&e.__esModule?e:{default:e}}var eOt=(0,Kvt.default)("local");tye=eOt;var YW="persist:",nye="persist/FLUSH",ZW="persist/REHYDRATE",rye="persist/PAUSE",iye="persist/PERSIST",aye="persist/PURGE",sye="persist/REGISTER",tOt=-1;function C_(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?C_=function(n){return typeof n}:C_=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},C_(e)}function Jne(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 nOt(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hOt(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var pOt=5e3;function mOt(e,t){var n=e.version!==void 0?e.version:tOt;e.debug;var r=e.stateReconciler===void 0?iOt:e.stateReconciler,i=e.getStoredState||oOt,a=e.timeout!==void 0?e.timeout:pOt,s=null,o=!1,l=!0,u=function(f){return f._persist.rehydrated&&s&&!l&&s.update(f),f};return function(d,f){var p=d||{},g=p._persist,O=fOt(p,["_persist"]),S=O;if(f.type===iye){var T=!1,w=function(L,j){T||(f.rehydrate(e.key,L,j),T=!0)};if(a&&setTimeout(function(){!T&&w(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},a),l=!1,s||(s=aOt(e)),g)return Ah({},t(S,f),{_persist:g});if(typeof f.rehydrate!="function"||typeof f.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 f.register(e.key),i(e).then(function(P){var L=e.migrate||function(j,B){return Promise.resolve(j)};L(P,n).then(function(j){w(j)},function(j){w(void 0,j)})},function(P){w(void 0,P)}),Ah({},t(S,f),{_persist:{version:n,rehydrated:!1}})}else{if(f.type===aye)return o=!0,f.result(uOt(e)),Ah({},t(S,f),{_persist:g});if(f.type===nye)return f.result(s&&s.flush()),Ah({},t(S,f),{_persist:g});if(f.type===rye)l=!0;else if(f.type===ZW){if(o)return Ah({},S,{_persist:Ah({},g,{rehydrated:!0})});if(f.key===e.key){var x=t(S,f),k=f.payload,_=r!==!1&&k!==void 0?r(k,d,x,e):x,R=Ah({},_,{_persist:Ah({},g,{rehydrated:!0})});return u(R)}}}if(!g)return t(d,f);var N=t(S,f);return N===S?d:u(Ah({},N,{_persist:g}))}}function tre(e){return yOt(e)||bOt(e)||gOt()}function gOt(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function bOt(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function yOt(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:oye,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case sye:return jM({},t,{registry:[].concat(tre(t.registry),[n.key])});case ZW:var r=t.registry.indexOf(n.key),i=tre(t.registry);return i.splice(r,1),jM({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function SOt(e,t,n){var r=H$(OOt,oye,void 0),i=function(l){r.dispatch({type:sye,key:l})},a=function(l,u,d){var f={type:ZW,payload:u,err:d,key:l};e.dispatch(f),r.dispatch(f)},s=jM({},r,{purge:function(){var l=[];return e.dispatch({type:aye,result:function(d){l.push(d)}}),Promise.all(l)},flush:function(){var l=[];return e.dispatch({type:nye,result:function(d){l.push(d)}}),Promise.all(l)},pause:function(){e.dispatch({type:rye})},persist:function(){e.dispatch({type:iye,register:i,rehydrate:a})}});return s.persist(),s}const EOt=Moe({auth:PYe,config:J8e,user:NMe,editor:KMe,workspace:e9e,document:A9e,setting:YJe}),wOt={key:"root",storage:tye,whitelist:["auth","config"]},TOt=mOt(wOt,EOt),lye=B8e({reducer:TOt,middleware:e=>e({serializableCheck:{ignoredActions:["persist/PERSIST","editor/setDoc","editor/setClient","editor/setCmView"],ignoredPaths:["editor.doc","editor.client","editor.cmView"]},immutableCheck:{ignoredPaths:["editor.doc","editor.client","editor.cmView"]}})});function R_(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?R_=function(n){return typeof n}:R_=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},R_(e)}function xOt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kOt(e,t){for(var n=0;n"u"&&(window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)}),(o=window).gtag.apply(o,a)}},n=t;e.default=n})(fye);var hye={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var t=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;function n(o){return o.toString().trim().replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,function(l,u,d){return u>0&&u+l.length!==d.length&&l.search(t)>-1&&d.charAt(u-2)!==":"&&(d.charAt(u+l.length)!=="-"||d.charAt(u-1)==="-")&&d.charAt(u-1).search(/[^\s-]/)<0?l.toLowerCase():l.substr(1).search(/[A-Z]|\../)>-1?l:l.charAt(0).toUpperCase()+l.substr(1)})}function r(o){return typeof o=="string"&&o.indexOf("@")!==-1}var i="REDACTED (Potential Email Address)";function a(o){return r(o)?(console.warn("This arg looks like an email address, redacting."),i):o}function s(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,d=o||"";return l&&(d=n(o)),u&&(d=a(d)),d}})(hye);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.GA4=void 0;var t=s(fye),n=s(hye),r=["eventCategory","eventAction","eventLabel","eventValue","hitType"],i=["title","location"],a=["page","hitType"];function s(ee){return ee&&ee.__esModule?ee:{default:ee}}function o(ee,q){if(ee==null)return{};var ne=l(ee,q),K,G;if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(ee);for(G=0;G=0)&&Object.prototype.propertyIsEnumerable.call(ee,K)&&(ne[K]=ee[K])}return ne}function l(ee,q){if(ee==null)return{};var ne={},K=Object.keys(ee),G,ie;for(ie=0;ie=0)&&(ne[G]=ee[G]);return ne}function u(ee){"@babel/helpers - typeof";return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(q){return typeof q}:function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},u(ee)}function d(ee){return g(ee)||p(ee)||x(ee)||f()}function f(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p(ee){if(typeof Symbol<"u"&&ee[Symbol.iterator]!=null||ee["@@iterator"]!=null)return Array.from(ee)}function g(ee){if(Array.isArray(ee))return k(ee)}function O(ee,q){var ne=Object.keys(ee);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(ee);q&&(K=K.filter(function(G){return Object.getOwnPropertyDescriptor(ee,G).enumerable})),ne.push.apply(ne,K)}return ne}function S(ee){for(var q=1;qee.length)&&(q=ee.length);for(var ne=0,K=new Array(q);ne2&&arguments[2]!==void 0?arguments[2]:"https://www.googletagmanager.com/gtag/js";if(!(typeof window>"u"||typeof document>"u")&&!q._hasLoadedGA){var ie=document.createElement("script");ie.async=!0,ie.src="".concat(G,"?id=").concat(ne),K&&ie.setAttribute("nonce",K),document.body.appendChild(ie),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},q._hasLoadedGA=!0}}),j(this,"_toGtagOptions",function(ne){if(ne){var K={cookieUpdate:"cookie_update",cookieExpires:"cookie_expires",cookieDomain:"cookie_domain",cookieFlags:"cookie_flags",userId:"user_id",clientId:"client_id",anonymizeIp:"anonymize_ip",contentGroup1:"content_group1",contentGroup2:"content_group2",contentGroup3:"content_group3",contentGroup4:"content_group4",contentGroup5:"content_group5",allowAdFeatures:"allow_google_signals",allowAdPersonalizationSignals:"allow_ad_personalization_signals",nonInteraction:"non_interaction",page:"page_path",hitCallback:"event_callback"},G=Object.entries(ne).reduce(function(ie,H){var Re=T(H,2),Se=Re[0],Z=Re[1];return K[Se]?ie[K[Se]]=Z:ie[Se]=Z,ie},{});return G}}),j(this,"initialize",function(ne){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ne)throw new Error("Require GA_MEASUREMENT_ID");var G=typeof ne=="string"?[{trackingId:ne}]:ne;q._currentMeasurementId=G[0].trackingId;var ie=K.gaOptions,H=K.gtagOptions,Re=K.nonce,Se=K.testMode,Z=Se===void 0?!1:Se,ke=K.gtagUrl;if(q._testMode=Z,Z||q._loadGA(q._currentMeasurementId,Re,ke),q.isInitialized||(q._gtag("js",new Date),G.forEach(function(Xe){var We=S(S(S({},q._toGtagOptions(S(S({},ie),Xe.gaOptions))),H),Xe.gtagOptions);Object.keys(We).length?q._gtag("config",Xe.trackingId,We):q._gtag("config",Xe.trackingId)})),q.isInitialized=!0,!Z){var $e=d(q._queueGtag);for(q._queueGtag=[],q._isQueuing=!1;$e.length;){var ae=$e.shift();q._gtag.apply(q,d(ae)),ae[0]==="get"&&(q._isQueuing=!0)}}}),j(this,"set",function(ne){if(!ne){console.warn("`fieldsObject` is required in .set()");return}if(u(ne)!=="object"){console.warn("Expected `fieldsObject` arg to be an Object");return}Object.keys(ne).length===0&&console.warn("empty `fieldsObject` given to .set()"),q._gaCommand("set",ne)}),j(this,"_gaCommandSendEvent",function(ne,K,G,ie,H){q._gtag("event",K,S(S({event_category:ne,event_label:G,value:ie},H&&{non_interaction:H.nonInteraction}),q._toGtagOptions(H)))}),j(this,"_gaCommandSendEventParameters",function(){for(var ne=arguments.length,K=new Array(ne),G=0;G1?K-1:0),ie=1;ie - +