From 4652d30d0d4e05ca6d6c531e5c4e5c84915f70d6 Mon Sep 17 00:00:00 2001 From: devleejb <52884648+devleejb@users.noreply.github.com> Date: Tue, 23 Jan 2024 04:26:56 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20yorkie-t?= =?UTF-8?q?eam/codepair-poc@49b4f7a63e75bf8147111ef8b060ea69af89f508=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{index-Oz_QdNnu.js => index-KvGT9m0o.js} | 176 +++++++++--------- index.html | 2 +- 2 files changed, 91 insertions(+), 87 deletions(-) rename assets/{index-Oz_QdNnu.js => index-KvGT9m0o.js} (57%) diff --git a/assets/index-Oz_QdNnu.js b/assets/index-KvGT9m0o.js similarity index 57% rename from assets/index-Oz_QdNnu.js rename to assets/index-KvGT9m0o.js index 211c3799..c5bd3906 100644 --- a/assets/index-Oz_QdNnu.js +++ b/assets/index-KvGT9m0o.js @@ -1,4 +1,4 @@ -var Gie=Object.defineProperty;var qie=(e,t,n)=>t in e?Gie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Zie=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Go=(e,t,n)=>(qie(e,typeof t!="symbol"?t+"":t,n),n),jx=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var we=(e,t,n)=>(jx(e,t,"read from private field"),n?n.call(e):t.get(e)),Zt=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Bt=(e,t,n,r)=>(jx(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var $O=(e,t,n,r)=>({set _(i){Bt(e,t,i,n)},get _(){return we(e,t,r)}}),Tn=(e,t,n)=>(jx(e,t,"access private method"),n);var YJe=Zie((aet,oS)=>{function SV(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var aS=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Xie(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 TV={exports:{}},ew={},wV={exports:{}},Hn={};/** +var xoe=Object.defineProperty;var Coe=(e,t,n)=>t in e?xoe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Aoe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var qo=(e,t,n)=>(Coe(e,typeof t!="symbol"?t+"":t,n),n),iC=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var ke=(e,t,n)=>(iC(e,t,"read from private field"),n?n.call(e):t.get(e)),Xt=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Bt=(e,t,n,r)=>(iC(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var XO=(e,t,n,r)=>({set _(i){Bt(e,t,i,n)},get _(){return ke(e,t,r)}}),Tn=(e,t,n)=>(iC(e,t,"access private method"),n);var itt=Aoe((btt,SS)=>{function YV(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var TS=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Kd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function _oe(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 GV={exports:{}},gw={},qV={exports:{}},Hn={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var Gie=Object.defineProperty;var qie=(e,t,n)=>t in e?Gie(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var b1=Symbol.for("react.element"),Kie=Symbol.for("react.portal"),Jie=Symbol.for("react.fragment"),eoe=Symbol.for("react.strict_mode"),toe=Symbol.for("react.profiler"),noe=Symbol.for("react.provider"),roe=Symbol.for("react.context"),ioe=Symbol.for("react.forward_ref"),ooe=Symbol.for("react.suspense"),aoe=Symbol.for("react.memo"),soe=Symbol.for("react.lazy"),MF=Symbol.iterator;function loe(e){return e===null||typeof e!="object"?null:(e=MF&&e[MF]||e["@@iterator"],typeof e=="function"?e:null)}var kV={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},xV=Object.assign,CV={};function rg(e,t,n){this.props=e,this.context=t,this.refs=CV,this.updater=n||kV}rg.prototype.isReactComponent={};rg.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")};rg.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function AV(){}AV.prototype=rg.prototype;function jI(e,t,n){this.props=e,this.context=t,this.refs=CV,this.updater=n||kV}var zI=jI.prototype=new AV;zI.constructor=jI;xV(zI,rg.prototype);zI.isPureReactComponent=!0;var $F=Array.isArray,_V=Object.prototype.hasOwnProperty,VI={current:null},RV={key:!0,ref:!0,__self:!0,__source:!0};function IV(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)_V.call(t,r)&&!RV.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1t in e?Gie(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var poe=N,hoe=Symbol.for("react.element"),moe=Symbol.for("react.fragment"),goe=Object.prototype.hasOwnProperty,boe=poe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,yoe={key:!0,ref:!0,__self:!0,__source:!0};function NV(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)goe.call(t,r)&&!yoe.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:hoe,type:e,key:o,ref:a,props:i,_owner:boe.current}}ew.Fragment=moe;ew.jsx=NV;ew.jsxs=NV;TV.exports=ew;var M=TV.exports,d2={},DV={exports:{}},gs={},PV={exports:{}},LV={};/** + */var Woe=I,Qoe=Symbol.for("react.element"),Yoe=Symbol.for("react.fragment"),Goe=Object.prototype.hasOwnProperty,qoe=Woe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Zoe={key:!0,ref:!0,__self:!0,__source:!0};function rH(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)Goe.call(t,r)&&!Zoe.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:Qoe,type:e,key:o,ref:a,props:i,_owner:qoe.current}}gw.Fragment=Yoe;gw.jsx=rH;gw.jsxs=rH;GV.exports=gw;var M=GV.exports,I2={},iH={exports:{}},ys={},oH={exports:{}},aH={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var Gie=Object.defineProperty;var qie=(e,t,n)=>t in e?Gie(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(Y,q){var j=Y.length;Y.push(q);e:for(;0>>1,Ee=Y[le];if(0>>1;lei(ge,j))hei(Ne,ge)?(Y[le]=Ne,Y[he]=j,le=he):(Y[le]=ge,Y[ue]=j,le=ue);else if(hei(Ne,j))Y[le]=Ne,Y[he]=j,le=he;else break e}}return q}function i(Y,q){var j=Y.sortIndex-q.sortIndex;return j!==0?j:Y.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,d=null,p=3,h=!1,m=!1,y=!1,O=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(Y){for(var q=n(u);q!==null;){if(q.callback===null)r(u);else if(q.startTime<=Y)r(u),q.sortIndex=q.expirationTime,t(l,q);else break;q=n(u)}}function k(Y){if(y=!1,S(Y),!m)if(n(l)!==null)m=!0,X(C);else{var q=n(u);q!==null&&Z(k,q.startTime-Y)}}function C(Y,q){m=!1,y&&(y=!1,b($),$=-1),h=!0;var j=p;try{for(S(q),d=n(l);d!==null&&(!(d.expirationTime>q)||Y&&!B());){var le=d.callback;if(typeof le=="function"){d.callback=null,p=d.priorityLevel;var Ee=le(d.expirationTime<=q);q=e.unstable_now(),typeof Ee=="function"?d.callback=Ee:d===n(l)&&r(l),S(q)}else r(l);d=n(l)}if(d!==null)var G=!0;else{var ue=n(u);ue!==null&&Z(k,ue.startTime-q),G=!1}return G}finally{d=null,p=j,h=!1}}var w=!1,E=null,$=-1,D=5,R=-1;function B(){return!(e.unstable_now()-RY||125le?(Y.sortIndex=j,t(u,Y),n(l)===null&&Y===n(u)&&(y?(b($),$=-1):y=!0,Z(k,j-le))):(Y.sortIndex=Ee,t(l,Y),m||h||(m=!0,X(C))),Y},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(Y){var q=p;return function(){var j=p;p=q;try{return Y.apply(this,arguments)}finally{p=j}}}})(LV);PV.exports=LV;var Ooe=PV.exports;/** + */(function(e){function t(Y,Z){var j=Y.length;Y.push(Z);e:for(;0>>1,ve=Y[se];if(0>>1;sei(ge,j))uei(xe,ge)?(Y[se]=xe,Y[ue]=j,se=ue):(Y[se]=ge,Y[ce]=j,se=ce);else if(uei(xe,j))Y[se]=xe,Y[ue]=j,se=ue;else break e}}return Z}function i(Y,Z){var j=Y.sortIndex-Z.sortIndex;return j!==0?j:Y.id-Z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,d=null,p=3,h=!1,m=!1,b=!1,O=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(Y){for(var Z=n(u);Z!==null;){if(Z.callback===null)r(u);else if(Z.startTime<=Y)r(u),Z.sortIndex=Z.expirationTime,t(l,Z);else break;Z=n(u)}}function k(Y){if(b=!1,S(Y),!m)if(n(l)!==null)m=!0,X(C);else{var Z=n(u);Z!==null&&q(k,Z.startTime-Y)}}function C(Y,Z){m=!1,b&&(b=!1,y($),$=-1),h=!0;var j=p;try{for(S(Z),d=n(l);d!==null&&(!(d.expirationTime>Z)||Y&&!B());){var se=d.callback;if(typeof se=="function"){d.callback=null,p=d.priorityLevel;var ve=se(d.expirationTime<=Z);Z=e.unstable_now(),typeof ve=="function"?d.callback=ve:d===n(l)&&r(l),S(Z)}else r(l);d=n(l)}if(d!==null)var G=!0;else{var ce=n(u);ce!==null&&q(k,ce.startTime-Z),G=!1}return G}finally{d=null,p=j,h=!1}}var w=!1,E=null,$=-1,N=5,R=-1;function B(){return!(e.unstable_now()-RY||125se?(Y.sortIndex=j,t(u,Y),n(l)===null&&Y===n(u)&&(b?(y($),$=-1):b=!0,q(k,j-se))):(Y.sortIndex=ve,t(l,Y),m||h||(m=!0,X(C))),Y},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(Y){var Z=p;return function(){var j=p;p=Z;try{return Y.apply(this,arguments)}finally{p=j}}}})(aH);oH.exports=aH;var Xoe=oH.exports;/** * @license React * react-dom.production.min.js * @@ -30,21 +30,21 @@ var Gie=Object.defineProperty;var qie=(e,t,n)=>t in e?Gie(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var MV=N,ds=Ooe;function St(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f2=Object.prototype.hasOwnProperty,voe=/^[: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]*$/,BF={},UF={};function Eoe(e){return f2.call(UF,e)?!0:f2.call(BF,e)?!1:voe.test(e)?UF[e]=!0:(BF[e]=!0,!1)}function Soe(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 Toe(e,t,n,r){if(t===null||typeof t>"u"||Soe(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 ia(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var bo={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){bo[e]=new ia(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];bo[t]=new ia(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){bo[e]=new ia(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){bo[e]=new ia(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){bo[e]=new ia(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){bo[e]=new ia(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){bo[e]=new ia(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){bo[e]=new ia(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){bo[e]=new ia(e,5,!1,e.toLowerCase(),null,!1,!1)});var WI=/[\-:]([a-z])/g;function QI(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(WI,QI);bo[t]=new ia(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(WI,QI);bo[t]=new ia(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(WI,QI);bo[t]=new ia(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){bo[e]=new ia(e,1,!1,e.toLowerCase(),null,!1,!1)});bo.xlinkHref=new ia("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){bo[e]=new ia(e,1,!1,e.toLowerCase(),null,!0,!0)});function YI(e,t,n,r){var i=bo.hasOwnProperty(t)?bo[t]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),D2=Object.prototype.hasOwnProperty,Koe=/^[: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]*$/,o6={},a6={};function Joe(e){return D2.call(a6,e)?!0:D2.call(o6,e)?!1:Koe.test(e)?a6[e]=!0:(o6[e]=!0,!1)}function eae(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 tae(e,t,n,r){if(t===null||typeof t>"u"||eae(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 aa(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var yo={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){yo[e]=new aa(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];yo[t]=new aa(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){yo[e]=new aa(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){yo[e]=new aa(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){yo[e]=new aa(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){yo[e]=new aa(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){yo[e]=new aa(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){yo[e]=new aa(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){yo[e]=new aa(e,5,!1,e.toLowerCase(),null,!1,!1)});var fD=/[\-:]([a-z])/g;function pD(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(fD,pD);yo[t]=new aa(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(fD,pD);yo[t]=new aa(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(fD,pD);yo[t]=new aa(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){yo[e]=new aa(e,1,!1,e.toLowerCase(),null,!1,!1)});yo.xlinkHref=new aa("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){yo[e]=new aa(e,1,!1,e.toLowerCase(),null,!0,!0)});function hD(e,t,n,r){var i=yo.hasOwnProperty(t)?yo[t]:null;(i!==null?i.type!==0:r||!(2s||i[a]!==o[s]){var l=` -`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{Hx=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?L0(e):""}function woe(e){switch(e.tag){case 5:return L0(e.type);case 16:return L0("Lazy");case 13:return L0("Suspense");case 19:return L0("SuspenseList");case 0:case 2:case 15:return e=Wx(e.type,!1),e;case 11:return e=Wx(e.type.render,!1),e;case 1:return e=Wx(e.type,!0),e;default:return""}}function g2(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case vh:return"Fragment";case Oh:return"Portal";case p2:return"Profiler";case GI:return"StrictMode";case h2:return"Suspense";case m2:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case BV:return(e.displayName||"Context")+".Consumer";case FV:return(e._context.displayName||"Context")+".Provider";case qI:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ZI:return t=e.displayName||null,t!==null?t:g2(e.type)||"Memo";case Wc:t=e._payload,e=e._init;try{return g2(e(t))}catch{}}return null}function koe(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return g2(t);case 8:return t===GI?"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 Id(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function jV(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function xoe(e){var t=jV(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function UO(e){e._valueTracker||(e._valueTracker=xoe(e))}function zV(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=jV(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function sS(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 b2(e,t){var n=t.checked;return Zr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function zF(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Id(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 VV(e,t){t=t.checked,t!=null&&YI(e,"checked",t,!1)}function y2(e,t){VV(e,t);var n=Id(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")?O2(e,t.type,n):t.hasOwnProperty("defaultValue")&&O2(e,t.type,Id(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function VF(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 O2(e,t,n){(t!=="number"||sS(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var M0=Array.isArray;function zh(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=jO.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function zb(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var J0={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},Coe=["Webkit","ms","Moz","O"];Object.keys(J0).forEach(function(e){Coe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),J0[t]=J0[e]})});function YV(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||J0.hasOwnProperty(e)&&J0[e]?(""+t).trim():t+"px"}function GV(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=YV(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Aoe=Zr({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 S2(e,t){if(t){if(Aoe[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(St(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(St(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(St(61))}if(t.style!=null&&typeof t.style!="object")throw Error(St(62))}}function T2(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 w2=null;function XI(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var k2=null,Vh=null,Hh=null;function QF(e){if(e=v1(e)){if(typeof k2!="function")throw Error(St(280));var t=e.stateNode;t&&(t=ow(t),k2(e.stateNode,e.type,t))}}function qV(e){Vh?Hh?Hh.push(e):Hh=[e]:Vh=e}function ZV(){if(Vh){var e=Vh,t=Hh;if(Hh=Vh=null,QF(e),t)for(e=0;e>>=0,e===0?32:31-(Boe(e)/Uoe|0)|0}var zO=64,VO=4194304;function $0(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 dS(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~i;s!==0?r=$0(s):(o&=a,o!==0&&(r=$0(o)))}else a=n&~i,a!==0?r=$0(a):o!==0&&(r=$0(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function y1(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-wl(t),e[t]=n}function Hoe(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=tb),t6=" ",n6=!1;function gH(e,t){switch(e){case"keyup":return yae.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bH(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Eh=!1;function vae(e,t){switch(e){case"compositionend":return bH(t);case"keypress":return t.which!==32?null:(n6=!0,t6);case"textInput":return e=t.data,e===t6&&n6?null:e;default:return null}}function Eae(e,t){if(Eh)return e==="compositionend"||!oN&&gH(e,t)?(e=hH(),uE=nN=sd=null,Eh=!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=a6(n)}}function EH(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?EH(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function SH(){for(var e=window,t=sS();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=sS(e.document)}return t}function aN(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 Rae(e){var t=SH(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&EH(n.ownerDocument.documentElement,n)){if(r!==null&&aN(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=s6(n,o);var a=s6(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Sh=null,I2=null,rb=null,N2=!1;function l6(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;N2||Sh==null||Sh!==sS(r)||(r=Sh,"selectionStart"in r&&aN(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}),rb&&Gb(rb,r)||(rb=r,r=hS(I2,"onSelect"),0kh||(e.current=F2[kh],F2[kh]=null,kh--)}function wr(e,t){kh++,F2[kh]=e.current,e.current=t}var Nd={},Lo=Wd(Nd),Ea=Wd(!1),Xf=Nd;function _m(e,t){var n=e.type.contextTypes;if(!n)return Nd;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Sa(e){return e=e.childContextTypes,e!=null}function gS(){Nr(Ea),Nr(Lo)}function m6(e,t,n){if(Lo.current!==Nd)throw Error(St(168));wr(Lo,t),wr(Ea,n)}function IH(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(St(108,koe(e)||"Unknown",i));return Zr({},n,r)}function bS(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Nd,Xf=Lo.current,wr(Lo,e),wr(Ea,Ea.current),!0}function g6(e,t,n){var r=e.stateNode;if(!r)throw Error(St(169));n?(e=IH(e,t,Xf),r.__reactInternalMemoizedMergedChildContext=e,Nr(Ea),Nr(Lo),wr(Lo,e)):Nr(Ea),wr(Ea,n)}var Zu=null,aw=!1,oC=!1;function NH(e){Zu===null?Zu=[e]:Zu.push(e)}function zae(e){aw=!0,NH(e)}function Qd(){if(!oC&&Zu!==null){oC=!0;var e=0,t=dr;try{var n=Zu;for(dr=1;e>=a,i-=a,tc=1<<32-wl(t)+i|n<$?(D=E,E=null):D=E.sibling;var R=p(b,E,S[$],k);if(R===null){E===null&&(E=D);break}e&&E&&R.alternate===null&&t(b,E),v=o(R,v,$),w===null?C=R:w.sibling=R,w=R,E=D}if($===S.length)return n(b,E),zr&&mf(b,$),C;if(E===null){for(;$$?(D=E,E=null):D=E.sibling;var B=p(b,E,R.value,k);if(B===null){E===null&&(E=D);break}e&&E&&B.alternate===null&&t(b,E),v=o(B,v,$),w===null?C=B:w.sibling=B,w=B,E=D}if(R.done)return n(b,E),zr&&mf(b,$),C;if(E===null){for(;!R.done;$++,R=S.next())R=d(b,R.value,k),R!==null&&(v=o(R,v,$),w===null?C=R:w.sibling=R,w=R);return zr&&mf(b,$),C}for(E=r(b,E);!R.done;$++,R=S.next())R=h(E,b,$,R.value,k),R!==null&&(e&&R.alternate!==null&&E.delete(R.key===null?$:R.key),v=o(R,v,$),w===null?C=R:w.sibling=R,w=R);return e&&E.forEach(function(U){return t(b,U)}),zr&&mf(b,$),C}function O(b,v,S,k){if(typeof S=="object"&&S!==null&&S.type===vh&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case BO:e:{for(var C=S.key,w=v;w!==null;){if(w.key===C){if(C=S.type,C===vh){if(w.tag===7){n(b,w.sibling),v=i(w,S.props.children),v.return=b,b=v;break e}}else if(w.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Wc&&T6(C)===w.type){n(b,w.sibling),v=i(w,S.props),v.ref=Kg(b,w,S),v.return=b,b=v;break e}n(b,w);break}else t(b,w);w=w.sibling}S.type===vh?(v=Qf(S.props.children,b.mode,k,S.key),v.return=b,b=v):(k=bE(S.type,S.key,S.props,null,b.mode,k),k.ref=Kg(b,v,S),k.return=b,b=k)}return a(b);case Oh:e:{for(w=S.key;v!==null;){if(v.key===w)if(v.tag===4&&v.stateNode.containerInfo===S.containerInfo&&v.stateNode.implementation===S.implementation){n(b,v.sibling),v=i(v,S.children||[]),v.return=b,b=v;break e}else{n(b,v);break}else t(b,v);v=v.sibling}v=pC(S,b.mode,k),v.return=b,b=v}return a(b);case Wc:return w=S._init,O(b,v,w(S._payload),k)}if(M0(S))return m(b,v,S,k);if(Yg(S))return y(b,v,S,k);ZO(b,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,v!==null&&v.tag===6?(n(b,v.sibling),v=i(v,S),v.return=b,b=v):(n(b,v),v=fC(S,b.mode,k),v.return=b,b=v),a(b)):n(b,v)}return O}var Im=UH(!0),jH=UH(!1),E1={},vu=Wd(E1),Kb=Wd(E1),Jb=Wd(E1);function xf(e){if(e===E1)throw Error(St(174));return e}function mN(e,t){switch(wr(Jb,t),wr(Kb,e),wr(vu,E1),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:E2(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=E2(t,e)}Nr(vu),wr(vu,t)}function Nm(){Nr(vu),Nr(Kb),Nr(Jb)}function zH(e){xf(Jb.current);var t=xf(vu.current),n=E2(t,e.type);t!==n&&(wr(Kb,e),wr(vu,n))}function gN(e){Kb.current===e&&(Nr(vu),Nr(Kb))}var Yr=Wd(0);function TS(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var aC=[];function bN(){for(var e=0;en?n:4,e(!0);var r=sC.transition;sC.transition={};try{e(!1),t()}finally{dr=n,sC.transition=r}}function iW(){return Zs().memoizedState}function Qae(e,t,n){var r=Sd(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},oW(e))aW(t,n);else if(n=MH(e,t,n,r),n!==null){var i=ea();kl(n,e,r,i),sW(n,t,r)}}function Yae(e,t,n){var r=Sd(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(oW(e))aW(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,Al(s,a)){var l=t.interleaved;l===null?(i.next=i,pN(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=MH(e,t,i,r),n!==null&&(i=ea(),kl(n,e,r,i),sW(n,t,r))}}function oW(e){var t=e.alternate;return e===qr||t!==null&&t===qr}function aW(e,t){ib=wS=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function sW(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,JI(e,n)}}var kS={readContext:qs,useCallback:wo,useContext:wo,useEffect:wo,useImperativeHandle:wo,useInsertionEffect:wo,useLayoutEffect:wo,useMemo:wo,useReducer:wo,useRef:wo,useState:wo,useDebugValue:wo,useDeferredValue:wo,useTransition:wo,useMutableSource:wo,useSyncExternalStore:wo,useId:wo,unstable_isNewReconciler:!1},Gae={readContext:qs,useCallback:function(e,t){return Jl().memoizedState=[e,t===void 0?null:t],e},useContext:qs,useEffect:k6,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,pE(4194308,4,JH.bind(null,t,e),n)},useLayoutEffect:function(e,t){return pE(4194308,4,e,t)},useInsertionEffect:function(e,t){return pE(4,2,e,t)},useMemo:function(e,t){var n=Jl();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Jl();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=Qae.bind(null,qr,e),[r.memoizedState,e]},useRef:function(e){var t=Jl();return e={current:e},t.memoizedState=e},useState:w6,useDebugValue:SN,useDeferredValue:function(e){return Jl().memoizedState=e},useTransition:function(){var e=w6(!1),t=e[0];return e=Wae.bind(null,e[1]),Jl().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=qr,i=Jl();if(zr){if(n===void 0)throw Error(St(407));n=n()}else{if(n=t(),Gi===null)throw Error(St(349));Jf&30||WH(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,k6(YH.bind(null,r,o,e),[e]),r.flags|=2048,ny(9,QH.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Jl(),t=Gi.identifierPrefix;if(zr){var n=nc,r=tc;n=(r&~(1<<32-wl(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ey++,0")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{sC=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Q0(e):""}function nae(e){switch(e.tag){case 5:return Q0(e.type);case 16:return Q0("Lazy");case 13:return Q0("Suspense");case 19:return Q0("SuspenseList");case 0:case 2:case 15:return e=lC(e.type,!1),e;case 11:return e=lC(e.type.render,!1),e;case 1:return e=lC(e.type,!0),e;default:return""}}function M2(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 Ih:return"Fragment";case Rh:return"Portal";case N2:return"Profiler";case mD:return"StrictMode";case P2:return"Suspense";case L2:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case cH:return(e.displayName||"Context")+".Consumer";case uH:return(e._context.displayName||"Context")+".Provider";case gD:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case bD:return t=e.displayName||null,t!==null?t:M2(e.type)||"Memo";case Zc:t=e._payload,e=e._init;try{return M2(e(t))}catch{}}return null}function rae(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 M2(t);case 8:return t===mD?"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 Fd(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function fH(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function iae(e){var t=fH(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ev(e){e._valueTracker||(e._valueTracker=iae(e))}function pH(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=fH(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function wS(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 $2(e,t){var n=t.checked;return Xr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function l6(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Fd(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 hH(e,t){t=t.checked,t!=null&&hD(e,"checked",t,!1)}function F2(e,t){hH(e,t);var n=Fd(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")?B2(e,t.type,n):t.hasOwnProperty("defaultValue")&&B2(e,t.type,Fd(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function u6(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 B2(e,t,n){(t!=="number"||wS(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Y0=Array.isArray;function Jh(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=tv.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ty(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var cb={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},oae=["Webkit","ms","Moz","O"];Object.keys(cb).forEach(function(e){oae.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),cb[t]=cb[e]})});function yH(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||cb.hasOwnProperty(e)&&cb[e]?(""+t).trim():t+"px"}function OH(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=yH(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var aae=Xr({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 z2(e,t){if(t){if(aae[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(St(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(St(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(St(61))}if(t.style!=null&&typeof t.style!="object")throw Error(St(62))}}function V2(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 H2=null;function yD(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var W2=null,em=null,tm=null;function f6(e){if(e=P1(e)){if(typeof W2!="function")throw Error(St(280));var t=e.stateNode;t&&(t=Ew(t),W2(e.stateNode,e.type,t))}}function vH(e){em?tm?tm.push(e):tm=[e]:em=e}function EH(){if(em){var e=em,t=tm;if(tm=em=null,f6(e),t)for(e=0;e>>=0,e===0?32:31-(bae(e)/yae|0)|0}var nv=64,rv=4194304;function G0(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 AS(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~i;s!==0?r=G0(s):(o&=a,o!==0&&(r=G0(o)))}else a=n&~i,a!==0?r=G0(a):o!==0&&(r=G0(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function D1(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Cl(t),e[t]=n}function Sae(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=fb),E6=" ",S6=!1;function jH(e,t){switch(e){case"keyup":return Zae.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zH(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Dh=!1;function Kae(e,t){switch(e){case"compositionend":return zH(t);case"keypress":return t.which!==32?null:(S6=!0,E6);case"textInput":return e=t.data,e===E6&&S6?null:e;default:return null}}function Jae(e,t){if(Dh)return e==="compositionend"||!xD&&jH(e,t)?(e=BH(),kE=TD=pd=null,Dh=!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=x6(n)}}function QH(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?QH(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function YH(){for(var e=window,t=wS();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=wS(e.document)}return t}function CD(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 lse(e){var t=YH(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&QH(n.ownerDocument.documentElement,n)){if(r!==null&&CD(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=C6(n,o);var a=C6(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Nh=null,X2=null,hb=null,K2=!1;function A6(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;K2||Nh==null||Nh!==wS(r)||(r=Nh,"selectionStart"in r&&CD(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}),hb&&sy(hb,r)||(hb=r,r=IS(X2,"onSelect"),0Mh||(e.current=i_[Mh],i_[Mh]=null,Mh--)}function kr(e,t){Mh++,i_[Mh]=e.current,e.current=t}var Bd={},Mo=ef(Bd),Ta=ef(!1),lp=Bd;function Um(e,t){var n=e.type.contextTypes;if(!n)return Bd;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function wa(e){return e=e.childContextTypes,e!=null}function NS(){Pr(Ta),Pr(Mo)}function L6(e,t,n){if(Mo.current!==Bd)throw Error(St(168));kr(Mo,t),kr(Ta,n)}function nW(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(St(108,rae(e)||"Unknown",i));return Xr({},n,r)}function PS(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Bd,lp=Mo.current,kr(Mo,e),kr(Ta,Ta.current),!0}function M6(e,t,n){var r=e.stateNode;if(!r)throw Error(St(169));n?(e=nW(e,t,lp),r.__reactInternalMemoizedMergedChildContext=e,Pr(Ta),Pr(Mo),kr(Mo,e)):Pr(Ta),kr(Ta,n)}var tc=null,Sw=!1,SC=!1;function rW(e){tc===null?tc=[e]:tc.push(e)}function vse(e){Sw=!0,rW(e)}function tf(){if(!SC&&tc!==null){SC=!0;var e=0,t=dr;try{var n=tc;for(dr=1;e>=a,i-=a,ac=1<<32-Cl(t)+i|n<$?(N=E,E=null):N=E.sibling;var R=p(y,E,S[$],k);if(R===null){E===null&&(E=N);break}e&&E&&R.alternate===null&&t(y,E),v=o(R,v,$),w===null?C=R:w.sibling=R,w=R,E=N}if($===S.length)return n(y,E),Wr&&kf(y,$),C;if(E===null){for(;$$?(N=E,E=null):N=E.sibling;var B=p(y,E,R.value,k);if(B===null){E===null&&(E=N);break}e&&E&&B.alternate===null&&t(y,E),v=o(B,v,$),w===null?C=B:w.sibling=B,w=B,E=N}if(R.done)return n(y,E),Wr&&kf(y,$),C;if(E===null){for(;!R.done;$++,R=S.next())R=d(y,R.value,k),R!==null&&(v=o(R,v,$),w===null?C=R:w.sibling=R,w=R);return Wr&&kf(y,$),C}for(E=r(y,E);!R.done;$++,R=S.next())R=h(E,y,$,R.value,k),R!==null&&(e&&R.alternate!==null&&E.delete(R.key===null?$:R.key),v=o(R,v,$),w===null?C=R:w.sibling=R,w=R);return e&&E.forEach(function(U){return t(y,U)}),Wr&&kf(y,$),C}function O(y,v,S,k){if(typeof S=="object"&&S!==null&&S.type===Ih&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case JO:e:{for(var C=S.key,w=v;w!==null;){if(w.key===C){if(C=S.type,C===Ih){if(w.tag===7){n(y,w.sibling),v=i(w,S.props.children),v.return=y,y=v;break e}}else if(w.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Zc&&V6(C)===w.type){n(y,w.sibling),v=i(w,S.props),v.ref=u0(y,w,S),v.return=y,y=v;break e}n(y,w);break}else t(y,w);w=w.sibling}S.type===Ih?(v=rp(S.props.children,y.mode,k,S.key),v.return=y,y=v):(k=NE(S.type,S.key,S.props,null,y.mode,k),k.ref=u0(y,v,S),k.return=y,y=k)}return a(y);case Rh:e:{for(w=S.key;v!==null;){if(v.key===w)if(v.tag===4&&v.stateNode.containerInfo===S.containerInfo&&v.stateNode.implementation===S.implementation){n(y,v.sibling),v=i(v,S.children||[]),v.return=y,y=v;break e}else{n(y,v);break}else t(y,v);v=v.sibling}v=RC(S,y.mode,k),v.return=y,y=v}return a(y);case Zc:return w=S._init,O(y,v,w(S._payload),k)}if(Y0(S))return m(y,v,S,k);if(i0(S))return b(y,v,S,k);cv(y,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,v!==null&&v.tag===6?(n(y,v.sibling),v=i(v,S),v.return=y,y=v):(n(y,v),v=_C(S,y.mode,k),v.return=y,y=v),a(y)):n(y,v)}return O}var zm=dW(!0),fW=dW(!1),L1={},Tu=ef(L1),dy=ef(L1),fy=ef(L1);function Mf(e){if(e===L1)throw Error(St(174));return e}function MD(e,t){switch(kr(fy,t),kr(dy,e),kr(Tu,L1),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:j2(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=j2(t,e)}Pr(Tu),kr(Tu,t)}function Vm(){Pr(Tu),Pr(dy),Pr(fy)}function pW(e){Mf(fy.current);var t=Mf(Tu.current),n=j2(t,e.type);t!==n&&(kr(dy,e),kr(Tu,n))}function $D(e){dy.current===e&&(Pr(Tu),Pr(dy))}var qr=ef(0);function US(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var TC=[];function FD(){for(var e=0;en?n:4,e(!0);var r=wC.transition;wC.transition={};try{e(!1),t()}finally{dr=n,wC.transition=r}}function _W(){return Ks().memoizedState}function wse(e,t,n){var r=Ad(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},RW(e))IW(t,n);else if(n=sW(e,t,n,r),n!==null){var i=na();Al(n,e,r,i),DW(n,t,r)}}function kse(e,t,n){var r=Ad(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(RW(e))IW(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,Il(s,a)){var l=t.interleaved;l===null?(i.next=i,PD(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=sW(e,t,i,r),n!==null&&(i=na(),Al(n,e,r,i),DW(n,t,r))}}function RW(e){var t=e.alternate;return e===Zr||t!==null&&t===Zr}function IW(e,t){mb=jS=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function DW(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,vD(e,n)}}var zS={readContext:Xs,useCallback:ko,useContext:ko,useEffect:ko,useImperativeHandle:ko,useInsertionEffect:ko,useLayoutEffect:ko,useMemo:ko,useReducer:ko,useRef:ko,useState:ko,useDebugValue:ko,useDeferredValue:ko,useTransition:ko,useMutableSource:ko,useSyncExternalStore:ko,useId:ko,unstable_isNewReconciler:!1},xse={readContext:Xs,useCallback:function(e,t){return nu().memoizedState=[e,t===void 0?null:t],e},useContext:Xs,useEffect:W6,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,_E(4194308,4,wW.bind(null,t,e),n)},useLayoutEffect:function(e,t){return _E(4194308,4,e,t)},useInsertionEffect:function(e,t){return _E(4,2,e,t)},useMemo:function(e,t){var n=nu();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=nu();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=wse.bind(null,Zr,e),[r.memoizedState,e]},useRef:function(e){var t=nu();return e={current:e},t.memoizedState=e},useState:H6,useDebugValue:VD,useDeferredValue:function(e){return nu().memoizedState=e},useTransition:function(){var e=H6(!1),t=e[0];return e=Tse.bind(null,e[1]),nu().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Zr,i=nu();if(Wr){if(n===void 0)throw Error(St(407));n=n()}else{if(n=t(),Zi===null)throw Error(St(349));cp&30||gW(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,W6(yW.bind(null,r,o,e),[e]),r.flags|=2048,my(9,bW.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=nu(),t=Zi.identifierPrefix;if(Wr){var n=sc,r=ac;n=(r&~(1<<32-Cl(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=py++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[lu]=t,e[Xb]=r,gW(e,t,!1,!1),t.stateNode=e;e:{switch(a=T2(n,r),n){case"dialog":Ar("cancel",e),Ar("close",e),i=r;break;case"iframe":case"object":case"embed":Ar("load",e),i=r;break;case"video":case"audio":for(i=0;iPm&&(t.flags|=128,r=!0,Jg(o,!1),t.lanes=4194304)}else{if(!r)if(e=TS(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Jg(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!zr)return ko(t),null}else 2*hi()-o.renderingStartTime>Pm&&n!==1073741824&&(t.flags|=128,r=!0,Jg(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=hi(),t.sibling=null,n=Yr.current,wr(Yr,r?n&1|2:n&1),t):(ko(t),null);case 22:case 23:return AN(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ga&1073741824&&(ko(t),t.subtreeFlags&6&&(t.flags|=8192)):ko(t),null;case 24:return null;case 25:return null}throw Error(St(156,t.tag))}function nse(e,t){switch(lN(t),t.tag){case 1:return Sa(t.type)&&gS(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Nm(),Nr(Ea),Nr(Lo),bN(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return gN(t),null;case 13:if(Nr(Yr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(St(340));Rm()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Nr(Yr),null;case 4:return Nm(),null;case 10:return fN(t.type._context),null;case 22:case 23:return AN(),null;case 24:return null;default:return null}}var KO=!1,_o=!1,rse=typeof WeakSet=="function"?WeakSet:Set,Yt=null;function _h(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){oi(e,t,r)}else n.current=null}function Z2(e,t,n){try{n()}catch(r){oi(e,t,r)}}var P6=!1;function ise(e,t){if(D2=fS,e=SH(),aN(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,u=0,c=0,d=e,p=null;t:for(;;){for(var h;d!==n||i!==0&&d.nodeType!==3||(s=a+i),d!==o||r!==0&&d.nodeType!==3||(l=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(h=d.firstChild)!==null;)p=d,d=h;for(;;){if(d===e)break t;if(p===n&&++u===i&&(s=a),p===o&&++c===r&&(l=a),(h=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=h}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(P2={focusedElem:e,selectionRange:n},fS=!1,Yt=t;Yt!==null;)if(t=Yt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Yt=e;else for(;Yt!==null;){t=Yt;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var y=m.memoizedProps,O=m.memoizedState,b=t.stateNode,v=b.getSnapshotBeforeUpdate(t.elementType===t.type?y:ul(t.type,y),O);b.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(St(163))}}catch(k){oi(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,Yt=e;break}Yt=t.return}return m=P6,P6=!1,m}function ob(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Z2(t,n,o)}i=i.next}while(i!==r)}}function uw(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 X2(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 OW(e){var t=e.alternate;t!==null&&(e.alternate=null,OW(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[lu],delete t[Xb],delete t[$2],delete t[Uae],delete t[jae])),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 vW(e){return e.tag===5||e.tag===3||e.tag===4}function L6(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vW(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 K2(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=mS));else if(r!==4&&(e=e.child,e!==null))for(K2(e,t,n),e=e.sibling;e!==null;)K2(e,t,n),e=e.sibling}function J2(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(J2(e,t,n),e=e.sibling;e!==null;)J2(e,t,n),e=e.sibling}var ao=null,dl=!1;function Lc(e,t,n){for(n=n.child;n!==null;)EW(e,t,n),n=n.sibling}function EW(e,t,n){if(Ou&&typeof Ou.onCommitFiberUnmount=="function")try{Ou.onCommitFiberUnmount(tw,n)}catch{}switch(n.tag){case 5:_o||_h(n,t);case 6:var r=ao,i=dl;ao=null,Lc(e,t,n),ao=r,dl=i,ao!==null&&(dl?(e=ao,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ao.removeChild(n.stateNode));break;case 18:ao!==null&&(dl?(e=ao,n=n.stateNode,e.nodeType===8?iC(e.parentNode,n):e.nodeType===1&&iC(e,n),Qb(e)):iC(ao,n.stateNode));break;case 4:r=ao,i=dl,ao=n.stateNode.containerInfo,dl=!0,Lc(e,t,n),ao=r,dl=i;break;case 0:case 11:case 14:case 15:if(!_o&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&Z2(n,t,a),i=i.next}while(i!==r)}Lc(e,t,n);break;case 1:if(!_o&&(_h(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){oi(n,t,s)}Lc(e,t,n);break;case 21:Lc(e,t,n);break;case 22:n.mode&1?(_o=(r=_o)||n.memoizedState!==null,Lc(e,t,n),_o=r):Lc(e,t,n);break;default:Lc(e,t,n)}}function M6(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new rse),t.forEach(function(r){var i=pse.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function ll(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~o}if(r=i,r=hi()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ase(r/1960))-r,10e?16:e,ld===null)var r=!1;else{if(e=ld,ld=null,AS=0,er&6)throw Error(St(331));var i=er;for(er|=4,Yt=e.current;Yt!==null;){var o=Yt,a=o.child;if(Yt.flags&16){var s=o.deletions;if(s!==null){for(var l=0;lhi()-xN?Wf(e,0):kN|=n),Ta(e,t)}function _W(e,t){t===0&&(e.mode&1?(t=VO,VO<<=1,!(VO&130023424)&&(VO=4194304)):t=1);var n=ea();e=pc(e,t),e!==null&&(y1(e,t,n),Ta(e,n))}function fse(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),_W(e,n)}function pse(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(St(314))}r!==null&&r.delete(t),_W(e,n)}var RW;RW=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ea.current)Oa=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Oa=!1,ese(e,t,n);Oa=!!(e.flags&131072)}else Oa=!1,zr&&t.flags&1048576&&DH(t,OS,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;hE(e,t),e=t.pendingProps;var i=_m(t,Lo.current);Qh(t,n),i=ON(null,t,r,e,i,n);var o=vN();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,Sa(r)?(o=!0,bS(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,hN(t),i.updater=sw,t.stateNode=i,i._reactInternals=t,V2(t,r,e,n),t=Q2(null,t,r,!0,o,n)):(t.tag=0,zr&&o&&sN(t),Xo(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(hE(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=mse(r),e=ul(r,e),i){case 0:t=W2(null,t,r,e,n);break e;case 1:t=I6(null,t,r,e,n);break e;case 11:t=_6(null,t,r,e,n);break e;case 14:t=R6(null,t,r,ul(r.type,e),n);break e}throw Error(St(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ul(r,i),W2(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ul(r,i),I6(e,t,r,i,n);case 3:e:{if(pW(t),e===null)throw Error(St(387));r=t.pendingProps,o=t.memoizedState,i=o.element,$H(e,t),SS(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Dm(Error(St(423)),t),t=N6(e,t,r,n,i);break e}else if(r!==i){i=Dm(Error(St(424)),t),t=N6(e,t,r,n,i);break e}else for(is=Od(t.stateNode.containerInfo.firstChild),ls=t,zr=!0,pl=null,n=jH(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Rm(),r===i){t=hc(e,t,n);break e}Xo(e,t,r,n)}t=t.child}return t;case 5:return zH(t),e===null&&U2(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,L2(r,i)?a=null:o!==null&&L2(r,o)&&(t.flags|=32),fW(e,t),Xo(e,t,a,n),t.child;case 6:return e===null&&U2(t),null;case 13:return hW(e,t,n);case 4:return mN(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Im(t,null,r,n):Xo(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ul(r,i),_6(e,t,r,i,n);case 7:return Xo(e,t,t.pendingProps,n),t.child;case 8:return Xo(e,t,t.pendingProps.children,n),t.child;case 12:return Xo(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,wr(vS,r._currentValue),r._currentValue=a,o!==null)if(Al(o.value,a)){if(o.children===i.children&&!Ea.current){t=hc(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=ac(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),j2(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(St(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),j2(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}Xo(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Qh(t,n),i=qs(i),r=r(i),t.flags|=1,Xo(e,t,r,n),t.child;case 14:return r=t.type,i=ul(r,t.pendingProps),i=ul(r.type,i),R6(e,t,r,i,n);case 15:return cW(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ul(r,i),hE(e,t),t.tag=1,Sa(r)?(e=!0,bS(t)):e=!1,Qh(t,n),BH(t,r,i),V2(t,r,i,n),Q2(null,t,r,!0,e,n);case 19:return mW(e,t,n);case 22:return dW(e,t,n)}throw Error(St(156,t.tag))};function IW(e,t){return rH(e,t)}function hse(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 Fs(e,t,n,r){return new hse(e,t,n,r)}function RN(e){return e=e.prototype,!(!e||!e.isReactComponent)}function mse(e){if(typeof e=="function")return RN(e)?1:0;if(e!=null){if(e=e.$$typeof,e===qI)return 11;if(e===ZI)return 14}return 2}function Td(e,t){var n=e.alternate;return n===null?(n=Fs(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 bE(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")RN(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case vh:return Qf(n.children,i,o,t);case GI:a=8,i|=8;break;case p2:return e=Fs(12,n,t,i|2),e.elementType=p2,e.lanes=o,e;case h2:return e=Fs(13,n,t,i),e.elementType=h2,e.lanes=o,e;case m2:return e=Fs(19,n,t,i),e.elementType=m2,e.lanes=o,e;case UV:return dw(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case FV:a=10;break e;case BV:a=9;break e;case qI:a=11;break e;case ZI:a=14;break e;case Wc:a=16,r=null;break e}throw Error(St(130,e==null?e:typeof e,""))}return t=Fs(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Qf(e,t,n,r){return e=Fs(7,e,r,t),e.lanes=n,e}function dw(e,t,n,r){return e=Fs(22,e,r,t),e.elementType=UV,e.lanes=n,e.stateNode={isHidden:!1},e}function fC(e,t,n){return e=Fs(6,e,null,t),e.lanes=n,e}function pC(e,t,n){return t=Fs(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function gse(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=Yx(0),this.expirationTimes=Yx(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yx(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function IN(e,t,n,r,i,o,a,s,l){return e=new gse(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Fs(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},hN(o),e}function bse(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(LW)}catch(e){console.error(e)}}LW(),DV.exports=gs;var S1=DV.exports;const B0=Vd(S1),Sse=SV({__proto__:null,default:B0},[S1]);var H6=S1;d2.createRoot=H6.createRoot,d2.hydrateRoot=H6.hydrateRoot;const Tse={black:"#000",white:"#fff"},iy=Tse,wse={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"},Qp=wse,kse={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"},Yp=kse,xse={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"},Gp=xse,Cse={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"},qp=Cse,Ase={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"},Zp=Ase,_se={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"},t0=_se,Rse={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"},Ise=Rse;function Dd(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n=0)&&(n[i]=e[i]);return n}function MW(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Nse=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Dse=MW(function(e){return Nse.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Pse(e){if(e.sheet)return e.sheet;for(var t=0;t0?lo(ag,--Ca):0,Lm--,vi===10&&(Lm=1,bw--),vi}function us(){return vi=Ca2||ay(vi)>3?"":" "}function Yse(e,t){for(;--t&&us()&&!(vi<48||vi>102||vi>57&&vi<65||vi>70&&vi<97););return T1(e,yE()+(t<6&&Eu()==32&&us()==32))}function o_(e){for(;us();)switch(vi){case e:return Ca;case 34:case 39:e!==34&&e!==39&&o_(vi);break;case 40:e===41&&o_(e);break;case 92:us();break}return Ca}function Gse(e,t){for(;us()&&e+vi!==57;)if(e+vi===84&&Eu()===47)break;return"/*"+T1(t,Ca-1)+"*"+gw(e===47?e:us())}function qse(e){for(;!ay(Eu());)us();return T1(e,Ca)}function Zse(e){return zW(vE("",null,null,null,[""],e=jW(e),0,[0],e))}function vE(e,t,n,r,i,o,a,s,l){for(var u=0,c=0,d=a,p=0,h=0,m=0,y=1,O=1,b=1,v=0,S="",k=i,C=o,w=r,E=S;O;)switch(m=v,v=us()){case 40:if(m!=108&&lo(E,d-1)==58){i_(E+=lr(OE(v),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:E+=OE(v);break;case 9:case 10:case 13:case 32:E+=Qse(m);break;case 92:E+=Yse(yE()-1,7);continue;case 47:switch(Eu()){case 42:case 47:tv(Xse(Gse(us(),yE()),t,n),l);break;default:E+="/"}break;case 123*y:s[u++]=au(E)*b;case 125*y:case 59:case 0:switch(v){case 0:case 125:O=0;case 59+c:b==-1&&(E=lr(E,/\f/g,"")),h>0&&au(E)-d&&tv(h>32?Q6(E+";",r,n,d-1):Q6(lr(E," ","")+";",r,n,d-2),l);break;case 59:E+=";";default:if(tv(w=W6(E,t,n,u,c,i,s,S,k=[],C=[],d),o),v===123)if(c===0)vE(E,t,w,w,k,o,d,s,C);else switch(p===99&&lo(E,3)===110?100:p){case 100:case 108:case 109:case 115:vE(e,w,w,r&&tv(W6(e,w,w,0,0,i,s,S,i,k=[],d),C),i,C,d,s,r?k:C);break;default:vE(E,w,w,w,[""],C,0,s,C)}}u=c=h=0,y=b=1,S=E="",d=a;break;case 58:d=1+au(E),h=m;default:if(y<1){if(v==123)--y;else if(v==125&&y++==0&&Wse()==125)continue}switch(E+=gw(v),v*y){case 38:b=c>0?1:(E+="\f",-1);break;case 44:s[u++]=(au(E)-1)*b,b=1;break;case 64:Eu()===45&&(E+=OE(us())),p=Eu(),c=d=au(S=E+=qse(yE())),v++;break;case 45:m===45&&au(E)==2&&(y=0)}}return o}function W6(e,t,n,r,i,o,a,s,l,u,c){for(var d=i-1,p=i===0?o:[""],h=$N(p),m=0,y=0,O=0;m0?p[b]+" "+v:lr(v,/&\f/g,p[b])))&&(l[O++]=S);return yw(e,t,n,i===0?LN:s,l,u,c)}function Xse(e,t,n){return yw(e,t,n,$W,gw(Hse()),oy(e,2,-2),0)}function Q6(e,t,n,r){return yw(e,t,n,MN,oy(e,0,r),oy(e,r+1,-1),r)}function Gh(e,t){for(var n="",r=$N(e),i=0;i6)switch(lo(e,t+1)){case 109:if(lo(e,t+4)!==45)break;case 102:return lr(e,/(.+:)(.+)-([^]+)/,"$1"+sr+"$2-$3$1"+IS+(lo(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~i_(e,"stretch")?VW(lr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(lo(e,t+1)!==115)break;case 6444:switch(lo(e,au(e)-3-(~i_(e,"!important")&&10))){case 107:return lr(e,":",":"+sr)+e;case 101:return lr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+sr+(lo(e,14)===45?"inline-":"")+"box$3$1"+sr+"$2$3$1"+Co+"$2box$3")+e}break;case 5936:switch(lo(e,t+11)){case 114:return sr+e+Co+lr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return sr+e+Co+lr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return sr+e+Co+lr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return sr+e+Co+e+e}return e}var ale=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case MN:t.return=VW(t.value,t.length);break;case FW:return Gh([n0(t,{value:lr(t.value,"@","@"+sr)})],i);case LN:if(t.length)return Vse(t.props,function(o){switch(zse(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Gh([n0(t,{props:[lr(o,/:(read-\w+)/,":"+IS+"$1")]})],i);case"::placeholder":return Gh([n0(t,{props:[lr(o,/:(plac\w+)/,":"+sr+"input-$1")]}),n0(t,{props:[lr(o,/:(plac\w+)/,":"+IS+"$1")]}),n0(t,{props:[lr(o,/:(plac\w+)/,Co+"input-$1")]})],i)}return""})}},sle=[ale],lle=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(y){var O=y.getAttribute("data-emotion");O.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var i=t.stylisPlugins||sle,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var O=y.getAttribute("data-emotion").split(" "),b=1;b<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[du]=t,e[cy]=r,jW(e,t,!1,!1),t.stateNode=e;e:{switch(a=V2(n,r),n){case"dialog":_r("cancel",e),_r("close",e),i=r;break;case"iframe":case"object":case"embed":_r("load",e),i=r;break;case"video":case"audio":for(i=0;iWm&&(t.flags|=128,r=!0,c0(o,!1),t.lanes=4194304)}else{if(!r)if(e=US(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),c0(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Wr)return xo(t),null}else 2*gi()-o.renderingStartTime>Wm&&n!==1073741824&&(t.flags|=128,r=!0,c0(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=gi(),t.sibling=null,n=qr.current,kr(qr,r?n&1|2:n&1),t):(xo(t),null);case 22:case 23:return qD(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Za&1073741824&&(xo(t),t.subtreeFlags&6&&(t.flags|=8192)):xo(t),null;case 24:return null;case 25:return null}throw Error(St(156,t.tag))}function Pse(e,t){switch(_D(t),t.tag){case 1:return wa(t.type)&&NS(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vm(),Pr(Ta),Pr(Mo),FD(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return $D(t),null;case 13:if(Pr(qr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(St(340));jm()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Pr(qr),null;case 4:return Vm(),null;case 10:return ND(t.type._context),null;case 22:case 23:return qD(),null;case 24:return null;default:return null}}var fv=!1,Ro=!1,Lse=typeof WeakSet=="function"?WeakSet:Set,Gt=null;function Uh(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ai(e,t,r)}else n.current=null}function g_(e,t,n){try{n()}catch(r){ai(e,t,r)}}var eB=!1;function Mse(e,t){if(J2=_S,e=YH(),CD(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,u=0,c=0,d=e,p=null;t:for(;;){for(var h;d!==n||i!==0&&d.nodeType!==3||(s=a+i),d!==o||r!==0&&d.nodeType!==3||(l=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(h=d.firstChild)!==null;)p=d,d=h;for(;;){if(d===e)break t;if(p===n&&++u===i&&(s=a),p===o&&++c===r&&(l=a),(h=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=h}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(e_={focusedElem:e,selectionRange:n},_S=!1,Gt=t;Gt!==null;)if(t=Gt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Gt=e;else for(;Gt!==null;){t=Gt;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var b=m.memoizedProps,O=m.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?b:dl(t.type,b),O);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(St(163))}}catch(k){ai(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,Gt=e;break}Gt=t.return}return m=eB,eB=!1,m}function gb(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&g_(t,n,o)}i=i.next}while(i!==r)}}function kw(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 b_(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 HW(e){var t=e.alternate;t!==null&&(e.alternate=null,HW(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[du],delete t[cy],delete t[r_],delete t[yse],delete t[Ose])),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 WW(e){return e.tag===5||e.tag===3||e.tag===4}function tB(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||WW(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 y_(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=DS));else if(r!==4&&(e=e.child,e!==null))for(y_(e,t,n),e=e.sibling;e!==null;)y_(e,t,n),e=e.sibling}function O_(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(O_(e,t,n),e=e.sibling;e!==null;)O_(e,t,n),e=e.sibling}var lo=null,pl=!1;function Uc(e,t,n){for(n=n.child;n!==null;)QW(e,t,n),n=n.sibling}function QW(e,t,n){if(Su&&typeof Su.onCommitFiberUnmount=="function")try{Su.onCommitFiberUnmount(bw,n)}catch{}switch(n.tag){case 5:Ro||Uh(n,t);case 6:var r=lo,i=pl;lo=null,Uc(e,t,n),lo=r,pl=i,lo!==null&&(pl?(e=lo,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):lo.removeChild(n.stateNode));break;case 18:lo!==null&&(pl?(e=lo,n=n.stateNode,e.nodeType===8?EC(e.parentNode,n):e.nodeType===1&&EC(e,n),oy(e)):EC(lo,n.stateNode));break;case 4:r=lo,i=pl,lo=n.stateNode.containerInfo,pl=!0,Uc(e,t,n),lo=r,pl=i;break;case 0:case 11:case 14:case 15:if(!Ro&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&g_(n,t,a),i=i.next}while(i!==r)}Uc(e,t,n);break;case 1:if(!Ro&&(Uh(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){ai(n,t,s)}Uc(e,t,n);break;case 21:Uc(e,t,n);break;case 22:n.mode&1?(Ro=(r=Ro)||n.memoizedState!==null,Uc(e,t,n),Ro=r):Uc(e,t,n);break;default:Uc(e,t,n)}}function nB(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Lse),t.forEach(function(r){var i=Wse.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function cl(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~o}if(r=i,r=gi()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Fse(r/1960))-r,10e?16:e,hd===null)var r=!1;else{if(e=hd,hd=null,WS=0,er&6)throw Error(St(331));var i=er;for(er|=4,Gt=e.current;Gt!==null;){var o=Gt,a=o.child;if(Gt.flags&16){var s=o.deletions;if(s!==null){for(var l=0;lgi()-YD?np(e,0):QD|=n),ka(e,t)}function eQ(e,t){t===0&&(e.mode&1?(t=rv,rv<<=1,!(rv&130023424)&&(rv=4194304)):t=1);var n=na();e=yc(e,t),e!==null&&(D1(e,t,n),ka(e,n))}function Hse(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),eQ(e,n)}function Wse(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(St(314))}r!==null&&r.delete(t),eQ(e,n)}var tQ;tQ=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ta.current)Ea=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ea=!1,Dse(e,t,n);Ea=!!(e.flags&131072)}else Ea=!1,Wr&&t.flags&1048576&&iW(t,MS,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;RE(e,t),e=t.pendingProps;var i=Um(t,Mo.current);rm(t,n),i=UD(null,t,r,e,i,n);var o=jD();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,wa(r)?(o=!0,PS(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,LD(t),i.updater=Tw,t.stateNode=i,i._reactInternals=t,u_(t,r,e,n),t=f_(null,t,r,!0,o,n)):(t.tag=0,Wr&&o&&AD(t),Ko(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(RE(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Yse(r),e=dl(r,e),i){case 0:t=d_(null,t,r,e,n);break e;case 1:t=X6(null,t,r,e,n);break e;case 11:t=q6(null,t,r,e,n);break e;case 14:t=Z6(null,t,r,dl(r.type,e),n);break e}throw Error(St(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:dl(r,i),d_(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:dl(r,i),X6(e,t,r,i,n);case 3:e:{if(FW(t),e===null)throw Error(St(387));r=t.pendingProps,o=t.memoizedState,i=o.element,lW(e,t),BS(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Hm(Error(St(423)),t),t=K6(e,t,r,n,i);break e}else if(r!==i){i=Hm(Error(St(424)),t),t=K6(e,t,r,n,i);break e}else for(as=kd(t.stateNode.containerInfo.firstChild),cs=t,Wr=!0,gl=null,n=fW(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(jm(),r===i){t=Oc(e,t,n);break e}Ko(e,t,r,n)}t=t.child}return t;case 5:return pW(t),e===null&&a_(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,t_(r,i)?a=null:o!==null&&t_(r,o)&&(t.flags|=32),$W(e,t),Ko(e,t,a,n),t.child;case 6:return e===null&&a_(t),null;case 13:return BW(e,t,n);case 4:return MD(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=zm(t,null,r,n):Ko(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:dl(r,i),q6(e,t,r,i,n);case 7:return Ko(e,t,t.pendingProps,n),t.child;case 8:return Ko(e,t,t.pendingProps.children,n),t.child;case 12:return Ko(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,kr($S,r._currentValue),r._currentValue=a,o!==null)if(Il(o.value,a)){if(o.children===i.children&&!Ta.current){t=Oc(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=dc(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),s_(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(St(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),s_(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}Ko(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,rm(t,n),i=Xs(i),r=r(i),t.flags|=1,Ko(e,t,r,n),t.child;case 14:return r=t.type,i=dl(r,t.pendingProps),i=dl(r.type,i),Z6(e,t,r,i,n);case 15:return LW(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:dl(r,i),RE(e,t),t.tag=1,wa(r)?(e=!0,PS(t)):e=!1,rm(t,n),cW(t,r,i),u_(t,r,i,n),f_(null,t,r,!0,e,n);case 19:return UW(e,t,n);case 22:return MW(e,t,n)}throw Error(St(156,t.tag))};function nQ(e,t){return AH(e,t)}function Qse(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Us(e,t,n,r){return new Qse(e,t,n,r)}function XD(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Yse(e){if(typeof e=="function")return XD(e)?1:0;if(e!=null){if(e=e.$$typeof,e===gD)return 11;if(e===bD)return 14}return 2}function _d(e,t){var n=e.alternate;return n===null?(n=Us(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function NE(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")XD(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Ih:return rp(n.children,i,o,t);case mD:a=8,i|=8;break;case N2:return e=Us(12,n,t,i|2),e.elementType=N2,e.lanes=o,e;case P2:return e=Us(13,n,t,i),e.elementType=P2,e.lanes=o,e;case L2:return e=Us(19,n,t,i),e.elementType=L2,e.lanes=o,e;case dH:return Cw(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case uH:a=10;break e;case cH:a=9;break e;case gD:a=11;break e;case bD:a=14;break e;case Zc:a=16,r=null;break e}throw Error(St(130,e==null?e:typeof e,""))}return t=Us(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function rp(e,t,n,r){return e=Us(7,e,r,t),e.lanes=n,e}function Cw(e,t,n,r){return e=Us(22,e,r,t),e.elementType=dH,e.lanes=n,e.stateNode={isHidden:!1},e}function _C(e,t,n){return e=Us(6,e,null,t),e.lanes=n,e}function RC(e,t,n){return t=Us(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Gse(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=cC(0),this.expirationTimes=cC(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=cC(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function KD(e,t,n,r,i,o,a,s,l){return e=new Gse(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Us(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},LD(o),e}function qse(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(aQ)}catch(e){console.error(e)}}aQ(),iH.exports=ys;var gg=iH.exports;const Z0=Kd(gg),ele=YV({__proto__:null,default:Z0},[gg]);var cB=gg;I2.createRoot=cB.createRoot,I2.hydrateRoot=cB.hydrateRoot;const tle={black:"#000",white:"#fff"},by=tle,nle={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"},rh=nle,rle={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"},ih=rle,ile={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"},oh=ile,ole={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"},ah=ole,ale={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"},sh=ale,sle={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"},f0=sle,lle={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"},ule=lle;function Ud(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n=0)&&(n[i]=e[i]);return n}function sQ(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var cle=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,dle=sQ(function(e){return cle.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function fle(e){if(e.sheet)return e.sheet;for(var t=0;t0?co(bg,--_a):0,Qm--,Ei===10&&(Qm=1,Nw--),Ei}function ds(){return Ei=_a2||Oy(Ei)>3?"":" "}function kle(e,t){for(;--t&&ds()&&!(Ei<48||Ei>102||Ei>57&&Ei<65||Ei>70&&Ei<97););return M1(e,PE()+(t<6&&wu()==32&&ds()==32))}function k_(e){for(;ds();)switch(Ei){case e:return _a;case 34:case 39:e!==34&&e!==39&&k_(Ei);break;case 40:e===41&&k_(e);break;case 92:ds();break}return _a}function xle(e,t){for(;ds()&&e+Ei!==57;)if(e+Ei===84&&wu()===47)break;return"/*"+M1(t,_a-1)+"*"+Dw(e===47?e:ds())}function Cle(e){for(;!Oy(wu());)ds();return M1(e,_a)}function Ale(e){return pQ(ME("",null,null,null,[""],e=fQ(e),0,[0],e))}function ME(e,t,n,r,i,o,a,s,l){for(var u=0,c=0,d=a,p=0,h=0,m=0,b=1,O=1,y=1,v=0,S="",k=i,C=o,w=r,E=S;O;)switch(m=v,v=ds()){case 40:if(m!=108&&co(E,d-1)==58){w_(E+=lr(LE(v),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:E+=LE(v);break;case 9:case 10:case 13:case 32:E+=wle(m);break;case 92:E+=kle(PE()-1,7);continue;case 47:switch(wu()){case 42:case 47:mv(_le(xle(ds(),PE()),t,n),l);break;default:E+="/"}break;case 123*b:s[u++]=uu(E)*y;case 125*b:case 59:case 0:switch(v){case 0:case 125:O=0;case 59+c:y==-1&&(E=lr(E,/\f/g,"")),h>0&&uu(E)-d&&mv(h>32?fB(E+";",r,n,d-1):fB(lr(E," ","")+";",r,n,d-2),l);break;case 59:E+=";";default:if(mv(w=dB(E,t,n,u,c,i,s,S,k=[],C=[],d),o),v===123)if(c===0)ME(E,t,w,w,k,o,d,s,C);else switch(p===99&&co(E,3)===110?100:p){case 100:case 108:case 109:case 115:ME(e,w,w,r&&mv(dB(e,w,w,0,0,i,s,S,i,k=[],d),C),i,C,d,s,r?k:C);break;default:ME(E,w,w,w,[""],C,0,s,C)}}u=c=h=0,b=y=1,S=E="",d=a;break;case 58:d=1+uu(E),h=m;default:if(b<1){if(v==123)--b;else if(v==125&&b++==0&&Tle()==125)continue}switch(E+=Dw(v),v*b){case 38:y=c>0?1:(E+="\f",-1);break;case 44:s[u++]=(uu(E)-1)*y,y=1;break;case 64:wu()===45&&(E+=LE(ds())),p=wu(),c=d=uu(S=E+=Cle(PE())),v++;break;case 45:m===45&&uu(E)==2&&(b=0)}}return o}function dB(e,t,n,r,i,o,a,s,l,u,c){for(var d=i-1,p=i===0?o:[""],h=iN(p),m=0,b=0,O=0;m0?p[y]+" "+v:lr(v,/&\f/g,p[y])))&&(l[O++]=S);return Pw(e,t,n,i===0?nN:s,l,u,c)}function _le(e,t,n){return Pw(e,t,n,lQ,Dw(Sle()),yy(e,2,-2),0)}function fB(e,t,n,r){return Pw(e,t,n,rN,yy(e,0,r),yy(e,r+1,-1),r)}function om(e,t){for(var n="",r=iN(e),i=0;i6)switch(co(e,t+1)){case 109:if(co(e,t+4)!==45)break;case 102:return lr(e,/(.+:)(.+)-([^]+)/,"$1"+sr+"$2-$3$1"+GS+(co(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~w_(e,"stretch")?hQ(lr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(co(e,t+1)!==115)break;case 6444:switch(co(e,uu(e)-3-(~w_(e,"!important")&&10))){case 107:return lr(e,":",":"+sr)+e;case 101:return lr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+sr+(co(e,14)===45?"inline-":"")+"box$3$1"+sr+"$2$3$1"+Ao+"$2box$3")+e}break;case 5936:switch(co(e,t+11)){case 114:return sr+e+Ao+lr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return sr+e+Ao+lr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return sr+e+Ao+lr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return sr+e+Ao+e+e}return e}var Fle=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case rN:t.return=hQ(t.value,t.length);break;case uQ:return om([p0(t,{value:lr(t.value,"@","@"+sr)})],i);case nN:if(t.length)return Ele(t.props,function(o){switch(vle(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return om([p0(t,{props:[lr(o,/:(read-\w+)/,":"+GS+"$1")]})],i);case"::placeholder":return om([p0(t,{props:[lr(o,/:(plac\w+)/,":"+sr+"input-$1")]}),p0(t,{props:[lr(o,/:(plac\w+)/,":"+GS+"$1")]}),p0(t,{props:[lr(o,/:(plac\w+)/,Ao+"input-$1")]})],i)}return""})}},Ble=[Fle],Ule=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(b){var O=b.getAttribute("data-emotion");O.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var i=t.stylisPlugins||Ble,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(b){for(var O=b.getAttribute("data-emotion").split(" "),y=1;y=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var vle={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ele=/[A-Z]|^ms/g,Sle=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ZW=function(t){return t.charCodeAt(1)===45},G6=function(t){return t!=null&&typeof t!="boolean"},hC=MW(function(e){return ZW(e)?e:e.replace(Ele,"-$&").toLowerCase()}),q6=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Sle,function(r,i,o){return su={name:i,styles:o,next:su},i})}return vle[t]!==1&&!ZW(t)&&typeof n=="number"&&n!==0?n+"px":n};function sy(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return su={name:n.name,styles:n.styles,next:su},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)su={name:r.name,styles:r.styles,next:su},r=r.next;var i=n.styles+";";return i}return Tle(e,t,n)}case"function":{if(e!==void 0){var o=su,a=n(e);return su=o,sy(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function Tle(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?Cle:Ale},J6=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(a){return t.__emotion_forwardProp(a)&&o(a)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},_le=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return GW(n,r,i),kle(function(){return qW(n,r,i)}),null},Rle=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,a;n!==void 0&&(o=n.label,a=n.target);var s=J6(t,n,r),l=s||K6(i),u=!l("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&d.push("label:"+o+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var p=c.length,h=1;ht($le(i)?n:i):t;return M.jsx(xle,{styles:r})}function rQ(e,t){return a_(e,t)}const Ble=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};function ec(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 iQ(e){if(!ec(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=iQ(e[n])}),t}function No(e,t,n={clone:!0}){const r=n.clone?L({},e):e;return ec(e)&&ec(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(ec(t[i])&&i in e&&ec(e[i])?r[i]=No(e[i],t[i],n):n.clone?r[i]=ec(t[i])?iQ(t[i]):t[i]:r[i]=t[i])}),r}var pr={};/** + */var Ki=typeof Symbol=="function"&&Symbol.for,oN=Ki?Symbol.for("react.element"):60103,aN=Ki?Symbol.for("react.portal"):60106,Lw=Ki?Symbol.for("react.fragment"):60107,Mw=Ki?Symbol.for("react.strict_mode"):60108,$w=Ki?Symbol.for("react.profiler"):60114,Fw=Ki?Symbol.for("react.provider"):60109,Bw=Ki?Symbol.for("react.context"):60110,sN=Ki?Symbol.for("react.async_mode"):60111,Uw=Ki?Symbol.for("react.concurrent_mode"):60111,jw=Ki?Symbol.for("react.forward_ref"):60112,zw=Ki?Symbol.for("react.suspense"):60113,jle=Ki?Symbol.for("react.suspense_list"):60120,Vw=Ki?Symbol.for("react.memo"):60115,Hw=Ki?Symbol.for("react.lazy"):60116,zle=Ki?Symbol.for("react.block"):60121,Vle=Ki?Symbol.for("react.fundamental"):60117,Hle=Ki?Symbol.for("react.responder"):60118,Wle=Ki?Symbol.for("react.scope"):60119;function vs(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case oN:switch(e=e.type,e){case sN:case Uw:case Lw:case $w:case Mw:case zw:return e;default:switch(e=e&&e.$$typeof,e){case Bw:case jw:case Hw:case Vw:case Fw:return e;default:return t}}case aN:return t}}}function gQ(e){return vs(e)===Uw}fr.AsyncMode=sN;fr.ConcurrentMode=Uw;fr.ContextConsumer=Bw;fr.ContextProvider=Fw;fr.Element=oN;fr.ForwardRef=jw;fr.Fragment=Lw;fr.Lazy=Hw;fr.Memo=Vw;fr.Portal=aN;fr.Profiler=$w;fr.StrictMode=Mw;fr.Suspense=zw;fr.isAsyncMode=function(e){return gQ(e)||vs(e)===sN};fr.isConcurrentMode=gQ;fr.isContextConsumer=function(e){return vs(e)===Bw};fr.isContextProvider=function(e){return vs(e)===Fw};fr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===oN};fr.isForwardRef=function(e){return vs(e)===jw};fr.isFragment=function(e){return vs(e)===Lw};fr.isLazy=function(e){return vs(e)===Hw};fr.isMemo=function(e){return vs(e)===Vw};fr.isPortal=function(e){return vs(e)===aN};fr.isProfiler=function(e){return vs(e)===$w};fr.isStrictMode=function(e){return vs(e)===Mw};fr.isSuspense=function(e){return vs(e)===zw};fr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Lw||e===Uw||e===$w||e===Mw||e===zw||e===jle||typeof e=="object"&&e!==null&&(e.$$typeof===Hw||e.$$typeof===Vw||e.$$typeof===Fw||e.$$typeof===Bw||e.$$typeof===jw||e.$$typeof===Vle||e.$$typeof===Hle||e.$$typeof===Wle||e.$$typeof===zle)};fr.typeOf=vs;mQ.exports=fr;var Qle=mQ.exports,bQ=Qle,Yle={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Gle={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},yQ={};yQ[bQ.ForwardRef]=Yle;yQ[bQ.Memo]=Gle;var qle=!0;function Zle(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var OQ=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||qle===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},vQ=function(t,n,r){OQ(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function Xle(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 Kle={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Jle=/[A-Z]|^ms/g,eue=/_EMO_([^_]+?)_([^]*?)_EMO_/g,EQ=function(t){return t.charCodeAt(1)===45},hB=function(t){return t!=null&&typeof t!="boolean"},IC=sQ(function(e){return EQ(e)?e:e.replace(Jle,"-$&").toLowerCase()}),mB=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(eue,function(r,i,o){return cu={name:i,styles:o,next:cu},i})}return Kle[t]!==1&&!EQ(t)&&typeof n=="number"&&n!==0?n+"px":n};function vy(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return cu={name:n.name,styles:n.styles,next:cu},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)cu={name:r.name,styles:r.styles,next:cu},r=r.next;var i=n.styles+";";return i}return tue(e,t,n)}case"function":{if(e!==void 0){var o=cu,a=n(e);return cu=o,vy(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function tue(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?oue:aue},OB=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(a){return t.__emotion_forwardProp(a)&&o(a)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},sue=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return OQ(n,r,i),rue(function(){return vQ(n,r,i)}),null},lue=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,a;n!==void 0&&(o=n.label,a=n.target);var s=OB(t,n,r),l=s||yB(i),u=!l("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&d.push("label:"+o+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var p=c.length,h=1;ht(mue(i)?n:i):t;return M.jsx(iue,{styles:r})}function AQ(e,t){return x_(e,t)}const bue=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};function oc(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 _Q(e){if(!oc(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=_Q(e[n])}),t}function No(e,t,n={clone:!0}){const r=n.clone?P({},e):e;return oc(e)&&oc(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(oc(t[i])&&i in e&&oc(e[i])?r[i]=No(e[i],t[i],n):n.clone?r[i]=oc(t[i])?_Q(t[i]):t[i]:r[i]=t[i])}),r}var pr={};/** * @license React * react-is.production.min.js * @@ -52,7 +52,7 @@ Error generating stack: `+o.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var VN=Symbol.for("react.element"),HN=Symbol.for("react.portal"),Rw=Symbol.for("react.fragment"),Iw=Symbol.for("react.strict_mode"),Nw=Symbol.for("react.profiler"),Dw=Symbol.for("react.provider"),Pw=Symbol.for("react.context"),Ule=Symbol.for("react.server_context"),Lw=Symbol.for("react.forward_ref"),Mw=Symbol.for("react.suspense"),$w=Symbol.for("react.suspense_list"),Fw=Symbol.for("react.memo"),Bw=Symbol.for("react.lazy"),jle=Symbol.for("react.offscreen"),oQ;oQ=Symbol.for("react.module.reference");function el(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case VN:switch(e=e.type,e){case Rw:case Nw:case Iw:case Mw:case $w:return e;default:switch(e=e&&e.$$typeof,e){case Ule:case Pw:case Lw:case Bw:case Fw:case Dw:return e;default:return t}}case HN:return t}}}pr.ContextConsumer=Pw;pr.ContextProvider=Dw;pr.Element=VN;pr.ForwardRef=Lw;pr.Fragment=Rw;pr.Lazy=Bw;pr.Memo=Fw;pr.Portal=HN;pr.Profiler=Nw;pr.StrictMode=Iw;pr.Suspense=Mw;pr.SuspenseList=$w;pr.isAsyncMode=function(){return!1};pr.isConcurrentMode=function(){return!1};pr.isContextConsumer=function(e){return el(e)===Pw};pr.isContextProvider=function(e){return el(e)===Dw};pr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===VN};pr.isForwardRef=function(e){return el(e)===Lw};pr.isFragment=function(e){return el(e)===Rw};pr.isLazy=function(e){return el(e)===Bw};pr.isMemo=function(e){return el(e)===Fw};pr.isPortal=function(e){return el(e)===HN};pr.isProfiler=function(e){return el(e)===Nw};pr.isStrictMode=function(e){return el(e)===Iw};pr.isSuspense=function(e){return el(e)===Mw};pr.isSuspenseList=function(e){return el(e)===$w};pr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Rw||e===Nw||e===Iw||e===Mw||e===$w||e===jle||typeof e=="object"&&e!==null&&(e.$$typeof===Bw||e.$$typeof===Fw||e.$$typeof===Dw||e.$$typeof===Pw||e.$$typeof===Lw||e.$$typeof===oQ||e.getModuleId!==void 0)};pr.typeOf=el;const zle=W.oneOfType([W.func,W.object]),sg=zle;function tt(e){if(typeof e!="string")throw new Error(Dd(7));return e.charAt(0).toUpperCase()+e.slice(1)}function NS(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function lg(e,t=166){let n;function r(...i){const o=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(o,t)}return r.clear=()=>{clearTimeout(n)},r}function Vle(e,t){return()=>null}function lb(e,t){var n,r;return N.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 Hr(e){return e&&e.ownerDocument||document}function Xs(e){return Hr(e).defaultView||window}function Hle(e,t){return()=>null}function ly(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Xr=typeof window<"u"?N.useLayoutEffect:N.useEffect;let eB=0;function Wle(e){const[t,n]=N.useState(e),r=e||t;return N.useEffect(()=>{t==null&&(eB+=1,n(`mui-${eB}`))},[t]),r}const tB=Cm.useId;function Pl(e){if(tB!==void 0){const t=tB();return e??t}return Wle(e)}function Qle(e,t,n,r,i){return null}function qi({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=N.useRef(e!==void 0),[o,a]=N.useState(t),s=i?e:o,l=N.useCallback(u=>{i||a(u)},[]);return[s,l]}function jt(e){const t=N.useRef(e);return Xr(()=>{t.current=e}),N.useRef((...n)=>(0,t.current)(...n)).current}function yn(...e){return N.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{ly(n,t)})},e)}let Uw=!0,s_=!1,nB;const Yle={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 Gle(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Yle[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function qle(e){e.metaKey||e.altKey||e.ctrlKey||(Uw=!0)}function mC(){Uw=!1}function Zle(){this.visibilityState==="hidden"&&s_&&(Uw=!0)}function Xle(e){e.addEventListener("keydown",qle,!0),e.addEventListener("mousedown",mC,!0),e.addEventListener("pointerdown",mC,!0),e.addEventListener("touchstart",mC,!0),e.addEventListener("visibilitychange",Zle,!0)}function Kle(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Uw||Gle(t)}function jw(){const e=N.useCallback(i=>{i!=null&&Xle(i.ownerDocument)},[]),t=N.useRef(!1);function n(){return t.current?(s_=!0,window.clearTimeout(nB),nB=window.setTimeout(()=>{s_=!1},100),t.current=!1,!0):!1}function r(i){return Kle(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function aQ(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Xp;function sQ(){if(Xp)return Xp;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Xp="reverse",e.scrollLeft>0?Xp="default":(e.scrollLeft=1,e.scrollLeft===0&&(Xp="negative")),document.body.removeChild(e),Xp}function Jle(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(sQ()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const eue=e=>{const t=N.useRef({});return N.useEffect(()=>{t.current=e}),t.current};function tue(e){return N.Children.toArray(e).filter(t=>N.isValidElement(t))}const nue={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},rue=nue;function zw(e,t){const n=L({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=L({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},!o||!Object.keys(o)?n[r]=i:!i||!Object.keys(i)?n[r]=o:(n[r]=L({},o),Object.keys(i).forEach(a=>{n[r][a]=zw(i[a],o[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Ct(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((o,a)=>{if(a){const s=t(a);s!==""&&o.push(s),n&&n[a]&&o.push(n[a])}return o},[]).join(" ")}),r}const rB=e=>e,iue=()=>{let e=rB;return{configure(t){e=t},generate(t){return e(t)},reset(){e=rB}}},WN=iue(),lQ={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function At(e,t,n="Mui"){const r=lQ[t];return r?`${n}-${r}`:`${WN.generate(e)}-${t}`}function _t(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=At(e,i,n)}),r}function ah(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const oue=["values","unit","step"],aue=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>L({},n,{[r.key]:r.val}),{})};function sue(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=Ge(e,oue),o=aue(t),a=Object.keys(o);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function u(p,h){const m=a.indexOf(h);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(m!==-1&&typeof t[a[m]]=="number"?t[a[m]]:h)-r/100}${n})`}function c(p){return a.indexOf(p)+1`@media (min-width:${QN[e]}px)`};function Aa(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||iB;return t.reduce((a,s,l)=>(a[o.up(o.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const o=r.breakpoints||iB;return Object.keys(t).reduce((a,s)=>{if(Object.keys(o.values||QN).indexOf(s)!==-1){const l=o.up(s);a[l]=n(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return n(t)}function uQ(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function cQ(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function cue(e,...t){const n=uQ(e),r=[n,...t].reduce((i,o)=>No(i,o),{});return cQ(Object.keys(n),r)}function due(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((i,o)=>{o{e[i]!=null&&(n[i]=!0)}),n}function Yf({values:e,breakpoints:t,base:n}){const r=n||due(e,t),i=Object.keys(r);if(i.length===0)return e;let o;return i.reduce((a,s,l)=>(Array.isArray(e)?(a[s]=e[l]!=null?e[l]:e[o],o=l):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[o],o=s):a[s]=e,a),{})}function Vw(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function DS(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=Vw(e,n)||r,t&&(i=t(i,r,e)),i}function gi(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,u=Vw(l,r)||{};return Aa(a,s,d=>{let p=DS(u,i,d);return d===p&&typeof d=="string"&&(p=DS(u,i,`${t}${d==="default"?"":tt(d)}`,d)),n===!1?p:{[n]:p}})};return o.propTypes={},o.filterProps=[t],o}function fue(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const pue={m:"margin",p:"padding"},hue={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},oB={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},mue=fue(e=>{if(e.length>2)if(oB[e])e=oB[e];else return[e];const[t,n]=e.split(""),r=pue[t],i=hue[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),YN=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],GN=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...YN,...GN];function k1(e,t,n,r){var i;const o=(i=Vw(e,t,!1))!=null?i:n;return typeof o=="number"?a=>typeof a=="string"?a:o*a:Array.isArray(o)?a=>typeof a=="string"?a:o[a]:typeof o=="function"?o:()=>{}}function qN(e){return k1(e,"spacing",8)}function rp(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 gue(e,t){return n=>e.reduce((r,i)=>(r[i]=rp(t,n),r),{})}function bue(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=mue(n),o=gue(i,r),a=e[n];return Aa(e,a,o)}function dQ(e,t){const n=qN(e.theme);return Object.keys(e).map(r=>bue(e,t,r,n)).reduce(ub,{})}function ni(e){return dQ(e,YN)}ni.propTypes={};ni.filterProps=YN;function ri(e){return dQ(e,GN)}ri.propTypes={};ri.filterProps=GN;function yue(e=8){if(e.mui)return e;const t=qN({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(o=>{const a=t(o);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function Hw(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(o=>{r[o]=i}),r),{}),n=r=>Object.keys(r).reduce((i,o)=>t[o]?ub(i,t[o](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Ps(e){return typeof e!="number"?e:`${e}px solid`}function tl(e,t){return gi({prop:e,themeKey:"borders",transform:t})}const Oue=tl("border",Ps),vue=tl("borderTop",Ps),Eue=tl("borderRight",Ps),Sue=tl("borderBottom",Ps),Tue=tl("borderLeft",Ps),wue=tl("borderColor"),kue=tl("borderTopColor"),xue=tl("borderRightColor"),Cue=tl("borderBottomColor"),Aue=tl("borderLeftColor"),_ue=tl("outline",Ps),Rue=tl("outlineColor"),Ww=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=k1(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:rp(t,r)});return Aa(e,e.borderRadius,n)}return null};Ww.propTypes={};Ww.filterProps=["borderRadius"];Hw(Oue,vue,Eue,Sue,Tue,wue,kue,xue,Cue,Aue,Ww,_ue,Rue);const Qw=e=>{if(e.gap!==void 0&&e.gap!==null){const t=k1(e.theme,"spacing",8),n=r=>({gap:rp(t,r)});return Aa(e,e.gap,n)}return null};Qw.propTypes={};Qw.filterProps=["gap"];const Yw=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=k1(e.theme,"spacing",8),n=r=>({columnGap:rp(t,r)});return Aa(e,e.columnGap,n)}return null};Yw.propTypes={};Yw.filterProps=["columnGap"];const Gw=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=k1(e.theme,"spacing",8),n=r=>({rowGap:rp(t,r)});return Aa(e,e.rowGap,n)}return null};Gw.propTypes={};Gw.filterProps=["rowGap"];const Iue=gi({prop:"gridColumn"}),Nue=gi({prop:"gridRow"}),Due=gi({prop:"gridAutoFlow"}),Pue=gi({prop:"gridAutoColumns"}),Lue=gi({prop:"gridAutoRows"}),Mue=gi({prop:"gridTemplateColumns"}),$ue=gi({prop:"gridTemplateRows"}),Fue=gi({prop:"gridTemplateAreas"}),Bue=gi({prop:"gridArea"});Hw(Qw,Yw,Gw,Iue,Nue,Due,Pue,Lue,Mue,$ue,Fue,Bue);function qh(e,t){return t==="grey"?t:e}const Uue=gi({prop:"color",themeKey:"palette",transform:qh}),jue=gi({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:qh}),zue=gi({prop:"backgroundColor",themeKey:"palette",transform:qh});Hw(Uue,jue,zue);function ts(e){return e<=1&&e!==0?`${e*100}%`:e}const Vue=gi({prop:"width",transform:ts}),ZN=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i;const o=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||QN[n];return o?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:ts(n)}};return Aa(e,e.maxWidth,t)}return null};ZN.filterProps=["maxWidth"];const Hue=gi({prop:"minWidth",transform:ts}),Wue=gi({prop:"height",transform:ts}),Que=gi({prop:"maxHeight",transform:ts}),Yue=gi({prop:"minHeight",transform:ts});gi({prop:"size",cssProperty:"width",transform:ts});gi({prop:"size",cssProperty:"height",transform:ts});const Gue=gi({prop:"boxSizing"});Hw(Vue,ZN,Hue,Wue,Que,Yue,Gue);const que={border:{themeKey:"borders",transform:Ps},borderTop:{themeKey:"borders",transform:Ps},borderRight:{themeKey:"borders",transform:Ps},borderBottom:{themeKey:"borders",transform:Ps},borderLeft:{themeKey:"borders",transform:Ps},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ps},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ww},color:{themeKey:"palette",transform:qh},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:qh},backgroundColor:{themeKey:"palette",transform:qh},p:{style:ri},pt:{style:ri},pr:{style:ri},pb:{style:ri},pl:{style:ri},px:{style:ri},py:{style:ri},padding:{style:ri},paddingTop:{style:ri},paddingRight:{style:ri},paddingBottom:{style:ri},paddingLeft:{style:ri},paddingX:{style:ri},paddingY:{style:ri},paddingInline:{style:ri},paddingInlineStart:{style:ri},paddingInlineEnd:{style:ri},paddingBlock:{style:ri},paddingBlockStart:{style:ri},paddingBlockEnd:{style:ri},m:{style:ni},mt:{style:ni},mr:{style:ni},mb:{style:ni},ml:{style:ni},mx:{style:ni},my:{style:ni},margin:{style:ni},marginTop:{style:ni},marginRight:{style:ni},marginBottom:{style:ni},marginLeft:{style:ni},marginX:{style:ni},marginY:{style:ni},marginInline:{style:ni},marginInlineStart:{style:ni},marginInlineEnd:{style:ni},marginBlock:{style:ni},marginBlockStart:{style:ni},marginBlockEnd:{style:ni},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:Qw},rowGap:{style:Gw},columnGap:{style:Yw},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ts},maxWidth:{style:ZN},minWidth:{transform:ts},height:{transform:ts},maxHeight:{transform:ts},minHeight:{transform:ts},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},qw=que;function Zue(...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 Xue(e,t){return typeof e=="function"?e(t):e}function Kue(){function e(n,r,i,o){const a={[n]:r,theme:i},s=o[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:c,style:d}=s;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const p=Vw(i,u)||{};return d?d(a):Aa(a,r,m=>{let y=DS(p,c,m);return m===y&&typeof m=="string"&&(y=DS(p,c,`${n}${m==="default"?"":tt(m)}`,m)),l===!1?y:{[l]:y}})}function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const a=(r=o.unstable_sxConfig)!=null?r:qw;function s(l){let u=l;if(typeof l=="function")u=l(o);else if(typeof l!="object")return l;if(!u)return null;const c=uQ(o.breakpoints),d=Object.keys(c);let p=c;return Object.keys(u).forEach(h=>{const m=Xue(u[h],o);if(m!=null)if(typeof m=="object")if(a[h])p=ub(p,e(h,m,o,a));else{const y=Aa({theme:o},m,O=>({[h]:O}));Zue(y,m)?p[h]=t({sx:m,theme:o}):p=ub(p,y)}else p=ub(p,e(h,m,o,a))}),cQ(d,p)}return Array.isArray(i)?i.map(s):s(i)}return t}const x1=Kue();x1.filterProps=["sx"];const Jue=["breakpoints","palette","spacing","shape"];function C1(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,a=Ge(e,Jue),s=sue(n),l=yue(i);let u=No({breakpoints:s,direction:"ltr",components:{},palette:L({mode:"light"},r),spacing:l,shape:L({},uue,o)},a);return u=t.reduce((c,d)=>No(c,d),u),u.unstable_sxConfig=L({},qw,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(d){return x1({sx:d,theme:this})},u}function ece(e){return Object.keys(e).length===0}function Zw(e=null){const t=N.useContext(_w);return!t||ece(t)?e:t}const tce=C1();function ug(e=tce){return Zw(e)}function nce({styles:e,themeId:t,defaultTheme:n={}}){const r=ug(n),i=typeof e=="function"?e(t&&r[t]||r):e;return M.jsx(Fle,{styles:i})}const rce=["sx"],ice=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:qw;return Object.keys(e).forEach(o=>{i[o]?r.systemProps[o]=e[o]:r.otherProps[o]=e[o]}),r};function Xw(e){const{sx:t}=e,n=Ge(e,rce),{systemProps:r,otherProps:i}=ice(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...a)=>{const s=t(...a);return ec(s)?L({},r,s):r}:o=L({},r,t),L({},i,{sx:o})}function fQ(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})(x1);return N.forwardRef(function(l,u){const c=ug(n),d=Xw(l),{className:p,component:h="div"}=d,m=Ge(d,oce);return M.jsx(o,L({as:h,ref:u,className:et(p,i?i(r):r),theme:t&&c[t]||c},m))})}const sce=["variant"];function aB(e){return e.length===0}function pQ(e){const{variant:t}=e,n=Ge(e,sce);let r=t||"";return Object.keys(n).sort().forEach(i=>{i==="color"?r+=aB(r)?e[i]:tt(e[i]):r+=`${aB(r)?i:tt(i)}${tt(e[i].toString())}`}),r}const lce=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function uce(e){return Object.keys(e).length===0}function cce(e){return typeof e=="string"&&e.charCodeAt(0)>96}const dce=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,PS=e=>{let t=0;const n={};return e&&e.forEach(r=>{let i="";typeof r.props=="function"?(i=`callback${t}`,t+=1):i=pQ(r.props),n[i]=r.style}),n},fce=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),PS(n)},LS=(e,t,n)=>{const{ownerState:r={}}=e,i=[];let o=0;return n&&n.forEach(a=>{let s=!0;if(typeof a.props=="function"){const l=L({},e,r);s=a.props(l)}else Object.keys(a.props).forEach(l=>{r[l]!==a.props[l]&&e[l]!==a.props[l]&&(s=!1)});s&&(typeof a.props=="function"?i.push(t[`callback${o}`]):i.push(t[pQ(a.props)])),typeof a.props=="function"&&(o+=1)}),i},pce=(e,t,n,r)=>{var i;const o=n==null||(i=n.components)==null||(i=i[r])==null?void 0:i.variants;return LS(e,t,o)};function cb(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const hce=C1(),mce=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function EE({defaultTheme:e,theme:t,themeId:n}){return uce(t)?e:t[n]||t}function gce(e){return e?(t,n)=>n[e]:null}const sB=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const i=e(L({},t,{theme:EE(L({},t,{defaultTheme:n,themeId:r}))}));let o;if(i&&i.variants&&(o=i.variants,delete i.variants),o){const a=LS(t,PS(o),o);return[i,...a]}return i};function hQ(e={}){const{themeId:t,defaultTheme:n=hce,rootShouldForwardProp:r=cb,slotShouldForwardProp:i=cb}=e,o=a=>x1(L({},a,{theme:EE(L({},a,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(a,s={})=>{Ble(a,k=>k.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:p=gce(mce(u))}=s,h=Ge(s,lce),m=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,y=d||!1;let O,b=cb;u==="Root"||u==="root"?b=r:u?b=i:cce(a)&&(b=void 0);const v=rQ(a,L({shouldForwardProp:b,label:O},h)),S=(k,...C)=>{const w=C?C.map(R=>{if(typeof R=="function"&&R.__emotion_real!==R)return B=>sB({styledArg:R,props:B,defaultTheme:n,themeId:t});if(ec(R)){let B=R,U;return R&&R.variants&&(U=R.variants,delete B.variants,B=V=>{let z=R;return LS(V,PS(U),U).forEach(X=>{z=No(z,X)}),z}),B}return R}):[];let E=k;if(ec(k)){let R;k&&k.variants&&(R=k.variants,delete E.variants,E=B=>{let U=k;return LS(B,PS(R),R).forEach(z=>{U=No(U,z)}),U})}else typeof k=="function"&&k.__emotion_real!==k&&(E=R=>sB({styledArg:k,props:R,defaultTheme:n,themeId:t}));l&&p&&w.push(R=>{const B=EE(L({},R,{defaultTheme:n,themeId:t})),U=dce(l,B);if(U){const V={};return Object.entries(U).forEach(([z,Q])=>{V[z]=typeof Q=="function"?Q(L({},R,{theme:B})):Q}),p(R,V)}return null}),l&&!m&&w.push(R=>{const B=EE(L({},R,{defaultTheme:n,themeId:t}));return pce(R,fce(l,B),B,l)}),y||w.push(o);const $=w.length-C.length;if(Array.isArray(k)&&$>0){const R=new Array($).fill("");E=[...k,...R],E.raw=[...k.raw,...R]}const D=v(E,...w);return a.muiName&&(D.muiName=a.muiName),D};return v.withConfig&&(S.withConfig=v.withConfig),S}}const mQ=hQ();function gQ(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:zw(t.components[n].defaultProps,r)}function XN({props:e,name:t,defaultTheme:n,themeId:r}){let i=ug(n);return r&&(i=i[r]||i),gQ({theme:i,name:t,props:e})}function KN(e,t=0,n=1){return ah(e,t,n)}function bce(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 ip(e){if(e.type)return e;if(e.charAt(0)==="#")return ip(bce(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Dd(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(Dd(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}function Kw(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,o)=>o<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function yce(e){e=ip(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(u,c=(u+n/30)%12)=>i-o*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),Kw({type:s,values:l})}function lB(e){e=ip(e);let t=e.type==="hsl"||e.type==="hsla"?ip(yce(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 Oce(e,t){const n=lB(e),r=lB(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function un(e,t){return e=ip(e),t=KN(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Kw(e)}function JN(e,t){if(e=ip(e),t=KN(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 Kw(e)}function eD(e,t){if(e=ip(e),t=KN(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 Kw(e)}const vce=N.createContext(null),bQ=vce;function yQ(){return N.useContext(bQ)}const Ece=typeof Symbol=="function"&&Symbol.for,Sce=Ece?Symbol.for("mui.nested"):"__THEME_NESTED__";function Tce(e,t){return typeof t=="function"?t(e):L({},e,t)}function wce(e){const{children:t,theme:n}=e,r=yQ(),i=N.useMemo(()=>{const o=r===null?n:Tce(r,n);return o!=null&&(o[Sce]=r!==null),o},[n,r]);return M.jsx(bQ.Provider,{value:i,children:t})}const uB={};function cB(e,t,n,r=!1){return N.useMemo(()=>{const i=e&&t[e]||t;if(typeof n=="function"){const o=n(i),a=e?L({},t,{[e]:o}):o;return r?()=>a:a}return e?L({},t,{[e]:n}):L({},t,n)},[e,t,n,r])}function kce(e){const{children:t,theme:n,themeId:r}=e,i=Zw(uB),o=yQ()||uB,a=cB(r,i,n),s=cB(r,o,n,!0);return M.jsx(wce,{theme:s,children:M.jsx(_w.Provider,{value:a,children:t})})}const xce=["className","component","disableGutters","fixed","maxWidth","classes"],Cce=C1(),Ace=mQ("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${tt(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),_ce=e=>XN({props:e,name:"MuiContainer",defaultTheme:Cce}),Rce=(e,t)=>{const n=l=>At(t,l),{classes:r,fixed:i,disableGutters:o,maxWidth:a}=e,s={root:["root",a&&`maxWidth${tt(String(a))}`,i&&"fixed",o&&"disableGutters"]};return Ct(s,n,r)};function Ice(e={}){const{createStyledComponent:t=Ace,useThemeProps:n=_ce,componentName:r="MuiContainer"}=e,i=t(({theme:a,ownerState:s})=>L({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!s.disableGutters&&{paddingLeft:a.spacing(2),paddingRight:a.spacing(2),[a.breakpoints.up("sm")]:{paddingLeft:a.spacing(3),paddingRight:a.spacing(3)}}),({theme:a,ownerState:s})=>s.fixed&&Object.keys(a.breakpoints.values).reduce((l,u)=>{const c=u,d=a.breakpoints.values[c];return d!==0&&(l[a.breakpoints.up(c)]={maxWidth:`${d}${a.breakpoints.unit}`}),l},{}),({theme:a,ownerState:s})=>L({},s.maxWidth==="xs"&&{[a.breakpoints.up("xs")]:{maxWidth:Math.max(a.breakpoints.values.xs,444)}},s.maxWidth&&s.maxWidth!=="xs"&&{[a.breakpoints.up(s.maxWidth)]:{maxWidth:`${a.breakpoints.values[s.maxWidth]}${a.breakpoints.unit}`}}));return N.forwardRef(function(s,l){const u=n(s),{className:c,component:d="div",disableGutters:p=!1,fixed:h=!1,maxWidth:m="lg"}=u,y=Ge(u,xce),O=L({},u,{component:d,disableGutters:p,fixed:h,maxWidth:m}),b=Rce(O,r);return M.jsx(i,L({as:d,ownerState:O,className:et(b.root,c),ref:l},y))})}const Nce=["component","direction","spacing","divider","children","className","useFlexGap"],Dce=C1(),Pce=mQ("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Lce(e){return XN({props:e,name:"MuiStack",defaultTheme:Dce})}function Mce(e,t){const n=N.Children.toArray(e).filter(Boolean);return n.reduce((r,i,o)=>(r.push(i),o({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Fce=({ownerState:e,theme:t})=>{let n=L({display:"flex",flexDirection:"column"},Aa({theme:t},Yf({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=qN(t),i=Object.keys(t.breakpoints.values).reduce((l,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(l[u]=!0),l),{}),o=Yf({values:e.direction,base:i}),a=Yf({values:e.spacing,base:i});typeof o=="object"&&Object.keys(o).forEach((l,u,c)=>{if(!o[l]){const p=u>0?o[c[u-1]]:"column";o[l]=p}}),n=No(n,Aa({theme:t},a,(l,u)=>e.useFlexGap?{gap:rp(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${$ce(u?o[u]:e.direction)}`]:rp(r,l)}}))}return n=cue(t.breakpoints,n),n};function Bce(e={}){const{createStyledComponent:t=Pce,useThemeProps:n=Lce,componentName:r="MuiStack"}=e,i=()=>Ct({root:["root"]},l=>At(r,l),{}),o=t(Fce);return N.forwardRef(function(l,u){const c=n(l),d=Xw(c),{component:p="div",direction:h="column",spacing:m=0,divider:y,children:O,className:b,useFlexGap:v=!1}=d,S=Ge(d,Nce),k={direction:h,spacing:m,useFlexGap:v},C=i();return M.jsx(o,L({as:p,ownerState:k,ref:u,className:et(C.root,b)},S,{children:y?Mce(O,y):O}))})}function Uce(e,t){return L({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const jce=["mode","contrastThreshold","tonalOffset"],dB={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:iy.white,default:iy.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}},gC={text:{primary:iy.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:iy.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 fB(e,t,n,r){const i=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=eD(e.main,i):t==="dark"&&(e.dark=JN(e.main,o)))}function zce(e="light"){return e==="dark"?{main:Gp[200],light:Gp[50],dark:Gp[400]}:{main:Gp[700],light:Gp[400],dark:Gp[800]}}function Vce(e="light"){return e==="dark"?{main:Yp[200],light:Yp[50],dark:Yp[400]}:{main:Yp[500],light:Yp[300],dark:Yp[700]}}function Hce(e="light"){return e==="dark"?{main:Qp[500],light:Qp[300],dark:Qp[700]}:{main:Qp[700],light:Qp[400],dark:Qp[800]}}function Wce(e="light"){return e==="dark"?{main:qp[400],light:qp[300],dark:qp[700]}:{main:qp[700],light:qp[500],dark:qp[900]}}function Qce(e="light"){return e==="dark"?{main:Zp[400],light:Zp[300],dark:Zp[700]}:{main:Zp[800],light:Zp[500],dark:Zp[900]}}function Yce(e="light"){return e==="dark"?{main:t0[400],light:t0[300],dark:t0[700]}:{main:"#ed6c02",light:t0[500],dark:t0[900]}}function Gce(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=Ge(e,jce),o=e.primary||zce(t),a=e.secondary||Vce(t),s=e.error||Hce(t),l=e.info||Wce(t),u=e.success||Qce(t),c=e.warning||Yce(t);function d(y){return Oce(y,gC.text.primary)>=n?gC.text.primary:dB.text.primary}const p=({color:y,name:O,mainShade:b=500,lightShade:v=300,darkShade:S=700})=>{if(y=L({},y),!y.main&&y[b]&&(y.main=y[b]),!y.hasOwnProperty("main"))throw new Error(Dd(11,O?` (${O})`:"",b));if(typeof y.main!="string")throw new Error(Dd(12,O?` (${O})`:"",JSON.stringify(y.main)));return fB(y,"light",v,r),fB(y,"dark",S,r),y.contrastText||(y.contrastText=d(y.main)),y},h={dark:gC,light:dB};return No(L({common:L({},iy),mode:t,primary:p({color:o,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:Ise,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},h[t]),i)}const qce=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Zce(e){return Math.round(e*1e5)/1e5}const pB={textTransform:"uppercase"},hB='"Roboto", "Helvetica", "Arial", sans-serif';function Xce(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=hB,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=Ge(n,qce),h=i/14,m=d||(b=>`${b/u*h}rem`),y=(b,v,S,k,C)=>L({fontFamily:r,fontWeight:b,fontSize:m(v),lineHeight:S},r===hB?{letterSpacing:`${Zce(k/v)}em`}:{},C,c),O={h1:y(o,96,1.167,-1.5),h2:y(o,60,1.2,-.5),h3:y(a,48,1.167,0),h4:y(a,34,1.235,.25),h5:y(a,24,1.334,0),h6:y(s,20,1.6,.15),subtitle1:y(a,16,1.75,.15),subtitle2:y(s,14,1.57,.1),body1:y(a,16,1.5,.15),body2:y(a,14,1.43,.15),button:y(s,14,1.75,.4,pB),caption:y(a,12,1.66,.4),overline:y(a,12,2.66,1,pB),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return No(L({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},O),p,{clone:!1})}const Kce=.2,Jce=.14,ede=.12;function Fr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Kce})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Jce})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${ede})`].join(",")}const tde=["none",Fr(0,2,1,-1,0,1,1,0,0,1,3,0),Fr(0,3,1,-2,0,2,2,0,0,1,5,0),Fr(0,3,3,-2,0,3,4,0,0,1,8,0),Fr(0,2,4,-1,0,4,5,0,0,1,10,0),Fr(0,3,5,-1,0,5,8,0,0,1,14,0),Fr(0,3,5,-1,0,6,10,0,0,1,18,0),Fr(0,4,5,-2,0,7,10,1,0,2,16,1),Fr(0,5,5,-3,0,8,10,1,0,3,14,2),Fr(0,5,6,-3,0,9,12,1,0,3,16,2),Fr(0,6,6,-3,0,10,14,1,0,4,18,3),Fr(0,6,7,-4,0,11,15,1,0,4,20,3),Fr(0,7,8,-4,0,12,17,2,0,5,22,4),Fr(0,7,8,-4,0,13,19,2,0,5,24,4),Fr(0,7,9,-4,0,14,21,2,0,5,26,4),Fr(0,8,9,-5,0,15,22,2,0,6,28,5),Fr(0,8,10,-5,0,16,24,2,0,6,30,5),Fr(0,8,11,-5,0,17,26,2,0,6,32,5),Fr(0,9,11,-5,0,18,28,2,0,7,34,6),Fr(0,9,12,-6,0,19,29,2,0,7,36,6),Fr(0,10,13,-6,0,20,31,3,0,8,38,7),Fr(0,10,13,-6,0,21,33,3,0,8,40,7),Fr(0,10,14,-6,0,22,35,3,0,8,42,7),Fr(0,11,14,-7,0,23,36,3,0,9,44,8),Fr(0,11,15,-7,0,24,38,3,0,9,46,8)],nde=["duration","easing","delay"],rde={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)"},ide={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function mB(e){return`${Math.round(e)}ms`}function ode(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function ade(e){const t=L({},rde,e.easing),n=L({},ide,e.duration);return L({getAutoHeightDuration:ode,create:(i=["all"],o={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0}=o;return Ge(o,nde),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof a=="string"?a:mB(a)} ${s} ${typeof l=="string"?l:mB(l)}`).join(",")}},e,{easing:t,duration:n})}const sde={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},lde=sde,ude=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function tD(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,a=Ge(e,ude);if(e.vars)throw new Error(Dd(18));const s=Gce(r),l=C1(e);let u=No(l,{mixins:Uce(l.breakpoints,n),palette:s,shadows:tde.slice(),typography:Xce(s,o),transitions:ade(i),zIndex:L({},lde)});return u=No(u,a),u=t.reduce((c,d)=>No(c,d),u),u.unstable_sxConfig=L({},qw,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(d){return x1({sx:d,theme:this})},u}const cde=tD(),Jw=cde;function bi(){const e=ug(Jw);return e[np]||e}function gt({props:e,name:t}){return XN({props:e,name:t,defaultTheme:Jw,themeId:np})}const Xi=e=>cb(e)&&e!=="classes",nD=cb,ke=hQ({themeId:np,defaultTheme:Jw,rootShouldForwardProp:Xi}),dde=["theme"];function fde(e){let{theme:t}=e,n=Ge(e,dde);const r=t[np];return M.jsx(kce,L({},n,{themeId:r?np:void 0,theme:r||t}))}const gB=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function pde(e){return At("MuiSvgIcon",e)}_t("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const hde=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],mde=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${tt(t)}`,`fontSize${tt(n)}`]};return Ct(i,pde,r)},gde=ke("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${tt(n.color)}`],t[`fontSize${tt(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,o,a,s,l,u,c,d,p,h,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(a=o.pxToRem)==null?void 0:a.call(o,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:(d=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?d:{action:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.active,disabled:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.disabled,inherit:void 0}[t.color]}}),MS=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:p="0 0 24 24"}=r,h=Ge(r,hde),m=N.isValidElement(i)&&i.type==="svg",y=L({},r,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:m}),O={};c||(O.viewBox=p);const b=mde(y);return M.jsxs(gde,L({as:s,className:et(b.root,o),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},O,h,m&&i.props,{ownerState:y,children:[m?i.props.children:i,d?M.jsx("title",{children:d}):null]}))});MS.muiName="SvgIcon";function Ti(e,t){function n(r,i){return M.jsx(MS,L({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=MS.muiName,N.memo(N.forwardRef(n))}const bde={configure:e=>{WN.configure(e)}},yde=Object.freeze(Object.defineProperty({__proto__:null,capitalize:tt,createChainedFunction:NS,createSvgIcon:Ti,debounce:lg,deprecatedPropType:Vle,isMuiElement:lb,ownerDocument:Hr,ownerWindow:Xs,requirePropFactory:Hle,setRef:ly,unstable_ClassNameGenerator:bde,unstable_useEnhancedEffect:Xr,unstable_useId:Pl,unsupportedProp:Qle,useControlled:qi,useEventCallback:jt,useForkRef:yn,useIsFocusVisible:jw},Symbol.toStringTag,{value:"Module"}));function l_(e,t){return l_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},l_(e,t)}function rD(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,l_(e,t)}function Ode(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function vde(e,t){e.classList?e.classList.add(t):Ode(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function bB(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Ede(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=bB(e.className,t):e.setAttribute("class",bB(e.className&&e.className.baseVal||"",t))}const yB={disabled:!1},$S=vn.createContext(null);var OQ=function(t){return t.scrollTop},U0="unmounted",bf="exited",yf="entering",sh="entered",u_="exiting",Tc=function(e){rD(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=i,s=a&&!a.isMounting?r.enter:r.appear,l;return o.appearStatus=null,r.in?s?(l=bf,o.appearStatus=yf):l=sh:r.unmountOnExit||r.mountOnEnter?l=U0:l=bf,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===U0?{status:bf}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==yf&&a!==sh&&(o=yf):(a===yf||a===sh)&&(o=u_)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,a,s;return o=a=s=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,s=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:s}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===yf){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:B0.findDOMNode(this);a&&OQ(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===bf&&this.setState({status:U0})},n.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[B0.findDOMNode(this),s],u=l[0],c=l[1],d=this.getTimeouts(),p=s?d.appear:d.enter;if(!i&&!a||yB.disabled){this.safeSetState({status:sh},function(){o.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:yf},function(){o.props.onEntering(u,c),o.onTransitionEnd(p,function(){o.safeSetState({status:sh},function(){o.props.onEntered(u,c)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:B0.findDOMNode(this);if(!o||yB.disabled){this.safeSetState({status:bf},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:u_},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:bf},function(){i.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,o.nextCallback=null,i(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:B0.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===U0)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=Ge(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return vn.createElement($S.Provider,{value:null},typeof a=="function"?a(i,s):vn.cloneElement(vn.Children.only(a),s))},t}(vn.Component);Tc.contextType=$S;Tc.propTypes={};function Kp(){}Tc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Kp,onEntering:Kp,onEntered:Kp,onExit:Kp,onExiting:Kp,onExited:Kp};Tc.UNMOUNTED=U0;Tc.EXITED=bf;Tc.ENTERING=yf;Tc.ENTERED=sh;Tc.EXITING=u_;const ek=Tc;var Sde=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return vde(t,r)})},bC=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Ede(t,r)})},iD=function(e){rD(t,e);function t(){for(var r,i=arguments.length,o=new Array(i),a=0;ae.scrollTop;function Mm(e,t){var n,r;const{timeout:i,easing:o,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof i=="number"?i:i[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof o=="object"?o[t.mode]:o,delay:a.transitionDelay}}function Rde(e){return At("MuiPaper",e)}_t("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Ide=["className","component","elevation","square","variant"],Nde=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Ct(o,Rde,i)},Dde=ke("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return L({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&L({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${un("#fff",gB(t.elevation))}, ${un("#fff",gB(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Pde=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiPaper"}),{className:i,component:o="div",elevation:a=1,square:s=!1,variant:l="elevation"}=r,u=Ge(r,Ide),c=L({},r,{component:o,elevation:a,square:s,variant:l}),d=Nde(c);return M.jsx(Dde,L({as:o,ownerState:c,className:et(d.root,i),ref:n},u))}),Ra=Pde;function Su(e){return typeof e=="string"}function j0(e,t,n){return e===void 0||Su(e)?t:L({},t,{ownerState:L({},t.ownerState,n)})}function Lde(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const Mde={disableDefaultClasses:!1},$de=N.createContext(Mde);function Fde(e){const{disableDefaultClasses:t}=N.useContext($de);return n=>t?"":e(n)}function db(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 Yd(e,t,n){return typeof e=="function"?e(t,n):e}function OB(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 Bde(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const h=et(n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),m=L({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),y=L({},n,i,r);return h.length>0&&(y.className=h),Object.keys(m).length>0&&(y.style=m),{props:y,internalRef:void 0}}const a=db(L({},i,r)),s=OB(r),l=OB(i),u=t(a),c=et(u==null?void 0:u.className,n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),d=L({},u==null?void 0:u.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),p=L({},u,n,l,s);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}const Ude=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function kn(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,a=Ge(e,Ude),s=o?{}:Yd(r,i),{props:l,internalRef:u}=Bde(L({},a,{externalSlotProps:s})),c=yn(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return j0(n,L({},l,{ref:c}),i)}function jde(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:a,in:s,onExited:l,timeout:u}=e,[c,d]=N.useState(!1),p=et(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:a,height:a,top:-(a/2)+o,left:-(a/2)+i},m=et(n.child,c&&n.childLeaving,r&&n.childPulsate);return!s&&!c&&d(!0),N.useEffect(()=>{if(!s&&l!=null){const y=setTimeout(l,u);return()=>{clearTimeout(y)}}},[l,s,u]),M.jsx("span",{className:p,style:h,children:M.jsx("span",{className:m})})}const Is=_t("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),zde=["center","classes","className"];let tk=e=>e,vB,EB,SB,TB;const c_=550,Vde=80,Hde=w1(vB||(vB=tk` + */var cN=Symbol.for("react.element"),dN=Symbol.for("react.portal"),Qw=Symbol.for("react.fragment"),Yw=Symbol.for("react.strict_mode"),Gw=Symbol.for("react.profiler"),qw=Symbol.for("react.provider"),Zw=Symbol.for("react.context"),yue=Symbol.for("react.server_context"),Xw=Symbol.for("react.forward_ref"),Kw=Symbol.for("react.suspense"),Jw=Symbol.for("react.suspense_list"),ek=Symbol.for("react.memo"),tk=Symbol.for("react.lazy"),Oue=Symbol.for("react.offscreen"),RQ;RQ=Symbol.for("react.module.reference");function nl(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case cN:switch(e=e.type,e){case Qw:case Gw:case Yw:case Kw:case Jw:return e;default:switch(e=e&&e.$$typeof,e){case yue:case Zw:case Xw:case tk:case ek:case qw:return e;default:return t}}case dN:return t}}}pr.ContextConsumer=Zw;pr.ContextProvider=qw;pr.Element=cN;pr.ForwardRef=Xw;pr.Fragment=Qw;pr.Lazy=tk;pr.Memo=ek;pr.Portal=dN;pr.Profiler=Gw;pr.StrictMode=Yw;pr.Suspense=Kw;pr.SuspenseList=Jw;pr.isAsyncMode=function(){return!1};pr.isConcurrentMode=function(){return!1};pr.isContextConsumer=function(e){return nl(e)===Zw};pr.isContextProvider=function(e){return nl(e)===qw};pr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===cN};pr.isForwardRef=function(e){return nl(e)===Xw};pr.isFragment=function(e){return nl(e)===Qw};pr.isLazy=function(e){return nl(e)===tk};pr.isMemo=function(e){return nl(e)===ek};pr.isPortal=function(e){return nl(e)===dN};pr.isProfiler=function(e){return nl(e)===Gw};pr.isStrictMode=function(e){return nl(e)===Yw};pr.isSuspense=function(e){return nl(e)===Kw};pr.isSuspenseList=function(e){return nl(e)===Jw};pr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Qw||e===Gw||e===Yw||e===Kw||e===Jw||e===Oue||typeof e=="object"&&e!==null&&(e.$$typeof===tk||e.$$typeof===ek||e.$$typeof===qw||e.$$typeof===Zw||e.$$typeof===Xw||e.$$typeof===RQ||e.getModuleId!==void 0)};pr.typeOf=nl;const vue=Q.oneOfType([Q.func,Q.object]),yg=vue;function nt(e){if(typeof e!="string")throw new Error(Ud(7));return e.charAt(0).toUpperCase()+e.slice(1)}function qS(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function Og(e,t=166){let n;function r(...i){const o=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(o,t)}return r.clear=()=>{clearTimeout(n)},r}function Eue(e,t){return()=>null}function Ob(e,t){var n,r;return I.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function br(e){return e&&e.ownerDocument||document}function Js(e){return br(e).defaultView||window}function Sue(e,t){return()=>null}function Ey(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Kr=typeof window<"u"?I.useLayoutEffect:I.useEffect;let vB=0;function Tue(e){const[t,n]=I.useState(e),r=e||t;return I.useEffect(()=>{t==null&&(vB+=1,n(`mui-${vB}`))},[t]),r}const EB=Fm.useId;function $l(e){if(EB!==void 0){const t=EB();return e??t}return Tue(e)}function wue(e,t,n,r,i){return null}function Xi({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=I.useRef(e!==void 0),[o,a]=I.useState(t),s=i?e:o,l=I.useCallback(u=>{i||a(u)},[]);return[s,l]}function jt(e){const t=I.useRef(e);return Kr(()=>{t.current=e}),I.useRef((...n)=>(0,t.current)(...n)).current}function yn(...e){return I.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Ey(n,t)})},e)}let nk=!0,C_=!1,SB;const kue={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 xue(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&kue[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Cue(e){e.metaKey||e.altKey||e.ctrlKey||(nk=!0)}function DC(){nk=!1}function Aue(){this.visibilityState==="hidden"&&C_&&(nk=!0)}function _ue(e){e.addEventListener("keydown",Cue,!0),e.addEventListener("mousedown",DC,!0),e.addEventListener("pointerdown",DC,!0),e.addEventListener("touchstart",DC,!0),e.addEventListener("visibilitychange",Aue,!0)}function Rue(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return nk||xue(t)}function rk(){const e=I.useCallback(i=>{i!=null&&_ue(i.ownerDocument)},[]),t=I.useRef(!1);function n(){return t.current?(C_=!0,window.clearTimeout(SB),SB=window.setTimeout(()=>{C_=!1},100),t.current=!1,!0):!1}function r(i){return Rue(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function IQ(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let lh;function DQ(){if(lh)return lh;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),lh="reverse",e.scrollLeft>0?lh="default":(e.scrollLeft=1,e.scrollLeft===0&&(lh="negative")),document.body.removeChild(e),lh}function Iue(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(DQ()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const Due=e=>{const t=I.useRef({});return I.useEffect(()=>{t.current=e}),t.current};function Nue(e){return I.Children.toArray(e).filter(t=>I.isValidElement(t))}const Pue={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},Lue=Pue;function ik(e,t){const n=P({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=P({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},!o||!Object.keys(o)?n[r]=i:!i||!Object.keys(i)?n[r]=o:(n[r]=P({},o),Object.keys(i).forEach(a=>{n[r][a]=ik(i[a],o[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function kt(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((o,a)=>{if(a){const s=t(a);s!==""&&o.push(s),n&&n[a]&&o.push(n[a])}return o},[]).join(" ")}),r}const TB=e=>e,Mue=()=>{let e=TB;return{configure(t){e=t},generate(t){return e(t)},reset(){e=TB}}},fN=Mue(),NQ={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function At(e,t,n="Mui"){const r=NQ[t];return r?`${n}-${r}`:`${fN.generate(e)}-${t}`}function _t(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=At(e,i,n)}),r}function bh(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const $ue=["values","unit","step"],Fue=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)=>P({},n,{[r.key]:r.val}),{})};function Bue(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=Ge(e,$ue),o=Fue(t),a=Object.keys(o);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function u(p,h){const m=a.indexOf(h);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(m!==-1&&typeof t[a[m]]=="number"?t[a[m]]:h)-r/100}${n})`}function c(p){return a.indexOf(p)+1`@media (min-width:${pN[e]}px)`};function Ra(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||wB;return t.reduce((a,s,l)=>(a[o.up(o.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const o=r.breakpoints||wB;return Object.keys(t).reduce((a,s)=>{if(Object.keys(o.values||pN).indexOf(s)!==-1){const l=o.up(s);a[l]=n(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return n(t)}function PQ(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function LQ(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function zue(e,...t){const n=PQ(e),r=[n,...t].reduce((i,o)=>No(i,o),{});return LQ(Object.keys(n),r)}function Vue(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((i,o)=>{o{e[i]!=null&&(n[i]=!0)}),n}function ip({values:e,breakpoints:t,base:n}){const r=n||Vue(e,t),i=Object.keys(r);if(i.length===0)return e;let o;return i.reduce((a,s,l)=>(Array.isArray(e)?(a[s]=e[l]!=null?e[l]:e[o],o=l):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[o],o=s):a[s]=e,a),{})}function ok(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function ZS(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=ok(e,n)||r,t&&(i=t(i,r,e)),i}function yi(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,u=ok(l,r)||{};return Ra(a,s,d=>{let p=ZS(u,i,d);return d===p&&typeof d=="string"&&(p=ZS(u,i,`${t}${d==="default"?"":nt(d)}`,d)),n===!1?p:{[n]:p}})};return o.propTypes={},o.filterProps=[t],o}function Hue(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Wue={m:"margin",p:"padding"},Que={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},kB={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Yue=Hue(e=>{if(e.length>2)if(kB[e])e=kB[e];else return[e];const[t,n]=e.split(""),r=Wue[t],i=Que[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),hN=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],mN=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...hN,...mN];function F1(e,t,n,r){var i;const o=(i=ok(e,t,!1))!=null?i:n;return typeof o=="number"?a=>typeof a=="string"?a:o*a:Array.isArray(o)?a=>typeof a=="string"?a:o[a]:typeof o=="function"?o:()=>{}}function gN(e){return F1(e,"spacing",8)}function hp(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 Gue(e,t){return n=>e.reduce((r,i)=>(r[i]=hp(t,n),r),{})}function que(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=Yue(n),o=Gue(i,r),a=e[n];return Ra(e,a,o)}function MQ(e,t){const n=gN(e.theme);return Object.keys(e).map(r=>que(e,t,r,n)).reduce(vb,{})}function ri(e){return MQ(e,hN)}ri.propTypes={};ri.filterProps=hN;function ii(e){return MQ(e,mN)}ii.propTypes={};ii.filterProps=mN;function Zue(e=8){if(e.mui)return e;const t=gN({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(o=>{const a=t(o);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function ak(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(o=>{r[o]=i}),r),{}),n=r=>Object.keys(r).reduce((i,o)=>t[o]?vb(i,t[o](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Ms(e){return typeof e!="number"?e:`${e}px solid`}function rl(e,t){return yi({prop:e,themeKey:"borders",transform:t})}const Xue=rl("border",Ms),Kue=rl("borderTop",Ms),Jue=rl("borderRight",Ms),ece=rl("borderBottom",Ms),tce=rl("borderLeft",Ms),nce=rl("borderColor"),rce=rl("borderTopColor"),ice=rl("borderRightColor"),oce=rl("borderBottomColor"),ace=rl("borderLeftColor"),sce=rl("outline",Ms),lce=rl("outlineColor"),sk=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=F1(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:hp(t,r)});return Ra(e,e.borderRadius,n)}return null};sk.propTypes={};sk.filterProps=["borderRadius"];ak(Xue,Kue,Jue,ece,tce,nce,rce,ice,oce,ace,sk,sce,lce);const lk=e=>{if(e.gap!==void 0&&e.gap!==null){const t=F1(e.theme,"spacing",8),n=r=>({gap:hp(t,r)});return Ra(e,e.gap,n)}return null};lk.propTypes={};lk.filterProps=["gap"];const uk=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=F1(e.theme,"spacing",8),n=r=>({columnGap:hp(t,r)});return Ra(e,e.columnGap,n)}return null};uk.propTypes={};uk.filterProps=["columnGap"];const ck=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=F1(e.theme,"spacing",8),n=r=>({rowGap:hp(t,r)});return Ra(e,e.rowGap,n)}return null};ck.propTypes={};ck.filterProps=["rowGap"];const uce=yi({prop:"gridColumn"}),cce=yi({prop:"gridRow"}),dce=yi({prop:"gridAutoFlow"}),fce=yi({prop:"gridAutoColumns"}),pce=yi({prop:"gridAutoRows"}),hce=yi({prop:"gridTemplateColumns"}),mce=yi({prop:"gridTemplateRows"}),gce=yi({prop:"gridTemplateAreas"}),bce=yi({prop:"gridArea"});ak(lk,uk,ck,uce,cce,dce,fce,pce,hce,mce,gce,bce);function am(e,t){return t==="grey"?t:e}const yce=yi({prop:"color",themeKey:"palette",transform:am}),Oce=yi({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:am}),vce=yi({prop:"backgroundColor",themeKey:"palette",transform:am});ak(yce,Oce,vce);function rs(e){return e<=1&&e!==0?`${e*100}%`:e}const Ece=yi({prop:"width",transform:rs}),bN=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i;const o=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||pN[n];return o?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:rs(n)}};return Ra(e,e.maxWidth,t)}return null};bN.filterProps=["maxWidth"];const Sce=yi({prop:"minWidth",transform:rs}),Tce=yi({prop:"height",transform:rs}),wce=yi({prop:"maxHeight",transform:rs}),kce=yi({prop:"minHeight",transform:rs});yi({prop:"size",cssProperty:"width",transform:rs});yi({prop:"size",cssProperty:"height",transform:rs});const xce=yi({prop:"boxSizing"});ak(Ece,bN,Sce,Tce,wce,kce,xce);const Cce={border:{themeKey:"borders",transform:Ms},borderTop:{themeKey:"borders",transform:Ms},borderRight:{themeKey:"borders",transform:Ms},borderBottom:{themeKey:"borders",transform:Ms},borderLeft:{themeKey:"borders",transform:Ms},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ms},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:sk},color:{themeKey:"palette",transform:am},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:am},backgroundColor:{themeKey:"palette",transform:am},p:{style:ii},pt:{style:ii},pr:{style:ii},pb:{style:ii},pl:{style:ii},px:{style:ii},py:{style:ii},padding:{style:ii},paddingTop:{style:ii},paddingRight:{style:ii},paddingBottom:{style:ii},paddingLeft:{style:ii},paddingX:{style:ii},paddingY:{style:ii},paddingInline:{style:ii},paddingInlineStart:{style:ii},paddingInlineEnd:{style:ii},paddingBlock:{style:ii},paddingBlockStart:{style:ii},paddingBlockEnd:{style:ii},m:{style:ri},mt:{style:ri},mr:{style:ri},mb:{style:ri},ml:{style:ri},mx:{style:ri},my:{style:ri},margin:{style:ri},marginTop:{style:ri},marginRight:{style:ri},marginBottom:{style:ri},marginLeft:{style:ri},marginX:{style:ri},marginY:{style:ri},marginInline:{style:ri},marginInlineStart:{style:ri},marginInlineEnd:{style:ri},marginBlock:{style:ri},marginBlockStart:{style:ri},marginBlockEnd:{style:ri},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:lk},rowGap:{style:ck},columnGap:{style:uk},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:rs},maxWidth:{style:bN},minWidth:{transform:rs},height:{transform:rs},maxHeight:{transform:rs},minHeight:{transform:rs},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},dk=Cce;function Ace(...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 _ce(e,t){return typeof e=="function"?e(t):e}function Rce(){function e(n,r,i,o){const a={[n]:r,theme:i},s=o[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:c,style:d}=s;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const p=ok(i,u)||{};return d?d(a):Ra(a,r,m=>{let b=ZS(p,c,m);return m===b&&typeof m=="string"&&(b=ZS(p,c,`${n}${m==="default"?"":nt(m)}`,m)),l===!1?b:{[l]:b}})}function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const a=(r=o.unstable_sxConfig)!=null?r:dk;function s(l){let u=l;if(typeof l=="function")u=l(o);else if(typeof l!="object")return l;if(!u)return null;const c=PQ(o.breakpoints),d=Object.keys(c);let p=c;return Object.keys(u).forEach(h=>{const m=_ce(u[h],o);if(m!=null)if(typeof m=="object")if(a[h])p=vb(p,e(h,m,o,a));else{const b=Ra({theme:o},m,O=>({[h]:O}));Ace(b,m)?p[h]=t({sx:m,theme:o}):p=vb(p,b)}else p=vb(p,e(h,m,o,a))}),LQ(d,p)}return Array.isArray(i)?i.map(s):s(i)}return t}const B1=Rce();B1.filterProps=["sx"];const Ice=["breakpoints","palette","spacing","shape"];function U1(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,a=Ge(e,Ice),s=Bue(n),l=Zue(i);let u=No({breakpoints:s,direction:"ltr",components:{},palette:P({mode:"light"},r),spacing:l,shape:P({},jue,o)},a);return u=t.reduce((c,d)=>No(c,d),u),u.unstable_sxConfig=P({},dk,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(d){return B1({sx:d,theme:this})},u}function Dce(e){return Object.keys(e).length===0}function fk(e=null){const t=I.useContext(Ww);return!t||Dce(t)?e:t}const Nce=U1();function vg(e=Nce){return fk(e)}function Pce({styles:e,themeId:t,defaultTheme:n={}}){const r=vg(n),i=typeof e=="function"?e(t&&r[t]||r):e;return M.jsx(gue,{styles:i})}const Lce=["sx"],Mce=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:dk;return Object.keys(e).forEach(o=>{i[o]?r.systemProps[o]=e[o]:r.otherProps[o]=e[o]}),r};function pk(e){const{sx:t}=e,n=Ge(e,Lce),{systemProps:r,otherProps:i}=Mce(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...a)=>{const s=t(...a);return oc(s)?P({},r,s):r}:o=P({},r,t),P({},i,{sx:o})}function $Q(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})(B1);return I.forwardRef(function(l,u){const c=vg(n),d=pk(l),{className:p,component:h="div"}=d,m=Ge(d,$ce);return M.jsx(o,P({as:h,ref:u,className:Je(p,i?i(r):r),theme:t&&c[t]||c},m))})}const Bce=["variant"];function xB(e){return e.length===0}function FQ(e){const{variant:t}=e,n=Ge(e,Bce);let r=t||"";return Object.keys(n).sort().forEach(i=>{i==="color"?r+=xB(r)?e[i]:nt(e[i]):r+=`${xB(r)?i:nt(i)}${nt(e[i].toString())}`}),r}const Uce=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function jce(e){return Object.keys(e).length===0}function zce(e){return typeof e=="string"&&e.charCodeAt(0)>96}const Vce=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,XS=e=>{let t=0;const n={};return e&&e.forEach(r=>{let i="";typeof r.props=="function"?(i=`callback${t}`,t+=1):i=FQ(r.props),n[i]=r.style}),n},Hce=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),XS(n)},KS=(e,t,n)=>{const{ownerState:r={}}=e,i=[];let o=0;return n&&n.forEach(a=>{let s=!0;if(typeof a.props=="function"){const l=P({},e,r);s=a.props(l)}else Object.keys(a.props).forEach(l=>{r[l]!==a.props[l]&&e[l]!==a.props[l]&&(s=!1)});s&&(typeof a.props=="function"?i.push(t[`callback${o}`]):i.push(t[FQ(a.props)])),typeof a.props=="function"&&(o+=1)}),i},Wce=(e,t,n,r)=>{var i;const o=n==null||(i=n.components)==null||(i=i[r])==null?void 0:i.variants;return KS(e,t,o)};function Eb(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Qce=U1(),Yce=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function $E({defaultTheme:e,theme:t,themeId:n}){return jce(t)?e:t[n]||t}function Gce(e){return e?(t,n)=>n[e]:null}const CB=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const i=e(P({},t,{theme:$E(P({},t,{defaultTheme:n,themeId:r}))}));let o;if(i&&i.variants&&(o=i.variants,delete i.variants),o){const a=KS(t,XS(o),o);return[i,...a]}return i};function BQ(e={}){const{themeId:t,defaultTheme:n=Qce,rootShouldForwardProp:r=Eb,slotShouldForwardProp:i=Eb}=e,o=a=>B1(P({},a,{theme:$E(P({},a,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(a,s={})=>{bue(a,k=>k.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:p=Gce(Yce(u))}=s,h=Ge(s,Uce),m=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,b=d||!1;let O,y=Eb;u==="Root"||u==="root"?y=r:u?y=i:zce(a)&&(y=void 0);const v=AQ(a,P({shouldForwardProp:y,label:O},h)),S=(k,...C)=>{const w=C?C.map(R=>{if(typeof R=="function"&&R.__emotion_real!==R)return B=>CB({styledArg:R,props:B,defaultTheme:n,themeId:t});if(oc(R)){let B=R,U;return R&&R.variants&&(U=R.variants,delete B.variants,B=V=>{let z=R;return KS(V,XS(U),U).forEach(X=>{z=No(z,X)}),z}),B}return R}):[];let E=k;if(oc(k)){let R;k&&k.variants&&(R=k.variants,delete E.variants,E=B=>{let U=k;return KS(B,XS(R),R).forEach(z=>{U=No(U,z)}),U})}else typeof k=="function"&&k.__emotion_real!==k&&(E=R=>CB({styledArg:k,props:R,defaultTheme:n,themeId:t}));l&&p&&w.push(R=>{const B=$E(P({},R,{defaultTheme:n,themeId:t})),U=Vce(l,B);if(U){const V={};return Object.entries(U).forEach(([z,W])=>{V[z]=typeof W=="function"?W(P({},R,{theme:B})):W}),p(R,V)}return null}),l&&!m&&w.push(R=>{const B=$E(P({},R,{defaultTheme:n,themeId:t}));return Wce(R,Hce(l,B),B,l)}),b||w.push(o);const $=w.length-C.length;if(Array.isArray(k)&&$>0){const R=new Array($).fill("");E=[...k,...R],E.raw=[...k.raw,...R]}const N=v(E,...w);return a.muiName&&(N.muiName=a.muiName),N};return v.withConfig&&(S.withConfig=v.withConfig),S}}const UQ=BQ();function jQ(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:ik(t.components[n].defaultProps,r)}function yN({props:e,name:t,defaultTheme:n,themeId:r}){let i=vg(n);return r&&(i=i[r]||i),jQ({theme:i,name:t,props:e})}function ON(e,t=0,n=1){return bh(e,t,n)}function qce(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 mp(e){if(e.type)return e;if(e.charAt(0)==="#")return mp(qce(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Ud(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(Ud(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}function hk(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,o)=>o<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Zce(e){e=mp(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(u,c=(u+n/30)%12)=>i-o*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),hk({type:s,values:l})}function A_(e){e=mp(e);let t=e.type==="hsl"||e.type==="hsla"?mp(Zce(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 Xce(e,t){const n=A_(e),r=A_(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function cn(e,t){return e=mp(e),t=ON(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,hk(e)}function mk(e,t){if(e=mp(e),t=ON(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 hk(e)}function gk(e,t){if(e=mp(e),t=ON(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 hk(e)}function Kce(e,t=.15){return A_(e)>.5?mk(e,t):gk(e,t)}const Jce=I.createContext(null),zQ=Jce;function VQ(){return I.useContext(zQ)}const ede=typeof Symbol=="function"&&Symbol.for,tde=ede?Symbol.for("mui.nested"):"__THEME_NESTED__";function nde(e,t){return typeof t=="function"?t(e):P({},e,t)}function rde(e){const{children:t,theme:n}=e,r=VQ(),i=I.useMemo(()=>{const o=r===null?n:nde(r,n);return o!=null&&(o[tde]=r!==null),o},[n,r]);return M.jsx(zQ.Provider,{value:i,children:t})}const AB={};function _B(e,t,n,r=!1){return I.useMemo(()=>{const i=e&&t[e]||t;if(typeof n=="function"){const o=n(i),a=e?P({},t,{[e]:o}):o;return r?()=>a:a}return e?P({},t,{[e]:n}):P({},t,n)},[e,t,n,r])}function ide(e){const{children:t,theme:n,themeId:r}=e,i=fk(AB),o=VQ()||AB,a=_B(r,i,n),s=_B(r,o,n,!0);return M.jsx(rde,{theme:s,children:M.jsx(Ww.Provider,{value:a,children:t})})}const ode=["className","component","disableGutters","fixed","maxWidth","classes"],ade=U1(),sde=UQ("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${nt(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),lde=e=>yN({props:e,name:"MuiContainer",defaultTheme:ade}),ude=(e,t)=>{const n=l=>At(t,l),{classes:r,fixed:i,disableGutters:o,maxWidth:a}=e,s={root:["root",a&&`maxWidth${nt(String(a))}`,i&&"fixed",o&&"disableGutters"]};return kt(s,n,r)};function cde(e={}){const{createStyledComponent:t=sde,useThemeProps:n=lde,componentName:r="MuiContainer"}=e,i=t(({theme:a,ownerState:s})=>P({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!s.disableGutters&&{paddingLeft:a.spacing(2),paddingRight:a.spacing(2),[a.breakpoints.up("sm")]:{paddingLeft:a.spacing(3),paddingRight:a.spacing(3)}}),({theme:a,ownerState:s})=>s.fixed&&Object.keys(a.breakpoints.values).reduce((l,u)=>{const c=u,d=a.breakpoints.values[c];return d!==0&&(l[a.breakpoints.up(c)]={maxWidth:`${d}${a.breakpoints.unit}`}),l},{}),({theme:a,ownerState:s})=>P({},s.maxWidth==="xs"&&{[a.breakpoints.up("xs")]:{maxWidth:Math.max(a.breakpoints.values.xs,444)}},s.maxWidth&&s.maxWidth!=="xs"&&{[a.breakpoints.up(s.maxWidth)]:{maxWidth:`${a.breakpoints.values[s.maxWidth]}${a.breakpoints.unit}`}}));return I.forwardRef(function(s,l){const u=n(s),{className:c,component:d="div",disableGutters:p=!1,fixed:h=!1,maxWidth:m="lg"}=u,b=Ge(u,ode),O=P({},u,{component:d,disableGutters:p,fixed:h,maxWidth:m}),y=ude(O,r);return M.jsx(i,P({as:d,ownerState:O,className:Je(y.root,c),ref:l},b))})}const dde=["component","direction","spacing","divider","children","className","useFlexGap"],fde=U1(),pde=UQ("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function hde(e){return yN({props:e,name:"MuiStack",defaultTheme:fde})}function mde(e,t){const n=I.Children.toArray(e).filter(Boolean);return n.reduce((r,i,o)=>(r.push(i),o({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],bde=({ownerState:e,theme:t})=>{let n=P({display:"flex",flexDirection:"column"},Ra({theme:t},ip({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=gN(t),i=Object.keys(t.breakpoints.values).reduce((l,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(l[u]=!0),l),{}),o=ip({values:e.direction,base:i}),a=ip({values:e.spacing,base:i});typeof o=="object"&&Object.keys(o).forEach((l,u,c)=>{if(!o[l]){const p=u>0?o[c[u-1]]:"column";o[l]=p}}),n=No(n,Ra({theme:t},a,(l,u)=>e.useFlexGap?{gap:hp(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${gde(u?o[u]:e.direction)}`]:hp(r,l)}}))}return n=zue(t.breakpoints,n),n};function yde(e={}){const{createStyledComponent:t=pde,useThemeProps:n=hde,componentName:r="MuiStack"}=e,i=()=>kt({root:["root"]},l=>At(r,l),{}),o=t(bde);return I.forwardRef(function(l,u){const c=n(l),d=pk(c),{component:p="div",direction:h="column",spacing:m=0,divider:b,children:O,className:y,useFlexGap:v=!1}=d,S=Ge(d,dde),k={direction:h,spacing:m,useFlexGap:v},C=i();return M.jsx(o,P({as:p,ownerState:k,ref:u,className:Je(C.root,y)},S,{children:b?mde(O,b):O}))})}function Ode(e,t){return P({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const vde=["mode","contrastThreshold","tonalOffset"],RB={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:by.white,default:by.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}},NC={text:{primary:by.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:by.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 IB(e,t,n,r){const i=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=gk(e.main,i):t==="dark"&&(e.dark=mk(e.main,o)))}function Ede(e="light"){return e==="dark"?{main:oh[200],light:oh[50],dark:oh[400]}:{main:oh[700],light:oh[400],dark:oh[800]}}function Sde(e="light"){return e==="dark"?{main:ih[200],light:ih[50],dark:ih[400]}:{main:ih[500],light:ih[300],dark:ih[700]}}function Tde(e="light"){return e==="dark"?{main:rh[500],light:rh[300],dark:rh[700]}:{main:rh[700],light:rh[400],dark:rh[800]}}function wde(e="light"){return e==="dark"?{main:ah[400],light:ah[300],dark:ah[700]}:{main:ah[700],light:ah[500],dark:ah[900]}}function kde(e="light"){return e==="dark"?{main:sh[400],light:sh[300],dark:sh[700]}:{main:sh[800],light:sh[500],dark:sh[900]}}function xde(e="light"){return e==="dark"?{main:f0[400],light:f0[300],dark:f0[700]}:{main:"#ed6c02",light:f0[500],dark:f0[900]}}function Cde(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=Ge(e,vde),o=e.primary||Ede(t),a=e.secondary||Sde(t),s=e.error||Tde(t),l=e.info||wde(t),u=e.success||kde(t),c=e.warning||xde(t);function d(b){return Xce(b,NC.text.primary)>=n?NC.text.primary:RB.text.primary}const p=({color:b,name:O,mainShade:y=500,lightShade:v=300,darkShade:S=700})=>{if(b=P({},b),!b.main&&b[y]&&(b.main=b[y]),!b.hasOwnProperty("main"))throw new Error(Ud(11,O?` (${O})`:"",y));if(typeof b.main!="string")throw new Error(Ud(12,O?` (${O})`:"",JSON.stringify(b.main)));return IB(b,"light",v,r),IB(b,"dark",S,r),b.contrastText||(b.contrastText=d(b.main)),b},h={dark:NC,light:RB};return No(P({common:P({},by),mode:t,primary:p({color:o,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:ule,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},h[t]),i)}const Ade=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function _de(e){return Math.round(e*1e5)/1e5}const DB={textTransform:"uppercase"},NB='"Roboto", "Helvetica", "Arial", sans-serif';function Rde(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=NB,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=Ge(n,Ade),h=i/14,m=d||(y=>`${y/u*h}rem`),b=(y,v,S,k,C)=>P({fontFamily:r,fontWeight:y,fontSize:m(v),lineHeight:S},r===NB?{letterSpacing:`${_de(k/v)}em`}:{},C,c),O={h1:b(o,96,1.167,-1.5),h2:b(o,60,1.2,-.5),h3:b(a,48,1.167,0),h4:b(a,34,1.235,.25),h5:b(a,24,1.334,0),h6:b(s,20,1.6,.15),subtitle1:b(a,16,1.75,.15),subtitle2:b(s,14,1.57,.1),body1:b(a,16,1.5,.15),body2:b(a,14,1.43,.15),button:b(s,14,1.75,.4,DB),caption:b(a,12,1.66,.4),overline:b(a,12,2.66,1,DB),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return No(P({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},O),p,{clone:!1})}const Ide=.2,Dde=.14,Nde=.12;function jr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Ide})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Dde})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Nde})`].join(",")}const Pde=["none",jr(0,2,1,-1,0,1,1,0,0,1,3,0),jr(0,3,1,-2,0,2,2,0,0,1,5,0),jr(0,3,3,-2,0,3,4,0,0,1,8,0),jr(0,2,4,-1,0,4,5,0,0,1,10,0),jr(0,3,5,-1,0,5,8,0,0,1,14,0),jr(0,3,5,-1,0,6,10,0,0,1,18,0),jr(0,4,5,-2,0,7,10,1,0,2,16,1),jr(0,5,5,-3,0,8,10,1,0,3,14,2),jr(0,5,6,-3,0,9,12,1,0,3,16,2),jr(0,6,6,-3,0,10,14,1,0,4,18,3),jr(0,6,7,-4,0,11,15,1,0,4,20,3),jr(0,7,8,-4,0,12,17,2,0,5,22,4),jr(0,7,8,-4,0,13,19,2,0,5,24,4),jr(0,7,9,-4,0,14,21,2,0,5,26,4),jr(0,8,9,-5,0,15,22,2,0,6,28,5),jr(0,8,10,-5,0,16,24,2,0,6,30,5),jr(0,8,11,-5,0,17,26,2,0,6,32,5),jr(0,9,11,-5,0,18,28,2,0,7,34,6),jr(0,9,12,-6,0,19,29,2,0,7,36,6),jr(0,10,13,-6,0,20,31,3,0,8,38,7),jr(0,10,13,-6,0,21,33,3,0,8,40,7),jr(0,10,14,-6,0,22,35,3,0,8,42,7),jr(0,11,14,-7,0,23,36,3,0,9,44,8),jr(0,11,15,-7,0,24,38,3,0,9,46,8)],Lde=["duration","easing","delay"],Mde={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)"},HQ={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function PB(e){return`${Math.round(e)}ms`}function $de(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Fde(e){const t=P({},Mde,e.easing),n=P({},HQ,e.duration);return P({getAutoHeightDuration:$de,create:(i=["all"],o={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0}=o;return Ge(o,Lde),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof a=="string"?a:PB(a)} ${s} ${typeof l=="string"?l:PB(l)}`).join(",")}},e,{easing:t,duration:n})}const Bde={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Ude=Bde,jde=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function vN(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,a=Ge(e,jde);if(e.vars)throw new Error(Ud(18));const s=Cde(r),l=U1(e);let u=No(l,{mixins:Ode(l.breakpoints,n),palette:s,shadows:Pde.slice(),typography:Rde(s,o),transitions:Fde(i),zIndex:P({},Ude)});return u=No(u,a),u=t.reduce((c,d)=>No(c,d),u),u.unstable_sxConfig=P({},dk,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(d){return B1({sx:d,theme:this})},u}const zde=vN(),bk=zde;function ui(){const e=vg(bk);return e[pp]||e}function gt({props:e,name:t}){return yN({props:e,name:t,defaultTheme:bk,themeId:pp})}const Ji=e=>Eb(e)&&e!=="classes",EN=Eb,Se=BQ({themeId:pp,defaultTheme:bk,rootShouldForwardProp:Ji}),Vde=["theme"];function Hde(e){let{theme:t}=e,n=Ge(e,Vde);const r=t[pp];return M.jsx(ide,P({},n,{themeId:r?pp:void 0,theme:r||t}))}const LB=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Wde(e){return At("MuiSvgIcon",e)}_t("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Qde=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Yde=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${nt(t)}`,`fontSize${nt(n)}`]};return kt(i,Wde,r)},Gde=Se("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${nt(n.color)}`],t[`fontSize${nt(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,o,a,s,l,u,c,d,p,h,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(a=o.pxToRem)==null?void 0:a.call(o,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:(d=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?d:{action:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.active,disabled:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.disabled,inherit:void 0}[t.color]}}),jd=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:p="0 0 24 24"}=r,h=Ge(r,Qde),m=I.isValidElement(i)&&i.type==="svg",b=P({},r,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:m}),O={};c||(O.viewBox=p);const y=Yde(b);return M.jsxs(Gde,P({as:s,className:Je(y.root,o),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},O,h,m&&i.props,{ownerState:b,children:[m?i.props.children:i,d?M.jsx("title",{children:d}):null]}))});jd.muiName="SvgIcon";function wi(e,t){function n(r,i){return M.jsx(jd,P({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=jd.muiName,I.memo(I.forwardRef(n))}const qde={configure:e=>{fN.configure(e)}},Zde=Object.freeze(Object.defineProperty({__proto__:null,capitalize:nt,createChainedFunction:qS,createSvgIcon:wi,debounce:Og,deprecatedPropType:Eue,isMuiElement:Ob,ownerDocument:br,ownerWindow:Js,requirePropFactory:Sue,setRef:Ey,unstable_ClassNameGenerator:qde,unstable_useEnhancedEffect:Kr,unstable_useId:$l,unsupportedProp:wue,useControlled:Xi,useEventCallback:jt,useForkRef:yn,useIsFocusVisible:rk},Symbol.toStringTag,{value:"Module"}));function __(e,t){return __=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},__(e,t)}function SN(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,__(e,t)}function Xde(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Kde(e,t){e.classList?e.classList.add(t):Xde(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function MB(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Jde(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=MB(e.className,t):e.setAttribute("class",MB(e.className&&e.className.baseVal||"",t))}const $B={disabled:!1},JS=Qt.createContext(null);var WQ=function(t){return t.scrollTop},X0="unmounted",Cf="exited",Af="entering",yh="entered",R_="exiting",Ac=function(e){SN(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=i,s=a&&!a.isMounting?r.enter:r.appear,l;return o.appearStatus=null,r.in?s?(l=Cf,o.appearStatus=Af):l=yh:r.unmountOnExit||r.mountOnEnter?l=X0:l=Cf,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===X0?{status:Cf}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==Af&&a!==yh&&(o=Af):(a===Af||a===yh)&&(o=R_)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,a,s;return o=a=s=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,s=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:s}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===Af){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Z0.findDOMNode(this);a&&WQ(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Cf&&this.setState({status:X0})},n.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[Z0.findDOMNode(this),s],u=l[0],c=l[1],d=this.getTimeouts(),p=s?d.appear:d.enter;if(!i&&!a||$B.disabled){this.safeSetState({status:yh},function(){o.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Af},function(){o.props.onEntering(u,c),o.onTransitionEnd(p,function(){o.safeSetState({status:yh},function(){o.props.onEntered(u,c)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:Z0.findDOMNode(this);if(!o||$B.disabled){this.safeSetState({status:Cf},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:R_},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:Cf},function(){i.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,o.nextCallback=null,i(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:Z0.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===X0)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=Ge(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Qt.createElement(JS.Provider,{value:null},typeof a=="function"?a(i,s):Qt.cloneElement(Qt.Children.only(a),s))},t}(Qt.Component);Ac.contextType=JS;Ac.propTypes={};function uh(){}Ac.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:uh,onEntering:uh,onEntered:uh,onExit:uh,onExiting:uh,onExited:uh};Ac.UNMOUNTED=X0;Ac.EXITED=Cf;Ac.ENTERING=Af;Ac.ENTERED=yh;Ac.EXITING=R_;const j1=Ac;var efe=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Kde(t,r)})},PC=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Jde(t,r)})},TN=function(e){SN(t,e);function t(){for(var r,i=arguments.length,o=new Array(i),a=0;ae.scrollTop;function zd(e,t){var n,r;const{timeout:i,easing:o,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof i=="number"?i:i[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof o=="object"?o[t.mode]:o,delay:a.transitionDelay}}function lfe(e){return At("MuiCollapse",e)}_t("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const ufe=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],cfe=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return kt(r,lfe,n)},dfe=Se("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})=>P({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&P({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),ffe=Se("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>P({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),pfe=Se("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>P({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),QQ=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiCollapse"}),{addEndListener:i,children:o,className:a,collapsedSize:s="0px",component:l,easing:u,in:c,onEnter:d,onEntered:p,onEntering:h,onExit:m,onExited:b,onExiting:O,orientation:y="vertical",style:v,timeout:S=HQ.standard,TransitionComponent:k=j1}=r,C=Ge(r,ufe),w=P({},r,{orientation:y,collapsedSize:s}),E=cfe(w),$=ui(),N=I.useRef(),R=I.useRef(null),B=I.useRef(),U=typeof s=="number"?`${s}px`:s,V=y==="horizontal",z=V?"width":"height";I.useEffect(()=>()=>{clearTimeout(N.current)},[]);const W=I.useRef(null),X=yn(n,W),q=ue=>xe=>{if(ue){const Ne=W.current;xe===void 0?ue(Ne):ue(Ne,xe)}},Y=()=>R.current?R.current[V?"clientWidth":"clientHeight"]:0,Z=q((ue,xe)=>{R.current&&V&&(R.current.style.position="absolute"),ue.style[z]=U,d&&d(ue,xe)}),j=q((ue,xe)=>{const Ne=Y();R.current&&V&&(R.current.style.position="");const{duration:Ve,easing:Ke}=zd({style:v,timeout:S,easing:u},{mode:"enter"});if(S==="auto"){const Me=$.transitions.getAutoHeightDuration(Ne);ue.style.transitionDuration=`${Me}ms`,B.current=Me}else ue.style.transitionDuration=typeof Ve=="string"?Ve:`${Ve}ms`;ue.style[z]=`${Ne}px`,ue.style.transitionTimingFunction=Ke,h&&h(ue,xe)}),se=q((ue,xe)=>{ue.style[z]="auto",p&&p(ue,xe)}),ve=q(ue=>{ue.style[z]=`${Y()}px`,m&&m(ue)}),G=q(b),ce=q(ue=>{const xe=Y(),{duration:Ne,easing:Ve}=zd({style:v,timeout:S,easing:u},{mode:"exit"});if(S==="auto"){const Ke=$.transitions.getAutoHeightDuration(xe);ue.style.transitionDuration=`${Ke}ms`,B.current=Ke}else ue.style.transitionDuration=typeof Ne=="string"?Ne:`${Ne}ms`;ue.style[z]=U,ue.style.transitionTimingFunction=Ve,O&&O(ue)}),ge=ue=>{S==="auto"&&(N.current=setTimeout(ue,B.current||0)),i&&i(W.current,ue)};return M.jsx(k,P({in:c,onEnter:Z,onEntered:se,onEntering:j,onExit:ve,onExited:G,onExiting:ce,addEndListener:ge,nodeRef:W,timeout:S==="auto"?null:S},C,{children:(ue,xe)=>M.jsx(dfe,P({as:l,className:Je(E.root,a,{entered:E.entered,exited:!c&&U==="0px"&&E.hidden}[ue]),style:P({[V?"minWidth":"minHeight"]:U},v),ownerState:P({},w,{state:ue}),ref:X},xe,{children:M.jsx(ffe,{ownerState:P({},w,{state:ue}),className:E.wrapper,ref:R,children:M.jsx(pfe,{ownerState:P({},w,{state:ue}),className:E.wrapperInner,children:o})})}))}))});QQ.muiSupportAuto=!0;const hfe=QQ;function mfe(e){return At("MuiPaper",e)}_t("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const gfe=["className","component","elevation","square","variant"],bfe=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return kt(o,mfe,i)},yfe=Se("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 P({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"&&P({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${cn("#fff",LB(t.elevation))}, ${cn("#fff",LB(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Ofe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiPaper"}),{className:i,component:o="div",elevation:a=1,square:s=!1,variant:l="elevation"}=r,u=Ge(r,gfe),c=P({},r,{component:o,elevation:a,square:s,variant:l}),d=bfe(c);return M.jsx(yfe,P({as:o,ownerState:c,className:Je(d.root,i),ref:n},u))}),Da=Ofe;function ku(e){return typeof e=="string"}function K0(e,t,n){return e===void 0||ku(e)?t:P({},t,{ownerState:P({},t.ownerState,n)})}function vfe(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const Efe={disableDefaultClasses:!1},Sfe=I.createContext(Efe);function Tfe(e){const{disableDefaultClasses:t}=I.useContext(Sfe);return n=>t?"":e(n)}function Sb(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 nf(e,t,n){return typeof e=="function"?e(t,n):e}function FB(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 wfe(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const h=Je(n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),m=P({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),b=P({},n,i,r);return h.length>0&&(b.className=h),Object.keys(m).length>0&&(b.style=m),{props:b,internalRef:void 0}}const a=Sb(P({},i,r)),s=FB(r),l=FB(i),u=t(a),c=Je(u==null?void 0:u.className,n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),d=P({},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=P({},u,n,l,s);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}const kfe=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function kn(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,a=Ge(e,kfe),s=o?{}:nf(r,i),{props:l,internalRef:u}=wfe(P({},a,{externalSlotProps:s})),c=yn(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return K0(n,P({},l,{ref:c}),i)}function xfe(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:a,in:s,onExited:l,timeout:u}=e,[c,d]=I.useState(!1),p=Je(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:a,height:a,top:-(a/2)+o,left:-(a/2)+i},m=Je(n.child,c&&n.childLeaving,r&&n.childPulsate);return!s&&!c&&d(!0),I.useEffect(()=>{if(!s&&l!=null){const b=setTimeout(l,u);return()=>{clearTimeout(b)}}},[l,s,u]),M.jsx("span",{className:p,style:h,children:M.jsx("span",{className:m})})}const Ns=_t("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Cfe=["center","classes","className"];let yk=e=>e,BB,UB,jB,zB;const I_=550,Afe=80,_fe=$1(BB||(BB=yk` 0% { transform: scale(0); opacity: 0.1; @@ -62,7 +62,7 @@ Error generating stack: `+o.message+` transform: scale(1); opacity: 0.3; } -`)),Wde=w1(EB||(EB=tk` +`)),Rfe=$1(UB||(UB=yk` 0% { opacity: 1; } @@ -70,7 +70,7 @@ Error generating stack: `+o.message+` 100% { opacity: 0; } -`)),Qde=w1(SB||(SB=tk` +`)),Ife=$1(jB||(jB=yk` 0% { transform: scale(1); } @@ -82,7 +82,7 @@ Error generating stack: `+o.message+` 100% { transform: scale(1); } -`)),Yde=ke("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Gde=ke(jde,{name:"MuiTouchRipple",slot:"Ripple"})(TB||(TB=tk` +`)),Dfe=Se("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Nfe=Se(xfe,{name:"MuiTouchRipple",slot:"Ripple"})(zB||(zB=yk` opacity: 0; position: absolute; @@ -125,8 +125,8 @@ Error generating stack: `+o.message+` animation-iteration-count: infinite; animation-delay: 200ms; } -`),Is.rippleVisible,Hde,c_,({theme:e})=>e.transitions.easing.easeInOut,Is.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Is.child,Is.childLeaving,Wde,c_,({theme:e})=>e.transitions.easing.easeInOut,Is.childPulsate,Qde,({theme:e})=>e.transitions.easing.easeInOut),qde=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:a}=r,s=Ge(r,zde),[l,u]=N.useState([]),c=N.useRef(0),d=N.useRef(null);N.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const p=N.useRef(!1),h=N.useRef(0),m=N.useRef(null),y=N.useRef(null);N.useEffect(()=>()=>{h.current&&clearTimeout(h.current)},[]);const O=N.useCallback(k=>{const{pulsate:C,rippleX:w,rippleY:E,rippleSize:$,cb:D}=k;u(R=>[...R,M.jsx(Gde,{classes:{ripple:et(o.ripple,Is.ripple),rippleVisible:et(o.rippleVisible,Is.rippleVisible),ripplePulsate:et(o.ripplePulsate,Is.ripplePulsate),child:et(o.child,Is.child),childLeaving:et(o.childLeaving,Is.childLeaving),childPulsate:et(o.childPulsate,Is.childPulsate)},timeout:c_,pulsate:C,rippleX:w,rippleY:E,rippleSize:$},c.current)]),c.current+=1,d.current=D},[o]),b=N.useCallback((k={},C={},w=()=>{})=>{const{pulsate:E=!1,center:$=i||C.pulsate,fakeElement:D=!1}=C;if((k==null?void 0:k.type)==="mousedown"&&p.current){p.current=!1;return}(k==null?void 0:k.type)==="touchstart"&&(p.current=!0);const R=D?null:y.current,B=R?R.getBoundingClientRect():{width:0,height:0,left:0,top:0};let U,V,z;if($||k===void 0||k.clientX===0&&k.clientY===0||!k.clientX&&!k.touches)U=Math.round(B.width/2),V=Math.round(B.height/2);else{const{clientX:Q,clientY:X}=k.touches&&k.touches.length>0?k.touches[0]:k;U=Math.round(Q-B.left),V=Math.round(X-B.top)}if($)z=Math.sqrt((2*B.width**2+B.height**2)/3),z%2===0&&(z+=1);else{const Q=Math.max(Math.abs((R?R.clientWidth:0)-U),U)*2+2,X=Math.max(Math.abs((R?R.clientHeight:0)-V),V)*2+2;z=Math.sqrt(Q**2+X**2)}k!=null&&k.touches?m.current===null&&(m.current=()=>{O({pulsate:E,rippleX:U,rippleY:V,rippleSize:z,cb:w})},h.current=setTimeout(()=>{m.current&&(m.current(),m.current=null)},Vde)):O({pulsate:E,rippleX:U,rippleY:V,rippleSize:z,cb:w})},[i,O]),v=N.useCallback(()=>{b({},{pulsate:!0})},[b]),S=N.useCallback((k,C)=>{if(clearTimeout(h.current),(k==null?void 0:k.type)==="touchend"&&m.current){m.current(),m.current=null,h.current=setTimeout(()=>{S(k,C)});return}m.current=null,u(w=>w.length>0?w.slice(1):w),d.current=C},[]);return N.useImperativeHandle(n,()=>({pulsate:v,start:b,stop:S}),[v,b,S]),M.jsx(Yde,L({className:et(Is.root,o.root,a),ref:y},s,{children:M.jsx(sD,{component:null,exit:!0,children:l})}))}),Zde=qde;function Xde(e){return At("MuiButtonBase",e)}const Kde=_t("MuiButtonBase",["root","disabled","focusVisible"]),Jde=["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"],efe=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=Ct({root:["root",t&&"disabled",n&&"focusVisible"]},Xde,i);return n&&r&&(a.root+=` ${r}`),a},tfe=ke("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"},[`&.${Kde.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),nfe=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:a,className:s,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:h="a",onBlur:m,onClick:y,onContextMenu:O,onDragLeave:b,onFocus:v,onFocusVisible:S,onKeyDown:k,onKeyUp:C,onMouseDown:w,onMouseLeave:E,onMouseUp:$,onTouchEnd:D,onTouchMove:R,onTouchStart:B,tabIndex:U=0,TouchRippleProps:V,touchRippleRef:z,type:Q}=r,X=Ge(r,Jde),Z=N.useRef(null),Y=N.useRef(null),q=yn(Y,z),{isFocusVisibleRef:j,onFocus:le,onBlur:Ee,ref:G}=jw(),[ue,ge]=N.useState(!1);u&&ue&&ge(!1),N.useImperativeHandle(i,()=>({focusVisible:()=>{ge(!0),Z.current.focus()}}),[]);const[he,Ne]=N.useState(!1);N.useEffect(()=>{Ne(!0)},[]);const Le=he&&!c&&!u;N.useEffect(()=>{ue&&p&&!c&&he&&Y.current.pulsate()},[c,p,ue,he]);function qe(Se,nt,pt=d){return jt(kt=>(nt&&nt(kt),!pt&&Y.current&&Y.current[Se](kt),!0))}const rt=qe("start",w),Me=qe("stop",O),Qe=qe("stop",b),ye=qe("stop",$),ze=qe("stop",Se=>{ue&&Se.preventDefault(),E&&E(Se)}),$e=qe("start",B),He=qe("stop",D),dt=qe("stop",R),Be=qe("stop",Se=>{Ee(Se),j.current===!1&&ge(!1),m&&m(Se)},!1),re=jt(Se=>{Z.current||(Z.current=Se.currentTarget),le(Se),j.current===!0&&(ge(!0),S&&S(Se)),v&&v(Se)}),ee=()=>{const Se=Z.current;return l&&l!=="button"&&!(Se.tagName==="A"&&Se.href)},J=N.useRef(!1),_e=jt(Se=>{p&&!J.current&&ue&&Y.current&&Se.key===" "&&(J.current=!0,Y.current.stop(Se,()=>{Y.current.start(Se)})),Se.target===Se.currentTarget&&ee()&&Se.key===" "&&Se.preventDefault(),k&&k(Se),Se.target===Se.currentTarget&&ee()&&Se.key==="Enter"&&!u&&(Se.preventDefault(),y&&y(Se))}),Pe=jt(Se=>{p&&Se.key===" "&&Y.current&&ue&&!Se.defaultPrevented&&(J.current=!1,Y.current.stop(Se,()=>{Y.current.pulsate(Se)})),C&&C(Se),y&&Se.target===Se.currentTarget&&ee()&&Se.key===" "&&!Se.defaultPrevented&&y(Se)});let Ie=l;Ie==="button"&&(X.href||X.to)&&(Ie=h);const ie={};Ie==="button"?(ie.type=Q===void 0?"button":Q,ie.disabled=u):(!X.href&&!X.to&&(ie.role="button"),u&&(ie["aria-disabled"]=u));const de=yn(n,G,Z),ce=L({},r,{centerRipple:o,component:l,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:U,focusVisible:ue}),Oe=efe(ce);return M.jsxs(tfe,L({as:Ie,className:et(Oe.root,s),ownerState:ce,onBlur:Be,onClick:y,onContextMenu:Me,onFocus:re,onKeyDown:_e,onKeyUp:Pe,onMouseDown:rt,onMouseLeave:ze,onMouseUp:ye,onDragLeave:Qe,onTouchEnd:He,onTouchMove:dt,onTouchStart:$e,ref:de,tabIndex:u?-1:U,type:Q},ie,X,{children:[a,Le?M.jsx(Zde,L({ref:q,center:o},V)):null]}))}),fs=nfe;function rfe(e){return At("MuiIconButton",e)}const ife=_t("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),ofe=["edge","children","className","color","disabled","disableFocusRipple","size"],afe=e=>{const{classes:t,disabled:n,color:r,edge:i,size:o}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${tt(r)}`,i&&`edge${tt(i)}`,`size${tt(o)}`]};return Ct(a,rfe,t)},sfe=ke(fs,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${tt(n.color)}`],n.edge&&t[`edge${tt(n.edge)}`],t[`size${tt(n.size)}`]]}})(({theme:e,ownerState:t})=>L({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:un(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return L({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&L({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":L({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:un(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)},{[`&.${ife.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),lfe=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiIconButton"}),{edge:i=!1,children:o,className:a,color:s="default",disabled:l=!1,disableFocusRipple:u=!1,size:c="medium"}=r,d=Ge(r,ofe),p=L({},r,{edge:i,color:s,disabled:l,disableFocusRipple:u,size:c}),h=afe(p);return M.jsx(sfe,L({className:et(h.root,a),centerRipple:!0,focusRipple:!u,disabled:l,ref:n,ownerState:p},d,{children:o}))}),Ia=lfe,ufe=Ti(M.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 cfe(e){return At("MuiTypography",e)}_t("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const dfe=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],ffe=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e,s={root:["root",o,e.align!=="inherit"&&`align${tt(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return Ct(s,cfe,a)},pfe=ke("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${tt(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>L({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),wB={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},hfe={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},mfe=e=>hfe[e]||e,gfe=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiTypography"}),i=mfe(r.color),o=Xw(L({},r,{color:i})),{align:a="inherit",className:s,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:d=!1,variant:p="body1",variantMapping:h=wB}=o,m=Ge(o,dfe),y=L({},o,{align:a,color:i,className:s,component:l,gutterBottom:u,noWrap:c,paragraph:d,variant:p,variantMapping:h}),O=l||(d?"p":h[p]||wB[p])||"span",b=ffe(y);return M.jsx(pfe,L({as:O,ref:n,ownerState:y,className:et(b.root,s)},m))}),Gr=gfe;function bfe(e){return At("MuiAppBar",e)}_t("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const yfe=["className","color","enableColorOnDark","position"],Ofe=e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${tt(t)}`,`position${tt(n)}`]};return Ct(i,bfe,r)},nv=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,vfe=ke(Ra,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${tt(n.position)}`],t[`color${tt(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return L({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&L({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&L({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&L({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:nv(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:nv(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:nv(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:nv(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),Efe=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiAppBar"}),{className:i,color:o="primary",enableColorOnDark:a=!1,position:s="fixed"}=r,l=Ge(r,yfe),u=L({},r,{color:o,position:s,enableColorOnDark:a}),c=Ofe(u);return M.jsx(vfe,L({square:!0,component:"header",ownerState:u,elevation:4,className:et(c.root,i,s==="fixed"&&"mui-fixed"),ref:n},l))}),Sfe=Efe,vQ="base";function Tfe(e){return`${vQ}--${e}`}function wfe(e,t){return`${vQ}-${e}-${t}`}function EQ(e,t){const n=lQ[t];return n?Tfe(n):wfe(e,t)}function kfe(e,t){const n={};return t.forEach(r=>{n[r]=EQ(e,r)}),n}const xfe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Cfe(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 Afe(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 _fe(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Afe(e))}function Rfe(e){const t=[],n=[];return Array.from(e.querySelectorAll(xfe)).forEach((r,i)=>{const o=Cfe(r);o===-1||!_fe(r)||(o===0?t.push(r):n.push({documentOrder:i,tabIndex:o,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function Ife(){return!0}function SQ(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=Rfe,isEnabled:a=Ife,open:s}=e,l=N.useRef(!1),u=N.useRef(null),c=N.useRef(null),d=N.useRef(null),p=N.useRef(null),h=N.useRef(!1),m=N.useRef(null),y=yn(t.ref,m),O=N.useRef(null);N.useEffect(()=>{!s||!m.current||(h.current=!n)},[n,s]),N.useEffect(()=>{if(!s||!m.current)return;const S=Hr(m.current);return m.current.contains(S.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),h.current&&m.current.focus()),()=>{i||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),N.useEffect(()=>{if(!s||!m.current)return;const S=Hr(m.current),k=E=>{O.current=E,!(r||!a()||E.key!=="Tab")&&S.activeElement===m.current&&E.shiftKey&&(l.current=!0,c.current&&c.current.focus())},C=()=>{const E=m.current;if(E===null)return;if(!S.hasFocus()||!a()||l.current){l.current=!1;return}if(E.contains(S.activeElement)||r&&S.activeElement!==u.current&&S.activeElement!==c.current)return;if(S.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!h.current)return;let $=[];if((S.activeElement===u.current||S.activeElement===c.current)&&($=o(m.current)),$.length>0){var D,R;const B=!!((D=O.current)!=null&&D.shiftKey&&((R=O.current)==null?void 0:R.key)==="Tab"),U=$[0],V=$[$.length-1];typeof U!="string"&&typeof V!="string"&&(B?V.focus():U.focus())}else E.focus()};S.addEventListener("focusin",C),S.addEventListener("keydown",k,!0);const w=setInterval(()=>{S.activeElement&&S.activeElement.tagName==="BODY"&&C()},50);return()=>{clearInterval(w),S.removeEventListener("focusin",C),S.removeEventListener("keydown",k,!0)}},[n,r,i,a,s,o]);const b=S=>{d.current===null&&(d.current=S.relatedTarget),h.current=!0,p.current=S.target;const k=t.props.onFocus;k&&k(S)},v=S=>{d.current===null&&(d.current=S.relatedTarget),h.current=!0};return M.jsxs(N.Fragment,{children:[M.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),N.cloneElement(t,{ref:y,onFocus:b}),M.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}var wa="top",Ks="bottom",Js="right",ka="left",uD="auto",A1=[wa,Ks,Js,ka],$m="start",uy="end",Nfe="clippingParents",TQ="viewport",r0="popper",Dfe="reference",kB=A1.reduce(function(e,t){return e.concat([t+"-"+$m,t+"-"+uy])},[]),wQ=[].concat(A1,[uD]).reduce(function(e,t){return e.concat([t,t+"-"+$m,t+"-"+uy])},[]),Pfe="beforeRead",Lfe="read",Mfe="afterRead",$fe="beforeMain",Ffe="main",Bfe="afterMain",Ufe="beforeWrite",jfe="write",zfe="afterWrite",Vfe=[Pfe,Lfe,Mfe,$fe,Ffe,Bfe,Ufe,jfe,zfe];function Cu(e){return e?(e.nodeName||"").toLowerCase():null}function ps(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function op(e){var t=ps(e).Element;return e instanceof t||e instanceof Element}function Vs(e){var t=ps(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function cD(e){if(typeof ShadowRoot>"u")return!1;var t=ps(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Hfe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!Vs(o)||!Cu(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function Wfe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,u){return l[u]="",l},{});!Vs(i)||!Cu(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const Qfe={name:"applyStyles",enabled:!0,phase:"write",fn:Hfe,effect:Wfe,requires:["computeStyles"]};function Tu(e){return e.split("-")[0]}var Gf=Math.max,FS=Math.min,Fm=Math.round;function d_(){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 kQ(){return!/^((?!chrome|android).)*safari/i.test(d_())}function Bm(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Vs(e)&&(i=e.offsetWidth>0&&Fm(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Fm(r.height)/e.offsetHeight||1);var a=op(e)?ps(e):window,s=a.visualViewport,l=!kQ()&&n,u=(r.left+(l&&s?s.offsetLeft:0))/i,c=(r.top+(l&&s?s.offsetTop:0))/o,d=r.width/i,p=r.height/o;return{width:d,height:p,top:c,right:u+d,bottom:c+p,left:u,x:u,y:c}}function dD(e){var t=Bm(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 xQ(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&cD(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function mc(e){return ps(e).getComputedStyle(e)}function Yfe(e){return["table","td","th"].indexOf(Cu(e))>=0}function Gd(e){return((op(e)?e.ownerDocument:e.document)||window.document).documentElement}function nk(e){return Cu(e)==="html"?e:e.assignedSlot||e.parentNode||(cD(e)?e.host:null)||Gd(e)}function xB(e){return!Vs(e)||mc(e).position==="fixed"?null:e.offsetParent}function Gfe(e){var t=/firefox/i.test(d_()),n=/Trident/i.test(d_());if(n&&Vs(e)){var r=mc(e);if(r.position==="fixed")return null}var i=nk(e);for(cD(i)&&(i=i.host);Vs(i)&&["html","body"].indexOf(Cu(i))<0;){var o=mc(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function _1(e){for(var t=ps(e),n=xB(e);n&&Yfe(n)&&mc(n).position==="static";)n=xB(n);return n&&(Cu(n)==="html"||Cu(n)==="body"&&mc(n).position==="static")?t:n||Gfe(e)||t}function fD(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function fb(e,t,n){return Gf(e,FS(t,n))}function qfe(e,t,n){var r=fb(e,t,n);return r>n?n:r}function CQ(){return{top:0,right:0,bottom:0,left:0}}function AQ(e){return Object.assign({},CQ(),e)}function _Q(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Zfe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,AQ(typeof t!="number"?t:_Q(t,A1))};function Xfe(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Tu(n.placement),l=fD(s),u=[ka,Js].indexOf(s)>=0,c=u?"height":"width";if(!(!o||!a)){var d=Zfe(i.padding,n),p=dD(o),h=l==="y"?wa:ka,m=l==="y"?Ks:Js,y=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],O=a[l]-n.rects.reference[l],b=_1(o),v=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,S=y/2-O/2,k=d[h],C=v-p[c]-d[m],w=v/2-p[c]/2+S,E=fb(k,w,C),$=l;n.modifiersData[r]=(t={},t[$]=E,t.centerOffset=E-w,t)}}function Kfe(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)||xQ(t.elements.popper,i)&&(t.elements.arrow=i))}const Jfe={name:"arrow",enabled:!0,phase:"main",fn:Xfe,effect:Kfe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Um(e){return e.split("-")[1]}var epe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function tpe(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Fm(n*i)/i||0,y:Fm(r*i)/i||0}}function CB(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=a.x,h=p===void 0?0:p,m=a.y,y=m===void 0?0:m,O=typeof c=="function"?c({x:h,y}):{x:h,y};h=O.x,y=O.y;var b=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),S=ka,k=wa,C=window;if(u){var w=_1(n),E="clientHeight",$="clientWidth";if(w===ps(n)&&(w=Gd(n),mc(w).position!=="static"&&s==="absolute"&&(E="scrollHeight",$="scrollWidth")),w=w,i===wa||(i===ka||i===Js)&&o===uy){k=Ks;var D=d&&w===C&&C.visualViewport?C.visualViewport.height:w[E];y-=D-r.height,y*=l?1:-1}if(i===ka||(i===wa||i===Ks)&&o===uy){S=Js;var R=d&&w===C&&C.visualViewport?C.visualViewport.width:w[$];h-=R-r.width,h*=l?1:-1}}var B=Object.assign({position:s},u&&epe),U=c===!0?tpe({x:h,y},ps(n)):{x:h,y};if(h=U.x,y=U.y,l){var V;return Object.assign({},B,(V={},V[k]=v?"0":"",V[S]=b?"0":"",V.transform=(C.devicePixelRatio||1)<=1?"translate("+h+"px, "+y+"px)":"translate3d("+h+"px, "+y+"px, 0)",V))}return Object.assign({},B,(t={},t[k]=v?y+"px":"",t[S]=b?h+"px":"",t.transform="",t))}function npe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:Tu(t.placement),variation:Um(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,CB(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,CB(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 rpe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:npe,data:{}};var rv={passive:!0};function ipe(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,l=ps(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(c){c.addEventListener("scroll",n.update,rv)}),s&&l.addEventListener("resize",n.update,rv),function(){o&&u.forEach(function(c){c.removeEventListener("scroll",n.update,rv)}),s&&l.removeEventListener("resize",n.update,rv)}}const ope={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ipe,data:{}};var ape={left:"right",right:"left",bottom:"top",top:"bottom"};function SE(e){return e.replace(/left|right|bottom|top/g,function(t){return ape[t]})}var spe={start:"end",end:"start"};function AB(e){return e.replace(/start|end/g,function(t){return spe[t]})}function pD(e){var t=ps(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function hD(e){return Bm(Gd(e)).left+pD(e).scrollLeft}function lpe(e,t){var n=ps(e),r=Gd(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var u=kQ();(u||!u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+hD(e),y:l}}function upe(e){var t,n=Gd(e),r=pD(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Gf(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Gf(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+hD(e),l=-r.scrollTop;return mc(i||n).direction==="rtl"&&(s+=Gf(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function mD(e){var t=mc(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function RQ(e){return["html","body","#document"].indexOf(Cu(e))>=0?e.ownerDocument.body:Vs(e)&&mD(e)?e:RQ(nk(e))}function pb(e,t){var n;t===void 0&&(t=[]);var r=RQ(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=ps(r),a=i?[o].concat(o.visualViewport||[],mD(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(pb(nk(a)))}function f_(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function cpe(e,t){var n=Bm(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 _B(e,t,n){return t===TQ?f_(lpe(e,n)):op(t)?cpe(t,n):f_(upe(Gd(e)))}function dpe(e){var t=pb(nk(e)),n=["absolute","fixed"].indexOf(mc(e).position)>=0,r=n&&Vs(e)?_1(e):e;return op(r)?t.filter(function(i){return op(i)&&xQ(i,r)&&Cu(i)!=="body"}):[]}function fpe(e,t,n,r){var i=t==="clippingParents"?dpe(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,u){var c=_B(e,u,r);return l.top=Gf(c.top,l.top),l.right=FS(c.right,l.right),l.bottom=FS(c.bottom,l.bottom),l.left=Gf(c.left,l.left),l},_B(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function IQ(e){var t=e.reference,n=e.element,r=e.placement,i=r?Tu(r):null,o=r?Um(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case wa:l={x:a,y:t.y-n.height};break;case Ks:l={x:a,y:t.y+t.height};break;case Js:l={x:t.x+t.width,y:s};break;case ka:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?fD(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(o){case $m:l[u]=l[u]-(t[c]/2-n[c]/2);break;case uy:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function cy(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,l=s===void 0?Nfe:s,u=n.rootBoundary,c=u===void 0?TQ:u,d=n.elementContext,p=d===void 0?r0:d,h=n.altBoundary,m=h===void 0?!1:h,y=n.padding,O=y===void 0?0:y,b=AQ(typeof O!="number"?O:_Q(O,A1)),v=p===r0?Dfe:r0,S=e.rects.popper,k=e.elements[m?v:p],C=fpe(op(k)?k:k.contextElement||Gd(e.elements.popper),l,c,a),w=Bm(e.elements.reference),E=IQ({reference:w,element:S,strategy:"absolute",placement:i}),$=f_(Object.assign({},S,E)),D=p===r0?$:w,R={top:C.top-D.top+b.top,bottom:D.bottom-C.bottom+b.bottom,left:C.left-D.left+b.left,right:D.right-C.right+b.right},B=e.modifiersData.offset;if(p===r0&&B){var U=B[i];Object.keys(R).forEach(function(V){var z=[Js,Ks].indexOf(V)>=0?1:-1,Q=[wa,Ks].indexOf(V)>=0?"y":"x";R[V]+=U[Q]*z})}return R}function ppe(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?wQ:l,c=Um(r),d=c?s?kB:kB.filter(function(m){return Um(m)===c}):A1,p=d.filter(function(m){return u.indexOf(m)>=0});p.length===0&&(p=d);var h=p.reduce(function(m,y){return m[y]=cy(e,{placement:y,boundary:i,rootBoundary:o,padding:a})[Tu(y)],m},{});return Object.keys(h).sort(function(m,y){return h[m]-h[y]})}function hpe(e){if(Tu(e)===uD)return[];var t=SE(e);return[AB(e),t,AB(t)]}function mpe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,m=h===void 0?!0:h,y=n.allowedAutoPlacements,O=t.options.placement,b=Tu(O),v=b===O,S=l||(v||!m?[SE(O)]:hpe(O)),k=[O].concat(S).reduce(function(ue,ge){return ue.concat(Tu(ge)===uD?ppe(t,{placement:ge,boundary:c,rootBoundary:d,padding:u,flipVariations:m,allowedAutoPlacements:y}):ge)},[]),C=t.rects.reference,w=t.rects.popper,E=new Map,$=!0,D=k[0],R=0;R=0,Q=z?"width":"height",X=cy(t,{placement:B,boundary:c,rootBoundary:d,altBoundary:p,padding:u}),Z=z?V?Js:ka:V?Ks:wa;C[Q]>w[Q]&&(Z=SE(Z));var Y=SE(Z),q=[];if(o&&q.push(X[U]<=0),s&&q.push(X[Z]<=0,X[Y]<=0),q.every(function(ue){return ue})){D=B,$=!1;break}E.set(B,q)}if($)for(var j=m?3:1,le=function(ge){var he=k.find(function(Ne){var Le=E.get(Ne);if(Le)return Le.slice(0,ge).every(function(qe){return qe})});if(he)return D=he,"break"},Ee=j;Ee>0;Ee--){var G=le(Ee);if(G==="break")break}t.placement!==D&&(t.modifiersData[r]._skip=!0,t.placement=D,t.reset=!0)}}const gpe={name:"flip",enabled:!0,phase:"main",fn:mpe,requiresIfExists:["offset"],data:{_skip:!1}};function RB(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 IB(e){return[wa,Js,Ks,ka].some(function(t){return e[t]>=0})}function bpe(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=cy(t,{elementContext:"reference"}),s=cy(t,{altBoundary:!0}),l=RB(a,r),u=RB(s,i,o),c=IB(l),d=IB(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const ype={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:bpe};function Ope(e,t,n){var r=Tu(e),i=[ka,wa].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[ka,Js].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function vpe(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=wQ.reduce(function(c,d){return c[d]=Ope(d,t.rects,o),c},{}),s=a[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const Epe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:vpe};function Spe(e){var t=e.state,n=e.name;t.modifiersData[n]=IQ({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Tpe={name:"popperOffsets",enabled:!0,phase:"read",fn:Spe,data:{}};function wpe(e){return e==="x"?"y":"x"}function kpe(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,p=n.tether,h=p===void 0?!0:p,m=n.tetherOffset,y=m===void 0?0:m,O=cy(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),b=Tu(t.placement),v=Um(t.placement),S=!v,k=fD(b),C=wpe(k),w=t.modifiersData.popperOffsets,E=t.rects.reference,$=t.rects.popper,D=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,R=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),B=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,U={x:0,y:0};if(w){if(o){var V,z=k==="y"?wa:ka,Q=k==="y"?Ks:Js,X=k==="y"?"height":"width",Z=w[k],Y=Z+O[z],q=Z-O[Q],j=h?-$[X]/2:0,le=v===$m?E[X]:$[X],Ee=v===$m?-$[X]:-E[X],G=t.elements.arrow,ue=h&&G?dD(G):{width:0,height:0},ge=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:CQ(),he=ge[z],Ne=ge[Q],Le=fb(0,E[X],ue[X]),qe=S?E[X]/2-j-Le-he-R.mainAxis:le-Le-he-R.mainAxis,rt=S?-E[X]/2+j+Le+Ne+R.mainAxis:Ee+Le+Ne+R.mainAxis,Me=t.elements.arrow&&_1(t.elements.arrow),Qe=Me?k==="y"?Me.clientTop||0:Me.clientLeft||0:0,ye=(V=B==null?void 0:B[k])!=null?V:0,ze=Z+qe-ye-Qe,$e=Z+rt-ye,He=fb(h?FS(Y,ze):Y,Z,h?Gf(q,$e):q);w[k]=He,U[k]=He-Z}if(s){var dt,Be=k==="x"?wa:ka,re=k==="x"?Ks:Js,ee=w[C],J=C==="y"?"height":"width",_e=ee+O[Be],Pe=ee-O[re],Ie=[wa,ka].indexOf(b)!==-1,ie=(dt=B==null?void 0:B[C])!=null?dt:0,de=Ie?_e:ee-E[J]-$[J]-ie+R.altAxis,ce=Ie?ee+E[J]+$[J]-ie-R.altAxis:Pe,Oe=h&&Ie?qfe(de,ee,ce):fb(h?de:_e,ee,h?ce:Pe);w[C]=Oe,U[C]=Oe-ee}t.modifiersData[r]=U}}const xpe={name:"preventOverflow",enabled:!0,phase:"main",fn:kpe,requiresIfExists:["offset"]};function Cpe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Ape(e){return e===ps(e)||!Vs(e)?pD(e):Cpe(e)}function _pe(e){var t=e.getBoundingClientRect(),n=Fm(t.width)/e.offsetWidth||1,r=Fm(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Rpe(e,t,n){n===void 0&&(n=!1);var r=Vs(t),i=Vs(t)&&_pe(t),o=Gd(t),a=Bm(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Cu(t)!=="body"||mD(o))&&(s=Ape(t)),Vs(t)?(l=Bm(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=hD(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Ipe(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function Npe(e){var t=Ipe(e);return Vfe.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function Dpe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Ppe(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 NB={placement:"bottom",modifiers:[],strategy:"absolute"};function DB(){for(var e=arguments.length,t=new Array(e),n=0;n{o||s(Fpe(i)||document.body)},[i,o]),Xr(()=>{if(a&&!o)return ly(n,a),()=>{ly(n,null)}},[n,a,o]),o){if(N.isValidElement(r)){const u={ref:l};return N.cloneElement(r,u)}return M.jsx(N.Fragment,{children:r})}return M.jsx(N.Fragment,{children:a&&S1.createPortal(r,a)})}),DQ="Popper";function Bpe(e){return EQ(DQ,e)}kfe(DQ,["root"]);const Upe=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],jpe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function zpe(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 p_(e){return typeof e=="function"?e():e}function Vpe(e){return e.nodeType!==void 0}const Hpe=()=>Ct({root:["root"]},Fde(Bpe)),Wpe={},Qpe=N.forwardRef(function(t,n){var r;const{anchorEl:i,children:o,direction:a,disablePortal:s,modifiers:l,open:u,placement:c,popperOptions:d,popperRef:p,slotProps:h={},slots:m={},TransitionProps:y}=t,O=Ge(t,Upe),b=N.useRef(null),v=yn(b,n),S=N.useRef(null),k=yn(S,p),C=N.useRef(k);Xr(()=>{C.current=k},[k]),N.useImperativeHandle(p,()=>S.current,[]);const w=zpe(c,a),[E,$]=N.useState(w),[D,R]=N.useState(p_(i));N.useEffect(()=>{S.current&&S.current.forceUpdate()}),N.useEffect(()=>{i&&R(p_(i))},[i]),Xr(()=>{if(!D||!u)return;const Q=Y=>{$(Y.placement)};let X=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:Y})=>{Q(Y)}}];l!=null&&(X=X.concat(l)),d&&d.modifiers!=null&&(X=X.concat(d.modifiers));const Z=$pe(D,b.current,L({placement:w},d,{modifiers:X}));return C.current(Z),()=>{Z.destroy(),C.current(null)}},[D,s,l,u,d,w]);const B={placement:E};y!==null&&(B.TransitionProps=y);const U=Hpe(),V=(r=m.root)!=null?r:"div",z=kn({elementType:V,externalSlotProps:h.root,externalForwardedProps:O,additionalProps:{role:"tooltip",ref:v},ownerState:t,className:U.root});return M.jsx(V,L({},z,{children:typeof o=="function"?o(B):o}))}),Ype=N.forwardRef(function(t,n){const{anchorEl:r,children:i,container:o,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:u,open:c,placement:d="bottom",popperOptions:p=Wpe,popperRef:h,style:m,transition:y=!1,slotProps:O={},slots:b={}}=t,v=Ge(t,jpe),[S,k]=N.useState(!0),C=()=>{k(!1)},w=()=>{k(!0)};if(!l&&!c&&(!y||S))return null;let E;if(o)E=o;else if(r){const R=p_(r);E=R&&Vpe(R)?Hr(R).body:Hr(null).body}const $=!c&&l&&(!y||S)?"none":void 0,D=y?{in:c,onEnter:C,onExited:w}:void 0;return M.jsx(NQ,{disablePortal:s,container:E,children:M.jsx(Qpe,L({anchorEl:r,direction:a,disablePortal:s,modifiers:u,ref:n,open:y?!S:c,placement:d,popperOptions:p,popperRef:h,slotProps:O,slots:b},v,{style:L({position:"fixed",top:0,left:0,display:$},m),TransitionProps:D,children:i}))})});function Gpe(e){const t=Hr(e);return t.body===e?Xs(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function hb(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function PB(e){return parseInt(Xs(e).getComputedStyle(e).paddingRight,10)||0}function qpe(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 LB(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,a=>{const s=o.indexOf(a)===-1,l=!qpe(a);s&&l&&hb(a,i)})}function yC(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function Zpe(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(Gpe(r)){const a=aQ(Hr(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${PB(r)+a}px`;const s=Hr(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${PB(l)+a}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=Hr(r).body;else{const a=r.parentElement,s=Xs(r);o=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach(({value:o,el:a,property:s})=>{o?a.style.setProperty(s,o):a.style.removeProperty(s)})}}function Xpe(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Kpe{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&&hb(t.modalRef,!1);const i=Xpe(n);LB(n,t.mount,t.modalRef,i,!0);const o=yC(this.containers,a=>a.container===n);return o!==-1?(this.containers[o].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=yC(this.containers,o=>o.modals.indexOf(t)!==-1),i=this.containers[r];i.restore||(i.restore=Zpe(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=yC(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(r,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&hb(t.modalRef,n),LB(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const a=o.modals[o.modals.length-1];a.modalRef&&hb(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Jpe(e){return typeof e=="function"?e():e}function ehe(e){return e?e.props.hasOwnProperty("in"):!1}const the=new Kpe;function nhe(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=the,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:d}=e,p=N.useRef({}),h=N.useRef(null),m=N.useRef(null),y=yn(m,d),[O,b]=N.useState(!c),v=ehe(l);let S=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(S=!1);const k=()=>Hr(h.current),C=()=>(p.current.modalRef=m.current,p.current.mount=h.current,p.current),w=()=>{i.mount(C(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},E=jt(()=>{const X=Jpe(t)||k().body;i.add(C(),X),m.current&&w()}),$=N.useCallback(()=>i.isTopModal(C()),[i]),D=jt(X=>{h.current=X,X&&(c&&$()?w():m.current&&hb(m.current,S))}),R=N.useCallback(()=>{i.remove(C(),S)},[S,i]);N.useEffect(()=>()=>{R()},[R]),N.useEffect(()=>{c?E():(!v||!o)&&R()},[c,R,v,o,E]);const B=X=>Z=>{var Y;(Y=X.onKeyDown)==null||Y.call(X,Z),!(Z.key!=="Escape"||Z.which===229||!$())&&(n||(Z.stopPropagation(),u&&u(Z,"escapeKeyDown")))},U=X=>Z=>{var Y;(Y=X.onClick)==null||Y.call(X,Z),Z.target===Z.currentTarget&&u&&u(Z,"backdropClick")};return{getRootProps:(X={})=>{const Z=db(e);delete Z.onTransitionEnter,delete Z.onTransitionExited;const Y=L({},Z,X);return L({role:"presentation"},Y,{onKeyDown:B(Y),ref:y})},getBackdropProps:(X={})=>{const Z=X;return L({"aria-hidden":!0},Z,{onClick:U(Z),open:c})},getTransitionProps:()=>{const X=()=>{b(!1),a&&a()},Z=()=>{b(!0),s&&s(),o&&R()};return{onEnter:NS(X,l==null?void 0:l.props.onEnter),onExited:NS(Z,l==null?void 0:l.props.onExited)}},rootRef:y,portalRef:D,isTopModal:$,exited:O,hasTransition:v}}const rhe=2;function PQ(e,t){return e-t}function MB(e,t){var n;const{index:r}=(n=e.reduce((i,o,a)=>{const s=Math.abs(t-o);return i===null||s({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},lhe=e=>e;let sv;function FB(){return sv===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?sv=CSS.supports("touch-action","none"):sv=!0),sv}function uhe(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:o=!1,marks:a=!1,max:s=100,min:l=0,name:u,onChange:c,onChangeCommitted:d,orientation:p="horizontal",rootRef:h,scale:m=lhe,step:y=1,tabIndex:O,value:b}=e,v=N.useRef(),[S,k]=N.useState(-1),[C,w]=N.useState(-1),[E,$]=N.useState(!1),D=N.useRef(0),[R,B]=qi({controlled:b,default:n??l,name:"Slider"}),U=c&&((ie,de,ce)=>{const Oe=ie.nativeEvent||ie,Se=new Oe.constructor(Oe.type,Oe);Object.defineProperty(Se,"target",{writable:!0,value:{value:de,name:u}}),c(Se,de,ce)}),V=Array.isArray(R);let z=V?R.slice().sort(PQ):[R];z=z.map(ie=>ie==null?l:ah(ie,l,s));const Q=a===!0&&y!==null?[...Array(Math.floor((s-l)/y)+1)].map((ie,de)=>({value:l+y*de})):a||[],X=Q.map(ie=>ie.value),{isFocusVisibleRef:Z,onBlur:Y,onFocus:q,ref:j}=jw(),[le,Ee]=N.useState(-1),G=N.useRef(),ue=yn(j,G),ge=yn(h,ue),he=ie=>de=>{var ce;const Oe=Number(de.currentTarget.getAttribute("data-index"));q(de),Z.current===!0&&Ee(Oe),w(Oe),ie==null||(ce=ie.onFocus)==null||ce.call(ie,de)},Ne=ie=>de=>{var ce;Y(de),Z.current===!1&&Ee(-1),w(-1),ie==null||(ce=ie.onBlur)==null||ce.call(ie,de)};Xr(()=>{if(r&&G.current.contains(document.activeElement)){var ie;(ie=document.activeElement)==null||ie.blur()}},[r]),r&&S!==-1&&k(-1),r&&le!==-1&&Ee(-1);const Le=ie=>de=>{var ce;(ce=ie.onChange)==null||ce.call(ie,de);const Oe=Number(de.currentTarget.getAttribute("data-index")),Se=z[Oe],nt=X.indexOf(Se);let pt=de.target.valueAsNumber;if(Q&&y==null){const kt=X[X.length-1];pt>kt?pt=kt:pt{const{current:ce}=G,{width:Oe,height:Se,bottom:nt,left:pt}=ce.getBoundingClientRect();let kt;rt.indexOf("vertical")===0?kt=(nt-ie.y)/Se:kt=(ie.x-pt)/Oe,rt.indexOf("-reverse")!==-1&&(kt=1-kt);let Ke;if(Ke=ihe(kt,l,s),y)Ke=ahe(Ke,y,l);else{const Ye=MB(X,Ke);Ke=X[Ye]}Ke=ah(Ke,l,s);let vt=0;if(V){de?vt=qe.current:vt=MB(z,Ke),i&&(Ke=ah(Ke,z[vt-1]||-1/0,z[vt+1]||1/0));const Ye=Ke;Ke=$B({values:z,newValue:Ke,index:vt}),i&&de||(vt=Ke.indexOf(Ye),qe.current=vt)}return{newValue:Ke,activeIndex:vt}},Qe=jt(ie=>{const de=iv(ie,v);if(!de)return;if(D.current+=1,ie.type==="mousemove"&&ie.buttons===0){ye(ie);return}const{newValue:ce,activeIndex:Oe}=Me({finger:de,move:!0});ov({sliderRef:G,activeIndex:Oe,setActive:k}),B(ce),!E&&D.current>rhe&&$(!0),U&&!av(ce,R)&&U(ie,ce,Oe)}),ye=jt(ie=>{const de=iv(ie,v);if($(!1),!de)return;const{newValue:ce}=Me({finger:de,move:!0});k(-1),ie.type==="touchend"&&w(-1),d&&d(ie,ce),v.current=void 0,$e()}),ze=jt(ie=>{if(r)return;FB()||ie.preventDefault();const de=ie.changedTouches[0];de!=null&&(v.current=de.identifier);const ce=iv(ie,v);if(ce!==!1){const{newValue:Se,activeIndex:nt}=Me({finger:ce});ov({sliderRef:G,activeIndex:nt,setActive:k}),B(Se),U&&!av(Se,R)&&U(ie,Se,nt)}D.current=0;const Oe=Hr(G.current);Oe.addEventListener("touchmove",Qe,{passive:!0}),Oe.addEventListener("touchend",ye,{passive:!0})}),$e=N.useCallback(()=>{const ie=Hr(G.current);ie.removeEventListener("mousemove",Qe),ie.removeEventListener("mouseup",ye),ie.removeEventListener("touchmove",Qe),ie.removeEventListener("touchend",ye)},[ye,Qe]);N.useEffect(()=>{const{current:ie}=G;return ie.addEventListener("touchstart",ze,{passive:FB()}),()=>{ie.removeEventListener("touchstart",ze),$e()}},[$e,ze]),N.useEffect(()=>{r&&$e()},[r,$e]);const He=ie=>de=>{var ce;if((ce=ie.onMouseDown)==null||ce.call(ie,de),r||de.defaultPrevented||de.button!==0)return;de.preventDefault();const Oe=iv(de,v);if(Oe!==!1){const{newValue:nt,activeIndex:pt}=Me({finger:Oe});ov({sliderRef:G,activeIndex:pt,setActive:k}),B(nt),U&&!av(nt,R)&&U(de,nt,pt)}D.current=0;const Se=Hr(G.current);Se.addEventListener("mousemove",Qe,{passive:!0}),Se.addEventListener("mouseup",ye)},dt=BS(V?z[0]:l,l,s),Be=BS(z[z.length-1],l,s)-dt,re=(ie={})=>{const de=db(ie),ce={onMouseDown:He(de||{})},Oe=L({},de,ce);return L({},ie,{ref:ge},Oe)},ee=ie=>de=>{var ce;(ce=ie.onMouseOver)==null||ce.call(ie,de);const Oe=Number(de.currentTarget.getAttribute("data-index"));w(Oe)},J=ie=>de=>{var ce;(ce=ie.onMouseLeave)==null||ce.call(ie,de),w(-1)};return{active:S,axis:rt,axisProps:she,dragging:E,focusedThumbIndex:le,getHiddenInputProps:(ie={})=>{var de;const ce=db(ie),Oe={onChange:Le(ce||{}),onFocus:he(ce||{}),onBlur:Ne(ce||{})},Se=L({},ce,Oe);return L({tabIndex:O,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":m(s),"aria-valuemin":m(l),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(de=e.step)!=null?de:void 0,disabled:r},ie,Se,{style:L({},rue,{direction:o?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:re,getThumbProps:(ie={})=>{const de=db(ie),ce={onMouseOver:ee(de||{}),onMouseLeave:J(de||{})};return L({},ie,de,ce)},marks:Q,open:C,range:V,rootRef:ge,trackLeap:Be,trackOffset:dt,values:z,getThumbStyle:ie=>({pointerEvents:S!==-1&&S!==ie?"none":void 0})}}const che=["onChange","maxRows","minRows","style","value"];function lv(e){return parseInt(e,10)||0}const dhe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function BB(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const LQ=N.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:o=1,style:a,value:s}=t,l=Ge(t,che),{current:u}=N.useRef(s!=null),c=N.useRef(null),d=yn(n,c),p=N.useRef(null),h=N.useRef(0),[m,y]=N.useState({outerHeightStyle:0}),O=N.useCallback(()=>{const k=c.current,w=Xs(k).getComputedStyle(k);if(w.width==="0px")return{outerHeightStyle:0};const E=p.current;E.style.width=w.width,E.value=k.value||t.placeholder||"x",E.value.slice(-1)===` -`&&(E.value+=" ");const $=w.boxSizing,D=lv(w.paddingBottom)+lv(w.paddingTop),R=lv(w.borderBottomWidth)+lv(w.borderTopWidth),B=E.scrollHeight;E.value="x";const U=E.scrollHeight;let V=B;o&&(V=Math.max(Number(o)*U,V)),i&&(V=Math.min(Number(i)*U,V)),V=Math.max(V,U);const z=V+($==="border-box"?D+R:0),Q=Math.abs(V-B)<=1;return{outerHeightStyle:z,overflow:Q}},[i,o,t.placeholder]),b=(k,C)=>{const{outerHeightStyle:w,overflow:E}=C;return h.current<20&&(w>0&&Math.abs((k.outerHeightStyle||0)-w)>1||k.overflow!==E)?(h.current+=1,{overflow:E,outerHeightStyle:w}):k},v=N.useCallback(()=>{const k=O();BB(k)||y(C=>b(C,k))},[O]);Xr(()=>{const k=()=>{const B=O();BB(B)||S1.flushSync(()=>{y(U=>b(U,B))})},C=()=>{h.current=0,k()};let w;const E=lg(C),$=c.current,D=Xs($);D.addEventListener("resize",E);let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(C),R.observe($)),()=>{E.clear(),cancelAnimationFrame(w),D.removeEventListener("resize",E),R&&R.disconnect()}},[O]),Xr(()=>{v()}),N.useEffect(()=>{h.current=0},[s]);const S=k=>{h.current=0,u||v(),r&&r(k)};return M.jsxs(N.Fragment,{children:[M.jsx("textarea",L({value:s,onChange:S,ref:d,rows:o,style:L({height:m.outerHeightStyle,overflow:m.overflow?"hidden":void 0},a)},l)),M.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:L({},dhe.shadow,a,{paddingTop:0,paddingBottom:0})})]})});function UB(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function fhe(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:i="any",stringify:o,trim:a=!1}=e;return(s,{inputValue:l,getOptionLabel:u})=>{let c=a?l.trim():l;n&&(c=c.toLowerCase()),t&&(c=UB(c));const d=c?s.filter(p=>{let h=(o||u)(p);return n&&(h=h.toLowerCase()),t&&(h=UB(h)),i==="start"?h.indexOf(c)===0:h.indexOf(c)>-1}):s;return typeof r=="number"?d.slice(0,r):d}}function OC(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 mhe(e){const{unstable_isActiveElementInListbox:t=hhe,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:i=!1,autoSelect:o=!1,blurOnSelect:a=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:l=!1,componentName:u="useAutocomplete",defaultValue:c=e.multiple?[]:null,disableClearable:d=!1,disableCloseOnSelect:p=!1,disabled:h,disabledItemsFocusable:m=!1,disableListWrap:y=!1,filterOptions:O=phe,filterSelectedOptions:b=!1,freeSolo:v=!1,getOptionDisabled:S,getOptionKey:k,getOptionLabel:C=Ue=>{var xe;return(xe=Ue.label)!=null?xe:Ue},groupBy:w,handleHomeEndKeys:E=!e.freeSolo,id:$,includeInputInList:D=!1,inputValue:R,isOptionEqualToValue:B=(Ue,xe)=>Ue===xe,multiple:U=!1,onChange:V,onClose:z,onHighlightChange:Q,onInputChange:X,onOpen:Z,open:Y,openOnFocus:q=!1,options:j,readOnly:le=!1,selectOnFocus:Ee=!e.freeSolo,value:G}=e,ue=Pl($);let ge=C;ge=Ue=>{const xe=C(Ue);return typeof xe!="string"?String(xe):xe};const he=N.useRef(!1),Ne=N.useRef(!0),Le=N.useRef(null),qe=N.useRef(null),[rt,Me]=N.useState(null),[Qe,ye]=N.useState(-1),ze=i?0:-1,$e=N.useRef(ze),[He,dt]=qi({controlled:G,default:c,name:u}),[Be,re]=qi({controlled:R,default:"",name:u,state:"inputValue"}),[ee,J]=N.useState(!1),_e=N.useCallback((Ue,xe)=>{if(!(U?He.length!(b&&(U?He:[He]).some(xe=>xe!==null&&B(Ue,xe)))),{inputValue:ce&&ie?"":Be,getOptionLabel:ge}):[],nt=eue({filteredOptions:Se,value:He,inputValue:Be});N.useEffect(()=>{const Ue=He!==nt.value;ee&&!Ue||v&&!Ue||_e(null,He)},[He,_e,ee,nt.value,v]);const pt=Pe&&Se.length>0&&!le,kt=jt(Ue=>{Ue===-1?Le.current.focus():rt.querySelector(`[data-tag-index="${Ue}"]`).focus()});N.useEffect(()=>{U&&Qe>He.length-1&&(ye(-1),kt(-1))},[He,U,Qe,kt]);function Ke(Ue,xe){if(!qe.current||Ue<0||Ue>=Se.length)return-1;let mt=Ue;for(;;){const Nt=qe.current.querySelector(`[data-option-index="${mt}"]`),en=m?!1:!Nt||Nt.disabled||Nt.getAttribute("aria-disabled")==="true";if(Nt&&Nt.hasAttribute("tabindex")&&!en)return mt;if(xe==="next"?mt=(mt+1)%Se.length:mt=(mt-1+Se.length)%Se.length,mt===Ue)return-1}}const vt=jt(({event:Ue,index:xe,reason:mt="auto"})=>{if($e.current=xe,xe===-1?Le.current.removeAttribute("aria-activedescendant"):Le.current.setAttribute("aria-activedescendant",`${ue}-option-${xe}`),Q&&Q(Ue,xe===-1?null:Se[xe],mt),!qe.current)return;const Nt=qe.current.querySelector(`[role="option"].${n}-focused`);Nt&&(Nt.classList.remove(`${n}-focused`),Nt.classList.remove(`${n}-focusVisible`));let en=qe.current;if(qe.current.getAttribute("role")!=="listbox"&&(en=qe.current.parentElement.querySelector('[role="listbox"]')),!en)return;if(xe===-1){en.scrollTop=0;return}const Mn=qe.current.querySelector(`[data-option-index="${xe}"]`);if(Mn&&(Mn.classList.add(`${n}-focused`),mt==="keyboard"&&Mn.classList.add(`${n}-focusVisible`),en.scrollHeight>en.clientHeight&&mt!=="mouse"&&mt!=="touch")){const Nn=Mn,Xt=en.clientHeight+en.scrollTop,gn=Nn.offsetTop+Nn.offsetHeight;gn>Xt?en.scrollTop=gn-en.clientHeight:Nn.offsetTop-Nn.offsetHeight*(w?1.3:0){if(!Oe)return;const Mn=Ke((()=>{const Nn=Se.length-1;if(xe==="reset")return ze;if(xe==="start")return 0;if(xe==="end")return Nn;const Xt=$e.current+xe;return Xt<0?Xt===-1&&D?-1:y&&$e.current!==-1||Math.abs(xe)>1?0:Nn:Xt>Nn?Xt===Nn+1&&D?-1:y||Math.abs(xe)>1?Nn:0:Xt})(),mt);if(vt({index:Mn,reason:Nt,event:Ue}),r&&xe!=="reset")if(Mn===-1)Le.current.value=Be;else{const Nn=ge(Se[Mn]);Le.current.value=Nn,Nn.toLowerCase().indexOf(Be.toLowerCase())===0&&Be.length>0&&Le.current.setSelectionRange(Be.length,Nn.length)}}),it=()=>{const Ue=(xe,mt)=>{const Nt=xe?ge(xe):"",en=mt?ge(mt):"";return Nt===en};if($e.current!==-1&&nt.filteredOptions&&nt.filteredOptions.length!==Se.length&&nt.inputValue===Be&&(U?He.length===nt.value.length&&nt.value.every((xe,mt)=>ge(He[mt])===ge(xe)):Ue(nt.value,He))){const xe=nt.filteredOptions[$e.current];if(xe&&Se.some(Nt=>ge(Nt)===ge(xe)))return!0}return!1},Et=N.useCallback(()=>{if(!Oe||it())return;const Ue=U?He[0]:He;if(Se.length===0||Ue==null){Ye({diff:"reset"});return}if(qe.current){if(Ue!=null){const xe=Se[$e.current];if(U&&xe&&OC(He,Nt=>B(xe,Nt))!==-1)return;const mt=OC(Se,Nt=>B(Nt,Ue));mt===-1?Ye({diff:"reset"}):vt({index:mt});return}if($e.current>=Se.length-1){vt({index:Se.length-1});return}vt({index:$e.current})}},[Se.length,U?!1:He,b,Ye,vt,Oe,Be,U]),Dt=jt(Ue=>{ly(qe,Ue),Ue&&Et()});N.useEffect(()=>{Et()},[Et]);const rn=Ue=>{Pe||(Ie(!0),de(!0),Z&&Z(Ue))},cn=(Ue,xe)=>{Pe&&(Ie(!1),z&&z(Ue,xe))},fn=(Ue,xe,mt,Nt)=>{if(U){if(He.length===xe.length&&He.every((en,Mn)=>en===xe[Mn]))return}else if(He===xe)return;V&&V(Ue,xe,mt,Nt),dt(xe)},zn=N.useRef(!1),ve=(Ue,xe,mt="selectOption",Nt="options")=>{let en=mt,Mn=xe;if(U){Mn=Array.isArray(He)?He.slice():[];const Nn=OC(Mn,Xt=>B(xe,Xt));Nn===-1?Mn.push(xe):Nt!=="freeSolo"&&(Mn.splice(Nn,1),en="removeOption")}_e(Ue,Mn),fn(Ue,Mn,en,{option:xe}),!p&&(!Ue||!Ue.ctrlKey&&!Ue.metaKey)&&cn(Ue,en),(a===!0||a==="touch"&&zn.current||a==="mouse"&&!zn.current)&&Le.current.blur()};function Ae(Ue,xe){if(Ue===-1)return-1;let mt=Ue;for(;;){if(xe==="next"&&mt===He.length||xe==="previous"&&mt===-1)return-1;const Nt=rt.querySelector(`[data-tag-index="${mt}"]`);if(!Nt||!Nt.hasAttribute("tabindex")||Nt.disabled||Nt.getAttribute("aria-disabled")==="true")mt+=xe==="next"?1:-1;else return mt}}const fe=(Ue,xe)=>{if(!U)return;Be===""&&cn(Ue,"toggleInput");let mt=Qe;Qe===-1?Be===""&&xe==="previous"&&(mt=He.length-1):(mt+=xe==="next"?1:-1,mt<0&&(mt=0),mt===He.length&&(mt=-1)),mt=Ae(mt,xe),ye(mt),kt(mt)},lt=Ue=>{he.current=!0,re(""),X&&X(Ue,"","clear"),fn(Ue,U?[]:null,"clear")},at=Ue=>xe=>{if(Ue.onKeyDown&&Ue.onKeyDown(xe),!xe.defaultMuiPrevented&&(Qe!==-1&&["ArrowLeft","ArrowRight"].indexOf(xe.key)===-1&&(ye(-1),kt(-1)),xe.which!==229))switch(xe.key){case"Home":Oe&&E&&(xe.preventDefault(),Ye({diff:"start",direction:"next",reason:"keyboard",event:xe}));break;case"End":Oe&&E&&(xe.preventDefault(),Ye({diff:"end",direction:"previous",reason:"keyboard",event:xe}));break;case"PageUp":xe.preventDefault(),Ye({diff:-jB,direction:"previous",reason:"keyboard",event:xe}),rn(xe);break;case"PageDown":xe.preventDefault(),Ye({diff:jB,direction:"next",reason:"keyboard",event:xe}),rn(xe);break;case"ArrowDown":xe.preventDefault(),Ye({diff:1,direction:"next",reason:"keyboard",event:xe}),rn(xe);break;case"ArrowUp":xe.preventDefault(),Ye({diff:-1,direction:"previous",reason:"keyboard",event:xe}),rn(xe);break;case"ArrowLeft":fe(xe,"previous");break;case"ArrowRight":fe(xe,"next");break;case"Enter":if($e.current!==-1&&Oe){const mt=Se[$e.current],Nt=S?S(mt):!1;if(xe.preventDefault(),Nt)return;ve(xe,mt,"selectOption"),r&&Le.current.setSelectionRange(Le.current.value.length,Le.current.value.length)}else v&&Be!==""&&ce===!1&&(U&&xe.preventDefault(),ve(xe,Be,"createOption","freeSolo"));break;case"Escape":Oe?(xe.preventDefault(),xe.stopPropagation(),cn(xe,"escape")):l&&(Be!==""||U&&He.length>0)&&(xe.preventDefault(),xe.stopPropagation(),lt(xe));break;case"Backspace":if(U&&!le&&Be===""&&He.length>0){const mt=Qe===-1?He.length-1:Qe,Nt=He.slice();Nt.splice(mt,1),fn(xe,Nt,"removeOption",{option:He[mt]})}break;case"Delete":if(U&&!le&&Be===""&&He.length>0&&Qe!==-1){const mt=Qe,Nt=He.slice();Nt.splice(mt,1),fn(xe,Nt,"removeOption",{option:He[mt]})}break}},Mt=Ue=>{J(!0),q&&!he.current&&rn(Ue)},$t=Ue=>{if(t(qe)){Le.current.focus();return}J(!1),Ne.current=!0,he.current=!1,o&&$e.current!==-1&&Oe?ve(Ue,Se[$e.current],"blur"):o&&v&&Be!==""?ve(Ue,Be,"blur","freeSolo"):s&&_e(Ue,He),cn(Ue,"blur")},It=Ue=>{const xe=Ue.target.value;Be!==xe&&(re(xe),de(!1),X&&X(Ue,xe,"input")),xe===""?!d&&!U&&fn(Ue,null,"clear"):rn(Ue)},xt=Ue=>{const xe=Number(Ue.currentTarget.getAttribute("data-option-index"));$e.current!==xe&&vt({event:Ue,index:xe,reason:"mouse"})},qt=Ue=>{vt({event:Ue,index:Number(Ue.currentTarget.getAttribute("data-option-index")),reason:"touch"}),zn.current=!0},Re=Ue=>{const xe=Number(Ue.currentTarget.getAttribute("data-option-index"));ve(Ue,Se[xe],"selectOption"),zn.current=!1},Te=Ue=>xe=>{const mt=He.slice();mt.splice(Ue,1),fn(xe,mt,"removeOption",{option:He[Ue]})},We=Ue=>{Pe?cn(Ue,"toggleInput"):rn(Ue)},ot=Ue=>{Ue.currentTarget.contains(Ue.target)&&Ue.target.getAttribute("id")!==ue&&Ue.preventDefault()},nn=Ue=>{Ue.currentTarget.contains(Ue.target)&&(Le.current.focus(),Ee&&Ne.current&&Le.current.selectionEnd-Le.current.selectionStart===0&&Le.current.select(),Ne.current=!1)},Wt=Ue=>{!h&&(Be===""||!Pe)&&We(Ue)};let hn=v&&Be.length>0;hn=hn||(U?He.length>0:He!==null);let tr=Se;return w&&(tr=Se.reduce((Ue,xe,mt)=>{const Nt=w(xe);return Ue.length>0&&Ue[Ue.length-1].group===Nt?Ue[Ue.length-1].options.push(xe):Ue.push({key:mt,index:mt,group:Nt,options:[xe]}),Ue},[])),h&&ee&&$t(),{getRootProps:(Ue={})=>L({"aria-owns":pt?`${ue}-listbox`:null},Ue,{onKeyDown:at(Ue),onMouseDown:ot,onClick:nn}),getInputLabelProps:()=>({id:`${ue}-label`,htmlFor:ue}),getInputProps:()=>({id:ue,value:Be,onBlur:$t,onFocus:Mt,onChange:It,onMouseDown:Wt,"aria-activedescendant":Oe?"":null,"aria-autocomplete":r?"both":"list","aria-controls":pt?`${ue}-listbox`:void 0,"aria-expanded":pt,autoComplete:"off",ref:Le,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:h}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:lt}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:We}),getTagProps:({index:Ue})=>L({key:Ue,"data-tag-index":Ue,tabIndex:-1},!le&&{onDelete:Te(Ue)}),getListboxProps:()=>({role:"listbox",id:`${ue}-listbox`,"aria-labelledby":`${ue}-label`,ref:Dt,onMouseDown:Ue=>{Ue.preventDefault()}}),getOptionProps:({index:Ue,option:xe})=>{var mt;const Nt=(U?He:[He]).some(Mn=>Mn!=null&&B(xe,Mn)),en=S?S(xe):!1;return{key:(mt=k==null?void 0:k(xe))!=null?mt:ge(xe),tabIndex:-1,role:"option",id:`${ue}-option-${Ue}`,onMouseMove:xt,onClick:Re,onTouchStart:qt,"data-option-index":Ue,"aria-disabled":en,"aria-selected":Nt}},id:ue,inputValue:Be,value:He,dirty:hn,expanded:Oe&&rt,popupOpen:Oe,focused:ee||Qe!==-1,anchorEl:rt,setAnchorEl:Me,focusedTag:Qe,groupedOptions:tr}}const ghe=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],bhe=ke(Ype,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),yhe=N.forwardRef(function(t,n){var r;const i=Zw(),o=gt({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:l,componentsProps:u,container:c,disablePortal:d,keepMounted:p,modifiers:h,open:m,placement:y,popperOptions:O,popperRef:b,transition:v,slots:S,slotProps:k}=o,C=Ge(o,ghe),w=(r=S==null?void 0:S.root)!=null?r:l==null?void 0:l.Root,E=L({anchorEl:a,container:c,disablePortal:d,keepMounted:p,modifiers:h,open:m,placement:y,popperOptions:O,popperRef:b,transition:v},C);return M.jsx(bhe,L({as:s,direction:i==null?void 0:i.direction,slots:{root:w},slotProps:k??u},E,{ref:n}))}),R1=yhe;function Ohe(e){return At("MuiListSubheader",e)}_t("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const vhe=["className","color","component","disableGutters","disableSticky","inset"],Ehe=e=>{const{classes:t,color:n,disableGutters:r,inset:i,disableSticky:o}=e,a={root:["root",n!=="default"&&`color${tt(n)}`,!r&&"gutters",i&&"inset",!o&&"sticky"]};return Ct(a,Ohe,t)},She=ke("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${tt(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>L({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),MQ=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiListSubheader"}),{className:i,color:o="default",component:a="li",disableGutters:s=!1,disableSticky:l=!1,inset:u=!1}=r,c=Ge(r,vhe),d=L({},r,{color:o,component:a,disableGutters:s,disableSticky:l,inset:u}),p=Ehe(d);return M.jsx(She,L({as:a,className:et(p.root,i),ref:n,ownerState:d},c))});MQ.muiSkipListHighlight=!0;const The=MQ,whe=Ti(M.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 khe(e){return At("MuiChip",e)}const xhe=_t("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),nr=xhe,Che=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],Ahe=e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:o,onDelete:a,clickable:s,variant:l}=e,u={root:["root",l,n&&"disabled",`size${tt(r)}`,`color${tt(i)}`,s&&"clickable",s&&`clickableColor${tt(i)}`,a&&"deletable",a&&`deletableColor${tt(i)}`,`${l}${tt(i)}`],label:["label",`label${tt(r)}`],avatar:["avatar",`avatar${tt(r)}`,`avatarColor${tt(i)}`],icon:["icon",`icon${tt(r)}`,`iconColor${tt(o)}`],deleteIcon:["deleteIcon",`deleteIcon${tt(r)}`,`deleteIconColor${tt(i)}`,`deleteIcon${tt(l)}Color${tt(i)}`]};return Ct(u,khe,t)},_he=ke("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:o,onDelete:a,size:s,variant:l}=n;return[{[`& .${nr.avatar}`]:t.avatar},{[`& .${nr.avatar}`]:t[`avatar${tt(s)}`]},{[`& .${nr.avatar}`]:t[`avatarColor${tt(r)}`]},{[`& .${nr.icon}`]:t.icon},{[`& .${nr.icon}`]:t[`icon${tt(s)}`]},{[`& .${nr.icon}`]:t[`iconColor${tt(i)}`]},{[`& .${nr.deleteIcon}`]:t.deleteIcon},{[`& .${nr.deleteIcon}`]:t[`deleteIcon${tt(s)}`]},{[`& .${nr.deleteIcon}`]:t[`deleteIconColor${tt(r)}`]},{[`& .${nr.deleteIcon}`]:t[`deleteIcon${tt(l)}Color${tt(r)}`]},t.root,t[`size${tt(s)}`],t[`color${tt(r)}`],o&&t.clickable,o&&r!=="default"&&t[`clickableColor${tt(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${tt(r)}`],t[l],t[`${l}${tt(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return L({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${nr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${nr.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${nr.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${nr.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${nr.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${nr.icon}`]:L({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&L({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${nr.deleteIcon}`]:L({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:un(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)`:un(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)`:un(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&&{[`&.${nr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:un(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${nr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>L({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:un(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${nr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:un(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, &.${nr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>L({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${nr.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${nr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${nr.avatar}`]:{marginLeft:4},[`& .${nr.avatarSmall}`]:{marginLeft:2},[`& .${nr.icon}`]:{marginLeft:4},[`& .${nr.iconSmall}`]:{marginLeft:2},[`& .${nr.deleteIcon}`]:{marginRight:5},[`& .${nr.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)`:un(e.palette[t.color].main,.7)}`,[`&.${nr.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:un(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${nr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:un(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${nr.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:un(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),Rhe=ke("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${tt(r)}`]]}})(({ownerState:e})=>L({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function zB(e){return e.key==="Backspace"||e.key==="Delete"}const Ihe=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiChip"}),{avatar:i,className:o,clickable:a,color:s="default",component:l,deleteIcon:u,disabled:c=!1,icon:d,label:p,onClick:h,onDelete:m,onKeyDown:y,onKeyUp:O,size:b="medium",variant:v="filled",tabIndex:S,skipFocusWhenDisabled:k=!1}=r,C=Ge(r,Che),w=N.useRef(null),E=yn(w,n),$=q=>{q.stopPropagation(),m&&m(q)},D=q=>{q.currentTarget===q.target&&zB(q)&&q.preventDefault(),y&&y(q)},R=q=>{q.currentTarget===q.target&&(m&&zB(q)?m(q):q.key==="Escape"&&w.current&&w.current.blur()),O&&O(q)},B=a!==!1&&h?!0:a,U=B||m?fs:l||"div",V=L({},r,{component:U,disabled:c,size:b,color:s,iconColor:N.isValidElement(d)&&d.props.color||s,onDelete:!!m,clickable:B,variant:v}),z=Ahe(V),Q=U===fs?L({component:l||"div",focusVisibleClassName:z.focusVisible},m&&{disableRipple:!0}):{};let X=null;m&&(X=u&&N.isValidElement(u)?N.cloneElement(u,{className:et(u.props.className,z.deleteIcon),onClick:$}):M.jsx(whe,{className:et(z.deleteIcon),onClick:$}));let Z=null;i&&N.isValidElement(i)&&(Z=N.cloneElement(i,{className:et(z.avatar,i.props.className)}));let Y=null;return d&&N.isValidElement(d)&&(Y=N.cloneElement(d,{className:et(z.icon,d.props.className)})),M.jsxs(_he,L({as:U,className:et(z.root,o),disabled:B&&c?!0:void 0,onClick:h,onKeyDown:D,onKeyUp:R,ref:E,tabIndex:k&&c?-1:S,ownerState:V},Q,C,{children:[Z||Y,M.jsx(Rhe,{className:et(z.label),ownerState:V,children:p}),X]}))}),gD=Ihe;function qd({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 Nhe=N.createContext(void 0),rk=Nhe;function _u(){return N.useContext(rk)}function $Q(e){return M.jsx(nce,L({},e,{defaultTheme:Jw,themeId:np}))}function VB(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function US(e,t=!1){return e&&(VB(e.value)&&e.value!==""||t&&VB(e.defaultValue)&&e.defaultValue!=="")}function Dhe(e){return e.startAdornment}function Phe(e){return At("MuiInputBase",e)}const Lhe=_t("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Xa=Lhe,Mhe=["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"],ik=(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${tt(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},ok=(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]},$he=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:o,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:h,type:m}=e,y={root:["root",`color${tt(n)}`,r&&"disabled",i&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&p!=="medium"&&`size${tt(p)}`,c&&"multiline",h&&"adornedStart",o&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",m==="search"&&"inputTypeSearch",c&&"inputMultiline",p==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",o&&"inputAdornedEnd",d&&"readOnly"]};return Ct(y,Phe,t)},ak=ke("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ik})(({theme:e,ownerState:t})=>L({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Xa.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&L({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),sk=ke("input",{name:"MuiInputBase",slot:"Input",overridesResolver:ok})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=L({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),i={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return L({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Xa.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Xa.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"})}),Fhe=M.jsx($Q,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Bhe=N.forwardRef(function(t,n){var r;const i=gt({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:s,className:l,components:u={},componentsProps:c={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:h,endAdornment:m,fullWidth:y=!1,id:O,inputComponent:b="input",inputProps:v={},inputRef:S,maxRows:k,minRows:C,multiline:w=!1,name:E,onBlur:$,onChange:D,onClick:R,onFocus:B,onKeyDown:U,onKeyUp:V,placeholder:z,readOnly:Q,renderSuffix:X,rows:Z,slotProps:Y={},slots:q={},startAdornment:j,type:le="text",value:Ee}=i,G=Ge(i,Mhe),ue=v.value!=null?v.value:Ee,{current:ge}=N.useRef(ue!=null),he=N.useRef(),Ne=N.useCallback(Oe=>{},[]),Le=yn(he,S,v.ref,Ne),[qe,rt]=N.useState(!1),Me=_u(),Qe=qd({props:i,muiFormControl:Me,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Qe.focused=Me?Me.focused:qe,N.useEffect(()=>{!Me&&p&&qe&&(rt(!1),$&&$())},[Me,p,qe,$]);const ye=Me&&Me.onFilled,ze=Me&&Me.onEmpty,$e=N.useCallback(Oe=>{US(Oe)?ye&&ye():ze&&ze()},[ye,ze]);Xr(()=>{ge&&$e({value:ue})},[ue,$e,ge]);const He=Oe=>{if(Qe.disabled){Oe.stopPropagation();return}B&&B(Oe),v.onFocus&&v.onFocus(Oe),Me&&Me.onFocus?Me.onFocus(Oe):rt(!0)},dt=Oe=>{$&&$(Oe),v.onBlur&&v.onBlur(Oe),Me&&Me.onBlur?Me.onBlur(Oe):rt(!1)},Be=(Oe,...Se)=>{if(!ge){const nt=Oe.target||he.current;if(nt==null)throw new Error(Dd(1));$e({value:nt.value})}v.onChange&&v.onChange(Oe,...Se),D&&D(Oe,...Se)};N.useEffect(()=>{$e(he.current)},[]);const re=Oe=>{he.current&&Oe.currentTarget===Oe.target&&he.current.focus(),R&&R(Oe)};let ee=b,J=v;w&&ee==="input"&&(Z?J=L({type:void 0,minRows:Z,maxRows:Z},J):J=L({type:void 0,maxRows:k,minRows:C},J),ee=LQ);const _e=Oe=>{$e(Oe.animationName==="mui-auto-fill-cancel"?he.current:{value:"x"})};N.useEffect(()=>{Me&&Me.setAdornedStart(!!j)},[Me,j]);const Pe=L({},i,{color:Qe.color||"primary",disabled:Qe.disabled,endAdornment:m,error:Qe.error,focused:Qe.focused,formControl:Me,fullWidth:y,hiddenLabel:Qe.hiddenLabel,multiline:w,size:Qe.size,startAdornment:j,type:le}),Ie=$he(Pe),ie=q.root||u.Root||ak,de=Y.root||c.root||{},ce=q.input||u.Input||sk;return J=L({},J,(r=Y.input)!=null?r:c.input),M.jsxs(N.Fragment,{children:[!h&&Fhe,M.jsxs(ie,L({},de,!Su(ie)&&{ownerState:L({},Pe,de.ownerState)},{ref:n,onClick:re},G,{className:et(Ie.root,de.className,l,Q&&"MuiInputBase-readOnly"),children:[j,M.jsx(rk.Provider,{value:null,children:M.jsx(ce,L({ownerState:Pe,"aria-invalid":Qe.error,"aria-describedby":o,autoComplete:a,autoFocus:s,defaultValue:d,disabled:Qe.disabled,id:O,onAnimationStart:_e,name:E,placeholder:z,readOnly:Q,required:Qe.required,rows:Z,value:ue,onKeyDown:U,onKeyUp:V,type:le},J,!Su(ce)&&{as:ee,ownerState:L({},Pe,J.ownerState)},{ref:Le,className:et(Ie.input,J.className,Q&&"MuiInputBase-readOnly"),onBlur:dt,onChange:Be,onFocus:He}))}),m,X?X(L({},Qe,{startAdornment:j})):null]}))]})}),bD=Bhe;function Uhe(e){return At("MuiInput",e)}const jhe=L({},Xa,_t("MuiInput",["root","underline","input"])),Xc=jhe;function zhe(e){return At("MuiOutlinedInput",e)}const Vhe=L({},Xa,_t("MuiOutlinedInput",["root","notchedOutline","input"])),eu=Vhe;function Hhe(e){return At("MuiFilledInput",e)}const Whe=L({},Xa,_t("MuiFilledInput",["root","underline","input"])),Ka=Whe,FQ=Ti(M.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function Qhe(e){return At("MuiAutocomplete",e)}const Yhe=_t("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),Fn=Yhe;var HB,WB;const Ghe=["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"],qhe=["ref"],Zhe=["key"],Xhe=e=>{const{classes:t,disablePortal:n,expanded:r,focused:i,fullWidth:o,hasClearIcon:a,hasPopupIcon:s,inputFocused:l,popupOpen:u,size:c}=e,d={root:["root",r&&"expanded",i&&"focused",o&&"fullWidth",a&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${tt(c)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Ct(d,Qhe,t)},Khe=ke("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:i,hasPopupIcon:o,inputFocused:a,size:s}=n;return[{[`& .${Fn.tag}`]:t.tag},{[`& .${Fn.tag}`]:t[`tagSize${tt(s)}`]},{[`& .${Fn.inputRoot}`]:t.inputRoot},{[`& .${Fn.input}`]:t.input},{[`& .${Fn.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,o&&t.hasPopupIcon,i&&t.hasClearIcon]}})(({ownerState:e})=>L({[`&.${Fn.focused} .${Fn.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Fn.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${Fn.tag}`]:L({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${Fn.inputRoot}`]:{flexWrap:"wrap",[`.${Fn.hasPopupIcon}&, .${Fn.hasClearIcon}&`]:{paddingRight:30},[`.${Fn.hasPopupIcon}.${Fn.hasClearIcon}&`]:{paddingRight:56},[`& .${Fn.input}`]:{width:0,minWidth:30}},[`& .${Xc.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Xc.root}.${Xa.sizeSmall}`]:{[`& .${Xc.input}`]:{padding:"2px 4px 3px 0"}},[`& .${eu.root}`]:{padding:9,[`.${Fn.hasPopupIcon}&, .${Fn.hasClearIcon}&`]:{paddingRight:39},[`.${Fn.hasPopupIcon}.${Fn.hasClearIcon}&`]:{paddingRight:65},[`& .${Fn.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Fn.endAdornment}`]:{right:9}},[`& .${eu.root}.${Xa.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Fn.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Ka.root}`]:{paddingTop:19,paddingLeft:8,[`.${Fn.hasPopupIcon}&, .${Fn.hasClearIcon}&`]:{paddingRight:39},[`.${Fn.hasPopupIcon}.${Fn.hasClearIcon}&`]:{paddingRight:65},[`& .${Ka.input}`]:{padding:"7px 4px"},[`& .${Fn.endAdornment}`]:{right:9}},[`& .${Ka.root}.${Xa.sizeSmall}`]:{paddingBottom:1,[`& .${Ka.input}`]:{padding:"2.5px 4px"}},[`& .${Xa.hiddenLabel}`]:{paddingTop:8},[`& .${Ka.root}.${Xa.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Fn.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Ka.root}.${Xa.hiddenLabel}.${Xa.sizeSmall}`]:{[`& .${Fn.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Fn.input}`]:L({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),Jhe=ke("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),eme=ke(Ia,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),tme=ke(Ia,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>L({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>L({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),nme=ke(R1,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Fn.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>L({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),rme=ke(Ra,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>L({},e.typography.body1,{overflow:"auto"})),ime=ke("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),ome=ke("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),ame=ke("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Fn.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Fn.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Fn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:un(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Fn.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:un(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:un(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),sme=ke(The,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),lme=ke("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Fn.option}`]:{paddingLeft:24}}),ume=N.forwardRef(function(t,n){var r,i,o,a;const s=gt({props:t,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:u=!1,autoSelect:c=!1,blurOnSelect:d=!1,ChipProps:p,className:h,clearIcon:m=HB||(HB=M.jsx(ufe,{fontSize:"small"})),clearOnBlur:y=!s.freeSolo,clearOnEscape:O=!1,clearText:b="Clear",closeText:v="Close",componentsProps:S={},defaultValue:k=s.multiple?[]:null,disableClearable:C=!1,disableCloseOnSelect:w=!1,disabled:E=!1,disabledItemsFocusable:$=!1,disableListWrap:D=!1,disablePortal:R=!1,filterSelectedOptions:B=!1,forcePopupIcon:U="auto",freeSolo:V=!1,fullWidth:z=!1,getLimitTagsText:Q=xe=>`+${xe}`,getOptionLabel:X,groupBy:Z,handleHomeEndKeys:Y=!s.freeSolo,includeInputInList:q=!1,limitTags:j=-1,ListboxComponent:le="ul",ListboxProps:Ee,loading:G=!1,loadingText:ue="Loading…",multiple:ge=!1,noOptionsText:he="No options",openOnFocus:Ne=!1,openText:Le="Open",PaperComponent:qe=Ra,PopperComponent:rt=R1,popupIcon:Me=WB||(WB=M.jsx(FQ,{})),readOnly:Qe=!1,renderGroup:ye,renderInput:ze,renderOption:$e,renderTags:He,selectOnFocus:dt=!s.freeSolo,size:Be="medium",slotProps:re={}}=s,ee=Ge(s,Ghe),{getRootProps:J,getInputProps:_e,getInputLabelProps:Pe,getPopupIndicatorProps:Ie,getClearProps:ie,getTagProps:de,getListboxProps:ce,getOptionProps:Oe,value:Se,dirty:nt,expanded:pt,id:kt,popupOpen:Ke,focused:vt,focusedTag:Ye,anchorEl:it,setAnchorEl:Et,inputValue:Dt,groupedOptions:rn}=mhe(L({},s,{componentName:"Autocomplete"})),cn=!C&&!E&&nt&&!Qe,fn=(!V||U===!0)&&U!==!1,{onMouseDown:zn}=_e(),{ref:ve}=Ee??{},Ae=ce(),{ref:fe}=Ae,lt=Ge(Ae,qhe),at=yn(fe,ve),$t=X||(xe=>{var mt;return(mt=xe.label)!=null?mt:xe}),It=L({},s,{disablePortal:R,expanded:pt,focused:vt,fullWidth:z,getOptionLabel:$t,hasClearIcon:cn,hasPopupIcon:fn,inputFocused:Ye===-1,popupOpen:Ke,size:Be}),xt=Xhe(It);let qt;if(ge&&Se.length>0){const xe=mt=>L({className:xt.tag,disabled:E},de(mt));He?qt=He(Se,xe,It):qt=Se.map((mt,Nt)=>M.jsx(gD,L({label:$t(mt),size:Be},xe({index:Nt}),p)))}if(j>-1&&Array.isArray(qt)){const xe=qt.length-j;!vt&&xe>0&&(qt=qt.splice(0,j),qt.push(M.jsx("span",{className:xt.tag,children:Q(xe)},qt.length)))}const Te=ye||(xe=>M.jsxs("li",{children:[M.jsx(sme,{className:xt.groupLabel,ownerState:It,component:"div",children:xe.group}),M.jsx(lme,{className:xt.groupUl,ownerState:It,children:xe.children})]},xe.key)),ot=$e||((xe,mt)=>{const{key:Nt}=xe,en=Ge(xe,Zhe);return M.jsx("li",L({},en,{children:$t(mt)}),Nt)}),nn=(xe,mt)=>{const Nt=Oe({option:xe,index:mt});return ot(L({},Nt,{className:xt.option}),xe,{selected:Nt["aria-selected"],index:mt,inputValue:Dt},It)},Wt=(r=re.clearIndicator)!=null?r:S.clearIndicator,hn=(i=re.paper)!=null?i:S.paper,tr=(o=re.popper)!=null?o:S.popper,Ue=(a=re.popupIndicator)!=null?a:S.popupIndicator;return M.jsxs(N.Fragment,{children:[M.jsx(Khe,L({ref:n,className:et(xt.root,h),ownerState:It},J(ee),{children:ze({id:kt,disabled:E,fullWidth:!0,size:Be==="small"?"small":void 0,InputLabelProps:Pe(),InputProps:L({ref:Et,className:xt.inputRoot,startAdornment:qt,onClick:xe=>{xe.target===xe.currentTarget&&zn(xe)}},(cn||fn)&&{endAdornment:M.jsxs(Jhe,{className:xt.endAdornment,ownerState:It,children:[cn?M.jsx(eme,L({},ie(),{"aria-label":b,title:b,ownerState:It},Wt,{className:et(xt.clearIndicator,Wt==null?void 0:Wt.className),children:m})):null,fn?M.jsx(tme,L({},Ie(),{disabled:E,"aria-label":Ke?v:Le,title:Ke?v:Le,ownerState:It},Ue,{className:et(xt.popupIndicator,Ue==null?void 0:Ue.className),children:Me})):null]})}),inputProps:L({className:xt.input,disabled:E,readOnly:Qe},_e())})})),it?M.jsx(nme,L({as:rt,disablePortal:R,style:{width:it?it.clientWidth:null},ownerState:It,role:"presentation",anchorEl:it,open:Ke},tr,{className:et(xt.popper,tr==null?void 0:tr.className),children:M.jsxs(rme,L({ownerState:It,as:qe},hn,{className:et(xt.paper,hn==null?void 0:hn.className),children:[G&&rn.length===0?M.jsx(ime,{className:xt.loading,ownerState:It,children:ue}):null,rn.length===0&&!V&&!G?M.jsx(ome,{className:xt.noOptions,ownerState:It,role:"presentation",onMouseDown:xe=>{xe.preventDefault()},children:he}):null,rn.length>0?M.jsx(ame,L({as:le,className:xt.listbox,ownerState:It},lt,Ee,{ref:at,children:rn.map((xe,mt)=>Z?Te({key:xe.key,group:xe.group,children:xe.options.map((Nt,en)=>nn(Nt,xe.index+en))}):nn(xe,mt))})):null]}))})):null]})}),cme=ume,dme=Ti(M.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 fme(e){return At("MuiAvatar",e)}_t("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const pme=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],hme=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Ct({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},fme,t)},mme=ke("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e,ownerState:t})=>L({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.variant==="square"&&{borderRadius:0},t.colorDefault&&L({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600]}))),gme=ke("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),bme=ke(dme,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function yme({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,o]=N.useState(!1);return N.useEffect(()=>{if(!n&&!r)return;o(!1);let a=!0;const s=new Image;return s.onload=()=>{a&&o("loaded")},s.onerror=()=>{a&&o("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=n,r&&(s.srcset=r),()=>{a=!1}},[e,t,n,r]),i}const Ome=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiAvatar"}),{alt:i,children:o,className:a,component:s="div",imgProps:l,sizes:u,src:c,srcSet:d,variant:p="circular"}=r,h=Ge(r,pme);let m=null;const y=yme(L({},l,{src:c,srcSet:d})),O=c||d,b=O&&y!=="error",v=L({},r,{colorDefault:!b,component:s,variant:p}),S=hme(v);return b?m=M.jsx(gme,L({alt:i,srcSet:d,src:c,sizes:u,ownerState:v,className:S.img},l)):o!=null?m=o:O&&i?m=i[0]:m=M.jsx(bme,{ownerState:v,className:S.fallback}),M.jsx(mme,L({as:s,ownerState:v,className:et(S.root,a),ref:n},h,{children:m}))}),BQ=Ome,vme=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Eme={entering:{opacity:1},entered:{opacity:1}},Sme=N.forwardRef(function(t,n){const r=bi(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:s,easing:l,in:u,onEnter:c,onEntered:d,onEntering:p,onExit:h,onExited:m,onExiting:y,style:O,timeout:b=i,TransitionComponent:v=ek}=t,S=Ge(t,vme),k=N.useRef(null),C=yn(k,s.ref,n),w=z=>Q=>{if(z){const X=k.current;Q===void 0?z(X):z(X,Q)}},E=w(p),$=w((z,Q)=>{lD(z);const X=Mm({style:O,timeout:b,easing:l},{mode:"enter"});z.style.webkitTransition=r.transitions.create("opacity",X),z.style.transition=r.transitions.create("opacity",X),c&&c(z,Q)}),D=w(d),R=w(y),B=w(z=>{const Q=Mm({style:O,timeout:b,easing:l},{mode:"exit"});z.style.webkitTransition=r.transitions.create("opacity",Q),z.style.transition=r.transitions.create("opacity",Q),h&&h(z)}),U=w(m),V=z=>{o&&o(k.current,z)};return M.jsx(v,L({appear:a,in:u,nodeRef:k,onEnter:$,onEntered:D,onEntering:E,onExit:B,onExited:U,onExiting:R,addEndListener:V,timeout:b},S,{children:(z,Q)=>N.cloneElement(s,L({style:L({opacity:0,visibility:z==="exited"&&!u?"hidden":void 0},Eme[z],O,s.props.style),ref:C},Q))}))}),cg=Sme;function Tme(e){return At("MuiBackdrop",e)}_t("MuiBackdrop",["root","invisible"]);const wme=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],kme=e=>{const{classes:t,invisible:n}=e;return Ct({root:["root",n&&"invisible"]},Tme,t)},xme=ke("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>L({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Cme=N.forwardRef(function(t,n){var r,i,o;const a=gt({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:u="div",components:c={},componentsProps:d={},invisible:p=!1,open:h,slotProps:m={},slots:y={},TransitionComponent:O=cg,transitionDuration:b}=a,v=Ge(a,wme),S=L({},a,{component:u,invisible:p}),k=kme(S),C=(r=m.root)!=null?r:d.root;return M.jsx(O,L({in:h,timeout:b},v,{children:M.jsx(xme,L({"aria-hidden":!0},C,{as:(i=(o=y.root)!=null?o:c.Root)!=null?i:u,className:et(k.root,l,C==null?void 0:C.className),ownerState:L({},S,C==null?void 0:C.ownerState),classes:k,ref:n,children:s}))}))}),yD=Cme,Ame=_t("MuiBox",["root"]),_me=Ame,Rme=tD(),Ime=ace({themeId:np,defaultTheme:Rme,defaultClassName:_me.root,generateClassName:WN.generate}),xa=Ime;function Nme(e){return At("MuiButton",e)}const Dme=_t("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),uv=Dme,Pme=N.createContext({}),Lme=Pme,Mme=N.createContext(void 0),$me=Mme,Fme=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Bme=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:a}=e,s={root:["root",o,`${o}${tt(t)}`,`size${tt(i)}`,`${o}Size${tt(i)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${tt(i)}`],endIcon:["endIcon",`iconSize${tt(i)}`]},l=Ct(s,Nme,a);return L({},a,l)},UQ=e=>L({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),Ume=ke(fs,{shouldForwardProp:e=>Xi(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${tt(n.color)}`],t[`size${tt(n.size)}`],t[`${n.variant}Size${tt(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const i=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],o=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return L({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":L({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:un(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})`:un(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})`:un(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":L({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${uv.focusVisible}`]:L({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${uv.disabled}`]:L({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${un(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"},[`&.${uv.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${uv.disabled}`]:{boxShadow:"none"}}),jme=ke("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${tt(n.size)}`]]}})(({ownerState:e})=>L({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},UQ(e))),zme=ke("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${tt(n.size)}`]]}})(({ownerState:e})=>L({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},UQ(e))),Vme=N.forwardRef(function(t,n){const r=N.useContext(Lme),i=N.useContext($me),o=zw(r,t),a=gt({props:o,name:"MuiButton"}),{children:s,color:l="primary",component:u="button",className:c,disabled:d=!1,disableElevation:p=!1,disableFocusRipple:h=!1,endIcon:m,focusVisibleClassName:y,fullWidth:O=!1,size:b="medium",startIcon:v,type:S,variant:k="text"}=a,C=Ge(a,Fme),w=L({},a,{color:l,component:u,disabled:d,disableElevation:p,disableFocusRipple:h,fullWidth:O,size:b,type:S,variant:k}),E=Bme(w),$=v&&M.jsx(jme,{className:E.startIcon,ownerState:w,children:v}),D=m&&M.jsx(zme,{className:E.endIcon,ownerState:w,children:m}),R=i||"";return M.jsxs(Ume,L({ownerState:w,className:et(r.className,E.root,c,R),component:u,disabled:d,focusRipple:!h,focusVisibleClassName:et(E.focusVisible,y),ref:n,type:S},C,{classes:E,children:[$,s,D]}))}),Af=Vme;function Hme(e){return At("MuiCard",e)}_t("MuiCard",["root"]);const Wme=["className","raised"],Qme=e=>{const{classes:t}=e;return Ct({root:["root"]},Hme,t)},Yme=ke(Ra,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),Gme=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiCard"}),{className:i,raised:o=!1}=r,a=Ge(r,Wme),s=L({},r,{raised:o}),l=Qme(s);return M.jsx(Yme,L({className:et(l.root,i),elevation:o?8:void 0,ref:n,ownerState:s},a))}),qme=Gme;function Zme(e){return At("MuiCardActionArea",e)}const Xme=_t("MuiCardActionArea",["root","focusVisible","focusHighlight"]),vC=Xme,Kme=["children","className","focusVisibleClassName"],Jme=e=>{const{classes:t}=e;return Ct({root:["root"],focusHighlight:["focusHighlight"]},Zme,t)},ege=ke(fs,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${vC.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${vC.focusVisible} .${vC.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}})),tge=ke("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})})),nge=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiCardActionArea"}),{children:i,className:o,focusVisibleClassName:a}=r,s=Ge(r,Kme),l=r,u=Jme(l);return M.jsxs(ege,L({className:et(u.root,o),focusVisibleClassName:et(a,u.focusVisible),ref:n,ownerState:l},s,{children:[i,M.jsx(tge,{className:u.focusHighlight,ownerState:l})]}))}),rge=nge;function ige(e){return At("MuiCardContent",e)}_t("MuiCardContent",["root"]);const oge=["className","component"],age=e=>{const{classes:t}=e;return Ct({root:["root"]},ige,t)},sge=ke("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),lge=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiCardContent"}),{className:i,component:o="div"}=r,a=Ge(r,oge),s=L({},r,{component:o}),l=age(s);return M.jsx(sge,L({as:o,className:et(l.root,i),ownerState:s,ref:n},a))}),uge=lge;function cge(e){return At("PrivateSwitchBase",e)}_t("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const dge=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],fge=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&`edge${tt(i)}`],input:["input"]};return Ct(o,cge,t)},pge=ke(fs)(({ownerState:e})=>L({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),hge=ke("input",{shouldForwardProp:Xi})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),mge=N.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:o,className:a,defaultChecked:s,disabled:l,disableFocusRipple:u=!1,edge:c=!1,icon:d,id:p,inputProps:h,inputRef:m,name:y,onBlur:O,onChange:b,onFocus:v,readOnly:S,required:k=!1,tabIndex:C,type:w,value:E}=t,$=Ge(t,dge),[D,R]=qi({controlled:i,default:!!s,name:"SwitchBase",state:"checked"}),B=_u(),U=q=>{v&&v(q),B&&B.onFocus&&B.onFocus(q)},V=q=>{O&&O(q),B&&B.onBlur&&B.onBlur(q)},z=q=>{if(q.nativeEvent.defaultPrevented)return;const j=q.target.checked;R(j),b&&b(q,j)};let Q=l;B&&typeof Q>"u"&&(Q=B.disabled);const X=w==="checkbox"||w==="radio",Z=L({},t,{checked:D,disabled:Q,disableFocusRipple:u,edge:c}),Y=fge(Z);return M.jsxs(pge,L({component:"span",className:et(Y.root,a),centerRipple:!0,focusRipple:!u,disabled:Q,tabIndex:null,role:void 0,onFocus:U,onBlur:V,ownerState:Z,ref:n},$,{children:[M.jsx(hge,L({autoFocus:r,checked:i,defaultChecked:s,className:Y.input,disabled:Q,id:X?p:void 0,name:y,onChange:z,readOnly:S,ref:m,required:k,ownerState:Z,tabIndex:C,type:w},w==="checkbox"&&E===void 0?{}:{value:E},h)),D?o:d]}))}),OD=mge,gge=Ti(M.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"),bge=Ti(M.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"),yge=Ti(M.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 Oge(e){return At("MuiCheckbox",e)}const vge=_t("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),EC=vge,Ege=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Sge=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,o={root:["root",n&&"indeterminate",`color${tt(r)}`,`size${tt(i)}`]},a=Ct(o,Oge,t);return L({},t,a)},Tge=ke(OD,{shouldForwardProp:e=>Xi(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${tt(n.size)}`],n.color!=="default"&&t[`color${tt(n.color)}`]]}})(({theme:e,ownerState:t})=>L({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:un(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${EC.checked}, &.${EC.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${EC.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),wge=M.jsx(bge,{}),kge=M.jsx(gge,{}),xge=M.jsx(yge,{}),Cge=N.forwardRef(function(t,n){var r,i;const o=gt({props:t,name:"MuiCheckbox"}),{checkedIcon:a=wge,color:s="primary",icon:l=kge,indeterminate:u=!1,indeterminateIcon:c=xge,inputProps:d,size:p="medium",className:h}=o,m=Ge(o,Ege),y=u?c:l,O=u?c:a,b=L({},o,{color:s,indeterminate:u,size:p}),v=Sge(b);return M.jsx(Tge,L({type:"checkbox",inputProps:L({"data-indeterminate":u},d),icon:N.cloneElement(y,{fontSize:(r=y.props.fontSize)!=null?r:p}),checkedIcon:N.cloneElement(O,{fontSize:(i=O.props.fontSize)!=null?i:p}),ownerState:b,ref:n,className:et(v.root,h)},m,{classes:v}))}),lk=Cge;function Age(e){return At("MuiCircularProgress",e)}_t("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const _ge=["className","color","disableShrink","size","style","thickness","value","variant"];let uk=e=>e,QB,YB,GB,qB;const Mc=44,Rge=w1(QB||(QB=uk` +`),Ns.rippleVisible,_fe,I_,({theme:e})=>e.transitions.easing.easeInOut,Ns.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Ns.child,Ns.childLeaving,Rfe,I_,({theme:e})=>e.transitions.easing.easeInOut,Ns.childPulsate,Ife,({theme:e})=>e.transitions.easing.easeInOut),Pfe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:a}=r,s=Ge(r,Cfe),[l,u]=I.useState([]),c=I.useRef(0),d=I.useRef(null);I.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const p=I.useRef(!1),h=I.useRef(0),m=I.useRef(null),b=I.useRef(null);I.useEffect(()=>()=>{h.current&&clearTimeout(h.current)},[]);const O=I.useCallback(k=>{const{pulsate:C,rippleX:w,rippleY:E,rippleSize:$,cb:N}=k;u(R=>[...R,M.jsx(Nfe,{classes:{ripple:Je(o.ripple,Ns.ripple),rippleVisible:Je(o.rippleVisible,Ns.rippleVisible),ripplePulsate:Je(o.ripplePulsate,Ns.ripplePulsate),child:Je(o.child,Ns.child),childLeaving:Je(o.childLeaving,Ns.childLeaving),childPulsate:Je(o.childPulsate,Ns.childPulsate)},timeout:I_,pulsate:C,rippleX:w,rippleY:E,rippleSize:$},c.current)]),c.current+=1,d.current=N},[o]),y=I.useCallback((k={},C={},w=()=>{})=>{const{pulsate:E=!1,center:$=i||C.pulsate,fakeElement:N=!1}=C;if((k==null?void 0:k.type)==="mousedown"&&p.current){p.current=!1;return}(k==null?void 0:k.type)==="touchstart"&&(p.current=!0);const R=N?null:b.current,B=R?R.getBoundingClientRect():{width:0,height:0,left:0,top:0};let U,V,z;if($||k===void 0||k.clientX===0&&k.clientY===0||!k.clientX&&!k.touches)U=Math.round(B.width/2),V=Math.round(B.height/2);else{const{clientX:W,clientY:X}=k.touches&&k.touches.length>0?k.touches[0]:k;U=Math.round(W-B.left),V=Math.round(X-B.top)}if($)z=Math.sqrt((2*B.width**2+B.height**2)/3),z%2===0&&(z+=1);else{const W=Math.max(Math.abs((R?R.clientWidth:0)-U),U)*2+2,X=Math.max(Math.abs((R?R.clientHeight:0)-V),V)*2+2;z=Math.sqrt(W**2+X**2)}k!=null&&k.touches?m.current===null&&(m.current=()=>{O({pulsate:E,rippleX:U,rippleY:V,rippleSize:z,cb:w})},h.current=setTimeout(()=>{m.current&&(m.current(),m.current=null)},Afe)):O({pulsate:E,rippleX:U,rippleY:V,rippleSize:z,cb:w})},[i,O]),v=I.useCallback(()=>{y({},{pulsate:!0})},[y]),S=I.useCallback((k,C)=>{if(clearTimeout(h.current),(k==null?void 0:k.type)==="touchend"&&m.current){m.current(),m.current=null,h.current=setTimeout(()=>{S(k,C)});return}m.current=null,u(w=>w.length>0?w.slice(1):w),d.current=C},[]);return I.useImperativeHandle(n,()=>({pulsate:v,start:y,stop:S}),[v,y,S]),M.jsx(Dfe,P({className:Je(Ns.root,o.root,a),ref:b},s,{children:M.jsx(xN,{component:null,exit:!0,children:l})}))}),Lfe=Pfe;function Mfe(e){return At("MuiButtonBase",e)}const $fe=_t("MuiButtonBase",["root","disabled","focusVisible"]),Ffe=["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"],Bfe=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=kt({root:["root",t&&"disabled",n&&"focusVisible"]},Mfe,i);return n&&r&&(a.root+=` ${r}`),a},Ufe=Se("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"},[`&.${$fe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),jfe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:a,className:s,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:h="a",onBlur:m,onClick:b,onContextMenu:O,onDragLeave:y,onFocus:v,onFocusVisible:S,onKeyDown:k,onKeyUp:C,onMouseDown:w,onMouseLeave:E,onMouseUp:$,onTouchEnd:N,onTouchMove:R,onTouchStart:B,tabIndex:U=0,TouchRippleProps:V,touchRippleRef:z,type:W}=r,X=Ge(r,Ffe),q=I.useRef(null),Y=I.useRef(null),Z=yn(Y,z),{isFocusVisibleRef:j,onFocus:se,onBlur:ve,ref:G}=rk(),[ce,ge]=I.useState(!1);u&&ce&&ge(!1),I.useImperativeHandle(i,()=>({focusVisible:()=>{ge(!0),q.current.focus()}}),[]);const[ue,xe]=I.useState(!1);I.useEffect(()=>{xe(!0)},[]);const Ne=ue&&!c&&!u;I.useEffect(()=>{ce&&p&&!c&&ue&&Y.current.pulsate()},[c,p,ce,ue]);function Ve(Te,rt,pt=d){return jt(xt=>(rt&&rt(xt),!pt&&Y.current&&Y.current[Te](xt),!0))}const Ke=Ve("start",w),Me=Ve("stop",O),Ye=Ve("stop",y),ye=Ve("stop",$),ze=Ve("stop",Te=>{ce&&Te.preventDefault(),E&&E(Te)}),$e=Ve("start",B),We=Ve("stop",N),dt=Ve("stop",R),Be=Ve("stop",Te=>{ve(Te),j.current===!1&&ge(!1),m&&m(Te)},!1),re=jt(Te=>{q.current||(q.current=Te.currentTarget),se(Te),j.current===!0&&(ge(!0),S&&S(Te)),v&&v(Te)}),ee=()=>{const Te=q.current;return l&&l!=="button"&&!(Te.tagName==="A"&&Te.href)},J=I.useRef(!1),Re=jt(Te=>{p&&!J.current&&ce&&Y.current&&Te.key===" "&&(J.current=!0,Y.current.stop(Te,()=>{Y.current.start(Te)})),Te.target===Te.currentTarget&&ee()&&Te.key===" "&&Te.preventDefault(),k&&k(Te),Te.target===Te.currentTarget&&ee()&&Te.key==="Enter"&&!u&&(Te.preventDefault(),b&&b(Te))}),Le=jt(Te=>{p&&Te.key===" "&&Y.current&&ce&&!Te.defaultPrevented&&(J.current=!1,Y.current.stop(Te,()=>{Y.current.pulsate(Te)})),C&&C(Te),b&&Te.target===Te.currentTarget&&ee()&&Te.key===" "&&!Te.defaultPrevented&&b(Te)});let De=l;De==="button"&&(X.href||X.to)&&(De=h);const ie={};De==="button"?(ie.type=W===void 0?"button":W,ie.disabled=u):(!X.href&&!X.to&&(ie.role="button"),u&&(ie["aria-disabled"]=u));const fe=yn(n,G,q),de=P({},r,{centerRipple:o,component:l,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:U,focusVisible:ce}),Oe=Bfe(de);return M.jsxs(Ufe,P({as:De,className:Je(Oe.root,s),ownerState:de,onBlur:Be,onClick:b,onContextMenu:Me,onFocus:re,onKeyDown:Re,onKeyUp:Le,onMouseDown:Ke,onMouseLeave:ze,onMouseUp:ye,onDragLeave:Ye,onTouchEnd:We,onTouchMove:dt,onTouchStart:$e,ref:fe,tabIndex:u?-1:U,type:W},ie,X,{children:[a,Ne?M.jsx(Lfe,P({ref:Z,center:o},V)):null]}))}),hs=jfe;function zfe(e){return At("MuiIconButton",e)}const Vfe=_t("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Hfe=["edge","children","className","color","disabled","disableFocusRipple","size"],Wfe=e=>{const{classes:t,disabled:n,color:r,edge:i,size:o}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${nt(r)}`,i&&`edge${nt(i)}`,`size${nt(o)}`]};return kt(a,zfe,t)},Qfe=Se(hs,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${nt(n.color)}`],n.edge&&t[`edge${nt(n.edge)}`],t[`size${nt(n.size)}`]]}})(({theme:e,ownerState:t})=>P({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return P({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&P({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":P({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${Vfe.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Yfe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiIconButton"}),{edge:i=!1,children:o,className:a,color:s="default",disabled:l=!1,disableFocusRipple:u=!1,size:c="medium"}=r,d=Ge(r,Hfe),p=P({},r,{edge:i,color:s,disabled:l,disableFocusRipple:u,size:c}),h=Wfe(p);return M.jsx(Qfe,P({className:Je(h.root,a),centerRipple:!0,focusRipple:!u,disabled:l,ref:n,ownerState:p},d,{children:o}))}),Na=Yfe,Gfe=wi(M.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 qfe(e){return At("MuiTypography",e)}_t("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Zfe=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Xfe=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e,s={root:["root",o,e.align!=="inherit"&&`align${nt(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return kt(s,qfe,a)},Kfe=Se("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${nt(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>P({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})),VB={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Jfe={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},epe=e=>Jfe[e]||e,tpe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiTypography"}),i=epe(r.color),o=pk(P({},r,{color:i})),{align:a="inherit",className:s,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:d=!1,variant:p="body1",variantMapping:h=VB}=o,m=Ge(o,Zfe),b=P({},o,{align:a,color:i,className:s,component:l,gutterBottom:u,noWrap:c,paragraph:d,variant:p,variantMapping:h}),O=l||(d?"p":h[p]||VB[p])||"span",y=Xfe(b);return M.jsx(Kfe,P({as:O,ref:n,ownerState:b,className:Je(y.root,s)},m))}),Lr=tpe;function npe(e){return At("MuiAppBar",e)}_t("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const rpe=["className","color","enableColorOnDark","position"],ipe=e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${nt(t)}`,`position${nt(n)}`]};return kt(i,npe,r)},gv=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,ope=Se(Da,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${nt(n.position)}`],t[`color${nt(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return P({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&&P({},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"&&P({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&P({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:gv(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:gv(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:gv(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:gv(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),ape=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiAppBar"}),{className:i,color:o="primary",enableColorOnDark:a=!1,position:s="fixed"}=r,l=Ge(r,rpe),u=P({},r,{color:o,position:s,enableColorOnDark:a}),c=ipe(u);return M.jsx(ope,P({square:!0,component:"header",ownerState:u,elevation:4,className:Je(c.root,i,s==="fixed"&&"mui-fixed"),ref:n},l))}),spe=ape,YQ="base";function lpe(e){return`${YQ}--${e}`}function upe(e,t){return`${YQ}-${e}-${t}`}function GQ(e,t){const n=NQ[t];return n?lpe(n):upe(e,t)}function cpe(e,t){const n={};return t.forEach(r=>{n[r]=GQ(e,r)}),n}function HB(e){return e.substring(2).toLowerCase()}function dpe(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const c=yn(t.ref,s),d=jt(m=>{const b=u.current;u.current=!1;const O=br(s.current);if(!l.current||!s.current||"clientX"in m&&dpe(m,O))return;if(a.current){a.current=!1;return}let y;m.composedPath?y=m.composedPath().indexOf(s.current)>-1:y=!O.documentElement.contains(m.target)||s.current.contains(m.target),!y&&(n||!b)&&i(m)}),p=m=>b=>{u.current=!0;const O=t.props[m];O&&O(b)},h={ref:c};return o!==!1&&(h[o]=p(o)),I.useEffect(()=>{if(o!==!1){const m=HB(o),b=br(s.current),O=()=>{a.current=!0};return b.addEventListener(m,d),b.addEventListener("touchmove",O),()=>{b.removeEventListener(m,d),b.removeEventListener("touchmove",O)}}},[d,o]),r!==!1&&(h[r]=p(r)),I.useEffect(()=>{if(r!==!1){const m=HB(r),b=br(s.current);return b.addEventListener(m,d),()=>{b.removeEventListener(m,d)}}},[d,r]),M.jsx(I.Fragment,{children:I.cloneElement(t,h)})}const ppe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function hpe(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 mpe(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 gpe(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||mpe(e))}function bpe(e){const t=[],n=[];return Array.from(e.querySelectorAll(ppe)).forEach((r,i)=>{const o=hpe(r);o===-1||!gpe(r)||(o===0?t.push(r):n.push({documentOrder:i,tabIndex:o,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function ype(){return!0}function qQ(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=bpe,isEnabled:a=ype,open:s}=e,l=I.useRef(!1),u=I.useRef(null),c=I.useRef(null),d=I.useRef(null),p=I.useRef(null),h=I.useRef(!1),m=I.useRef(null),b=yn(t.ref,m),O=I.useRef(null);I.useEffect(()=>{!s||!m.current||(h.current=!n)},[n,s]),I.useEffect(()=>{if(!s||!m.current)return;const S=br(m.current);return m.current.contains(S.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),h.current&&m.current.focus()),()=>{i||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),I.useEffect(()=>{if(!s||!m.current)return;const S=br(m.current),k=E=>{O.current=E,!(r||!a()||E.key!=="Tab")&&S.activeElement===m.current&&E.shiftKey&&(l.current=!0,c.current&&c.current.focus())},C=()=>{const E=m.current;if(E===null)return;if(!S.hasFocus()||!a()||l.current){l.current=!1;return}if(E.contains(S.activeElement)||r&&S.activeElement!==u.current&&S.activeElement!==c.current)return;if(S.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!h.current)return;let $=[];if((S.activeElement===u.current||S.activeElement===c.current)&&($=o(m.current)),$.length>0){var N,R;const B=!!((N=O.current)!=null&&N.shiftKey&&((R=O.current)==null?void 0:R.key)==="Tab"),U=$[0],V=$[$.length-1];typeof U!="string"&&typeof V!="string"&&(B?V.focus():U.focus())}else E.focus()};S.addEventListener("focusin",C),S.addEventListener("keydown",k,!0);const w=setInterval(()=>{S.activeElement&&S.activeElement.tagName==="BODY"&&C()},50);return()=>{clearInterval(w),S.removeEventListener("focusin",C),S.removeEventListener("keydown",k,!0)}},[n,r,i,a,s,o]);const y=S=>{d.current===null&&(d.current=S.relatedTarget),h.current=!0,p.current=S.target;const k=t.props.onFocus;k&&k(S)},v=S=>{d.current===null&&(d.current=S.relatedTarget),h.current=!0};return M.jsxs(I.Fragment,{children:[M.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),I.cloneElement(t,{ref:b,onFocus:y}),M.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}var xa="top",el="bottom",tl="right",Ca="left",AN="auto",z1=[xa,el,tl,Ca],Ym="start",Sy="end",Ope="clippingParents",ZQ="viewport",h0="popper",vpe="reference",WB=z1.reduce(function(e,t){return e.concat([t+"-"+Ym,t+"-"+Sy])},[]),XQ=[].concat(z1,[AN]).reduce(function(e,t){return e.concat([t,t+"-"+Ym,t+"-"+Sy])},[]),Epe="beforeRead",Spe="read",Tpe="afterRead",wpe="beforeMain",kpe="main",xpe="afterMain",Cpe="beforeWrite",Ape="write",_pe="afterWrite",Rpe=[Epe,Spe,Tpe,wpe,kpe,xpe,Cpe,Ape,_pe];function Ru(e){return e?(e.nodeName||"").toLowerCase():null}function ms(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function gp(e){var t=ms(e).Element;return e instanceof t||e instanceof Element}function Ws(e){var t=ms(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function _N(e){if(typeof ShadowRoot>"u")return!1;var t=ms(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Ipe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!Ws(o)||!Ru(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function Dpe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,u){return l[u]="",l},{});!Ws(i)||!Ru(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const Npe={name:"applyStyles",enabled:!0,phase:"write",fn:Ipe,effect:Dpe,requires:["computeStyles"]};function xu(e){return e.split("-")[0]}var op=Math.max,eT=Math.min,Gm=Math.round;function D_(){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 KQ(){return!/^((?!chrome|android).)*safari/i.test(D_())}function qm(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Ws(e)&&(i=e.offsetWidth>0&&Gm(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Gm(r.height)/e.offsetHeight||1);var a=gp(e)?ms(e):window,s=a.visualViewport,l=!KQ()&&n,u=(r.left+(l&&s?s.offsetLeft:0))/i,c=(r.top+(l&&s?s.offsetTop:0))/o,d=r.width/i,p=r.height/o;return{width:d,height:p,top:c,right:u+d,bottom:c+p,left:u,x:u,y:c}}function RN(e){var t=qm(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 JQ(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&_N(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function vc(e){return ms(e).getComputedStyle(e)}function Ppe(e){return["table","td","th"].indexOf(Ru(e))>=0}function rf(e){return((gp(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ok(e){return Ru(e)==="html"?e:e.assignedSlot||e.parentNode||(_N(e)?e.host:null)||rf(e)}function QB(e){return!Ws(e)||vc(e).position==="fixed"?null:e.offsetParent}function Lpe(e){var t=/firefox/i.test(D_()),n=/Trident/i.test(D_());if(n&&Ws(e)){var r=vc(e);if(r.position==="fixed")return null}var i=Ok(e);for(_N(i)&&(i=i.host);Ws(i)&&["html","body"].indexOf(Ru(i))<0;){var o=vc(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function V1(e){for(var t=ms(e),n=QB(e);n&&Ppe(n)&&vc(n).position==="static";)n=QB(n);return n&&(Ru(n)==="html"||Ru(n)==="body"&&vc(n).position==="static")?t:n||Lpe(e)||t}function IN(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Tb(e,t,n){return op(e,eT(t,n))}function Mpe(e,t,n){var r=Tb(e,t,n);return r>n?n:r}function eY(){return{top:0,right:0,bottom:0,left:0}}function tY(e){return Object.assign({},eY(),e)}function nY(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var $pe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,tY(typeof t!="number"?t:nY(t,z1))};function Fpe(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=xu(n.placement),l=IN(s),u=[Ca,tl].indexOf(s)>=0,c=u?"height":"width";if(!(!o||!a)){var d=$pe(i.padding,n),p=RN(o),h=l==="y"?xa:Ca,m=l==="y"?el:tl,b=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],O=a[l]-n.rects.reference[l],y=V1(o),v=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,S=b/2-O/2,k=d[h],C=v-p[c]-d[m],w=v/2-p[c]/2+S,E=Tb(k,w,C),$=l;n.modifiersData[r]=(t={},t[$]=E,t.centerOffset=E-w,t)}}function Bpe(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)||JQ(t.elements.popper,i)&&(t.elements.arrow=i))}const Upe={name:"arrow",enabled:!0,phase:"main",fn:Fpe,effect:Bpe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Zm(e){return e.split("-")[1]}var jpe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function zpe(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Gm(n*i)/i||0,y:Gm(r*i)/i||0}}function YB(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=a.x,h=p===void 0?0:p,m=a.y,b=m===void 0?0:m,O=typeof c=="function"?c({x:h,y:b}):{x:h,y:b};h=O.x,b=O.y;var y=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),S=Ca,k=xa,C=window;if(u){var w=V1(n),E="clientHeight",$="clientWidth";if(w===ms(n)&&(w=rf(n),vc(w).position!=="static"&&s==="absolute"&&(E="scrollHeight",$="scrollWidth")),w=w,i===xa||(i===Ca||i===tl)&&o===Sy){k=el;var N=d&&w===C&&C.visualViewport?C.visualViewport.height:w[E];b-=N-r.height,b*=l?1:-1}if(i===Ca||(i===xa||i===el)&&o===Sy){S=tl;var R=d&&w===C&&C.visualViewport?C.visualViewport.width:w[$];h-=R-r.width,h*=l?1:-1}}var B=Object.assign({position:s},u&&jpe),U=c===!0?zpe({x:h,y:b},ms(n)):{x:h,y:b};if(h=U.x,b=U.y,l){var V;return Object.assign({},B,(V={},V[k]=v?"0":"",V[S]=y?"0":"",V.transform=(C.devicePixelRatio||1)<=1?"translate("+h+"px, "+b+"px)":"translate3d("+h+"px, "+b+"px, 0)",V))}return Object.assign({},B,(t={},t[k]=v?b+"px":"",t[S]=y?h+"px":"",t.transform="",t))}function Vpe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:xu(t.placement),variation:Zm(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,YB(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,YB(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 Hpe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Vpe,data:{}};var bv={passive:!0};function Wpe(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,l=ms(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(c){c.addEventListener("scroll",n.update,bv)}),s&&l.addEventListener("resize",n.update,bv),function(){o&&u.forEach(function(c){c.removeEventListener("scroll",n.update,bv)}),s&&l.removeEventListener("resize",n.update,bv)}}const Qpe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Wpe,data:{}};var Ype={left:"right",right:"left",bottom:"top",top:"bottom"};function FE(e){return e.replace(/left|right|bottom|top/g,function(t){return Ype[t]})}var Gpe={start:"end",end:"start"};function GB(e){return e.replace(/start|end/g,function(t){return Gpe[t]})}function DN(e){var t=ms(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function NN(e){return qm(rf(e)).left+DN(e).scrollLeft}function qpe(e,t){var n=ms(e),r=rf(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var u=KQ();(u||!u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+NN(e),y:l}}function Zpe(e){var t,n=rf(e),r=DN(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=op(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=op(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+NN(e),l=-r.scrollTop;return vc(i||n).direction==="rtl"&&(s+=op(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function PN(e){var t=vc(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function rY(e){return["html","body","#document"].indexOf(Ru(e))>=0?e.ownerDocument.body:Ws(e)&&PN(e)?e:rY(Ok(e))}function wb(e,t){var n;t===void 0&&(t=[]);var r=rY(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=ms(r),a=i?[o].concat(o.visualViewport||[],PN(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(wb(Ok(a)))}function N_(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Xpe(e,t){var n=qm(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 qB(e,t,n){return t===ZQ?N_(qpe(e,n)):gp(t)?Xpe(t,n):N_(Zpe(rf(e)))}function Kpe(e){var t=wb(Ok(e)),n=["absolute","fixed"].indexOf(vc(e).position)>=0,r=n&&Ws(e)?V1(e):e;return gp(r)?t.filter(function(i){return gp(i)&&JQ(i,r)&&Ru(i)!=="body"}):[]}function Jpe(e,t,n,r){var i=t==="clippingParents"?Kpe(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,u){var c=qB(e,u,r);return l.top=op(c.top,l.top),l.right=eT(c.right,l.right),l.bottom=eT(c.bottom,l.bottom),l.left=op(c.left,l.left),l},qB(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function iY(e){var t=e.reference,n=e.element,r=e.placement,i=r?xu(r):null,o=r?Zm(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case xa:l={x:a,y:t.y-n.height};break;case el:l={x:a,y:t.y+t.height};break;case tl:l={x:t.x+t.width,y:s};break;case Ca:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?IN(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(o){case Ym:l[u]=l[u]-(t[c]/2-n[c]/2);break;case Sy:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function Ty(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,l=s===void 0?Ope:s,u=n.rootBoundary,c=u===void 0?ZQ:u,d=n.elementContext,p=d===void 0?h0:d,h=n.altBoundary,m=h===void 0?!1:h,b=n.padding,O=b===void 0?0:b,y=tY(typeof O!="number"?O:nY(O,z1)),v=p===h0?vpe:h0,S=e.rects.popper,k=e.elements[m?v:p],C=Jpe(gp(k)?k:k.contextElement||rf(e.elements.popper),l,c,a),w=qm(e.elements.reference),E=iY({reference:w,element:S,strategy:"absolute",placement:i}),$=N_(Object.assign({},S,E)),N=p===h0?$:w,R={top:C.top-N.top+y.top,bottom:N.bottom-C.bottom+y.bottom,left:C.left-N.left+y.left,right:N.right-C.right+y.right},B=e.modifiersData.offset;if(p===h0&&B){var U=B[i];Object.keys(R).forEach(function(V){var z=[tl,el].indexOf(V)>=0?1:-1,W=[xa,el].indexOf(V)>=0?"y":"x";R[V]+=U[W]*z})}return R}function ehe(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?XQ:l,c=Zm(r),d=c?s?WB:WB.filter(function(m){return Zm(m)===c}):z1,p=d.filter(function(m){return u.indexOf(m)>=0});p.length===0&&(p=d);var h=p.reduce(function(m,b){return m[b]=Ty(e,{placement:b,boundary:i,rootBoundary:o,padding:a})[xu(b)],m},{});return Object.keys(h).sort(function(m,b){return h[m]-h[b]})}function the(e){if(xu(e)===AN)return[];var t=FE(e);return[GB(e),t,GB(t)]}function nhe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,m=h===void 0?!0:h,b=n.allowedAutoPlacements,O=t.options.placement,y=xu(O),v=y===O,S=l||(v||!m?[FE(O)]:the(O)),k=[O].concat(S).reduce(function(ce,ge){return ce.concat(xu(ge)===AN?ehe(t,{placement:ge,boundary:c,rootBoundary:d,padding:u,flipVariations:m,allowedAutoPlacements:b}):ge)},[]),C=t.rects.reference,w=t.rects.popper,E=new Map,$=!0,N=k[0],R=0;R=0,W=z?"width":"height",X=Ty(t,{placement:B,boundary:c,rootBoundary:d,altBoundary:p,padding:u}),q=z?V?tl:Ca:V?el:xa;C[W]>w[W]&&(q=FE(q));var Y=FE(q),Z=[];if(o&&Z.push(X[U]<=0),s&&Z.push(X[q]<=0,X[Y]<=0),Z.every(function(ce){return ce})){N=B,$=!1;break}E.set(B,Z)}if($)for(var j=m?3:1,se=function(ge){var ue=k.find(function(xe){var Ne=E.get(xe);if(Ne)return Ne.slice(0,ge).every(function(Ve){return Ve})});if(ue)return N=ue,"break"},ve=j;ve>0;ve--){var G=se(ve);if(G==="break")break}t.placement!==N&&(t.modifiersData[r]._skip=!0,t.placement=N,t.reset=!0)}}const rhe={name:"flip",enabled:!0,phase:"main",fn:nhe,requiresIfExists:["offset"],data:{_skip:!1}};function ZB(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 XB(e){return[xa,tl,el,Ca].some(function(t){return e[t]>=0})}function ihe(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Ty(t,{elementContext:"reference"}),s=Ty(t,{altBoundary:!0}),l=ZB(a,r),u=ZB(s,i,o),c=XB(l),d=XB(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const ohe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ihe};function ahe(e,t,n){var r=xu(e),i=[Ca,xa].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Ca,tl].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function she(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=XQ.reduce(function(c,d){return c[d]=ahe(d,t.rects,o),c},{}),s=a[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const lhe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:she};function uhe(e){var t=e.state,n=e.name;t.modifiersData[n]=iY({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const che={name:"popperOffsets",enabled:!0,phase:"read",fn:uhe,data:{}};function dhe(e){return e==="x"?"y":"x"}function fhe(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,p=n.tether,h=p===void 0?!0:p,m=n.tetherOffset,b=m===void 0?0:m,O=Ty(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),y=xu(t.placement),v=Zm(t.placement),S=!v,k=IN(y),C=dhe(k),w=t.modifiersData.popperOffsets,E=t.rects.reference,$=t.rects.popper,N=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,R=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),B=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,U={x:0,y:0};if(w){if(o){var V,z=k==="y"?xa:Ca,W=k==="y"?el:tl,X=k==="y"?"height":"width",q=w[k],Y=q+O[z],Z=q-O[W],j=h?-$[X]/2:0,se=v===Ym?E[X]:$[X],ve=v===Ym?-$[X]:-E[X],G=t.elements.arrow,ce=h&&G?RN(G):{width:0,height:0},ge=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:eY(),ue=ge[z],xe=ge[W],Ne=Tb(0,E[X],ce[X]),Ve=S?E[X]/2-j-Ne-ue-R.mainAxis:se-Ne-ue-R.mainAxis,Ke=S?-E[X]/2+j+Ne+xe+R.mainAxis:ve+Ne+xe+R.mainAxis,Me=t.elements.arrow&&V1(t.elements.arrow),Ye=Me?k==="y"?Me.clientTop||0:Me.clientLeft||0:0,ye=(V=B==null?void 0:B[k])!=null?V:0,ze=q+Ve-ye-Ye,$e=q+Ke-ye,We=Tb(h?eT(Y,ze):Y,q,h?op(Z,$e):Z);w[k]=We,U[k]=We-q}if(s){var dt,Be=k==="x"?xa:Ca,re=k==="x"?el:tl,ee=w[C],J=C==="y"?"height":"width",Re=ee+O[Be],Le=ee-O[re],De=[xa,Ca].indexOf(y)!==-1,ie=(dt=B==null?void 0:B[C])!=null?dt:0,fe=De?Re:ee-E[J]-$[J]-ie+R.altAxis,de=De?ee+E[J]+$[J]-ie-R.altAxis:Le,Oe=h&&De?Mpe(fe,ee,de):Tb(h?fe:Re,ee,h?de:Le);w[C]=Oe,U[C]=Oe-ee}t.modifiersData[r]=U}}const phe={name:"preventOverflow",enabled:!0,phase:"main",fn:fhe,requiresIfExists:["offset"]};function hhe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function mhe(e){return e===ms(e)||!Ws(e)?DN(e):hhe(e)}function ghe(e){var t=e.getBoundingClientRect(),n=Gm(t.width)/e.offsetWidth||1,r=Gm(t.height)/e.offsetHeight||1;return n!==1||r!==1}function bhe(e,t,n){n===void 0&&(n=!1);var r=Ws(t),i=Ws(t)&&ghe(t),o=rf(t),a=qm(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Ru(t)!=="body"||PN(o))&&(s=mhe(t)),Ws(t)?(l=qm(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=NN(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function yhe(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function Ohe(e){var t=yhe(e);return Rpe.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function vhe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Ehe(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 KB={placement:"bottom",modifiers:[],strategy:"absolute"};function JB(){for(var e=arguments.length,t=new Array(e),n=0;n{o||s(khe(i)||document.body)},[i,o]),Kr(()=>{if(a&&!o)return Ey(n,a),()=>{Ey(n,null)}},[n,a,o]),o){if(I.isValidElement(r)){const u={ref:l};return I.cloneElement(r,u)}return M.jsx(I.Fragment,{children:r})}return M.jsx(I.Fragment,{children:a&&gg.createPortal(r,a)})}),aY="Popper";function xhe(e){return GQ(aY,e)}cpe(aY,["root"]);const Che=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Ahe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function _he(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 P_(e){return typeof e=="function"?e():e}function Rhe(e){return e.nodeType!==void 0}const Ihe=()=>kt({root:["root"]},Tfe(xhe)),Dhe={},Nhe=I.forwardRef(function(t,n){var r;const{anchorEl:i,children:o,direction:a,disablePortal:s,modifiers:l,open:u,placement:c,popperOptions:d,popperRef:p,slotProps:h={},slots:m={},TransitionProps:b}=t,O=Ge(t,Che),y=I.useRef(null),v=yn(y,n),S=I.useRef(null),k=yn(S,p),C=I.useRef(k);Kr(()=>{C.current=k},[k]),I.useImperativeHandle(p,()=>S.current,[]);const w=_he(c,a),[E,$]=I.useState(w),[N,R]=I.useState(P_(i));I.useEffect(()=>{S.current&&S.current.forceUpdate()}),I.useEffect(()=>{i&&R(P_(i))},[i]),Kr(()=>{if(!N||!u)return;const W=Y=>{$(Y.placement)};let X=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:Y})=>{W(Y)}}];l!=null&&(X=X.concat(l)),d&&d.modifiers!=null&&(X=X.concat(d.modifiers));const q=whe(N,y.current,P({placement:w},d,{modifiers:X}));return C.current(q),()=>{q.destroy(),C.current(null)}},[N,s,l,u,d,w]);const B={placement:E};b!==null&&(B.TransitionProps=b);const U=Ihe(),V=(r=m.root)!=null?r:"div",z=kn({elementType:V,externalSlotProps:h.root,externalForwardedProps:O,additionalProps:{role:"tooltip",ref:v},ownerState:t,className:U.root});return M.jsx(V,P({},z,{children:typeof o=="function"?o(B):o}))}),Phe=I.forwardRef(function(t,n){const{anchorEl:r,children:i,container:o,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:u,open:c,placement:d="bottom",popperOptions:p=Dhe,popperRef:h,style:m,transition:b=!1,slotProps:O={},slots:y={}}=t,v=Ge(t,Ahe),[S,k]=I.useState(!0),C=()=>{k(!1)},w=()=>{k(!0)};if(!l&&!c&&(!b||S))return null;let E;if(o)E=o;else if(r){const R=P_(r);E=R&&Rhe(R)?br(R).body:br(null).body}const $=!c&&l&&(!b||S)?"none":void 0,N=b?{in:c,onEnter:C,onExited:w}:void 0;return M.jsx(oY,{disablePortal:s,container:E,children:M.jsx(Nhe,P({anchorEl:r,direction:a,disablePortal:s,modifiers:u,ref:n,open:b?!S:c,placement:d,popperOptions:p,popperRef:h,slotProps:O,slots:y},v,{style:P({position:"fixed",top:0,left:0,display:$},m),TransitionProps:N,children:i}))})});function Lhe(e){const t=br(e);return t.body===e?Js(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function kb(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function e8(e){return parseInt(Js(e).getComputedStyle(e).paddingRight,10)||0}function Mhe(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 t8(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,a=>{const s=o.indexOf(a)===-1,l=!Mhe(a);s&&l&&kb(a,i)})}function LC(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function $he(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(Lhe(r)){const a=IQ(br(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${e8(r)+a}px`;const s=br(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${e8(l)+a}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=br(r).body;else{const a=r.parentElement,s=Js(r);o=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach(({value:o,el:a,property:s})=>{o?a.style.setProperty(s,o):a.style.removeProperty(s)})}}function Fhe(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Bhe{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&&kb(t.modalRef,!1);const i=Fhe(n);t8(n,t.mount,t.modalRef,i,!0);const o=LC(this.containers,a=>a.container===n);return o!==-1?(this.containers[o].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=LC(this.containers,o=>o.modals.indexOf(t)!==-1),i=this.containers[r];i.restore||(i.restore=$he(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=LC(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(r,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&kb(t.modalRef,n),t8(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const a=o.modals[o.modals.length-1];a.modalRef&&kb(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Uhe(e){return typeof e=="function"?e():e}function jhe(e){return e?e.props.hasOwnProperty("in"):!1}const zhe=new Bhe;function Vhe(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=zhe,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:d}=e,p=I.useRef({}),h=I.useRef(null),m=I.useRef(null),b=yn(m,d),[O,y]=I.useState(!c),v=jhe(l);let S=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(S=!1);const k=()=>br(h.current),C=()=>(p.current.modalRef=m.current,p.current.mount=h.current,p.current),w=()=>{i.mount(C(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},E=jt(()=>{const X=Uhe(t)||k().body;i.add(C(),X),m.current&&w()}),$=I.useCallback(()=>i.isTopModal(C()),[i]),N=jt(X=>{h.current=X,X&&(c&&$()?w():m.current&&kb(m.current,S))}),R=I.useCallback(()=>{i.remove(C(),S)},[S,i]);I.useEffect(()=>()=>{R()},[R]),I.useEffect(()=>{c?E():(!v||!o)&&R()},[c,R,v,o,E]);const B=X=>q=>{var Y;(Y=X.onKeyDown)==null||Y.call(X,q),!(q.key!=="Escape"||q.which===229||!$())&&(n||(q.stopPropagation(),u&&u(q,"escapeKeyDown")))},U=X=>q=>{var Y;(Y=X.onClick)==null||Y.call(X,q),q.target===q.currentTarget&&u&&u(q,"backdropClick")};return{getRootProps:(X={})=>{const q=Sb(e);delete q.onTransitionEnter,delete q.onTransitionExited;const Y=P({},q,X);return P({role:"presentation"},Y,{onKeyDown:B(Y),ref:b})},getBackdropProps:(X={})=>{const q=X;return P({"aria-hidden":!0},q,{onClick:U(q),open:c})},getTransitionProps:()=>{const X=()=>{y(!1),a&&a()},q=()=>{y(!0),s&&s(),o&&R()};return{onEnter:qS(X,l==null?void 0:l.props.onEnter),onExited:qS(q,l==null?void 0:l.props.onExited)}},rootRef:b,portalRef:N,isTopModal:$,exited:O,hasTransition:v}}const Hhe=2;function sY(e,t){return e-t}function n8(e,t){var n;const{index:r}=(n=e.reduce((i,o,a)=>{const s=Math.abs(t-o);return i===null||s({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},qhe=e=>e;let Ev;function i8(){return Ev===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Ev=CSS.supports("touch-action","none"):Ev=!0),Ev}function Zhe(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:o=!1,marks:a=!1,max:s=100,min:l=0,name:u,onChange:c,onChangeCommitted:d,orientation:p="horizontal",rootRef:h,scale:m=qhe,step:b=1,tabIndex:O,value:y}=e,v=I.useRef(),[S,k]=I.useState(-1),[C,w]=I.useState(-1),[E,$]=I.useState(!1),N=I.useRef(0),[R,B]=Xi({controlled:y,default:n??l,name:"Slider"}),U=c&&((ie,fe,de)=>{const Oe=ie.nativeEvent||ie,Te=new Oe.constructor(Oe.type,Oe);Object.defineProperty(Te,"target",{writable:!0,value:{value:fe,name:u}}),c(Te,fe,de)}),V=Array.isArray(R);let z=V?R.slice().sort(sY):[R];z=z.map(ie=>ie==null?l:bh(ie,l,s));const W=a===!0&&b!==null?[...Array(Math.floor((s-l)/b)+1)].map((ie,fe)=>({value:l+b*fe})):a||[],X=W.map(ie=>ie.value),{isFocusVisibleRef:q,onBlur:Y,onFocus:Z,ref:j}=rk(),[se,ve]=I.useState(-1),G=I.useRef(),ce=yn(j,G),ge=yn(h,ce),ue=ie=>fe=>{var de;const Oe=Number(fe.currentTarget.getAttribute("data-index"));Z(fe),q.current===!0&&ve(Oe),w(Oe),ie==null||(de=ie.onFocus)==null||de.call(ie,fe)},xe=ie=>fe=>{var de;Y(fe),q.current===!1&&ve(-1),w(-1),ie==null||(de=ie.onBlur)==null||de.call(ie,fe)};Kr(()=>{if(r&&G.current.contains(document.activeElement)){var ie;(ie=document.activeElement)==null||ie.blur()}},[r]),r&&S!==-1&&k(-1),r&&se!==-1&&ve(-1);const Ne=ie=>fe=>{var de;(de=ie.onChange)==null||de.call(ie,fe);const Oe=Number(fe.currentTarget.getAttribute("data-index")),Te=z[Oe],rt=X.indexOf(Te);let pt=fe.target.valueAsNumber;if(W&&b==null){const xt=X[X.length-1];pt>xt?pt=xt:pt{const{current:de}=G,{width:Oe,height:Te,bottom:rt,left:pt}=de.getBoundingClientRect();let xt;Ke.indexOf("vertical")===0?xt=(rt-ie.y)/Te:xt=(ie.x-pt)/Oe,Ke.indexOf("-reverse")!==-1&&(xt=1-xt);let et;if(et=Whe(xt,l,s),b)et=Yhe(et,b,l);else{const qe=n8(X,et);et=X[qe]}et=bh(et,l,s);let vt=0;if(V){fe?vt=Ve.current:vt=n8(z,et),i&&(et=bh(et,z[vt-1]||-1/0,z[vt+1]||1/0));const qe=et;et=r8({values:z,newValue:et,index:vt}),i&&fe||(vt=et.indexOf(qe),Ve.current=vt)}return{newValue:et,activeIndex:vt}},Ye=jt(ie=>{const fe=yv(ie,v);if(!fe)return;if(N.current+=1,ie.type==="mousemove"&&ie.buttons===0){ye(ie);return}const{newValue:de,activeIndex:Oe}=Me({finger:fe,move:!0});Ov({sliderRef:G,activeIndex:Oe,setActive:k}),B(de),!E&&N.current>Hhe&&$(!0),U&&!vv(de,R)&&U(ie,de,Oe)}),ye=jt(ie=>{const fe=yv(ie,v);if($(!1),!fe)return;const{newValue:de}=Me({finger:fe,move:!0});k(-1),ie.type==="touchend"&&w(-1),d&&d(ie,de),v.current=void 0,$e()}),ze=jt(ie=>{if(r)return;i8()||ie.preventDefault();const fe=ie.changedTouches[0];fe!=null&&(v.current=fe.identifier);const de=yv(ie,v);if(de!==!1){const{newValue:Te,activeIndex:rt}=Me({finger:de});Ov({sliderRef:G,activeIndex:rt,setActive:k}),B(Te),U&&!vv(Te,R)&&U(ie,Te,rt)}N.current=0;const Oe=br(G.current);Oe.addEventListener("touchmove",Ye,{passive:!0}),Oe.addEventListener("touchend",ye,{passive:!0})}),$e=I.useCallback(()=>{const ie=br(G.current);ie.removeEventListener("mousemove",Ye),ie.removeEventListener("mouseup",ye),ie.removeEventListener("touchmove",Ye),ie.removeEventListener("touchend",ye)},[ye,Ye]);I.useEffect(()=>{const{current:ie}=G;return ie.addEventListener("touchstart",ze,{passive:i8()}),()=>{ie.removeEventListener("touchstart",ze),$e()}},[$e,ze]),I.useEffect(()=>{r&&$e()},[r,$e]);const We=ie=>fe=>{var de;if((de=ie.onMouseDown)==null||de.call(ie,fe),r||fe.defaultPrevented||fe.button!==0)return;fe.preventDefault();const Oe=yv(fe,v);if(Oe!==!1){const{newValue:rt,activeIndex:pt}=Me({finger:Oe});Ov({sliderRef:G,activeIndex:pt,setActive:k}),B(rt),U&&!vv(rt,R)&&U(fe,rt,pt)}N.current=0;const Te=br(G.current);Te.addEventListener("mousemove",Ye,{passive:!0}),Te.addEventListener("mouseup",ye)},dt=tT(V?z[0]:l,l,s),Be=tT(z[z.length-1],l,s)-dt,re=(ie={})=>{const fe=Sb(ie),de={onMouseDown:We(fe||{})},Oe=P({},fe,de);return P({},ie,{ref:ge},Oe)},ee=ie=>fe=>{var de;(de=ie.onMouseOver)==null||de.call(ie,fe);const Oe=Number(fe.currentTarget.getAttribute("data-index"));w(Oe)},J=ie=>fe=>{var de;(de=ie.onMouseLeave)==null||de.call(ie,fe),w(-1)};return{active:S,axis:Ke,axisProps:Ghe,dragging:E,focusedThumbIndex:se,getHiddenInputProps:(ie={})=>{var fe;const de=Sb(ie),Oe={onChange:Ne(de||{}),onFocus:ue(de||{}),onBlur:xe(de||{})},Te=P({},de,Oe);return P({tabIndex:O,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":m(s),"aria-valuemin":m(l),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(fe=e.step)!=null?fe:void 0,disabled:r},ie,Te,{style:P({},Lue,{direction:o?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:re,getThumbProps:(ie={})=>{const fe=Sb(ie),de={onMouseOver:ee(fe||{}),onMouseLeave:J(fe||{})};return P({},ie,fe,de)},marks:W,open:C,range:V,rootRef:ge,trackLeap:Be,trackOffset:dt,values:z,getThumbStyle:ie=>({pointerEvents:S!==-1&&S!==ie?"none":void 0})}}const Xhe=["onChange","maxRows","minRows","style","value"];function Sv(e){return parseInt(e,10)||0}const Khe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function o8(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const lY=I.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:o=1,style:a,value:s}=t,l=Ge(t,Xhe),{current:u}=I.useRef(s!=null),c=I.useRef(null),d=yn(n,c),p=I.useRef(null),h=I.useRef(0),[m,b]=I.useState({outerHeightStyle:0}),O=I.useCallback(()=>{const k=c.current,w=Js(k).getComputedStyle(k);if(w.width==="0px")return{outerHeightStyle:0};const E=p.current;E.style.width=w.width,E.value=k.value||t.placeholder||"x",E.value.slice(-1)===` +`&&(E.value+=" ");const $=w.boxSizing,N=Sv(w.paddingBottom)+Sv(w.paddingTop),R=Sv(w.borderBottomWidth)+Sv(w.borderTopWidth),B=E.scrollHeight;E.value="x";const U=E.scrollHeight;let V=B;o&&(V=Math.max(Number(o)*U,V)),i&&(V=Math.min(Number(i)*U,V)),V=Math.max(V,U);const z=V+($==="border-box"?N+R:0),W=Math.abs(V-B)<=1;return{outerHeightStyle:z,overflow:W}},[i,o,t.placeholder]),y=(k,C)=>{const{outerHeightStyle:w,overflow:E}=C;return h.current<20&&(w>0&&Math.abs((k.outerHeightStyle||0)-w)>1||k.overflow!==E)?(h.current+=1,{overflow:E,outerHeightStyle:w}):k},v=I.useCallback(()=>{const k=O();o8(k)||b(C=>y(C,k))},[O]);Kr(()=>{const k=()=>{const B=O();o8(B)||gg.flushSync(()=>{b(U=>y(U,B))})},C=()=>{h.current=0,k()};let w;const E=Og(C),$=c.current,N=Js($);N.addEventListener("resize",E);let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(C),R.observe($)),()=>{E.clear(),cancelAnimationFrame(w),N.removeEventListener("resize",E),R&&R.disconnect()}},[O]),Kr(()=>{v()}),I.useEffect(()=>{h.current=0},[s]);const S=k=>{h.current=0,u||v(),r&&r(k)};return M.jsxs(I.Fragment,{children:[M.jsx("textarea",P({value:s,onChange:S,ref:d,rows:o,style:P({height:m.outerHeightStyle,overflow:m.overflow?"hidden":void 0},a)},l)),M.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:P({},Khe.shadow,a,{paddingTop:0,paddingBottom:0})})]})});function a8(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Jhe(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:i="any",stringify:o,trim:a=!1}=e;return(s,{inputValue:l,getOptionLabel:u})=>{let c=a?l.trim():l;n&&(c=c.toLowerCase()),t&&(c=a8(c));const d=c?s.filter(p=>{let h=(o||u)(p);return n&&(h=h.toLowerCase()),t&&(h=a8(h)),i==="start"?h.indexOf(c)===0:h.indexOf(c)>-1}):s;return typeof r=="number"?d.slice(0,r):d}}function MC(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 nme(e){const{unstable_isActiveElementInListbox:t=tme,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:i=!1,autoSelect:o=!1,blurOnSelect:a=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:l=!1,componentName:u="useAutocomplete",defaultValue:c=e.multiple?[]:null,disableClearable:d=!1,disableCloseOnSelect:p=!1,disabled:h,disabledItemsFocusable:m=!1,disableListWrap:b=!1,filterOptions:O=eme,filterSelectedOptions:y=!1,freeSolo:v=!1,getOptionDisabled:S,getOptionKey:k,getOptionLabel:C=Ue=>{var Ce;return(Ce=Ue.label)!=null?Ce:Ue},groupBy:w,handleHomeEndKeys:E=!e.freeSolo,id:$,includeInputInList:N=!1,inputValue:R,isOptionEqualToValue:B=(Ue,Ce)=>Ue===Ce,multiple:U=!1,onChange:V,onClose:z,onHighlightChange:W,onInputChange:X,onOpen:q,open:Y,openOnFocus:Z=!1,options:j,readOnly:se=!1,selectOnFocus:ve=!e.freeSolo,value:G}=e,ce=$l($);let ge=C;ge=Ue=>{const Ce=C(Ue);return typeof Ce!="string"?String(Ce):Ce};const ue=I.useRef(!1),xe=I.useRef(!0),Ne=I.useRef(null),Ve=I.useRef(null),[Ke,Me]=I.useState(null),[Ye,ye]=I.useState(-1),ze=i?0:-1,$e=I.useRef(ze),[We,dt]=Xi({controlled:G,default:c,name:u}),[Be,re]=Xi({controlled:R,default:"",name:u,state:"inputValue"}),[ee,J]=I.useState(!1),Re=I.useCallback((Ue,Ce)=>{if(!(U?We.length!(y&&(U?We:[We]).some(Ce=>Ce!==null&&B(Ue,Ce)))),{inputValue:de&&ie?"":Be,getOptionLabel:ge}):[],rt=Due({filteredOptions:Te,value:We,inputValue:Be});I.useEffect(()=>{const Ue=We!==rt.value;ee&&!Ue||v&&!Ue||Re(null,We)},[We,Re,ee,rt.value,v]);const pt=Le&&Te.length>0&&!se,xt=jt(Ue=>{Ue===-1?Ne.current.focus():Ke.querySelector(`[data-tag-index="${Ue}"]`).focus()});I.useEffect(()=>{U&&Ye>We.length-1&&(ye(-1),xt(-1))},[We,U,Ye,xt]);function et(Ue,Ce){if(!Ve.current||Ue<0||Ue>=Te.length)return-1;let mt=Ue;for(;;){const Dt=Ve.current.querySelector(`[data-option-index="${mt}"]`),tn=m?!1:!Dt||Dt.disabled||Dt.getAttribute("aria-disabled")==="true";if(Dt&&Dt.hasAttribute("tabindex")&&!tn)return mt;if(Ce==="next"?mt=(mt+1)%Te.length:mt=(mt-1+Te.length)%Te.length,mt===Ue)return-1}}const vt=jt(({event:Ue,index:Ce,reason:mt="auto"})=>{if($e.current=Ce,Ce===-1?Ne.current.removeAttribute("aria-activedescendant"):Ne.current.setAttribute("aria-activedescendant",`${ce}-option-${Ce}`),W&&W(Ue,Ce===-1?null:Te[Ce],mt),!Ve.current)return;const Dt=Ve.current.querySelector(`[role="option"].${n}-focused`);Dt&&(Dt.classList.remove(`${n}-focused`),Dt.classList.remove(`${n}-focusVisible`));let tn=Ve.current;if(Ve.current.getAttribute("role")!=="listbox"&&(tn=Ve.current.parentElement.querySelector('[role="listbox"]')),!tn)return;if(Ce===-1){tn.scrollTop=0;return}const Mn=Ve.current.querySelector(`[data-option-index="${Ce}"]`);if(Mn&&(Mn.classList.add(`${n}-focused`),mt==="keyboard"&&Mn.classList.add(`${n}-focusVisible`),tn.scrollHeight>tn.clientHeight&&mt!=="mouse"&&mt!=="touch")){const Dn=Mn,Kt=tn.clientHeight+tn.scrollTop,bn=Dn.offsetTop+Dn.offsetHeight;bn>Kt?tn.scrollTop=bn-tn.clientHeight:Dn.offsetTop-Dn.offsetHeight*(w?1.3:0){if(!Oe)return;const Mn=et((()=>{const Dn=Te.length-1;if(Ce==="reset")return ze;if(Ce==="start")return 0;if(Ce==="end")return Dn;const Kt=$e.current+Ce;return Kt<0?Kt===-1&&N?-1:b&&$e.current!==-1||Math.abs(Ce)>1?0:Dn:Kt>Dn?Kt===Dn+1&&N?-1:b||Math.abs(Ce)>1?Dn:0:Kt})(),mt);if(vt({index:Mn,reason:Dt,event:Ue}),r&&Ce!=="reset")if(Mn===-1)Ne.current.value=Be;else{const Dn=ge(Te[Mn]);Ne.current.value=Dn,Dn.toLowerCase().indexOf(Be.toLowerCase())===0&&Be.length>0&&Ne.current.setSelectionRange(Be.length,Dn.length)}}),it=()=>{const Ue=(Ce,mt)=>{const Dt=Ce?ge(Ce):"",tn=mt?ge(mt):"";return Dt===tn};if($e.current!==-1&&rt.filteredOptions&&rt.filteredOptions.length!==Te.length&&rt.inputValue===Be&&(U?We.length===rt.value.length&&rt.value.every((Ce,mt)=>ge(We[mt])===ge(Ce)):Ue(rt.value,We))){const Ce=rt.filteredOptions[$e.current];if(Ce&&Te.some(Dt=>ge(Dt)===ge(Ce)))return!0}return!1},Et=I.useCallback(()=>{if(!Oe||it())return;const Ue=U?We[0]:We;if(Te.length===0||Ue==null){qe({diff:"reset"});return}if(Ve.current){if(Ue!=null){const Ce=Te[$e.current];if(U&&Ce&&MC(We,Dt=>B(Ce,Dt))!==-1)return;const mt=MC(Te,Dt=>B(Dt,Ue));mt===-1?qe({diff:"reset"}):vt({index:mt});return}if($e.current>=Te.length-1){vt({index:Te.length-1});return}vt({index:$e.current})}},[Te.length,U?!1:We,y,qe,vt,Oe,Be,U]),Nt=jt(Ue=>{Ey(Ve,Ue),Ue&&Et()});I.useEffect(()=>{Et()},[Et]);const on=Ue=>{Le||(De(!0),fe(!0),q&&q(Ue))},dn=(Ue,Ce)=>{Le&&(De(!1),z&&z(Ue,Ce))},pn=(Ue,Ce,mt,Dt)=>{if(U){if(We.length===Ce.length&&We.every((tn,Mn)=>tn===Ce[Mn]))return}else if(We===Ce)return;V&&V(Ue,Ce,mt,Dt),dt(Ce)},zn=I.useRef(!1),Ee=(Ue,Ce,mt="selectOption",Dt="options")=>{let tn=mt,Mn=Ce;if(U){Mn=Array.isArray(We)?We.slice():[];const Dn=MC(Mn,Kt=>B(Ce,Kt));Dn===-1?Mn.push(Ce):Dt!=="freeSolo"&&(Mn.splice(Dn,1),tn="removeOption")}Re(Ue,Mn),pn(Ue,Mn,tn,{option:Ce}),!p&&(!Ue||!Ue.ctrlKey&&!Ue.metaKey)&&dn(Ue,tn),(a===!0||a==="touch"&&zn.current||a==="mouse"&&!zn.current)&&Ne.current.blur()};function _e(Ue,Ce){if(Ue===-1)return-1;let mt=Ue;for(;;){if(Ce==="next"&&mt===We.length||Ce==="previous"&&mt===-1)return-1;const Dt=Ke.querySelector(`[data-tag-index="${mt}"]`);if(!Dt||!Dt.hasAttribute("tabindex")||Dt.disabled||Dt.getAttribute("aria-disabled")==="true")mt+=Ce==="next"?1:-1;else return mt}}const pe=(Ue,Ce)=>{if(!U)return;Be===""&&dn(Ue,"toggleInput");let mt=Ye;Ye===-1?Be===""&&Ce==="previous"&&(mt=We.length-1):(mt+=Ce==="next"?1:-1,mt<0&&(mt=0),mt===We.length&&(mt=-1)),mt=_e(mt,Ce),ye(mt),xt(mt)},lt=Ue=>{ue.current=!0,re(""),X&&X(Ue,"","clear"),pn(Ue,U?[]:null,"clear")},at=Ue=>Ce=>{if(Ue.onKeyDown&&Ue.onKeyDown(Ce),!Ce.defaultMuiPrevented&&(Ye!==-1&&["ArrowLeft","ArrowRight"].indexOf(Ce.key)===-1&&(ye(-1),xt(-1)),Ce.which!==229))switch(Ce.key){case"Home":Oe&&E&&(Ce.preventDefault(),qe({diff:"start",direction:"next",reason:"keyboard",event:Ce}));break;case"End":Oe&&E&&(Ce.preventDefault(),qe({diff:"end",direction:"previous",reason:"keyboard",event:Ce}));break;case"PageUp":Ce.preventDefault(),qe({diff:-s8,direction:"previous",reason:"keyboard",event:Ce}),on(Ce);break;case"PageDown":Ce.preventDefault(),qe({diff:s8,direction:"next",reason:"keyboard",event:Ce}),on(Ce);break;case"ArrowDown":Ce.preventDefault(),qe({diff:1,direction:"next",reason:"keyboard",event:Ce}),on(Ce);break;case"ArrowUp":Ce.preventDefault(),qe({diff:-1,direction:"previous",reason:"keyboard",event:Ce}),on(Ce);break;case"ArrowLeft":pe(Ce,"previous");break;case"ArrowRight":pe(Ce,"next");break;case"Enter":if($e.current!==-1&&Oe){const mt=Te[$e.current],Dt=S?S(mt):!1;if(Ce.preventDefault(),Dt)return;Ee(Ce,mt,"selectOption"),r&&Ne.current.setSelectionRange(Ne.current.value.length,Ne.current.value.length)}else v&&Be!==""&&de===!1&&(U&&Ce.preventDefault(),Ee(Ce,Be,"createOption","freeSolo"));break;case"Escape":Oe?(Ce.preventDefault(),Ce.stopPropagation(),dn(Ce,"escape")):l&&(Be!==""||U&&We.length>0)&&(Ce.preventDefault(),Ce.stopPropagation(),lt(Ce));break;case"Backspace":if(U&&!se&&Be===""&&We.length>0){const mt=Ye===-1?We.length-1:Ye,Dt=We.slice();Dt.splice(mt,1),pn(Ce,Dt,"removeOption",{option:We[mt]})}break;case"Delete":if(U&&!se&&Be===""&&We.length>0&&Ye!==-1){const mt=Ye,Dt=We.slice();Dt.splice(mt,1),pn(Ce,Dt,"removeOption",{option:We[mt]})}break}},Mt=Ue=>{J(!0),Z&&!ue.current&&on(Ue)},$t=Ue=>{if(t(Ve)){Ne.current.focus();return}J(!1),xe.current=!0,ue.current=!1,o&&$e.current!==-1&&Oe?Ee(Ue,Te[$e.current],"blur"):o&&v&&Be!==""?Ee(Ue,Be,"blur","freeSolo"):s&&Re(Ue,We),dn(Ue,"blur")},It=Ue=>{const Ce=Ue.target.value;Be!==Ce&&(re(Ce),fe(!1),X&&X(Ue,Ce,"input")),Ce===""?!d&&!U&&pn(Ue,null,"clear"):on(Ue)},Ct=Ue=>{const Ce=Number(Ue.currentTarget.getAttribute("data-option-index"));$e.current!==Ce&&vt({event:Ue,index:Ce,reason:"mouse"})},Zt=Ue=>{vt({event:Ue,index:Number(Ue.currentTarget.getAttribute("data-option-index")),reason:"touch"}),zn.current=!0},Ie=Ue=>{const Ce=Number(Ue.currentTarget.getAttribute("data-option-index"));Ee(Ue,Te[Ce],"selectOption"),zn.current=!1},we=Ue=>Ce=>{const mt=We.slice();mt.splice(Ue,1),pn(Ce,mt,"removeOption",{option:We[Ue]})},Qe=Ue=>{Le?dn(Ue,"toggleInput"):on(Ue)},ot=Ue=>{Ue.currentTarget.contains(Ue.target)&&Ue.target.getAttribute("id")!==ce&&Ue.preventDefault()},rn=Ue=>{Ue.currentTarget.contains(Ue.target)&&(Ne.current.focus(),ve&&xe.current&&Ne.current.selectionEnd-Ne.current.selectionStart===0&&Ne.current.select(),xe.current=!1)},Wt=Ue=>{!h&&(Be===""||!Le)&&Qe(Ue)};let mn=v&&Be.length>0;mn=mn||(U?We.length>0:We!==null);let tr=Te;return w&&(tr=Te.reduce((Ue,Ce,mt)=>{const Dt=w(Ce);return Ue.length>0&&Ue[Ue.length-1].group===Dt?Ue[Ue.length-1].options.push(Ce):Ue.push({key:mt,index:mt,group:Dt,options:[Ce]}),Ue},[])),h&&ee&&$t(),{getRootProps:(Ue={})=>P({"aria-owns":pt?`${ce}-listbox`:null},Ue,{onKeyDown:at(Ue),onMouseDown:ot,onClick:rn}),getInputLabelProps:()=>({id:`${ce}-label`,htmlFor:ce}),getInputProps:()=>({id:ce,value:Be,onBlur:$t,onFocus:Mt,onChange:It,onMouseDown:Wt,"aria-activedescendant":Oe?"":null,"aria-autocomplete":r?"both":"list","aria-controls":pt?`${ce}-listbox`:void 0,"aria-expanded":pt,autoComplete:"off",ref:Ne,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:h}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:lt}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Qe}),getTagProps:({index:Ue})=>P({key:Ue,"data-tag-index":Ue,tabIndex:-1},!se&&{onDelete:we(Ue)}),getListboxProps:()=>({role:"listbox",id:`${ce}-listbox`,"aria-labelledby":`${ce}-label`,ref:Nt,onMouseDown:Ue=>{Ue.preventDefault()}}),getOptionProps:({index:Ue,option:Ce})=>{var mt;const Dt=(U?We:[We]).some(Mn=>Mn!=null&&B(Ce,Mn)),tn=S?S(Ce):!1;return{key:(mt=k==null?void 0:k(Ce))!=null?mt:ge(Ce),tabIndex:-1,role:"option",id:`${ce}-option-${Ue}`,onMouseMove:Ct,onClick:Ie,onTouchStart:Zt,"data-option-index":Ue,"aria-disabled":tn,"aria-selected":Dt}},id:ce,inputValue:Be,value:We,dirty:mn,expanded:Oe&&Ke,popupOpen:Oe,focused:ee||Ye!==-1,anchorEl:Ke,setAnchorEl:Me,focusedTag:Ye,groupedOptions:tr}}const rme=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],ime=Se(Phe,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ome=I.forwardRef(function(t,n){var r;const i=fk(),o=gt({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:l,componentsProps:u,container:c,disablePortal:d,keepMounted:p,modifiers:h,open:m,placement:b,popperOptions:O,popperRef:y,transition:v,slots:S,slotProps:k}=o,C=Ge(o,rme),w=(r=S==null?void 0:S.root)!=null?r:l==null?void 0:l.Root,E=P({anchorEl:a,container:c,disablePortal:d,keepMounted:p,modifiers:h,open:m,placement:b,popperOptions:O,popperRef:y,transition:v},C);return M.jsx(ime,P({as:s,direction:i==null?void 0:i.direction,slots:{root:w},slotProps:k??u},E,{ref:n}))}),H1=ome;function ame(e){return At("MuiListSubheader",e)}_t("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const sme=["className","color","component","disableGutters","disableSticky","inset"],lme=e=>{const{classes:t,color:n,disableGutters:r,inset:i,disableSticky:o}=e,a={root:["root",n!=="default"&&`color${nt(n)}`,!r&&"gutters",i&&"inset",!o&&"sticky"]};return kt(a,ame,t)},ume=Se("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${nt(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>P({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})),uY=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiListSubheader"}),{className:i,color:o="default",component:a="li",disableGutters:s=!1,disableSticky:l=!1,inset:u=!1}=r,c=Ge(r,sme),d=P({},r,{color:o,component:a,disableGutters:s,disableSticky:l,inset:u}),p=lme(d);return M.jsx(ume,P({as:a,className:Je(p.root,i),ref:n,ownerState:d},c))});uY.muiSkipListHighlight=!0;const cme=uY,dme=wi(M.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 fme(e){return At("MuiChip",e)}const pme=_t("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),nr=pme,hme=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],mme=e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:o,onDelete:a,clickable:s,variant:l}=e,u={root:["root",l,n&&"disabled",`size${nt(r)}`,`color${nt(i)}`,s&&"clickable",s&&`clickableColor${nt(i)}`,a&&"deletable",a&&`deletableColor${nt(i)}`,`${l}${nt(i)}`],label:["label",`label${nt(r)}`],avatar:["avatar",`avatar${nt(r)}`,`avatarColor${nt(i)}`],icon:["icon",`icon${nt(r)}`,`iconColor${nt(o)}`],deleteIcon:["deleteIcon",`deleteIcon${nt(r)}`,`deleteIconColor${nt(i)}`,`deleteIcon${nt(l)}Color${nt(i)}`]};return kt(u,fme,t)},gme=Se("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:o,onDelete:a,size:s,variant:l}=n;return[{[`& .${nr.avatar}`]:t.avatar},{[`& .${nr.avatar}`]:t[`avatar${nt(s)}`]},{[`& .${nr.avatar}`]:t[`avatarColor${nt(r)}`]},{[`& .${nr.icon}`]:t.icon},{[`& .${nr.icon}`]:t[`icon${nt(s)}`]},{[`& .${nr.icon}`]:t[`iconColor${nt(i)}`]},{[`& .${nr.deleteIcon}`]:t.deleteIcon},{[`& .${nr.deleteIcon}`]:t[`deleteIcon${nt(s)}`]},{[`& .${nr.deleteIcon}`]:t[`deleteIconColor${nt(r)}`]},{[`& .${nr.deleteIcon}`]:t[`deleteIcon${nt(l)}Color${nt(r)}`]},t.root,t[`size${nt(s)}`],t[`color${nt(r)}`],o&&t.clickable,o&&r!=="default"&&t[`clickableColor${nt(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${nt(r)}`],t[l],t[`${l}${nt(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return P({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",[`&.${nr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${nr.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${nr.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${nr.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${nr.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${nr.icon}`]:P({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&P({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${nr.deleteIcon}`]:P({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:cn(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:cn(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:cn(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${nr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:cn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${nr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>P({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:cn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${nr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:cn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${nr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>P({},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]}`,[`&.${nr.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${nr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${nr.avatar}`]:{marginLeft:4},[`& .${nr.avatarSmall}`]:{marginLeft:2},[`& .${nr.icon}`]:{marginLeft:4},[`& .${nr.iconSmall}`]:{marginLeft:2},[`& .${nr.deleteIcon}`]:{marginRight:5},[`& .${nr.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:cn(e.palette[t.color].main,.7)}`,[`&.${nr.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${nr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:cn(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${nr.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:cn(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),bme=Se("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${nt(r)}`]]}})(({ownerState:e})=>P({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 l8(e){return e.key==="Backspace"||e.key==="Delete"}const yme=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiChip"}),{avatar:i,className:o,clickable:a,color:s="default",component:l,deleteIcon:u,disabled:c=!1,icon:d,label:p,onClick:h,onDelete:m,onKeyDown:b,onKeyUp:O,size:y="medium",variant:v="filled",tabIndex:S,skipFocusWhenDisabled:k=!1}=r,C=Ge(r,hme),w=I.useRef(null),E=yn(w,n),$=Z=>{Z.stopPropagation(),m&&m(Z)},N=Z=>{Z.currentTarget===Z.target&&l8(Z)&&Z.preventDefault(),b&&b(Z)},R=Z=>{Z.currentTarget===Z.target&&(m&&l8(Z)?m(Z):Z.key==="Escape"&&w.current&&w.current.blur()),O&&O(Z)},B=a!==!1&&h?!0:a,U=B||m?hs:l||"div",V=P({},r,{component:U,disabled:c,size:y,color:s,iconColor:I.isValidElement(d)&&d.props.color||s,onDelete:!!m,clickable:B,variant:v}),z=mme(V),W=U===hs?P({component:l||"div",focusVisibleClassName:z.focusVisible},m&&{disableRipple:!0}):{};let X=null;m&&(X=u&&I.isValidElement(u)?I.cloneElement(u,{className:Je(u.props.className,z.deleteIcon),onClick:$}):M.jsx(dme,{className:Je(z.deleteIcon),onClick:$}));let q=null;i&&I.isValidElement(i)&&(q=I.cloneElement(i,{className:Je(z.avatar,i.props.className)}));let Y=null;return d&&I.isValidElement(d)&&(Y=I.cloneElement(d,{className:Je(z.icon,d.props.className)})),M.jsxs(gme,P({as:U,className:Je(z.root,o),disabled:B&&c?!0:void 0,onClick:h,onKeyDown:N,onKeyUp:R,ref:E,tabIndex:k&&c?-1:S,ownerState:V},W,C,{children:[q||Y,M.jsx(bme,{className:Je(z.label),ownerState:V,children:p}),X]}))}),LN=yme;function of({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 Ome=I.createContext(void 0),vk=Ome;function Du(){return I.useContext(vk)}function cY(e){return M.jsx(Pce,P({},e,{defaultTheme:bk,themeId:pp}))}function u8(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function nT(e,t=!1){return e&&(u8(e.value)&&e.value!==""||t&&u8(e.defaultValue)&&e.defaultValue!=="")}function vme(e){return e.startAdornment}function Eme(e){return At("MuiInputBase",e)}const Sme=_t("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Ja=Sme,Tme=["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"],Ek=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${nt(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Sk=(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]},wme=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:o,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:h,type:m}=e,b={root:["root",`color${nt(n)}`,r&&"disabled",i&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&p!=="medium"&&`size${nt(p)}`,c&&"multiline",h&&"adornedStart",o&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",m==="search"&&"inputTypeSearch",c&&"inputMultiline",p==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",o&&"inputAdornedEnd",d&&"readOnly"]};return kt(b,Eme,t)},Tk=Se("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ek})(({theme:e,ownerState:t})=>P({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Ja.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&P({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),wk=Se("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Sk})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=P({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),i={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return P({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Ja.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Ja.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),kme=M.jsx(cY,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),xme=I.forwardRef(function(t,n){var r;const i=gt({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:s,className:l,components:u={},componentsProps:c={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:h,endAdornment:m,fullWidth:b=!1,id:O,inputComponent:y="input",inputProps:v={},inputRef:S,maxRows:k,minRows:C,multiline:w=!1,name:E,onBlur:$,onChange:N,onClick:R,onFocus:B,onKeyDown:U,onKeyUp:V,placeholder:z,readOnly:W,renderSuffix:X,rows:q,slotProps:Y={},slots:Z={},startAdornment:j,type:se="text",value:ve}=i,G=Ge(i,Tme),ce=v.value!=null?v.value:ve,{current:ge}=I.useRef(ce!=null),ue=I.useRef(),xe=I.useCallback(Oe=>{},[]),Ne=yn(ue,S,v.ref,xe),[Ve,Ke]=I.useState(!1),Me=Du(),Ye=of({props:i,muiFormControl:Me,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Ye.focused=Me?Me.focused:Ve,I.useEffect(()=>{!Me&&p&&Ve&&(Ke(!1),$&&$())},[Me,p,Ve,$]);const ye=Me&&Me.onFilled,ze=Me&&Me.onEmpty,$e=I.useCallback(Oe=>{nT(Oe)?ye&&ye():ze&&ze()},[ye,ze]);Kr(()=>{ge&&$e({value:ce})},[ce,$e,ge]);const We=Oe=>{if(Ye.disabled){Oe.stopPropagation();return}B&&B(Oe),v.onFocus&&v.onFocus(Oe),Me&&Me.onFocus?Me.onFocus(Oe):Ke(!0)},dt=Oe=>{$&&$(Oe),v.onBlur&&v.onBlur(Oe),Me&&Me.onBlur?Me.onBlur(Oe):Ke(!1)},Be=(Oe,...Te)=>{if(!ge){const rt=Oe.target||ue.current;if(rt==null)throw new Error(Ud(1));$e({value:rt.value})}v.onChange&&v.onChange(Oe,...Te),N&&N(Oe,...Te)};I.useEffect(()=>{$e(ue.current)},[]);const re=Oe=>{ue.current&&Oe.currentTarget===Oe.target&&ue.current.focus(),R&&R(Oe)};let ee=y,J=v;w&&ee==="input"&&(q?J=P({type:void 0,minRows:q,maxRows:q},J):J=P({type:void 0,maxRows:k,minRows:C},J),ee=lY);const Re=Oe=>{$e(Oe.animationName==="mui-auto-fill-cancel"?ue.current:{value:"x"})};I.useEffect(()=>{Me&&Me.setAdornedStart(!!j)},[Me,j]);const Le=P({},i,{color:Ye.color||"primary",disabled:Ye.disabled,endAdornment:m,error:Ye.error,focused:Ye.focused,formControl:Me,fullWidth:b,hiddenLabel:Ye.hiddenLabel,multiline:w,size:Ye.size,startAdornment:j,type:se}),De=wme(Le),ie=Z.root||u.Root||Tk,fe=Y.root||c.root||{},de=Z.input||u.Input||wk;return J=P({},J,(r=Y.input)!=null?r:c.input),M.jsxs(I.Fragment,{children:[!h&&kme,M.jsxs(ie,P({},fe,!ku(ie)&&{ownerState:P({},Le,fe.ownerState)},{ref:n,onClick:re},G,{className:Je(De.root,fe.className,l,W&&"MuiInputBase-readOnly"),children:[j,M.jsx(vk.Provider,{value:null,children:M.jsx(de,P({ownerState:Le,"aria-invalid":Ye.error,"aria-describedby":o,autoComplete:a,autoFocus:s,defaultValue:d,disabled:Ye.disabled,id:O,onAnimationStart:Re,name:E,placeholder:z,readOnly:W,required:Ye.required,rows:q,value:ce,onKeyDown:U,onKeyUp:V,type:se},J,!ku(de)&&{as:ee,ownerState:P({},Le,J.ownerState)},{ref:Ne,className:Je(De.input,J.className,W&&"MuiInputBase-readOnly"),onBlur:dt,onChange:Be,onFocus:We}))}),m,X?X(P({},Ye,{startAdornment:j})):null]}))]})}),MN=xme;function Cme(e){return At("MuiInput",e)}const Ame=P({},Ja,_t("MuiInput",["root","underline","input"])),nd=Ame;function _me(e){return At("MuiOutlinedInput",e)}const Rme=P({},Ja,_t("MuiOutlinedInput",["root","notchedOutline","input"])),ru=Rme;function Ime(e){return At("MuiFilledInput",e)}const Dme=P({},Ja,_t("MuiFilledInput",["root","underline","input"])),es=Dme,dY=wi(M.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function Nme(e){return At("MuiAutocomplete",e)}const Pme=_t("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),Fn=Pme;var c8,d8;const Lme=["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"],Mme=["ref"],$me=["key"],Fme=e=>{const{classes:t,disablePortal:n,expanded:r,focused:i,fullWidth:o,hasClearIcon:a,hasPopupIcon:s,inputFocused:l,popupOpen:u,size:c}=e,d={root:["root",r&&"expanded",i&&"focused",o&&"fullWidth",a&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${nt(c)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return kt(d,Nme,t)},Bme=Se("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:i,hasPopupIcon:o,inputFocused:a,size:s}=n;return[{[`& .${Fn.tag}`]:t.tag},{[`& .${Fn.tag}`]:t[`tagSize${nt(s)}`]},{[`& .${Fn.inputRoot}`]:t.inputRoot},{[`& .${Fn.input}`]:t.input},{[`& .${Fn.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,o&&t.hasPopupIcon,i&&t.hasClearIcon]}})(({ownerState:e})=>P({[`&.${Fn.focused} .${Fn.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Fn.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${Fn.tag}`]:P({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${Fn.inputRoot}`]:{flexWrap:"wrap",[`.${Fn.hasPopupIcon}&, .${Fn.hasClearIcon}&`]:{paddingRight:30},[`.${Fn.hasPopupIcon}.${Fn.hasClearIcon}&`]:{paddingRight:56},[`& .${Fn.input}`]:{width:0,minWidth:30}},[`& .${nd.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${nd.root}.${Ja.sizeSmall}`]:{[`& .${nd.input}`]:{padding:"2px 4px 3px 0"}},[`& .${ru.root}`]:{padding:9,[`.${Fn.hasPopupIcon}&, .${Fn.hasClearIcon}&`]:{paddingRight:39},[`.${Fn.hasPopupIcon}.${Fn.hasClearIcon}&`]:{paddingRight:65},[`& .${Fn.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Fn.endAdornment}`]:{right:9}},[`& .${ru.root}.${Ja.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Fn.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${es.root}`]:{paddingTop:19,paddingLeft:8,[`.${Fn.hasPopupIcon}&, .${Fn.hasClearIcon}&`]:{paddingRight:39},[`.${Fn.hasPopupIcon}.${Fn.hasClearIcon}&`]:{paddingRight:65},[`& .${es.input}`]:{padding:"7px 4px"},[`& .${Fn.endAdornment}`]:{right:9}},[`& .${es.root}.${Ja.sizeSmall}`]:{paddingBottom:1,[`& .${es.input}`]:{padding:"2.5px 4px"}},[`& .${Ja.hiddenLabel}`]:{paddingTop:8},[`& .${es.root}.${Ja.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Fn.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${es.root}.${Ja.hiddenLabel}.${Ja.sizeSmall}`]:{[`& .${Fn.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Fn.input}`]:P({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),Ume=Se("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),jme=Se(Na,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),zme=Se(Na,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>P({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>P({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),Vme=Se(H1,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Fn.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>P({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),Hme=Se(Da,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>P({},e.typography.body1,{overflow:"auto"})),Wme=Se("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Qme=Se("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Yme=Se("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Fn.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Fn.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Fn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Fn.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:cn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:cn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),Gme=Se(cme,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),qme=Se("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Fn.option}`]:{paddingLeft:24}}),Zme=I.forwardRef(function(t,n){var r,i,o,a;const s=gt({props:t,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:u=!1,autoSelect:c=!1,blurOnSelect:d=!1,ChipProps:p,className:h,clearIcon:m=c8||(c8=M.jsx(Gfe,{fontSize:"small"})),clearOnBlur:b=!s.freeSolo,clearOnEscape:O=!1,clearText:y="Clear",closeText:v="Close",componentsProps:S={},defaultValue:k=s.multiple?[]:null,disableClearable:C=!1,disableCloseOnSelect:w=!1,disabled:E=!1,disabledItemsFocusable:$=!1,disableListWrap:N=!1,disablePortal:R=!1,filterSelectedOptions:B=!1,forcePopupIcon:U="auto",freeSolo:V=!1,fullWidth:z=!1,getLimitTagsText:W=Ce=>`+${Ce}`,getOptionLabel:X,groupBy:q,handleHomeEndKeys:Y=!s.freeSolo,includeInputInList:Z=!1,limitTags:j=-1,ListboxComponent:se="ul",ListboxProps:ve,loading:G=!1,loadingText:ce="Loading…",multiple:ge=!1,noOptionsText:ue="No options",openOnFocus:xe=!1,openText:Ne="Open",PaperComponent:Ve=Da,PopperComponent:Ke=H1,popupIcon:Me=d8||(d8=M.jsx(dY,{})),readOnly:Ye=!1,renderGroup:ye,renderInput:ze,renderOption:$e,renderTags:We,selectOnFocus:dt=!s.freeSolo,size:Be="medium",slotProps:re={}}=s,ee=Ge(s,Lme),{getRootProps:J,getInputProps:Re,getInputLabelProps:Le,getPopupIndicatorProps:De,getClearProps:ie,getTagProps:fe,getListboxProps:de,getOptionProps:Oe,value:Te,dirty:rt,expanded:pt,id:xt,popupOpen:et,focused:vt,focusedTag:qe,anchorEl:it,setAnchorEl:Et,inputValue:Nt,groupedOptions:on}=nme(P({},s,{componentName:"Autocomplete"})),dn=!C&&!E&&rt&&!Ye,pn=(!V||U===!0)&&U!==!1,{onMouseDown:zn}=Re(),{ref:Ee}=ve??{},_e=de(),{ref:pe}=_e,lt=Ge(_e,Mme),at=yn(pe,Ee),$t=X||(Ce=>{var mt;return(mt=Ce.label)!=null?mt:Ce}),It=P({},s,{disablePortal:R,expanded:pt,focused:vt,fullWidth:z,getOptionLabel:$t,hasClearIcon:dn,hasPopupIcon:pn,inputFocused:qe===-1,popupOpen:et,size:Be}),Ct=Fme(It);let Zt;if(ge&&Te.length>0){const Ce=mt=>P({className:Ct.tag,disabled:E},fe(mt));We?Zt=We(Te,Ce,It):Zt=Te.map((mt,Dt)=>M.jsx(LN,P({label:$t(mt),size:Be},Ce({index:Dt}),p)))}if(j>-1&&Array.isArray(Zt)){const Ce=Zt.length-j;!vt&&Ce>0&&(Zt=Zt.splice(0,j),Zt.push(M.jsx("span",{className:Ct.tag,children:W(Ce)},Zt.length)))}const we=ye||(Ce=>M.jsxs("li",{children:[M.jsx(Gme,{className:Ct.groupLabel,ownerState:It,component:"div",children:Ce.group}),M.jsx(qme,{className:Ct.groupUl,ownerState:It,children:Ce.children})]},Ce.key)),ot=$e||((Ce,mt)=>{const{key:Dt}=Ce,tn=Ge(Ce,$me);return M.jsx("li",P({},tn,{children:$t(mt)}),Dt)}),rn=(Ce,mt)=>{const Dt=Oe({option:Ce,index:mt});return ot(P({},Dt,{className:Ct.option}),Ce,{selected:Dt["aria-selected"],index:mt,inputValue:Nt},It)},Wt=(r=re.clearIndicator)!=null?r:S.clearIndicator,mn=(i=re.paper)!=null?i:S.paper,tr=(o=re.popper)!=null?o:S.popper,Ue=(a=re.popupIndicator)!=null?a:S.popupIndicator;return M.jsxs(I.Fragment,{children:[M.jsx(Bme,P({ref:n,className:Je(Ct.root,h),ownerState:It},J(ee),{children:ze({id:xt,disabled:E,fullWidth:!0,size:Be==="small"?"small":void 0,InputLabelProps:Le(),InputProps:P({ref:Et,className:Ct.inputRoot,startAdornment:Zt,onClick:Ce=>{Ce.target===Ce.currentTarget&&zn(Ce)}},(dn||pn)&&{endAdornment:M.jsxs(Ume,{className:Ct.endAdornment,ownerState:It,children:[dn?M.jsx(jme,P({},ie(),{"aria-label":y,title:y,ownerState:It},Wt,{className:Je(Ct.clearIndicator,Wt==null?void 0:Wt.className),children:m})):null,pn?M.jsx(zme,P({},De(),{disabled:E,"aria-label":et?v:Ne,title:et?v:Ne,ownerState:It},Ue,{className:Je(Ct.popupIndicator,Ue==null?void 0:Ue.className),children:Me})):null]})}),inputProps:P({className:Ct.input,disabled:E,readOnly:Ye},Re())})})),it?M.jsx(Vme,P({as:Ke,disablePortal:R,style:{width:it?it.clientWidth:null},ownerState:It,role:"presentation",anchorEl:it,open:et},tr,{className:Je(Ct.popper,tr==null?void 0:tr.className),children:M.jsxs(Hme,P({ownerState:It,as:Ve},mn,{className:Je(Ct.paper,mn==null?void 0:mn.className),children:[G&&on.length===0?M.jsx(Wme,{className:Ct.loading,ownerState:It,children:ce}):null,on.length===0&&!V&&!G?M.jsx(Qme,{className:Ct.noOptions,ownerState:It,role:"presentation",onMouseDown:Ce=>{Ce.preventDefault()},children:ue}):null,on.length>0?M.jsx(Yme,P({as:se,className:Ct.listbox,ownerState:It},lt,ve,{ref:at,children:on.map((Ce,mt)=>q?we({key:Ce.key,group:Ce.group,children:Ce.options.map((Dt,tn)=>rn(Dt,Ce.index+tn))}):rn(Ce,mt))})):null]}))})):null]})}),Xme=Zme,Kme=wi(M.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 Jme(e){return At("MuiAvatar",e)}_t("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const ege=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],tge=e=>{const{classes:t,variant:n,colorDefault:r}=e;return kt({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},Jme,t)},nge=Se("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e,ownerState:t})=>P({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.variant==="square"&&{borderRadius:0},t.colorDefault&&P({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600]}))),rge=Se("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),ige=Se(Kme,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function oge({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,o]=I.useState(!1);return I.useEffect(()=>{if(!n&&!r)return;o(!1);let a=!0;const s=new Image;return s.onload=()=>{a&&o("loaded")},s.onerror=()=>{a&&o("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=n,r&&(s.srcset=r),()=>{a=!1}},[e,t,n,r]),i}const age=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiAvatar"}),{alt:i,children:o,className:a,component:s="div",imgProps:l,sizes:u,src:c,srcSet:d,variant:p="circular"}=r,h=Ge(r,ege);let m=null;const b=oge(P({},l,{src:c,srcSet:d})),O=c||d,y=O&&b!=="error",v=P({},r,{colorDefault:!y,component:s,variant:p}),S=tge(v);return y?m=M.jsx(rge,P({alt:i,srcSet:d,src:c,sizes:u,ownerState:v,className:S.img},l)):o!=null?m=o:O&&i?m=i[0]:m=M.jsx(ige,{ownerState:v,className:S.fallback}),M.jsx(nge,P({as:s,ownerState:v,className:Je(S.root,a),ref:n},h,{children:m}))}),fY=age,sge=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],lge={entering:{opacity:1},entered:{opacity:1}},uge=I.forwardRef(function(t,n){const r=ui(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:s,easing:l,in:u,onEnter:c,onEntered:d,onEntering:p,onExit:h,onExited:m,onExiting:b,style:O,timeout:y=i,TransitionComponent:v=j1}=t,S=Ge(t,sge),k=I.useRef(null),C=yn(k,s.ref,n),w=z=>W=>{if(z){const X=k.current;W===void 0?z(X):z(X,W)}},E=w(p),$=w((z,W)=>{CN(z);const X=zd({style:O,timeout:y,easing:l},{mode:"enter"});z.style.webkitTransition=r.transitions.create("opacity",X),z.style.transition=r.transitions.create("opacity",X),c&&c(z,W)}),N=w(d),R=w(b),B=w(z=>{const W=zd({style:O,timeout:y,easing:l},{mode:"exit"});z.style.webkitTransition=r.transitions.create("opacity",W),z.style.transition=r.transitions.create("opacity",W),h&&h(z)}),U=w(m),V=z=>{o&&o(k.current,z)};return M.jsx(v,P({appear:a,in:u,nodeRef:k,onEnter:$,onEntered:N,onEntering:E,onExit:B,onExited:U,onExiting:R,addEndListener:V,timeout:y},S,{children:(z,W)=>I.cloneElement(s,P({style:P({opacity:0,visibility:z==="exited"&&!u?"hidden":void 0},lge[z],O,s.props.style),ref:C},W))}))}),Eg=uge;function cge(e){return At("MuiBackdrop",e)}_t("MuiBackdrop",["root","invisible"]);const dge=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],fge=e=>{const{classes:t,invisible:n}=e;return kt({root:["root",n&&"invisible"]},cge,t)},pge=Se("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>P({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"})),hge=I.forwardRef(function(t,n){var r,i,o;const a=gt({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:u="div",components:c={},componentsProps:d={},invisible:p=!1,open:h,slotProps:m={},slots:b={},TransitionComponent:O=Eg,transitionDuration:y}=a,v=Ge(a,dge),S=P({},a,{component:u,invisible:p}),k=fge(S),C=(r=m.root)!=null?r:d.root;return M.jsx(O,P({in:h,timeout:y},v,{children:M.jsx(pge,P({"aria-hidden":!0},C,{as:(i=(o=b.root)!=null?o:c.Root)!=null?i:u,className:Je(k.root,l,C==null?void 0:C.className),ownerState:P({},S,C==null?void 0:C.ownerState),classes:k,ref:n,children:s}))}))}),$N=hge,mge=_t("MuiBox",["root"]),gge=mge,bge=vN(),yge=Fce({themeId:pp,defaultTheme:bge,defaultClassName:gge.root,generateClassName:fN.generate}),Aa=yge;function Oge(e){return At("MuiButton",e)}const vge=_t("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Tv=vge,Ege=I.createContext({}),Sge=Ege,Tge=I.createContext(void 0),wge=Tge,kge=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],xge=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:a}=e,s={root:["root",o,`${o}${nt(t)}`,`size${nt(i)}`,`${o}Size${nt(i)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${nt(i)}`],endIcon:["endIcon",`iconSize${nt(i)}`]},l=kt(s,Oge,a);return P({},a,l)},pY=e=>P({},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}}),Cge=Se(hs,{shouldForwardProp:e=>Ji(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${nt(n.color)}`],t[`size${nt(n.size)}`],t[`${n.variant}Size${nt(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const i=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],o=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return P({},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":P({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":P({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Tv.focusVisible}`]:P({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Tv.disabled}`]:P({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${cn(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Tv.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Tv.disabled}`]:{boxShadow:"none"}}),Age=Se("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${nt(n.size)}`]]}})(({ownerState:e})=>P({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},pY(e))),_ge=Se("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${nt(n.size)}`]]}})(({ownerState:e})=>P({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},pY(e))),Rge=I.forwardRef(function(t,n){const r=I.useContext(Sge),i=I.useContext(wge),o=ik(r,t),a=gt({props:o,name:"MuiButton"}),{children:s,color:l="primary",component:u="button",className:c,disabled:d=!1,disableElevation:p=!1,disableFocusRipple:h=!1,endIcon:m,focusVisibleClassName:b,fullWidth:O=!1,size:y="medium",startIcon:v,type:S,variant:k="text"}=a,C=Ge(a,kge),w=P({},a,{color:l,component:u,disabled:d,disableElevation:p,disableFocusRipple:h,fullWidth:O,size:y,type:S,variant:k}),E=xge(w),$=v&&M.jsx(Age,{className:E.startIcon,ownerState:w,children:v}),N=m&&M.jsx(_ge,{className:E.endIcon,ownerState:w,children:m}),R=i||"";return M.jsxs(Cge,P({ownerState:w,className:Je(r.className,E.root,c,R),component:u,disabled:d,focusRipple:!h,focusVisibleClassName:Je(E.focusVisible,b),ref:n,type:S},C,{classes:E,children:[$,s,N]}))}),Ff=Rge;function Ige(e){return At("MuiCard",e)}_t("MuiCard",["root"]);const Dge=["className","raised"],Nge=e=>{const{classes:t}=e;return kt({root:["root"]},Ige,t)},Pge=Se(Da,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),Lge=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiCard"}),{className:i,raised:o=!1}=r,a=Ge(r,Dge),s=P({},r,{raised:o}),l=Nge(s);return M.jsx(Pge,P({className:Je(l.root,i),elevation:o?8:void 0,ref:n,ownerState:s},a))}),Mge=Lge;function $ge(e){return At("MuiCardActionArea",e)}const Fge=_t("MuiCardActionArea",["root","focusVisible","focusHighlight"]),$C=Fge,Bge=["children","className","focusVisibleClassName"],Uge=e=>{const{classes:t}=e;return kt({root:["root"],focusHighlight:["focusHighlight"]},$ge,t)},jge=Se(hs,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${$C.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${$C.focusVisible} .${$C.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}})),zge=Se("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})})),Vge=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiCardActionArea"}),{children:i,className:o,focusVisibleClassName:a}=r,s=Ge(r,Bge),l=r,u=Uge(l);return M.jsxs(jge,P({className:Je(u.root,o),focusVisibleClassName:Je(a,u.focusVisible),ref:n,ownerState:l},s,{children:[i,M.jsx(zge,{className:u.focusHighlight,ownerState:l})]}))}),Hge=Vge;function Wge(e){return At("MuiCardContent",e)}_t("MuiCardContent",["root"]);const Qge=["className","component"],Yge=e=>{const{classes:t}=e;return kt({root:["root"]},Wge,t)},Gge=Se("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),qge=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiCardContent"}),{className:i,component:o="div"}=r,a=Ge(r,Qge),s=P({},r,{component:o}),l=Yge(s);return M.jsx(Gge,P({as:o,className:Je(l.root,i),ownerState:s,ref:n},a))}),Zge=qge;function Xge(e){return At("PrivateSwitchBase",e)}_t("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Kge=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Jge=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&`edge${nt(i)}`],input:["input"]};return kt(o,Xge,t)},e0e=Se(hs)(({ownerState:e})=>P({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),t0e=Se("input",{shouldForwardProp:Ji})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),n0e=I.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:o,className:a,defaultChecked:s,disabled:l,disableFocusRipple:u=!1,edge:c=!1,icon:d,id:p,inputProps:h,inputRef:m,name:b,onBlur:O,onChange:y,onFocus:v,readOnly:S,required:k=!1,tabIndex:C,type:w,value:E}=t,$=Ge(t,Kge),[N,R]=Xi({controlled:i,default:!!s,name:"SwitchBase",state:"checked"}),B=Du(),U=Z=>{v&&v(Z),B&&B.onFocus&&B.onFocus(Z)},V=Z=>{O&&O(Z),B&&B.onBlur&&B.onBlur(Z)},z=Z=>{if(Z.nativeEvent.defaultPrevented)return;const j=Z.target.checked;R(j),y&&y(Z,j)};let W=l;B&&typeof W>"u"&&(W=B.disabled);const X=w==="checkbox"||w==="radio",q=P({},t,{checked:N,disabled:W,disableFocusRipple:u,edge:c}),Y=Jge(q);return M.jsxs(e0e,P({component:"span",className:Je(Y.root,a),centerRipple:!0,focusRipple:!u,disabled:W,tabIndex:null,role:void 0,onFocus:U,onBlur:V,ownerState:q,ref:n},$,{children:[M.jsx(t0e,P({autoFocus:r,checked:i,defaultChecked:s,className:Y.input,disabled:W,id:X?p:void 0,name:b,onChange:z,readOnly:S,ref:m,required:k,ownerState:q,tabIndex:C,type:w},w==="checkbox"&&E===void 0?{}:{value:E},h)),N?o:d]}))}),FN=n0e,r0e=wi(M.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"),i0e=wi(M.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"),o0e=wi(M.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 a0e(e){return At("MuiCheckbox",e)}const s0e=_t("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),FC=s0e,l0e=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],u0e=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,o={root:["root",n&&"indeterminate",`color${nt(r)}`,`size${nt(i)}`]},a=kt(o,a0e,t);return P({},t,a)},c0e=Se(FN,{shouldForwardProp:e=>Ji(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${nt(n.size)}`],n.color!=="default"&&t[`color${nt(n.color)}`]]}})(({theme:e,ownerState:t})=>P({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${FC.checked}, &.${FC.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${FC.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),d0e=M.jsx(i0e,{}),f0e=M.jsx(r0e,{}),p0e=M.jsx(o0e,{}),h0e=I.forwardRef(function(t,n){var r,i;const o=gt({props:t,name:"MuiCheckbox"}),{checkedIcon:a=d0e,color:s="primary",icon:l=f0e,indeterminate:u=!1,indeterminateIcon:c=p0e,inputProps:d,size:p="medium",className:h}=o,m=Ge(o,l0e),b=u?c:l,O=u?c:a,y=P({},o,{color:s,indeterminate:u,size:p}),v=u0e(y);return M.jsx(c0e,P({type:"checkbox",inputProps:P({"data-indeterminate":u},d),icon:I.cloneElement(b,{fontSize:(r=b.props.fontSize)!=null?r:p}),checkedIcon:I.cloneElement(O,{fontSize:(i=O.props.fontSize)!=null?i:p}),ownerState:y,ref:n,className:Je(v.root,h)},m,{classes:v}))}),kk=h0e;function m0e(e){return At("MuiCircularProgress",e)}_t("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const g0e=["className","color","disableShrink","size","style","thickness","value","variant"];let xk=e=>e,f8,p8,h8,m8;const jc=44,b0e=$1(f8||(f8=xk` 0% { transform: rotate(0deg); } @@ -134,7 +134,7 @@ Error generating stack: `+o.message+` 100% { transform: rotate(360deg); } -`)),Ige=w1(YB||(YB=uk` +`)),y0e=$1(p8||(p8=xk` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; @@ -149,11 +149,11 @@ Error generating stack: `+o.message+` stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } -`)),Nge=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,o={root:["root",n,`color${tt(r)}`],svg:["svg"],circle:["circle",`circle${tt(n)}`,i&&"circleDisableShrink"]};return Ct(o,Age,t)},Dge=ke("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${tt(n.color)}`]]}})(({ownerState:e,theme:t})=>L({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&zN(GB||(GB=uk` +`)),O0e=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,o={root:["root",n,`color${nt(r)}`],svg:["svg"],circle:["circle",`circle${nt(n)}`,i&&"circleDisableShrink"]};return kt(o,m0e,t)},v0e=Se("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${nt(n.color)}`]]}})(({ownerState:e,theme:t})=>P({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"&&uN(h8||(h8=xk` animation: ${0} 1.4s linear infinite; - `),Rge)),Pge=ke("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Lge=ke("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${tt(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>L({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&zN(qB||(qB=uk` + `),b0e)),E0e=Se("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),S0e=Se("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${nt(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>P({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&&uN(m8||(m8=xk` animation: ${0} 1.4s ease-in-out infinite; - `),Ige)),Mge=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:a=!1,size:s=40,style:l,thickness:u=3.6,value:c=0,variant:d="indeterminate"}=r,p=Ge(r,_ge),h=L({},r,{color:o,disableShrink:a,size:s,thickness:u,value:c,variant:d}),m=Nge(h),y={},O={},b={};if(d==="determinate"){const v=2*Math.PI*((Mc-u)/2);y.strokeDasharray=v.toFixed(3),b["aria-valuenow"]=Math.round(c),y.strokeDashoffset=`${((100-c)/100*v).toFixed(3)}px`,O.transform="rotate(-90deg)"}return M.jsx(Dge,L({className:et(m.root,i),style:L({width:s,height:s},O,l),ownerState:h,ref:n,role:"progressbar"},b,p,{children:M.jsx(Pge,{className:m.svg,ownerState:h,viewBox:`${Mc/2} ${Mc/2} ${Mc} ${Mc}`,children:M.jsx(Lge,{className:m.circle,style:y,ownerState:h,cx:Mc,cy:Mc,r:(Mc-u)/2,fill:"none",strokeWidth:u})})}))}),dg=Mge,$ge=Ice({createStyledComponent:ke("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${tt(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>gt({props:e,name:"MuiContainer"})}),Fge=$ge,Bge=(e,t)=>L({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),Uge=e=>L({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),jge=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([a,s])=>{var l;r[e.getColorSchemeSelector(a).replace(/\s*&/,"")]={colorScheme:(l=s.palette)==null?void 0:l.mode}});let i=L({html:Bge(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:L({margin:0},Uge(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const o=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return o&&(i=[i,o]),i};function zge(e){const t=gt({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return M.jsxs(N.Fragment,{children:[M.jsx($Q,{styles:i=>jge(i,r)}),n]})}function Vge(e){return At("MuiModal",e)}_t("MuiModal",["root","hidden","backdrop"]);const Hge=["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"],Wge=e=>{const{open:t,exited:n,classes:r}=e;return Ct({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Vge,r)},Qge=ke("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>L({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Yge=ke(yD,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Gge=N.forwardRef(function(t,n){var r,i,o,a,s,l;const u=gt({name:"MuiModal",props:t}),{BackdropComponent:c=Yge,BackdropProps:d,className:p,closeAfterTransition:h=!1,children:m,container:y,component:O,components:b={},componentsProps:v={},disableAutoFocus:S=!1,disableEnforceFocus:k=!1,disableEscapeKeyDown:C=!1,disablePortal:w=!1,disableRestoreFocus:E=!1,disableScrollLock:$=!1,hideBackdrop:D=!1,keepMounted:R=!1,onBackdropClick:B,open:U,slotProps:V,slots:z}=u,Q=Ge(u,Hge),X=L({},u,{closeAfterTransition:h,disableAutoFocus:S,disableEnforceFocus:k,disableEscapeKeyDown:C,disablePortal:w,disableRestoreFocus:E,disableScrollLock:$,hideBackdrop:D,keepMounted:R}),{getRootProps:Z,getBackdropProps:Y,getTransitionProps:q,portalRef:j,isTopModal:le,exited:Ee,hasTransition:G}=nhe(L({},X,{rootRef:n})),ue=L({},X,{exited:Ee}),ge=Wge(ue),he={};if(m.props.tabIndex===void 0&&(he.tabIndex="-1"),G){const{onEnter:ye,onExited:ze}=q();he.onEnter=ye,he.onExited=ze}const Ne=(r=(i=z==null?void 0:z.root)!=null?i:b.Root)!=null?r:Qge,Le=(o=(a=z==null?void 0:z.backdrop)!=null?a:b.Backdrop)!=null?o:c,qe=(s=V==null?void 0:V.root)!=null?s:v.root,rt=(l=V==null?void 0:V.backdrop)!=null?l:v.backdrop,Me=kn({elementType:Ne,externalSlotProps:qe,externalForwardedProps:Q,getSlotProps:Z,additionalProps:{ref:n,as:O},ownerState:ue,className:et(p,qe==null?void 0:qe.className,ge==null?void 0:ge.root,!ue.open&&ue.exited&&(ge==null?void 0:ge.hidden))}),Qe=kn({elementType:Le,externalSlotProps:rt,additionalProps:d,getSlotProps:ye=>Y(L({},ye,{onClick:ze=>{B&&B(ze),ye!=null&&ye.onClick&&ye.onClick(ze)}})),className:et(rt==null?void 0:rt.className,d==null?void 0:d.className,ge==null?void 0:ge.backdrop),ownerState:ue});return!R&&!U&&(!G||Ee)?null:M.jsx(NQ,{ref:j,container:y,disablePortal:w,children:M.jsxs(Ne,L({},Me,{children:[!D&&c?M.jsx(Le,L({},Qe)):null,M.jsx(SQ,{disableEnforceFocus:k,disableAutoFocus:S,disableRestoreFocus:E,isEnabled:le,open:U,children:N.cloneElement(m,he)})]}))})}),I1=Gge;function qge(e){return At("MuiDialog",e)}const mb=_t("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Zge=N.createContext({}),Xge=Zge,Kge=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],Jge=ke(yD,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),e0e=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:o}=e,a={root:["root"],container:["container",`scroll${tt(n)}`],paper:["paper",`paperScroll${tt(n)}`,`paperWidth${tt(String(r))}`,i&&"paperFullWidth",o&&"paperFullScreen"]};return Ct(a,qge,t)},t0e=ke(I1,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),n0e=ke("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${tt(n.scroll)}`]]}})(({ownerState:e})=>L({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),r0e=ke(Ra,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${tt(n.scroll)}`],t[`paperWidth${tt(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>L({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${mb.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${mb.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${mb.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),i0e=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDialog"}),i=bi(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,BackdropComponent:l,BackdropProps:u,children:c,className:d,disableEscapeKeyDown:p=!1,fullScreen:h=!1,fullWidth:m=!1,maxWidth:y="sm",onBackdropClick:O,onClose:b,open:v,PaperComponent:S=Ra,PaperProps:k={},scroll:C="paper",TransitionComponent:w=cg,transitionDuration:E=o,TransitionProps:$}=r,D=Ge(r,Kge),R=L({},r,{disableEscapeKeyDown:p,fullScreen:h,fullWidth:m,maxWidth:y,scroll:C}),B=e0e(R),U=N.useRef(),V=Z=>{U.current=Z.target===Z.currentTarget},z=Z=>{U.current&&(U.current=null,O&&O(Z),b&&b(Z,"backdropClick"))},Q=Pl(s),X=N.useMemo(()=>({titleId:Q}),[Q]);return M.jsx(t0e,L({className:et(B.root,d),closeAfterTransition:!0,components:{Backdrop:Jge},componentsProps:{backdrop:L({transitionDuration:E,as:l},u)},disableEscapeKeyDown:p,onClose:b,open:v,ref:n,onClick:z,ownerState:R},D,{children:M.jsx(w,L({appear:!0,in:v,timeout:E,role:"presentation"},$,{children:M.jsx(n0e,{className:et(B.container),onMouseDown:V,ownerState:R,children:M.jsx(r0e,L({as:S,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":Q},k,{className:et(B.paper,k.className),ownerState:R,children:M.jsx(Xge.Provider,{value:X,children:c})}))})}))}))}),o0e=i0e;function a0e(e){return At("MuiDialogActions",e)}_t("MuiDialogActions",["root","spacing"]);const s0e=["className","disableSpacing"],l0e=e=>{const{classes:t,disableSpacing:n}=e;return Ct({root:["root",!n&&"spacing"]},a0e,t)},u0e=ke("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>L({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),c0e=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:o=!1}=r,a=Ge(r,s0e),s=L({},r,{disableSpacing:o}),l=l0e(s);return M.jsx(u0e,L({className:et(l.root,i),ownerState:s,ref:n},a))}),d0e=c0e;function f0e(e){return At("MuiDialogContent",e)}_t("MuiDialogContent",["root","dividers"]);const p0e=_t("MuiDialogTitle",["root"]),h0e=p0e,m0e=["className","dividers"],g0e=e=>{const{classes:t,dividers:n}=e;return Ct({root:["root",n&&"dividers"]},f0e,t)},b0e=ke("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>L({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${h0e.root} + &`]:{paddingTop:0}})),y0e=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDialogContent"}),{className:i,dividers:o=!1}=r,a=Ge(r,m0e),s=L({},r,{dividers:o}),l=g0e(s);return M.jsx(b0e,L({className:et(l.root,i),ownerState:s,ref:n},a))}),O0e=y0e;function v0e(e){return At("MuiDivider",e)}const E0e=_t("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),ZB=E0e,S0e=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],T0e=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:a,textAlign:s,variant:l}=e;return Ct({root:["root",t&&"absolute",l,o&&"light",a==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",s==="right"&&a!=="vertical"&&"textAlignRight",s==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},v0e,r)},w0e=ke("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>L({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:un(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>L({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>L({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>L({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>L({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),k0e=ke("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>L({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),jQ=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDivider"}),{absolute:i=!1,children:o,className:a,component:s=o?"div":"hr",flexItem:l=!1,light:u=!1,orientation:c="horizontal",role:d=s!=="hr"?"separator":void 0,textAlign:p="center",variant:h="fullWidth"}=r,m=Ge(r,S0e),y=L({},r,{absolute:i,component:s,flexItem:l,light:u,orientation:c,role:d,textAlign:p,variant:h}),O=T0e(y);return M.jsx(w0e,L({as:s,className:et(O.root,a),role:d,ref:n,ownerState:y},m,{children:o?M.jsx(k0e,{className:O.wrapper,ownerState:y,children:o}):null}))});jQ.muiSkipListHighlight=!0;const rc=jQ,x0e=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function C0e(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),o=Xs(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const u=o.getComputedStyle(t);a=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let s=0,l=0;if(a&&a!=="none"&&typeof a=="string"){const u=a.split("(")[1].split(")")[0].split(",");s=parseInt(u[4],10),l=parseInt(u[5],10)}return e==="left"?i?`translateX(${i.right+s-r.left}px)`:`translateX(${o.innerWidth+s-r.left}px)`:e==="right"?i?`translateX(-${r.right-i.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e==="up"?i?`translateY(${i.bottom+l-r.top}px)`:`translateY(${o.innerHeight+l-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function A0e(e){return typeof e=="function"?e():e}function cv(e,t,n){const r=A0e(n),i=C0e(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const _0e=N.forwardRef(function(t,n){const r=bi(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,container:u,direction:c="down",easing:d=i,in:p,onEnter:h,onEntered:m,onEntering:y,onExit:O,onExited:b,onExiting:v,style:S,timeout:k=o,TransitionComponent:C=ek}=t,w=Ge(t,x0e),E=N.useRef(null),$=yn(l.ref,E,n),D=Y=>q=>{Y&&(q===void 0?Y(E.current):Y(E.current,q))},R=D((Y,q)=>{cv(c,Y,u),lD(Y),h&&h(Y,q)}),B=D((Y,q)=>{const j=Mm({timeout:k,style:S,easing:d},{mode:"enter"});Y.style.webkitTransition=r.transitions.create("-webkit-transform",L({},j)),Y.style.transition=r.transitions.create("transform",L({},j)),Y.style.webkitTransform="none",Y.style.transform="none",y&&y(Y,q)}),U=D(m),V=D(v),z=D(Y=>{const q=Mm({timeout:k,style:S,easing:d},{mode:"exit"});Y.style.webkitTransition=r.transitions.create("-webkit-transform",q),Y.style.transition=r.transitions.create("transform",q),cv(c,Y,u),O&&O(Y)}),Q=D(Y=>{Y.style.webkitTransition="",Y.style.transition="",b&&b(Y)}),X=Y=>{a&&a(E.current,Y)},Z=N.useCallback(()=>{E.current&&cv(c,E.current,u)},[c,u]);return N.useEffect(()=>{if(p||c==="down"||c==="right")return;const Y=lg(()=>{E.current&&cv(c,E.current,u)}),q=Xs(E.current);return q.addEventListener("resize",Y),()=>{Y.clear(),q.removeEventListener("resize",Y)}},[c,p,u]),N.useEffect(()=>{p||Z()},[p,Z]),M.jsx(C,L({nodeRef:E,onEnter:R,onEntered:U,onEntering:B,onExit:z,onExited:Q,onExiting:V,addEndListener:X,appear:s,in:p,timeout:k},w,{children:(Y,q)=>N.cloneElement(l,L({ref:$,style:L({visibility:Y==="exited"&&!p?"hidden":void 0},S,l.props.style)},q))}))}),R0e=_0e;function I0e(e){return At("MuiDrawer",e)}_t("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const N0e=["BackdropProps"],D0e=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],zQ=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},P0e=e=>{const{classes:t,anchor:n,variant:r}=e,i={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${tt(n)}`,r!=="temporary"&&`paperAnchorDocked${tt(n)}`]};return Ct(i,I0e,t)},L0e=ke(I1,{name:"MuiDrawer",slot:"Root",overridesResolver:zQ})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),XB=ke("div",{shouldForwardProp:Xi,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:zQ})({flex:"0 0 auto"}),M0e=ke(Ra,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${tt(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${tt(n.anchor)}`]]}})(({theme:e,ownerState:t})=>L({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),VQ={left:"right",right:"left",top:"down",bottom:"up"};function $0e(e){return["left","right"].indexOf(e)!==-1}function F0e(e,t){return e.direction==="rtl"&&$0e(t)?VQ[t]:t}const B0e=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDrawer"}),i=bi(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:a="left",BackdropProps:s,children:l,className:u,elevation:c=16,hideBackdrop:d=!1,ModalProps:{BackdropProps:p}={},onClose:h,open:m=!1,PaperProps:y={},SlideProps:O,TransitionComponent:b=R0e,transitionDuration:v=o,variant:S="temporary"}=r,k=Ge(r.ModalProps,N0e),C=Ge(r,D0e),w=N.useRef(!1);N.useEffect(()=>{w.current=!0},[]);const E=F0e(i,a),D=L({},r,{anchor:a,elevation:c,open:m,variant:S},C),R=P0e(D),B=M.jsx(M0e,L({elevation:S==="temporary"?c:0,square:!0},y,{className:et(R.paper,y.className),ownerState:D,children:l}));if(S==="permanent")return M.jsx(XB,L({className:et(R.root,R.docked,u),ownerState:D,ref:n},C,{children:B}));const U=M.jsx(b,L({in:m,direction:VQ[E],timeout:v,appear:w.current},O,{children:B}));return S==="persistent"?M.jsx(XB,L({className:et(R.root,R.docked,u),ownerState:D,ref:n},C,{children:U})):M.jsx(L0e,L({BackdropProps:L({},s,p,{transitionDuration:v}),className:et(R.root,R.modal,u),open:m,ownerState:D,onClose:h,hideBackdrop:d,ref:n},C,k,{children:U}))}),U0e=B0e,j0e=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],z0e=e=>{const{classes:t,disableUnderline:n}=e,i=Ct({root:["root",!n&&"underline"],input:["input"]},Hhe,t);return L({},t,i)},V0e=ke(ak,{shouldForwardProp:e=>Xi(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ik(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",i=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return L({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${Ka.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${Ka.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ka.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ka.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(.${Ka.disabled}, .${Ka.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ka.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&L({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),H0e=ke(sk,{name:"MuiFilledInput",slot:"Input",overridesResolver:ok})(({theme:e,ownerState:t})=>L({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),HQ=N.forwardRef(function(t,n){var r,i,o,a;const s=gt({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:h,slots:m={},type:y="text"}=s,O=Ge(s,j0e),b=L({},s,{fullWidth:c,inputComponent:d,multiline:p,type:y}),v=z0e(s),S={root:{ownerState:b},input:{ownerState:b}},k=h??u?No(S,h??u):S,C=(r=(i=m.root)!=null?i:l.Root)!=null?r:V0e,w=(o=(a=m.input)!=null?a:l.Input)!=null?o:H0e;return M.jsx(bD,L({slots:{root:C,input:w},componentsProps:k,fullWidth:c,inputComponent:d,multiline:p,ref:n,type:y},O,{classes:v}))});HQ.muiName="Input";const WQ=HQ;function W0e(e){return At("MuiFormControl",e)}_t("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Q0e=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Y0e=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${tt(n)}`,r&&"fullWidth"]};return Ct(i,W0e,t)},G0e=ke("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>L({},t.root,t[`margin${tt(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>L({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),q0e=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiFormControl"}),{children:i,className:o,color:a="primary",component:s="div",disabled:l=!1,error:u=!1,focused:c,fullWidth:d=!1,hiddenLabel:p=!1,margin:h="none",required:m=!1,size:y="medium",variant:O="outlined"}=r,b=Ge(r,Q0e),v=L({},r,{color:a,component:s,disabled:l,error:u,fullWidth:d,hiddenLabel:p,margin:h,required:m,size:y,variant:O}),S=Y0e(v),[k,C]=N.useState(()=>{let V=!1;return i&&N.Children.forEach(i,z=>{if(!lb(z,["Input","Select"]))return;const Q=lb(z,["Select"])?z.props.input:z;Q&&Dhe(Q.props)&&(V=!0)}),V}),[w,E]=N.useState(()=>{let V=!1;return i&&N.Children.forEach(i,z=>{lb(z,["Input","Select"])&&(US(z.props,!0)||US(z.props.inputProps,!0))&&(V=!0)}),V}),[$,D]=N.useState(!1);l&&$&&D(!1);const R=c!==void 0&&!l?c:$;let B;const U=N.useMemo(()=>({adornedStart:k,setAdornedStart:C,color:a,disabled:l,error:u,filled:w,focused:R,fullWidth:d,hiddenLabel:p,size:y,onBlur:()=>{D(!1)},onEmpty:()=>{E(!1)},onFilled:()=>{E(!0)},onFocus:()=>{D(!0)},registerEffect:B,required:m,variant:O}),[k,a,l,u,w,R,d,p,B,m,y,O]);return M.jsx(rk.Provider,{value:U,children:M.jsx(G0e,L({as:s,ownerState:v,className:et(S.root,o),ref:n},b,{children:i}))})}),vp=q0e,Z0e=Bce({createStyledComponent:ke("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>gt({props:e,name:"MuiStack"})}),ho=Z0e;function X0e(e){return At("MuiFormControlLabel",e)}const K0e=_t("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),z0=K0e,J0e=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],ebe=e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:o}=e,a={root:["root",n&&"disabled",`labelPlacement${tt(r)}`,i&&"error",o&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return Ct(a,X0e,t)},tbe=ke("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${z0.label}`]:t.label},t.root,t[`labelPlacement${tt(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>L({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${z0.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},{[`& .${z0.label}`]:{[`&.${z0.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),nbe=ke("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${z0.error}`]:{color:(e.vars||e).palette.error.main}})),rbe=N.forwardRef(function(t,n){var r,i;const o=gt({props:t,name:"MuiFormControlLabel"}),{className:a,componentsProps:s={},control:l,disabled:u,disableTypography:c,label:d,labelPlacement:p="end",required:h,slotProps:m={}}=o,y=Ge(o,J0e),O=_u(),b=(r=u??l.props.disabled)!=null?r:O==null?void 0:O.disabled,v=h??l.props.required,S={disabled:b,required:v};["checked","name","onChange","value","inputRef"].forEach(D=>{typeof l.props[D]>"u"&&typeof o[D]<"u"&&(S[D]=o[D])});const k=qd({props:o,muiFormControl:O,states:["error"]}),C=L({},o,{disabled:b,labelPlacement:p,required:v,error:k.error}),w=ebe(C),E=(i=m.typography)!=null?i:s.typography;let $=d;return $!=null&&$.type!==Gr&&!c&&($=M.jsx(Gr,L({component:"span"},E,{className:et(w.label,E==null?void 0:E.className),children:$}))),M.jsxs(tbe,L({className:et(w.root,a),ownerState:C,ref:n},y,{children:[N.cloneElement(l,S),v?M.jsxs(ho,{display:"block",children:[$,M.jsxs(nbe,{ownerState:C,"aria-hidden":!0,className:w.asterisk,children:[" ","*"]})]}):$]}))}),dy=rbe;function ibe(e){return At("MuiFormGroup",e)}_t("MuiFormGroup",["root","row","error"]);const obe=["className","row"],abe=e=>{const{classes:t,row:n,error:r}=e;return Ct({root:["root",n&&"row",r&&"error"]},ibe,t)},sbe=ke("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>L({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),lbe=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiFormGroup"}),{className:i,row:o=!1}=r,a=Ge(r,obe),s=_u(),l=qd({props:r,muiFormControl:s,states:["error"]}),u=L({},r,{row:o,error:l.error}),c=abe(u);return M.jsx(sbe,L({className:et(c.root,i),ownerState:u,ref:n},a))}),vD=lbe;function ube(e){return At("MuiFormHelperText",e)}const cbe=_t("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),KB=cbe;var JB;const dbe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],fbe=e=>{const{classes:t,contained:n,size:r,disabled:i,error:o,filled:a,focused:s,required:l}=e,u={root:["root",i&&"disabled",o&&"error",r&&`size${tt(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return Ct(u,ube,t)},pbe=ke("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${tt(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>L({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${KB.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${KB.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),hbe=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiFormHelperText"}),{children:i,className:o,component:a="p"}=r,s=Ge(r,dbe),l=_u(),u=qd({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),c=L({},r,{component:a,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=fbe(c);return M.jsx(pbe,L({as:a,ownerState:c,className:et(d.root,o),ref:n},s,{children:i===" "?JB||(JB=M.jsx("span",{className:"notranslate",children:"​"})):i}))}),fg=hbe;function mbe(e){return At("MuiFormLabel",e)}const gb=_t("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),gbe=["children","className","color","component","disabled","error","filled","focused","required"],bbe=e=>{const{classes:t,color:n,focused:r,disabled:i,error:o,filled:a,required:s}=e,l={root:["root",`color${tt(n)}`,i&&"disabled",o&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",o&&"error"]};return Ct(l,mbe,t)},ybe=ke("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>L({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>L({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${gb.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${gb.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${gb.error}`]:{color:(e.vars||e).palette.error.main}})),Obe=ke("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${gb.error}`]:{color:(e.vars||e).palette.error.main}})),vbe=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiFormLabel"}),{children:i,className:o,component:a="label"}=r,s=Ge(r,gbe),l=_u(),u=qd({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),c=L({},r,{color:u.color||"primary",component:a,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=bbe(c);return M.jsxs(ybe,L({as:a,ownerState:c,className:et(d.root,o),ref:n},s,{children:[i,u.required&&M.jsxs(Obe,{ownerState:c,"aria-hidden":!0,className:d.asterisk,children:[" ","*"]})]}))}),ck=vbe,Ebe=N.createContext(),e8=Ebe;function Sbe(e){return At("MuiGrid",e)}const Tbe=[0,1,2,3,4,5,6,7,8,9,10],wbe=["column-reverse","column","row-reverse","row"],kbe=["nowrap","wrap-reverse","wrap"],i0=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],fy=_t("MuiGrid",["root","container","item","zeroMinWidth",...Tbe.map(e=>`spacing-xs-${e}`),...wbe.map(e=>`direction-xs-${e}`),...kbe.map(e=>`wrap-xs-${e}`),...i0.map(e=>`grid-xs-${e}`),...i0.map(e=>`grid-sm-${e}`),...i0.map(e=>`grid-md-${e}`),...i0.map(e=>`grid-lg-${e}`),...i0.map(e=>`grid-xl-${e}`)]),xbe=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Zh(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function Cbe({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,i)=>{let o={};if(t[i]&&(n=t[i]),!n)return r;if(n===!0)o={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=Yf({values:t.columns,breakpoints:e.breakpoints.values}),s=typeof a=="object"?a[i]:a;if(s==null)return r;const l=`${Math.round(n/s*1e8)/1e6}%`;let u={};if(t.container&&t.item&&t.columnSpacing!==0){const c=e.spacing(t.columnSpacing);if(c!=="0px"){const d=`calc(${l} + ${Zh(c)})`;u={flexBasis:d,maxWidth:d}}}o=L({flexBasis:l,flexGrow:0,maxWidth:l},u)}return e.breakpoints.values[i]===0?Object.assign(r,o):r[e.breakpoints.up(i)]=o,r},{})}function Abe({theme:e,ownerState:t}){const n=Yf({values:t.direction,breakpoints:e.breakpoints.values});return Aa({theme:e},n,r=>{const i={flexDirection:r};return r.indexOf("column")===0&&(i[`& > .${fy.item}`]={maxWidth:"none"}),i})}function QQ({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(i=>{n===""&&t[i]!==0&&(n=i)});const r=Object.keys(e).sort((i,o)=>e[i]-e[o]);return r.slice(0,r.indexOf(n))}function _be({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let i={};if(n&&r!==0){const o=Yf({values:r,breakpoints:e.breakpoints.values});let a;typeof o=="object"&&(a=QQ({breakpoints:e.breakpoints.values,values:o})),i=Aa({theme:e},o,(s,l)=>{var u;const c=e.spacing(s);return c!=="0px"?{marginTop:`-${Zh(c)}`,[`& > .${fy.item}`]:{paddingTop:Zh(c)}}:(u=a)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${fy.item}`]:{paddingTop:0}}})}return i}function Rbe({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let i={};if(n&&r!==0){const o=Yf({values:r,breakpoints:e.breakpoints.values});let a;typeof o=="object"&&(a=QQ({breakpoints:e.breakpoints.values,values:o})),i=Aa({theme:e},o,(s,l)=>{var u;const c=e.spacing(s);return c!=="0px"?{width:`calc(100% + ${Zh(c)})`,marginLeft:`-${Zh(c)}`,[`& > .${fy.item}`]:{paddingLeft:Zh(c)}}:(u=a)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${fy.item}`]:{paddingLeft:0}}})}return i}function Ibe(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(i=>{const o=e[i];Number(o)>0&&r.push(n[`spacing-${i}-${String(o)}`])}),r}const Nbe=ke("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:i,item:o,spacing:a,wrap:s,zeroMinWidth:l,breakpoints:u}=n;let c=[];r&&(c=Ibe(a,u,t));const d=[];return u.forEach(p=>{const h=n[p];h&&d.push(t[`grid-${p}-${String(h)}`])}),[t.root,r&&t.container,o&&t.item,l&&t.zeroMinWidth,...c,i!=="row"&&t[`direction-xs-${String(i)}`],s!=="wrap"&&t[`wrap-xs-${String(s)}`],...d]}})(({ownerState:e})=>L({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),Abe,_be,Rbe,Cbe);function Dbe(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const i=e[r];if(Number(i)>0){const o=`spacing-${r}-${String(i)}`;n.push(o)}}),n}const Pbe=e=>{const{classes:t,container:n,direction:r,item:i,spacing:o,wrap:a,zeroMinWidth:s,breakpoints:l}=e;let u=[];n&&(u=Dbe(o,l));const c=[];l.forEach(p=>{const h=e[p];h&&c.push(`grid-${p}-${String(h)}`)});const d={root:["root",n&&"container",i&&"item",s&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,a!=="wrap"&&`wrap-xs-${String(a)}`,...c]};return Ct(d,Sbe,t)},Lbe=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiGrid"}),{breakpoints:i}=bi(),o=Xw(r),{className:a,columns:s,columnSpacing:l,component:u="div",container:c=!1,direction:d="row",item:p=!1,rowSpacing:h,spacing:m=0,wrap:y="wrap",zeroMinWidth:O=!1}=o,b=Ge(o,xbe),v=h||m,S=l||m,k=N.useContext(e8),C=c?s||12:k,w={},E=L({},b);i.keys.forEach(R=>{b[R]!=null&&(w[R]=b[R],delete E[R])});const $=L({},o,{columns:C,container:c,direction:d,item:p,rowSpacing:v,columnSpacing:S,wrap:y,zeroMinWidth:O,spacing:m},w,{breakpoints:i.keys}),D=Pbe($);return M.jsx(e8.Provider,{value:C,children:M.jsx(Nbe,L({ownerState:$,className:et(D.root,a),as:u,ref:n},E))})}),Ih=Lbe,Mbe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function h_(e){return`scale(${e}, ${e**2})`}const $be={entering:{opacity:1,transform:h_(1)},entered:{opacity:1,transform:"none"}},SC=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),YQ=N.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:o,easing:a,in:s,onEnter:l,onEntered:u,onEntering:c,onExit:d,onExited:p,onExiting:h,style:m,timeout:y="auto",TransitionComponent:O=ek}=t,b=Ge(t,Mbe),v=N.useRef(),S=N.useRef(),k=bi(),C=N.useRef(null),w=yn(C,o.ref,n),E=Q=>X=>{if(Q){const Z=C.current;X===void 0?Q(Z):Q(Z,X)}},$=E(c),D=E((Q,X)=>{lD(Q);const{duration:Z,delay:Y,easing:q}=Mm({style:m,timeout:y,easing:a},{mode:"enter"});let j;y==="auto"?(j=k.transitions.getAutoHeightDuration(Q.clientHeight),S.current=j):j=Z,Q.style.transition=[k.transitions.create("opacity",{duration:j,delay:Y}),k.transitions.create("transform",{duration:SC?j:j*.666,delay:Y,easing:q})].join(","),l&&l(Q,X)}),R=E(u),B=E(h),U=E(Q=>{const{duration:X,delay:Z,easing:Y}=Mm({style:m,timeout:y,easing:a},{mode:"exit"});let q;y==="auto"?(q=k.transitions.getAutoHeightDuration(Q.clientHeight),S.current=q):q=X,Q.style.transition=[k.transitions.create("opacity",{duration:q,delay:Z}),k.transitions.create("transform",{duration:SC?q:q*.666,delay:SC?Z:Z||q*.333,easing:Y})].join(","),Q.style.opacity=0,Q.style.transform=h_(.75),d&&d(Q)}),V=E(p),z=Q=>{y==="auto"&&(v.current=setTimeout(Q,S.current||0)),r&&r(C.current,Q)};return N.useEffect(()=>()=>{clearTimeout(v.current)},[]),M.jsx(O,L({appear:i,in:s,nodeRef:C,onEnter:D,onEntered:R,onEntering:$,onExit:U,onExited:V,onExiting:B,addEndListener:z,timeout:y==="auto"?null:y},b,{children:(Q,X)=>N.cloneElement(o,L({style:L({opacity:0,transform:h_(.75),visibility:Q==="exited"&&!s?"hidden":void 0},$be[Q],m,o.props.style),ref:w},X))}))});YQ.muiSupportAuto=!0;const jS=YQ;function Fbe(e,t,n,r,i){const[o,a]=N.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return Xr(()=>{let s=!0;if(!n)return;const l=n(e),u=()=>{s&&a(l.matches)};return u(),l.addListener(u),()=>{s=!1,l.removeListener(u)}},[e,n]),o}const GQ=N.useSyncExternalStore;function Bbe(e,t,n,r,i){const o=N.useCallback(()=>t,[t]),a=N.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){const{matches:c}=r(e);return()=>c}return o},[o,e,r,i,n]),[s,l]=N.useMemo(()=>{if(n===null)return[o,()=>()=>{}];const c=n(e);return[()=>c.matches,d=>(c.addListener(d),()=>{c.removeListener(d)})]},[o,n,e]);return GQ(l,s,a)}function pg(e,t={}){const n=Zw(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:o=r?window.matchMedia:null,ssrMatchMedia:a=null,noSsr:s=!1}=gQ({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(GQ!==void 0?Bbe:Fbe)(l,i,o,a,s)}const Ube=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],jbe=e=>{const{classes:t,disableUnderline:n}=e,i=Ct({root:["root",!n&&"underline"],input:["input"]},Uhe,t);return L({},t,i)},zbe=ke(ak,{shouldForwardProp:e=>Xi(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ik(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),L({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Xc.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Xc.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(.${Xc.disabled}, .${Xc.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Xc.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Vbe=ke(sk,{name:"MuiInput",slot:"Input",overridesResolver:ok})({}),qQ=N.forwardRef(function(t,n){var r,i,o,a;const s=gt({props:t,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:c,fullWidth:d=!1,inputComponent:p="input",multiline:h=!1,slotProps:m,slots:y={},type:O="text"}=s,b=Ge(s,Ube),v=jbe(s),k={root:{ownerState:{disableUnderline:l}}},C=m??c?No(m??c,k):k,w=(r=(i=y.root)!=null?i:u.Root)!=null?r:zbe,E=(o=(a=y.input)!=null?a:u.Input)!=null?o:Vbe;return M.jsx(bD,L({slots:{root:w,input:E},slotProps:C,fullWidth:d,inputComponent:p,multiline:h,ref:n,type:O},b,{classes:v}))});qQ.muiName="Input";const ZQ=qQ;function Hbe(e){return At("MuiInputAdornment",e)}const Wbe=_t("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),t8=Wbe;var n8;const Qbe=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Ybe=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${tt(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},Gbe=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:o,variant:a}=e,s={root:["root",n&&"disablePointerEvents",i&&`position${tt(i)}`,a,r&&"hiddenLabel",o&&`size${tt(o)}`]};return Ct(s,Hbe,t)},qbe=ke("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Ybe})(({theme:e,ownerState:t})=>L({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${t8.positionStart}&:not(.${t8.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),Zbe=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiInputAdornment"}),{children:i,className:o,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:u,variant:c}=r,d=Ge(r,Qbe),p=_u()||{};let h=c;c&&p.variant,p&&!h&&(h=p.variant);const m=L({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:u,variant:h}),y=Gbe(m);return M.jsx(rk.Provider,{value:null,children:M.jsx(qbe,L({as:a,ownerState:m,className:et(y.root,o),ref:n},d,{children:typeof i=="string"&&!l?M.jsx(Gr,{color:"text.secondary",children:i}):M.jsxs(N.Fragment,{children:[u==="start"?n8||(n8=M.jsx("span",{className:"notranslate",children:"​"})):null,i]})}))})}),ED=Zbe;function Xbe(e){return At("MuiInputLabel",e)}_t("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Kbe=["disableAnimation","margin","shrink","variant","className"],Jbe=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:o,variant:a,required:s}=e,l={root:["root",n&&"formControl",!o&&"animated",i&&"shrink",r&&r!=="normal"&&`size${tt(r)}`,a],asterisk:[s&&"asterisk"]},u=Ct(l,Xbe,t);return L({},t,u)},eye=ke(ck,{shouldForwardProp:e=>Xi(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${gb.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>L({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&L({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&L({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&L({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),tye=N.forwardRef(function(t,n){const r=gt({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:o,className:a}=r,s=Ge(r,Kbe),l=_u();let u=o;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const c=qd({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),d=L({},r,{disableAnimation:i,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),p=Jbe(d);return M.jsx(eye,L({"data-shrink":u,ownerState:d,ref:n,className:et(p.root,a)},s,{classes:p}))}),XQ=tye,nye=N.createContext({}),Hs=nye;function rye(e){return At("MuiList",e)}_t("MuiList",["root","padding","dense","subheader"]);const iye=["children","className","component","dense","disablePadding","subheader"],oye=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return Ct({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},rye,t)},aye=ke("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>L({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),sye=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiList"}),{children:i,className:o,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=r,c=Ge(r,iye),d=N.useMemo(()=>({dense:s}),[s]),p=L({},r,{component:a,dense:s,disablePadding:l}),h=oye(p);return M.jsx(Hs.Provider,{value:d,children:M.jsxs(aye,L({as:a,className:et(h.root,o),ref:n,ownerState:p},c,{children:[u,i]}))})}),KQ=sye;function lye(e){return At("MuiListItem",e)}const uye=_t("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),lh=uye;function cye(e){return At("MuiListItemButton",e)}const dye=_t("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),uh=dye,fye=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],pye=(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]},hye=e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:o,divider:a,selected:s}=e,u=Ct({root:["root",r&&"dense",!o&&"gutters",a&&"divider",i&&"disabled",t==="flex-start"&&"alignItemsFlexStart",s&&"selected"]},cye,n);return L({},n,u)},mye=ke(fs,{shouldForwardProp:e=>Xi(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:pye})(({theme:e,ownerState:t})=>L({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${uh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:un(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${uh.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:un(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${uh.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:un(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})`:un(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${uh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${uh.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})),gye=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiListItemButton"}),{alignItems:i="center",autoFocus:o=!1,component:a="div",children:s,dense:l=!1,disableGutters:u=!1,divider:c=!1,focusVisibleClassName:d,selected:p=!1,className:h}=r,m=Ge(r,fye),y=N.useContext(Hs),O=N.useMemo(()=>({dense:l||y.dense||!1,alignItems:i,disableGutters:u}),[i,y.dense,l,u]),b=N.useRef(null);Xr(()=>{o&&b.current&&b.current.focus()},[o]);const v=L({},r,{alignItems:i,dense:O.dense,disableGutters:u,divider:c,selected:p}),S=hye(v),k=yn(b,n);return M.jsx(Hs.Provider,{value:O,children:M.jsx(mye,L({ref:k,href:m.href||m.to,component:(m.href||m.to)&&a==="div"?"button":a,focusVisibleClassName:et(S.focusVisible,d),ownerState:v,className:et(S.root,h)},m,{classes:S,children:s}))})}),TC=gye;function bye(e){return At("MuiListItemSecondaryAction",e)}_t("MuiListItemSecondaryAction",["root","disableGutters"]);const yye=["className"],Oye=e=>{const{disableGutters:t,classes:n}=e;return Ct({root:["root",t&&"disableGutters"]},bye,n)},vye=ke("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>L({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),JQ=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=r,o=Ge(r,yye),a=N.useContext(Hs),s=L({},r,{disableGutters:a.disableGutters}),l=Oye(s);return M.jsx(vye,L({className:et(l.root,i),ownerState:s,ref:n},o))});JQ.muiName="ListItemSecondaryAction";const zS=JQ,Eye=["className"],Sye=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Tye=(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]},wye=e=>{const{alignItems:t,button:n,classes:r,dense:i,disabled:o,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return Ct({root:["root",i&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",o&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},lye,r)},kye=ke("div",{name:"MuiListItem",slot:"Root",overridesResolver:Tye})(({theme:e,ownerState:t})=>L({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&L({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${uh.root}`]:{paddingRight:48}},{[`&.${lh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${lh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:un(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${lh.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:un(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${lh.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"}},[`&.${lh.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:un(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})`:un(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),xye=ke("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Cye=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiListItem"}),{alignItems:i="center",autoFocus:o=!1,button:a=!1,children:s,className:l,component:u,components:c={},componentsProps:d={},ContainerComponent:p="li",ContainerProps:{className:h}={},dense:m=!1,disabled:y=!1,disableGutters:O=!1,disablePadding:b=!1,divider:v=!1,focusVisibleClassName:S,secondaryAction:k,selected:C=!1,slotProps:w={},slots:E={}}=r,$=Ge(r.ContainerProps,Eye),D=Ge(r,Sye),R=N.useContext(Hs),B=N.useMemo(()=>({dense:m||R.dense||!1,alignItems:i,disableGutters:O}),[i,R.dense,m,O]),U=N.useRef(null);Xr(()=>{o&&U.current&&U.current.focus()},[o]);const V=N.Children.toArray(s),z=V.length&&lb(V[V.length-1],["ListItemSecondaryAction"]),Q=L({},r,{alignItems:i,autoFocus:o,button:a,dense:B.dense,disabled:y,disableGutters:O,disablePadding:b,divider:v,hasSecondaryAction:z,selected:C}),X=wye(Q),Z=yn(U,n),Y=E.root||c.Root||kye,q=w.root||d.root||{},j=L({className:et(X.root,q.className,l),disabled:y},D);let le=u||"li";return a&&(j.component=u||"div",j.focusVisibleClassName=et(lh.focusVisible,S),le=fs),z?(le=!j.component&&!u?"div":le,p==="li"&&(le==="li"?le="div":j.component==="li"&&(j.component="div")),M.jsx(Hs.Provider,{value:B,children:M.jsxs(xye,L({as:p,className:et(X.container,h),ref:Z,ownerState:Q},$,{children:[M.jsx(Y,L({},q,!Su(Y)&&{as:le,ownerState:L({},Q,q.ownerState)},j,{children:V})),V.pop()]}))})):M.jsx(Hs.Provider,{value:B,children:M.jsxs(Y,L({},q,{as:le,ref:Z},!Su(Y)&&{ownerState:L({},Q,q.ownerState)},j,{children:[V,k&&M.jsx(zS,{children:k})]}))})}),ch=Cye;function Aye(e){return At("MuiListItemAvatar",e)}_t("MuiListItemAvatar",["root","alignItemsFlexStart"]);const _ye=["className"],Rye=e=>{const{alignItems:t,classes:n}=e;return Ct({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Aye,n)},Iye=ke("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>L({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),Nye=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiListItemAvatar"}),{className:i}=r,o=Ge(r,_ye),a=N.useContext(Hs),s=L({},r,{alignItems:a.alignItems}),l=Rye(s);return M.jsx(Iye,L({className:et(l.root,i),ownerState:s,ref:n},o))}),Dye=Nye;function Pye(e){return At("MuiListItemIcon",e)}const Lye=_t("MuiListItemIcon",["root","alignItemsFlexStart"]),r8=Lye,Mye=["className"],$ye=e=>{const{alignItems:t,classes:n}=e;return Ct({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Pye,n)},Fye=ke("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>L({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),Bye=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiListItemIcon"}),{className:i}=r,o=Ge(r,Mye),a=N.useContext(Hs),s=L({},r,{alignItems:a.alignItems}),l=$ye(s);return M.jsx(Fye,L({className:et(l.root,i),ownerState:s,ref:n},o))}),SD=Bye;function Uye(e){return At("MuiListItemText",e)}const jye=_t("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),VS=jye,zye=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Vye=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:o}=e;return Ct({root:["root",n&&"inset",o&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},Uye,t)},Hye=ke("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${VS.primary}`]:t.primary},{[`& .${VS.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>L({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Wye=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiListItemText"}),{children:i,className:o,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:u,secondary:c,secondaryTypographyProps:d}=r,p=Ge(r,zye),{dense:h}=N.useContext(Hs);let m=l??i,y=c;const O=L({},r,{disableTypography:a,inset:s,primary:!!m,secondary:!!y,dense:h}),b=Vye(O);return m!=null&&m.type!==Gr&&!a&&(m=M.jsx(Gr,L({variant:h?"body2":"body1",className:b.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:m}))),y!=null&&y.type!==Gr&&!a&&(y=M.jsx(Gr,L({variant:"body2",className:b.secondary,color:"text.secondary",display:"block"},d,{children:y}))),M.jsxs(Hye,L({className:et(b.root,o),ownerState:O,ref:n},p,{children:[m,y]}))}),qf=Wye,Qye=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function wC(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function i8(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function eY(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 o0(e,t,n,r,i,o){let a=!1,s=i(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!eY(s,o)||l)s=i(e,s,n);else return s.focus(),!0}return!1}const Yye=N.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:o=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=t,p=Ge(t,Qye),h=N.useRef(null),m=N.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Xr(()=>{i&&h.current.focus()},[i]),N.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(S,k)=>{const C=!h.current.style.width;if(S.clientHeight{const k=h.current,C=S.key,w=Hr(k).activeElement;if(C==="ArrowDown")S.preventDefault(),o0(k,w,u,l,wC);else if(C==="ArrowUp")S.preventDefault(),o0(k,w,u,l,i8);else if(C==="Home")S.preventDefault(),o0(k,null,u,l,wC);else if(C==="End")S.preventDefault(),o0(k,null,u,l,i8);else if(C.length===1){const E=m.current,$=C.toLowerCase(),D=performance.now();E.keys.length>0&&(D-E.lastTime>500?(E.keys=[],E.repeating=!0,E.previousKeyMatched=!0):E.repeating&&$!==E.keys[0]&&(E.repeating=!1)),E.lastTime=D,E.keys.push($);const R=w&&!E.repeating&&eY(w,E);E.previousKeyMatched&&(R||o0(k,w,!1,l,wC,E))?S.preventDefault():E.previousKeyMatched=!1}c&&c(S)},O=yn(h,n);let b=-1;N.Children.forEach(a,(S,k)=>{if(!N.isValidElement(S)){b===k&&(b+=1,b>=a.length&&(b=-1));return}S.props.disabled||(d==="selectedMenu"&&S.props.selected||b===-1)&&(b=k),b===k&&(S.props.disabled||S.props.muiSkipListHighlight||S.type.muiSkipListHighlight)&&(b+=1,b>=a.length&&(b=-1))});const v=N.Children.map(a,(S,k)=>{if(k===b){const C={};return o&&(C.autoFocus=!0),S.props.tabIndex===void 0&&d==="selectedMenu"&&(C.tabIndex=0),N.cloneElement(S,C)}return S});return M.jsx(KQ,L({role:"menu",ref:O,className:s,onKeyDown:y,tabIndex:i?0:-1},p,{children:v}))}),N1=Yye;function Gye(e){return At("MuiPopover",e)}_t("MuiPopover",["root","paper"]);const qye=["onEntering"],Zye=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Xye=["slotProps"];function o8(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function a8(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function s8(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function kC(e){return typeof e=="function"?e():e}const Kye=e=>{const{classes:t}=e;return Ct({root:["root"],paper:["paper"]},Gye,t)},Jye=ke(I1,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),tY=ke(Ra,{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}),e1e=N.forwardRef(function(t,n){var r,i,o;const a=gt({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:p,className:h,container:m,elevation:y=8,marginThreshold:O=16,open:b,PaperProps:v={},slots:S,slotProps:k,transformOrigin:C={vertical:"top",horizontal:"left"},TransitionComponent:w=jS,transitionDuration:E="auto",TransitionProps:{onEntering:$}={},disableScrollLock:D=!1}=a,R=Ge(a.TransitionProps,qye),B=Ge(a,Zye),U=(r=k==null?void 0:k.paper)!=null?r:v,V=N.useRef(),z=yn(V,U.ref),Q=L({},a,{anchorOrigin:u,anchorReference:d,elevation:y,marginThreshold:O,externalPaperSlotProps:U,transformOrigin:C,TransitionComponent:w,transitionDuration:E,TransitionProps:R}),X=Kye(Q),Z=N.useCallback(()=>{if(d==="anchorPosition")return c;const ye=kC(l),$e=(ye&&ye.nodeType===1?ye:Hr(V.current).body).getBoundingClientRect();return{top:$e.top+o8($e,u.vertical),left:$e.left+a8($e,u.horizontal)}},[l,u.horizontal,u.vertical,c,d]),Y=N.useCallback(ye=>({vertical:o8(ye,C.vertical),horizontal:a8(ye,C.horizontal)}),[C.horizontal,C.vertical]),q=N.useCallback(ye=>{const ze={width:ye.offsetWidth,height:ye.offsetHeight},$e=Y(ze);if(d==="none")return{top:null,left:null,transformOrigin:s8($e)};const He=Z();let dt=He.top-$e.vertical,Be=He.left-$e.horizontal;const re=dt+ze.height,ee=Be+ze.width,J=Xs(kC(l)),_e=J.innerHeight-O,Pe=J.innerWidth-O;if(O!==null&&dt_e){const Ie=re-_e;dt-=Ie,$e.vertical+=Ie}if(O!==null&&BePe){const Ie=ee-Pe;Be-=Ie,$e.horizontal+=Ie}return{top:`${Math.round(dt)}px`,left:`${Math.round(Be)}px`,transformOrigin:s8($e)}},[l,d,Z,Y,O]),[j,le]=N.useState(b),Ee=N.useCallback(()=>{const ye=V.current;if(!ye)return;const ze=q(ye);ze.top!==null&&(ye.style.top=ze.top),ze.left!==null&&(ye.style.left=ze.left),ye.style.transformOrigin=ze.transformOrigin,le(!0)},[q]);N.useEffect(()=>(D&&window.addEventListener("scroll",Ee),()=>window.removeEventListener("scroll",Ee)),[l,D,Ee]);const G=(ye,ze)=>{$&&$(ye,ze),Ee()},ue=()=>{le(!1)};N.useEffect(()=>{b&&Ee()}),N.useImperativeHandle(s,()=>b?{updatePosition:()=>{Ee()}}:null,[b,Ee]),N.useEffect(()=>{if(!b)return;const ye=lg(()=>{Ee()}),ze=Xs(l);return ze.addEventListener("resize",ye),()=>{ye.clear(),ze.removeEventListener("resize",ye)}},[l,b,Ee]);let ge=E;E==="auto"&&!w.muiSupportAuto&&(ge=void 0);const he=m||(l?Hr(kC(l)).body:void 0),Ne=(i=S==null?void 0:S.root)!=null?i:Jye,Le=(o=S==null?void 0:S.paper)!=null?o:tY,qe=kn({elementType:Le,externalSlotProps:L({},U,{style:j?U.style:L({},U.style,{opacity:0})}),additionalProps:{elevation:y,ref:z},ownerState:Q,className:et(X.paper,U==null?void 0:U.className)}),rt=kn({elementType:Ne,externalSlotProps:(k==null?void 0:k.root)||{},externalForwardedProps:B,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:he,open:b},ownerState:Q,className:et(X.root,h)}),{slotProps:Me}=rt,Qe=Ge(rt,Xye);return M.jsx(Ne,L({},Qe,!Su(Ne)&&{slotProps:Me,disableScrollLock:D},{children:M.jsx(w,L({appear:!0,in:b,onEntering:G,onExited:ue,timeout:ge},R,{children:M.jsx(Le,L({},qe,{children:p}))}))}))}),TD=e1e;function t1e(e){return At("MuiMenu",e)}_t("MuiMenu",["root","paper","list"]);const n1e=["onEntering"],r1e=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],i1e={vertical:"top",horizontal:"right"},o1e={vertical:"top",horizontal:"left"},a1e=e=>{const{classes:t}=e;return Ct({root:["root"],paper:["paper"],list:["list"]},t1e,t)},s1e=ke(TD,{shouldForwardProp:e=>Xi(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),l1e=ke(tY,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),u1e=ke(N1,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),c1e=N.forwardRef(function(t,n){var r,i;const o=gt({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:p,PaperProps:h={},PopoverClasses:m,transitionDuration:y="auto",TransitionProps:{onEntering:O}={},variant:b="selectedMenu",slots:v={},slotProps:S={}}=o,k=Ge(o.TransitionProps,n1e),C=Ge(o,r1e),w=bi(),E=w.direction==="rtl",$=L({},o,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:O,PaperProps:h,transitionDuration:y,TransitionProps:k,variant:b}),D=a1e($),R=a&&!u&&p,B=N.useRef(null),U=(q,j)=>{B.current&&B.current.adjustStyleForScrollbar(q,w),O&&O(q,j)},V=q=>{q.key==="Tab"&&(q.preventDefault(),d&&d(q,"tabKeyDown"))};let z=-1;N.Children.map(s,(q,j)=>{N.isValidElement(q)&&(q.props.disabled||(b==="selectedMenu"&&q.props.selected||z===-1)&&(z=j))});const Q=(r=v.paper)!=null?r:l1e,X=(i=S.paper)!=null?i:h,Z=kn({elementType:v.root,externalSlotProps:S.root,ownerState:$,className:[D.root,l]}),Y=kn({elementType:Q,externalSlotProps:X,ownerState:$,className:D.paper});return M.jsx(s1e,L({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?i1e:o1e,slots:{paper:Q,root:v.root},slotProps:{root:Z,paper:Y},open:p,ref:n,transitionDuration:y,TransitionProps:L({onEntering:U},k),ownerState:$},C,{classes:m,children:M.jsx(u1e,L({onKeyDown:V,actions:B,autoFocus:a&&(z===-1||u),autoFocusItem:R,variant:b},c,{className:et(D.list,c.className),children:s}))}))}),d1e=c1e;function f1e(e){return At("MuiMenuItem",e)}const p1e=_t("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),a0=p1e,h1e=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],m1e=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},g1e=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:o,classes:a}=e,l=Ct({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},f1e,a);return L({},a,l)},b1e=ke(fs,{shouldForwardProp:e=>Xi(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:m1e})(({theme:e,ownerState:t})=>L({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${a0.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:un(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${a0.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:un(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${a0.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:un(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})`:un(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${a0.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${a0.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${ZB.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${ZB.inset}`]:{marginLeft:52},[`& .${VS.root}`]:{marginTop:0,marginBottom:0},[`& .${VS.inset}`]:{paddingLeft:36},[`& .${r8.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&L({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${r8.root} svg`]:{fontSize:"1.25rem"}}))),y1e=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:o="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:p}=r,h=Ge(r,h1e),m=N.useContext(Hs),y=N.useMemo(()=>({dense:a||m.dense||!1,disableGutters:l}),[m.dense,a,l]),O=N.useRef(null);Xr(()=>{i&&O.current&&O.current.focus()},[i]);const b=L({},r,{dense:y.dense,divider:s,disableGutters:l}),v=g1e(r),S=yn(O,n);let k;return r.disabled||(k=d!==void 0?d:-1),M.jsx(Hs.Provider,{value:y,children:M.jsx(b1e,L({ref:S,role:c,tabIndex:k,component:o,focusVisibleClassName:et(v.focusVisible,u),className:et(v.root,p)},h,{ownerState:b,classes:v}))})}),ap=y1e;function O1e(e){return At("MuiNativeSelect",e)}const v1e=_t("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),wD=v1e,E1e=["className","disabled","error","IconComponent","inputRef","variant"],S1e=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e,s={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${tt(n)}`,o&&"iconOpen",r&&"disabled"]};return Ct(s,O1e,t)},nY=({ownerState:e,theme:t})=>L({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":L({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${wD.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}}),T1e=ke("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Xi,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${wD.multiple}`]:t.multiple}]}})(nY),rY=({ownerState:e,theme:t})=>L({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${wD.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),w1e=ke("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${tt(n.variant)}`],n.open&&t.iconOpen]}})(rY),k1e=N.forwardRef(function(t,n){const{className:r,disabled:i,error:o,IconComponent:a,inputRef:s,variant:l="standard"}=t,u=Ge(t,E1e),c=L({},t,{disabled:i,variant:l,error:o}),d=S1e(c);return M.jsxs(N.Fragment,{children:[M.jsx(T1e,L({ownerState:c,className:et(d.select,r),disabled:i,ref:s||n},u)),t.multiple?null:M.jsx(w1e,{as:a,ownerState:c,className:d.icon})]})}),x1e=k1e;var l8;const C1e=["children","classes","className","label","notched"],A1e=ke("fieldset",{shouldForwardProp:Xi})({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%"}),_1e=ke("legend",{shouldForwardProp:Xi})(({ownerState:e,theme:t})=>L({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&L({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function R1e(e){const{className:t,label:n,notched:r}=e,i=Ge(e,C1e),o=n!=null&&n!=="",a=L({},e,{notched:r,withLabel:o});return M.jsx(A1e,L({"aria-hidden":!0,className:t,ownerState:a},i,{children:M.jsx(_1e,{ownerState:a,children:o?M.jsx("span",{children:n}):l8||(l8=M.jsx("span",{className:"notranslate",children:"​"}))})}))}const I1e=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],N1e=e=>{const{classes:t}=e,r=Ct({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},zhe,t);return L({},t,r)},D1e=ke(ak,{shouldForwardProp:e=>Xi(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ik})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return L({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${eu.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${eu.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${eu.focused} .${eu.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${eu.error} .${eu.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${eu.disabled} .${eu.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&L({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),P1e=ke(R1e,{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}}),L1e=ke(sk,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:ok})(({theme:e,ownerState:t})=>L({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),iY=N.forwardRef(function(t,n){var r,i,o,a,s;const l=gt({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:p,multiline:h=!1,notched:m,slots:y={},type:O="text"}=l,b=Ge(l,I1e),v=N1e(l),S=_u(),k=qd({props:l,muiFormControl:S,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),C=L({},l,{color:k.color||"primary",disabled:k.disabled,error:k.error,focused:k.focused,formControl:S,fullWidth:c,hiddenLabel:k.hiddenLabel,multiline:h,size:k.size,type:O}),w=(r=(i=y.root)!=null?i:u.Root)!=null?r:D1e,E=(o=(a=y.input)!=null?a:u.Input)!=null?o:L1e;return M.jsx(bD,L({slots:{root:w,input:E},renderSuffix:$=>M.jsx(P1e,{ownerState:C,className:v.notchedOutline,label:p!=null&&p!==""&&k.required?s||(s=M.jsxs(N.Fragment,{children:[p," ","*"]})):p,notched:typeof m<"u"?m:!!($.startAdornment||$.filled||$.focused)}),fullWidth:c,inputComponent:d,multiline:h,ref:n,type:O},b,{classes:L({},v,{notchedOutline:null})}))});iY.muiName="Input";const oY=iY,M1e=Ti(M.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"),$1e=Ti(M.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"),F1e=ke("span",{shouldForwardProp:Xi})({position:"relative",display:"flex"}),B1e=ke(M1e)({transform:"scale(1)"}),U1e=ke($1e)(({theme:e,ownerState:t})=>L({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));function aY(e){const{checked:t=!1,classes:n={},fontSize:r}=e,i=L({},e,{checked:t});return M.jsxs(F1e,{className:n.root,ownerState:i,children:[M.jsx(B1e,{fontSize:r,className:n.background,ownerState:i}),M.jsx(U1e,{fontSize:r,className:n.dot,ownerState:i})]})}const j1e=N.createContext(void 0),sY=j1e;function z1e(){return N.useContext(sY)}function V1e(e){return At("MuiRadio",e)}const u8=_t("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),H1e=["checked","checkedIcon","color","icon","name","onChange","size","className"],W1e=e=>{const{classes:t,color:n,size:r}=e,i={root:["root",`color${tt(n)}`,r!=="medium"&&`size${tt(r)}`]};return L({},t,Ct(i,V1e,t))},Q1e=ke(OD,{shouldForwardProp:e=>Xi(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${tt(n.size)}`],t[`color${tt(n.color)}`]]}})(({theme:e,ownerState:t})=>L({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:un(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${u8.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${u8.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function Y1e(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const c8=M.jsx(aY,{checked:!0}),d8=M.jsx(aY,{}),G1e=N.forwardRef(function(t,n){var r,i;const o=gt({props:t,name:"MuiRadio"}),{checked:a,checkedIcon:s=c8,color:l="primary",icon:u=d8,name:c,onChange:d,size:p="medium",className:h}=o,m=Ge(o,H1e),y=L({},o,{color:l,size:p}),O=W1e(y),b=z1e();let v=a;const S=NS(d,b&&b.onChange);let k=c;return b&&(typeof v>"u"&&(v=Y1e(b.value,o.value)),typeof k>"u"&&(k=b.name)),M.jsx(Q1e,L({type:"radio",icon:N.cloneElement(u,{fontSize:(r=d8.props.fontSize)!=null?r:p}),checkedIcon:N.cloneElement(s,{fontSize:(i=c8.props.fontSize)!=null?i:p}),ownerState:y,classes:O,name:k,checked:v,onChange:S,ref:n,className:et(O.root,h)},m))}),f8=G1e,q1e=["actions","children","defaultValue","name","onChange","value"],Z1e=N.forwardRef(function(t,n){const{actions:r,children:i,defaultValue:o,name:a,onChange:s,value:l}=t,u=Ge(t,q1e),c=N.useRef(null),[d,p]=qi({controlled:l,default:o,name:"RadioGroup"});N.useImperativeHandle(r,()=>({focus:()=>{let O=c.current.querySelector("input:not(:disabled):checked");O||(O=c.current.querySelector("input:not(:disabled)")),O&&O.focus()}}),[]);const h=yn(n,c),m=Pl(a),y=N.useMemo(()=>({name:m,onChange(O){p(O.target.value),s&&s(O,O.target.value)},value:d}),[m,s,p,d]);return M.jsx(sY.Provider,{value:y,children:M.jsx(vD,L({role:"radiogroup",ref:h},u,{children:i}))})}),X1e=Z1e;function K1e(e){return At("MuiSelect",e)}const s0=_t("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var p8;const J1e=["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"],eOe=ke("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${s0.select}`]:t.select},{[`&.${s0.select}`]:t[n.variant]},{[`&.${s0.error}`]:t.error},{[`&.${s0.multiple}`]:t.multiple}]}})(nY,{[`&.${s0.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),tOe=ke("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${tt(n.variant)}`],n.open&&t.iconOpen]}})(rY),nOe=ke("input",{shouldForwardProp:e=>nD(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 h8(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function rOe(e){return e==null||typeof e=="string"&&!e.trim()}const iOe=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e,s={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${tt(n)}`,o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Ct(s,K1e,t)},oOe=N.forwardRef(function(t,n){var r;const{"aria-describedby":i,"aria-label":o,autoFocus:a,autoWidth:s,children:l,className:u,defaultOpen:c,defaultValue:d,disabled:p,displayEmpty:h,error:m=!1,IconComponent:y,inputRef:O,labelId:b,MenuProps:v={},multiple:S,name:k,onBlur:C,onChange:w,onClose:E,onFocus:$,onOpen:D,open:R,readOnly:B,renderValue:U,SelectDisplayProps:V={},tabIndex:z,value:Q,variant:X="standard"}=t,Z=Ge(t,J1e),[Y,q]=qi({controlled:Q,default:d,name:"Select"}),[j,le]=qi({controlled:R,default:c,name:"Select"}),Ee=N.useRef(null),G=N.useRef(null),[ue,ge]=N.useState(null),{current:he}=N.useRef(R!=null),[Ne,Le]=N.useState(),qe=yn(n,O),rt=N.useCallback(Ke=>{G.current=Ke,Ke&&ge(Ke)},[]),Me=ue==null?void 0:ue.parentNode;N.useImperativeHandle(qe,()=>({focus:()=>{G.current.focus()},node:Ee.current,value:Y}),[Y]),N.useEffect(()=>{c&&j&&ue&&!he&&(Le(s?null:Me.clientWidth),G.current.focus())},[ue,s]),N.useEffect(()=>{a&&G.current.focus()},[a]),N.useEffect(()=>{if(!b)return;const Ke=Hr(G.current).getElementById(b);if(Ke){const vt=()=>{getSelection().isCollapsed&&G.current.focus()};return Ke.addEventListener("click",vt),()=>{Ke.removeEventListener("click",vt)}}},[b]);const Qe=(Ke,vt)=>{Ke?D&&D(vt):E&&E(vt),he||(Le(s?null:Me.clientWidth),le(Ke))},ye=Ke=>{Ke.button===0&&(Ke.preventDefault(),G.current.focus(),Qe(!0,Ke))},ze=Ke=>{Qe(!1,Ke)},$e=N.Children.toArray(l),He=Ke=>{const vt=$e.find(Ye=>Ye.props.value===Ke.target.value);vt!==void 0&&(q(vt.props.value),w&&w(Ke,vt))},dt=Ke=>vt=>{let Ye;if(vt.currentTarget.hasAttribute("tabindex")){if(S){Ye=Array.isArray(Y)?Y.slice():[];const it=Y.indexOf(Ke.props.value);it===-1?Ye.push(Ke.props.value):Ye.splice(it,1)}else Ye=Ke.props.value;if(Ke.props.onClick&&Ke.props.onClick(vt),Y!==Ye&&(q(Ye),w)){const it=vt.nativeEvent||vt,Et=new it.constructor(it.type,it);Object.defineProperty(Et,"target",{writable:!0,value:{value:Ye,name:k}}),w(Et,Ke)}S||Qe(!1,vt)}},Be=Ke=>{B||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Ke.key)!==-1&&(Ke.preventDefault(),Qe(!0,Ke))},re=ue!==null&&j,ee=Ke=>{!re&&C&&(Object.defineProperty(Ke,"target",{writable:!0,value:{value:Y,name:k}}),C(Ke))};delete Z["aria-invalid"];let J,_e;const Pe=[];let Ie=!1;(US({value:Y})||h)&&(U?J=U(Y):Ie=!0);const ie=$e.map(Ke=>{if(!N.isValidElement(Ke))return null;let vt;if(S){if(!Array.isArray(Y))throw new Error(Dd(2));vt=Y.some(Ye=>h8(Ye,Ke.props.value)),vt&&Ie&&Pe.push(Ke.props.children)}else vt=h8(Y,Ke.props.value),vt&&Ie&&(_e=Ke.props.children);return N.cloneElement(Ke,{"aria-selected":vt?"true":"false",onClick:dt(Ke),onKeyUp:Ye=>{Ye.key===" "&&Ye.preventDefault(),Ke.props.onKeyUp&&Ke.props.onKeyUp(Ye)},role:"option",selected:vt,value:void 0,"data-value":Ke.props.value})});Ie&&(S?Pe.length===0?J=null:J=Pe.reduce((Ke,vt,Ye)=>(Ke.push(vt),Ye{const{classes:t}=e;return t},kD={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Xi(e)&&e!=="variant",slot:"Root"},cOe=ke(ZQ,kD)(""),dOe=ke(oY,kD)(""),fOe=ke(WQ,kD)(""),lY=N.forwardRef(function(t,n){const r=gt({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:o,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=FQ,id:d,input:p,inputProps:h,label:m,labelId:y,MenuProps:O,multiple:b=!1,native:v=!1,onClose:S,onOpen:k,open:C,renderValue:w,SelectDisplayProps:E,variant:$="outlined"}=r,D=Ge(r,sOe),R=v?x1e:aOe,B=_u(),U=qd({props:r,muiFormControl:B,states:["variant","error"]}),V=U.variant||$,z=L({},r,{variant:V,classes:a}),Q=uOe(z),X=Ge(Q,lOe),Z=p||{standard:M.jsx(cOe,{ownerState:z}),outlined:M.jsx(dOe,{label:m,ownerState:z}),filled:M.jsx(fOe,{ownerState:z})}[V],Y=yn(n,Z.ref);return M.jsx(N.Fragment,{children:N.cloneElement(Z,L({inputComponent:R,inputProps:L({children:o,error:U.error,IconComponent:c,variant:V,type:void 0,multiple:b},v?{id:d}:{autoWidth:i,defaultOpen:l,displayEmpty:u,labelId:y,MenuProps:O,onClose:S,onOpen:k,open:C,renderValue:w,SelectDisplayProps:L({id:d},E)},h,{classes:h?No(X,h.classes):X},p?p.props.inputProps:{})},b&&v&&V==="outlined"?{notched:!0}:{},{ref:Y,className:et(Z.props.className,s,Q.root)},!p&&{variant:V},D))})});lY.muiName="Select";const uY=lY,pOe=e=>!e||!Su(e);function hOe(e){return At("MuiSlider",e)}const El=_t("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),mOe=e=>{const{open:t}=e;return{offset:et(t&&El.valueLabelOpen),circle:El.valueLabelCircle,label:El.valueLabelLabel}};function gOe(e){const{children:t,className:n,value:r}=e,i=mOe(e);return t?N.cloneElement(t,{className:et(t.props.className)},M.jsxs(N.Fragment,{children:[t.props.children,M.jsx("span",{className:et(i.offset,n),"aria-hidden":!0,children:M.jsx("span",{className:i.circle,children:M.jsx("span",{className:i.label,children:r})})})]})):null}const bOe=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function m8(e){return e}const yOe=ke("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${tt(n.color)}`],n.size!=="medium"&&t[`size${tt(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>L({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&L({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&L({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${El.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${El.dragging}`]:{[`& .${El.thumb}, & .${El.track}`]:{transition:"none"}}})),OOe=ke("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>L({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),vOe=ke("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?eD(e.palette[t.color].main,.62):JN(e.palette[t.color].main,.5);return L({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),EOe=ke("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${tt(n.color)}`],n.size!=="medium"&&t[`thumbSize${tt(n.size)}`]]}})(({theme:e,ownerState:t})=>L({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&::before":L({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${El.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:un(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${El.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:un(e.palette[t.color].main,.16)}`},[`&.${El.disabled}`]:{"&:hover":{boxShadow:"none"}}})),SOe=ke(gOe,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>L({[`&.${El.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},t.orientation==="horizontal"&&{top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},t.orientation==="vertical"&&{right:t.size==="small"?"20px":"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),TOe=ke("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>nD(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>L({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),wOe=ke("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>nD(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>L({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),kOe=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:o,classes:a,color:s,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",o==="inverted"&&"trackInverted",o===!1&&"trackFalse",s&&`color${tt(s)}`,l&&`size${tt(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${tt(l)}`,s&&`thumbColor${tt(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Ct(u,hOe,a)},xOe=({children:e})=>e,COe=N.forwardRef(function(t,n){var r,i,o,a,s,l,u,c,d,p,h,m,y,O,b,v,S,k,C,w,E,$,D,R;const B=gt({props:t,name:"MuiSlider"}),V=bi().direction==="rtl",{"aria-label":z,"aria-valuetext":Q,"aria-labelledby":X,component:Z="span",components:Y={},componentsProps:q={},color:j="primary",classes:le,className:Ee,disableSwap:G=!1,disabled:ue=!1,getAriaLabel:ge,getAriaValueText:he,marks:Ne=!1,max:Le=100,min:qe=0,orientation:rt="horizontal",size:Me="medium",step:Qe=1,scale:ye=m8,slotProps:ze,slots:$e,track:He="normal",valueLabelDisplay:dt="off",valueLabelFormat:Be=m8}=B,re=Ge(B,bOe),ee=L({},B,{isRtl:V,max:Le,min:qe,classes:le,disabled:ue,disableSwap:G,orientation:rt,marks:Ne,color:j,size:Me,step:Qe,scale:ye,track:He,valueLabelDisplay:dt,valueLabelFormat:Be}),{axisProps:J,getRootProps:_e,getHiddenInputProps:Pe,getThumbProps:Ie,open:ie,active:de,axis:ce,focusedThumbIndex:Oe,range:Se,dragging:nt,marks:pt,values:kt,trackOffset:Ke,trackLeap:vt,getThumbStyle:Ye}=uhe(L({},ee,{rootRef:n}));ee.marked=pt.length>0&&pt.some(Ue=>Ue.label),ee.dragging=nt,ee.focusedThumbIndex=Oe;const it=kOe(ee),Et=(r=(i=$e==null?void 0:$e.root)!=null?i:Y.Root)!=null?r:yOe,Dt=(o=(a=$e==null?void 0:$e.rail)!=null?a:Y.Rail)!=null?o:OOe,rn=(s=(l=$e==null?void 0:$e.track)!=null?l:Y.Track)!=null?s:vOe,cn=(u=(c=$e==null?void 0:$e.thumb)!=null?c:Y.Thumb)!=null?u:EOe,fn=(d=(p=$e==null?void 0:$e.valueLabel)!=null?p:Y.ValueLabel)!=null?d:SOe,zn=(h=(m=$e==null?void 0:$e.mark)!=null?m:Y.Mark)!=null?h:TOe,ve=(y=(O=$e==null?void 0:$e.markLabel)!=null?O:Y.MarkLabel)!=null?y:wOe,Ae=(b=(v=$e==null?void 0:$e.input)!=null?v:Y.Input)!=null?b:"input",fe=(S=ze==null?void 0:ze.root)!=null?S:q.root,lt=(k=ze==null?void 0:ze.rail)!=null?k:q.rail,at=(C=ze==null?void 0:ze.track)!=null?C:q.track,Mt=(w=ze==null?void 0:ze.thumb)!=null?w:q.thumb,$t=(E=ze==null?void 0:ze.valueLabel)!=null?E:q.valueLabel,It=($=ze==null?void 0:ze.mark)!=null?$:q.mark,xt=(D=ze==null?void 0:ze.markLabel)!=null?D:q.markLabel,qt=(R=ze==null?void 0:ze.input)!=null?R:q.input,Re=kn({elementType:Et,getSlotProps:_e,externalSlotProps:fe,externalForwardedProps:re,additionalProps:L({},pOe(Et)&&{as:Z}),ownerState:L({},ee,fe==null?void 0:fe.ownerState),className:[it.root,Ee]}),Te=kn({elementType:Dt,externalSlotProps:lt,ownerState:ee,className:it.rail}),We=kn({elementType:rn,externalSlotProps:at,additionalProps:{style:L({},J[ce].offset(Ke),J[ce].leap(vt))},ownerState:L({},ee,at==null?void 0:at.ownerState),className:it.track}),ot=kn({elementType:cn,getSlotProps:Ie,externalSlotProps:Mt,ownerState:L({},ee,Mt==null?void 0:Mt.ownerState),className:it.thumb}),nn=kn({elementType:fn,externalSlotProps:$t,ownerState:L({},ee,$t==null?void 0:$t.ownerState),className:it.valueLabel}),Wt=kn({elementType:zn,externalSlotProps:It,ownerState:ee,className:it.mark}),hn=kn({elementType:ve,externalSlotProps:xt,ownerState:ee,className:it.markLabel}),tr=kn({elementType:Ae,getSlotProps:Pe,externalSlotProps:qt,ownerState:ee});return M.jsxs(Et,L({},Re,{children:[M.jsx(Dt,L({},Te)),M.jsx(rn,L({},We)),pt.filter(Ue=>Ue.value>=qe&&Ue.value<=Le).map((Ue,xe)=>{const mt=BS(Ue.value,qe,Le),Nt=J[ce].offset(mt);let en;return He===!1?en=kt.indexOf(Ue.value)!==-1:en=He==="normal"&&(Se?Ue.value>=kt[0]&&Ue.value<=kt[kt.length-1]:Ue.value<=kt[0])||He==="inverted"&&(Se?Ue.value<=kt[0]||Ue.value>=kt[kt.length-1]:Ue.value>=kt[0]),M.jsxs(N.Fragment,{children:[M.jsx(zn,L({"data-index":xe},Wt,!Su(zn)&&{markActive:en},{style:L({},Nt,Wt.style),className:et(Wt.className,en&&it.markActive)})),Ue.label!=null?M.jsx(ve,L({"aria-hidden":!0,"data-index":xe},hn,!Su(ve)&&{markLabelActive:en},{style:L({},Nt,hn.style),className:et(it.markLabel,hn.className,en&&it.markLabelActive),children:Ue.label})):null]},xe)}),kt.map((Ue,xe)=>{const mt=BS(Ue,qe,Le),Nt=J[ce].offset(mt),en=dt==="off"?xOe:fn;return M.jsx(en,L({},!Su(en)&&{valueLabelFormat:Be,valueLabelDisplay:dt,value:typeof Be=="function"?Be(ye(Ue),xe):Be,index:xe,open:ie===xe||de===xe||dt==="on",disabled:ue},nn,{children:M.jsx(cn,L({"data-index":xe},ot,{className:et(it.thumb,ot.className,de===xe&&it.active,Oe===xe&&it.focusVisible),style:L({},Nt,Ye(xe),ot.style),children:M.jsx(Ae,L({"data-index":xe,"aria-label":ge?ge(xe):z,"aria-valuenow":ye(Ue),"aria-labelledby":X,"aria-valuetext":he?he(ye(Ue),xe):Q,value:kt[xe]},tr))}))}),xe)})]}))}),AOe=COe;function _Oe(e){return At("MuiTooltip",e)}const ROe=_t("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),ud=ROe,IOe=["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 NOe(e){return Math.round(e*1e5)/1e5}const DOe=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:o}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${tt(o.split("-")[0])}`],arrow:["arrow"]};return Ct(a,_Oe,t)},POe=ke(R1,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>L({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${ud.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${ud.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${ud.arrow}`]:L({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${ud.arrow}`]:L({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),LOe=ke("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${tt(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>L({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:un(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:`${NOe(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${ud.popper}[data-popper-placement*="left"] &`]:L({transformOrigin:"right center"},t.isRtl?L({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):L({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${ud.popper}[data-popper-placement*="right"] &`]:L({transformOrigin:"left center"},t.isRtl?L({marginRight:"14px"},t.touch&&{marginRight:"24px"}):L({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${ud.popper}[data-popper-placement*="top"] &`]:L({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${ud.popper}[data-popper-placement*="bottom"] &`]:L({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),MOe=ke("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:un(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let dv=!1,xC=null,l0={x:0,y:0};function fv(e,t){return n=>{t&&t(n),e(n)}}const $Oe=N.forwardRef(function(t,n){var r,i,o,a,s,l,u,c,d,p,h,m,y,O,b,v,S,k,C;const w=gt({props:t,name:"MuiTooltip"}),{arrow:E=!1,children:$,components:D={},componentsProps:R={},describeChild:B=!1,disableFocusListener:U=!1,disableHoverListener:V=!1,disableInteractive:z=!1,disableTouchListener:Q=!1,enterDelay:X=100,enterNextDelay:Z=0,enterTouchDelay:Y=700,followCursor:q=!1,id:j,leaveDelay:le=0,leaveTouchDelay:Ee=1500,onClose:G,onOpen:ue,open:ge,placement:he="bottom",PopperComponent:Ne,PopperProps:Le={},slotProps:qe={},slots:rt={},title:Me,TransitionComponent:Qe=jS,TransitionProps:ye}=w,ze=Ge(w,IOe),$e=N.isValidElement($)?$:M.jsx("span",{children:$}),He=bi(),dt=He.direction==="rtl",[Be,re]=N.useState(),[ee,J]=N.useState(null),_e=N.useRef(!1),Pe=z||q,Ie=N.useRef(),ie=N.useRef(),de=N.useRef(),ce=N.useRef(),[Oe,Se]=qi({controlled:ge,default:!1,name:"Tooltip",state:"open"});let nt=Oe;const pt=Pl(j),kt=N.useRef(),Ke=N.useCallback(()=>{kt.current!==void 0&&(document.body.style.WebkitUserSelect=kt.current,kt.current=void 0),clearTimeout(ce.current)},[]);N.useEffect(()=>()=>{clearTimeout(Ie.current),clearTimeout(ie.current),clearTimeout(de.current),Ke()},[Ke]);const vt=Xt=>{clearTimeout(xC),dv=!0,Se(!0),ue&&!nt&&ue(Xt)},Ye=jt(Xt=>{clearTimeout(xC),xC=setTimeout(()=>{dv=!1},800+le),Se(!1),G&&nt&&G(Xt),clearTimeout(Ie.current),Ie.current=setTimeout(()=>{_e.current=!1},He.transitions.duration.shortest)}),it=Xt=>{_e.current&&Xt.type!=="touchstart"||(Be&&Be.removeAttribute("title"),clearTimeout(ie.current),clearTimeout(de.current),X||dv&&Z?ie.current=setTimeout(()=>{vt(Xt)},dv?Z:X):vt(Xt))},Et=Xt=>{clearTimeout(ie.current),clearTimeout(de.current),de.current=setTimeout(()=>{Ye(Xt)},le)},{isFocusVisibleRef:Dt,onBlur:rn,onFocus:cn,ref:fn}=jw(),[,zn]=N.useState(!1),ve=Xt=>{rn(Xt),Dt.current===!1&&(zn(!1),Et(Xt))},Ae=Xt=>{Be||re(Xt.currentTarget),cn(Xt),Dt.current===!0&&(zn(!0),it(Xt))},fe=Xt=>{_e.current=!0;const gn=$e.props;gn.onTouchStart&&gn.onTouchStart(Xt)},lt=it,at=Et,Mt=Xt=>{fe(Xt),clearTimeout(de.current),clearTimeout(Ie.current),Ke(),kt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ce.current=setTimeout(()=>{document.body.style.WebkitUserSelect=kt.current,it(Xt)},Y)},$t=Xt=>{$e.props.onTouchEnd&&$e.props.onTouchEnd(Xt),Ke(),clearTimeout(de.current),de.current=setTimeout(()=>{Ye(Xt)},Ee)};N.useEffect(()=>{if(!nt)return;function Xt(gn){(gn.key==="Escape"||gn.key==="Esc")&&Ye(gn)}return document.addEventListener("keydown",Xt),()=>{document.removeEventListener("keydown",Xt)}},[Ye,nt]);const It=yn($e.ref,fn,re,n);!Me&&Me!==0&&(nt=!1);const xt=N.useRef(),qt=Xt=>{const gn=$e.props;gn.onMouseMove&&gn.onMouseMove(Xt),l0={x:Xt.clientX,y:Xt.clientY},xt.current&&xt.current.update()},Re={},Te=typeof Me=="string";B?(Re.title=!nt&&Te&&!V?Me:null,Re["aria-describedby"]=nt?pt:null):(Re["aria-label"]=Te?Me:null,Re["aria-labelledby"]=nt&&!Te?pt:null);const We=L({},Re,ze,$e.props,{className:et(ze.className,$e.props.className),onTouchStart:fe,ref:It},q?{onMouseMove:qt}:{}),ot={};Q||(We.onTouchStart=Mt,We.onTouchEnd=$t),V||(We.onMouseOver=fv(lt,We.onMouseOver),We.onMouseLeave=fv(at,We.onMouseLeave),Pe||(ot.onMouseOver=lt,ot.onMouseLeave=at)),U||(We.onFocus=fv(Ae,We.onFocus),We.onBlur=fv(ve,We.onBlur),Pe||(ot.onFocus=Ae,ot.onBlur=ve));const nn=N.useMemo(()=>{var Xt;let gn=[{name:"arrow",enabled:!!ee,options:{element:ee,padding:4}}];return(Xt=Le.popperOptions)!=null&&Xt.modifiers&&(gn=gn.concat(Le.popperOptions.modifiers)),L({},Le.popperOptions,{modifiers:gn})},[ee,Le]),Wt=L({},w,{isRtl:dt,arrow:E,disableInteractive:Pe,placement:he,PopperComponentProp:Ne,touch:_e.current}),hn=DOe(Wt),tr=(r=(i=rt.popper)!=null?i:D.Popper)!=null?r:POe,Ue=(o=(a=(s=rt.transition)!=null?s:D.Transition)!=null?a:Qe)!=null?o:jS,xe=(l=(u=rt.tooltip)!=null?u:D.Tooltip)!=null?l:LOe,mt=(c=(d=rt.arrow)!=null?d:D.Arrow)!=null?c:MOe,Nt=j0(tr,L({},Le,(p=qe.popper)!=null?p:R.popper,{className:et(hn.popper,Le==null?void 0:Le.className,(h=(m=qe.popper)!=null?m:R.popper)==null?void 0:h.className)}),Wt),en=j0(Ue,L({},ye,(y=qe.transition)!=null?y:R.transition),Wt),Mn=j0(xe,L({},(O=qe.tooltip)!=null?O:R.tooltip,{className:et(hn.tooltip,(b=(v=qe.tooltip)!=null?v:R.tooltip)==null?void 0:b.className)}),Wt),Nn=j0(mt,L({},(S=qe.arrow)!=null?S:R.arrow,{className:et(hn.arrow,(k=(C=qe.arrow)!=null?C:R.arrow)==null?void 0:k.className)}),Wt);return M.jsxs(N.Fragment,{children:[N.cloneElement($e,We),M.jsx(tr,L({as:Ne??R1,placement:he,anchorEl:q?{getBoundingClientRect:()=>({top:l0.y,left:l0.x,right:l0.x,bottom:l0.y,width:0,height:0})}:Be,popperRef:xt,open:Be?nt:!1,id:pt,transition:!0},ot,Nt,{popperOptions:nn,children:({TransitionProps:Xt})=>M.jsx(Ue,L({timeout:He.transitions.duration.shorter},Xt,en,{children:M.jsxs(xe,L({},Mn,{children:[Me,E?M.jsx(mt,L({},Nn,{ref:J})):null]}))}))}))]})}),pv=$Oe;function FOe(e){return At("MuiSwitch",e)}const BOe=_t("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),qo=BOe,UOe=["className","color","edge","size","sx"],jOe=e=>{const{classes:t,edge:n,size:r,color:i,checked:o,disabled:a}=e,s={root:["root",n&&`edge${tt(n)}`,`size${tt(r)}`],switchBase:["switchBase",`color${tt(i)}`,o&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Ct(s,FOe,t);return L({},t,l)},zOe=ke("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${tt(n.edge)}`],t[`size${tt(n.size)}`]]}})(({ownerState:e})=>L({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${qo.thumb}`]:{width:16,height:16},[`& .${qo.switchBase}`]:{padding:4,[`&.${qo.checked}`]:{transform:"translateX(16px)"}}})),VOe=ke(OD,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${qo.input}`]:t.input},n.color!=="default"&&t[`color${tt(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}),[`&.${qo.checked}`]:{transform:"translateX(20px)"},[`&.${qo.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${qo.checked} + .${qo.track}`]:{opacity:.5},[`&.${qo.disabled} + .${qo.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${qo.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>L({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:un(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${qo.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:un(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${qo.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?eD(e.palette[t.color].main,.62):JN(e.palette[t.color].main,.55)}`}},[`&.${qo.checked} + .${qo.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),HOe=ke("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}`})),WOe=ke("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%"})),QOe=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiSwitch"}),{className:i,color:o="primary",edge:a=!1,size:s="medium",sx:l}=r,u=Ge(r,UOe),c=L({},r,{color:o,edge:a,size:s}),d=jOe(c),p=M.jsx(WOe,{className:d.thumb,ownerState:c});return M.jsxs(zOe,{className:et(d.root,i),sx:l,ownerState:c,children:[M.jsx(VOe,L({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:c},u,{classes:L({},d,{root:d.switchBase})})),M.jsx(HOe,{className:d.track,ownerState:c})]})}),YOe=QOe;function GOe(e){return At("MuiTab",e)}const qOe=_t("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),lf=qOe,ZOe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],XOe=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:o,label:a,selected:s,disabled:l}=e,u={root:["root",o&&a&&"labelIcon",`textColor${tt(n)}`,r&&"fullWidth",i&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Ct(u,GOe,t)},KOe=ke(fs,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${tt(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>L({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${lf.iconWrapper}`]:L({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${lf.selected}`]:{opacity:1},[`&.${lf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${lf.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${lf.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${lf.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${lf.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),JOe=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiTab"}),{className:i,disabled:o=!1,disableFocusRipple:a=!1,fullWidth:s,icon:l,iconPosition:u="top",indicator:c,label:d,onChange:p,onClick:h,onFocus:m,selected:y,selectionFollowsFocus:O,textColor:b="inherit",value:v,wrapped:S=!1}=r,k=Ge(r,ZOe),C=L({},r,{disabled:o,disableFocusRipple:a,selected:y,icon:!!l,iconPosition:u,label:!!d,fullWidth:s,textColor:b,wrapped:S}),w=XOe(C),E=l&&d&&N.isValidElement(l)?N.cloneElement(l,{className:et(w.iconWrapper,l.props.className)}):l,$=R=>{!y&&p&&p(R,v),h&&h(R)},D=R=>{O&&!y&&p&&p(R,v),m&&m(R)};return M.jsxs(KOe,L({focusRipple:!a,className:et(w.root,i),ref:n,role:"tab","aria-selected":y,disabled:o,onClick:$,onFocus:D,ownerState:C,tabIndex:y?0:-1},k,{children:[u==="top"||u==="start"?M.jsxs(N.Fragment,{children:[E,d]}):M.jsxs(N.Fragment,{children:[d,E]}),c]}))}),g8=JOe;function eve(e){return At("MuiToolbar",e)}_t("MuiToolbar",["root","gutters","regular","dense"]);const tve=["className","component","disableGutters","variant"],nve=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Ct({root:["root",!n&&"gutters",r]},eve,t)},rve=ke("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>L({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),ive=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:a=!1,variant:s="regular"}=r,l=Ge(r,tve),u=L({},r,{component:o,disableGutters:a,variant:s}),c=nve(u);return M.jsx(rve,L({as:o,className:et(c.root,i),ref:n,ownerState:u},l))}),ove=ive,ave=Ti(M.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),sve=Ti(M.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function lve(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function uve(e,t,n,r={},i=()=>{}){const{ease:o=lve,duration:a=300}=r;let s=null;const l=t[e];let u=!1;const c=()=>{u=!0},d=p=>{if(u){i(new Error("Animation cancelled"));return}s===null&&(s=p);const h=Math.min(1,(p-s)/a);if(t[e]=o(h)*(n-l)+l,h>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(d)};return l===n?(i(new Error("Element already at target position")),c):(requestAnimationFrame(d),c)}const cve=["onChange"],dve={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function fve(e){const{onChange:t}=e,n=Ge(e,cve),r=N.useRef(),i=N.useRef(null),o=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return Xr(()=>{const a=lg(()=>{const l=r.current;o(),l!==r.current&&t(r.current)}),s=Xs(i.current);return s.addEventListener("resize",a),()=>{a.clear(),s.removeEventListener("resize",a)}},[t]),N.useEffect(()=>{o(),t(r.current)},[t]),M.jsx("div",L({style:dve,ref:i},n))}function pve(e){return At("MuiTabScrollButton",e)}const hve=_t("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),mve=hve,gve=["className","slots","slotProps","direction","orientation","disabled"],bve=e=>{const{classes:t,orientation:n,disabled:r}=e;return Ct({root:["root",n,r&&"disabled"]},pve,t)},yve=ke(fs,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>L({width:40,flexShrink:0,opacity:.8,[`&.${mve.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),Ove=N.forwardRef(function(t,n){var r,i;const o=gt({props:t,name:"MuiTabScrollButton"}),{className:a,slots:s={},slotProps:l={},direction:u}=o,c=Ge(o,gve),p=bi().direction==="rtl",h=L({isRtl:p},o),m=bve(h),y=(r=s.StartScrollButtonIcon)!=null?r:ave,O=(i=s.EndScrollButtonIcon)!=null?i:sve,b=kn({elementType:y,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),v=kn({elementType:O,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return M.jsx(yve,L({component:"div",className:et(m.root,a),ref:n,role:null,ownerState:h,tabIndex:null},c,{children:u==="left"?M.jsx(y,L({},b)):M.jsx(O,L({},v))}))}),vve=Ove;function Eve(e){return At("MuiTabs",e)}const Sve=_t("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),TE=Sve,Tve=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],b8=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,y8=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,hv=(e,t,n)=>{let r=!1,i=n(e,t);for(;i;){if(i===e.firstChild){if(r)return;r=!0}const o=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||o)i=n(e,i);else{i.focus();return}}},wve=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:o,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return Ct({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",i&&"scrollableX",o&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},Eve,l)},kve=ke("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${TE.scrollButtons}`]:t.scrollButtons},{[`& .${TE.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>L({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${TE.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),xve=ke("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>L({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Cve=ke("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>L({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),Ave=ke("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>L({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),_ve=ke(fve)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),O8={},Rve=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiTabs"}),i=bi(),o=i.direction==="rtl",{"aria-label":a,"aria-labelledby":s,action:l,centered:u=!1,children:c,className:d,component:p="div",allowScrollButtonsMobile:h=!1,indicatorColor:m="primary",onChange:y,orientation:O="horizontal",ScrollButtonComponent:b=vve,scrollButtons:v="auto",selectionFollowsFocus:S,slots:k={},slotProps:C={},TabIndicatorProps:w={},TabScrollButtonProps:E={},textColor:$="primary",value:D,variant:R="standard",visibleScrollbar:B=!1}=r,U=Ge(r,Tve),V=R==="scrollable",z=O==="vertical",Q=z?"scrollTop":"scrollLeft",X=z?"top":"left",Z=z?"bottom":"right",Y=z?"clientHeight":"clientWidth",q=z?"height":"width",j=L({},r,{component:p,allowScrollButtonsMobile:h,indicatorColor:m,orientation:O,vertical:z,scrollButtons:v,textColor:$,variant:R,visibleScrollbar:B,fixed:!V,hideScrollbar:V&&!B,scrollableX:V&&!z,scrollableY:V&&z,centered:u&&!V,scrollButtonsHideMobile:!h}),le=wve(j),Ee=kn({elementType:k.StartScrollButtonIcon,externalSlotProps:C.startScrollButtonIcon,ownerState:j}),G=kn({elementType:k.EndScrollButtonIcon,externalSlotProps:C.endScrollButtonIcon,ownerState:j}),[ue,ge]=N.useState(!1),[he,Ne]=N.useState(O8),[Le,qe]=N.useState(!1),[rt,Me]=N.useState(!1),[Qe,ye]=N.useState(!1),[ze,$e]=N.useState({overflow:"hidden",scrollbarWidth:0}),He=new Map,dt=N.useRef(null),Be=N.useRef(null),re=()=>{const Ye=dt.current;let it;if(Ye){const Dt=Ye.getBoundingClientRect();it={clientWidth:Ye.clientWidth,scrollLeft:Ye.scrollLeft,scrollTop:Ye.scrollTop,scrollLeftNormalized:Jle(Ye,i.direction),scrollWidth:Ye.scrollWidth,top:Dt.top,bottom:Dt.bottom,left:Dt.left,right:Dt.right}}let Et;if(Ye&&D!==!1){const Dt=Be.current.children;if(Dt.length>0){const rn=Dt[He.get(D)];Et=rn?rn.getBoundingClientRect():null}}return{tabsMeta:it,tabMeta:Et}},ee=jt(()=>{const{tabsMeta:Ye,tabMeta:it}=re();let Et=0,Dt;if(z)Dt="top",it&&Ye&&(Et=it.top-Ye.top+Ye.scrollTop);else if(Dt=o?"right":"left",it&&Ye){const cn=o?Ye.scrollLeftNormalized+Ye.clientWidth-Ye.scrollWidth:Ye.scrollLeft;Et=(o?-1:1)*(it[Dt]-Ye[Dt]+cn)}const rn={[Dt]:Et,[q]:it?it[q]:0};if(isNaN(he[Dt])||isNaN(he[q]))Ne(rn);else{const cn=Math.abs(he[Dt]-rn[Dt]),fn=Math.abs(he[q]-rn[q]);(cn>=1||fn>=1)&&Ne(rn)}}),J=(Ye,{animation:it=!0}={})=>{it?uve(Q,dt.current,Ye,{duration:i.transitions.duration.standard}):dt.current[Q]=Ye},_e=Ye=>{let it=dt.current[Q];z?it+=Ye:(it+=Ye*(o?-1:1),it*=o&&sQ()==="reverse"?-1:1),J(it)},Pe=()=>{const Ye=dt.current[Y];let it=0;const Et=Array.from(Be.current.children);for(let Dt=0;DtYe){Dt===0&&(it=Ye);break}it+=rn[Y]}return it},Ie=()=>{_e(-1*Pe())},ie=()=>{_e(Pe())},de=N.useCallback(Ye=>{$e({overflow:null,scrollbarWidth:Ye})},[]),ce=()=>{const Ye={};Ye.scrollbarSizeListener=V?M.jsx(_ve,{onChange:de,className:et(le.scrollableX,le.hideScrollbar)}):null;const Et=V&&(v==="auto"&&(Le||rt)||v===!0);return Ye.scrollButtonStart=Et?M.jsx(b,L({slots:{StartScrollButtonIcon:k.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Ee},orientation:O,direction:o?"right":"left",onClick:Ie,disabled:!Le},E,{className:et(le.scrollButtons,E.className)})):null,Ye.scrollButtonEnd=Et?M.jsx(b,L({slots:{EndScrollButtonIcon:k.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:G},orientation:O,direction:o?"left":"right",onClick:ie,disabled:!rt},E,{className:et(le.scrollButtons,E.className)})):null,Ye},Oe=jt(Ye=>{const{tabsMeta:it,tabMeta:Et}=re();if(!(!Et||!it)){if(Et[X]it[Z]){const Dt=it[Q]+(Et[Z]-it[Z]);J(Dt,{animation:Ye})}}}),Se=jt(()=>{V&&v!==!1&&ye(!Qe)});N.useEffect(()=>{const Ye=lg(()=>{dt.current&&ee()});let it;const Et=cn=>{cn.forEach(fn=>{fn.removedNodes.forEach(zn=>{var ve;(ve=it)==null||ve.unobserve(zn)}),fn.addedNodes.forEach(zn=>{var ve;(ve=it)==null||ve.observe(zn)})}),Ye(),Se()},Dt=Xs(dt.current);Dt.addEventListener("resize",Ye);let rn;return typeof ResizeObserver<"u"&&(it=new ResizeObserver(Ye),Array.from(Be.current.children).forEach(cn=>{it.observe(cn)})),typeof MutationObserver<"u"&&(rn=new MutationObserver(Et),rn.observe(Be.current,{childList:!0})),()=>{var cn,fn;Ye.clear(),Dt.removeEventListener("resize",Ye),(cn=rn)==null||cn.disconnect(),(fn=it)==null||fn.disconnect()}},[ee,Se]),N.useEffect(()=>{const Ye=Array.from(Be.current.children),it=Ye.length;if(typeof IntersectionObserver<"u"&&it>0&&V&&v!==!1){const Et=Ye[0],Dt=Ye[it-1],rn={root:dt.current,threshold:.99},cn=Ae=>{qe(!Ae[0].isIntersecting)},fn=new IntersectionObserver(cn,rn);fn.observe(Et);const zn=Ae=>{Me(!Ae[0].isIntersecting)},ve=new IntersectionObserver(zn,rn);return ve.observe(Dt),()=>{fn.disconnect(),ve.disconnect()}}},[V,v,Qe,c==null?void 0:c.length]),N.useEffect(()=>{ge(!0)},[]),N.useEffect(()=>{ee()}),N.useEffect(()=>{Oe(O8!==he)},[Oe,he]),N.useImperativeHandle(l,()=>({updateIndicator:ee,updateScrollButtons:Se}),[ee,Se]);const nt=M.jsx(Ave,L({},w,{className:et(le.indicator,w.className),ownerState:j,style:L({},he,w.style)}));let pt=0;const kt=N.Children.map(c,Ye=>{if(!N.isValidElement(Ye))return null;const it=Ye.props.value===void 0?pt:Ye.props.value;He.set(it,pt);const Et=it===D;return pt+=1,N.cloneElement(Ye,L({fullWidth:R==="fullWidth",indicator:Et&&!ue&&nt,selected:Et,selectionFollowsFocus:S,onChange:y,textColor:$,value:it},pt===1&&D===!1&&!Ye.props.tabIndex?{tabIndex:0}:{}))}),Ke=Ye=>{const it=Be.current,Et=Hr(it).activeElement;if(Et.getAttribute("role")!=="tab")return;let rn=O==="horizontal"?"ArrowLeft":"ArrowUp",cn=O==="horizontal"?"ArrowRight":"ArrowDown";switch(O==="horizontal"&&o&&(rn="ArrowRight",cn="ArrowLeft"),Ye.key){case rn:Ye.preventDefault(),hv(it,Et,y8);break;case cn:Ye.preventDefault(),hv(it,Et,b8);break;case"Home":Ye.preventDefault(),hv(it,null,b8);break;case"End":Ye.preventDefault(),hv(it,null,y8);break}},vt=ce();return M.jsxs(kve,L({className:et(le.root,d),ownerState:j,ref:n,as:p},U,{children:[vt.scrollButtonStart,vt.scrollbarSizeListener,M.jsxs(xve,{className:le.scroller,ownerState:j,style:{overflow:ze.overflow,[z?`margin${o?"Left":"Right"}`:"marginBottom"]:B?void 0:-ze.scrollbarWidth},ref:dt,children:[M.jsx(Cve,{"aria-label":a,"aria-labelledby":s,"aria-orientation":O==="vertical"?"vertical":null,className:le.flexContainer,ownerState:j,onKeyDown:Ke,ref:Be,role:"tablist",children:kt}),ue&&nt]}),vt.scrollButtonEnd]}))}),Ive=Rve;function Nve(e){return At("MuiTextField",e)}_t("MuiTextField",["root"]);const Dve=["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"],Pve={standard:ZQ,filled:WQ,outlined:oY},Lve=e=>{const{classes:t}=e;return Ct({root:["root"]},Nve,t)},Mve=ke(vp,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),$ve=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:o=!1,children:a,className:s,color:l="primary",defaultValue:u,disabled:c=!1,error:d=!1,FormHelperTextProps:p,fullWidth:h=!1,helperText:m,id:y,InputLabelProps:O,inputProps:b,InputProps:v,inputRef:S,label:k,maxRows:C,minRows:w,multiline:E=!1,name:$,onBlur:D,onChange:R,onFocus:B,placeholder:U,required:V=!1,rows:z,select:Q=!1,SelectProps:X,type:Z,value:Y,variant:q="outlined"}=r,j=Ge(r,Dve),le=L({},r,{autoFocus:o,color:l,disabled:c,error:d,fullWidth:h,multiline:E,required:V,select:Q,variant:q}),Ee=Lve(le),G={};q==="outlined"&&(O&&typeof O.shrink<"u"&&(G.notched=O.shrink),G.label=k),Q&&((!X||!X.native)&&(G.id=void 0),G["aria-describedby"]=void 0);const ue=Pl(y),ge=m&&ue?`${ue}-helper-text`:void 0,he=k&&ue?`${ue}-label`:void 0,Ne=Pve[q],Le=M.jsx(Ne,L({"aria-describedby":ge,autoComplete:i,autoFocus:o,defaultValue:u,fullWidth:h,multiline:E,name:$,rows:z,maxRows:C,minRows:w,type:Z,value:Y,id:ue,inputRef:S,onBlur:D,onChange:R,onFocus:B,placeholder:U,inputProps:b},G,v));return M.jsxs(Mve,L({className:et(Ee.root,s),disabled:c,error:d,fullWidth:h,ref:n,required:V,color:l,variant:q,ownerState:le},j,{children:[k!=null&&k!==""&&M.jsx(XQ,L({htmlFor:ue,id:he},O,{children:k})),Q?M.jsx(uY,L({"aria-describedby":ge,id:ue,labelId:he,value:Y,input:Le},X,{children:a})):Le,m&&M.jsx(fg,L({id:ge},p,{children:m}))]}))}),Ep=$ve;function Fve(e){return At("MuiToggleButton",e)}const Bve=_t("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),Nh=Bve,Uve=N.createContext({}),cY=Uve,jve=N.createContext(void 0),dY=jve;function zve(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.indexOf(e)>=0:e===t}const Vve=["value"],Hve=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],Wve=e=>{const{classes:t,fullWidth:n,selected:r,disabled:i,size:o,color:a}=e,s={root:["root",r&&"selected",i&&"disabled",n&&"fullWidth",`size${tt(o)}`,a]};return Ct(s,Fve,t)},Qve=ke(fs,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${tt(n.size)}`]]}})(({theme:e,ownerState:t})=>{let n=t.color==="standard"?e.palette.text.primary:e.palette[t.color].main,r;return e.vars&&(n=t.color==="standard"?e.vars.palette.text.primary:e.vars.palette[t.color].main,r=t.color==="standard"?e.vars.palette.text.primaryChannel:e.vars.palette[t.color].mainChannel),L({},e.typography.button,{borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active},t.fullWidth&&{width:"100%"},{[`&.${Nh.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})`:un(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Nh.selected}`]:{color:n,backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:un(n,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${r} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:un(n,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:un(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)})}),Yve=N.forwardRef(function(t,n){const r=N.useContext(cY),{value:i}=r,o=Ge(r,Vve),a=N.useContext(dY),s=zw(L({},o,{selected:zve(t.value,i)}),t),l=gt({props:s,name:"MuiToggleButton"}),{children:u,className:c,color:d="standard",disabled:p=!1,disableFocusRipple:h=!1,fullWidth:m=!1,onChange:y,onClick:O,selected:b,size:v="medium",value:S}=l,k=Ge(l,Hve),C=L({},l,{color:d,disabled:p,disableFocusRipple:h,fullWidth:m,size:v}),w=Wve(C),E=D=>{O&&(O(D,S),D.defaultPrevented)||y&&y(D,S)},$=a||"";return M.jsx(Qve,L({className:et(o.className,w.root,c,$),disabled:p,focusRipple:!h,ref:n,onClick:E,onChange:y,value:S,ownerState:C,"aria-pressed":b},k,{children:u}))}),CC=Yve;function Gve(e){return At("MuiToggleButtonGroup",e)}const qve=_t("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),Br=qve,Zve=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],Xve=e=>{const{classes:t,orientation:n,fullWidth:r,disabled:i}=e,o={root:["root",n==="vertical"&&"vertical",r&&"fullWidth"],grouped:["grouped",`grouped${tt(n)}`,i&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Ct(o,Gve,t)},Kve=ke("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Br.grouped}`]:t.grouped},{[`& .${Br.grouped}`]:t[`grouped${tt(n.orientation)}`]},{[`& .${Br.firstButton}`]:t.firstButton},{[`& .${Br.lastButton}`]:t.lastButton},{[`& .${Br.middleButton}`]:t.middleButton},t.root,n.orientation==="vertical"&&t.vertical,n.fullWidth&&t.fullWidth]}})(({ownerState:e,theme:t})=>L({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},e.orientation==="vertical"&&{flexDirection:"column"},e.fullWidth&&{width:"100%"},{[`& .${Br.grouped}`]:L({},e.orientation==="horizontal"?{[`&.${Br.selected} + .${Br.grouped}.${Br.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${Br.selected} + .${Br.grouped}.${Br.selected}`]:{borderTop:0,marginTop:0}})},e.orientation==="horizontal"?{[`& .${Br.firstButton},& .${Br.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${Br.lastButton},& .${Br.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${Br.firstButton},& .${Br.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${Br.lastButton},& .${Br.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},e.orientation==="horizontal"?{[`& .${Br.lastButton}.${Nh.disabled},& .${Br.middleButton}.${Nh.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${Br.lastButton}.${Nh.disabled},& .${Br.middleButton}.${Nh.disabled}`]:{borderTop:"1px solid transparent"}})),Jve=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiToggleButtonGroup"}),{children:i,className:o,color:a="standard",disabled:s=!1,exclusive:l=!1,fullWidth:u=!1,onChange:c,orientation:d="horizontal",size:p="medium",value:h}=r,m=Ge(r,Zve),y=L({},r,{disabled:s,fullWidth:u,orientation:d,size:p}),O=Xve(y),b=N.useCallback((E,$)=>{if(!c)return;const D=h&&h.indexOf($);let R;h&&D>=0?(R=h.slice(),R.splice(D,1)):R=h?h.concat($):[$],c(E,R)},[c,h]),v=N.useCallback((E,$)=>{c&&c(E,h===$?null:$)},[c,h]),S=N.useMemo(()=>({className:O.grouped,onChange:l?v:b,value:h,size:p,fullWidth:u,color:a,disabled:s}),[O.grouped,l,v,b,h,p,u,a,s]),k=tue(i),C=k.length,w=E=>{const $=E===0,D=E===C-1;return $&&D?"":$?O.firstButton:D?O.lastButton:O.middleButton};return M.jsx(Kve,L({role:"group",className:et(O.root,o),ref:n,ownerState:y},m,{children:M.jsx(cY.Provider,{value:S,children:k.map((E,$)=>M.jsx(dY.Provider,{value:w($),children:E},$))})}))}),eEe=Jve;var fY={exports:{}},pY={};/** + `),y0e)),T0e=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:a=!1,size:s=40,style:l,thickness:u=3.6,value:c=0,variant:d="indeterminate"}=r,p=Ge(r,g0e),h=P({},r,{color:o,disableShrink:a,size:s,thickness:u,value:c,variant:d}),m=O0e(h),b={},O={},y={};if(d==="determinate"){const v=2*Math.PI*((jc-u)/2);b.strokeDasharray=v.toFixed(3),y["aria-valuenow"]=Math.round(c),b.strokeDashoffset=`${((100-c)/100*v).toFixed(3)}px`,O.transform="rotate(-90deg)"}return M.jsx(v0e,P({className:Je(m.root,i),style:P({width:s,height:s},O,l),ownerState:h,ref:n,role:"progressbar"},y,p,{children:M.jsx(E0e,{className:m.svg,ownerState:h,viewBox:`${jc/2} ${jc/2} ${jc} ${jc}`,children:M.jsx(S0e,{className:m.circle,style:b,ownerState:h,cx:jc,cy:jc,r:(jc-u)/2,fill:"none",strokeWidth:u})})}))}),Sg=T0e,w0e=cde({createStyledComponent:Se("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${nt(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>gt({props:e,name:"MuiContainer"})}),k0e=w0e,x0e=(e,t)=>P({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),C0e=e=>P({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}}),A0e=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([a,s])=>{var l;r[e.getColorSchemeSelector(a).replace(/\s*&/,"")]={colorScheme:(l=s.palette)==null?void 0:l.mode}});let i=P({html:x0e(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:P({margin:0},C0e(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const o=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return o&&(i=[i,o]),i};function _0e(e){const t=gt({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return M.jsxs(I.Fragment,{children:[M.jsx(cY,{styles:i=>A0e(i,r)}),n]})}function R0e(e){return At("MuiModal",e)}_t("MuiModal",["root","hidden","backdrop"]);const I0e=["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"],D0e=e=>{const{open:t,exited:n,classes:r}=e;return kt({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},R0e,r)},N0e=Se("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})=>P({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),P0e=Se($N,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),L0e=I.forwardRef(function(t,n){var r,i,o,a,s,l;const u=gt({name:"MuiModal",props:t}),{BackdropComponent:c=P0e,BackdropProps:d,className:p,closeAfterTransition:h=!1,children:m,container:b,component:O,components:y={},componentsProps:v={},disableAutoFocus:S=!1,disableEnforceFocus:k=!1,disableEscapeKeyDown:C=!1,disablePortal:w=!1,disableRestoreFocus:E=!1,disableScrollLock:$=!1,hideBackdrop:N=!1,keepMounted:R=!1,onBackdropClick:B,open:U,slotProps:V,slots:z}=u,W=Ge(u,I0e),X=P({},u,{closeAfterTransition:h,disableAutoFocus:S,disableEnforceFocus:k,disableEscapeKeyDown:C,disablePortal:w,disableRestoreFocus:E,disableScrollLock:$,hideBackdrop:N,keepMounted:R}),{getRootProps:q,getBackdropProps:Y,getTransitionProps:Z,portalRef:j,isTopModal:se,exited:ve,hasTransition:G}=Vhe(P({},X,{rootRef:n})),ce=P({},X,{exited:ve}),ge=D0e(ce),ue={};if(m.props.tabIndex===void 0&&(ue.tabIndex="-1"),G){const{onEnter:ye,onExited:ze}=Z();ue.onEnter=ye,ue.onExited=ze}const xe=(r=(i=z==null?void 0:z.root)!=null?i:y.Root)!=null?r:N0e,Ne=(o=(a=z==null?void 0:z.backdrop)!=null?a:y.Backdrop)!=null?o:c,Ve=(s=V==null?void 0:V.root)!=null?s:v.root,Ke=(l=V==null?void 0:V.backdrop)!=null?l:v.backdrop,Me=kn({elementType:xe,externalSlotProps:Ve,externalForwardedProps:W,getSlotProps:q,additionalProps:{ref:n,as:O},ownerState:ce,className:Je(p,Ve==null?void 0:Ve.className,ge==null?void 0:ge.root,!ce.open&&ce.exited&&(ge==null?void 0:ge.hidden))}),Ye=kn({elementType:Ne,externalSlotProps:Ke,additionalProps:d,getSlotProps:ye=>Y(P({},ye,{onClick:ze=>{B&&B(ze),ye!=null&&ye.onClick&&ye.onClick(ze)}})),className:Je(Ke==null?void 0:Ke.className,d==null?void 0:d.className,ge==null?void 0:ge.backdrop),ownerState:ce});return!R&&!U&&(!G||ve)?null:M.jsx(oY,{ref:j,container:b,disablePortal:w,children:M.jsxs(xe,P({},Me,{children:[!N&&c?M.jsx(Ne,P({},Ye)):null,M.jsx(qQ,{disableEnforceFocus:k,disableAutoFocus:S,disableRestoreFocus:E,isEnabled:se,open:U,children:I.cloneElement(m,ue)})]}))})}),W1=L0e;function M0e(e){return At("MuiDialog",e)}const xb=_t("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),$0e=I.createContext({}),F0e=$0e,B0e=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],U0e=Se($N,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),j0e=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:o}=e,a={root:["root"],container:["container",`scroll${nt(n)}`],paper:["paper",`paperScroll${nt(n)}`,`paperWidth${nt(String(r))}`,i&&"paperFullWidth",o&&"paperFullScreen"]};return kt(a,M0e,t)},z0e=Se(W1,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),V0e=Se("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${nt(n.scroll)}`]]}})(({ownerState:e})=>P({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),H0e=Se(Da,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${nt(n.scroll)}`],t[`paperWidth${nt(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>P({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${xb.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${xb.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${xb.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),W0e=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDialog"}),i=ui(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,BackdropComponent:l,BackdropProps:u,children:c,className:d,disableEscapeKeyDown:p=!1,fullScreen:h=!1,fullWidth:m=!1,maxWidth:b="sm",onBackdropClick:O,onClose:y,open:v,PaperComponent:S=Da,PaperProps:k={},scroll:C="paper",TransitionComponent:w=Eg,transitionDuration:E=o,TransitionProps:$}=r,N=Ge(r,B0e),R=P({},r,{disableEscapeKeyDown:p,fullScreen:h,fullWidth:m,maxWidth:b,scroll:C}),B=j0e(R),U=I.useRef(),V=q=>{U.current=q.target===q.currentTarget},z=q=>{U.current&&(U.current=null,O&&O(q),y&&y(q,"backdropClick"))},W=$l(s),X=I.useMemo(()=>({titleId:W}),[W]);return M.jsx(z0e,P({className:Je(B.root,d),closeAfterTransition:!0,components:{Backdrop:U0e},componentsProps:{backdrop:P({transitionDuration:E,as:l},u)},disableEscapeKeyDown:p,onClose:y,open:v,ref:n,onClick:z,ownerState:R},N,{children:M.jsx(w,P({appear:!0,in:v,timeout:E,role:"presentation"},$,{children:M.jsx(V0e,{className:Je(B.container),onMouseDown:V,ownerState:R,children:M.jsx(H0e,P({as:S,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":W},k,{className:Je(B.paper,k.className),ownerState:R,children:M.jsx(F0e.Provider,{value:X,children:c})}))})}))}))}),Q0e=W0e;function Y0e(e){return At("MuiDialogActions",e)}_t("MuiDialogActions",["root","spacing"]);const G0e=["className","disableSpacing"],q0e=e=>{const{classes:t,disableSpacing:n}=e;return kt({root:["root",!n&&"spacing"]},Y0e,t)},Z0e=Se("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>P({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),X0e=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:o=!1}=r,a=Ge(r,G0e),s=P({},r,{disableSpacing:o}),l=q0e(s);return M.jsx(Z0e,P({className:Je(l.root,i),ownerState:s,ref:n},a))}),K0e=X0e;function J0e(e){return At("MuiDialogContent",e)}_t("MuiDialogContent",["root","dividers"]);const ebe=_t("MuiDialogTitle",["root"]),tbe=ebe,nbe=["className","dividers"],rbe=e=>{const{classes:t,dividers:n}=e;return kt({root:["root",n&&"dividers"]},J0e,t)},ibe=Se("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>P({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${tbe.root} + &`]:{paddingTop:0}})),obe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDialogContent"}),{className:i,dividers:o=!1}=r,a=Ge(r,nbe),s=P({},r,{dividers:o}),l=rbe(s);return M.jsx(ibe,P({className:Je(l.root,i),ownerState:s,ref:n},a))}),abe=obe;function sbe(e){return At("MuiDivider",e)}const lbe=_t("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),g8=lbe,ube=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],cbe=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:a,textAlign:s,variant:l}=e;return kt({root:["root",t&&"absolute",l,o&&"light",a==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",s==="right"&&a!=="vertical"&&"textAlignRight",s==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},sbe,r)},dbe=Se("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})=>P({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:cn(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>P({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>P({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>P({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>P({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),fbe=Se("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>P({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)`})),hY=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDivider"}),{absolute:i=!1,children:o,className:a,component:s=o?"div":"hr",flexItem:l=!1,light:u=!1,orientation:c="horizontal",role:d=s!=="hr"?"separator":void 0,textAlign:p="center",variant:h="fullWidth"}=r,m=Ge(r,ube),b=P({},r,{absolute:i,component:s,flexItem:l,light:u,orientation:c,role:d,textAlign:p,variant:h}),O=cbe(b);return M.jsx(dbe,P({as:s,className:Je(O.root,a),role:d,ref:n,ownerState:b},m,{children:o?M.jsx(fbe,{className:O.wrapper,ownerState:b,children:o}):null}))});hY.muiSkipListHighlight=!0;const lc=hY,pbe=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function hbe(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),o=Js(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const u=o.getComputedStyle(t);a=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let s=0,l=0;if(a&&a!=="none"&&typeof a=="string"){const u=a.split("(")[1].split(")")[0].split(",");s=parseInt(u[4],10),l=parseInt(u[5],10)}return e==="left"?i?`translateX(${i.right+s-r.left}px)`:`translateX(${o.innerWidth+s-r.left}px)`:e==="right"?i?`translateX(-${r.right-i.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e==="up"?i?`translateY(${i.bottom+l-r.top}px)`:`translateY(${o.innerHeight+l-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function mbe(e){return typeof e=="function"?e():e}function wv(e,t,n){const r=mbe(n),i=hbe(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const gbe=I.forwardRef(function(t,n){const r=ui(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,container:u,direction:c="down",easing:d=i,in:p,onEnter:h,onEntered:m,onEntering:b,onExit:O,onExited:y,onExiting:v,style:S,timeout:k=o,TransitionComponent:C=j1}=t,w=Ge(t,pbe),E=I.useRef(null),$=yn(l.ref,E,n),N=Y=>Z=>{Y&&(Z===void 0?Y(E.current):Y(E.current,Z))},R=N((Y,Z)=>{wv(c,Y,u),CN(Y),h&&h(Y,Z)}),B=N((Y,Z)=>{const j=zd({timeout:k,style:S,easing:d},{mode:"enter"});Y.style.webkitTransition=r.transitions.create("-webkit-transform",P({},j)),Y.style.transition=r.transitions.create("transform",P({},j)),Y.style.webkitTransform="none",Y.style.transform="none",b&&b(Y,Z)}),U=N(m),V=N(v),z=N(Y=>{const Z=zd({timeout:k,style:S,easing:d},{mode:"exit"});Y.style.webkitTransition=r.transitions.create("-webkit-transform",Z),Y.style.transition=r.transitions.create("transform",Z),wv(c,Y,u),O&&O(Y)}),W=N(Y=>{Y.style.webkitTransition="",Y.style.transition="",y&&y(Y)}),X=Y=>{a&&a(E.current,Y)},q=I.useCallback(()=>{E.current&&wv(c,E.current,u)},[c,u]);return I.useEffect(()=>{if(p||c==="down"||c==="right")return;const Y=Og(()=>{E.current&&wv(c,E.current,u)}),Z=Js(E.current);return Z.addEventListener("resize",Y),()=>{Y.clear(),Z.removeEventListener("resize",Y)}},[c,p,u]),I.useEffect(()=>{p||q()},[p,q]),M.jsx(C,P({nodeRef:E,onEnter:R,onEntered:U,onEntering:B,onExit:z,onExited:W,onExiting:V,addEndListener:X,appear:s,in:p,timeout:k},w,{children:(Y,Z)=>I.cloneElement(l,P({ref:$,style:P({visibility:Y==="exited"&&!p?"hidden":void 0},S,l.props.style)},Z))}))}),mY=gbe;function bbe(e){return At("MuiDrawer",e)}_t("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const ybe=["BackdropProps"],Obe=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],gY=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},vbe=e=>{const{classes:t,anchor:n,variant:r}=e,i={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${nt(n)}`,r!=="temporary"&&`paperAnchorDocked${nt(n)}`]};return kt(i,bbe,t)},Ebe=Se(W1,{name:"MuiDrawer",slot:"Root",overridesResolver:gY})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),b8=Se("div",{shouldForwardProp:Ji,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:gY})({flex:"0 0 auto"}),Sbe=Se(Da,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${nt(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${nt(n.anchor)}`]]}})(({theme:e,ownerState:t})=>P({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),bY={left:"right",right:"left",top:"down",bottom:"up"};function Tbe(e){return["left","right"].indexOf(e)!==-1}function wbe(e,t){return e.direction==="rtl"&&Tbe(t)?bY[t]:t}const kbe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDrawer"}),i=ui(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:a="left",BackdropProps:s,children:l,className:u,elevation:c=16,hideBackdrop:d=!1,ModalProps:{BackdropProps:p}={},onClose:h,open:m=!1,PaperProps:b={},SlideProps:O,TransitionComponent:y=mY,transitionDuration:v=o,variant:S="temporary"}=r,k=Ge(r.ModalProps,ybe),C=Ge(r,Obe),w=I.useRef(!1);I.useEffect(()=>{w.current=!0},[]);const E=wbe(i,a),N=P({},r,{anchor:a,elevation:c,open:m,variant:S},C),R=vbe(N),B=M.jsx(Sbe,P({elevation:S==="temporary"?c:0,square:!0},b,{className:Je(R.paper,b.className),ownerState:N,children:l}));if(S==="permanent")return M.jsx(b8,P({className:Je(R.root,R.docked,u),ownerState:N,ref:n},C,{children:B}));const U=M.jsx(y,P({in:m,direction:bY[E],timeout:v,appear:w.current},O,{children:B}));return S==="persistent"?M.jsx(b8,P({className:Je(R.root,R.docked,u),ownerState:N,ref:n},C,{children:U})):M.jsx(Ebe,P({BackdropProps:P({},s,p,{transitionDuration:v}),className:Je(R.root,R.modal,u),open:m,ownerState:N,onClose:h,hideBackdrop:d,ref:n},C,k,{children:U}))}),xbe=kbe,Cbe=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Abe=e=>{const{classes:t,disableUnderline:n}=e,i=kt({root:["root",!n&&"underline"],input:["input"]},Ime,t);return P({},t,i)},_be=Se(Tk,{shouldForwardProp:e=>Ji(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ek(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",i=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return P({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${es.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${es.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${es.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${es.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:i}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${es.disabled}, .${es.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${es.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&P({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}))}),Rbe=Se(wk,{name:"MuiFilledInput",slot:"Input",overridesResolver:Sk})(({theme:e,ownerState:t})=>P({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})),yY=I.forwardRef(function(t,n){var r,i,o,a;const s=gt({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:h,slots:m={},type:b="text"}=s,O=Ge(s,Cbe),y=P({},s,{fullWidth:c,inputComponent:d,multiline:p,type:b}),v=Abe(s),S={root:{ownerState:y},input:{ownerState:y}},k=h??u?No(S,h??u):S,C=(r=(i=m.root)!=null?i:l.Root)!=null?r:_be,w=(o=(a=m.input)!=null?a:l.Input)!=null?o:Rbe;return M.jsx(MN,P({slots:{root:C,input:w},componentsProps:k,fullWidth:c,inputComponent:d,multiline:p,ref:n,type:b},O,{classes:v}))});yY.muiName="Input";const OY=yY;function Ibe(e){return At("MuiFormControl",e)}_t("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Dbe=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Nbe=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${nt(n)}`,r&&"fullWidth"]};return kt(i,Ibe,t)},Pbe=Se("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>P({},t.root,t[`margin${nt(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>P({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%"})),Lbe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiFormControl"}),{children:i,className:o,color:a="primary",component:s="div",disabled:l=!1,error:u=!1,focused:c,fullWidth:d=!1,hiddenLabel:p=!1,margin:h="none",required:m=!1,size:b="medium",variant:O="outlined"}=r,y=Ge(r,Dbe),v=P({},r,{color:a,component:s,disabled:l,error:u,fullWidth:d,hiddenLabel:p,margin:h,required:m,size:b,variant:O}),S=Nbe(v),[k,C]=I.useState(()=>{let V=!1;return i&&I.Children.forEach(i,z=>{if(!Ob(z,["Input","Select"]))return;const W=Ob(z,["Select"])?z.props.input:z;W&&vme(W.props)&&(V=!0)}),V}),[w,E]=I.useState(()=>{let V=!1;return i&&I.Children.forEach(i,z=>{Ob(z,["Input","Select"])&&(nT(z.props,!0)||nT(z.props.inputProps,!0))&&(V=!0)}),V}),[$,N]=I.useState(!1);l&&$&&N(!1);const R=c!==void 0&&!l?c:$;let B;const U=I.useMemo(()=>({adornedStart:k,setAdornedStart:C,color:a,disabled:l,error:u,filled:w,focused:R,fullWidth:d,hiddenLabel:p,size:b,onBlur:()=>{N(!1)},onEmpty:()=>{E(!1)},onFilled:()=>{E(!0)},onFocus:()=>{N(!0)},registerEffect:B,required:m,variant:O}),[k,a,l,u,w,R,d,p,B,m,b,O]);return M.jsx(vk.Provider,{value:U,children:M.jsx(Pbe,P({as:s,ownerState:v,className:Je(S.root,o),ref:n},y,{children:i}))})}),Ip=Lbe,Mbe=yde({createStyledComponent:Se("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>gt({props:e,name:"MuiStack"})}),Li=Mbe;function $be(e){return At("MuiFormControlLabel",e)}const Fbe=_t("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),J0=Fbe,Bbe=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Ube=e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:o}=e,a={root:["root",n&&"disabled",`labelPlacement${nt(r)}`,i&&"error",o&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return kt(a,$be,t)},jbe=Se("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${J0.label}`]:t.label},t.root,t[`labelPlacement${nt(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>P({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${J0.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},{[`& .${J0.label}`]:{[`&.${J0.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),zbe=Se("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${J0.error}`]:{color:(e.vars||e).palette.error.main}})),Vbe=I.forwardRef(function(t,n){var r,i;const o=gt({props:t,name:"MuiFormControlLabel"}),{className:a,componentsProps:s={},control:l,disabled:u,disableTypography:c,label:d,labelPlacement:p="end",required:h,slotProps:m={}}=o,b=Ge(o,Bbe),O=Du(),y=(r=u??l.props.disabled)!=null?r:O==null?void 0:O.disabled,v=h??l.props.required,S={disabled:y,required:v};["checked","name","onChange","value","inputRef"].forEach(N=>{typeof l.props[N]>"u"&&typeof o[N]<"u"&&(S[N]=o[N])});const k=of({props:o,muiFormControl:O,states:["error"]}),C=P({},o,{disabled:y,labelPlacement:p,required:v,error:k.error}),w=Ube(C),E=(i=m.typography)!=null?i:s.typography;let $=d;return $!=null&&$.type!==Lr&&!c&&($=M.jsx(Lr,P({component:"span"},E,{className:Je(w.label,E==null?void 0:E.className),children:$}))),M.jsxs(jbe,P({className:Je(w.root,a),ownerState:C,ref:n},b,{children:[I.cloneElement(l,S),v?M.jsxs(Li,{display:"block",children:[$,M.jsxs(zbe,{ownerState:C,"aria-hidden":!0,className:w.asterisk,children:[" ","*"]})]}):$]}))}),wy=Vbe;function Hbe(e){return At("MuiFormGroup",e)}_t("MuiFormGroup",["root","row","error"]);const Wbe=["className","row"],Qbe=e=>{const{classes:t,row:n,error:r}=e;return kt({root:["root",n&&"row",r&&"error"]},Hbe,t)},Ybe=Se("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>P({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),Gbe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiFormGroup"}),{className:i,row:o=!1}=r,a=Ge(r,Wbe),s=Du(),l=of({props:r,muiFormControl:s,states:["error"]}),u=P({},r,{row:o,error:l.error}),c=Qbe(u);return M.jsx(Ybe,P({className:Je(c.root,i),ownerState:u,ref:n},a))}),BN=Gbe;function qbe(e){return At("MuiFormHelperText",e)}const Zbe=_t("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),y8=Zbe;var O8;const Xbe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Kbe=e=>{const{classes:t,contained:n,size:r,disabled:i,error:o,filled:a,focused:s,required:l}=e,u={root:["root",i&&"disabled",o&&"error",r&&`size${nt(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return kt(u,qbe,t)},Jbe=Se("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${nt(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>P({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${y8.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${y8.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),eye=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiFormHelperText"}),{children:i,className:o,component:a="p"}=r,s=Ge(r,Xbe),l=Du(),u=of({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),c=P({},r,{component:a,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=Kbe(c);return M.jsx(Jbe,P({as:a,ownerState:c,className:Je(d.root,o),ref:n},s,{children:i===" "?O8||(O8=M.jsx("span",{className:"notranslate",children:"​"})):i}))}),Tg=eye;function tye(e){return At("MuiFormLabel",e)}const Cb=_t("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),nye=["children","className","color","component","disabled","error","filled","focused","required"],rye=e=>{const{classes:t,color:n,focused:r,disabled:i,error:o,filled:a,required:s}=e,l={root:["root",`color${nt(n)}`,i&&"disabled",o&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",o&&"error"]};return kt(l,tye,t)},iye=Se("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>P({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>P({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Cb.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Cb.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Cb.error}`]:{color:(e.vars||e).palette.error.main}})),oye=Se("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Cb.error}`]:{color:(e.vars||e).palette.error.main}})),aye=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiFormLabel"}),{children:i,className:o,component:a="label"}=r,s=Ge(r,nye),l=Du(),u=of({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),c=P({},r,{color:u.color||"primary",component:a,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=rye(c);return M.jsxs(iye,P({as:a,ownerState:c,className:Je(d.root,o),ref:n},s,{children:[i,u.required&&M.jsxs(oye,{ownerState:c,"aria-hidden":!0,className:d.asterisk,children:[" ","*"]})]}))}),Ck=aye,sye=I.createContext(),v8=sye;function lye(e){return At("MuiGrid",e)}const uye=[0,1,2,3,4,5,6,7,8,9,10],cye=["column-reverse","column","row-reverse","row"],dye=["nowrap","wrap-reverse","wrap"],m0=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],ky=_t("MuiGrid",["root","container","item","zeroMinWidth",...uye.map(e=>`spacing-xs-${e}`),...cye.map(e=>`direction-xs-${e}`),...dye.map(e=>`wrap-xs-${e}`),...m0.map(e=>`grid-xs-${e}`),...m0.map(e=>`grid-sm-${e}`),...m0.map(e=>`grid-md-${e}`),...m0.map(e=>`grid-lg-${e}`),...m0.map(e=>`grid-xl-${e}`)]),fye=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function sm(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function pye({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,i)=>{let o={};if(t[i]&&(n=t[i]),!n)return r;if(n===!0)o={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=ip({values:t.columns,breakpoints:e.breakpoints.values}),s=typeof a=="object"?a[i]:a;if(s==null)return r;const l=`${Math.round(n/s*1e8)/1e6}%`;let u={};if(t.container&&t.item&&t.columnSpacing!==0){const c=e.spacing(t.columnSpacing);if(c!=="0px"){const d=`calc(${l} + ${sm(c)})`;u={flexBasis:d,maxWidth:d}}}o=P({flexBasis:l,flexGrow:0,maxWidth:l},u)}return e.breakpoints.values[i]===0?Object.assign(r,o):r[e.breakpoints.up(i)]=o,r},{})}function hye({theme:e,ownerState:t}){const n=ip({values:t.direction,breakpoints:e.breakpoints.values});return Ra({theme:e},n,r=>{const i={flexDirection:r};return r.indexOf("column")===0&&(i[`& > .${ky.item}`]={maxWidth:"none"}),i})}function vY({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(i=>{n===""&&t[i]!==0&&(n=i)});const r=Object.keys(e).sort((i,o)=>e[i]-e[o]);return r.slice(0,r.indexOf(n))}function mye({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let i={};if(n&&r!==0){const o=ip({values:r,breakpoints:e.breakpoints.values});let a;typeof o=="object"&&(a=vY({breakpoints:e.breakpoints.values,values:o})),i=Ra({theme:e},o,(s,l)=>{var u;const c=e.spacing(s);return c!=="0px"?{marginTop:`-${sm(c)}`,[`& > .${ky.item}`]:{paddingTop:sm(c)}}:(u=a)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${ky.item}`]:{paddingTop:0}}})}return i}function gye({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let i={};if(n&&r!==0){const o=ip({values:r,breakpoints:e.breakpoints.values});let a;typeof o=="object"&&(a=vY({breakpoints:e.breakpoints.values,values:o})),i=Ra({theme:e},o,(s,l)=>{var u;const c=e.spacing(s);return c!=="0px"?{width:`calc(100% + ${sm(c)})`,marginLeft:`-${sm(c)}`,[`& > .${ky.item}`]:{paddingLeft:sm(c)}}:(u=a)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${ky.item}`]:{paddingLeft:0}}})}return i}function bye(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(i=>{const o=e[i];Number(o)>0&&r.push(n[`spacing-${i}-${String(o)}`])}),r}const yye=Se("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:i,item:o,spacing:a,wrap:s,zeroMinWidth:l,breakpoints:u}=n;let c=[];r&&(c=bye(a,u,t));const d=[];return u.forEach(p=>{const h=n[p];h&&d.push(t[`grid-${p}-${String(h)}`])}),[t.root,r&&t.container,o&&t.item,l&&t.zeroMinWidth,...c,i!=="row"&&t[`direction-xs-${String(i)}`],s!=="wrap"&&t[`wrap-xs-${String(s)}`],...d]}})(({ownerState:e})=>P({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}),hye,mye,gye,pye);function Oye(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const i=e[r];if(Number(i)>0){const o=`spacing-${r}-${String(i)}`;n.push(o)}}),n}const vye=e=>{const{classes:t,container:n,direction:r,item:i,spacing:o,wrap:a,zeroMinWidth:s,breakpoints:l}=e;let u=[];n&&(u=Oye(o,l));const c=[];l.forEach(p=>{const h=e[p];h&&c.push(`grid-${p}-${String(h)}`)});const d={root:["root",n&&"container",i&&"item",s&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,a!=="wrap"&&`wrap-xs-${String(a)}`,...c]};return kt(d,lye,t)},Eye=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiGrid"}),{breakpoints:i}=ui(),o=pk(r),{className:a,columns:s,columnSpacing:l,component:u="div",container:c=!1,direction:d="row",item:p=!1,rowSpacing:h,spacing:m=0,wrap:b="wrap",zeroMinWidth:O=!1}=o,y=Ge(o,fye),v=h||m,S=l||m,k=I.useContext(v8),C=c?s||12:k,w={},E=P({},y);i.keys.forEach(R=>{y[R]!=null&&(w[R]=y[R],delete E[R])});const $=P({},o,{columns:C,container:c,direction:d,item:p,rowSpacing:v,columnSpacing:S,wrap:b,zeroMinWidth:O,spacing:m},w,{breakpoints:i.keys}),N=vye($);return M.jsx(v8.Provider,{value:C,children:M.jsx(yye,P({ownerState:$,className:Je(N.root,a),as:u,ref:n},E))})}),zh=Eye,Sye=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function L_(e){return`scale(${e}, ${e**2})`}const Tye={entering:{opacity:1,transform:L_(1)},entered:{opacity:1,transform:"none"}},BC=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),EY=I.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:o,easing:a,in:s,onEnter:l,onEntered:u,onEntering:c,onExit:d,onExited:p,onExiting:h,style:m,timeout:b="auto",TransitionComponent:O=j1}=t,y=Ge(t,Sye),v=I.useRef(),S=I.useRef(),k=ui(),C=I.useRef(null),w=yn(C,o.ref,n),E=W=>X=>{if(W){const q=C.current;X===void 0?W(q):W(q,X)}},$=E(c),N=E((W,X)=>{CN(W);const{duration:q,delay:Y,easing:Z}=zd({style:m,timeout:b,easing:a},{mode:"enter"});let j;b==="auto"?(j=k.transitions.getAutoHeightDuration(W.clientHeight),S.current=j):j=q,W.style.transition=[k.transitions.create("opacity",{duration:j,delay:Y}),k.transitions.create("transform",{duration:BC?j:j*.666,delay:Y,easing:Z})].join(","),l&&l(W,X)}),R=E(u),B=E(h),U=E(W=>{const{duration:X,delay:q,easing:Y}=zd({style:m,timeout:b,easing:a},{mode:"exit"});let Z;b==="auto"?(Z=k.transitions.getAutoHeightDuration(W.clientHeight),S.current=Z):Z=X,W.style.transition=[k.transitions.create("opacity",{duration:Z,delay:q}),k.transitions.create("transform",{duration:BC?Z:Z*.666,delay:BC?q:q||Z*.333,easing:Y})].join(","),W.style.opacity=0,W.style.transform=L_(.75),d&&d(W)}),V=E(p),z=W=>{b==="auto"&&(v.current=setTimeout(W,S.current||0)),r&&r(C.current,W)};return I.useEffect(()=>()=>{clearTimeout(v.current)},[]),M.jsx(O,P({appear:i,in:s,nodeRef:C,onEnter:N,onEntered:R,onEntering:$,onExit:U,onExited:V,onExiting:B,addEndListener:z,timeout:b==="auto"?null:b},y,{children:(W,X)=>I.cloneElement(o,P({style:P({opacity:0,transform:L_(.75),visibility:W==="exited"&&!s?"hidden":void 0},Tye[W],m,o.props.style),ref:w},X))}))});EY.muiSupportAuto=!0;const rT=EY;function wye(e,t,n,r,i){const[o,a]=I.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return Kr(()=>{let s=!0;if(!n)return;const l=n(e),u=()=>{s&&a(l.matches)};return u(),l.addListener(u),()=>{s=!1,l.removeListener(u)}},[e,n]),o}const SY=I.useSyncExternalStore;function kye(e,t,n,r,i){const o=I.useCallback(()=>t,[t]),a=I.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){const{matches:c}=r(e);return()=>c}return o},[o,e,r,i,n]),[s,l]=I.useMemo(()=>{if(n===null)return[o,()=>()=>{}];const c=n(e);return[()=>c.matches,d=>(c.addListener(d),()=>{c.removeListener(d)})]},[o,n,e]);return SY(l,s,a)}function wg(e,t={}){const n=fk(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:o=r?window.matchMedia:null,ssrMatchMedia:a=null,noSsr:s=!1}=jQ({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(SY!==void 0?kye:wye)(l,i,o,a,s)}const xye=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Cye=e=>{const{classes:t,disableUnderline:n}=e,i=kt({root:["root",!n&&"underline"],input:["input"]},Cme,t);return P({},t,i)},Aye=Se(Tk,{shouldForwardProp:e=>Ji(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ek(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})`),P({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"},[`&.${nd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${nd.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(.${nd.disabled}, .${nd.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${nd.disabled}:before`]:{borderBottomStyle:"dotted"}})}),_ye=Se(wk,{name:"MuiInput",slot:"Input",overridesResolver:Sk})({}),TY=I.forwardRef(function(t,n){var r,i,o,a;const s=gt({props:t,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:c,fullWidth:d=!1,inputComponent:p="input",multiline:h=!1,slotProps:m,slots:b={},type:O="text"}=s,y=Ge(s,xye),v=Cye(s),k={root:{ownerState:{disableUnderline:l}}},C=m??c?No(m??c,k):k,w=(r=(i=b.root)!=null?i:u.Root)!=null?r:Aye,E=(o=(a=b.input)!=null?a:u.Input)!=null?o:_ye;return M.jsx(MN,P({slots:{root:w,input:E},slotProps:C,fullWidth:d,inputComponent:p,multiline:h,ref:n,type:O},y,{classes:v}))});TY.muiName="Input";const wY=TY;function Rye(e){return At("MuiInputAdornment",e)}const Iye=_t("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),E8=Iye;var S8;const Dye=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Nye=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${nt(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},Pye=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:o,variant:a}=e,s={root:["root",n&&"disablePointerEvents",i&&`position${nt(i)}`,a,r&&"hiddenLabel",o&&`size${nt(o)}`]};return kt(s,Rye,t)},Lye=Se("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Nye})(({theme:e,ownerState:t})=>P({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${E8.positionStart}&:not(.${E8.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),Mye=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiInputAdornment"}),{children:i,className:o,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:u,variant:c}=r,d=Ge(r,Dye),p=Du()||{};let h=c;c&&p.variant,p&&!h&&(h=p.variant);const m=P({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:u,variant:h}),b=Pye(m);return M.jsx(vk.Provider,{value:null,children:M.jsx(Lye,P({as:a,ownerState:m,className:Je(b.root,o),ref:n},d,{children:typeof i=="string"&&!l?M.jsx(Lr,{color:"text.secondary",children:i}):M.jsxs(I.Fragment,{children:[u==="start"?S8||(S8=M.jsx("span",{className:"notranslate",children:"​"})):null,i]})}))})}),UN=Mye;function $ye(e){return At("MuiInputLabel",e)}_t("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Fye=["disableAnimation","margin","shrink","variant","className"],Bye=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:o,variant:a,required:s}=e,l={root:["root",n&&"formControl",!o&&"animated",i&&"shrink",r&&r!=="normal"&&`size${nt(r)}`,a],asterisk:[s&&"asterisk"]},u=kt(l,$ye,t);return P({},t,u)},Uye=Se(Ck,{shouldForwardProp:e=>Ji(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Cb.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})=>P({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"&&P({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&&P({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"&&P({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)"}))),jye=I.forwardRef(function(t,n){const r=gt({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:o,className:a}=r,s=Ge(r,Fye),l=Du();let u=o;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const c=of({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),d=P({},r,{disableAnimation:i,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),p=Bye(d);return M.jsx(Uye,P({"data-shrink":u,ownerState:d,ref:n,className:Je(p.root,a)},s,{classes:p}))}),kY=jye,zye=I.createContext({}),Qs=zye;function Vye(e){return At("MuiList",e)}_t("MuiList",["root","padding","dense","subheader"]);const Hye=["children","className","component","dense","disablePadding","subheader"],Wye=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return kt({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},Vye,t)},Qye=Se("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})=>P({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Yye=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiList"}),{children:i,className:o,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=r,c=Ge(r,Hye),d=I.useMemo(()=>({dense:s}),[s]),p=P({},r,{component:a,dense:s,disablePadding:l}),h=Wye(p);return M.jsx(Qs.Provider,{value:d,children:M.jsxs(Qye,P({as:a,className:Je(h.root,o),ref:n,ownerState:p},c,{children:[u,i]}))})}),xY=Yye;function Gye(e){return At("MuiListItem",e)}const qye=_t("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Oh=qye;function Zye(e){return At("MuiListItemButton",e)}const Xye=_t("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),vh=Xye,Kye=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],Jye=(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]},e1e=e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:o,divider:a,selected:s}=e,u=kt({root:["root",r&&"dense",!o&&"gutters",a&&"divider",i&&"disabled",t==="flex-start"&&"alignItemsFlexStart",s&&"selected"]},Zye,n);return P({},n,u)},t1e=Se(hs,{shouldForwardProp:e=>Ji(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:Jye})(({theme:e,ownerState:t})=>P({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"}},[`&.${vh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${vh.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:cn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${vh.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:cn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${vh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${vh.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})),n1e=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiListItemButton"}),{alignItems:i="center",autoFocus:o=!1,component:a="div",children:s,dense:l=!1,disableGutters:u=!1,divider:c=!1,focusVisibleClassName:d,selected:p=!1,className:h}=r,m=Ge(r,Kye),b=I.useContext(Qs),O=I.useMemo(()=>({dense:l||b.dense||!1,alignItems:i,disableGutters:u}),[i,b.dense,l,u]),y=I.useRef(null);Kr(()=>{o&&y.current&&y.current.focus()},[o]);const v=P({},r,{alignItems:i,dense:O.dense,disableGutters:u,divider:c,selected:p}),S=e1e(v),k=yn(y,n);return M.jsx(Qs.Provider,{value:O,children:M.jsx(t1e,P({ref:k,href:m.href||m.to,component:(m.href||m.to)&&a==="div"?"button":a,focusVisibleClassName:Je(S.focusVisible,d),ownerState:v,className:Je(S.root,h)},m,{classes:S,children:s}))})}),UC=n1e;function r1e(e){return At("MuiListItemSecondaryAction",e)}_t("MuiListItemSecondaryAction",["root","disableGutters"]);const i1e=["className"],o1e=e=>{const{disableGutters:t,classes:n}=e;return kt({root:["root",t&&"disableGutters"]},r1e,n)},a1e=Se("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>P({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),CY=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=r,o=Ge(r,i1e),a=I.useContext(Qs),s=P({},r,{disableGutters:a.disableGutters}),l=o1e(s);return M.jsx(a1e,P({className:Je(l.root,i),ownerState:s,ref:n},o))});CY.muiName="ListItemSecondaryAction";const iT=CY,s1e=["className"],l1e=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],u1e=(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]},c1e=e=>{const{alignItems:t,button:n,classes:r,dense:i,disabled:o,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return kt({root:["root",i&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",o&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},Gye,r)},d1e=Se("div",{name:"MuiListItem",slot:"Root",overridesResolver:u1e})(({theme:e,ownerState:t})=>P({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&P({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${vh.root}`]:{paddingRight:48}},{[`&.${Oh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Oh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Oh.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:cn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Oh.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"}},[`&.${Oh.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:cn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),f1e=Se("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),p1e=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiListItem"}),{alignItems:i="center",autoFocus:o=!1,button:a=!1,children:s,className:l,component:u,components:c={},componentsProps:d={},ContainerComponent:p="li",ContainerProps:{className:h}={},dense:m=!1,disabled:b=!1,disableGutters:O=!1,disablePadding:y=!1,divider:v=!1,focusVisibleClassName:S,secondaryAction:k,selected:C=!1,slotProps:w={},slots:E={}}=r,$=Ge(r.ContainerProps,s1e),N=Ge(r,l1e),R=I.useContext(Qs),B=I.useMemo(()=>({dense:m||R.dense||!1,alignItems:i,disableGutters:O}),[i,R.dense,m,O]),U=I.useRef(null);Kr(()=>{o&&U.current&&U.current.focus()},[o]);const V=I.Children.toArray(s),z=V.length&&Ob(V[V.length-1],["ListItemSecondaryAction"]),W=P({},r,{alignItems:i,autoFocus:o,button:a,dense:B.dense,disabled:b,disableGutters:O,disablePadding:y,divider:v,hasSecondaryAction:z,selected:C}),X=c1e(W),q=yn(U,n),Y=E.root||c.Root||d1e,Z=w.root||d.root||{},j=P({className:Je(X.root,Z.className,l),disabled:b},N);let se=u||"li";return a&&(j.component=u||"div",j.focusVisibleClassName=Je(Oh.focusVisible,S),se=hs),z?(se=!j.component&&!u?"div":se,p==="li"&&(se==="li"?se="div":j.component==="li"&&(j.component="div")),M.jsx(Qs.Provider,{value:B,children:M.jsxs(f1e,P({as:p,className:Je(X.container,h),ref:q,ownerState:W},$,{children:[M.jsx(Y,P({},Z,!ku(Y)&&{as:se,ownerState:P({},W,Z.ownerState)},j,{children:V})),V.pop()]}))})):M.jsx(Qs.Provider,{value:B,children:M.jsxs(Y,P({},Z,{as:se,ref:q},!ku(Y)&&{ownerState:P({},W,Z.ownerState)},j,{children:[V,k&&M.jsx(iT,{children:k})]}))})}),Eh=p1e;function h1e(e){return At("MuiListItemAvatar",e)}_t("MuiListItemAvatar",["root","alignItemsFlexStart"]);const m1e=["className"],g1e=e=>{const{alignItems:t,classes:n}=e;return kt({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},h1e,n)},b1e=Se("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>P({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),y1e=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiListItemAvatar"}),{className:i}=r,o=Ge(r,m1e),a=I.useContext(Qs),s=P({},r,{alignItems:a.alignItems}),l=g1e(s);return M.jsx(b1e,P({className:Je(l.root,i),ownerState:s,ref:n},o))}),O1e=y1e;function v1e(e){return At("MuiListItemIcon",e)}const E1e=_t("MuiListItemIcon",["root","alignItemsFlexStart"]),T8=E1e,S1e=["className"],T1e=e=>{const{alignItems:t,classes:n}=e;return kt({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},v1e,n)},w1e=Se("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})=>P({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),k1e=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiListItemIcon"}),{className:i}=r,o=Ge(r,S1e),a=I.useContext(Qs),s=P({},r,{alignItems:a.alignItems}),l=T1e(s);return M.jsx(w1e,P({className:Je(l.root,i),ownerState:s,ref:n},o))}),jN=k1e;function x1e(e){return At("MuiListItemText",e)}const C1e=_t("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),oT=C1e,A1e=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],_1e=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:o}=e;return kt({root:["root",n&&"inset",o&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},x1e,t)},R1e=Se("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${oT.primary}`]:t.primary},{[`& .${oT.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>P({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),I1e=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiListItemText"}),{children:i,className:o,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:u,secondary:c,secondaryTypographyProps:d}=r,p=Ge(r,A1e),{dense:h}=I.useContext(Qs);let m=l??i,b=c;const O=P({},r,{disableTypography:a,inset:s,primary:!!m,secondary:!!b,dense:h}),y=_1e(O);return m!=null&&m.type!==Lr&&!a&&(m=M.jsx(Lr,P({variant:h?"body2":"body1",className:y.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:m}))),b!=null&&b.type!==Lr&&!a&&(b=M.jsx(Lr,P({variant:"body2",className:y.secondary,color:"text.secondary",display:"block"},d,{children:b}))),M.jsxs(R1e,P({className:Je(y.root,o),ownerState:O,ref:n},p,{children:[m,b]}))}),ap=I1e,D1e=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function jC(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function w8(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function AY(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 g0(e,t,n,r,i,o){let a=!1,s=i(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!AY(s,o)||l)s=i(e,s,n);else return s.focus(),!0}return!1}const N1e=I.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:o=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=t,p=Ge(t,D1e),h=I.useRef(null),m=I.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Kr(()=>{i&&h.current.focus()},[i]),I.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(S,k)=>{const C=!h.current.style.width;if(S.clientHeight{const k=h.current,C=S.key,w=br(k).activeElement;if(C==="ArrowDown")S.preventDefault(),g0(k,w,u,l,jC);else if(C==="ArrowUp")S.preventDefault(),g0(k,w,u,l,w8);else if(C==="Home")S.preventDefault(),g0(k,null,u,l,jC);else if(C==="End")S.preventDefault(),g0(k,null,u,l,w8);else if(C.length===1){const E=m.current,$=C.toLowerCase(),N=performance.now();E.keys.length>0&&(N-E.lastTime>500?(E.keys=[],E.repeating=!0,E.previousKeyMatched=!0):E.repeating&&$!==E.keys[0]&&(E.repeating=!1)),E.lastTime=N,E.keys.push($);const R=w&&!E.repeating&&AY(w,E);E.previousKeyMatched&&(R||g0(k,w,!1,l,jC,E))?S.preventDefault():E.previousKeyMatched=!1}c&&c(S)},O=yn(h,n);let y=-1;I.Children.forEach(a,(S,k)=>{if(!I.isValidElement(S)){y===k&&(y+=1,y>=a.length&&(y=-1));return}S.props.disabled||(d==="selectedMenu"&&S.props.selected||y===-1)&&(y=k),y===k&&(S.props.disabled||S.props.muiSkipListHighlight||S.type.muiSkipListHighlight)&&(y+=1,y>=a.length&&(y=-1))});const v=I.Children.map(a,(S,k)=>{if(k===y){const C={};return o&&(C.autoFocus=!0),S.props.tabIndex===void 0&&d==="selectedMenu"&&(C.tabIndex=0),I.cloneElement(S,C)}return S});return M.jsx(xY,P({role:"menu",ref:O,className:s,onKeyDown:b,tabIndex:i?0:-1},p,{children:v}))}),Q1=N1e;function P1e(e){return At("MuiPopover",e)}_t("MuiPopover",["root","paper"]);const L1e=["onEntering"],M1e=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],$1e=["slotProps"];function k8(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function x8(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function C8(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function zC(e){return typeof e=="function"?e():e}const F1e=e=>{const{classes:t}=e;return kt({root:["root"],paper:["paper"]},P1e,t)},B1e=Se(W1,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_Y=Se(Da,{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}),U1e=I.forwardRef(function(t,n){var r,i,o;const a=gt({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:p,className:h,container:m,elevation:b=8,marginThreshold:O=16,open:y,PaperProps:v={},slots:S,slotProps:k,transformOrigin:C={vertical:"top",horizontal:"left"},TransitionComponent:w=rT,transitionDuration:E="auto",TransitionProps:{onEntering:$}={},disableScrollLock:N=!1}=a,R=Ge(a.TransitionProps,L1e),B=Ge(a,M1e),U=(r=k==null?void 0:k.paper)!=null?r:v,V=I.useRef(),z=yn(V,U.ref),W=P({},a,{anchorOrigin:u,anchorReference:d,elevation:b,marginThreshold:O,externalPaperSlotProps:U,transformOrigin:C,TransitionComponent:w,transitionDuration:E,TransitionProps:R}),X=F1e(W),q=I.useCallback(()=>{if(d==="anchorPosition")return c;const ye=zC(l),$e=(ye&&ye.nodeType===1?ye:br(V.current).body).getBoundingClientRect();return{top:$e.top+k8($e,u.vertical),left:$e.left+x8($e,u.horizontal)}},[l,u.horizontal,u.vertical,c,d]),Y=I.useCallback(ye=>({vertical:k8(ye,C.vertical),horizontal:x8(ye,C.horizontal)}),[C.horizontal,C.vertical]),Z=I.useCallback(ye=>{const ze={width:ye.offsetWidth,height:ye.offsetHeight},$e=Y(ze);if(d==="none")return{top:null,left:null,transformOrigin:C8($e)};const We=q();let dt=We.top-$e.vertical,Be=We.left-$e.horizontal;const re=dt+ze.height,ee=Be+ze.width,J=Js(zC(l)),Re=J.innerHeight-O,Le=J.innerWidth-O;if(O!==null&&dtRe){const De=re-Re;dt-=De,$e.vertical+=De}if(O!==null&&BeLe){const De=ee-Le;Be-=De,$e.horizontal+=De}return{top:`${Math.round(dt)}px`,left:`${Math.round(Be)}px`,transformOrigin:C8($e)}},[l,d,q,Y,O]),[j,se]=I.useState(y),ve=I.useCallback(()=>{const ye=V.current;if(!ye)return;const ze=Z(ye);ze.top!==null&&(ye.style.top=ze.top),ze.left!==null&&(ye.style.left=ze.left),ye.style.transformOrigin=ze.transformOrigin,se(!0)},[Z]);I.useEffect(()=>(N&&window.addEventListener("scroll",ve),()=>window.removeEventListener("scroll",ve)),[l,N,ve]);const G=(ye,ze)=>{$&&$(ye,ze),ve()},ce=()=>{se(!1)};I.useEffect(()=>{y&&ve()}),I.useImperativeHandle(s,()=>y?{updatePosition:()=>{ve()}}:null,[y,ve]),I.useEffect(()=>{if(!y)return;const ye=Og(()=>{ve()}),ze=Js(l);return ze.addEventListener("resize",ye),()=>{ye.clear(),ze.removeEventListener("resize",ye)}},[l,y,ve]);let ge=E;E==="auto"&&!w.muiSupportAuto&&(ge=void 0);const ue=m||(l?br(zC(l)).body:void 0),xe=(i=S==null?void 0:S.root)!=null?i:B1e,Ne=(o=S==null?void 0:S.paper)!=null?o:_Y,Ve=kn({elementType:Ne,externalSlotProps:P({},U,{style:j?U.style:P({},U.style,{opacity:0})}),additionalProps:{elevation:b,ref:z},ownerState:W,className:Je(X.paper,U==null?void 0:U.className)}),Ke=kn({elementType:xe,externalSlotProps:(k==null?void 0:k.root)||{},externalForwardedProps:B,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:ue,open:y},ownerState:W,className:Je(X.root,h)}),{slotProps:Me}=Ke,Ye=Ge(Ke,$1e);return M.jsx(xe,P({},Ye,!ku(xe)&&{slotProps:Me,disableScrollLock:N},{children:M.jsx(w,P({appear:!0,in:y,onEntering:G,onExited:ce,timeout:ge},R,{children:M.jsx(Ne,P({},Ve,{children:p}))}))}))}),zN=U1e;function j1e(e){return At("MuiMenu",e)}_t("MuiMenu",["root","paper","list"]);const z1e=["onEntering"],V1e=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],H1e={vertical:"top",horizontal:"right"},W1e={vertical:"top",horizontal:"left"},Q1e=e=>{const{classes:t}=e;return kt({root:["root"],paper:["paper"],list:["list"]},j1e,t)},Y1e=Se(zN,{shouldForwardProp:e=>Ji(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),G1e=Se(_Y,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),q1e=Se(Q1,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Z1e=I.forwardRef(function(t,n){var r,i;const o=gt({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:p,PaperProps:h={},PopoverClasses:m,transitionDuration:b="auto",TransitionProps:{onEntering:O}={},variant:y="selectedMenu",slots:v={},slotProps:S={}}=o,k=Ge(o.TransitionProps,z1e),C=Ge(o,V1e),w=ui(),E=w.direction==="rtl",$=P({},o,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:O,PaperProps:h,transitionDuration:b,TransitionProps:k,variant:y}),N=Q1e($),R=a&&!u&&p,B=I.useRef(null),U=(Z,j)=>{B.current&&B.current.adjustStyleForScrollbar(Z,w),O&&O(Z,j)},V=Z=>{Z.key==="Tab"&&(Z.preventDefault(),d&&d(Z,"tabKeyDown"))};let z=-1;I.Children.map(s,(Z,j)=>{I.isValidElement(Z)&&(Z.props.disabled||(y==="selectedMenu"&&Z.props.selected||z===-1)&&(z=j))});const W=(r=v.paper)!=null?r:G1e,X=(i=S.paper)!=null?i:h,q=kn({elementType:v.root,externalSlotProps:S.root,ownerState:$,className:[N.root,l]}),Y=kn({elementType:W,externalSlotProps:X,ownerState:$,className:N.paper});return M.jsx(Y1e,P({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?H1e:W1e,slots:{paper:W,root:v.root},slotProps:{root:q,paper:Y},open:p,ref:n,transitionDuration:b,TransitionProps:P({onEntering:U},k),ownerState:$},C,{classes:m,children:M.jsx(q1e,P({onKeyDown:V,actions:B,autoFocus:a&&(z===-1||u),autoFocusItem:R,variant:y},c,{className:Je(N.list,c.className),children:s}))}))}),X1e=Z1e;function K1e(e){return At("MuiMenuItem",e)}const J1e=_t("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),b0=J1e,eOe=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],tOe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},nOe=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:o,classes:a}=e,l=kt({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},K1e,a);return P({},a,l)},rOe=Se(hs,{shouldForwardProp:e=>Ji(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:tOe})(({theme:e,ownerState:t})=>P({},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"}},[`&.${b0.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${b0.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:cn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${b0.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:cn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${b0.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${b0.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${g8.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${g8.inset}`]:{marginLeft:52},[`& .${oT.root}`]:{marginTop:0,marginBottom:0},[`& .${oT.inset}`]:{paddingLeft:36},[`& .${T8.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&P({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${T8.root} svg`]:{fontSize:"1.25rem"}}))),iOe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:o="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:p}=r,h=Ge(r,eOe),m=I.useContext(Qs),b=I.useMemo(()=>({dense:a||m.dense||!1,disableGutters:l}),[m.dense,a,l]),O=I.useRef(null);Kr(()=>{i&&O.current&&O.current.focus()},[i]);const y=P({},r,{dense:b.dense,divider:s,disableGutters:l}),v=nOe(r),S=yn(O,n);let k;return r.disabled||(k=d!==void 0?d:-1),M.jsx(Qs.Provider,{value:b,children:M.jsx(rOe,P({ref:S,role:c,tabIndex:k,component:o,focusVisibleClassName:Je(v.focusVisible,u),className:Je(v.root,p)},h,{ownerState:y,classes:v}))})}),bp=iOe;function oOe(e){return At("MuiNativeSelect",e)}const aOe=_t("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),VN=aOe,sOe=["className","disabled","error","IconComponent","inputRef","variant"],lOe=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e,s={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${nt(n)}`,o&&"iconOpen",r&&"disabled"]};return kt(s,oOe,t)},RY=({ownerState:e,theme:t})=>P({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":P({},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"},[`&.${VN.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}}),uOe=Se("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ji,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${VN.multiple}`]:t.multiple}]}})(RY),IY=({ownerState:e,theme:t})=>P({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${VN.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),cOe=Se("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${nt(n.variant)}`],n.open&&t.iconOpen]}})(IY),dOe=I.forwardRef(function(t,n){const{className:r,disabled:i,error:o,IconComponent:a,inputRef:s,variant:l="standard"}=t,u=Ge(t,sOe),c=P({},t,{disabled:i,variant:l,error:o}),d=lOe(c);return M.jsxs(I.Fragment,{children:[M.jsx(uOe,P({ownerState:c,className:Je(d.select,r),disabled:i,ref:s||n},u)),t.multiple?null:M.jsx(cOe,{as:a,ownerState:c,className:d.icon})]})}),fOe=dOe;var A8;const pOe=["children","classes","className","label","notched"],hOe=Se("fieldset",{shouldForwardProp:Ji})({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%"}),mOe=Se("legend",{shouldForwardProp:Ji})(({ownerState:e,theme:t})=>P({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&&P({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 gOe(e){const{className:t,label:n,notched:r}=e,i=Ge(e,pOe),o=n!=null&&n!=="",a=P({},e,{notched:r,withLabel:o});return M.jsx(hOe,P({"aria-hidden":!0,className:t,ownerState:a},i,{children:M.jsx(mOe,{ownerState:a,children:o?M.jsx("span",{children:n}):A8||(A8=M.jsx("span",{className:"notranslate",children:"​"}))})}))}const bOe=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],yOe=e=>{const{classes:t}=e,r=kt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},_me,t);return P({},t,r)},OOe=Se(Tk,{shouldForwardProp:e=>Ji(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ek})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return P({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ru.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ru.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${ru.focused} .${ru.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${ru.error} .${ru.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ru.disabled} .${ru.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&P({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),vOe=Se(gOe,{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}}),EOe=Se(wk,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Sk})(({theme:e,ownerState:t})=>P({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})),DY=I.forwardRef(function(t,n){var r,i,o,a,s;const l=gt({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:p,multiline:h=!1,notched:m,slots:b={},type:O="text"}=l,y=Ge(l,bOe),v=yOe(l),S=Du(),k=of({props:l,muiFormControl:S,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),C=P({},l,{color:k.color||"primary",disabled:k.disabled,error:k.error,focused:k.focused,formControl:S,fullWidth:c,hiddenLabel:k.hiddenLabel,multiline:h,size:k.size,type:O}),w=(r=(i=b.root)!=null?i:u.Root)!=null?r:OOe,E=(o=(a=b.input)!=null?a:u.Input)!=null?o:EOe;return M.jsx(MN,P({slots:{root:w,input:E},renderSuffix:$=>M.jsx(vOe,{ownerState:C,className:v.notchedOutline,label:p!=null&&p!==""&&k.required?s||(s=M.jsxs(I.Fragment,{children:[p," ","*"]})):p,notched:typeof m<"u"?m:!!($.startAdornment||$.filled||$.focused)}),fullWidth:c,inputComponent:d,multiline:h,ref:n,type:O},y,{classes:P({},v,{notchedOutline:null})}))});DY.muiName="Input";const NY=DY,SOe=wi(M.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"),TOe=wi(M.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"),wOe=Se("span",{shouldForwardProp:Ji})({position:"relative",display:"flex"}),kOe=Se(SOe)({transform:"scale(1)"}),xOe=Se(TOe)(({theme:e,ownerState:t})=>P({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 PY(e){const{checked:t=!1,classes:n={},fontSize:r}=e,i=P({},e,{checked:t});return M.jsxs(wOe,{className:n.root,ownerState:i,children:[M.jsx(kOe,{fontSize:r,className:n.background,ownerState:i}),M.jsx(xOe,{fontSize:r,className:n.dot,ownerState:i})]})}const COe=I.createContext(void 0),LY=COe;function AOe(){return I.useContext(LY)}function _Oe(e){return At("MuiRadio",e)}const _8=_t("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),ROe=["checked","checkedIcon","color","icon","name","onChange","size","className"],IOe=e=>{const{classes:t,color:n,size:r}=e,i={root:["root",`color${nt(n)}`,r!=="medium"&&`size${nt(r)}`]};return P({},t,kt(i,_Oe,t))},DOe=Se(FN,{shouldForwardProp:e=>Ji(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${nt(n.size)}`],t[`color${nt(n.color)}`]]}})(({theme:e,ownerState:t})=>P({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${_8.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${_8.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function NOe(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const R8=M.jsx(PY,{checked:!0}),I8=M.jsx(PY,{}),POe=I.forwardRef(function(t,n){var r,i;const o=gt({props:t,name:"MuiRadio"}),{checked:a,checkedIcon:s=R8,color:l="primary",icon:u=I8,name:c,onChange:d,size:p="medium",className:h}=o,m=Ge(o,ROe),b=P({},o,{color:l,size:p}),O=IOe(b),y=AOe();let v=a;const S=qS(d,y&&y.onChange);let k=c;return y&&(typeof v>"u"&&(v=NOe(y.value,o.value)),typeof k>"u"&&(k=y.name)),M.jsx(DOe,P({type:"radio",icon:I.cloneElement(u,{fontSize:(r=I8.props.fontSize)!=null?r:p}),checkedIcon:I.cloneElement(s,{fontSize:(i=R8.props.fontSize)!=null?i:p}),ownerState:b,classes:O,name:k,checked:v,onChange:S,ref:n,className:Je(O.root,h)},m))}),D8=POe,LOe=["actions","children","defaultValue","name","onChange","value"],MOe=I.forwardRef(function(t,n){const{actions:r,children:i,defaultValue:o,name:a,onChange:s,value:l}=t,u=Ge(t,LOe),c=I.useRef(null),[d,p]=Xi({controlled:l,default:o,name:"RadioGroup"});I.useImperativeHandle(r,()=>({focus:()=>{let O=c.current.querySelector("input:not(:disabled):checked");O||(O=c.current.querySelector("input:not(:disabled)")),O&&O.focus()}}),[]);const h=yn(n,c),m=$l(a),b=I.useMemo(()=>({name:m,onChange(O){p(O.target.value),s&&s(O,O.target.value)},value:d}),[m,s,p,d]);return M.jsx(LY.Provider,{value:b,children:M.jsx(BN,P({role:"radiogroup",ref:h},u,{children:i}))})}),$Oe=MOe;function FOe(e){return At("MuiSelect",e)}const y0=_t("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var N8;const BOe=["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"],UOe=Se("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${y0.select}`]:t.select},{[`&.${y0.select}`]:t[n.variant]},{[`&.${y0.error}`]:t.error},{[`&.${y0.multiple}`]:t.multiple}]}})(RY,{[`&.${y0.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),jOe=Se("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${nt(n.variant)}`],n.open&&t.iconOpen]}})(IY),zOe=Se("input",{shouldForwardProp:e=>EN(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 P8(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function VOe(e){return e==null||typeof e=="string"&&!e.trim()}const HOe=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e,s={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${nt(n)}`,o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return kt(s,FOe,t)},WOe=I.forwardRef(function(t,n){var r;const{"aria-describedby":i,"aria-label":o,autoFocus:a,autoWidth:s,children:l,className:u,defaultOpen:c,defaultValue:d,disabled:p,displayEmpty:h,error:m=!1,IconComponent:b,inputRef:O,labelId:y,MenuProps:v={},multiple:S,name:k,onBlur:C,onChange:w,onClose:E,onFocus:$,onOpen:N,open:R,readOnly:B,renderValue:U,SelectDisplayProps:V={},tabIndex:z,value:W,variant:X="standard"}=t,q=Ge(t,BOe),[Y,Z]=Xi({controlled:W,default:d,name:"Select"}),[j,se]=Xi({controlled:R,default:c,name:"Select"}),ve=I.useRef(null),G=I.useRef(null),[ce,ge]=I.useState(null),{current:ue}=I.useRef(R!=null),[xe,Ne]=I.useState(),Ve=yn(n,O),Ke=I.useCallback(et=>{G.current=et,et&&ge(et)},[]),Me=ce==null?void 0:ce.parentNode;I.useImperativeHandle(Ve,()=>({focus:()=>{G.current.focus()},node:ve.current,value:Y}),[Y]),I.useEffect(()=>{c&&j&&ce&&!ue&&(Ne(s?null:Me.clientWidth),G.current.focus())},[ce,s]),I.useEffect(()=>{a&&G.current.focus()},[a]),I.useEffect(()=>{if(!y)return;const et=br(G.current).getElementById(y);if(et){const vt=()=>{getSelection().isCollapsed&&G.current.focus()};return et.addEventListener("click",vt),()=>{et.removeEventListener("click",vt)}}},[y]);const Ye=(et,vt)=>{et?N&&N(vt):E&&E(vt),ue||(Ne(s?null:Me.clientWidth),se(et))},ye=et=>{et.button===0&&(et.preventDefault(),G.current.focus(),Ye(!0,et))},ze=et=>{Ye(!1,et)},$e=I.Children.toArray(l),We=et=>{const vt=$e.find(qe=>qe.props.value===et.target.value);vt!==void 0&&(Z(vt.props.value),w&&w(et,vt))},dt=et=>vt=>{let qe;if(vt.currentTarget.hasAttribute("tabindex")){if(S){qe=Array.isArray(Y)?Y.slice():[];const it=Y.indexOf(et.props.value);it===-1?qe.push(et.props.value):qe.splice(it,1)}else qe=et.props.value;if(et.props.onClick&&et.props.onClick(vt),Y!==qe&&(Z(qe),w)){const it=vt.nativeEvent||vt,Et=new it.constructor(it.type,it);Object.defineProperty(Et,"target",{writable:!0,value:{value:qe,name:k}}),w(Et,et)}S||Ye(!1,vt)}},Be=et=>{B||[" ","ArrowUp","ArrowDown","Enter"].indexOf(et.key)!==-1&&(et.preventDefault(),Ye(!0,et))},re=ce!==null&&j,ee=et=>{!re&&C&&(Object.defineProperty(et,"target",{writable:!0,value:{value:Y,name:k}}),C(et))};delete q["aria-invalid"];let J,Re;const Le=[];let De=!1;(nT({value:Y})||h)&&(U?J=U(Y):De=!0);const ie=$e.map(et=>{if(!I.isValidElement(et))return null;let vt;if(S){if(!Array.isArray(Y))throw new Error(Ud(2));vt=Y.some(qe=>P8(qe,et.props.value)),vt&&De&&Le.push(et.props.children)}else vt=P8(Y,et.props.value),vt&&De&&(Re=et.props.children);return I.cloneElement(et,{"aria-selected":vt?"true":"false",onClick:dt(et),onKeyUp:qe=>{qe.key===" "&&qe.preventDefault(),et.props.onKeyUp&&et.props.onKeyUp(qe)},role:"option",selected:vt,value:void 0,"data-value":et.props.value})});De&&(S?Le.length===0?J=null:J=Le.reduce((et,vt,qe)=>(et.push(vt),qe{const{classes:t}=e;return t},HN={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Ji(e)&&e!=="variant",slot:"Root"},ZOe=Se(wY,HN)(""),XOe=Se(NY,HN)(""),KOe=Se(OY,HN)(""),MY=I.forwardRef(function(t,n){const r=gt({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:o,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=dY,id:d,input:p,inputProps:h,label:m,labelId:b,MenuProps:O,multiple:y=!1,native:v=!1,onClose:S,onOpen:k,open:C,renderValue:w,SelectDisplayProps:E,variant:$="outlined"}=r,N=Ge(r,YOe),R=v?fOe:QOe,B=Du(),U=of({props:r,muiFormControl:B,states:["variant","error"]}),V=U.variant||$,z=P({},r,{variant:V,classes:a}),W=qOe(z),X=Ge(W,GOe),q=p||{standard:M.jsx(ZOe,{ownerState:z}),outlined:M.jsx(XOe,{label:m,ownerState:z}),filled:M.jsx(KOe,{ownerState:z})}[V],Y=yn(n,q.ref);return M.jsx(I.Fragment,{children:I.cloneElement(q,P({inputComponent:R,inputProps:P({children:o,error:U.error,IconComponent:c,variant:V,type:void 0,multiple:y},v?{id:d}:{autoWidth:i,defaultOpen:l,displayEmpty:u,labelId:b,MenuProps:O,onClose:S,onOpen:k,open:C,renderValue:w,SelectDisplayProps:P({id:d},E)},h,{classes:h?No(X,h.classes):X},p?p.props.inputProps:{})},y&&v&&V==="outlined"?{notched:!0}:{},{ref:Y,className:Je(q.props.className,s,W.root)},!p&&{variant:V},N))})});MY.muiName="Select";const $Y=MY,JOe=e=>!e||!ku(e);function eve(e){return At("MuiSlider",e)}const wl=_t("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),tve=e=>{const{open:t}=e;return{offset:Je(t&&wl.valueLabelOpen),circle:wl.valueLabelCircle,label:wl.valueLabelLabel}};function nve(e){const{children:t,className:n,value:r}=e,i=tve(e);return t?I.cloneElement(t,{className:Je(t.props.className)},M.jsxs(I.Fragment,{children:[t.props.children,M.jsx("span",{className:Je(i.offset,n),"aria-hidden":!0,children:M.jsx("span",{className:i.circle,children:M.jsx("span",{className:i.label,children:r})})})]})):null}const rve=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function L8(e){return e}const ive=Se("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${nt(n.color)}`],n.size!=="medium"&&t[`size${nt(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>P({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&P({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&P({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${wl.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${wl.dragging}`]:{[`& .${wl.thumb}, & .${wl.track}`]:{transition:"none"}}})),ove=Se("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>P({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),ave=Se("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?gk(e.palette[t.color].main,.62):mk(e.palette[t.color].main,.5);return P({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),sve=Se("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${nt(n.color)}`],n.size!=="medium"&&t[`thumbSize${nt(n.size)}`]]}})(({theme:e,ownerState:t})=>P({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&::before":P({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${wl.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:cn(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${wl.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:cn(e.palette[t.color].main,.16)}`},[`&.${wl.disabled}`]:{"&:hover":{boxShadow:"none"}}})),lve=Se(nve,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>P({[`&.${wl.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},t.orientation==="horizontal"&&{top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},t.orientation==="vertical"&&{right:t.size==="small"?"20px":"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),uve=Se("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>EN(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>P({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),cve=Se("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>EN(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>P({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),dve=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:o,classes:a,color:s,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",o==="inverted"&&"trackInverted",o===!1&&"trackFalse",s&&`color${nt(s)}`,l&&`size${nt(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${nt(l)}`,s&&`thumbColor${nt(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return kt(u,eve,a)},fve=({children:e})=>e,pve=I.forwardRef(function(t,n){var r,i,o,a,s,l,u,c,d,p,h,m,b,O,y,v,S,k,C,w,E,$,N,R;const B=gt({props:t,name:"MuiSlider"}),V=ui().direction==="rtl",{"aria-label":z,"aria-valuetext":W,"aria-labelledby":X,component:q="span",components:Y={},componentsProps:Z={},color:j="primary",classes:se,className:ve,disableSwap:G=!1,disabled:ce=!1,getAriaLabel:ge,getAriaValueText:ue,marks:xe=!1,max:Ne=100,min:Ve=0,orientation:Ke="horizontal",size:Me="medium",step:Ye=1,scale:ye=L8,slotProps:ze,slots:$e,track:We="normal",valueLabelDisplay:dt="off",valueLabelFormat:Be=L8}=B,re=Ge(B,rve),ee=P({},B,{isRtl:V,max:Ne,min:Ve,classes:se,disabled:ce,disableSwap:G,orientation:Ke,marks:xe,color:j,size:Me,step:Ye,scale:ye,track:We,valueLabelDisplay:dt,valueLabelFormat:Be}),{axisProps:J,getRootProps:Re,getHiddenInputProps:Le,getThumbProps:De,open:ie,active:fe,axis:de,focusedThumbIndex:Oe,range:Te,dragging:rt,marks:pt,values:xt,trackOffset:et,trackLeap:vt,getThumbStyle:qe}=Zhe(P({},ee,{rootRef:n}));ee.marked=pt.length>0&&pt.some(Ue=>Ue.label),ee.dragging=rt,ee.focusedThumbIndex=Oe;const it=dve(ee),Et=(r=(i=$e==null?void 0:$e.root)!=null?i:Y.Root)!=null?r:ive,Nt=(o=(a=$e==null?void 0:$e.rail)!=null?a:Y.Rail)!=null?o:ove,on=(s=(l=$e==null?void 0:$e.track)!=null?l:Y.Track)!=null?s:ave,dn=(u=(c=$e==null?void 0:$e.thumb)!=null?c:Y.Thumb)!=null?u:sve,pn=(d=(p=$e==null?void 0:$e.valueLabel)!=null?p:Y.ValueLabel)!=null?d:lve,zn=(h=(m=$e==null?void 0:$e.mark)!=null?m:Y.Mark)!=null?h:uve,Ee=(b=(O=$e==null?void 0:$e.markLabel)!=null?O:Y.MarkLabel)!=null?b:cve,_e=(y=(v=$e==null?void 0:$e.input)!=null?v:Y.Input)!=null?y:"input",pe=(S=ze==null?void 0:ze.root)!=null?S:Z.root,lt=(k=ze==null?void 0:ze.rail)!=null?k:Z.rail,at=(C=ze==null?void 0:ze.track)!=null?C:Z.track,Mt=(w=ze==null?void 0:ze.thumb)!=null?w:Z.thumb,$t=(E=ze==null?void 0:ze.valueLabel)!=null?E:Z.valueLabel,It=($=ze==null?void 0:ze.mark)!=null?$:Z.mark,Ct=(N=ze==null?void 0:ze.markLabel)!=null?N:Z.markLabel,Zt=(R=ze==null?void 0:ze.input)!=null?R:Z.input,Ie=kn({elementType:Et,getSlotProps:Re,externalSlotProps:pe,externalForwardedProps:re,additionalProps:P({},JOe(Et)&&{as:q}),ownerState:P({},ee,pe==null?void 0:pe.ownerState),className:[it.root,ve]}),we=kn({elementType:Nt,externalSlotProps:lt,ownerState:ee,className:it.rail}),Qe=kn({elementType:on,externalSlotProps:at,additionalProps:{style:P({},J[de].offset(et),J[de].leap(vt))},ownerState:P({},ee,at==null?void 0:at.ownerState),className:it.track}),ot=kn({elementType:dn,getSlotProps:De,externalSlotProps:Mt,ownerState:P({},ee,Mt==null?void 0:Mt.ownerState),className:it.thumb}),rn=kn({elementType:pn,externalSlotProps:$t,ownerState:P({},ee,$t==null?void 0:$t.ownerState),className:it.valueLabel}),Wt=kn({elementType:zn,externalSlotProps:It,ownerState:ee,className:it.mark}),mn=kn({elementType:Ee,externalSlotProps:Ct,ownerState:ee,className:it.markLabel}),tr=kn({elementType:_e,getSlotProps:Le,externalSlotProps:Zt,ownerState:ee});return M.jsxs(Et,P({},Ie,{children:[M.jsx(Nt,P({},we)),M.jsx(on,P({},Qe)),pt.filter(Ue=>Ue.value>=Ve&&Ue.value<=Ne).map((Ue,Ce)=>{const mt=tT(Ue.value,Ve,Ne),Dt=J[de].offset(mt);let tn;return We===!1?tn=xt.indexOf(Ue.value)!==-1:tn=We==="normal"&&(Te?Ue.value>=xt[0]&&Ue.value<=xt[xt.length-1]:Ue.value<=xt[0])||We==="inverted"&&(Te?Ue.value<=xt[0]||Ue.value>=xt[xt.length-1]:Ue.value>=xt[0]),M.jsxs(I.Fragment,{children:[M.jsx(zn,P({"data-index":Ce},Wt,!ku(zn)&&{markActive:tn},{style:P({},Dt,Wt.style),className:Je(Wt.className,tn&&it.markActive)})),Ue.label!=null?M.jsx(Ee,P({"aria-hidden":!0,"data-index":Ce},mn,!ku(Ee)&&{markLabelActive:tn},{style:P({},Dt,mn.style),className:Je(it.markLabel,mn.className,tn&&it.markLabelActive),children:Ue.label})):null]},Ce)}),xt.map((Ue,Ce)=>{const mt=tT(Ue,Ve,Ne),Dt=J[de].offset(mt),tn=dt==="off"?fve:pn;return M.jsx(tn,P({},!ku(tn)&&{valueLabelFormat:Be,valueLabelDisplay:dt,value:typeof Be=="function"?Be(ye(Ue),Ce):Be,index:Ce,open:ie===Ce||fe===Ce||dt==="on",disabled:ce},rn,{children:M.jsx(dn,P({"data-index":Ce},ot,{className:Je(it.thumb,ot.className,fe===Ce&&it.active,Oe===Ce&&it.focusVisible),style:P({},Dt,qe(Ce),ot.style),children:M.jsx(_e,P({"data-index":Ce,"aria-label":ge?ge(Ce):z,"aria-valuenow":ye(Ue),"aria-labelledby":X,"aria-valuetext":ue?ue(ye(Ue),Ce):W,value:xt[Ce]},tr))}))}),Ce)})]}))}),hve=pve;function mve(e){return At("MuiTooltip",e)}const gve=_t("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),md=gve,bve=["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 yve(e){return Math.round(e*1e5)/1e5}const Ove=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:o}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${nt(o.split("-")[0])}`],arrow:["arrow"]};return kt(a,mve,t)},vve=Se(H1,{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})=>P({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${md.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${md.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${md.arrow}`]:P({},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"] .${md.arrow}`]:P({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Eve=Se("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${nt(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>P({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:cn(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${yve(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${md.popper}[data-popper-placement*="left"] &`]:P({transformOrigin:"right center"},t.isRtl?P({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):P({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${md.popper}[data-popper-placement*="right"] &`]:P({transformOrigin:"left center"},t.isRtl?P({marginRight:"14px"},t.touch&&{marginRight:"24px"}):P({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${md.popper}[data-popper-placement*="top"] &`]:P({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${md.popper}[data-popper-placement*="bottom"] &`]:P({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),Sve=Se("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:cn(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let kv=!1,VC=null,O0={x:0,y:0};function xv(e,t){return n=>{t&&t(n),e(n)}}const Tve=I.forwardRef(function(t,n){var r,i,o,a,s,l,u,c,d,p,h,m,b,O,y,v,S,k,C;const w=gt({props:t,name:"MuiTooltip"}),{arrow:E=!1,children:$,components:N={},componentsProps:R={},describeChild:B=!1,disableFocusListener:U=!1,disableHoverListener:V=!1,disableInteractive:z=!1,disableTouchListener:W=!1,enterDelay:X=100,enterNextDelay:q=0,enterTouchDelay:Y=700,followCursor:Z=!1,id:j,leaveDelay:se=0,leaveTouchDelay:ve=1500,onClose:G,onOpen:ce,open:ge,placement:ue="bottom",PopperComponent:xe,PopperProps:Ne={},slotProps:Ve={},slots:Ke={},title:Me,TransitionComponent:Ye=rT,TransitionProps:ye}=w,ze=Ge(w,bve),$e=I.isValidElement($)?$:M.jsx("span",{children:$}),We=ui(),dt=We.direction==="rtl",[Be,re]=I.useState(),[ee,J]=I.useState(null),Re=I.useRef(!1),Le=z||Z,De=I.useRef(),ie=I.useRef(),fe=I.useRef(),de=I.useRef(),[Oe,Te]=Xi({controlled:ge,default:!1,name:"Tooltip",state:"open"});let rt=Oe;const pt=$l(j),xt=I.useRef(),et=I.useCallback(()=>{xt.current!==void 0&&(document.body.style.WebkitUserSelect=xt.current,xt.current=void 0),clearTimeout(de.current)},[]);I.useEffect(()=>()=>{clearTimeout(De.current),clearTimeout(ie.current),clearTimeout(fe.current),et()},[et]);const vt=Kt=>{clearTimeout(VC),kv=!0,Te(!0),ce&&!rt&&ce(Kt)},qe=jt(Kt=>{clearTimeout(VC),VC=setTimeout(()=>{kv=!1},800+se),Te(!1),G&&rt&&G(Kt),clearTimeout(De.current),De.current=setTimeout(()=>{Re.current=!1},We.transitions.duration.shortest)}),it=Kt=>{Re.current&&Kt.type!=="touchstart"||(Be&&Be.removeAttribute("title"),clearTimeout(ie.current),clearTimeout(fe.current),X||kv&&q?ie.current=setTimeout(()=>{vt(Kt)},kv?q:X):vt(Kt))},Et=Kt=>{clearTimeout(ie.current),clearTimeout(fe.current),fe.current=setTimeout(()=>{qe(Kt)},se)},{isFocusVisibleRef:Nt,onBlur:on,onFocus:dn,ref:pn}=rk(),[,zn]=I.useState(!1),Ee=Kt=>{on(Kt),Nt.current===!1&&(zn(!1),Et(Kt))},_e=Kt=>{Be||re(Kt.currentTarget),dn(Kt),Nt.current===!0&&(zn(!0),it(Kt))},pe=Kt=>{Re.current=!0;const bn=$e.props;bn.onTouchStart&&bn.onTouchStart(Kt)},lt=it,at=Et,Mt=Kt=>{pe(Kt),clearTimeout(fe.current),clearTimeout(De.current),et(),xt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",de.current=setTimeout(()=>{document.body.style.WebkitUserSelect=xt.current,it(Kt)},Y)},$t=Kt=>{$e.props.onTouchEnd&&$e.props.onTouchEnd(Kt),et(),clearTimeout(fe.current),fe.current=setTimeout(()=>{qe(Kt)},ve)};I.useEffect(()=>{if(!rt)return;function Kt(bn){(bn.key==="Escape"||bn.key==="Esc")&&qe(bn)}return document.addEventListener("keydown",Kt),()=>{document.removeEventListener("keydown",Kt)}},[qe,rt]);const It=yn($e.ref,pn,re,n);!Me&&Me!==0&&(rt=!1);const Ct=I.useRef(),Zt=Kt=>{const bn=$e.props;bn.onMouseMove&&bn.onMouseMove(Kt),O0={x:Kt.clientX,y:Kt.clientY},Ct.current&&Ct.current.update()},Ie={},we=typeof Me=="string";B?(Ie.title=!rt&&we&&!V?Me:null,Ie["aria-describedby"]=rt?pt:null):(Ie["aria-label"]=we?Me:null,Ie["aria-labelledby"]=rt&&!we?pt:null);const Qe=P({},Ie,ze,$e.props,{className:Je(ze.className,$e.props.className),onTouchStart:pe,ref:It},Z?{onMouseMove:Zt}:{}),ot={};W||(Qe.onTouchStart=Mt,Qe.onTouchEnd=$t),V||(Qe.onMouseOver=xv(lt,Qe.onMouseOver),Qe.onMouseLeave=xv(at,Qe.onMouseLeave),Le||(ot.onMouseOver=lt,ot.onMouseLeave=at)),U||(Qe.onFocus=xv(_e,Qe.onFocus),Qe.onBlur=xv(Ee,Qe.onBlur),Le||(ot.onFocus=_e,ot.onBlur=Ee));const rn=I.useMemo(()=>{var Kt;let bn=[{name:"arrow",enabled:!!ee,options:{element:ee,padding:4}}];return(Kt=Ne.popperOptions)!=null&&Kt.modifiers&&(bn=bn.concat(Ne.popperOptions.modifiers)),P({},Ne.popperOptions,{modifiers:bn})},[ee,Ne]),Wt=P({},w,{isRtl:dt,arrow:E,disableInteractive:Le,placement:ue,PopperComponentProp:xe,touch:Re.current}),mn=Ove(Wt),tr=(r=(i=Ke.popper)!=null?i:N.Popper)!=null?r:vve,Ue=(o=(a=(s=Ke.transition)!=null?s:N.Transition)!=null?a:Ye)!=null?o:rT,Ce=(l=(u=Ke.tooltip)!=null?u:N.Tooltip)!=null?l:Eve,mt=(c=(d=Ke.arrow)!=null?d:N.Arrow)!=null?c:Sve,Dt=K0(tr,P({},Ne,(p=Ve.popper)!=null?p:R.popper,{className:Je(mn.popper,Ne==null?void 0:Ne.className,(h=(m=Ve.popper)!=null?m:R.popper)==null?void 0:h.className)}),Wt),tn=K0(Ue,P({},ye,(b=Ve.transition)!=null?b:R.transition),Wt),Mn=K0(Ce,P({},(O=Ve.tooltip)!=null?O:R.tooltip,{className:Je(mn.tooltip,(y=(v=Ve.tooltip)!=null?v:R.tooltip)==null?void 0:y.className)}),Wt),Dn=K0(mt,P({},(S=Ve.arrow)!=null?S:R.arrow,{className:Je(mn.arrow,(k=(C=Ve.arrow)!=null?C:R.arrow)==null?void 0:k.className)}),Wt);return M.jsxs(I.Fragment,{children:[I.cloneElement($e,Qe),M.jsx(tr,P({as:xe??H1,placement:ue,anchorEl:Z?{getBoundingClientRect:()=>({top:O0.y,left:O0.x,right:O0.x,bottom:O0.y,width:0,height:0})}:Be,popperRef:Ct,open:Be?rt:!1,id:pt,transition:!0},ot,Dt,{popperOptions:rn,children:({TransitionProps:Kt})=>M.jsx(Ue,P({timeout:We.transitions.duration.shorter},Kt,tn,{children:M.jsxs(Ce,P({},Mn,{children:[Me,E?M.jsx(mt,P({},Dn,{ref:J})):null]}))}))}))]})}),Cv=Tve;function wve(e){return At("MuiSwitch",e)}const kve=_t("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Zo=kve,xve=["className","color","edge","size","sx"],Cve=e=>{const{classes:t,edge:n,size:r,color:i,checked:o,disabled:a}=e,s={root:["root",n&&`edge${nt(n)}`,`size${nt(r)}`],switchBase:["switchBase",`color${nt(i)}`,o&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=kt(s,wve,t);return P({},t,l)},Ave=Se("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${nt(n.edge)}`],t[`size${nt(n.size)}`]]}})(({ownerState:e})=>P({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${Zo.thumb}`]:{width:16,height:16},[`& .${Zo.switchBase}`]:{padding:4,[`&.${Zo.checked}`]:{transform:"translateX(16px)"}}})),_ve=Se(FN,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Zo.input}`]:t.input},n.color!=="default"&&t[`color${nt(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Zo.checked}`]:{transform:"translateX(20px)"},[`&.${Zo.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Zo.checked} + .${Zo.track}`]:{opacity:.5},[`&.${Zo.disabled} + .${Zo.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Zo.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>P({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Zo.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Zo.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?gk(e.palette[t.color].main,.62):mk(e.palette[t.color].main,.55)}`}},[`&.${Zo.checked} + .${Zo.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),Rve=Se("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}`})),Ive=Se("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%"})),Dve=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiSwitch"}),{className:i,color:o="primary",edge:a=!1,size:s="medium",sx:l}=r,u=Ge(r,xve),c=P({},r,{color:o,edge:a,size:s}),d=Cve(c),p=M.jsx(Ive,{className:d.thumb,ownerState:c});return M.jsxs(Ave,{className:Je(d.root,i),sx:l,ownerState:c,children:[M.jsx(_ve,P({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:c},u,{classes:P({},d,{root:d.switchBase})})),M.jsx(Rve,{className:d.track,ownerState:c})]})}),Nve=Dve;function Pve(e){return At("MuiTab",e)}const Lve=_t("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),bf=Lve,Mve=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],$ve=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:o,label:a,selected:s,disabled:l}=e,u={root:["root",o&&a&&"labelIcon",`textColor${nt(n)}`,r&&"fullWidth",i&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return kt(u,Pve,t)},Fve=Se(hs,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${nt(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>P({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${bf.iconWrapper}`]:P({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${bf.selected}`]:{opacity:1},[`&.${bf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${bf.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${bf.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${bf.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${bf.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),Bve=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiTab"}),{className:i,disabled:o=!1,disableFocusRipple:a=!1,fullWidth:s,icon:l,iconPosition:u="top",indicator:c,label:d,onChange:p,onClick:h,onFocus:m,selected:b,selectionFollowsFocus:O,textColor:y="inherit",value:v,wrapped:S=!1}=r,k=Ge(r,Mve),C=P({},r,{disabled:o,disableFocusRipple:a,selected:b,icon:!!l,iconPosition:u,label:!!d,fullWidth:s,textColor:y,wrapped:S}),w=$ve(C),E=l&&d&&I.isValidElement(l)?I.cloneElement(l,{className:Je(w.iconWrapper,l.props.className)}):l,$=R=>{!b&&p&&p(R,v),h&&h(R)},N=R=>{O&&!b&&p&&p(R,v),m&&m(R)};return M.jsxs(Fve,P({focusRipple:!a,className:Je(w.root,i),ref:n,role:"tab","aria-selected":b,disabled:o,onClick:$,onFocus:N,ownerState:C,tabIndex:b?0:-1},k,{children:[u==="top"||u==="start"?M.jsxs(I.Fragment,{children:[E,d]}):M.jsxs(I.Fragment,{children:[d,E]}),c]}))}),M8=Bve;function Uve(e){return At("MuiToolbar",e)}_t("MuiToolbar",["root","gutters","regular","dense"]);const jve=["className","component","disableGutters","variant"],zve=e=>{const{classes:t,disableGutters:n,variant:r}=e;return kt({root:["root",!n&&"gutters",r]},Uve,t)},Vve=Se("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})=>P({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),Hve=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:a=!1,variant:s="regular"}=r,l=Ge(r,jve),u=P({},r,{component:o,disableGutters:a,variant:s}),c=zve(u);return M.jsx(Vve,P({as:o,className:Je(c.root,i),ref:n,ownerState:u},l))}),Wve=Hve,Qve=wi(M.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Yve=wi(M.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Gve(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function qve(e,t,n,r={},i=()=>{}){const{ease:o=Gve,duration:a=300}=r;let s=null;const l=t[e];let u=!1;const c=()=>{u=!0},d=p=>{if(u){i(new Error("Animation cancelled"));return}s===null&&(s=p);const h=Math.min(1,(p-s)/a);if(t[e]=o(h)*(n-l)+l,h>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(d)};return l===n?(i(new Error("Element already at target position")),c):(requestAnimationFrame(d),c)}const Zve=["onChange"],Xve={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Kve(e){const{onChange:t}=e,n=Ge(e,Zve),r=I.useRef(),i=I.useRef(null),o=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return Kr(()=>{const a=Og(()=>{const l=r.current;o(),l!==r.current&&t(r.current)}),s=Js(i.current);return s.addEventListener("resize",a),()=>{a.clear(),s.removeEventListener("resize",a)}},[t]),I.useEffect(()=>{o(),t(r.current)},[t]),M.jsx("div",P({style:Xve,ref:i},n))}function Jve(e){return At("MuiTabScrollButton",e)}const eEe=_t("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),tEe=eEe,nEe=["className","slots","slotProps","direction","orientation","disabled"],rEe=e=>{const{classes:t,orientation:n,disabled:r}=e;return kt({root:["root",n,r&&"disabled"]},Jve,t)},iEe=Se(hs,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>P({width:40,flexShrink:0,opacity:.8,[`&.${tEe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),oEe=I.forwardRef(function(t,n){var r,i;const o=gt({props:t,name:"MuiTabScrollButton"}),{className:a,slots:s={},slotProps:l={},direction:u}=o,c=Ge(o,nEe),p=ui().direction==="rtl",h=P({isRtl:p},o),m=rEe(h),b=(r=s.StartScrollButtonIcon)!=null?r:Qve,O=(i=s.EndScrollButtonIcon)!=null?i:Yve,y=kn({elementType:b,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),v=kn({elementType:O,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return M.jsx(iEe,P({component:"div",className:Je(m.root,a),ref:n,role:null,ownerState:h,tabIndex:null},c,{children:u==="left"?M.jsx(b,P({},y)):M.jsx(O,P({},v))}))}),aEe=oEe;function sEe(e){return At("MuiTabs",e)}const lEe=_t("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),BE=lEe,uEe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],$8=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,F8=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Av=(e,t,n)=>{let r=!1,i=n(e,t);for(;i;){if(i===e.firstChild){if(r)return;r=!0}const o=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||o)i=n(e,i);else{i.focus();return}}},cEe=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:o,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return kt({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",i&&"scrollableX",o&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},sEe,l)},dEe=Se("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${BE.scrollButtons}`]:t.scrollButtons},{[`& .${BE.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>P({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${BE.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),fEe=Se("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>P({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),pEe=Se("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>P({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),hEe=Se("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>P({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),mEe=Se(Kve)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),B8={},gEe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiTabs"}),i=ui(),o=i.direction==="rtl",{"aria-label":a,"aria-labelledby":s,action:l,centered:u=!1,children:c,className:d,component:p="div",allowScrollButtonsMobile:h=!1,indicatorColor:m="primary",onChange:b,orientation:O="horizontal",ScrollButtonComponent:y=aEe,scrollButtons:v="auto",selectionFollowsFocus:S,slots:k={},slotProps:C={},TabIndicatorProps:w={},TabScrollButtonProps:E={},textColor:$="primary",value:N,variant:R="standard",visibleScrollbar:B=!1}=r,U=Ge(r,uEe),V=R==="scrollable",z=O==="vertical",W=z?"scrollTop":"scrollLeft",X=z?"top":"left",q=z?"bottom":"right",Y=z?"clientHeight":"clientWidth",Z=z?"height":"width",j=P({},r,{component:p,allowScrollButtonsMobile:h,indicatorColor:m,orientation:O,vertical:z,scrollButtons:v,textColor:$,variant:R,visibleScrollbar:B,fixed:!V,hideScrollbar:V&&!B,scrollableX:V&&!z,scrollableY:V&&z,centered:u&&!V,scrollButtonsHideMobile:!h}),se=cEe(j),ve=kn({elementType:k.StartScrollButtonIcon,externalSlotProps:C.startScrollButtonIcon,ownerState:j}),G=kn({elementType:k.EndScrollButtonIcon,externalSlotProps:C.endScrollButtonIcon,ownerState:j}),[ce,ge]=I.useState(!1),[ue,xe]=I.useState(B8),[Ne,Ve]=I.useState(!1),[Ke,Me]=I.useState(!1),[Ye,ye]=I.useState(!1),[ze,$e]=I.useState({overflow:"hidden",scrollbarWidth:0}),We=new Map,dt=I.useRef(null),Be=I.useRef(null),re=()=>{const qe=dt.current;let it;if(qe){const Nt=qe.getBoundingClientRect();it={clientWidth:qe.clientWidth,scrollLeft:qe.scrollLeft,scrollTop:qe.scrollTop,scrollLeftNormalized:Iue(qe,i.direction),scrollWidth:qe.scrollWidth,top:Nt.top,bottom:Nt.bottom,left:Nt.left,right:Nt.right}}let Et;if(qe&&N!==!1){const Nt=Be.current.children;if(Nt.length>0){const on=Nt[We.get(N)];Et=on?on.getBoundingClientRect():null}}return{tabsMeta:it,tabMeta:Et}},ee=jt(()=>{const{tabsMeta:qe,tabMeta:it}=re();let Et=0,Nt;if(z)Nt="top",it&&qe&&(Et=it.top-qe.top+qe.scrollTop);else if(Nt=o?"right":"left",it&&qe){const dn=o?qe.scrollLeftNormalized+qe.clientWidth-qe.scrollWidth:qe.scrollLeft;Et=(o?-1:1)*(it[Nt]-qe[Nt]+dn)}const on={[Nt]:Et,[Z]:it?it[Z]:0};if(isNaN(ue[Nt])||isNaN(ue[Z]))xe(on);else{const dn=Math.abs(ue[Nt]-on[Nt]),pn=Math.abs(ue[Z]-on[Z]);(dn>=1||pn>=1)&&xe(on)}}),J=(qe,{animation:it=!0}={})=>{it?qve(W,dt.current,qe,{duration:i.transitions.duration.standard}):dt.current[W]=qe},Re=qe=>{let it=dt.current[W];z?it+=qe:(it+=qe*(o?-1:1),it*=o&&DQ()==="reverse"?-1:1),J(it)},Le=()=>{const qe=dt.current[Y];let it=0;const Et=Array.from(Be.current.children);for(let Nt=0;Ntqe){Nt===0&&(it=qe);break}it+=on[Y]}return it},De=()=>{Re(-1*Le())},ie=()=>{Re(Le())},fe=I.useCallback(qe=>{$e({overflow:null,scrollbarWidth:qe})},[]),de=()=>{const qe={};qe.scrollbarSizeListener=V?M.jsx(mEe,{onChange:fe,className:Je(se.scrollableX,se.hideScrollbar)}):null;const Et=V&&(v==="auto"&&(Ne||Ke)||v===!0);return qe.scrollButtonStart=Et?M.jsx(y,P({slots:{StartScrollButtonIcon:k.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:ve},orientation:O,direction:o?"right":"left",onClick:De,disabled:!Ne},E,{className:Je(se.scrollButtons,E.className)})):null,qe.scrollButtonEnd=Et?M.jsx(y,P({slots:{EndScrollButtonIcon:k.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:G},orientation:O,direction:o?"left":"right",onClick:ie,disabled:!Ke},E,{className:Je(se.scrollButtons,E.className)})):null,qe},Oe=jt(qe=>{const{tabsMeta:it,tabMeta:Et}=re();if(!(!Et||!it)){if(Et[X]it[q]){const Nt=it[W]+(Et[q]-it[q]);J(Nt,{animation:qe})}}}),Te=jt(()=>{V&&v!==!1&&ye(!Ye)});I.useEffect(()=>{const qe=Og(()=>{dt.current&&ee()});let it;const Et=dn=>{dn.forEach(pn=>{pn.removedNodes.forEach(zn=>{var Ee;(Ee=it)==null||Ee.unobserve(zn)}),pn.addedNodes.forEach(zn=>{var Ee;(Ee=it)==null||Ee.observe(zn)})}),qe(),Te()},Nt=Js(dt.current);Nt.addEventListener("resize",qe);let on;return typeof ResizeObserver<"u"&&(it=new ResizeObserver(qe),Array.from(Be.current.children).forEach(dn=>{it.observe(dn)})),typeof MutationObserver<"u"&&(on=new MutationObserver(Et),on.observe(Be.current,{childList:!0})),()=>{var dn,pn;qe.clear(),Nt.removeEventListener("resize",qe),(dn=on)==null||dn.disconnect(),(pn=it)==null||pn.disconnect()}},[ee,Te]),I.useEffect(()=>{const qe=Array.from(Be.current.children),it=qe.length;if(typeof IntersectionObserver<"u"&&it>0&&V&&v!==!1){const Et=qe[0],Nt=qe[it-1],on={root:dt.current,threshold:.99},dn=_e=>{Ve(!_e[0].isIntersecting)},pn=new IntersectionObserver(dn,on);pn.observe(Et);const zn=_e=>{Me(!_e[0].isIntersecting)},Ee=new IntersectionObserver(zn,on);return Ee.observe(Nt),()=>{pn.disconnect(),Ee.disconnect()}}},[V,v,Ye,c==null?void 0:c.length]),I.useEffect(()=>{ge(!0)},[]),I.useEffect(()=>{ee()}),I.useEffect(()=>{Oe(B8!==ue)},[Oe,ue]),I.useImperativeHandle(l,()=>({updateIndicator:ee,updateScrollButtons:Te}),[ee,Te]);const rt=M.jsx(hEe,P({},w,{className:Je(se.indicator,w.className),ownerState:j,style:P({},ue,w.style)}));let pt=0;const xt=I.Children.map(c,qe=>{if(!I.isValidElement(qe))return null;const it=qe.props.value===void 0?pt:qe.props.value;We.set(it,pt);const Et=it===N;return pt+=1,I.cloneElement(qe,P({fullWidth:R==="fullWidth",indicator:Et&&!ce&&rt,selected:Et,selectionFollowsFocus:S,onChange:b,textColor:$,value:it},pt===1&&N===!1&&!qe.props.tabIndex?{tabIndex:0}:{}))}),et=qe=>{const it=Be.current,Et=br(it).activeElement;if(Et.getAttribute("role")!=="tab")return;let on=O==="horizontal"?"ArrowLeft":"ArrowUp",dn=O==="horizontal"?"ArrowRight":"ArrowDown";switch(O==="horizontal"&&o&&(on="ArrowRight",dn="ArrowLeft"),qe.key){case on:qe.preventDefault(),Av(it,Et,F8);break;case dn:qe.preventDefault(),Av(it,Et,$8);break;case"Home":qe.preventDefault(),Av(it,null,$8);break;case"End":qe.preventDefault(),Av(it,null,F8);break}},vt=de();return M.jsxs(dEe,P({className:Je(se.root,d),ownerState:j,ref:n,as:p},U,{children:[vt.scrollButtonStart,vt.scrollbarSizeListener,M.jsxs(fEe,{className:se.scroller,ownerState:j,style:{overflow:ze.overflow,[z?`margin${o?"Left":"Right"}`:"marginBottom"]:B?void 0:-ze.scrollbarWidth},ref:dt,children:[M.jsx(pEe,{"aria-label":a,"aria-labelledby":s,"aria-orientation":O==="vertical"?"vertical":null,className:se.flexContainer,ownerState:j,onKeyDown:et,ref:Be,role:"tablist",children:xt}),ce&&rt]}),vt.scrollButtonEnd]}))}),bEe=gEe;function yEe(e){return At("MuiTextField",e)}_t("MuiTextField",["root"]);const OEe=["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"],vEe={standard:wY,filled:OY,outlined:NY},EEe=e=>{const{classes:t}=e;return kt({root:["root"]},yEe,t)},SEe=Se(Ip,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),TEe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:o=!1,children:a,className:s,color:l="primary",defaultValue:u,disabled:c=!1,error:d=!1,FormHelperTextProps:p,fullWidth:h=!1,helperText:m,id:b,InputLabelProps:O,inputProps:y,InputProps:v,inputRef:S,label:k,maxRows:C,minRows:w,multiline:E=!1,name:$,onBlur:N,onChange:R,onFocus:B,placeholder:U,required:V=!1,rows:z,select:W=!1,SelectProps:X,type:q,value:Y,variant:Z="outlined"}=r,j=Ge(r,OEe),se=P({},r,{autoFocus:o,color:l,disabled:c,error:d,fullWidth:h,multiline:E,required:V,select:W,variant:Z}),ve=EEe(se),G={};Z==="outlined"&&(O&&typeof O.shrink<"u"&&(G.notched=O.shrink),G.label=k),W&&((!X||!X.native)&&(G.id=void 0),G["aria-describedby"]=void 0);const ce=$l(b),ge=m&&ce?`${ce}-helper-text`:void 0,ue=k&&ce?`${ce}-label`:void 0,xe=vEe[Z],Ne=M.jsx(xe,P({"aria-describedby":ge,autoComplete:i,autoFocus:o,defaultValue:u,fullWidth:h,multiline:E,name:$,rows:z,maxRows:C,minRows:w,type:q,value:Y,id:ce,inputRef:S,onBlur:N,onChange:R,onFocus:B,placeholder:U,inputProps:y},G,v));return M.jsxs(SEe,P({className:Je(ve.root,s),disabled:c,error:d,fullWidth:h,ref:n,required:V,color:l,variant:Z,ownerState:se},j,{children:[k!=null&&k!==""&&M.jsx(kY,P({htmlFor:ce,id:ue},O,{children:k})),W?M.jsx($Y,P({"aria-describedby":ge,id:ce,labelId:ue,value:Y,input:Ne},X,{children:a})):Ne,m&&M.jsx(Tg,P({id:ge},p,{children:m}))]}))}),Dp=TEe;function wEe(e){return At("MuiToggleButton",e)}const kEe=_t("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),Vh=kEe,xEe=I.createContext({}),FY=xEe,CEe=I.createContext(void 0),BY=CEe;function AEe(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.indexOf(e)>=0:e===t}const _Ee=["value"],REe=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],IEe=e=>{const{classes:t,fullWidth:n,selected:r,disabled:i,size:o,color:a}=e,s={root:["root",r&&"selected",i&&"disabled",n&&"fullWidth",`size${nt(o)}`,a]};return kt(s,wEe,t)},DEe=Se(hs,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${nt(n.size)}`]]}})(({theme:e,ownerState:t})=>{let n=t.color==="standard"?e.palette.text.primary:e.palette[t.color].main,r;return e.vars&&(n=t.color==="standard"?e.vars.palette.text.primary:e.vars.palette[t.color].main,r=t.color==="standard"?e.vars.palette.text.primaryChannel:e.vars.palette[t.color].mainChannel),P({},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%"},{[`&.${Vh.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Vh.selected}`]:{color:n,backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:cn(n,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${r} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:cn(n,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:cn(n,e.palette.action.selectedOpacity)}}}},t.size==="small"&&{padding:7,fontSize:e.typography.pxToRem(13)},t.size==="large"&&{padding:15,fontSize:e.typography.pxToRem(15)})}),NEe=I.forwardRef(function(t,n){const r=I.useContext(FY),{value:i}=r,o=Ge(r,_Ee),a=I.useContext(BY),s=ik(P({},o,{selected:AEe(t.value,i)}),t),l=gt({props:s,name:"MuiToggleButton"}),{children:u,className:c,color:d="standard",disabled:p=!1,disableFocusRipple:h=!1,fullWidth:m=!1,onChange:b,onClick:O,selected:y,size:v="medium",value:S}=l,k=Ge(l,REe),C=P({},l,{color:d,disabled:p,disableFocusRipple:h,fullWidth:m,size:v}),w=IEe(C),E=N=>{O&&(O(N,S),N.defaultPrevented)||b&&b(N,S)},$=a||"";return M.jsx(DEe,P({className:Je(o.className,w.root,c,$),disabled:p,focusRipple:!h,ref:n,onClick:E,onChange:b,value:S,ownerState:C,"aria-pressed":y},k,{children:u}))}),HC=NEe;function PEe(e){return At("MuiToggleButtonGroup",e)}const LEe=_t("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),zr=LEe,MEe=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],$Ee=e=>{const{classes:t,orientation:n,fullWidth:r,disabled:i}=e,o={root:["root",n==="vertical"&&"vertical",r&&"fullWidth"],grouped:["grouped",`grouped${nt(n)}`,i&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return kt(o,PEe,t)},FEe=Se("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${zr.grouped}`]:t.grouped},{[`& .${zr.grouped}`]:t[`grouped${nt(n.orientation)}`]},{[`& .${zr.firstButton}`]:t.firstButton},{[`& .${zr.lastButton}`]:t.lastButton},{[`& .${zr.middleButton}`]:t.middleButton},t.root,n.orientation==="vertical"&&t.vertical,n.fullWidth&&t.fullWidth]}})(({ownerState:e,theme:t})=>P({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},e.orientation==="vertical"&&{flexDirection:"column"},e.fullWidth&&{width:"100%"},{[`& .${zr.grouped}`]:P({},e.orientation==="horizontal"?{[`&.${zr.selected} + .${zr.grouped}.${zr.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${zr.selected} + .${zr.grouped}.${zr.selected}`]:{borderTop:0,marginTop:0}})},e.orientation==="horizontal"?{[`& .${zr.firstButton},& .${zr.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${zr.lastButton},& .${zr.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${zr.firstButton},& .${zr.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${zr.lastButton},& .${zr.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},e.orientation==="horizontal"?{[`& .${zr.lastButton}.${Vh.disabled},& .${zr.middleButton}.${Vh.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${zr.lastButton}.${Vh.disabled},& .${zr.middleButton}.${Vh.disabled}`]:{borderTop:"1px solid transparent"}})),BEe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiToggleButtonGroup"}),{children:i,className:o,color:a="standard",disabled:s=!1,exclusive:l=!1,fullWidth:u=!1,onChange:c,orientation:d="horizontal",size:p="medium",value:h}=r,m=Ge(r,MEe),b=P({},r,{disabled:s,fullWidth:u,orientation:d,size:p}),O=$Ee(b),y=I.useCallback((E,$)=>{if(!c)return;const N=h&&h.indexOf($);let R;h&&N>=0?(R=h.slice(),R.splice(N,1)):R=h?h.concat($):[$],c(E,R)},[c,h]),v=I.useCallback((E,$)=>{c&&c(E,h===$?null:$)},[c,h]),S=I.useMemo(()=>({className:O.grouped,onChange:l?v:y,value:h,size:p,fullWidth:u,color:a,disabled:s}),[O.grouped,l,v,y,h,p,u,a,s]),k=Nue(i),C=k.length,w=E=>{const $=E===0,N=E===C-1;return $&&N?"":$?O.firstButton:N?O.lastButton:O.middleButton};return M.jsx(FEe,P({role:"group",className:Je(O.root,o),ref:n,ownerState:b},m,{children:M.jsx(FY.Provider,{value:S,children:k.map((E,$)=>M.jsx(BY.Provider,{value:w($),children:E},$))})}))}),UEe=BEe;var UY={exports:{}},jY={};/** * @license React * use-sync-external-store-with-selector.production.min.js * @@ -161,7 +161,7 @@ Error generating stack: `+o.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var D1=N;function tEe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nEe=typeof Object.is=="function"?Object.is:tEe,rEe=D1.useSyncExternalStore,iEe=D1.useRef,oEe=D1.useEffect,aEe=D1.useMemo,sEe=D1.useDebugValue;pY.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=iEe(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=aEe(function(){function l(h){if(!u){if(u=!0,c=h,h=r(h),i!==void 0&&a.hasValue){var m=a.value;if(i(m,h))return d=m}return d=h}if(m=d,nEe(c,h))return m;var y=r(h);return i!==void 0&&i(m,y)?m:(c=h,d=y)}var u=!1,c,d,p=n===void 0?null:n;return[function(){return l(t())},p===null?void 0:function(){return l(p())}]},[t,n,r,i]);var s=rEe(e,o[0],o[1]);return oEe(function(){a.hasValue=!0,a.value=s},[s]),sEe(s),s};fY.exports=pY;var lEe=fY.exports,os="default"in Cm?vn:Cm,v8=Symbol.for("react-redux-context"),E8=typeof globalThis<"u"?globalThis:{};function uEe(){if(!os.createContext)return{};const e=E8[v8]??(E8[v8]=new Map);let t=e.get(os.createContext);return t||(t=os.createContext(null),e.set(os.createContext,t)),t}var Pd=uEe(),cEe=()=>{throw new Error("uSES not initialized!")};function xD(e=Pd){return function(){return os.useContext(e)}}var hY=xD(),mY=cEe,dEe=e=>{mY=e},fEe=(e,t)=>e===t;function pEe(e=Pd){const t=e===Pd?hY:xD(e),n=(r,i={})=>{const{equalityFn:o=fEe,devModeChecks:a={}}=typeof i=="function"?{equalityFn:i}:i,{store:s,subscription:l,getServerState:u,stabilityCheck:c,identityFunctionCheck:d}=t();os.useRef(!0);const p=os.useCallback({[r.name](m){return r(m)}}[r.name],[r,c,a.stabilityCheck]),h=mY(l.addNestedSub,s.getState,u||s.getState,p,o);return os.useDebugValue(h),h};return Object.assign(n,{withTypes:()=>n}),n}var wc=pEe();function hEe(e){e()}function mEe(){let e=null,t=null;return{clear(){e=null,t=null},notify(){hEe(()=>{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 S8={notify(){},get:()=>[]};function gEe(e,t){let n,r=S8,i=0,o=!1;function a(y){c();const O=r.subscribe(y);let b=!1;return()=>{b||(b=!0,O(),d())}}function s(){r.notify()}function l(){m.onStateChange&&m.onStateChange()}function u(){return o}function c(){i++,n||(n=t?t.addNestedSub(l):e.subscribe(l),r=mEe())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=S8)}function p(){o||(o=!0,c())}function h(){o&&(o=!1,d())}const m={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:u,trySubscribe:p,tryUnsubscribe:h,getListeners:()=>r};return m}var bEe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",yEe=bEe?os.useLayoutEffect:os.useEffect;function OEe({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:o="once"}){const a=os.useMemo(()=>{const u=gEe(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:o}},[e,r,i,o]),s=os.useMemo(()=>e.getState(),[e]);yEe(()=>{const{subscription:u}=a;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),s!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[a,s]);const l=t||Pd;return os.createElement(l.Provider,{value:a},n)}var vEe=OEe;function gY(e=Pd){const t=e===Pd?hY:xD(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var EEe=gY();function SEe(e=Pd){const t=e===Pd?EEe:gY(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var hg=SEe();dEe(lEe.useSyncExternalStoreWithSelector);/** + */var Y1=I;function jEe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var zEe=typeof Object.is=="function"?Object.is:jEe,VEe=Y1.useSyncExternalStore,HEe=Y1.useRef,WEe=Y1.useEffect,QEe=Y1.useMemo,YEe=Y1.useDebugValue;jY.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=HEe(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=QEe(function(){function l(h){if(!u){if(u=!0,c=h,h=r(h),i!==void 0&&a.hasValue){var m=a.value;if(i(m,h))return d=m}return d=h}if(m=d,zEe(c,h))return m;var b=r(h);return i!==void 0&&i(m,b)?m:(c=h,d=b)}var u=!1,c,d,p=n===void 0?null:n;return[function(){return l(t())},p===null?void 0:function(){return l(p())}]},[t,n,r,i]);var s=VEe(e,o[0],o[1]);return WEe(function(){a.hasValue=!0,a.value=s},[s]),YEe(s),s};UY.exports=jY;var GEe=UY.exports,ss="default"in Fm?Qt:Fm,U8=Symbol.for("react-redux-context"),j8=typeof globalThis<"u"?globalThis:{};function qEe(){if(!ss.createContext)return{};const e=j8[U8]??(j8[U8]=new Map);let t=e.get(ss.createContext);return t||(t=ss.createContext(null),e.set(ss.createContext,t)),t}var Vd=qEe(),ZEe=()=>{throw new Error("uSES not initialized!")};function WN(e=Vd){return function(){return ss.useContext(e)}}var zY=WN(),VY=ZEe,XEe=e=>{VY=e},KEe=(e,t)=>e===t;function JEe(e=Vd){const t=e===Vd?zY:WN(e),n=(r,i={})=>{const{equalityFn:o=KEe,devModeChecks:a={}}=typeof i=="function"?{equalityFn:i}:i,{store:s,subscription:l,getServerState:u,stabilityCheck:c,identityFunctionCheck:d}=t();ss.useRef(!0);const p=ss.useCallback({[r.name](m){return r(m)}}[r.name],[r,c,a.stabilityCheck]),h=VY(l.addNestedSub,s.getState,u||s.getState,p,o);return ss.useDebugValue(h),h};return Object.assign(n,{withTypes:()=>n}),n}var _c=JEe();function eSe(e){e()}function tSe(){let e=null,t=null;return{clear(){e=null,t=null},notify(){eSe(()=>{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 z8={notify(){},get:()=>[]};function nSe(e,t){let n,r=z8,i=0,o=!1;function a(b){c();const O=r.subscribe(b);let y=!1;return()=>{y||(y=!0,O(),d())}}function s(){r.notify()}function l(){m.onStateChange&&m.onStateChange()}function u(){return o}function c(){i++,n||(n=t?t.addNestedSub(l):e.subscribe(l),r=tSe())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=z8)}function p(){o||(o=!0,c())}function h(){o&&(o=!1,d())}const m={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:u,trySubscribe:p,tryUnsubscribe:h,getListeners:()=>r};return m}var rSe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",iSe=rSe?ss.useLayoutEffect:ss.useEffect;function oSe({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:o="once"}){const a=ss.useMemo(()=>{const u=nSe(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:o}},[e,r,i,o]),s=ss.useMemo(()=>e.getState(),[e]);iSe(()=>{const{subscription:u}=a;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),s!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[a,s]);const l=t||Vd;return ss.createElement(l.Provider,{value:a},n)}var aSe=oSe;function HY(e=Vd){const t=e===Vd?zY:WN(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var sSe=HY();function lSe(e=Vd){const t=e===Vd?sSe:HY(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var kg=lSe();XEe(GEe.useSyncExternalStoreWithSelector);/** * @remix-run/router v1.14.2 * * Copyright (c) Remix Software Inc. @@ -170,8 +170,8 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function ai(){return ai=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function sp(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function wEe(){return Math.random().toString(36).substr(2,8)}function w8(e,t){return{usr:e.state,key:e.key,idx:t}}function py(e,t,n,r){return n===void 0&&(n=null),ai({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?kc(t):t,{state:n,key:t&&t.key||r||wEe()})}function P1(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 kc(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 kEe(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=di.Pop,l=null,u=c();u==null&&(u=0,a.replaceState(ai({},a.state,{idx:u}),""));function c(){return(a.state||{idx:null}).idx}function d(){s=di.Pop;let O=c(),b=O==null?null:O-u;u=O,l&&l({action:s,location:y.location,delta:b})}function p(O,b){s=di.Push;let v=py(y.location,O,b);n&&n(v,O),u=c()+1;let S=w8(v,u),k=y.createHref(v);try{a.pushState(S,"",k)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;i.location.assign(k)}o&&l&&l({action:s,location:y.location,delta:1})}function h(O,b){s=di.Replace;let v=py(y.location,O,b);n&&n(v,O),u=c();let S=w8(v,u),k=y.createHref(v);a.replaceState(S,"",k),o&&l&&l({action:s,location:y.location,delta:0})}function m(O){let b=i.location.origin!=="null"?i.location.origin:i.location.href,v=typeof O=="string"?O:P1(O);return Bn(b,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,b)}let y={get action(){return s},get location(){return e(i,a)},listen(O){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(T8,d),l=O,()=>{i.removeEventListener(T8,d),l=null}},createHref(O){return t(i,O)},createURL:m,encodeLocation(O){let b=m(O);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:p,replace:h,go(O){return a.go(O)}};return y}var ii;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ii||(ii={}));const xEe=new Set(["lazy","caseSensitive","path","id","index","children"]);function CEe(e){return e.index===!0}function m_(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,o)=>{let a=[...n,o],s=typeof i.id=="string"?i.id:a.join("-");if(Bn(i.index!==!0||!i.children,"Cannot specify children on an index route"),Bn(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),CEe(i)){let l=ai({},i,t(i),{id:s});return r[s]=l,l}else{let l=ai({},i,t(i),{id:s,children:void 0});return r[s]=l,i.children&&(l.children=m_(i.children,t,a,r)),l}})}function Dh(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?kc(t):t,i=L1(r.pathname||"/",n);if(i==null)return null;let o=bY(e);_Ee(o);let a=null;for(let s=0;a==null&&s{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};l.relativePath.startsWith("/")&&(Bn(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=wd([r,l.relativePath]),c=n.concat(l);o.children&&o.children.length>0&&(Bn(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),bY(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:MEe(u,o.index),routesMeta:c})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let l of yY(o.path))i(o,a,l)}),t}function yY(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=yY(r.join("/")),s=[];return s.push(...a.map(l=>l===""?o:[o,l].join("/"))),i&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function _Ee(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:$Ee(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const REe=/^:[\w-]+$/,IEe=3,NEe=2,DEe=1,PEe=10,LEe=-2,k8=e=>e==="*";function MEe(e,t){let n=e.split("/"),r=n.length;return n.some(k8)&&(r+=LEe),t&&(r+=NEe),n.filter(i=>!k8(i)).reduce((i,o)=>i+(REe.test(o)?IEe:o===""?DEe:PEe),r)}function $Ee(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 FEe(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let a=0;a{let{paramName:p,isOptional:h}=c;if(p==="*"){let y=s[d]||"";a=o.slice(0,o.length-y.length).replace(/(.)\/+$/,"$1")}const m=s[d];return h&&!m?u[p]=void 0:u[p]=zEe(m||"",p),u},{}),pathname:o,pathnameBase:a,pattern:e}}function UEe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),sp(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function jEe(e){try{return decodeURI(e)}catch(t){return sp(!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 zEe(e,t){try{return decodeURIComponent(e)}catch(n){return sp(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function L1(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 VEe(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?kc(e):e;return{pathname:n?n.startsWith("/")?n:HEe(n,t):t,search:QEe(r),hash:YEe(i)}}function HEe(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 AC(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 OY(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function CD(e,t){let n=OY(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function AD(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=kc(e):(i=ai({},e),Bn(!i.pathname||!i.pathname.includes("?"),AC("?","pathname","search",i)),Bn(!i.pathname||!i.pathname.includes("#"),AC("#","pathname","hash",i)),Bn(!i.search||!i.search.includes("#"),AC("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(a==null)s=n;else{let d=t.length-1;if(!r&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),d-=1;i.pathname=p.join("/")}s=d>=0?t[d]:"/"}let l=VEe(i,s),u=a&&a!=="/"&&a.endsWith("/"),c=(o||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const wd=e=>e.join("/").replace(/\/\/+/g,"/"),WEe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),QEe=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,YEe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class _D{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 vY(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const EY=["post","put","patch","delete"],GEe=new Set(EY),qEe=["get",...EY],ZEe=new Set(qEe),XEe=new Set([301,302,303,307,308]),KEe=new Set([307,308]),_C={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},JEe={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},u0={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},SY=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,eSe=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),TY="remix-router-transitions";function tSe(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;Bn(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let ve=e.detectErrorBoundary;i=Ae=>({hasErrorBoundary:ve(Ae)})}else i=eSe;let o={},a=m_(e.routes,i,void 0,o),s,l=e.basename||"/",u=ai({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),c=null,d=new Set,p=null,h=null,m=null,y=e.hydrationData!=null,O=Dh(a,e.history.location,l),b=null;if(O==null){let ve=As(404,{pathname:e.history.location.pathname}),{matches:Ae,route:fe}=D8(a);O=Ae,b={[fe.id]:ve}}let v,S=O.some(ve=>ve.route.lazy),k=O.some(ve=>ve.route.loader);if(S)v=!1;else if(!k)v=!0;else if(u.v7_partialHydration){let ve=e.hydrationData?e.hydrationData.loaderData:null,Ae=e.hydrationData?e.hydrationData.errors:null;v=O.every(fe=>fe.route.loader&&fe.route.loader.hydrate!==!0&&(ve&&ve[fe.route.id]!==void 0||Ae&&Ae[fe.route.id]!==void 0))}else v=e.hydrationData!=null;let C,w={historyAction:e.history.action,location:e.history.location,matches:O,initialized:v,navigation:_C,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||b,fetchers:new Map,blockers:new Map},E=di.Pop,$=!1,D,R=!1,B=new Map,U=null,V=!1,z=!1,Q=[],X=[],Z=new Map,Y=0,q=-1,j=new Map,le=new Set,Ee=new Map,G=new Map,ue=new Set,ge=new Map,he=new Map,Ne=!1;function Le(){if(c=e.history.listen(ve=>{let{action:Ae,location:fe,delta:lt}=ve;if(Ne){Ne=!1;return}sp(he.size===0||lt!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let at=it({currentLocation:w.location,nextLocation:fe,historyAction:Ae});if(at&<!=null){Ne=!0,e.history.go(lt*-1),Ye(at,{state:"blocked",location:fe,proceed(){Ye(at,{state:"proceeding",proceed:void 0,reset:void 0,location:fe}),e.history.go(lt)},reset(){let Mt=new Map(w.blockers);Mt.set(at,u0),Me({blockers:Mt})}});return}return $e(Ae,fe)}),n){fSe(t,B);let ve=()=>pSe(t,B);t.addEventListener("pagehide",ve),U=()=>t.removeEventListener("pagehide",ve)}return w.initialized||$e(di.Pop,w.location,{initialHydration:!0}),C}function qe(){c&&c(),U&&U(),d.clear(),D&&D.abort(),w.fetchers.forEach((ve,Ae)=>ce(Ae)),w.blockers.forEach((ve,Ae)=>vt(Ae))}function rt(ve){return d.add(ve),()=>d.delete(ve)}function Me(ve,Ae){Ae===void 0&&(Ae={}),w=ai({},w,ve);let fe=[],lt=[];u.v7_fetcherPersist&&w.fetchers.forEach((at,Mt)=>{at.state==="idle"&&(ue.has(Mt)?lt.push(Mt):fe.push(Mt))}),[...d].forEach(at=>at(w,{deletedFetchers:lt,unstable_viewTransitionOpts:Ae.viewTransitionOpts,unstable_flushSync:Ae.flushSync===!0})),u.v7_fetcherPersist&&(fe.forEach(at=>w.fetchers.delete(at)),lt.forEach(at=>ce(at)))}function Qe(ve,Ae,fe){var lt,at;let{flushSync:Mt}=fe===void 0?{}:fe,$t=w.actionData!=null&&w.navigation.formMethod!=null&&fl(w.navigation.formMethod)&&w.navigation.state==="loading"&&((lt=ve.state)==null?void 0:lt._isRedirect)!==!0,It;Ae.actionData?Object.keys(Ae.actionData).length>0?It=Ae.actionData:It=null:$t?It=w.actionData:It=null;let xt=Ae.loaderData?N8(w.loaderData,Ae.loaderData,Ae.matches||[],Ae.errors):w.loaderData,qt=w.blockers;qt.size>0&&(qt=new Map(qt),qt.forEach((We,ot)=>qt.set(ot,u0)));let Re=$===!0||w.navigation.formMethod!=null&&fl(w.navigation.formMethod)&&((at=ve.state)==null?void 0:at._isRedirect)!==!0;s&&(a=s,s=void 0),V||E===di.Pop||(E===di.Push?e.history.push(ve,ve.state):E===di.Replace&&e.history.replace(ve,ve.state));let Te;if(E===di.Pop){let We=B.get(w.location.pathname);We&&We.has(ve.pathname)?Te={currentLocation:w.location,nextLocation:ve}:B.has(ve.pathname)&&(Te={currentLocation:ve,nextLocation:w.location})}else if(R){let We=B.get(w.location.pathname);We?We.add(ve.pathname):(We=new Set([ve.pathname]),B.set(w.location.pathname,We)),Te={currentLocation:w.location,nextLocation:ve}}Me(ai({},Ae,{actionData:It,loaderData:xt,historyAction:E,location:ve,initialized:!0,navigation:_C,revalidation:"idle",restoreScrollPosition:fn(ve,Ae.matches||w.matches),preventScrollReset:Re,blockers:qt}),{viewTransitionOpts:Te,flushSync:Mt===!0}),E=di.Pop,$=!1,R=!1,V=!1,z=!1,Q=[],X=[]}async function ye(ve,Ae){if(typeof ve=="number"){e.history.go(ve);return}let fe=g_(w.location,w.matches,l,u.v7_prependBasename,ve,u.v7_relativeSplatPath,Ae==null?void 0:Ae.fromRouteId,Ae==null?void 0:Ae.relative),{path:lt,submission:at,error:Mt}=x8(u.v7_normalizeFormMethod,!1,fe,Ae),$t=w.location,It=py(w.location,lt,Ae&&Ae.state);It=ai({},It,e.history.encodeLocation(It));let xt=Ae&&Ae.replace!=null?Ae.replace:void 0,qt=di.Push;xt===!0?qt=di.Replace:xt===!1||at!=null&&fl(at.formMethod)&&at.formAction===w.location.pathname+w.location.search&&(qt=di.Replace);let Re=Ae&&"preventScrollReset"in Ae?Ae.preventScrollReset===!0:void 0,Te=(Ae&&Ae.unstable_flushSync)===!0,We=it({currentLocation:$t,nextLocation:It,historyAction:qt});if(We){Ye(We,{state:"blocked",location:It,proceed(){Ye(We,{state:"proceeding",proceed:void 0,reset:void 0,location:It}),ye(ve,Ae)},reset(){let ot=new Map(w.blockers);ot.set(We,u0),Me({blockers:ot})}});return}return await $e(qt,It,{submission:at,pendingError:Mt,preventScrollReset:Re,replace:Ae&&Ae.replace,enableViewTransition:Ae&&Ae.unstable_viewTransition,flushSync:Te})}function ze(){if(Pe(),Me({revalidation:"loading"}),w.navigation.state!=="submitting"){if(w.navigation.state==="idle"){$e(w.historyAction,w.location,{startUninterruptedRevalidation:!0});return}$e(E||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation})}}async function $e(ve,Ae,fe){D&&D.abort(),D=null,E=ve,V=(fe&&fe.startUninterruptedRevalidation)===!0,cn(w.location,w.matches),$=(fe&&fe.preventScrollReset)===!0,R=(fe&&fe.enableViewTransition)===!0;let lt=s||a,at=fe&&fe.overrideNavigation,Mt=Dh(lt,Ae,l),$t=(fe&&fe.flushSync)===!0;if(!Mt){let ot=As(404,{pathname:Ae.pathname}),{matches:nn,route:Wt}=D8(lt);Et(),Qe(Ae,{matches:nn,loaderData:{},errors:{[Wt.id]:ot}},{flushSync:$t});return}if(w.initialized&&!z&&aSe(w.location,Ae)&&!(fe&&fe.submission&&fl(fe.submission.formMethod))){Qe(Ae,{matches:Mt},{flushSync:$t});return}D=new AbortController;let It=d0(e.history,Ae,D.signal,fe&&fe.submission),xt,qt;if(fe&&fe.pendingError)qt={[bb(Mt).route.id]:fe.pendingError};else if(fe&&fe.submission&&fl(fe.submission.formMethod)){let ot=await He(It,Ae,fe.submission,Mt,{replace:fe.replace,flushSync:$t});if(ot.shortCircuited)return;xt=ot.pendingActionData,qt=ot.pendingActionError,at=RC(Ae,fe.submission),$t=!1,It=new Request(It.url,{signal:It.signal})}let{shortCircuited:Re,loaderData:Te,errors:We}=await dt(It,Ae,Mt,at,fe&&fe.submission,fe&&fe.fetcherSubmission,fe&&fe.replace,fe&&fe.initialHydration===!0,$t,xt,qt);Re||(D=null,Qe(Ae,ai({matches:Mt},xt?{actionData:xt}:{},{loaderData:Te,errors:We})))}async function He(ve,Ae,fe,lt,at){at===void 0&&(at={}),Pe();let Mt=cSe(Ae,fe);Me({navigation:Mt},{flushSync:at.flushSync===!0});let $t,It=y_(lt,Ae);if(!It.route.action&&!It.route.lazy)$t={type:ii.error,error:As(405,{method:ve.method,pathname:Ae.pathname,routeId:It.route.id})};else if($t=await c0("action",ve,It,lt,o,i,l,u.v7_relativeSplatPath),ve.signal.aborted)return{shortCircuited:!0};if(Rf($t)){let xt;return at&&at.replace!=null?xt=at.replace:xt=$t.location===w.location.pathname+w.location.search,await J(w,$t,{submission:fe,replace:xt}),{shortCircuited:!0}}if(Ph($t)){let xt=bb(lt,It.route.id);return(at&&at.replace)!==!0&&(E=di.Push),{pendingActionData:{},pendingActionError:{[xt.route.id]:$t.error}}}if(_f($t))throw As(400,{type:"defer-action"});return{pendingActionData:{[It.route.id]:$t.data}}}async function dt(ve,Ae,fe,lt,at,Mt,$t,It,xt,qt,Re){let Te=lt||RC(Ae,at),We=at||Mt||M8(Te),ot=s||a,[nn,Wt]=C8(e.history,w,fe,We,Ae,u.v7_partialHydration&&It===!0,z,Q,X,ue,Ee,le,ot,l,qt,Re);if(Et(gn=>!(fe&&fe.some(Wn=>Wn.route.id===gn))||nn&&nn.some(Wn=>Wn.route.id===gn)),q=++Y,nn.length===0&&Wt.length===0){let gn=pt();return Qe(Ae,ai({matches:fe,loaderData:{},errors:Re||null},qt?{actionData:qt}:{},gn?{fetchers:new Map(w.fetchers)}:{}),{flushSync:xt}),{shortCircuited:!0}}if(!V&&(!u.v7_partialHydration||!It)){Wt.forEach(Wn=>{let Qn=w.fetchers.get(Wn.key),ht=f0(void 0,Qn?Qn.data:void 0);w.fetchers.set(Wn.key,ht)});let gn=qt||w.actionData;Me(ai({navigation:Te},gn?Object.keys(gn).length===0?{actionData:null}:{actionData:gn}:{},Wt.length>0?{fetchers:new Map(w.fetchers)}:{}),{flushSync:xt})}Wt.forEach(gn=>{Z.has(gn.key)&&Se(gn.key),gn.controller&&Z.set(gn.key,gn.controller)});let hn=()=>Wt.forEach(gn=>Se(gn.key));D&&D.signal.addEventListener("abort",hn);let{results:tr,loaderResults:Ue,fetcherResults:xe}=await _e(w.matches,fe,nn,Wt,ve);if(ve.signal.aborted)return{shortCircuited:!0};D&&D.signal.removeEventListener("abort",hn),Wt.forEach(gn=>Z.delete(gn.key));let mt=P8(tr);if(mt){if(mt.idx>=nn.length){let gn=Wt[mt.idx-nn.length].key;le.add(gn)}return await J(w,mt.result,{replace:$t}),{shortCircuited:!0}}let{loaderData:Nt,errors:en}=I8(w,fe,nn,Ue,Re,Wt,xe,ge);ge.forEach((gn,Wn)=>{gn.subscribe(Qn=>{(Qn||gn.done)&&ge.delete(Wn)})});let Mn=pt(),Nn=kt(q),Xt=Mn||Nn||Wt.length>0;return ai({loaderData:Nt,errors:en},Xt?{fetchers:new Map(w.fetchers)}:{})}function Be(ve,Ae,fe,lt){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Z.has(ve)&&Se(ve);let at=(lt&<.unstable_flushSync)===!0,Mt=s||a,$t=g_(w.location,w.matches,l,u.v7_prependBasename,fe,u.v7_relativeSplatPath,Ae,lt==null?void 0:lt.relative),It=Dh(Mt,$t,l);if(!It){ie(ve,Ae,As(404,{pathname:$t}),{flushSync:at});return}let{path:xt,submission:qt,error:Re}=x8(u.v7_normalizeFormMethod,!0,$t,lt);if(Re){ie(ve,Ae,Re,{flushSync:at});return}let Te=y_(It,xt);if($=(lt&<.preventScrollReset)===!0,qt&&fl(qt.formMethod)){re(ve,Ae,xt,Te,It,at,qt);return}Ee.set(ve,{routeId:Ae,path:xt}),ee(ve,Ae,xt,Te,It,at,qt)}async function re(ve,Ae,fe,lt,at,Mt,$t){if(Pe(),Ee.delete(ve),!lt.route.action&&!lt.route.lazy){let Wn=As(405,{method:$t.formMethod,pathname:fe,routeId:Ae});ie(ve,Ae,Wn,{flushSync:Mt});return}let It=w.fetchers.get(ve);Ie(ve,dSe($t,It),{flushSync:Mt});let xt=new AbortController,qt=d0(e.history,fe,xt.signal,$t);Z.set(ve,xt);let Re=Y,Te=await c0("action",qt,lt,at,o,i,l,u.v7_relativeSplatPath);if(qt.signal.aborted){Z.get(ve)===xt&&Z.delete(ve);return}if(u.v7_fetcherPersist&&ue.has(ve)){if(Rf(Te)||Ph(Te)){Ie(ve,Uc(void 0));return}}else{if(Rf(Te))if(Z.delete(ve),q>Re){Ie(ve,Uc(void 0));return}else return le.add(ve),Ie(ve,f0($t)),J(w,Te,{fetcherSubmission:$t});if(Ph(Te)){ie(ve,Ae,Te.error);return}}if(_f(Te))throw As(400,{type:"defer-action"});let We=w.navigation.location||w.location,ot=d0(e.history,We,xt.signal),nn=s||a,Wt=w.navigation.state!=="idle"?Dh(nn,w.navigation.location,l):w.matches;Bn(Wt,"Didn't find any matches after fetcher action");let hn=++Y;j.set(ve,hn);let tr=f0($t,Te.data);w.fetchers.set(ve,tr);let[Ue,xe]=C8(e.history,w,Wt,$t,We,!1,z,Q,X,ue,Ee,le,nn,l,{[lt.route.id]:Te.data},void 0);xe.filter(Wn=>Wn.key!==ve).forEach(Wn=>{let Qn=Wn.key,ht=w.fetchers.get(Qn),Wr=f0(void 0,ht?ht.data:void 0);w.fetchers.set(Qn,Wr),Z.has(Qn)&&Se(Qn),Wn.controller&&Z.set(Qn,Wn.controller)}),Me({fetchers:new Map(w.fetchers)});let mt=()=>xe.forEach(Wn=>Se(Wn.key));xt.signal.addEventListener("abort",mt);let{results:Nt,loaderResults:en,fetcherResults:Mn}=await _e(w.matches,Wt,Ue,xe,ot);if(xt.signal.aborted)return;xt.signal.removeEventListener("abort",mt),j.delete(ve),Z.delete(ve),xe.forEach(Wn=>Z.delete(Wn.key));let Nn=P8(Nt);if(Nn){if(Nn.idx>=Ue.length){let Wn=xe[Nn.idx-Ue.length].key;le.add(Wn)}return J(w,Nn.result)}let{loaderData:Xt,errors:gn}=I8(w,w.matches,Ue,en,void 0,xe,Mn,ge);if(w.fetchers.has(ve)){let Wn=Uc(Te.data);w.fetchers.set(ve,Wn)}kt(hn),w.navigation.state==="loading"&&hn>q?(Bn(E,"Expected pending action"),D&&D.abort(),Qe(w.navigation.location,{matches:Wt,loaderData:Xt,errors:gn,fetchers:new Map(w.fetchers)})):(Me({errors:gn,loaderData:N8(w.loaderData,Xt,Wt,gn),fetchers:new Map(w.fetchers)}),z=!1)}async function ee(ve,Ae,fe,lt,at,Mt,$t){let It=w.fetchers.get(ve);Ie(ve,f0($t,It?It.data:void 0),{flushSync:Mt});let xt=new AbortController,qt=d0(e.history,fe,xt.signal);Z.set(ve,xt);let Re=Y,Te=await c0("loader",qt,lt,at,o,i,l,u.v7_relativeSplatPath);if(_f(Te)&&(Te=await xY(Te,qt.signal,!0)||Te),Z.get(ve)===xt&&Z.delete(ve),!qt.signal.aborted){if(ue.has(ve)){Ie(ve,Uc(void 0));return}if(Rf(Te))if(q>Re){Ie(ve,Uc(void 0));return}else{le.add(ve),await J(w,Te);return}if(Ph(Te)){ie(ve,Ae,Te.error);return}Bn(!_f(Te),"Unhandled fetcher deferred data"),Ie(ve,Uc(Te.data))}}async function J(ve,Ae,fe){let{submission:lt,fetcherSubmission:at,replace:Mt}=fe===void 0?{}:fe;Ae.revalidate&&(z=!0);let $t=py(ve.location,Ae.location,{_isRedirect:!0});if(Bn($t,"Expected a location on the redirect navigation"),n){let We=!1;if(Ae.reloadDocument)We=!0;else if(SY.test(Ae.location)){const ot=e.history.createURL(Ae.location);We=ot.origin!==t.location.origin||L1(ot.pathname,l)==null}if(We){Mt?t.location.replace(Ae.location):t.location.assign(Ae.location);return}}D=null;let It=Mt===!0?di.Replace:di.Push,{formMethod:xt,formAction:qt,formEncType:Re}=ve.navigation;!lt&&!at&&xt&&qt&&Re&&(lt=M8(ve.navigation));let Te=lt||at;if(KEe.has(Ae.status)&&Te&&fl(Te.formMethod))await $e(It,$t,{submission:ai({},Te,{formAction:Ae.location}),preventScrollReset:$});else{let We=RC($t,lt);await $e(It,$t,{overrideNavigation:We,fetcherSubmission:at,preventScrollReset:$})}}async function _e(ve,Ae,fe,lt,at){let Mt=await Promise.all([...fe.map(xt=>c0("loader",at,xt,Ae,o,i,l,u.v7_relativeSplatPath)),...lt.map(xt=>xt.matches&&xt.match&&xt.controller?c0("loader",d0(e.history,xt.path,xt.controller.signal),xt.match,xt.matches,o,i,l,u.v7_relativeSplatPath):{type:ii.error,error:As(404,{pathname:xt.path})})]),$t=Mt.slice(0,fe.length),It=Mt.slice(fe.length);return await Promise.all([L8(ve,fe,$t,$t.map(()=>at.signal),!1,w.loaderData),L8(ve,lt.map(xt=>xt.match),It,lt.map(xt=>xt.controller?xt.controller.signal:null),!0)]),{results:Mt,loaderResults:$t,fetcherResults:It}}function Pe(){z=!0,Q.push(...Et()),Ee.forEach((ve,Ae)=>{Z.has(Ae)&&(X.push(Ae),Se(Ae))})}function Ie(ve,Ae,fe){fe===void 0&&(fe={}),w.fetchers.set(ve,Ae),Me({fetchers:new Map(w.fetchers)},{flushSync:(fe&&fe.flushSync)===!0})}function ie(ve,Ae,fe,lt){lt===void 0&&(lt={});let at=bb(w.matches,Ae);ce(ve),Me({errors:{[at.route.id]:fe},fetchers:new Map(w.fetchers)},{flushSync:(lt&<.flushSync)===!0})}function de(ve){return u.v7_fetcherPersist&&(G.set(ve,(G.get(ve)||0)+1),ue.has(ve)&&ue.delete(ve)),w.fetchers.get(ve)||JEe}function ce(ve){let Ae=w.fetchers.get(ve);Z.has(ve)&&!(Ae&&Ae.state==="loading"&&j.has(ve))&&Se(ve),Ee.delete(ve),j.delete(ve),le.delete(ve),ue.delete(ve),w.fetchers.delete(ve)}function Oe(ve){if(u.v7_fetcherPersist){let Ae=(G.get(ve)||0)-1;Ae<=0?(G.delete(ve),ue.add(ve)):G.set(ve,Ae)}else ce(ve);Me({fetchers:new Map(w.fetchers)})}function Se(ve){let Ae=Z.get(ve);Bn(Ae,"Expected fetch controller: "+ve),Ae.abort(),Z.delete(ve)}function nt(ve){for(let Ae of ve){let fe=de(Ae),lt=Uc(fe.data);w.fetchers.set(Ae,lt)}}function pt(){let ve=[],Ae=!1;for(let fe of le){let lt=w.fetchers.get(fe);Bn(lt,"Expected fetcher: "+fe),lt.state==="loading"&&(le.delete(fe),ve.push(fe),Ae=!0)}return nt(ve),Ae}function kt(ve){let Ae=[];for(let[fe,lt]of j)if(lt0}function Ke(ve,Ae){let fe=w.blockers.get(ve)||u0;return he.get(ve)!==Ae&&he.set(ve,Ae),fe}function vt(ve){w.blockers.delete(ve),he.delete(ve)}function Ye(ve,Ae){let fe=w.blockers.get(ve)||u0;Bn(fe.state==="unblocked"&&Ae.state==="blocked"||fe.state==="blocked"&&Ae.state==="blocked"||fe.state==="blocked"&&Ae.state==="proceeding"||fe.state==="blocked"&&Ae.state==="unblocked"||fe.state==="proceeding"&&Ae.state==="unblocked","Invalid blocker state transition: "+fe.state+" -> "+Ae.state);let lt=new Map(w.blockers);lt.set(ve,Ae),Me({blockers:lt})}function it(ve){let{currentLocation:Ae,nextLocation:fe,historyAction:lt}=ve;if(he.size===0)return;he.size>1&&sp(!1,"A router only supports one blocker at a time");let at=Array.from(he.entries()),[Mt,$t]=at[at.length-1],It=w.blockers.get(Mt);if(!(It&&It.state==="proceeding")&&$t({currentLocation:Ae,nextLocation:fe,historyAction:lt}))return Mt}function Et(ve){let Ae=[];return ge.forEach((fe,lt)=>{(!ve||ve(lt))&&(fe.cancel(),Ae.push(lt),ge.delete(lt))}),Ae}function Dt(ve,Ae,fe){if(p=ve,m=Ae,h=fe||null,!y&&w.navigation===_C){y=!0;let lt=fn(w.location,w.matches);lt!=null&&Me({restoreScrollPosition:lt})}return()=>{p=null,m=null,h=null}}function rn(ve,Ae){return h&&h(ve,Ae.map(lt=>AEe(lt,w.loaderData)))||ve.key}function cn(ve,Ae){if(p&&m){let fe=rn(ve,Ae);p[fe]=m()}}function fn(ve,Ae){if(p){let fe=rn(ve,Ae),lt=p[fe];if(typeof lt=="number")return lt}return null}function zn(ve){o={},s=m_(ve,i,void 0,o)}return C={get basename(){return l},get future(){return u},get state(){return w},get routes(){return a},get window(){return t},initialize:Le,subscribe:rt,enableScrollRestoration:Dt,navigate:ye,fetch:Be,revalidate:ze,createHref:ve=>e.history.createHref(ve),encodeLocation:ve=>e.history.encodeLocation(ve),getFetcher:de,deleteFetcher:Oe,dispose:qe,getBlocker:Ke,deleteBlocker:vt,_internalFetchControllers:Z,_internalActiveDeferreds:ge,_internalSetRoutes:zn},C}function nSe(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function g_(e,t,n,r,i,o,a,s){let l,u;if(a){l=[];for(let d of t)if(l.push(d),d.route.id===a){u=d;break}}else l=t,u=t[t.length-1];let c=AD(i||".",CD(l,o),L1(e.pathname,n)||e.pathname,s==="path");return i==null&&(c.search=e.search,c.hash=e.hash),(i==null||i===""||i===".")&&u&&u.route.index&&!RD(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:wd([n,c.pathname])),P1(c)}function x8(e,t,n,r){if(!r||!nSe(r))return{path:n};if(r.formMethod&&!uSe(r.formMethod))return{path:n,error:As(405,{method:r.formMethod})};let i=()=>({path:n,error:As(400,{type:"invalid-body"})}),o=r.formMethod||"get",a=e?o.toUpperCase():o.toLowerCase(),s=kY(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!fl(a))return i();let p=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((h,m)=>{let[y,O]=m;return""+h+y+"="+O+` -`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!fl(a))return i();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return i()}}}Bn(typeof FormData=="function","FormData is not available in this environment");let l,u;if(r.formData)l=b_(r.formData),u=r.formData;else if(r.body instanceof FormData)l=b_(r.body),u=r.body;else if(r.body instanceof URLSearchParams)l=r.body,u=R8(l);else if(r.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(r.body),u=R8(l)}catch{return i()}let c={formMethod:a,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(fl(c.formMethod))return{path:n,submission:c};let d=kc(n);return t&&d.search&&RD(d.search)&&l.append("index",""),d.search="?"+l,{path:P1(d),submission:c}}function rSe(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 C8(e,t,n,r,i,o,a,s,l,u,c,d,p,h,m,y){let O=y?Object.values(y)[0]:m?Object.values(m)[0]:void 0,b=e.createURL(t.location),v=e.createURL(i),S=y?Object.keys(y)[0]:void 0,C=rSe(n,S).filter((E,$)=>{let{route:D}=E;if(D.lazy)return!0;if(D.loader==null)return!1;if(o)return D.loader.hydrate?!0:t.loaderData[D.id]===void 0&&(!t.errors||t.errors[D.id]===void 0);if(iSe(t.loaderData,t.matches[$],E)||s.some(U=>U===E.route.id))return!0;let R=t.matches[$],B=E;return A8(E,ai({currentUrl:b,currentParams:R.params,nextUrl:v,nextParams:B.params},r,{actionResult:O,defaultShouldRevalidate:a||b.pathname+b.search===v.pathname+v.search||b.search!==v.search||wY(R,B)}))}),w=[];return c.forEach((E,$)=>{if(o||!n.some(V=>V.route.id===E.routeId)||u.has($))return;let D=Dh(p,E.path,h);if(!D){w.push({key:$,routeId:E.routeId,path:E.path,matches:null,match:null,controller:null});return}let R=t.fetchers.get($),B=y_(D,E.path),U=!1;d.has($)?U=!1:l.includes($)?U=!0:R&&R.state!=="idle"&&R.data===void 0?U=a:U=A8(B,ai({currentUrl:b,currentParams:t.matches[t.matches.length-1].params,nextUrl:v,nextParams:n[n.length-1].params},r,{actionResult:O,defaultShouldRevalidate:a})),U&&w.push({key:$,routeId:E.routeId,path:E.path,matches:D,match:B,controller:new AbortController})}),[C,w]}function iSe(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function wY(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function A8(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function _8(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];Bn(i,"No route found in manifest");let o={};for(let a in r){let l=i[a]!==void 0&&a!=="hasErrorBoundary";sp(!l,'Route "'+i.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!l&&!xEe.has(a)&&(o[a]=r[a])}Object.assign(i,o),Object.assign(i,ai({},t(i),{lazy:void 0}))}async function c0(e,t,n,r,i,o,a,s,l){l===void 0&&(l={});let u,c,d,p=y=>{let O,b=new Promise((v,S)=>O=S);return d=()=>O(),t.signal.addEventListener("abort",d),Promise.race([y({request:t,params:n.params,context:l.requestContext}),b])};try{let y=n.route[e];if(n.route.lazy)if(y){let O,b=await Promise.all([p(y).catch(v=>{O=v}),_8(n.route,o,i)]);if(O)throw O;c=b[0]}else if(await _8(n.route,o,i),y=n.route[e],y)c=await p(y);else if(e==="action"){let O=new URL(t.url),b=O.pathname+O.search;throw As(405,{method:t.method,pathname:b,routeId:n.route.id})}else return{type:ii.data,data:void 0};else if(y)c=await p(y);else{let O=new URL(t.url),b=O.pathname+O.search;throw As(404,{pathname:b})}Bn(c!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(y){u=ii.error,c=y}finally{d&&t.signal.removeEventListener("abort",d)}if(lSe(c)){let y=c.status;if(XEe.has(y)){let b=c.headers.get("Location");if(Bn(b,"Redirects returned/thrown from loaders/actions must have a Location header"),!SY.test(b))b=g_(new URL(t.url),r.slice(0,r.indexOf(n)+1),a,!0,b,s);else if(!l.isStaticRequest){let v=new URL(t.url),S=b.startsWith("//")?new URL(v.protocol+b):new URL(b),k=L1(S.pathname,a)!=null;S.origin===v.origin&&k&&(b=S.pathname+S.search+S.hash)}if(l.isStaticRequest)throw c.headers.set("Location",b),c;return{type:ii.redirect,status:y,location:b,revalidate:c.headers.get("X-Remix-Revalidate")!==null,reloadDocument:c.headers.get("X-Remix-Reload-Document")!==null}}if(l.isRouteRequest)throw{type:u===ii.error?ii.error:ii.data,response:c};let O;try{let b=c.headers.get("Content-Type");b&&/\bapplication\/json\b/.test(b)?c.body==null?O=null:O=await c.json():O=await c.text()}catch(b){return{type:ii.error,error:b}}return u===ii.error?{type:u,error:new _D(y,c.statusText,O),headers:c.headers}:{type:ii.data,data:O,statusCode:c.status,headers:c.headers}}if(u===ii.error)return{type:u,error:c};if(sSe(c)){var h,m;return{type:ii.deferred,deferredData:c,statusCode:(h=c.init)==null?void 0:h.status,headers:((m=c.init)==null?void 0:m.headers)&&new Headers(c.init.headers)}}return{type:ii.data,data:c}}function d0(e,t,n,r){let i=e.createURL(kY(t)).toString(),o={signal:n};if(r&&fl(r.formMethod)){let{formMethod:a,formEncType:s}=r;o.method=a.toUpperCase(),s==="application/json"?(o.headers=new Headers({"Content-Type":s}),o.body=JSON.stringify(r.json)):s==="text/plain"?o.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?o.body=b_(r.formData):o.body=r.formData}return new Request(i,o)}function b_(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function R8(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function oSe(e,t,n,r,i){let o={},a=null,s,l=!1,u={};return n.forEach((c,d)=>{let p=t[d].route.id;if(Bn(!Rf(c),"Cannot handle redirect results in processLoaderData"),Ph(c)){let h=bb(e,p),m=c.error;r&&(m=Object.values(r)[0],r=void 0),a=a||{},a[h.route.id]==null&&(a[h.route.id]=m),o[p]=void 0,l||(l=!0,s=vY(c.error)?c.error.status:500),c.headers&&(u[p]=c.headers)}else _f(c)?(i.set(p,c.deferredData),o[p]=c.deferredData.data):o[p]=c.data,c.statusCode!=null&&c.statusCode!==200&&!l&&(s=c.statusCode),c.headers&&(u[p]=c.headers)}),r&&(a=r,o[Object.keys(r)[0]]=void 0),{loaderData:o,errors:a,statusCode:s||200,loaderHeaders:u}}function I8(e,t,n,r,i,o,a,s){let{loaderData:l,errors:u}=oSe(t,n,r,i,s);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function D8(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 As(e,t){let{pathname:n,routeId:r,method:i,type:o}=t===void 0?{}:t,a="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(a="Bad Request",i&&n&&r?s="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":o==="defer-action"?s="defer() is not supported in actions":o==="invalid-body"&&(s="Unable to encode submission body")):e===403?(a="Forbidden",s='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",s='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",i&&n&&r?s="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(s='Invalid request method "'+i.toUpperCase()+'"')),new _D(e||500,a,new Error(s),!0)}function P8(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Rf(n))return{result:n,idx:t}}}function kY(e){let t=typeof e=="string"?kc(e):e;return P1(ai({},t,{hash:""}))}function aSe(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function _f(e){return e.type===ii.deferred}function Ph(e){return e.type===ii.error}function Rf(e){return(e&&e.type)===ii.redirect}function sSe(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 lSe(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function uSe(e){return ZEe.has(e.toLowerCase())}function fl(e){return GEe.has(e.toLowerCase())}async function L8(e,t,n,r,i,o){for(let a=0;ad.route.id===l.route.id),c=u!=null&&!wY(u,l)&&(o&&o[l.route.id])!==void 0;if(_f(s)&&(i||c)){let d=r[a];Bn(d,"Expected an AbortSignal for revalidating fetcher deferred result"),await xY(s,d,i).then(p=>{p&&(n[a]=p||n[a])})}}}async function xY(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:ii.data,data:e.deferredData.unwrappedData}}catch(i){return{type:ii.error,error:i}}return{type:ii.data,data:e.deferredData.data}}}function RD(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function y_(e,t){let n=typeof t=="string"?kc(t).search:t.search;if(e[e.length-1].route.index&&RD(n||""))return e[e.length-1];let r=OY(e);return r[r.length-1]}function M8(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:o,json:a}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function RC(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 cSe(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 f0(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 dSe(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 Uc(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 fSe(e,t){try{let n=e.sessionStorage.getItem(TY);if(n){let r=JSON.parse(n);for(let[i,o]of Object.entries(r||{}))o&&Array.isArray(o)&&t.set(i,new Set(o||[]))}}catch{}}function pSe(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(TY,JSON.stringify(n))}catch(r){sp(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + */function si(){return si=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function yp(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function cSe(){return Math.random().toString(36).substr(2,8)}function H8(e,t){return{usr:e.state,key:e.key,idx:t}}function xy(e,t,n,r){return n===void 0&&(n=null),si({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Rc(t):t,{state:n,key:t&&t.key||r||cSe()})}function G1(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 Rc(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 dSe(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=pi.Pop,l=null,u=c();u==null&&(u=0,a.replaceState(si({},a.state,{idx:u}),""));function c(){return(a.state||{idx:null}).idx}function d(){s=pi.Pop;let O=c(),y=O==null?null:O-u;u=O,l&&l({action:s,location:b.location,delta:y})}function p(O,y){s=pi.Push;let v=xy(b.location,O,y);n&&n(v,O),u=c()+1;let S=H8(v,u),k=b.createHref(v);try{a.pushState(S,"",k)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;i.location.assign(k)}o&&l&&l({action:s,location:b.location,delta:1})}function h(O,y){s=pi.Replace;let v=xy(b.location,O,y);n&&n(v,O),u=c();let S=H8(v,u),k=b.createHref(v);a.replaceState(S,"",k),o&&l&&l({action:s,location:b.location,delta:0})}function m(O){let y=i.location.origin!=="null"?i.location.origin:i.location.href,v=typeof O=="string"?O:G1(O);return Bn(y,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,y)}let b={get action(){return s},get location(){return e(i,a)},listen(O){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(V8,d),l=O,()=>{i.removeEventListener(V8,d),l=null}},createHref(O){return t(i,O)},createURL:m,encodeLocation(O){let y=m(O);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:p,replace:h,go(O){return a.go(O)}};return b}var oi;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(oi||(oi={}));const fSe=new Set(["lazy","caseSensitive","path","id","index","children"]);function pSe(e){return e.index===!0}function M_(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,o)=>{let a=[...n,o],s=typeof i.id=="string"?i.id:a.join("-");if(Bn(i.index!==!0||!i.children,"Cannot specify children on an index route"),Bn(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),pSe(i)){let l=si({},i,t(i),{id:s});return r[s]=l,l}else{let l=si({},i,t(i),{id:s,children:void 0});return r[s]=l,i.children&&(l.children=M_(i.children,t,a,r)),l}})}function Hh(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Rc(t):t,i=q1(r.pathname||"/",n);if(i==null)return null;let o=WY(e);mSe(o);let a=null;for(let s=0;a==null&&s{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};l.relativePath.startsWith("/")&&(Bn(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Rd([r,l.relativePath]),c=n.concat(l);o.children&&o.children.length>0&&(Bn(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),WY(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:SSe(u,o.index),routesMeta:c})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let l of QY(o.path))i(o,a,l)}),t}function QY(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=QY(r.join("/")),s=[];return s.push(...a.map(l=>l===""?o:[o,l].join("/"))),i&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function mSe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:TSe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const gSe=/^:[\w-]+$/,bSe=3,ySe=2,OSe=1,vSe=10,ESe=-2,W8=e=>e==="*";function SSe(e,t){let n=e.split("/"),r=n.length;return n.some(W8)&&(r+=ESe),t&&(r+=ySe),n.filter(i=>!W8(i)).reduce((i,o)=>i+(gSe.test(o)?bSe:o===""?OSe:vSe),r)}function TSe(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 wSe(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let a=0;a{let{paramName:p,isOptional:h}=c;if(p==="*"){let b=s[d]||"";a=o.slice(0,o.length-b.length).replace(/(.)\/+$/,"$1")}const m=s[d];return h&&!m?u[p]=void 0:u[p]=ASe(m||"",p),u},{}),pathname:o,pathnameBase:a,pattern:e}}function xSe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),yp(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function CSe(e){try{return decodeURI(e)}catch(t){return yp(!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 ASe(e,t){try{return decodeURIComponent(e)}catch(n){return yp(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function q1(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 _Se(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Rc(e):e;return{pathname:n?n.startsWith("/")?n:RSe(n,t):t,search:DSe(r),hash:NSe(i)}}function RSe(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 WC(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 YY(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function QN(e,t){let n=YY(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function YN(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Rc(e):(i=si({},e),Bn(!i.pathname||!i.pathname.includes("?"),WC("?","pathname","search",i)),Bn(!i.pathname||!i.pathname.includes("#"),WC("#","pathname","hash",i)),Bn(!i.search||!i.search.includes("#"),WC("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(a==null)s=n;else{let d=t.length-1;if(!r&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),d-=1;i.pathname=p.join("/")}s=d>=0?t[d]:"/"}let l=_Se(i,s),u=a&&a!=="/"&&a.endsWith("/"),c=(o||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const Rd=e=>e.join("/").replace(/\/\/+/g,"/"),ISe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),DSe=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,NSe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class GN{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 qN(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const GY=["post","put","patch","delete"],PSe=new Set(GY),LSe=["get",...GY],MSe=new Set(LSe),$Se=new Set([301,302,303,307,308]),FSe=new Set([307,308]),QC={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},BSe={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},v0={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},qY=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,USe=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),ZY="remix-router-transitions";function jSe(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;Bn(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let Ee=e.detectErrorBoundary;i=_e=>({hasErrorBoundary:Ee(_e)})}else i=USe;let o={},a=M_(e.routes,i,void 0,o),s,l=e.basename||"/",u=si({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),c=null,d=new Set,p=null,h=null,m=null,b=e.hydrationData!=null,O=Hh(a,e.history.location,l),y=null;if(O==null){let Ee=Rs(404,{pathname:e.history.location.pathname}),{matches:_e,route:pe}=J8(a);O=_e,y={[pe.id]:Ee}}let v,S=O.some(Ee=>Ee.route.lazy),k=O.some(Ee=>Ee.route.loader);if(S)v=!1;else if(!k)v=!0;else if(u.v7_partialHydration){let Ee=e.hydrationData?e.hydrationData.loaderData:null,_e=e.hydrationData?e.hydrationData.errors:null;v=O.every(pe=>pe.route.loader&&pe.route.loader.hydrate!==!0&&(Ee&&Ee[pe.route.id]!==void 0||_e&&_e[pe.route.id]!==void 0))}else v=e.hydrationData!=null;let C,w={historyAction:e.history.action,location:e.history.location,matches:O,initialized:v,navigation:QC,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||y,fetchers:new Map,blockers:new Map},E=pi.Pop,$=!1,N,R=!1,B=new Map,U=null,V=!1,z=!1,W=[],X=[],q=new Map,Y=0,Z=-1,j=new Map,se=new Set,ve=new Map,G=new Map,ce=new Set,ge=new Map,ue=new Map,xe=!1;function Ne(){if(c=e.history.listen(Ee=>{let{action:_e,location:pe,delta:lt}=Ee;if(xe){xe=!1;return}yp(ue.size===0||lt!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let at=it({currentLocation:w.location,nextLocation:pe,historyAction:_e});if(at&<!=null){xe=!0,e.history.go(lt*-1),qe(at,{state:"blocked",location:pe,proceed(){qe(at,{state:"proceeding",proceed:void 0,reset:void 0,location:pe}),e.history.go(lt)},reset(){let Mt=new Map(w.blockers);Mt.set(at,v0),Me({blockers:Mt})}});return}return $e(_e,pe)}),n){KSe(t,B);let Ee=()=>JSe(t,B);t.addEventListener("pagehide",Ee),U=()=>t.removeEventListener("pagehide",Ee)}return w.initialized||$e(pi.Pop,w.location,{initialHydration:!0}),C}function Ve(){c&&c(),U&&U(),d.clear(),N&&N.abort(),w.fetchers.forEach((Ee,_e)=>de(_e)),w.blockers.forEach((Ee,_e)=>vt(_e))}function Ke(Ee){return d.add(Ee),()=>d.delete(Ee)}function Me(Ee,_e){_e===void 0&&(_e={}),w=si({},w,Ee);let pe=[],lt=[];u.v7_fetcherPersist&&w.fetchers.forEach((at,Mt)=>{at.state==="idle"&&(ce.has(Mt)?lt.push(Mt):pe.push(Mt))}),[...d].forEach(at=>at(w,{deletedFetchers:lt,unstable_viewTransitionOpts:_e.viewTransitionOpts,unstable_flushSync:_e.flushSync===!0})),u.v7_fetcherPersist&&(pe.forEach(at=>w.fetchers.delete(at)),lt.forEach(at=>de(at)))}function Ye(Ee,_e,pe){var lt,at;let{flushSync:Mt}=pe===void 0?{}:pe,$t=w.actionData!=null&&w.navigation.formMethod!=null&&hl(w.navigation.formMethod)&&w.navigation.state==="loading"&&((lt=Ee.state)==null?void 0:lt._isRedirect)!==!0,It;_e.actionData?Object.keys(_e.actionData).length>0?It=_e.actionData:It=null:$t?It=w.actionData:It=null;let Ct=_e.loaderData?K8(w.loaderData,_e.loaderData,_e.matches||[],_e.errors):w.loaderData,Zt=w.blockers;Zt.size>0&&(Zt=new Map(Zt),Zt.forEach((Qe,ot)=>Zt.set(ot,v0)));let Ie=$===!0||w.navigation.formMethod!=null&&hl(w.navigation.formMethod)&&((at=Ee.state)==null?void 0:at._isRedirect)!==!0;s&&(a=s,s=void 0),V||E===pi.Pop||(E===pi.Push?e.history.push(Ee,Ee.state):E===pi.Replace&&e.history.replace(Ee,Ee.state));let we;if(E===pi.Pop){let Qe=B.get(w.location.pathname);Qe&&Qe.has(Ee.pathname)?we={currentLocation:w.location,nextLocation:Ee}:B.has(Ee.pathname)&&(we={currentLocation:Ee,nextLocation:w.location})}else if(R){let Qe=B.get(w.location.pathname);Qe?Qe.add(Ee.pathname):(Qe=new Set([Ee.pathname]),B.set(w.location.pathname,Qe)),we={currentLocation:w.location,nextLocation:Ee}}Me(si({},_e,{actionData:It,loaderData:Ct,historyAction:E,location:Ee,initialized:!0,navigation:QC,revalidation:"idle",restoreScrollPosition:pn(Ee,_e.matches||w.matches),preventScrollReset:Ie,blockers:Zt}),{viewTransitionOpts:we,flushSync:Mt===!0}),E=pi.Pop,$=!1,R=!1,V=!1,z=!1,W=[],X=[]}async function ye(Ee,_e){if(typeof Ee=="number"){e.history.go(Ee);return}let pe=$_(w.location,w.matches,l,u.v7_prependBasename,Ee,u.v7_relativeSplatPath,_e==null?void 0:_e.fromRouteId,_e==null?void 0:_e.relative),{path:lt,submission:at,error:Mt}=Q8(u.v7_normalizeFormMethod,!1,pe,_e),$t=w.location,It=xy(w.location,lt,_e&&_e.state);It=si({},It,e.history.encodeLocation(It));let Ct=_e&&_e.replace!=null?_e.replace:void 0,Zt=pi.Push;Ct===!0?Zt=pi.Replace:Ct===!1||at!=null&&hl(at.formMethod)&&at.formAction===w.location.pathname+w.location.search&&(Zt=pi.Replace);let Ie=_e&&"preventScrollReset"in _e?_e.preventScrollReset===!0:void 0,we=(_e&&_e.unstable_flushSync)===!0,Qe=it({currentLocation:$t,nextLocation:It,historyAction:Zt});if(Qe){qe(Qe,{state:"blocked",location:It,proceed(){qe(Qe,{state:"proceeding",proceed:void 0,reset:void 0,location:It}),ye(Ee,_e)},reset(){let ot=new Map(w.blockers);ot.set(Qe,v0),Me({blockers:ot})}});return}return await $e(Zt,It,{submission:at,pendingError:Mt,preventScrollReset:Ie,replace:_e&&_e.replace,enableViewTransition:_e&&_e.unstable_viewTransition,flushSync:we})}function ze(){if(Le(),Me({revalidation:"loading"}),w.navigation.state!=="submitting"){if(w.navigation.state==="idle"){$e(w.historyAction,w.location,{startUninterruptedRevalidation:!0});return}$e(E||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation})}}async function $e(Ee,_e,pe){N&&N.abort(),N=null,E=Ee,V=(pe&&pe.startUninterruptedRevalidation)===!0,dn(w.location,w.matches),$=(pe&&pe.preventScrollReset)===!0,R=(pe&&pe.enableViewTransition)===!0;let lt=s||a,at=pe&&pe.overrideNavigation,Mt=Hh(lt,_e,l),$t=(pe&&pe.flushSync)===!0;if(!Mt){let ot=Rs(404,{pathname:_e.pathname}),{matches:rn,route:Wt}=J8(lt);Et(),Ye(_e,{matches:rn,loaderData:{},errors:{[Wt.id]:ot}},{flushSync:$t});return}if(w.initialized&&!z&&QSe(w.location,_e)&&!(pe&&pe.submission&&hl(pe.submission.formMethod))){Ye(_e,{matches:Mt},{flushSync:$t});return}N=new AbortController;let It=S0(e.history,_e,N.signal,pe&&pe.submission),Ct,Zt;if(pe&&pe.pendingError)Zt={[Ab(Mt).route.id]:pe.pendingError};else if(pe&&pe.submission&&hl(pe.submission.formMethod)){let ot=await We(It,_e,pe.submission,Mt,{replace:pe.replace,flushSync:$t});if(ot.shortCircuited)return;Ct=ot.pendingActionData,Zt=ot.pendingActionError,at=YC(_e,pe.submission),$t=!1,It=new Request(It.url,{signal:It.signal})}let{shortCircuited:Ie,loaderData:we,errors:Qe}=await dt(It,_e,Mt,at,pe&&pe.submission,pe&&pe.fetcherSubmission,pe&&pe.replace,pe&&pe.initialHydration===!0,$t,Ct,Zt);Ie||(N=null,Ye(_e,si({matches:Mt},Ct?{actionData:Ct}:{},{loaderData:we,errors:Qe})))}async function We(Ee,_e,pe,lt,at){at===void 0&&(at={}),Le();let Mt=ZSe(_e,pe);Me({navigation:Mt},{flushSync:at.flushSync===!0});let $t,It=B_(lt,_e);if(!It.route.action&&!It.route.lazy)$t={type:oi.error,error:Rs(405,{method:Ee.method,pathname:_e.pathname,routeId:It.route.id})};else if($t=await E0("action",Ee,It,lt,o,i,l,u.v7_relativeSplatPath),Ee.signal.aborted)return{shortCircuited:!0};if(Uf($t)){let Ct;return at&&at.replace!=null?Ct=at.replace:Ct=$t.location===w.location.pathname+w.location.search,await J(w,$t,{submission:pe,replace:Ct}),{shortCircuited:!0}}if(Wh($t)){let Ct=Ab(lt,It.route.id);return(at&&at.replace)!==!0&&(E=pi.Push),{pendingActionData:{},pendingActionError:{[Ct.route.id]:$t.error}}}if(Bf($t))throw Rs(400,{type:"defer-action"});return{pendingActionData:{[It.route.id]:$t.data}}}async function dt(Ee,_e,pe,lt,at,Mt,$t,It,Ct,Zt,Ie){let we=lt||YC(_e,at),Qe=at||Mt||n7(we),ot=s||a,[rn,Wt]=Y8(e.history,w,pe,Qe,_e,u.v7_partialHydration&&It===!0,z,W,X,ce,ve,se,ot,l,Zt,Ie);if(Et(bn=>!(pe&&pe.some(Wn=>Wn.route.id===bn))||rn&&rn.some(Wn=>Wn.route.id===bn)),Z=++Y,rn.length===0&&Wt.length===0){let bn=pt();return Ye(_e,si({matches:pe,loaderData:{},errors:Ie||null},Zt?{actionData:Zt}:{},bn?{fetchers:new Map(w.fetchers)}:{}),{flushSync:Ct}),{shortCircuited:!0}}if(!V&&(!u.v7_partialHydration||!It)){Wt.forEach(Wn=>{let Qn=w.fetchers.get(Wn.key),ht=T0(void 0,Qn?Qn.data:void 0);w.fetchers.set(Wn.key,ht)});let bn=Zt||w.actionData;Me(si({navigation:we},bn?Object.keys(bn).length===0?{actionData:null}:{actionData:bn}:{},Wt.length>0?{fetchers:new Map(w.fetchers)}:{}),{flushSync:Ct})}Wt.forEach(bn=>{q.has(bn.key)&&Te(bn.key),bn.controller&&q.set(bn.key,bn.controller)});let mn=()=>Wt.forEach(bn=>Te(bn.key));N&&N.signal.addEventListener("abort",mn);let{results:tr,loaderResults:Ue,fetcherResults:Ce}=await Re(w.matches,pe,rn,Wt,Ee);if(Ee.signal.aborted)return{shortCircuited:!0};N&&N.signal.removeEventListener("abort",mn),Wt.forEach(bn=>q.delete(bn.key));let mt=e7(tr);if(mt){if(mt.idx>=rn.length){let bn=Wt[mt.idx-rn.length].key;se.add(bn)}return await J(w,mt.result,{replace:$t}),{shortCircuited:!0}}let{loaderData:Dt,errors:tn}=X8(w,pe,rn,Ue,Ie,Wt,Ce,ge);ge.forEach((bn,Wn)=>{bn.subscribe(Qn=>{(Qn||bn.done)&&ge.delete(Wn)})});let Mn=pt(),Dn=xt(Z),Kt=Mn||Dn||Wt.length>0;return si({loaderData:Dt,errors:tn},Kt?{fetchers:new Map(w.fetchers)}:{})}function Be(Ee,_e,pe,lt){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");q.has(Ee)&&Te(Ee);let at=(lt&<.unstable_flushSync)===!0,Mt=s||a,$t=$_(w.location,w.matches,l,u.v7_prependBasename,pe,u.v7_relativeSplatPath,_e,lt==null?void 0:lt.relative),It=Hh(Mt,$t,l);if(!It){ie(Ee,_e,Rs(404,{pathname:$t}),{flushSync:at});return}let{path:Ct,submission:Zt,error:Ie}=Q8(u.v7_normalizeFormMethod,!0,$t,lt);if(Ie){ie(Ee,_e,Ie,{flushSync:at});return}let we=B_(It,Ct);if($=(lt&<.preventScrollReset)===!0,Zt&&hl(Zt.formMethod)){re(Ee,_e,Ct,we,It,at,Zt);return}ve.set(Ee,{routeId:_e,path:Ct}),ee(Ee,_e,Ct,we,It,at,Zt)}async function re(Ee,_e,pe,lt,at,Mt,$t){if(Le(),ve.delete(Ee),!lt.route.action&&!lt.route.lazy){let Wn=Rs(405,{method:$t.formMethod,pathname:pe,routeId:_e});ie(Ee,_e,Wn,{flushSync:Mt});return}let It=w.fetchers.get(Ee);De(Ee,XSe($t,It),{flushSync:Mt});let Ct=new AbortController,Zt=S0(e.history,pe,Ct.signal,$t);q.set(Ee,Ct);let Ie=Y,we=await E0("action",Zt,lt,at,o,i,l,u.v7_relativeSplatPath);if(Zt.signal.aborted){q.get(Ee)===Ct&&q.delete(Ee);return}if(u.v7_fetcherPersist&&ce.has(Ee)){if(Uf(we)||Wh(we)){De(Ee,Wc(void 0));return}}else{if(Uf(we))if(q.delete(Ee),Z>Ie){De(Ee,Wc(void 0));return}else return se.add(Ee),De(Ee,T0($t)),J(w,we,{fetcherSubmission:$t});if(Wh(we)){ie(Ee,_e,we.error);return}}if(Bf(we))throw Rs(400,{type:"defer-action"});let Qe=w.navigation.location||w.location,ot=S0(e.history,Qe,Ct.signal),rn=s||a,Wt=w.navigation.state!=="idle"?Hh(rn,w.navigation.location,l):w.matches;Bn(Wt,"Didn't find any matches after fetcher action");let mn=++Y;j.set(Ee,mn);let tr=T0($t,we.data);w.fetchers.set(Ee,tr);let[Ue,Ce]=Y8(e.history,w,Wt,$t,Qe,!1,z,W,X,ce,ve,se,rn,l,{[lt.route.id]:we.data},void 0);Ce.filter(Wn=>Wn.key!==Ee).forEach(Wn=>{let Qn=Wn.key,ht=w.fetchers.get(Qn),Yr=T0(void 0,ht?ht.data:void 0);w.fetchers.set(Qn,Yr),q.has(Qn)&&Te(Qn),Wn.controller&&q.set(Qn,Wn.controller)}),Me({fetchers:new Map(w.fetchers)});let mt=()=>Ce.forEach(Wn=>Te(Wn.key));Ct.signal.addEventListener("abort",mt);let{results:Dt,loaderResults:tn,fetcherResults:Mn}=await Re(w.matches,Wt,Ue,Ce,ot);if(Ct.signal.aborted)return;Ct.signal.removeEventListener("abort",mt),j.delete(Ee),q.delete(Ee),Ce.forEach(Wn=>q.delete(Wn.key));let Dn=e7(Dt);if(Dn){if(Dn.idx>=Ue.length){let Wn=Ce[Dn.idx-Ue.length].key;se.add(Wn)}return J(w,Dn.result)}let{loaderData:Kt,errors:bn}=X8(w,w.matches,Ue,tn,void 0,Ce,Mn,ge);if(w.fetchers.has(Ee)){let Wn=Wc(we.data);w.fetchers.set(Ee,Wn)}xt(mn),w.navigation.state==="loading"&&mn>Z?(Bn(E,"Expected pending action"),N&&N.abort(),Ye(w.navigation.location,{matches:Wt,loaderData:Kt,errors:bn,fetchers:new Map(w.fetchers)})):(Me({errors:bn,loaderData:K8(w.loaderData,Kt,Wt,bn),fetchers:new Map(w.fetchers)}),z=!1)}async function ee(Ee,_e,pe,lt,at,Mt,$t){let It=w.fetchers.get(Ee);De(Ee,T0($t,It?It.data:void 0),{flushSync:Mt});let Ct=new AbortController,Zt=S0(e.history,pe,Ct.signal);q.set(Ee,Ct);let Ie=Y,we=await E0("loader",Zt,lt,at,o,i,l,u.v7_relativeSplatPath);if(Bf(we)&&(we=await JY(we,Zt.signal,!0)||we),q.get(Ee)===Ct&&q.delete(Ee),!Zt.signal.aborted){if(ce.has(Ee)){De(Ee,Wc(void 0));return}if(Uf(we))if(Z>Ie){De(Ee,Wc(void 0));return}else{se.add(Ee),await J(w,we);return}if(Wh(we)){ie(Ee,_e,we.error);return}Bn(!Bf(we),"Unhandled fetcher deferred data"),De(Ee,Wc(we.data))}}async function J(Ee,_e,pe){let{submission:lt,fetcherSubmission:at,replace:Mt}=pe===void 0?{}:pe;_e.revalidate&&(z=!0);let $t=xy(Ee.location,_e.location,{_isRedirect:!0});if(Bn($t,"Expected a location on the redirect navigation"),n){let Qe=!1;if(_e.reloadDocument)Qe=!0;else if(qY.test(_e.location)){const ot=e.history.createURL(_e.location);Qe=ot.origin!==t.location.origin||q1(ot.pathname,l)==null}if(Qe){Mt?t.location.replace(_e.location):t.location.assign(_e.location);return}}N=null;let It=Mt===!0?pi.Replace:pi.Push,{formMethod:Ct,formAction:Zt,formEncType:Ie}=Ee.navigation;!lt&&!at&&Ct&&Zt&&Ie&&(lt=n7(Ee.navigation));let we=lt||at;if(FSe.has(_e.status)&&we&&hl(we.formMethod))await $e(It,$t,{submission:si({},we,{formAction:_e.location}),preventScrollReset:$});else{let Qe=YC($t,lt);await $e(It,$t,{overrideNavigation:Qe,fetcherSubmission:at,preventScrollReset:$})}}async function Re(Ee,_e,pe,lt,at){let Mt=await Promise.all([...pe.map(Ct=>E0("loader",at,Ct,_e,o,i,l,u.v7_relativeSplatPath)),...lt.map(Ct=>Ct.matches&&Ct.match&&Ct.controller?E0("loader",S0(e.history,Ct.path,Ct.controller.signal),Ct.match,Ct.matches,o,i,l,u.v7_relativeSplatPath):{type:oi.error,error:Rs(404,{pathname:Ct.path})})]),$t=Mt.slice(0,pe.length),It=Mt.slice(pe.length);return await Promise.all([t7(Ee,pe,$t,$t.map(()=>at.signal),!1,w.loaderData),t7(Ee,lt.map(Ct=>Ct.match),It,lt.map(Ct=>Ct.controller?Ct.controller.signal:null),!0)]),{results:Mt,loaderResults:$t,fetcherResults:It}}function Le(){z=!0,W.push(...Et()),ve.forEach((Ee,_e)=>{q.has(_e)&&(X.push(_e),Te(_e))})}function De(Ee,_e,pe){pe===void 0&&(pe={}),w.fetchers.set(Ee,_e),Me({fetchers:new Map(w.fetchers)},{flushSync:(pe&&pe.flushSync)===!0})}function ie(Ee,_e,pe,lt){lt===void 0&&(lt={});let at=Ab(w.matches,_e);de(Ee),Me({errors:{[at.route.id]:pe},fetchers:new Map(w.fetchers)},{flushSync:(lt&<.flushSync)===!0})}function fe(Ee){return u.v7_fetcherPersist&&(G.set(Ee,(G.get(Ee)||0)+1),ce.has(Ee)&&ce.delete(Ee)),w.fetchers.get(Ee)||BSe}function de(Ee){let _e=w.fetchers.get(Ee);q.has(Ee)&&!(_e&&_e.state==="loading"&&j.has(Ee))&&Te(Ee),ve.delete(Ee),j.delete(Ee),se.delete(Ee),ce.delete(Ee),w.fetchers.delete(Ee)}function Oe(Ee){if(u.v7_fetcherPersist){let _e=(G.get(Ee)||0)-1;_e<=0?(G.delete(Ee),ce.add(Ee)):G.set(Ee,_e)}else de(Ee);Me({fetchers:new Map(w.fetchers)})}function Te(Ee){let _e=q.get(Ee);Bn(_e,"Expected fetch controller: "+Ee),_e.abort(),q.delete(Ee)}function rt(Ee){for(let _e of Ee){let pe=fe(_e),lt=Wc(pe.data);w.fetchers.set(_e,lt)}}function pt(){let Ee=[],_e=!1;for(let pe of se){let lt=w.fetchers.get(pe);Bn(lt,"Expected fetcher: "+pe),lt.state==="loading"&&(se.delete(pe),Ee.push(pe),_e=!0)}return rt(Ee),_e}function xt(Ee){let _e=[];for(let[pe,lt]of j)if(lt0}function et(Ee,_e){let pe=w.blockers.get(Ee)||v0;return ue.get(Ee)!==_e&&ue.set(Ee,_e),pe}function vt(Ee){w.blockers.delete(Ee),ue.delete(Ee)}function qe(Ee,_e){let pe=w.blockers.get(Ee)||v0;Bn(pe.state==="unblocked"&&_e.state==="blocked"||pe.state==="blocked"&&_e.state==="blocked"||pe.state==="blocked"&&_e.state==="proceeding"||pe.state==="blocked"&&_e.state==="unblocked"||pe.state==="proceeding"&&_e.state==="unblocked","Invalid blocker state transition: "+pe.state+" -> "+_e.state);let lt=new Map(w.blockers);lt.set(Ee,_e),Me({blockers:lt})}function it(Ee){let{currentLocation:_e,nextLocation:pe,historyAction:lt}=Ee;if(ue.size===0)return;ue.size>1&&yp(!1,"A router only supports one blocker at a time");let at=Array.from(ue.entries()),[Mt,$t]=at[at.length-1],It=w.blockers.get(Mt);if(!(It&&It.state==="proceeding")&&$t({currentLocation:_e,nextLocation:pe,historyAction:lt}))return Mt}function Et(Ee){let _e=[];return ge.forEach((pe,lt)=>{(!Ee||Ee(lt))&&(pe.cancel(),_e.push(lt),ge.delete(lt))}),_e}function Nt(Ee,_e,pe){if(p=Ee,m=_e,h=pe||null,!b&&w.navigation===QC){b=!0;let lt=pn(w.location,w.matches);lt!=null&&Me({restoreScrollPosition:lt})}return()=>{p=null,m=null,h=null}}function on(Ee,_e){return h&&h(Ee,_e.map(lt=>hSe(lt,w.loaderData)))||Ee.key}function dn(Ee,_e){if(p&&m){let pe=on(Ee,_e);p[pe]=m()}}function pn(Ee,_e){if(p){let pe=on(Ee,_e),lt=p[pe];if(typeof lt=="number")return lt}return null}function zn(Ee){o={},s=M_(Ee,i,void 0,o)}return C={get basename(){return l},get future(){return u},get state(){return w},get routes(){return a},get window(){return t},initialize:Ne,subscribe:Ke,enableScrollRestoration:Nt,navigate:ye,fetch:Be,revalidate:ze,createHref:Ee=>e.history.createHref(Ee),encodeLocation:Ee=>e.history.encodeLocation(Ee),getFetcher:fe,deleteFetcher:Oe,dispose:Ve,getBlocker:et,deleteBlocker:vt,_internalFetchControllers:q,_internalActiveDeferreds:ge,_internalSetRoutes:zn},C}function zSe(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function $_(e,t,n,r,i,o,a,s){let l,u;if(a){l=[];for(let d of t)if(l.push(d),d.route.id===a){u=d;break}}else l=t,u=t[t.length-1];let c=YN(i||".",QN(l,o),q1(e.pathname,n)||e.pathname,s==="path");return i==null&&(c.search=e.search,c.hash=e.hash),(i==null||i===""||i===".")&&u&&u.route.index&&!ZN(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:Rd([n,c.pathname])),G1(c)}function Q8(e,t,n,r){if(!r||!zSe(r))return{path:n};if(r.formMethod&&!qSe(r.formMethod))return{path:n,error:Rs(405,{method:r.formMethod})};let i=()=>({path:n,error:Rs(400,{type:"invalid-body"})}),o=r.formMethod||"get",a=e?o.toUpperCase():o.toLowerCase(),s=KY(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!hl(a))return i();let p=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((h,m)=>{let[b,O]=m;return""+h+b+"="+O+` +`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!hl(a))return i();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return i()}}}Bn(typeof FormData=="function","FormData is not available in this environment");let l,u;if(r.formData)l=F_(r.formData),u=r.formData;else if(r.body instanceof FormData)l=F_(r.body),u=r.body;else if(r.body instanceof URLSearchParams)l=r.body,u=Z8(l);else if(r.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(r.body),u=Z8(l)}catch{return i()}let c={formMethod:a,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(hl(c.formMethod))return{path:n,submission:c};let d=Rc(n);return t&&d.search&&ZN(d.search)&&l.append("index",""),d.search="?"+l,{path:G1(d),submission:c}}function VSe(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 Y8(e,t,n,r,i,o,a,s,l,u,c,d,p,h,m,b){let O=b?Object.values(b)[0]:m?Object.values(m)[0]:void 0,y=e.createURL(t.location),v=e.createURL(i),S=b?Object.keys(b)[0]:void 0,C=VSe(n,S).filter((E,$)=>{let{route:N}=E;if(N.lazy)return!0;if(N.loader==null)return!1;if(o)return N.loader.hydrate?!0:t.loaderData[N.id]===void 0&&(!t.errors||t.errors[N.id]===void 0);if(HSe(t.loaderData,t.matches[$],E)||s.some(U=>U===E.route.id))return!0;let R=t.matches[$],B=E;return G8(E,si({currentUrl:y,currentParams:R.params,nextUrl:v,nextParams:B.params},r,{actionResult:O,defaultShouldRevalidate:a||y.pathname+y.search===v.pathname+v.search||y.search!==v.search||XY(R,B)}))}),w=[];return c.forEach((E,$)=>{if(o||!n.some(V=>V.route.id===E.routeId)||u.has($))return;let N=Hh(p,E.path,h);if(!N){w.push({key:$,routeId:E.routeId,path:E.path,matches:null,match:null,controller:null});return}let R=t.fetchers.get($),B=B_(N,E.path),U=!1;d.has($)?U=!1:l.includes($)?U=!0:R&&R.state!=="idle"&&R.data===void 0?U=a:U=G8(B,si({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:v,nextParams:n[n.length-1].params},r,{actionResult:O,defaultShouldRevalidate:a})),U&&w.push({key:$,routeId:E.routeId,path:E.path,matches:N,match:B,controller:new AbortController})}),[C,w]}function HSe(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function XY(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function G8(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function q8(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];Bn(i,"No route found in manifest");let o={};for(let a in r){let l=i[a]!==void 0&&a!=="hasErrorBoundary";yp(!l,'Route "'+i.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!l&&!fSe.has(a)&&(o[a]=r[a])}Object.assign(i,o),Object.assign(i,si({},t(i),{lazy:void 0}))}async function E0(e,t,n,r,i,o,a,s,l){l===void 0&&(l={});let u,c,d,p=b=>{let O,y=new Promise((v,S)=>O=S);return d=()=>O(),t.signal.addEventListener("abort",d),Promise.race([b({request:t,params:n.params,context:l.requestContext}),y])};try{let b=n.route[e];if(n.route.lazy)if(b){let O,y=await Promise.all([p(b).catch(v=>{O=v}),q8(n.route,o,i)]);if(O)throw O;c=y[0]}else if(await q8(n.route,o,i),b=n.route[e],b)c=await p(b);else if(e==="action"){let O=new URL(t.url),y=O.pathname+O.search;throw Rs(405,{method:t.method,pathname:y,routeId:n.route.id})}else return{type:oi.data,data:void 0};else if(b)c=await p(b);else{let O=new URL(t.url),y=O.pathname+O.search;throw Rs(404,{pathname:y})}Bn(c!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(b){u=oi.error,c=b}finally{d&&t.signal.removeEventListener("abort",d)}if(GSe(c)){let b=c.status;if($Se.has(b)){let y=c.headers.get("Location");if(Bn(y,"Redirects returned/thrown from loaders/actions must have a Location header"),!qY.test(y))y=$_(new URL(t.url),r.slice(0,r.indexOf(n)+1),a,!0,y,s);else if(!l.isStaticRequest){let v=new URL(t.url),S=y.startsWith("//")?new URL(v.protocol+y):new URL(y),k=q1(S.pathname,a)!=null;S.origin===v.origin&&k&&(y=S.pathname+S.search+S.hash)}if(l.isStaticRequest)throw c.headers.set("Location",y),c;return{type:oi.redirect,status:b,location:y,revalidate:c.headers.get("X-Remix-Revalidate")!==null,reloadDocument:c.headers.get("X-Remix-Reload-Document")!==null}}if(l.isRouteRequest)throw{type:u===oi.error?oi.error:oi.data,response:c};let O;try{let y=c.headers.get("Content-Type");y&&/\bapplication\/json\b/.test(y)?c.body==null?O=null:O=await c.json():O=await c.text()}catch(y){return{type:oi.error,error:y}}return u===oi.error?{type:u,error:new GN(b,c.statusText,O),headers:c.headers}:{type:oi.data,data:O,statusCode:c.status,headers:c.headers}}if(u===oi.error)return{type:u,error:c};if(YSe(c)){var h,m;return{type:oi.deferred,deferredData:c,statusCode:(h=c.init)==null?void 0:h.status,headers:((m=c.init)==null?void 0:m.headers)&&new Headers(c.init.headers)}}return{type:oi.data,data:c}}function S0(e,t,n,r){let i=e.createURL(KY(t)).toString(),o={signal:n};if(r&&hl(r.formMethod)){let{formMethod:a,formEncType:s}=r;o.method=a.toUpperCase(),s==="application/json"?(o.headers=new Headers({"Content-Type":s}),o.body=JSON.stringify(r.json)):s==="text/plain"?o.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?o.body=F_(r.formData):o.body=r.formData}return new Request(i,o)}function F_(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Z8(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function WSe(e,t,n,r,i){let o={},a=null,s,l=!1,u={};return n.forEach((c,d)=>{let p=t[d].route.id;if(Bn(!Uf(c),"Cannot handle redirect results in processLoaderData"),Wh(c)){let h=Ab(e,p),m=c.error;r&&(m=Object.values(r)[0],r=void 0),a=a||{},a[h.route.id]==null&&(a[h.route.id]=m),o[p]=void 0,l||(l=!0,s=qN(c.error)?c.error.status:500),c.headers&&(u[p]=c.headers)}else Bf(c)?(i.set(p,c.deferredData),o[p]=c.deferredData.data):o[p]=c.data,c.statusCode!=null&&c.statusCode!==200&&!l&&(s=c.statusCode),c.headers&&(u[p]=c.headers)}),r&&(a=r,o[Object.keys(r)[0]]=void 0),{loaderData:o,errors:a,statusCode:s||200,loaderHeaders:u}}function X8(e,t,n,r,i,o,a,s){let{loaderData:l,errors:u}=WSe(t,n,r,i,s);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function J8(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Rs(e,t){let{pathname:n,routeId:r,method:i,type:o}=t===void 0?{}:t,a="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(a="Bad Request",i&&n&&r?s="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":o==="defer-action"?s="defer() is not supported in actions":o==="invalid-body"&&(s="Unable to encode submission body")):e===403?(a="Forbidden",s='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",s='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",i&&n&&r?s="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(s='Invalid request method "'+i.toUpperCase()+'"')),new GN(e||500,a,new Error(s),!0)}function e7(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Uf(n))return{result:n,idx:t}}}function KY(e){let t=typeof e=="string"?Rc(e):e;return G1(si({},t,{hash:""}))}function QSe(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Bf(e){return e.type===oi.deferred}function Wh(e){return e.type===oi.error}function Uf(e){return(e&&e.type)===oi.redirect}function YSe(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 GSe(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function qSe(e){return MSe.has(e.toLowerCase())}function hl(e){return PSe.has(e.toLowerCase())}async function t7(e,t,n,r,i,o){for(let a=0;ad.route.id===l.route.id),c=u!=null&&!XY(u,l)&&(o&&o[l.route.id])!==void 0;if(Bf(s)&&(i||c)){let d=r[a];Bn(d,"Expected an AbortSignal for revalidating fetcher deferred result"),await JY(s,d,i).then(p=>{p&&(n[a]=p||n[a])})}}}async function JY(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:oi.data,data:e.deferredData.unwrappedData}}catch(i){return{type:oi.error,error:i}}return{type:oi.data,data:e.deferredData.data}}}function ZN(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function B_(e,t){let n=typeof t=="string"?Rc(t).search:t.search;if(e[e.length-1].route.index&&ZN(n||""))return e[e.length-1];let r=YY(e);return r[r.length-1]}function n7(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:o,json:a}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function YC(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 ZSe(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 T0(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 XSe(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 Wc(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 KSe(e,t){try{let n=e.sessionStorage.getItem(ZY);if(n){let r=JSON.parse(n);for(let[i,o]of Object.entries(r||{}))o&&Array.isArray(o)&&t.set(i,new Set(o||[]))}}catch{}}function JSe(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(ZY,JSON.stringify(n))}catch(r){yp(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** * React Router v6.21.3 * * Copyright (c) Remix Software Inc. @@ -180,7 +180,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function hy(){return hy=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),N.useCallback(function(u,c){if(c===void 0&&(c={}),!s.current)return;if(typeof u=="number"){r.go(u);return}let d=AD(u,JSON.parse(a),o,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:wd([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,a,o,e])}const mSe=N.createContext(null);function gSe(e){let t=N.useContext(xc).outlet;return t&&N.createElement(mSe.Provider,{value:e},t)}function F1(){let{matches:e}=N.useContext(xc),t=e[e.length-1];return t?t.params:{}}function bSe(e,t,n,r){$1()||Bn(!1);let{navigator:i}=N.useContext(M1),{matches:o}=N.useContext(xc),a=o[o.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let u=mg(),c;if(t){var d;let O=typeof t=="string"?kc(t):t;l==="/"||(d=O.pathname)!=null&&d.startsWith(l)||Bn(!1),c=O}else c=u;let p=c.pathname||"/",h=l==="/"?p:p.slice(l.length)||"/",m=Dh(e,{pathname:h}),y=SSe(m&&m.map(O=>Object.assign({},O,{params:Object.assign({},s,O.params),pathname:wd([l,i.encodeLocation?i.encodeLocation(O.pathname).pathname:O.pathname]),pathnameBase:O.pathnameBase==="/"?l:wd([l,i.encodeLocation?i.encodeLocation(O.pathnameBase).pathname:O.pathnameBase])})),o,n,r);return t&&y?N.createElement(fk.Provider,{value:{location:hy({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:di.Pop}},y):y}function ySe(){let e=xSe(),t=vY(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 N.createElement(N.Fragment,null,N.createElement("h2",null,"Unexpected Application Error!"),N.createElement("h3",{style:{fontStyle:"italic"}},t),n?N.createElement("pre",{style:i},n):null,null)}const OSe=N.createElement(ySe,null);class vSe extends N.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?N.createElement(xc.Provider,{value:this.props.routeContext},N.createElement(AY.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ESe(e){let{routeContext:t,match:n,children:r}=e,i=N.useContext(dk);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),N.createElement(xc.Provider,{value:t},r)}function SSe(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let a=e,s=(i=n)==null?void 0:i.errors;if(s!=null){let c=a.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id]));c>=0||Bn(!1),a=a.slice(0,Math.min(a.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((c,d,p)=>{let h,m=!1,y=null,O=null;n&&(h=s&&d.route.id?s[d.route.id]:void 0,y=d.route.errorElement||OSe,l&&(u<0&&p===0?(ASe("route-fallback",!1),m=!0,O=null):u===p&&(m=!0,O=d.route.hydrateFallbackElement||null)));let b=t.concat(a.slice(0,p+1)),v=()=>{let S;return h?S=y:m?S=O:d.route.Component?S=N.createElement(d.route.Component,null):d.route.element?S=d.route.element:S=c,N.createElement(ESe,{match:d,routeContext:{outlet:c,matches:b,isDataRoute:n!=null},children:S})};return n&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?N.createElement(vSe,{location:n.location,revalidation:n.revalidation,component:y,error:h,children:v(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):v()},null)}var RY=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(RY||{}),HS=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}(HS||{});function TSe(e){let t=N.useContext(dk);return t||Bn(!1),t}function wSe(e){let t=N.useContext(CY);return t||Bn(!1),t}function kSe(e){let t=N.useContext(xc);return t||Bn(!1),t}function IY(e){let t=kSe(),n=t.matches[t.matches.length-1];return n.route.id||Bn(!1),n.route.id}function xSe(){var e;let t=N.useContext(AY),n=wSe(HS.UseRouteError),r=IY(HS.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function CSe(){let{router:e}=TSe(RY.UseNavigateStable),t=IY(HS.UseNavigateStable),n=N.useRef(!1);return _Y(()=>{n.current=!0}),N.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,hy({fromRouteId:t},o)))},[e,t])}const $8={};function ASe(e,t,n){!t&&!$8[e]&&($8[e]=!0)}function NY(e){let{to:t,replace:n,state:r,relative:i}=e;$1()||Bn(!1);let{future:o,static:a}=N.useContext(M1),{matches:s}=N.useContext(xc),{pathname:l}=mg(),u=gg(),c=AD(t,CD(s,o.v7_relativeSplatPath),l,i==="path"),d=JSON.stringify(c);return N.useEffect(()=>u(JSON.parse(d),{replace:n,state:r,relative:i}),[u,d,i,n,r]),null}function ID(e){return gSe(e.context)}function _Se(e){let{basename:t="/",children:n=null,location:r,navigationType:i=di.Pop,navigator:o,static:a=!1,future:s}=e;$1()&&Bn(!1);let l=t.replace(/^\/*/,"/"),u=N.useMemo(()=>({basename:l,navigator:o,static:a,future:hy({v7_relativeSplatPath:!1},s)}),[l,s,o,a]);typeof r=="string"&&(r=kc(r));let{pathname:c="/",search:d="",hash:p="",state:h=null,key:m="default"}=r,y=N.useMemo(()=>{let O=L1(c,l);return O==null?null:{location:{pathname:O,search:d,hash:p,state:h,key:m},navigationType:i}},[l,c,d,p,h,m,i]);return y==null?null:N.createElement(M1.Provider,{value:u},N.createElement(fk.Provider,{children:n,value:y}))}new Promise(()=>{});function RSe(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:N.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:N.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:N.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + */function Cy(){return Cy=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),I.useCallback(function(u,c){if(c===void 0&&(c={}),!s.current)return;if(typeof u=="number"){r.go(u);return}let d=YN(u,JSON.parse(a),o,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Rd([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,a,o,e])}const tTe=I.createContext(null);function nTe(e){let t=I.useContext(Ic).outlet;return t&&I.createElement(tTe.Provider,{value:e},t)}function K1(){let{matches:e}=I.useContext(Ic),t=e[e.length-1];return t?t.params:{}}function rTe(e,t,n,r){X1()||Bn(!1);let{navigator:i}=I.useContext(Z1),{matches:o}=I.useContext(Ic),a=o[o.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let u=xg(),c;if(t){var d;let O=typeof t=="string"?Rc(t):t;l==="/"||(d=O.pathname)!=null&&d.startsWith(l)||Bn(!1),c=O}else c=u;let p=c.pathname||"/",h=l==="/"?p:p.slice(l.length)||"/",m=Hh(e,{pathname:h}),b=lTe(m&&m.map(O=>Object.assign({},O,{params:Object.assign({},s,O.params),pathname:Rd([l,i.encodeLocation?i.encodeLocation(O.pathname).pathname:O.pathname]),pathnameBase:O.pathnameBase==="/"?l:Rd([l,i.encodeLocation?i.encodeLocation(O.pathnameBase).pathname:O.pathnameBase])})),o,n,r);return t&&b?I.createElement(_k.Provider,{value:{location:Cy({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:pi.Pop}},b):b}function iTe(){let e=oG(),t=qN(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return I.createElement(I.Fragment,null,I.createElement("h2",null,"Unexpected Application Error!"),I.createElement("h3",{style:{fontStyle:"italic"}},t),n?I.createElement("pre",{style:i},n):null,null)}const oTe=I.createElement(iTe,null);class aTe extends I.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?I.createElement(Ic.Provider,{value:this.props.routeContext},I.createElement(tG.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function sTe(e){let{routeContext:t,match:n,children:r}=e,i=I.useContext(Ak);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),I.createElement(Ic.Provider,{value:t},r)}function lTe(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let a=e,s=(i=n)==null?void 0:i.errors;if(s!=null){let c=a.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id]));c>=0||Bn(!1),a=a.slice(0,Math.min(a.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((c,d,p)=>{let h,m=!1,b=null,O=null;n&&(h=s&&d.route.id?s[d.route.id]:void 0,b=d.route.errorElement||oTe,l&&(u<0&&p===0?(pTe("route-fallback",!1),m=!0,O=null):u===p&&(m=!0,O=d.route.hydrateFallbackElement||null)));let y=t.concat(a.slice(0,p+1)),v=()=>{let S;return h?S=b:m?S=O:d.route.Component?S=I.createElement(d.route.Component,null):d.route.element?S=d.route.element:S=c,I.createElement(sTe,{match:d,routeContext:{outlet:c,matches:y,isDataRoute:n!=null},children:S})};return n&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?I.createElement(aTe,{location:n.location,revalidation:n.revalidation,component:b,error:h,children:v(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):v()},null)}var rG=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(rG||{}),aT=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}(aT||{});function uTe(e){let t=I.useContext(Ak);return t||Bn(!1),t}function cTe(e){let t=I.useContext(eG);return t||Bn(!1),t}function dTe(e){let t=I.useContext(Ic);return t||Bn(!1),t}function iG(e){let t=dTe(),n=t.matches[t.matches.length-1];return n.route.id||Bn(!1),n.route.id}function oG(){var e;let t=I.useContext(tG),n=cTe(aT.UseRouteError),r=iG(aT.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function fTe(){let{router:e}=uTe(rG.UseNavigateStable),t=iG(aT.UseNavigateStable),n=I.useRef(!1);return nG(()=>{n.current=!0}),I.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Cy({fromRouteId:t},o)))},[e,t])}const r7={};function pTe(e,t,n){!t&&!r7[e]&&(r7[e]=!0)}function aG(e){let{to:t,replace:n,state:r,relative:i}=e;X1()||Bn(!1);let{future:o,static:a}=I.useContext(Z1),{matches:s}=I.useContext(Ic),{pathname:l}=xg(),u=Cg(),c=YN(t,QN(s,o.v7_relativeSplatPath),l,i==="path"),d=JSON.stringify(c);return I.useEffect(()=>u(JSON.parse(d),{replace:n,state:r,relative:i}),[u,d,i,n,r]),null}function XN(e){return nTe(e.context)}function hTe(e){let{basename:t="/",children:n=null,location:r,navigationType:i=pi.Pop,navigator:o,static:a=!1,future:s}=e;X1()&&Bn(!1);let l=t.replace(/^\/*/,"/"),u=I.useMemo(()=>({basename:l,navigator:o,static:a,future:Cy({v7_relativeSplatPath:!1},s)}),[l,s,o,a]);typeof r=="string"&&(r=Rc(r));let{pathname:c="/",search:d="",hash:p="",state:h=null,key:m="default"}=r,b=I.useMemo(()=>{let O=q1(c,l);return O==null?null:{location:{pathname:O,search:d,hash:p,state:h,key:m},navigationType:i}},[l,c,d,p,h,m,i]);return b==null?null:I.createElement(Z1.Provider,{value:u},I.createElement(_k.Provider,{children:n,value:b}))}new Promise(()=>{});function mTe(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:I.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:I.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:I.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.21.3 * * Copyright (c) Remix Software Inc. @@ -189,38 +189,38 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function WS(){return WS=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 ISe(e,t){let n=O_(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(o=>{n.append(i,o)})}),n}function NSe(e,t){return tSe({basename:t==null?void 0:t.basename,future:WS({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:TEe({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||DSe(),routes:e,mapRouteProperties:RSe,window:t==null?void 0:t.window}).initialize()}function DSe(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=WS({},t,{errors:PSe(t.errors)})),t}function PSe(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 _D(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let o=window[i.__subType];if(typeof o=="function")try{let a=new o(i.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let o=new Error(i.message);o.stack="",n[r]=o}}else n[r]=i;return n}const LSe=N.createContext({isTransitioning:!1}),MSe=N.createContext(new Map),$Se="startTransition",F8=Cm[$Se],FSe="flushSync",B8=Sse[FSe];function BSe(e){F8?F8(e):e()}function p0(e){B8?B8(e):e()}class USe{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 jSe(e){let{fallbackElement:t,router:n,future:r}=e,[i,o]=N.useState(n.state),[a,s]=N.useState(),[l,u]=N.useState({isTransitioning:!1}),[c,d]=N.useState(),[p,h]=N.useState(),[m,y]=N.useState(),O=N.useRef(new Map),{v7_startTransition:b}=r||{},v=N.useCallback(E=>{b?BSe(E):E()},[b]),S=N.useCallback((E,$)=>{let{deletedFetchers:D,unstable_flushSync:R,unstable_viewTransitionOpts:B}=$;D.forEach(V=>O.current.delete(V)),E.fetchers.forEach((V,z)=>{V.data!==void 0&&O.current.set(z,V.data)});let U=n.window==null||typeof n.window.document.startViewTransition!="function";if(!B||U){R?p0(()=>o(E)):v(()=>o(E));return}if(R){p0(()=>{p&&(c&&c.resolve(),p.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:B.currentLocation,nextLocation:B.nextLocation})});let V=n.window.document.startViewTransition(()=>{p0(()=>o(E))});V.finished.finally(()=>{p0(()=>{d(void 0),h(void 0),s(void 0),u({isTransitioning:!1})})}),p0(()=>h(V));return}p?(c&&c.resolve(),p.skipTransition(),y({state:E,currentLocation:B.currentLocation,nextLocation:B.nextLocation})):(s(E),u({isTransitioning:!0,flushSync:!1,currentLocation:B.currentLocation,nextLocation:B.nextLocation}))},[n.window,p,c,O,v]);N.useLayoutEffect(()=>n.subscribe(S),[n,S]),N.useEffect(()=>{l.isTransitioning&&!l.flushSync&&d(new USe)},[l]),N.useEffect(()=>{if(c&&a&&n.window){let E=a,$=c.promise,D=n.window.document.startViewTransition(async()=>{v(()=>o(E)),await $});D.finished.finally(()=>{d(void 0),h(void 0),s(void 0),u({isTransitioning:!1})}),h(D)}},[v,a,c,n.window]),N.useEffect(()=>{c&&a&&i.location.key===a.location.key&&c.resolve()},[c,p,i.location,a]),N.useEffect(()=>{!l.isTransitioning&&m&&(s(m.state),u({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),y(void 0))},[l.isTransitioning,m]),N.useEffect(()=>{},[]);let k=N.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:E=>n.navigate(E),push:(E,$,D)=>n.navigate(E,{state:$,preventScrollReset:D==null?void 0:D.preventScrollReset}),replace:(E,$,D)=>n.navigate(E,{replace:!0,state:$,preventScrollReset:D==null?void 0:D.preventScrollReset})}),[n]),C=n.basename||"/",w=N.useMemo(()=>({router:n,navigator:k,static:!1,basename:C}),[n,k,C]);return N.createElement(N.Fragment,null,N.createElement(dk.Provider,{value:w},N.createElement(CY.Provider,{value:i},N.createElement(MSe.Provider,{value:O.current},N.createElement(LSe.Provider,{value:l},N.createElement(_Se,{basename:C,location:i.location,navigationType:i.historyAction,navigator:k,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},i.initialized||n.future.v7_partialHydration?N.createElement(zSe,{routes:n.routes,future:n.future,state:i}):t))))),null)}function zSe(e){let{routes:t,future:n,state:r}=e;return bSe(t,void 0,r,n)}var U8;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(U8||(U8={}));var j8;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(j8||(j8={}));function VSe(e){let t=N.useRef(O_(e)),n=N.useRef(!1),r=mg(),i=N.useMemo(()=>ISe(r.search,n.current?null:t.current),[r.search]),o=gg(),a=N.useCallback((s,l)=>{const u=O_(typeof s=="function"?s(i):s);n.current=!0,o("?"+u,l)},[o,i]);return[i,a]}function oo(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 HSe=typeof Symbol=="function"&&Symbol.observable||"@@observable",z8=HSe,IC=()=>Math.random().toString(36).substring(7).split("").join("."),WSe={INIT:`@@redux/INIT${IC()}`,REPLACE:`@@redux/REPLACE${IC()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${IC()}`},QS=WSe;function ND(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 DD(e,t,n){if(typeof e!="function")throw new Error(oo(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(oo(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(oo(1));return n(DD)(e,t)}let r=e,i=t,o=new Map,a=o,s=0,l=!1;function u(){a===o&&(a=new Map,o.forEach((O,b)=>{a.set(b,O)}))}function c(){if(l)throw new Error(oo(3));return i}function d(O){if(typeof O!="function")throw new Error(oo(4));if(l)throw new Error(oo(5));let b=!0;u();const v=s++;return a.set(v,O),function(){if(b){if(l)throw new Error(oo(6));b=!1,u(),a.delete(v),o=null}}}function p(O){if(!ND(O))throw new Error(oo(7));if(typeof O.type>"u")throw new Error(oo(8));if(typeof O.type!="string")throw new Error(oo(17));if(l)throw new Error(oo(9));try{l=!0,i=r(i,O)}finally{l=!1}return(o=a).forEach(v=>{v()}),O}function h(O){if(typeof O!="function")throw new Error(oo(10));r=O,p({type:QS.REPLACE})}function m(){const O=d;return{subscribe(b){if(typeof b!="object"||b===null)throw new Error(oo(11));function v(){const k=b;k.next&&k.next(c())}return v(),{unsubscribe:O(v)}},[z8](){return this}}}return p({type:QS.INIT}),{dispatch:p,subscribe:d,getState:c,replaceReducer:h,[z8]:m}}function QSe(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:QS.INIT})>"u")throw new Error(oo(12));if(typeof n(void 0,{type:QS.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(oo(13))})}function DY(e){const t=Object.keys(e),n={};for(let o=0;o"u")throw s&&s.type,new Error(oo(14));u[d]=m,l=l||m!==h}return l=l||r.length!==Object.keys(a).length,l?u:a}}function YS(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function YSe(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(oo(15))};const a={getState:i.getState,dispatch:(l,...u)=>o(l,...u)},s=e.map(l=>l(a));return o=YS(...s)(i.dispatch),{...i,dispatch:o}}}function GSe(e){return ND(e)&&"type"in e&&typeof e.type=="string"}var PY=Symbol.for("immer-nothing"),V8=Symbol.for("immer-draftable"),hs=Symbol.for("immer-state");function Ol(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var jm=Object.getPrototypeOf;function Ld(e){return!!e&&!!e[hs]}function gc(e){var t;return e?LY(e)||Array.isArray(e)||!!e[V8]||!!((t=e.constructor)!=null&&t[V8])||hk(e)||mk(e):!1}var qSe=Object.prototype.constructor.toString();function LY(e){if(!e||typeof e!="object")return!1;const t=jm(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)===qSe}function my(e,t){pk(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function pk(e){const t=e[hs];return t?t.type_:Array.isArray(e)?1:hk(e)?2:mk(e)?3:0}function v_(e,t){return pk(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function MY(e,t,n){const r=pk(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function ZSe(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function hk(e){return e instanceof Map}function mk(e){return e instanceof Set}function Of(e){return e.copy_||e.base_}function E_(e,t){if(hk(e))return new Map(e);if(mk(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&LY(e))return jm(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[hs];let r=Reflect.ownKeys(n);for(let i=0;i1&&(e.set=e.add=e.clear=e.delete=XSe),Object.freeze(e),t&&my(e,(n,r)=>PD(r,!0))),e}function XSe(){Ol(2)}function gk(e){return Object.isFrozen(e)}var KSe={};function lp(e){const t=KSe[e];return t||Ol(0,e),t}var gy;function $Y(){return gy}function JSe(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function H8(e,t){t&&(lp("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function S_(e){T_(e),e.drafts_.forEach(eTe),e.drafts_=null}function T_(e){e===gy&&(gy=e.parent_)}function W8(e){return gy=JSe(gy,e)}function eTe(e){const t=e[hs];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Q8(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[hs].modified_&&(S_(t),Ol(4)),gc(e)&&(e=GS(t,e),t.parent_||qS(t,e)),t.patches_&&lp("Patches").generateReplacementPatches_(n[hs].base_,e,t.patches_,t.inversePatches_)):e=GS(t,n,[]),S_(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==PY?e:void 0}function GS(e,t,n){if(gk(t))return t;const r=t[hs];if(!r)return my(t,(i,o)=>Y8(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return qS(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let o=i,a=!1;r.type_===3&&(o=new Set(i),i.clear(),a=!0),my(o,(s,l)=>Y8(e,r,i,s,l,n,a)),qS(e,i,!1),n&&e.patches_&&lp("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Y8(e,t,n,r,i,o,a){if(Ld(i)){const s=o&&t&&t.type_!==3&&!v_(t.assigned_,r)?o.concat(r):void 0,l=GS(e,i,s);if(MY(n,r,l),Ld(l))e.canAutoFreeze_=!1;else return}else a&&n.add(i);if(gc(i)&&!gk(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;GS(e,i),(!t||!t.scope_.parent_)&&qS(e,i)}}function qS(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&PD(t,n)}function tTe(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:$Y(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=LD;n&&(i=[r],o=by);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return r.draft_=s,r.revoke_=a,s}var LD={get(e,t){if(t===hs)return e;const n=Of(e);if(!v_(n,t))return nTe(e,n,t);const r=n[t];return e.finalized_||!gc(r)?r:r===NC(e.base_,t)?(DC(e),e.copy_[t]=k_(r,e)):r},has(e,t){return t in Of(e)},ownKeys(e){return Reflect.ownKeys(Of(e))},set(e,t,n){const r=FY(Of(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=NC(Of(e),t),o=i==null?void 0:i[hs];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(ZSe(n,i)&&(n!==void 0||v_(e.base_,t)))return!0;DC(e),w_(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 NC(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,DC(e),w_(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Of(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Ol(11)},getPrototypeOf(e){return jm(e.base_)},setPrototypeOf(){Ol(12)}},by={};my(LD,(e,t)=>{by[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});by.deleteProperty=function(e,t){return by.set.call(this,e,t,void 0)};by.set=function(e,t,n){return LD.set.call(this,e[0],t,n,e[0])};function NC(e,t){const n=e[hs];return(n?Of(n):e)[t]}function nTe(e,t,n){var i;const r=FY(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function FY(e,t){if(!(t in e))return;let n=jm(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=jm(n)}}function w_(e){e.modified_||(e.modified_=!0,e.parent_&&w_(e.parent_))}function DC(e){e.copy_||(e.copy_=E_(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var rTe=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const a=this;return function(l=o,...u){return a.produce(l,c=>n.call(this,c,...u))}}typeof n!="function"&&Ol(6),r!==void 0&&typeof r!="function"&&Ol(7);let i;if(gc(t)){const o=W8(this),a=k_(t,void 0);let s=!0;try{i=n(a),s=!1}finally{s?S_(o):T_(o)}return H8(o,r),Q8(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===PY&&(i=void 0),this.autoFreeze_&&PD(i,!0),r){const o=[],a=[];lp("Patches").generateReplacementPatches_(t,i,o,a),r(o,a)}return i}else Ol(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...s)=>this.produceWithPatches(a,l=>t(l,...s));let r,i;return[this.produce(t,n,(a,s)=>{r=a,i=s}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){gc(e)||Ol(8),Ld(e)&&(e=BY(e));const t=W8(this),n=k_(e,void 0);return n[hs].isManual_=!0,T_(t),n}finishDraft(e,t){const n=e&&e[hs];(!n||!n.isManual_)&&Ol(9);const{scope_:r}=n;return H8(r,t),Q8(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=lp("Patches").applyPatches_;return Ld(e)?r(e,t):this.produce(e,i=>r(i,t))}};function k_(e,t){const n=hk(e)?lp("MapSet").proxyMap_(e,t):mk(e)?lp("MapSet").proxySet_(e,t):tTe(e,t);return(t?t.scope_:$Y()).drafts_.push(n),n}function BY(e){return Ld(e)||Ol(10,e),UY(e)}function UY(e){if(!gc(e)||gk(e))return e;const t=e[hs];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=E_(e,t.scope_.immer_.useStrictShallowCopy_)}else n=E_(e,!0);return my(n,(r,i)=>{MY(n,r,UY(i))}),t&&(t.finalized_=!1),n}var ms=new rTe,jY=ms.produce;ms.produceWithPatches.bind(ms);ms.setAutoFreeze.bind(ms);ms.setUseStrictShallowCopy.bind(ms);ms.applyPatches.bind(ms);ms.createDraft.bind(ms);ms.finishDraft.bind(ms);function iTe(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function oTe(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function aTe(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var G8=e=>Array.isArray(e)?e:[e];function sTe(e){const t=Array.isArray(e[0])?e[0]:e;return aTe(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function lTe(e,t){const n=[],{length:r}=e;for(let i=0;i{n=mv(),a.resetResultsCount()},a.resultsCount=()=>o,a.resetResultsCount=()=>{o=0},a}function zY(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let o=0,a=0,s,l={},u=i.pop();typeof u=="object"&&(l=u,u=i.pop()),iTe(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const c={...n,...l},{memoize:d,memoizeOptions:p=[],argsMemoize:h=MD,argsMemoizeOptions:m=[],devModeChecks:y={}}=c,O=G8(p),b=G8(m),v=sTe(i),S=d(function(){return o++,u.apply(null,arguments)},...O),k=h(function(){a++;const w=lTe(v,arguments);return s=S.apply(null,w),s},...b);return Object.assign(k,{resultFunc:u,memoizedResultFunc:S,dependencies:v,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>s,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:d,argsMemoize:h})};return Object.assign(r,{withTypes:()=>r}),r}var fTe=zY(MD),pTe=Object.assign((e,t=fTe)=>{oTe(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(o=>e[o]);return t(r,(...o)=>o.reduce((a,s,l)=>(a[n[l]]=s,a),{}))},{withTypes:()=>pTe});function VY(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var hTe=VY(),mTe=VY,gTe=(...e)=>{const t=zY(...e);return(...n)=>{const r=t(...n),i=(o,...a)=>r(Ld(o)?BY(o):o,...a);return Object.assign(i,r),i}};gTe(MD);var bTe=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?YS:YS.apply(null,arguments)};function yy(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(xl(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=>GSe(r)&&r.type===e,n}var HY=class V0 extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,V0.prototype)}static get[Symbol.species](){return V0}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new V0(...t[0].concat(this)):new V0(...t.concat(this))}};function Z8(e){return gc(e)?jY(e,()=>{}):e}function X8(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(xl(10));const r=n.insert(t,e);return e.set(t,r),r}function yTe(e){return typeof e=="boolean"}var OTe=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let a=new HY;return n&&(yTe(n)?a.push(hTe):a.push(mTe(n.extraArgument))),a},vTe="RTK_autoBatch",WY=e=>t=>{setTimeout(t,e)},ETe=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:WY(10),STe=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,a=!1;const s=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?ETe:e.type==="callback"?e.queueNotification:WY(e.timeout),u=()=>{a=!1,o&&(o=!1,s.forEach(c=>c()))};return Object.assign({},r,{subscribe(c){const d=()=>i&&c(),p=r.subscribe(d);return s.add(c),()=>{p(),s.delete(c)}},dispatch(c){var d;try{return i=!((d=c==null?void 0:c.meta)!=null&&d[vTe]),o=!i,o&&(a||(a=!0,l(u))),r.dispatch(c)}finally{i=!0}}})},TTe=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new HY(e);return r&&i.push(STe(typeof r=="object"?r:void 0)),i},wTe=!0;function kTe(e){const t=OTe(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:o=void 0,enhancers:a=void 0}=e||{};let s;if(typeof n=="function")s=n;else if(ND(n))s=DY(n);else throw new Error(xl(1));let l;typeof r=="function"?l=r(t):l=t();let u=YS;i&&(u=bTe({trace:!wTe,...typeof i=="object"&&i}));const c=YSe(...l),d=TTe(c);let p=typeof a=="function"?a(d):d();const h=u(...p);return DD(s,o,h)}function QY(e){const t={},n=[];let r;const i={addCase(o,a){const s=typeof o=="string"?o:o.type;if(!s)throw new Error(xl(28));if(s in t)throw new Error(xl(29));return t[s]=a,i},addMatcher(o,a){return n.push({matcher:o,reducer:a}),i},addDefaultCase(o){return r=o,i}};return e(i),[t,n,r]}function xTe(e){return typeof e=="function"}function CTe(e,t){let[n,r,i]=QY(t),o;if(xTe(e))o=()=>Z8(e());else{const s=Z8(e);o=()=>s}function a(s=o(),l){let u=[n[l.type],...r.filter(({matcher:c})=>c(l)).map(({reducer:c})=>c)];return u.filter(c=>!!c).length===0&&(u=[i]),u.reduce((c,d)=>{if(d)if(Ld(c)){const h=d(c,l);return h===void 0?c:h}else{if(gc(c))return jY(c,p=>d(p,l));{const p=d(c,l);if(p===void 0){if(c===null)return c;throw new Error(xl(9))}return p}}return c},s)}return a.getInitialState=o,a}var ATe=Symbol.for("rtk-slice-createasyncthunk");function _Te(e,t){return`${e}/${t}`}function RTe({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[ATe];return function(i){const{name:o,reducerPath:a=o}=i;if(!o)throw new Error(xl(11));typeof process<"u";const s=(typeof i.reducers=="function"?i.reducers(NTe()):i.reducers)||{},l=Object.keys(s),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(O,b){const v=typeof O=="string"?O:O.type;if(!v)throw new Error(xl(12));if(v in u.sliceCaseReducersByType)throw new Error(xl(13));return u.sliceCaseReducersByType[v]=b,c},addMatcher(O,b){return u.sliceMatchers.push({matcher:O,reducer:b}),c},exposeAction(O,b){return u.actionCreators[O]=b,c},exposeCaseReducer(O,b){return u.sliceCaseReducersByName[O]=b,c}};l.forEach(O=>{const b=s[O],v={reducerName:O,type:_Te(o,O),createNotation:typeof i.reducers=="function"};PTe(b)?MTe(v,b,c,t):DTe(v,b,c)});function d(){const[O={},b=[],v=void 0]=typeof i.extraReducers=="function"?QY(i.extraReducers):[i.extraReducers],S={...O,...u.sliceCaseReducersByType};return CTe(i.initialState,k=>{for(let C in S)k.addCase(C,S[C]);for(let C of u.sliceMatchers)k.addMatcher(C.matcher,C.reducer);for(let C of b)k.addMatcher(C.matcher,C.reducer);v&&k.addDefaultCase(v)})}const p=O=>O,h=new WeakMap;let m;const y={name:o,reducerPath:a,reducer(O,b){return m||(m=d()),m(O,b)},actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState(){return m||(m=d()),m.getInitialState()},getSelectors(O=p){const b=X8(h,this,{insert:()=>new WeakMap});return X8(b,O,{insert:()=>{const v={};for(const[S,k]of Object.entries(i.selectors??{}))v[S]=ITe(this,k,O,this!==y);return v}})},selectSlice(O){let b=O[this.reducerPath];return typeof b>"u"&&this!==y&&(b=this.getInitialState()),b},get selectors(){return this.getSelectors(this.selectSlice)},injectInto(O,{reducerPath:b,...v}={}){const S=b??this.reducerPath;return O.inject({reducerPath:S,reducer:this.reducer},v),{...this,reducerPath:S}}};return y}}function ITe(e,t,n,r){function i(o,...a){let s=n.call(e,o);return typeof s>"u"&&r&&(s=e.getInitialState()),t(s,...a)}return i.unwrapped=t,i}var bk=RTe();function NTe(){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 DTe({type:e,reducerName:t,createNotation:n},r,i){let o,a;if("reducer"in r){if(n&&!LTe(r))throw new Error(xl(17));o=r.reducer,a=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,a?yy(e,a):yy(e))}function PTe(e){return e._reducerDefinitionType==="asyncThunk"}function LTe(e){return e._reducerDefinitionType==="reducerWithPrepare"}function MTe({type:e,reducerName:t},n,r,i){if(!i)throw new Error(xl(18));const{payloadCreator:o,fulfilled:a,pending:s,rejected:l,settled:u,options:c}=n,d=i(e,o,c);r.exposeAction(t,d),a&&r.addCase(d.fulfilled,a),s&&r.addCase(d.pending,s),l&&r.addCase(d.rejected,l),u&&r.addMatcher(d.settled,u),r.exposeCaseReducer(t,{fulfilled:a||gv,pending:s||gv,rejected:l||gv,settled:u||gv})}function gv(){}var $D="listenerMiddleware";yy(`${$D}/add`);yy(`${$D}/removeAll`);yy(`${$D}/remove`);function xl(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 $Te={theme:"default"},YY=bk({name:"editor",initialState:$Te,reducers:{setTheme:(e,t)=>{e.theme=t.payload}}}),{setTheme:FTe}=YY.actions,GY=e=>e.config,BTe=YY.reducer;function qY(e,t){return function(){return e.apply(t,arguments)}}const{toString:UTe}=Object.prototype,{getPrototypeOf:FD}=Object,yk=(e=>t=>{const n=UTe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ru=e=>(e=e.toLowerCase(),t=>yk(t)===e),Ok=e=>t=>typeof t===e,{isArray:bg}=Array,Oy=Ok("undefined");function jTe(e){return e!==null&&!Oy(e)&&e.constructor!==null&&!Oy(e.constructor)&&Ws(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ZY=Ru("ArrayBuffer");function zTe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ZY(e.buffer),t}const VTe=Ok("string"),Ws=Ok("function"),XY=Ok("number"),vk=e=>e!==null&&typeof e=="object",HTe=e=>e===!0||e===!1,wE=e=>{if(yk(e)!=="object")return!1;const t=FD(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},WTe=Ru("Date"),QTe=Ru("File"),YTe=Ru("Blob"),GTe=Ru("FileList"),qTe=e=>vk(e)&&Ws(e.pipe),ZTe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ws(e.append)&&((t=yk(e))==="formdata"||t==="object"&&Ws(e.toString)&&e.toString()==="[object FormData]"))},XTe=Ru("URLSearchParams"),KTe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function B1(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),bg(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const JY=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,eG=e=>!Oy(e)&&e!==JY;function x_(){const{caseless:e}=eG(this)&&this||{},t={},n=(r,i)=>{const o=e&&KY(t,i)||i;wE(t[o])&&wE(r)?t[o]=x_(t[o],r):wE(r)?t[o]=x_({},r):bg(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r(B1(t,(i,o)=>{n&&Ws(i)?e[o]=qY(i,n):e[o]=i},{allOwnKeys:r}),e),ewe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),twe=(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)},nwe=(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&FD(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},rwe=(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},iwe=e=>{if(!e)return null;if(bg(e))return e;let t=e.length;if(!XY(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},owe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&FD(Uint8Array)),awe=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},swe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},lwe=Ru("HTMLFormElement"),uwe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),K8=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),cwe=Ru("RegExp"),tG=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};B1(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},dwe=e=>{tG(e,(t,n)=>{if(Ws(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ws(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+"'")})}})},fwe=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return bg(e)?r(e):r(String(e).split(t)),n},pwe=()=>{},hwe=(e,t)=>(e=+e,Number.isFinite(e)?e:t),PC="abcdefghijklmnopqrstuvwxyz",J8="0123456789",nG={DIGIT:J8,ALPHA:PC,ALPHA_DIGIT:PC+PC.toUpperCase()+J8},mwe=(e=16,t=nG.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function gwe(e){return!!(e&&Ws(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const bwe=e=>{const t=new Array(10),n=(r,i)=>{if(vk(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=bg(r)?[]:{};return B1(r,(a,s)=>{const l=n(a,i+1);!Oy(l)&&(o[s]=l)}),t[i]=void 0,o}}return r};return n(e,0)},ywe=Ru("AsyncFunction"),Owe=e=>e&&(vk(e)||Ws(e))&&Ws(e.then)&&Ws(e.catch),ut={isArray:bg,isArrayBuffer:ZY,isBuffer:jTe,isFormData:ZTe,isArrayBufferView:zTe,isString:VTe,isNumber:XY,isBoolean:HTe,isObject:vk,isPlainObject:wE,isUndefined:Oy,isDate:WTe,isFile:QTe,isBlob:YTe,isRegExp:cwe,isFunction:Ws,isStream:qTe,isURLSearchParams:XTe,isTypedArray:owe,isFileList:GTe,forEach:B1,merge:x_,extend:JTe,trim:KTe,stripBOM:ewe,inherits:twe,toFlatObject:nwe,kindOf:yk,kindOfTest:Ru,endsWith:rwe,toArray:iwe,forEachEntry:awe,matchAll:swe,isHTMLForm:lwe,hasOwnProperty:K8,hasOwnProp:K8,reduceDescriptors:tG,freezeMethods:dwe,toObjectSet:fwe,toCamelCase:uwe,noop:pwe,toFiniteNumber:hwe,findKey:KY,global:JY,isContextDefined:eG,ALPHABET:nG,generateString:mwe,isSpecCompliantForm:gwe,toJSONObject:bwe,isAsyncFn:ywe,isThenable:Owe};function Zn(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}ut.inherits(Zn,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ut.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const rG=Zn.prototype,iG={};["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=>{iG[e]={value:e}});Object.defineProperties(Zn,iG);Object.defineProperty(rG,"isAxiosError",{value:!0});Zn.from=(e,t,n,r,i,o)=>{const a=Object.create(rG);return ut.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),Zn.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const vwe=null;function C_(e){return ut.isPlainObject(e)||ut.isArray(e)}function oG(e){return ut.endsWith(e,"[]")?e.slice(0,-2):e}function e7(e,t,n){return e?e.concat(t).map(function(i,o){return i=oG(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function Ewe(e){return ut.isArray(e)&&!e.some(C_)}const Swe=ut.toFlatObject(ut,{},null,function(t){return/^is[A-Z]/.test(t)});function Ek(e,t,n){if(!ut.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ut.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,O){return!ut.isUndefined(O[y])});const r=n.metaTokens,i=n.visitor||c,o=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&ut.isSpecCompliantForm(t);if(!ut.isFunction(i))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(ut.isDate(m))return m.toISOString();if(!l&&ut.isBlob(m))throw new Zn("Blob is not supported. Use a Buffer instead.");return ut.isArrayBuffer(m)||ut.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function c(m,y,O){let b=m;if(m&&!O&&typeof m=="object"){if(ut.endsWith(y,"{}"))y=r?y:y.slice(0,-2),m=JSON.stringify(m);else if(ut.isArray(m)&&Ewe(m)||(ut.isFileList(m)||ut.endsWith(y,"[]"))&&(b=ut.toArray(m)))return y=oG(y),b.forEach(function(S,k){!(ut.isUndefined(S)||S===null)&&t.append(a===!0?e7([y],k,o):a===null?y:y+"[]",u(S))}),!1}return C_(m)?!0:(t.append(e7(O,y,o),u(m)),!1)}const d=[],p=Object.assign(Swe,{defaultVisitor:c,convertValue:u,isVisitable:C_});function h(m,y){if(!ut.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+y.join("."));d.push(m),ut.forEach(m,function(b,v){(!(ut.isUndefined(b)||b===null)&&i.call(t,b,ut.isString(v)?v.trim():v,y,p))===!0&&h(b,y?y.concat(v):[v])}),d.pop()}}if(!ut.isObject(e))throw new TypeError("data must be an object");return h(e),t}function t7(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function BD(e,t){this._pairs=[],e&&Ek(e,this,t)}const aG=BD.prototype;aG.append=function(t,n){this._pairs.push([t,n])};aG.toString=function(t){const n=t?function(r){return t.call(this,r,t7)}:t7;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Twe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function sG(e,t,n){if(!t)return e;const r=n&&n.encode||Twe,i=n&&n.serialize;let o;if(i?o=i(t,n):o=ut.isURLSearchParams(t)?t.toString():new BD(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class n7{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ut.forEach(this.handlers,function(r){r!==null&&t(r)})}}const lG={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},wwe=typeof URLSearchParams<"u"?URLSearchParams:BD,kwe=typeof FormData<"u"?FormData:null,xwe=typeof Blob<"u"?Blob:null,Cwe={isBrowser:!0,classes:{URLSearchParams:wwe,FormData:kwe,Blob:xwe},protocols:["http","https","file","blob","url","data"]},uG=typeof window<"u"&&typeof document<"u",Awe=(e=>uG&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),_we=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Rwe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:uG,hasStandardBrowserEnv:Awe,hasStandardBrowserWebWorkerEnv:_we},Symbol.toStringTag,{value:"Module"})),pu={...Rwe,...Cwe};function Iwe(e,t){return Ek(e,new pu.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return pu.isNode&&ut.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Nwe(e){return ut.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Dwe(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r=n.length;return a=!a&&ut.isArray(i)?i.length:a,l?(ut.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!ut.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&ut.isArray(i[a])&&(i[a]=Dwe(i[a])),!s)}if(ut.isFormData(e)&&ut.isFunction(e.entries)){const n={};return ut.forEachEntry(e,(r,i)=>{t(Nwe(r),i,n,0)}),n}return null}function Pwe(e,t,n){if(ut.isString(e))try{return(t||JSON.parse)(e),ut.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const UD={transitional:lG,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=ut.isObject(t);if(o&&ut.isHTMLForm(t)&&(t=new FormData(t)),ut.isFormData(t))return i&&i?JSON.stringify(cG(t)):t;if(ut.isArrayBuffer(t)||ut.isBuffer(t)||ut.isStream(t)||ut.isFile(t)||ut.isBlob(t))return t;if(ut.isArrayBufferView(t))return t.buffer;if(ut.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Iwe(t,this.formSerializer).toString();if((s=ut.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Ek(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),Pwe(t)):t}],transformResponse:[function(t){const n=this.transitional||UD.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&ut.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?Zn.from(s,Zn.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pu.classes.FormData,Blob:pu.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ut.forEach(["delete","get","head","post","put","patch"],e=>{UD.headers[e]={}});const jD=UD,Lwe=ut.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Mwe=e=>{const t={};let n,r,i;return e&&e.split(` -`).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&Lwe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},r7=Symbol("internals");function h0(e){return e&&String(e).trim().toLowerCase()}function kE(e){return e===!1||e==null?e:ut.isArray(e)?e.map(kE):String(e)}function $we(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 Fwe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function LC(e,t,n,r,i){if(ut.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!ut.isString(t)){if(ut.isString(r))return t.indexOf(r)!==-1;if(ut.isRegExp(r))return r.test(t)}}function Bwe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Uwe(e,t){const n=ut.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,a){return this[r].call(this,t,i,o,a)},configurable:!0})})}class Sk{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,l,u){const c=h0(l);if(!c)throw new Error("header name must be a non-empty string");const d=ut.findKey(i,c);(!d||i[d]===void 0||u===!0||u===void 0&&i[d]!==!1)&&(i[d||l]=kE(s))}const a=(s,l)=>ut.forEach(s,(u,c)=>o(u,c,l));return ut.isPlainObject(t)||t instanceof this.constructor?a(t,n):ut.isString(t)&&(t=t.trim())&&!Fwe(t)?a(Mwe(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=h0(t),t){const r=ut.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return $we(i);if(ut.isFunction(n))return n.call(this,i,r);if(ut.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=h0(t),t){const r=ut.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||LC(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=h0(a),a){const s=ut.findKey(r,a);s&&(!n||LC(r,r[s],s,n))&&(delete r[s],i=!0)}}return ut.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||LC(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return ut.forEach(this,(i,o)=>{const a=ut.findKey(r,o);if(a){n[a]=kE(i),delete n[o];return}const s=t?Bwe(o):String(o).trim();s!==o&&delete n[o],n[s]=kE(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ut.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&ut.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[r7]=this[r7]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=h0(a);r[s]||(Uwe(i,a),r[s]=!0)}return ut.isArray(t)?t.forEach(o):o(t),this}}Sk.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ut.reduceDescriptors(Sk.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ut.freezeMethods(Sk);const sc=Sk;function MC(e,t){const n=this||jD,r=t||n,i=sc.from(r.headers);let o=r.data;return ut.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function dG(e){return!!(e&&e.__CANCEL__)}function U1(e,t,n){Zn.call(this,e??"canceled",Zn.ERR_CANCELED,t,n),this.name="CanceledError"}ut.inherits(U1,Zn,{__CANCEL__:!0});function jwe(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Zn("Request failed with status code "+n.status,[Zn.ERR_BAD_REQUEST,Zn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const zwe=pu.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];ut.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),ut.isString(r)&&a.push("path="+r),ut.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Vwe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Hwe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function fG(e,t){return e&&!Vwe(t)?Hwe(e,t):t}const Wwe=pu.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(o){let a=o;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(a){const s=ut.isString(a)?i(a):a;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function Qwe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Ywe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[o];a||(a=u),n[i]=l,r[i]=u;let d=o,p=0;for(;d!==i;)p+=n[d++],d=d%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),u-a{const o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-n,l=r(s),u=o<=a;n=o;const c={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&u?(a-o)/l:void 0,event:i};c[t?"download":"upload"]=!0,e(c)}}const Gwe=typeof XMLHttpRequest<"u",qwe=Gwe&&function(e){return new Promise(function(n,r){let i=e.data;const o=sc.from(e.headers).normalize();let{responseType:a,withXSRFToken:s}=e,l;function u(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let c;if(ut.isFormData(i)){if(pu.hasStandardBrowserEnv||pu.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((c=o.getContentType())!==!1){const[y,...O]=c?c.split(";").map(b=>b.trim()).filter(Boolean):[];o.setContentType([y||"multipart/form-data",...O].join("; "))}}let d=new XMLHttpRequest;if(e.auth){const y=e.auth.username||"",O=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(y+":"+O))}const p=fG(e.baseURL,e.url);d.open(e.method.toUpperCase(),sG(p,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function h(){if(!d)return;const y=sc.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),b={data:!a||a==="text"||a==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:y,config:e,request:d};jwe(function(S){n(S),u()},function(S){r(S),u()},b),d=null}if("onloadend"in d?d.onloadend=h:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(h)},d.onabort=function(){d&&(r(new Zn("Request aborted",Zn.ECONNABORTED,e,d)),d=null)},d.onerror=function(){r(new Zn("Network Error",Zn.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let O=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const b=e.transitional||lG;e.timeoutErrorMessage&&(O=e.timeoutErrorMessage),r(new Zn(O,b.clarifyTimeoutError?Zn.ETIMEDOUT:Zn.ECONNABORTED,e,d)),d=null},pu.hasStandardBrowserEnv&&(s&&ut.isFunction(s)&&(s=s(e)),s||s!==!1&&Wwe(p))){const y=e.xsrfHeaderName&&e.xsrfCookieName&&zwe.read(e.xsrfCookieName);y&&o.set(e.xsrfHeaderName,y)}i===void 0&&o.setContentType(null),"setRequestHeader"in d&&ut.forEach(o.toJSON(),function(O,b){d.setRequestHeader(b,O)}),ut.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),a&&a!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",i7(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",i7(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=y=>{d&&(r(!y||y.type?new U1(null,e,d):y),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const m=Qwe(p);if(m&&pu.protocols.indexOf(m)===-1){r(new Zn("Unsupported protocol "+m+":",Zn.ERR_BAD_REQUEST,e));return}d.send(i||null)})},A_={http:vwe,xhr:qwe};ut.forEach(A_,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const o7=e=>`- ${e}`,Zwe=e=>ut.isFunction(e)||e===null||e===!1,pG={getAdapter:e=>{e=ut.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?o.length>1?`since : -`+o.map(o7).join(` -`):" "+o7(o[0]):"as no adapter specified";throw new Zn("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:A_};function $C(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new U1(null,e)}function a7(e){return $C(e),e.headers=sc.from(e.headers),e.data=MC.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),pG.getAdapter(e.adapter||jD.adapter)(e).then(function(r){return $C(e),r.data=MC.call(e,e.transformResponse,r),r.headers=sc.from(r.headers),r},function(r){return dG(r)||($C(e),r&&r.response&&(r.response.data=MC.call(e,e.transformResponse,r.response),r.response.headers=sc.from(r.response.headers))),Promise.reject(r)})}const s7=e=>e instanceof sc?e.toJSON():e;function zm(e,t){t=t||{};const n={};function r(u,c,d){return ut.isPlainObject(u)&&ut.isPlainObject(c)?ut.merge.call({caseless:d},u,c):ut.isPlainObject(c)?ut.merge({},c):ut.isArray(c)?c.slice():c}function i(u,c,d){if(ut.isUndefined(c)){if(!ut.isUndefined(u))return r(void 0,u,d)}else return r(u,c,d)}function o(u,c){if(!ut.isUndefined(c))return r(void 0,c)}function a(u,c){if(ut.isUndefined(c)){if(!ut.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function s(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(u,c)=>i(s7(u),s7(c),!0)};return ut.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=l[c]||i,p=d(e[c],t[c],c);ut.isUndefined(p)&&d!==s||(n[c]=p)}),n}const hG="1.6.5",zD={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{zD[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const l7={};zD.transitional=function(t,n,r){function i(o,a){return"[Axios v"+hG+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,s)=>{if(t===!1)throw new Zn(i(a," has been removed"+(n?" in "+n:"")),Zn.ERR_DEPRECATED);return n&&!l7[a]&&(l7[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,s):!0}};function Xwe(e,t,n){if(typeof e!="object")throw new Zn("options must be an object",Zn.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const s=e[o],l=s===void 0||a(s,o,e);if(l!==!0)throw new Zn("option "+o+" must be "+l,Zn.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Zn("Unknown option "+o,Zn.ERR_BAD_OPTION)}}const __={assertOptions:Xwe,validators:zD},$c=__.validators;class ZS{constructor(t){this.defaults=t,this.interceptors={request:new n7,response:new n7}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=zm(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&__.assertOptions(r,{silentJSONParsing:$c.transitional($c.boolean),forcedJSONParsing:$c.transitional($c.boolean),clarifyTimeoutError:$c.transitional($c.boolean)},!1),i!=null&&(ut.isFunction(i)?n.paramsSerializer={serialize:i}:__.assertOptions(i,{encode:$c.function,serialize:$c.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&ut.merge(o.common,o[n.method]);o&&ut.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),n.headers=sc.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(l=l&&y.synchronous,s.unshift(y.fulfilled,y.rejected))});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let c,d=0,p;if(!l){const m=[a7.bind(this),void 0];for(m.unshift.apply(m,s),m.push.apply(m,u),p=m.length,c=Promise.resolve(n);d{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,s){r.reason||(r.reason=new U1(o,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new VD(function(i){t=i}),cancel:t}}}const Kwe=VD;function Jwe(e){return function(n){return e.apply(null,n)}}function eke(e){return ut.isObject(e)&&e.isAxiosError===!0}const R_={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(R_).forEach(([e,t])=>{R_[t]=e});const tke=R_;function mG(e){const t=new xE(e),n=qY(xE.prototype.request,t);return ut.extend(n,xE.prototype,t,{allOwnKeys:!0}),ut.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return mG(zm(e,i))},n}const cr=mG(jD);cr.Axios=xE;cr.CanceledError=U1;cr.CancelToken=Kwe;cr.isCancel=dG;cr.VERSION=hG;cr.toFormData=Ek;cr.AxiosError=Zn;cr.Cancel=cr.CanceledError;cr.all=function(t){return Promise.all(t)};cr.spread=Jwe;cr.isAxiosError=eke;cr.mergeConfig=zm;cr.AxiosHeaders=sc;cr.formToJSON=e=>cG(ut.isHTMLForm(e)?new FormData(e):e);cr.getAdapter=pG.getAdapter;cr.HttpStatusCode=tke;cr.default=cr;var HD={},gG={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})(gG);var $o=gG.exports,FC={};const nke=Xie(yde);var u7;function Fo(){return u7||(u7=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=nke}(FC)),FC}var rke=$o;Object.defineProperty(HD,"__esModule",{value:!0});var bG=HD.default=void 0,ike=rke(Fo()),oke=M;bG=HD.default=(0,ike.default)((0,oke.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 WD={},ake=$o;Object.defineProperty(WD,"__esModule",{value:!0});var yG=WD.default=void 0,ske=ake(Fo()),lke=M;yG=WD.default=(0,ske.default)((0,lke.jsx)("path",{d:"M3 15h8v-2H3zm0 4h8v-2H3zm0-8h8V9H3zm0-6v2h8V5zm10 0h8v14h-8z"}),"VerticalSplit");var QD={},uke=$o;Object.defineProperty(QD,"__esModule",{value:!0});var YD=QD.default=void 0,cke=uke(Fo()),dke=M;YD=QD.default=(0,cke.default)((0,dke.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility");var GD={},fke=$o;Object.defineProperty(GD,"__esModule",{value:!0});var Tk=GD.default=void 0,pke=fke(Fo()),hke=M;Tk=GD.default=(0,pke.default)((0,hke.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");const mke={mode:"both",doc:null,client:null},OG=bk({name:"editor",initialState:mke,reducers:{setMode:(e,t)=>{e.mode=t.payload},setDoc:(e,t)=>{e.doc=t.payload},setClient:(e,t)=>{e.client=t.payload}}}),{setMode:gke,setDoc:c7,setClient:d7}=OG.actions,wk=e=>e.editor,bke=OG.reducer;var qD={},yke=$o;Object.defineProperty(qD,"__esModule",{value:!0});var vG=qD.default=void 0,Oke=yke(Fo()),vke=M;vG=qD.default=(0,Oke.default)((0,vke.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 ZD={},Eke=$o;Object.defineProperty(ZD,"__esModule",{value:!0});var EG=ZD.default=void 0,Ske=Eke(Fo()),Tke=M;EG=ZD.default=(0,Ske.default)((0,Tke.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 XD(){const e=pg("(prefers-color-scheme: dark)"),t=wc(GY);return N.useMemo(()=>{const r=e?"dark":"light";return t.theme==="default"?r:t.theme},[t.theme,e])}function SG(){const e=hg(),t=XD(),n=()=>{e(FTe(t=="light"?"dark":"light"))};return M.jsx(Ia,{onClick:n,color:"inherit",children:t==="light"?M.jsx(EG,{}):M.jsx(vG,{})})}function wke(){return Math.random().toString(36).substring(7)}function kke(){const e=hg(),t=wc(wk),n=gg(),r=o=>{e(gke(o))},i=()=>{n(`/${wke()}`)};return M.jsx(Sfe,{position:"static",sx:{zIndex:100},children:M.jsx(ove,{children:M.jsxs(ho,{width:"100%",direction:"row",justifyContent:"space-between",children:[M.jsxs(ho,{direction:"row",spacing:1,children:[M.jsx(Ra,{children:M.jsxs(eEe,{value:t.mode,exclusive:!0,onChange:(o,a)=>r(a),size:"small",children:[M.jsx(CC,{value:"edit","aria-label":"edit",children:M.jsx(pv,{title:"Edit Mode",children:M.jsx(bG,{})})}),M.jsx(CC,{value:"both","aria-label":"both",children:M.jsx(pv,{title:"Both Mode",children:M.jsx(yG,{})})}),M.jsx(CC,{value:"read","aria-label":"read",children:M.jsx(pv,{title:"Read Mode",children:M.jsx(YD,{})})})]})}),M.jsx(pv,{title:"Create New Note",children:M.jsx(Ia,{color:"inherit",onClick:i,children:M.jsx(Tk,{})})})]}),M.jsx(SG,{})]})})})}function xke(){return M.jsxs(xa,{sx:{flexGrow:1},height:"100vh",children:[M.jsx(kke,{}),M.jsx(ID,{})]})}class rr{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]=Vm(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),uu.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]=Vm(this,t,n);let r=[];return this.decompose(t,n,r,0),uu.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 yb(this),o=new yb(t);for(let a=n,s=n;;){if(i.next(a),o.next(a),a=0,i.lineBreak!=o.lineBreak||i.done!=o.done||i.value!=o.value)return!1;if(s+=i.value.length,i.done||s>=r)return!0}}iter(t=1){return new yb(this,t)}iterRange(t,n=this.length){return new TG(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 wG(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]?rr.empty:t.length<=32?new pi(t):uu.from(pi.split(t,[]))}}class pi extends rr{constructor(t,n=Cke(t)){super(),this.text=t,this.length=n}get lines(){return this.text.length}get children(){return null}lineInner(t,n,r,i){for(let o=0;;o++){let a=this.text[o],s=i+a.length;if((n?r:s)>=t)return new Ake(i,s,r,a);i=s+1,r++}}decompose(t,n,r,i){let o=t<=0&&n>=this.length?this:new pi(f7(this.text,t,n),Math.min(n,this.length)-Math.max(0,t));if(i&1){let a=r.pop(),s=CE(o.text,a.text.slice(),0,o.length);if(s.length<=32)r.push(new pi(s,a.length+o.length));else{let l=s.length>>1;r.push(new pi(s.slice(0,l)),new pi(s.slice(l)))}}else r.push(o)}replace(t,n,r){if(!(r instanceof pi))return super.replace(t,n,r);[t,n]=Vm(this,t,n);let i=CE(this.text,CE(r.text,f7(this.text,0,t)),n),o=this.length+r.length-(n-t);return i.length<=32?new pi(i,o):uu.from(pi.split(i,[]),o)}sliceString(t,n=this.length,r=` -`){[t,n]=Vm(this,t,n);let i="";for(let o=0,a=0;o<=n&&at&&a&&(i+=r),to&&(i+=s.slice(Math.max(0,t-o),n-o)),o=l+1}return i}flatten(t){for(let n of this.text)t.push(n)}scanIdentical(){return 0}static split(t,n){let r=[],i=-1;for(let o of t)r.push(o),i+=o.length+1,r.length==32&&(n.push(new pi(r,i)),r=[],i=-1);return i>-1&&n.push(new pi(r,i)),n}}class uu extends rr{constructor(t,n){super(),this.children=t,this.length=n,this.lines=0;for(let r of t)this.lines+=r.lines}lineInner(t,n,r,i){for(let o=0;;o++){let a=this.children[o],s=i+a.length,l=r+a.lines-1;if((n?l:s)>=t)return a.lineInner(t,n,r,i);i=s+1,r=l+1}}decompose(t,n,r,i){for(let o=0,a=0;a<=n&&o=a){let u=i&((a<=t?1:0)|(l>=n?2:0));a>=t&&l<=n&&!u?r.push(s):s.decompose(t-a,n-a,r,u)}a=l+1}}replace(t,n,r){if([t,n]=Vm(this,t,n),r.lines=o&&n<=s){let l=a.replace(t-o,n-o,r),u=this.lines-a.lines+l.lines;if(l.lines>4&&l.lines>u>>6){let c=this.children.slice();return c[i]=l,new uu(c,this.length-(n-t)+r.length)}return super.replace(o,s,l)}o=s+1}return super.replace(t,n,r)}sliceString(t,n=this.length,r=` -`){[t,n]=Vm(this,t,n);let i="";for(let o=0,a=0;ot&&o&&(i+=r),ta&&(i+=s.sliceString(t-a,n-a,r)),a=l+1}return i}flatten(t){for(let n of this.children)n.flatten(t)}scanIdentical(t,n){if(!(t instanceof uu))return 0;let r=0,[i,o,a,s]=n>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;i+=n,o+=n){if(i==a||o==s)return r;let l=this.children[i],u=t.children[o];if(l!=u)return r+l.scanIdentical(u,n);r+=l.length+1}}static from(t,n=t.reduce((r,i)=>r+i.length+1,-1)){let r=0;for(let h of t)r+=h.lines;if(r<32){let h=[];for(let m of t)m.flatten(h);return new pi(h,n)}let i=Math.max(32,r>>5),o=i<<1,a=i>>1,s=[],l=0,u=-1,c=[];function d(h){let m;if(h.lines>o&&h instanceof uu)for(let y of h.children)d(y);else h.lines>a&&(l>a||!l)?(p(),s.push(h)):h instanceof pi&&l&&(m=c[c.length-1])instanceof pi&&h.lines+m.lines<=32?(l+=h.lines,u+=h.length+1,c[c.length-1]=new pi(m.text.concat(h.text),m.length+1+h.length)):(l+h.lines>i&&p(),l+=h.lines,u+=h.length+1,c.push(h))}function p(){l!=0&&(s.push(c.length==1?c[0]:uu.from(c,u)),u=-1,l=c.length=0)}for(let h of t)d(h);return p(),s.length==1?s[0]:new uu(s,n)}}rr.empty=new pi([""],0);function Cke(e){let t=-1;for(let n of e)t+=n.length+1;return t}function CE(e,t,n=0,r=1e9){for(let i=0,o=0,a=!0;o=n&&(l>r&&(s=s.slice(0,r-i)),i0?1:(t instanceof pi?t.text.length:t.children.length)<<1]}nextInner(t,n){for(this.done=this.lineBreak=!1;;){let r=this.nodes.length-1,i=this.nodes[r],o=this.offsets[r],a=o>>1,s=i instanceof pi?i.text.length:i.children.length;if(a==(n>0?s:0)){if(r==0)return this.done=!0,this.value="",this;n>0&&this.offsets[r-1]++,this.nodes.pop(),this.offsets.pop()}else if((o&1)==(n>0?0:1)){if(this.offsets[r]+=n,t==0)return this.lineBreak=!0,this.value=` -`,this;t--}else if(i instanceof pi){let l=i.text[a+(n<0?-1:0)];if(this.offsets[r]+=n,l.length>Math.max(0,t))return this.value=t==0?l:n>0?l.slice(t):l.slice(0,l.length-t),this;t-=l.length}else{let l=i.children[a+(n<0?-1:0)];t>l.length?(t-=l.length,this.offsets[r]+=n):(n<0&&this.offsets[r]--,this.nodes.push(l),this.offsets.push(n>0?1:(l instanceof pi?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 TG{constructor(t,n,r){this.value="",this.done=!1,this.cursor=new yb(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 wG{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"&&(rr.prototype[Symbol.iterator]=function(){return this.iter()},yb.prototype[Symbol.iterator]=TG.prototype[Symbol.iterator]=wG.prototype[Symbol.iterator]=function(){return this});let Ake=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 Vm(e,t,n){return t=Math.max(0,Math.min(e.length,t)),[t,Math.max(t,Math.min(e.length,n))]}let Xh="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 Xh[t-1]<=e;return!1}function p7(e){return e>=127462&&e<=127487}const h7=8205;function mo(e,t,n=!0,r=!0){return(n?kG:Rke)(e,t,r)}function kG(e,t,n){if(t==e.length)return t;t&&xG(e.charCodeAt(t))&&CG(e.charCodeAt(t-1))&&t--;let r=uo(e,t);for(t+=$s(r);t=0&&p7(uo(e,a));)o++,a-=2;if(o%2==0)break;t+=2}else break}return t}function Rke(e,t,n){for(;t>0;){let r=kG(e,t-2,n);if(r=56320&&e<57344}function CG(e){return e>=55296&&e<56320}function uo(e,t){let n=e.charCodeAt(t);if(!CG(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return xG(r)?(n-55296<<10)+(r-56320)+65536:n}function KD(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}function $s(e){return e<65536?1:2}const I_=/\r\n?|\n/;var fo=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(fo||(fo={}));class wu{constructor(t){this.sections=t}get length(){let t=0;for(let n=0;nt)return o+(t-i);o+=s}else{if(r!=fo.Simple&&u>=t&&(r==fo.TrackDel&&it||r==fo.TrackBefore&&it))return null;if(u>t||u==t&&n<0&&!s)return t==i||n<0?o:o+l;o+=l}i=u}if(t>i)throw new RangeError(`Position ${t} is out of range for changeset of length ${i}`);return o}touchesRange(t,n=t){for(let r=0,i=0;r=0&&i<=n&&s>=t)return in?"cover":!0;i=s}return!1}toString(){let t="";for(let n=0;n=0?":"+i:"")}return t}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(n=>typeof n!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new wu(t)}static create(t){return new wu(t)}}class Ii extends wu{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 N_(this,(n,r,i,o,a)=>t=t.replace(i,i+(r-n),a),!1),t}mapDesc(t,n=!1){return D_(this,t,n,!0)}invert(t){let n=this.sections.slice(),r=[];for(let i=0,o=0;i=0){n[i]=s,n[i+1]=a;let l=i>>1;for(;r.length0&&cd(r,n,o.text),o.forward(c),s+=c}let u=t[a++];for(;s>1].toJSON()))}return t}static of(t,n,r){let i=[],o=[],a=0,s=null;function l(c=!1){if(!c&&!i.length)return;ap||d<0||p>n)throw new RangeError(`Invalid change range ${d} to ${p} (in doc of length ${n})`);let m=h?typeof h=="string"?rr.of(h.split(r||I_)):h:rr.empty,y=m.length;if(d==p&&y==0)return;da&&Ao(i,d-a,-1),Ao(i,p-d,y),cd(o,i,m),a=p}}return u(t),l(!s),s}static empty(t){return new Ii(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw new RangeError("Invalid JSON representation of ChangeSet");let n=[],r=[];for(let i=0;is&&typeof a!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(o.length==1)n.push(o[0],0);else{for(;r.length=0&&n<=0&&n==e[i+1]?e[i]+=t:t==0&&e[i]==0?e[i+1]+=n:r?(e[i]+=t,e[i+1]+=n):e.push(t,n)}function cd(e,t,n){if(n.length==0)return;let r=t.length-2>>1;if(r>1])),!(n||a==e.sections.length||e.sections[a+1]<0);)s=e.sections[a++],l=e.sections[a++];t(i,u,o,c,d),i=u,o=c}}}function D_(e,t,n,r=!1){let i=[],o=r?[]:null,a=new vy(e),s=new vy(t);for(let l=-1;;)if(a.ins==-1&&s.ins==-1){let u=Math.min(a.len,s.len);Ao(i,u,-1),a.forward(u),s.forward(u)}else if(s.ins>=0&&(a.ins<0||l==a.i||a.off==0&&(s.len=0&&l=0){let u=0,c=a.len;for(;c;)if(s.ins==-1){let d=Math.min(c,s.len);u+=d,c-=d,s.forward(d)}else if(s.ins==0&&s.lenl||a.ins>=0&&a.len>l)&&(s||r.length>u),o.forward2(l),a.forward(l)}}}}class vy{constructor(t){this.set=t,this.i=0,this.next()}next(){let{sections:t}=this.set;this.i>1;return n>=t.length?rr.empty:t[n]}textBit(t){let{inserted:n}=this.set,r=this.i-2>>1;return r>=n.length&&!t?rr.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 If{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 If(r,i,this.flags)}extend(t,n=t){if(t<=this.anchor&&n>=this.anchor)return Je.range(t,n);let r=Math.abs(t-this.anchor)>Math.abs(n-this.anchor)?t:n;return Je.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 Je.range(t.anchor,t.head)}static create(t,n,r){return new If(t,n,r)}}class Je{constructor(t,n){this.ranges=t,this.mainIndex=n}map(t,n=-1){return t.empty?this:Je.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 Je(t.ranges.map(n=>If.fromJSON(n)),t.main)}static single(t,n=t){return new Je([Je.range(t,n)],0)}static create(t,n=0){if(t.length==0)throw new RangeError("A selection needs at least one range");for(let r=0,i=0;it?8:0)|o)}static normalized(t,n=0){let r=t[n];t.sort((i,o)=>i.from-o.from),n=t.indexOf(r);for(let i=1;io.head?Je.range(l,s):Je.range(s,l))}}return new Je(t,n)}}function _G(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let JD=0;class Gt{constructor(t,n,r,i,o){this.combine=t,this.compareInput=n,this.compare=r,this.isStatic=i,this.id=JD++,this.default=t([]),this.extensions=typeof o=="function"?o(this):o}get reader(){return this}static define(t={}){return new Gt(t.combine||(n=>n),t.compareInput||((n,r)=>n===r),t.compare||(t.combine?(n,r)=>n===r:eP),!!t.static,t.enables)}of(t){return new AE([],this,0,t)}compute(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new AE(t,this,1,n)}computeN(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new AE(t,this,2,n)}from(t,n){return n||(n=r=>r),this.compute([t],r=>n(r.field(t)))}}function eP(e,t){return e==t||e.length==t.length&&e.every((n,r)=>n===t[r])}class AE{constructor(t,n,r,i){this.dependencies=t,this.facet=n,this.type=r,this.value=i,this.id=JD++}dynamicSlot(t){var n;let r=this.value,i=this.facet.compareInput,o=this.id,a=t[o]>>1,s=this.type==2,l=!1,u=!1,c=[];for(let d of this.dependencies)d=="doc"?l=!0:d=="selection"?u=!0:((n=t[d.id])!==null&&n!==void 0?n:1)&1||c.push(t[d.id]);return{create(d){return d.values[a]=r(d),1},update(d,p){if(l&&p.docChanged||u&&(p.docChanged||p.selection)||P_(d,c)){let h=r(d);if(s?!m7(h,d.values[a],i):!i(h,d.values[a]))return d.values[a]=h,1}return 0},reconfigure:(d,p)=>{let h,m=p.config.address[o];if(m!=null){let y=KS(p,m);if(this.dependencies.every(O=>O instanceof Gt?p.facet(O)===d.facet(O):O instanceof Ki?p.field(O,!1)==d.field(O,!1):!0)||(s?m7(h=r(d),y,i):i(h=r(d),y)))return d.values[a]=y,0}else h=r(d);return d.values[a]=h,1}}}}function m7(e,t,n){if(e.length!=t.length)return!1;for(let r=0;re[l.id]),i=n.map(l=>l.type),o=r.filter(l=>!(l&1)),a=e[t.id]>>1;function s(l){let u=[];for(let c=0;cr===i),t);return t.provide&&(n.provides=t.provide(n)),n}create(t){let n=t.facet(g7).find(r=>r.field==this);return((n==null?void 0:n.create)||this.createF)(t)}slot(t){let n=t[this.id]>>1;return{create:r=>(r.values[n]=this.create(r),1),update:(r,i)=>{let o=r.values[n],a=this.updateF(o,i);return this.compareF(o,a)?0:(r.values[n]=a,1)},reconfigure:(r,i)=>i.config.address[this.id]!=null?(r.values[n]=i.field(this),0):(r.values[n]=this.create(r),1)}}init(t){return[this,g7.of({field:this,create:t})]}get extension(){return this}}const vf={lowest:4,low:3,default:2,high:1,highest:0};function m0(e){return t=>new RG(t,e)}const Zd={highest:m0(vf.highest),high:m0(vf.high),default:m0(vf.default),low:m0(vf.low),lowest:m0(vf.lowest)};class RG{constructor(t,n){this.inner=t,this.prec=n}}class kk{of(t){return new L_(this,t)}reconfigure(t){return kk.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class L_{constructor(t,n){this.compartment=t,this.inner=n}}class XS{constructor(t,n,r,i,o,a){for(this.base=t,this.compartments=n,this.dynamicSlots=r,this.address=i,this.staticValues=o,this.facets=a,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(t,n,r){let i=[],o=Object.create(null),a=new Map;for(let p of Nke(t,n,a))p instanceof Ki?i.push(p):(o[p.facet.id]||(o[p.facet.id]=[])).push(p);let s=Object.create(null),l=[],u=[];for(let p of i)s[p.id]=u.length<<1,u.push(h=>p.slot(h));let c=r==null?void 0:r.config.facets;for(let p in o){let h=o[p],m=h[0].facet,y=c&&c[p]||[];if(h.every(O=>O.type==0))if(s[m.id]=l.length<<1|1,eP(y,h))l.push(r.facet(m));else{let O=m.combine(h.map(b=>b.value));l.push(r&&m.compare(O,r.facet(m))?r.facet(m):O)}else{for(let O of h)O.type==0?(s[O.id]=l.length<<1|1,l.push(O.value)):(s[O.id]=u.length<<1,u.push(b=>O.dynamicSlot(b)));s[m.id]=u.length<<1,u.push(O=>Ike(O,m,h))}}let d=u.map(p=>p(s));return new XS(t,a,d,s,l,o)}}function Nke(e,t,n){let r=[[],[],[],[],[]],i=new Map;function o(a,s){let l=i.get(a);if(l!=null){if(l<=s)return;let u=r[l].indexOf(a);u>-1&&r[l].splice(u,1),a instanceof L_&&n.delete(a.compartment)}if(i.set(a,s),Array.isArray(a))for(let u of a)o(u,s);else if(a instanceof L_){if(n.has(a.compartment))throw new RangeError("Duplicate use of compartment in extensions");let u=t.get(a.compartment)||a.inner;n.set(a.compartment,u),o(u,s)}else if(a instanceof RG)o(a.inner,a.prec);else if(a instanceof Ki)r[s].push(a),a.provides&&o(a.provides,s);else if(a instanceof AE)r[s].push(a),a.facet.extensions&&o(a.facet.extensions,vf.default);else{let u=a.extension;if(!u)throw new Error(`Unrecognized extension value in extension set (${a}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);o(u,s)}}return o(e,vf.default),r.reduce((a,s)=>a.concat(s))}function Ob(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 KS(e,t){return t&1?e.config.staticValues[t>>1]:e.values[t>>1]}const IG=Gt.define(),M_=Gt.define({combine:e=>e.some(t=>t),static:!0}),NG=Gt.define({combine:e=>e.length?e[0]:void 0,static:!0}),DG=Gt.define(),PG=Gt.define(),LG=Gt.define(),MG=Gt.define({combine:e=>e.length?e[0]:!1});class Ll{constructor(t,n){this.type=t,this.value=n}static define(){return new Dke}}class Dke{of(t){return new Ll(this,t)}}class Pke{constructor(t){this.map=t}of(t){return new xn(this,t)}}class xn{constructor(t,n){this.type=t,this.value=n}map(t){let n=this.type.map(this.value,t);return n===void 0?void 0:n==this.value?this:new xn(this.type,n)}is(t){return this.type==t}static define(t={}){return new Pke(t.map||(n=>n))}static mapEffects(t,n){if(!t.length)return t;let r=[];for(let i of t){let o=i.map(n);o&&r.push(o)}return r}}xn.reconfigure=xn.define();xn.appendConfig=xn.define();class Si{constructor(t,n,r,i,o,a){this.startState=t,this.changes=n,this.selection=r,this.effects=i,this.annotations=o,this.scrollIntoView=a,this._doc=null,this._state=null,r&&_G(r,n.newLength),o.some(s=>s.type==Si.time)||(this.annotations=o.concat(Si.time.of(Date.now())))}static create(t,n,r,i,o,a){return new Si(t,n,r,i,o,a)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(t){for(let n of this.annotations)if(n.type==t)return n.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let n=this.annotation(Si.userEvent);return!!(n&&(n==t||n.length>t.length&&n.slice(0,t.length)==t&&n[t.length]=="."))}}Si.time=Ll.define();Si.userEvent=Ll.define();Si.addToHistory=Ll.define();Si.remote=Ll.define();function Lke(e,t){let n=[];for(let r=0,i=0;;){let o,a;if(r=e[r]))o=e[r++],a=e[r++];else if(i=0;i--){let o=r[i](e);o instanceof Si?e=o:Array.isArray(o)&&o.length==1&&o[0]instanceof Si?e=o[0]:e=FG(t,Kh(o),!1)}return e}function $ke(e){let t=e.startState,n=t.facet(LG),r=e;for(let i=n.length-1;i>=0;i--){let o=n[i](e);o&&Object.keys(o).length&&(r=$G(r,$_(t,o,e.changes.newLength),!0))}return r==e?e:Si.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}const Fke=[];function Kh(e){return e==null?Fke:Array.isArray(e)?e:[e]}var Vr=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(Vr||(Vr={}));const Bke=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let F_;try{F_=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function Uke(e){if(F_)return F_.test(e);for(let t=0;t"€"&&(n.toUpperCase()!=n.toLowerCase()||Bke.test(n)))return!0}return!1}function jke(e){return t=>{if(!/\S/.test(t))return Vr.Space;if(Uke(t))return Vr.Word;for(let n=0;n-1)return Vr.Word;return Vr.Other}}class qn{constructor(t,n,r,i,o,a){this.config=t,this.doc=n,this.selection=r,this.values=i,this.status=t.statusTemplate.slice(),this.computeSlot=o,a&&(a._state=this);for(let s=0;si.set(u,l)),n=null),i.set(s.value.compartment,s.value.extension)):s.is(xn.reconfigure)?(n=null,r=s.value):s.is(xn.appendConfig)&&(n=null,r=Kh(r).concat(s.value));let o;n?o=t.startState.values.slice():(n=XS.resolve(r,i,this),o=new qn(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(l,u)=>u.reconfigure(l,this),null).values);let a=t.startState.facet(M_)?t.newSelection:t.newSelection.asSingle();new qn(n,t.newDoc,a,o,(s,l)=>l.update(s,t),t)}replaceSelection(t){return typeof t=="string"&&(t=this.toText(t)),this.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:t},range:Je.cursor(n.from+t.length)}))}changeByRange(t){let n=this.selection,r=t(n.ranges[0]),i=this.changes(r.changes),o=[r.range],a=Kh(r.effects);for(let s=1;sa.spec.fromJSON(s,l)))}}return qn.create({doc:t.doc,selection:Je.fromJSON(t.selection),extensions:n.extensions?i.concat([n.extensions]):i})}static create(t={}){let n=XS.resolve(t.extensions||[],new Map),r=t.doc instanceof rr?t.doc:rr.of((t.doc||"").split(n.staticFacet(qn.lineSeparator)||I_)),i=t.selection?t.selection instanceof Je?t.selection:Je.single(t.selection.anchor,t.selection.head):Je.single(0);return _G(i,r.length),n.staticFacet(M_)||(i=i.asSingle()),new qn(n,r,i,n.dynamicSlots.map(()=>null),(o,a)=>a.create(o),null)}get tabSize(){return this.facet(qn.tabSize)}get lineBreak(){return this.facet(qn.lineSeparator)||` -`}get readOnly(){return this.facet(MG)}phrase(t,...n){for(let r of this.facet(qn.phrases))if(Object.prototype.hasOwnProperty.call(r,t)){t=r[t];break}return n.length&&(t=t.replace(/\$(\$|\d*)/g,(r,i)=>{if(i=="$")return"$";let o=+(i||1);return!o||o>n.length?r:n[o-1]})),t}languageDataAt(t,n,r=-1){let i=[];for(let o of this.facet(IG))for(let a of o(this,n,r))Object.prototype.hasOwnProperty.call(a,t)&&i.push(a[t]);return i}charCategorizer(t){return jke(this.languageDataAt("wordChars",t).join(""))}wordAt(t){let{text:n,from:r,length:i}=this.doc.lineAt(t),o=this.charCategorizer(t),a=t-r,s=t-r;for(;a>0;){let l=mo(n,a,!1);if(o(n.slice(l,a))!=Vr.Word)break;a=l}for(;se.length?e[0]:4});qn.lineSeparator=NG;qn.readOnly=MG;qn.phrases=Gt.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])}});qn.languageData=IG;qn.changeFilter=DG;qn.transactionFilter=PG;qn.transactionExtender=LG;kk.reconfigure=xn.define();function Iu(e,t,n={}){let r={};for(let i of e)for(let o of Object.keys(i)){let a=i[o],s=r[o];if(s===void 0)r[o]=a;else if(!(s===a||a===void 0))if(Object.hasOwnProperty.call(n,o))r[o]=n[o](s,a);else throw new Error("Config merge conflict for field "+o)}for(let i in t)r[i]===void 0&&(r[i]=t[i]);return r}class up{eq(t){return this==t}range(t,n=t){return B_.create(t,n,this)}}up.prototype.startSide=up.prototype.endSide=0;up.prototype.point=!1;up.prototype.mapMode=fo.TrackDel;let B_=class BG{constructor(t,n,r){this.from=t,this.to=n,this.value=r}static create(t,n,r){return new BG(t,n,r)}};function U_(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class tP{constructor(t,n,r,i){this.from=t,this.to=n,this.value=r,this.maxPoint=i}get length(){return this.to[this.to.length-1]}findIndex(t,n,r,i=0){let o=r?this.to:this.from;for(let a=i,s=o.length;;){if(a==s)return a;let l=a+s>>1,u=o[l]-t||(r?this.value[l].endSide:this.value[l].startSide)-n;if(l==a)return u>=0?a:s;u>=0?s=l:a=l+1}}between(t,n,r,i){for(let o=this.findIndex(n,-1e9,!0),a=this.findIndex(r,1e9,!1,o);oh||p==h&&u.startSide>0&&u.endSide<=0)continue;(h-p||u.endSide-u.startSide)<0||(a<0&&(a=p),u.point&&(s=Math.max(s,h-p)),r.push(u),i.push(p-a),o.push(h-a))}return{mapped:r.length?new tP(i,o,r,s):null,pos:a}}}class Xn{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 Xn(t,n,r,i)}get length(){let t=this.chunk.length-1;return t<0?0:Math.max(this.chunkEnd(t),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let t=this.nextLayer.size;for(let n of this.chunk)t+=n.value.length;return t}chunkEnd(t){return this.chunkPos[t]+this.chunk[t].length}update(t){let{add:n=[],sort:r=!1,filterFrom:i=0,filterTo:o=this.length}=t,a=t.filter;if(n.length==0&&!a)return this;if(r&&(n=n.slice().sort(U_)),this.isEmpty)return n.length?Xn.of(n):this;let s=new UG(this,null,-1).goto(0),l=0,u=[],c=new Md;for(;s.value||l=0){let d=n[l++];c.addInner(d.from,d.to,d.value)||u.push(d)}else s.rangeIndex==1&&s.chunkIndexthis.chunkEnd(s.chunkIndex)||os.to||o=o&&t<=o+a.length&&a.between(o,t-o,n-o,r)===!1)return}this.nextLayer.between(t,n,r)}}iter(t=0){return Ey.from([this]).goto(t)}get isEmpty(){return this.nextLayer==this}static iter(t,n=0){return Ey.from(t).goto(n)}static compare(t,n,r,i,o=-1){let a=t.filter(d=>d.maxPoint>0||!d.isEmpty&&d.maxPoint>=o),s=n.filter(d=>d.maxPoint>0||!d.isEmpty&&d.maxPoint>=o),l=b7(a,s,r),u=new g0(a,l,o),c=new g0(s,l,o);r.iterGaps((d,p,h)=>y7(u,d,c,p,h,i)),r.empty&&r.length==0&&y7(u,0,c,0,0,i)}static eq(t,n,r=0,i){i==null&&(i=999999999);let o=t.filter(c=>!c.isEmpty&&n.indexOf(c)<0),a=n.filter(c=>!c.isEmpty&&t.indexOf(c)<0);if(o.length!=a.length)return!1;if(!o.length)return!0;let s=b7(o,a),l=new g0(o,s,0).goto(r),u=new g0(a,s,0).goto(r);for(;;){if(l.to!=u.to||!j_(l.active,u.active)||l.point&&(!u.point||!l.point.eq(u.point)))return!1;if(l.to>i)return!0;l.next(),u.next()}}static spans(t,n,r,i,o=-1){let a=new g0(t,null,o).goto(n),s=n,l=a.openStart;for(;;){let u=Math.min(a.to,r);if(a.point){let c=a.activeForPoint(a.to),d=a.pointFroms&&(i.span(s,u,a.active,l),l=a.openEnd(u));if(a.to>r)return l+(a.point&&a.to>r?1:0);s=a.to,a.next()}}static of(t,n=!1){let r=new Md;for(let i of t instanceof B_?[t]:n?zke(t):t)r.add(i.from,i.to,i.value);return r.finish()}static join(t){if(!t.length)return Xn.empty;let n=t[t.length-1];for(let r=t.length-2;r>=0;r--)for(let i=t[r];i!=Xn.empty;i=i.nextLayer)n=new Xn(i.chunkPos,i.chunk,n,Math.max(i.maxPoint,n.maxPoint));return n}}Xn.empty=new Xn([],[],null,-1);function zke(e){if(e.length>1)for(let t=e[0],n=1;n0)return e.slice().sort(U_);t=r}return e}Xn.empty.nextLayer=Xn.empty;class Md{finishChunk(t){this.chunks.push(new tP(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 Md)).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(Xn.empty)}finishInner(t){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return t;let n=Xn.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(t):t,this.setMaxPoint);return this.from=null,n}}function b7(e,t,n){let r=new Map;for(let o of e)for(let a=0;a=this.minPoint)break}}setRangeIndex(t){if(t==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=r&&i.push(new UG(a,n,r,o));return i.length==1?i[0]:new Ey(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--)BC(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--)BC(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(),BC(this.heap,0)}}}function BC(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 g0{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=Ey.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){bv(this.active,t),bv(this.activeTo,t),bv(this.activeRank,t),this.minActive=O7(this.active,this.activeTo)}addActive(t){let n=0,{value:r,to:i,rank:o}=this.cursor;for(;n0;)n++;yv(this.active,n,r),yv(this.activeTo,n,i),yv(this.activeRank,n,o),t&&yv(t,n,this.cursor.from),this.minActive=O7(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&&bv(r,i)}else if(this.cursor.value)if(this.cursor.from>t){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let o=this.cursor.value;if(!o.point)this.addActive(r),this.cursor.next();else if(n&&this.cursor.to==this.to&&this.cursor.from=0&&r[i]=0&&!(this.activeRank[r]t||this.activeTo[r]==t&&this.active[r].endSide>=this.point.endSide)&&n.push(this.active[r]);return n.reverse()}openEnd(t){let n=0;for(let r=this.activeTo.length-1;r>=0&&this.activeTo[r]>t;r--)n++;return n}}function y7(e,t,n,r,i,o){e.goto(t),n.goto(r);let a=r+i,s=r,l=r-t;for(;;){let u=e.to+l-n.to||e.endSide-n.endSide,c=u<0?e.to+l:n.to,d=Math.min(c,a);if(e.point||n.point?e.point&&n.point&&(e.point==n.point||e.point.eq(n.point))&&j_(e.activeForPoint(e.to),n.activeForPoint(n.to))||o.comparePoint(s,d,e.point,n.point):d>s&&!j_(e.active,n.active)&&o.compareRange(s,d,e.active,n.active),c>a)break;s=c,u<=0&&e.next(),u>=0&&n.next()}}function j_(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 O7(e,t){let n=-1,r=1e9;for(let i=0;i=t)return i;if(i==e.length)break;o+=e.charCodeAt(i)==9?n-o%n:1,i=mo(e,i)}return r===!0?-1:e.length}const V_="ͼ",v7=typeof Symbol>"u"?"__"+V_:Symbol.for(V_),H_=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),E7=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class $d{constructor(t,n){this.rules=[];let{finish:r}=n||{};function i(a){return/^@/.test(a)?[a]:a.split(/,\s*/)}function o(a,s,l,u){let c=[],d=/^@(\w+)\b/.exec(a[0]),p=d&&d[1]=="keyframes";if(d&&s==null)return l.push(a[0]+";");for(let h in s){let m=s[h];if(/&/.test(h))o(h.split(/,\s*/).map(y=>a.map(O=>y.replace(/&/,O))).reduce((y,O)=>y.concat(O)),m,l);else if(m&&typeof m=="object"){if(!d)throw new RangeError("The value of a property ("+h+") should be a primitive value.");o(i(h),m,c,p)}else m!=null&&c.push(h.replace(/_.*/,"").replace(/[A-Z]/g,y=>"-"+y.toLowerCase())+": "+m+";")}(c.length||p)&&l.push((r&&!d&&!u?a.map(r):a).join(", ")+" {"+c.join(" ")+"}")}for(let a in t)o(i(a),t[a],this.rules)}getRules(){return this.rules.join(` -`)}static newName(){let t=E7[v7]||1;return E7[v7]=t+1,V_+t.toString(36)}static mount(t,n,r){let i=t[H_],o=r&&r.nonce;i?o&&i.setNonce(o):i=new Vke(t,o),i.mount(Array.isArray(n)?n:[n])}}let S7=new Map;class Vke{constructor(t,n){let r=t.ownerDocument||t,i=r.defaultView;if(!t.head&&t.adoptedStyleSheets&&i.CSSStyleSheet){let o=S7.get(r);if(o)return t.adoptedStyleSheets=[o.sheet,...t.adoptedStyleSheets],t[H_]=o;this.sheet=new i.CSSStyleSheet,t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets],S7.set(r,this)}else{this.styleTag=r.createElement("style"),n&&this.styleTag.setAttribute("nonce",n);let o=t.head||t;o.insertBefore(this.styleTag,o.firstChild)}this.modules=[],t[H_]=this}mount(t){let n=this.sheet,r=0,i=0;for(let o=0;o-1&&(this.modules.splice(s,1),i--,s=-1),s==-1){if(this.modules.splice(i++,0,a),n)for(let l=0;l",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Hke=typeof navigator<"u"&&/Mac/.test(navigator.platform),Wke=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var co=0;co<10;co++)Fd[48+co]=Fd[96+co]=String(co);for(var co=1;co<=24;co++)Fd[co+111]="F"+co;for(var co=65;co<=90;co++)Fd[co]=String.fromCharCode(co+32),Sy[co]=String.fromCharCode(co);for(var UC in Fd)Sy.hasOwnProperty(UC)||(Sy[UC]=Fd[UC]);function Qke(e){var t=Hke&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||Wke&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?Sy:Fd)[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 JS(e){let t;return e.nodeType==11?t=e.getSelection?e:e.ownerDocument:t=e,t.getSelection()}function W_(e,t){return t?e==t||e.contains(t.nodeType!=1?t.parentNode:t):!1}function Yke(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function _E(e,t){if(!t.anchorNode)return!1;try{return W_(e,t.anchorNode)}catch{return!1}}function Ty(e){return e.nodeType==3?cp(e,0,e.nodeValue.length).getClientRects():e.nodeType==1?e.getClientRects():[]}function vb(e,t,n,r){return n?T7(e,t,n,r,-1)||T7(e,t,n,r,1):!1}function wy(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t}function T7(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:bc(e))){if(e.nodeName=="DIV")return!1;let o=e.parentNode;if(!o||o.nodeType!=1)return!1;t=wy(e)+(i<0?0:1),e=o}else if(e.nodeType==1){if(e=e.childNodes[t+(i<0?-1:0)],e.nodeType==1&&e.contentEditable=="false")return!1;t=i<0?bc(e):0}else return!1}}function bc(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function nP(e,t){let n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}function Gke(e){return{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}function jG(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 qke(e,t,n,r,i,o,a,s){let l=e.ownerDocument,u=l.defaultView||window;for(let c=e,d=!1;c&&!d;)if(c.nodeType==1){let p,h=c==l.body,m=1,y=1;if(h)p=Gke(u);else{if(/^(fixed|sticky)$/.test(getComputedStyle(c).position)&&(d=!0),c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let v=c.getBoundingClientRect();({scaleX:m,scaleY:y}=jG(c,v)),p={left:v.left,right:v.left+c.clientWidth*m,top:v.top,bottom:v.top+c.clientHeight*y}}let O=0,b=0;if(i=="nearest")t.top0&&t.bottom>p.bottom+b&&(b=t.bottom-p.bottom+b+a)):t.bottom>p.bottom&&(b=t.bottom-p.bottom+a,n<0&&t.top-b0&&t.right>p.right+O&&(O=t.right-p.right+O+o)):t.right>p.right&&(O=t.right-p.right+o,n<0&&t.leftn.clientHeight||n.scrollWidth>n.clientWidth)return n;n=n.assignedSlot||n.parentNode}else if(n.nodeType==11)n=n.host;else break;return null}class Xke{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?bc(n):0),r,Math.min(t.focusOffset,r?bc(r):0))}set(t,n,r,i){this.anchorNode=t,this.anchorOffset=n,this.focusNode=r,this.focusOffset=i}}let Jp=null;function zG(e){if(e.setActive)return e.setActive();if(Jp)return e.focus(Jp);let t=[];for(let n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(Jp==null?{get preventScroll(){return Jp={preventScroll:!0},!0}}:void 0),!Jp){Jp=!1;for(let n=0;nMath.max(1,e.scrollHeight-e.clientHeight-4)}class Ro{constructor(t,n,r=!0){this.node=t,this.offset=n,this.precise=r}static before(t,n){return new Ro(t.parentNode,wy(t),n)}static after(t,n){return new Ro(t.parentNode,wy(t)+1,n)}}const rP=[];class Ir{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(t){let n=this.posAtStart;for(let r of this.children){if(r==t)return n;n+=r.length+r.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(t){return this.posBefore(t)+t.length}sync(t,n){if(this.flags&2){let r=this.dom,i=null,o;for(let a of this.children){if(a.flags&7){if(!a.dom&&(o=i?i.nextSibling:r.firstChild)){let s=Ir.get(o);(!s||!s.parent&&s.canReuseDOM(a))&&a.reuseDOM(o)}a.sync(t,n),a.flags&=-8}if(o=i?i.nextSibling:r.firstChild,n&&!n.written&&n.node==r&&o!=a.dom&&(n.written=!0),a.dom.parentNode==r)for(;o&&o!=a.dom;)o=k7(o);else r.insertBefore(a.dom,o);i=a.dom}for(o=i?i.nextSibling:r.firstChild,o&&n&&n.node==r&&(n.written=!0);o;)o=k7(o)}else if(this.flags&1)for(let r of this.children)r.flags&7&&(r.sync(t,n),r.flags&=-8)}reuseDOM(t){}localPosFromDOM(t,n){let r;if(t==this.dom)r=this.dom.childNodes[n];else{let i=bc(t)==0?0:n==0?-1:1;for(;;){let o=t.parentNode;if(o==this.dom)break;i==0&&o.firstChild!=o.lastChild&&(t==o.firstChild?i=-1:i=1),t=o}i<0?r=t:r=t.nextSibling}if(r==this.dom.firstChild)return 0;for(;r&&!Ir.get(r);)r=r.nextSibling;if(!r)return this.length;for(let i=0,o=0;;i++){let a=this.children[i];if(a.dom==r)return o;o+=a.length+a.breakAfter}}domBoundsAround(t,n,r=0){let i=-1,o=-1,a=-1,s=-1;for(let l=0,u=r,c=r;ln)return d.domBoundsAround(t,n,u);if(p>=t&&i==-1&&(i=l,o=u),u>n&&d.dom.parentNode==this.dom){a=l,s=c;break}c=p,u=p+d.breakAfter}return{from:o,to:s<0?r+this.length:s,startDOM:(i?this.children[i-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:a=0?this.children[a].dom:null}}markDirty(t=!1){this.flags|=2,this.markParentsDirty(t)}markParentsDirty(t){for(let n=this.parent;n;n=n.parent){if(t&&(n.flags|=2),n.flags&1)return;n.flags|=1,t=!1}}setParent(t){this.parent!=t&&(this.parent=t,this.flags&7&&this.markParentsDirty(!0))}setDOM(t){this.dom!=t&&(this.dom&&(this.dom.cmView=null),this.dom=t,t.cmView=this)}get rootView(){for(let t=this;;){let n=t.parent;if(!n)return t;t=n}}replaceChildren(t,n,r=rP){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 QG(e,t,n,r,i,o,a,s,l){let{children:u}=e,c=u.length?u[t]:null,d=o.length?o[o.length-1]:null,p=d?d.breakAfter:a;if(!(t==r&&c&&!a&&!p&&o.length<2&&c.merge(n,i,o.length?d:null,n==0,s,l))){if(r0&&(!a&&o.length&&c.merge(n,c.length,o[0],!1,s,0)?c.breakAfter=o.shift().breakAfter:(n2);var Jt={mac:A7||/Mac/.test(ns.platform),windows:/Win/.test(ns.platform),linux:/Linux|X11/.test(ns.platform),ie:xk,ie_version:GG?Q_.documentMode||6:G_?+G_[1]:Y_?+Y_[1]:0,gecko:x7,gecko_version:x7?+(/Firefox\/(\d+)/.exec(ns.userAgent)||[0,0])[1]:0,chrome:!!jC,chrome_version:jC?+jC[1]:0,ios:A7,android:/Android\b/.test(ns.userAgent),webkit:C7,safari:qG,webkit_version:C7?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:Q_.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const exe=256;class yc extends Ir{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 yc)||this.length-(n-t)+r.length>exe||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 yc(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 Ro(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 txe(this.dom,t,n)}}class Oc extends Ir{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(VG(t),this.mark.class&&(t.className=this.mark.class),this.mark.attrs)for(let n in this.mark.attrs)t.setAttribute(n,this.mark.attrs[n]);return t}canReuseDOM(t){return super.canReuseDOM(t)&&!((this.flags|t.flags)&8)}reuseDOM(t){t.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(t),this.flags|=6)}sync(t,n){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(t,n)}merge(t,n,r,i,o,a){return r&&(!(r instanceof Oc&&r.mark.eq(this.mark))||t&&o<=0||nt&&n.push(r=t&&(i=o),r=l,o++}let a=this.length-t;return this.length=t,i>-1&&(this.children.length=i,this.markDirty()),new Oc(this.mark,n,a)}domAtPos(t){return ZG(this,t)}coordsAt(t,n){return KG(this,t,n)}}function txe(e,t,n){let r=e.nodeValue.length;t>r&&(t=r);let i=t,o=t,a=0;t==0&&n<0||t==r&&n>=0?Jt.chrome||Jt.gecko||(t?(i--,a=1):o=0)?0:s.length-1];return Jt.safari&&!a&&l.width==0&&(l=Array.prototype.find.call(s,u=>u.width)||l),a?nP(l,a<0):l||null}class dd extends Ir{static create(t,n,r){return new dd(t,n,r)}constructor(t,n,r){super(),this.widget=t,this.length=n,this.side=r,this.prevWidget=null}split(t){let n=dd.create(this.widget,this.length-t,this.side);return this.length-=t,n}sync(t){(!this.dom||!this.widget.updateDOM(this.dom,t))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(t)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(t,n,r,i,o,a){return r&&(!(r instanceof dd)||!this.widget.compare(r.widget)||t>0&&o<=0||n0)?Ro.before(this.dom):Ro.after(this.dom,t==this.length)}domBoundsAround(){return null}coordsAt(t,n){let r=this.widget.coordsAt(this.dom,t,n);if(r)return r;let i=this.dom.getClientRects(),o=null;if(!i.length)return null;let a=this.side?this.side<0:t>0;for(let s=a?i.length-1:0;o=i[s],!(t>0?s==0:s==i.length-1||o.top0?Ro.before(this.dom):Ro.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(t){return this.dom.getBoundingClientRect()}get overrideDOMText(){return rr.empty}get isHidden(){return!0}}yc.prototype.children=dd.prototype.children=Hm.prototype.children=rP;function ZG(e,t){let n=e.dom,{children:r}=e,i=0;for(let o=0;io&&t0;o--){let a=r[o-1];if(a.dom.parentNode==n)return a.domAtPos(a.length)}for(let o=i;o0&&t instanceof Oc&&i.length&&(r=i[i.length-1])instanceof Oc&&r.mark.eq(t.mark)?XG(r,t.children[0],n-1):(i.push(t),t.setParent(e)),e.length+=t.length}function KG(e,t,n){let r=null,i=-1,o=null,a=-1;function s(u,c){for(let d=0,p=0;d=c&&(h.children.length?s(h,c-p):(!o||o.isHidden&&n>0)&&(m>c||p==m&&h.getSide()>0)?(o=h,a=c-p):(p-1?1:0)!=i.length-(n&&i.indexOf(n)>-1?1:0))return!1;for(let o of r)if(o!=n&&(i.indexOf(o)==-1||e[o]!==t[o]))return!1;return!0}function Z_(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 rxe(e){let t=Object.create(null);for(let n=0;n0&&this.children[r-1].length==0;)this.children[--r].destroy();return this.children.length=r,this.markDirty(),this.length=t,n}transferDOM(t){this.dom&&(this.markDirty(),t.setDOM(this.dom),t.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(t){iP(this.attrs,t)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=t)}append(t,n){XG(this,t,n)}addLineDeco(t){let n=t.spec.attributes,r=t.spec.class;n&&(this.attrs=q_(n,this.attrs||{})),r&&(this.attrs=q_({class:r},this.attrs||{}))}domAtPos(t){return ZG(this,t)}reuseDOM(t){t.nodeName=="DIV"&&(this.setDOM(t),this.flags|=6)}sync(t,n){var r;this.dom?this.flags&4&&(VG(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&&(Z_(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&&Ir.get(i)instanceof Oc;)i=i.lastChild;if(!i||!this.length||i.nodeName!="BR"&&((r=Ir.get(i))===null||r===void 0?void 0:r.isEditable)==!1&&(!Jt.ios||!this.children.some(o=>o instanceof yc))){let o=document.createElement("BR");o.cmIgnore=!0,this.dom.appendChild(o)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let t=0,n;for(let r of this.children){if(!(r instanceof yc)||/[^ -~]/.test(r.text))return null;let i=Ty(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=KG(this,t,n);if(!this.children.length&&r&&this.parent){let{heightOracle:i}=this.parent.view.viewState,o=r.bottom-r.top;if(Math.abs(o-i.lineHeight)<2&&i.textHeight=n){if(o instanceof _i)return o;if(a>n)break}i=a+o.breakAfter}return null}}class kd extends Ir{constructor(t,n,r){super(),this.widget=t,this.length=n,this.deco=r,this.breakAfter=0,this.prevWidget=null}merge(t,n,r,i,o,a){return r&&(!(r instanceof kd)||!this.widget.compare(r.widget)||t>0&&o<=0||n0}}class Nu{eq(t){return!1}updateDOM(t,n){return!1}compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(t){return!0}coordsAt(t,n,r){return null}get isHidden(){return!1}get editable(){return!1}destroy(t){}}var ta=function(e){return e[e.Text=0]="Text",e[e.WidgetBefore=1]="WidgetBefore",e[e.WidgetAfter=2]="WidgetAfter",e[e.WidgetRange=3]="WidgetRange",e}(ta||(ta={}));class sn extends up{constructor(t,n,r,i){super(),this.startSide=t,this.endSide=n,this.widget=r,this.spec=i}get heightRelevant(){return!1}static mark(t){return new j1(t)}static widget(t){let n=Math.max(-1e4,Math.min(1e4,t.side||0)),r=!!t.block;return n+=r&&!t.inlineOrder?n>0?3e8:-4e8:n>0?1e8:-1e8,new Bd(t,n,n,r,t.widget||null,!1)}static replace(t){let n=!!t.block,r,i;if(t.isBlockGap)r=-5e8,i=4e8;else{let{start:o,end:a}=JG(t,n);r=(o?n?-3e8:-1:5e8)-1,i=(a?n?2e8:1:-6e8)+1}return new Bd(t,r,i,n,t.widget||null,!0)}static line(t){return new z1(t)}static set(t,n=!1){return Xn.of(t,n)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}sn.none=Xn.empty;class j1 extends sn{constructor(t){let{start:n,end:r}=JG(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 j1&&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))&&iP(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)}}j1.prototype.point=!1;class z1 extends sn{constructor(t){super(-2e8,-2e8,null,t)}eq(t){return t instanceof z1&&this.spec.class==t.spec.class&&iP(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)}}z1.prototype.mapMode=fo.TrackBefore;z1.prototype.point=!0;class Bd extends sn{constructor(t,n,r,i,o,a){super(n,r,o,t),this.block=i,this.isReplace=a,this.mapMode=i?n<=0?fo.TrackBefore:fo.TrackAfter:fo.TrackDel}get type(){return this.startSide!=this.endSide?ta.WidgetRange:this.startSide<=0?ta.WidgetBefore:ta.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(t){return t instanceof Bd&&ixe(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)}}Bd.prototype.point=!0;function JG(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 ixe(e,t){return e==t||!!(e&&t&&e.compare(t))}function X_(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 Eb{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 kd&&t.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new _i),this.atCursorPos=!0),this.curLine}flushBuffer(t=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(Ov(new Hm(-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 kd)&&this.getLine()}buildText(t,n,r){for(;t>0;){if(this.textOff==this.text.length){let{value:o,lineBreak:a,done:s}=this.cursor.next(this.skip);if(this.skip=0,s)throw new Error("Ran out of text content when drawing inline views");if(a){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,t--;continue}else this.text=o,this.textOff=0}let i=Math.min(this.text.length-this.textOff,t,512);this.flushBuffer(n.slice(n.length-r)),this.getLine().append(Ov(new yc(this.text.slice(this.textOff,this.textOff+i)),n),r),this.atCursorPos=!0,this.textOff+=i,t-=i,r=0}}span(t,n,r,i){this.buildText(n-t,r,i),this.pos=n,this.openStart<0&&(this.openStart=i)}point(t,n,r,i,o,a){if(this.disallowBlockEffectsFor[a]&&r instanceof Bd){if(r.block)throw new RangeError("Block decorations may not be specified via plugins");if(n>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let s=n-t;if(r instanceof Bd)if(r.block)r.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new kd(r.widget||new R7("div"),s,r));else{let l=dd.create(r.widget||new R7("span"),s,s?0:r.startSide),u=this.atCursorPos&&!l.isEditable&&o<=i.length&&(t0),c=!l.isEditable&&(ti.length||r.startSide<=0),d=this.getLine();this.pendingBuffer==2&&!u&&!l.isEditable&&(this.pendingBuffer=0),this.flushBuffer(i),u&&(d.append(Ov(new Hm(1),i),o),o=i.length+Math.max(0,o-i.length)),d.append(Ov(l,i),o),this.atCursorPos=c,this.pendingBuffer=c?ti.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=i.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(r);s&&(this.textOff+s<=this.text.length?this.textOff+=s:(this.skip+=s-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=n),this.openStart<0&&(this.openStart=o)}static build(t,n,r,i,o){let a=new Eb(t,n,r,o);return a.openEnd=Xn.spans(i,n,r,a),a.openStart<0&&(a.openStart=a.openEnd),a.finish(a.openEnd),a}}function Ov(e,t){for(let n of t)e=new Oc(n,[e],e.length);return e}class R7 extends Nu{constructor(t){super(),this.tag=t}eq(t){return t.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(t){return t.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}var Dr=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(Dr||(Dr={}));const dp=Dr.LTR,oP=Dr.RTL;function eq(e){let t=[];for(let n=0;n=n){if(s.level==r)return a;(o<0||(i!=0?i<0?s.fromn:t[o].level>s.level))&&(o=a)}}if(o<0)throw new RangeError("Index out of range");return o}}function nq(e,t){if(e.length!=t.length)return!1;for(let n=0;n=0;y-=3)if(ql[y+1]==-h){let O=ql[y+2],b=O&2?i:O&4?O&1?o:i:0;b&&(gr[d]=gr[ql[y]]=b),s=y;break}}else{if(ql.length==189)break;ql[s++]=d,ql[s++]=p,ql[s++]=l}else if((m=gr[d])==2||m==1){let y=m==i;l=y?0:1;for(let O=s-3;O>=0;O-=3){let b=ql[O+2];if(b&2)break;if(y)ql[O+2]|=2;else{if(b&4)break;ql[O+2]|=4}}}}}function cxe(e,t,n,r){for(let i=0,o=r;i<=n.length;i++){let a=i?n[i-1].to:e,s=il;)m==O&&(m=n[--y].from,O=y?n[y-1].to:e),gr[--m]=h;l=c}else o=u,l++}}}function J_(e,t,n,r,i,o,a){let s=r%2?2:1;if(r%2==i%2)for(let l=t,u=0;ll&&a.push(new fd(l,y.from,h));let O=y.direction==dp!=!(h%2);eR(e,O?r+1:r,i,y.inner,y.from,y.to,a),l=y.to}m=y.to}else{if(m==n||(c?gr[m]!=s:gr[m]==s))break;m++}p?J_(e,l,m,r+1,i,p,a):lt;){let c=!0,d=!1;if(!u||l>o[u-1].to){let y=gr[l-1];y!=s&&(c=!1,d=y==16)}let p=!c&&s==1?[]:null,h=c?r:r+1,m=l;e:for(;;)if(u&&m==o[u-1].to){if(d)break e;let y=o[--u];if(!c)for(let O=y.from,b=u;;){if(O==t)break e;if(b&&o[b-1].to==O)O=o[--b].from;else{if(gr[O-1]==s)break e;break}}if(p)p.push(y);else{y.togr.length;)gr[gr.length]=256;let r=[],i=t==dp?0:1;return eR(e,i,i,n,0,e.length,r),r}function rq(e){return[new fd(0,e,0)]}let iq="";function fxe(e,t,n,r,i){var o;let a=r.head-e.from,s=fd.find(t,a,(o=r.bidiLevel)!==null&&o!==void 0?o:-1,r.assoc),l=t[s],u=l.side(i,n);if(a==u){let p=s+=i?1:-1;if(p<0||p>=t.length)return null;l=t[s=p],a=l.side(!i,n),u=l.side(i,n)}let c=mo(e.text,a,l.forward(i,n));(cl.to)&&(c=u),iq=e.text.slice(Math.min(a,c),Math.max(a,c));let d=s==(i?t.length-1:0)?null:t[s+(i?1:-1)];return d&&c==u&&d.level+(i?0:1)e.some(t=>t)}),fq=Gt.define({combine:e=>e.some(t=>t)});class em{constructor(t,n="nearest",r="nearest",i=5,o=5,a=!1){this.range=t,this.y=n,this.x=r,this.yMargin=i,this.xMargin=o,this.isSnapshot=a}map(t){return t.empty?this:new em(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 em(Je.cursor(t.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const vv=xn.define({map:(e,t)=>e.map(t)});function Qs(e,t,n){let r=e.facet(lq);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 Ck=Gt.define({combine:e=>e.length?e[0]:!0});let hxe=0;const H0=Gt.define();class Kr{constructor(t,n,r,i,o){this.id=t,this.create=n,this.domEventHandlers=r,this.domEventObservers=i,this.extension=o(this)}static define(t,n){const{eventHandlers:r,eventObservers:i,provide:o,decorations:a}=n||{};return new Kr(hxe++,t,r,i,s=>{let l=[H0.of(s)];return a&&l.push(ky.of(u=>{let c=u.plugin(s);return c?a(c):sn.none})),o&&l.push(o(s)),l})}static fromClass(t,n){return Kr.define(r=>new t(r),n)}}class zC{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(Qs(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){Qs(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){Qs(t.state,r,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const pq=Gt.define(),aP=Gt.define(),ky=Gt.define(),hq=Gt.define(),sP=Gt.define(),mq=Gt.define();function I7(e,t){let n=e.state.facet(mq);if(!n.length)return n;let r=n.map(o=>o instanceof Function?o(e):o),i=[];return Xn.spans(r,t.from,t.to,{point(){},span(o,a,s,l){let u=o-t.from,c=a-t.from,d=i;for(let p=s.length-1;p>=0;p--,l--){let h=s[p].spec.bidiIsolate,m;if(h==null&&(h=pxe(t.text,u,c)),l>0&&d.length&&(m=d[d.length-1]).to==u&&m.direction==h)m.to=c,d=m.inner;else{let y={from:u,to:c,direction:h,inner:[]};d.push(y),d=y.inner}}}}),i}const gq=Gt.define();function bq(e){let t=0,n=0,r=0,i=0;for(let o of e.state.facet(gq)){let a=o(e);a&&(a.left!=null&&(t=Math.max(t,a.left)),a.right!=null&&(n=Math.max(n,a.right)),a.top!=null&&(r=Math.max(r,a.top)),a.bottom!=null&&(i=Math.max(i,a.bottom)))}return{left:t,right:n,top:r,bottom:i}}const W0=Gt.define();class Ys{constructor(t,n,r,i){this.fromA=t,this.toA=n,this.fromB=r,this.toB=i}join(t){return new Ys(Math.min(this.fromA,t.fromA),Math.max(this.toA,t.toA),Math.min(this.fromB,t.fromB),Math.max(this.toB,t.toB))}addToSet(t){let n=t.length,r=this;for(;n>0;n--){let i=t[n-1];if(!(i.fromA>r.toA)){if(i.toAc)break;o+=2}if(!l)return r;new Ys(l.fromA,l.toA,l.fromB,l.toB).addToSet(r),a=l.toA,s=l.toB}}}class eT{constructor(t,n,r){this.view=t,this.state=n,this.transactions=r,this.flags=0,this.startState=t.state,this.changes=Ii.empty(this.startState.doc.length);for(let o of r)this.changes=this.changes.compose(o.changes);let i=[];this.changes.iterChangedRanges((o,a,s,l)=>i.push(new Ys(o,a,s,l))),this.changedRanges=i}static create(t,n,r){return new eT(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 N7 extends Ir{get length(){return this.view.state.doc.length}constructor(t){super(),this.view=t,this.decorations=[],this.dynamicDecorationMap=[],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(t.contentDOM),this.children=[new _i],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new Ys(0,0,0,t.state.doc.length)],0,null)}update(t){var n;let r=t.changedRanges;this.minWidth>0&&r.length&&(r.every(({fromA:u,toA:c})=>cthis.minWidthTo)?(this.minWidthFrom=t.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=t.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let i=-1;this.view.inputState.composing>=0&&(!((n=this.domChanged)===null||n===void 0)&&n.newSel?i=this.domChanged.newSel.head:!Exe(t.changes,this.hasComposition)&&!t.selectionSet&&(i=t.state.selection.main.head));let o=i>-1?gxe(this.view,t.changes,i):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:u,to:c}=this.hasComposition;r=new Ys(u,c,t.changes.mapPos(u,-1),t.changes.mapPos(c,1)).addToSet(r.slice())}this.hasComposition=o?{from:o.range.fromB,to:o.range.toB}:null,(Jt.ie||Jt.chrome)&&!o&&t&&t.state.doc.lines!=t.startState.doc.lines&&(this.forceSelection=!0);let a=this.decorations,s=this.updateDeco(),l=Oxe(a,s,t.changes);return r=Ys.extendWithRanges(r,l),!(this.flags&7)&&r.length==0?!1:(this.updateInner(r,t.startState.doc.length,o),t.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(t,n,r){this.view.viewState.mustMeasureContent=!0,this.updateChildren(t,n,r);let{observer:i}=this.view;i.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let a=Jt.chrome||Jt.ios?{node:i.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,a),this.flags&=-8,a&&(a.written||i.selectionRange.focusNode!=a.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(a=>a.flags&=-9);let o=[];if(this.view.viewport.from||this.view.viewport.to=0?i[a]:null;if(!s)break;let{fromA:l,toA:u,fromB:c,toB:d}=s,p,h,m,y;if(r&&r.range.fromBc){let k=Eb.build(this.view.state.doc,c,r.range.fromB,this.decorations,this.dynamicDecorationMap),C=Eb.build(this.view.state.doc,r.range.toB,d,this.decorations,this.dynamicDecorationMap);h=k.breakAtStart,m=k.openStart,y=C.openEnd;let w=this.compositionView(r);C.breakAtStart?w.breakAfter=1:C.content.length&&w.merge(w.length,w.length,C.content[0],!1,C.openStart,0)&&(w.breakAfter=C.content[0].breakAfter,C.content.shift()),k.content.length&&w.merge(0,0,k.content[k.content.length-1],!0,0,k.openEnd)&&k.content.pop(),p=k.content.concat(w).concat(C.content)}else({content:p,breakAtStart:h,openStart:m,openEnd:y}=Eb.build(this.view.state.doc,c,d,this.decorations,this.dynamicDecorationMap));let{i:O,off:b}=o.findPos(u,1),{i:v,off:S}=o.findPos(l,-1);QG(this,v,S,O,b,p,h,m,y)}r&&this.fixCompositionDOM(r)}compositionView(t){let n=new yc(t.text.nodeValue);n.flags|=8;for(let{deco:i}of t.marks)n=new Oc(i,[n],n.length);let r=new _i;return r.append(n,0),r}fixCompositionDOM(t){let n=(o,a)=>{a.flags|=8|(a.children.some(l=>l.flags&7)?1:0),this.markedForComposition.add(a);let s=Ir.get(o);s&&s!=a&&(s.dom=null),a.setDOM(o)},r=this.childPos(t.range.fromB,1),i=this.children[r.i];n(t.line,i);for(let o=t.marks.length-1;o>=-1;o--)r=i.childPos(r.off,1),i=i.children[r.i],n(o>=0?t.marks[o].node:t.text,i)}updateSelection(t=!1,n=!1){(t||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let r=this.view.root.activeElement,i=r==this.dom,o=!i&&_E(this.dom,this.view.observer.selectionRange)&&!(r&&this.dom.contains(r));if(!(i||n||o))return;let a=this.forceSelection;this.forceSelection=!1;let s=this.view.state.selection.main,l=this.moveToLine(this.domAtPos(s.anchor)),u=s.empty?l:this.moveToLine(this.domAtPos(s.head));if(Jt.gecko&&s.empty&&!this.hasComposition&&mxe(l)){let d=document.createTextNode("");this.view.observer.ignore(()=>l.node.insertBefore(d,l.node.childNodes[l.offset]||null)),l=u=new Ro(d,0),a=!0}let c=this.view.observer.selectionRange;(a||!c.focusNode||(!vb(l.node,l.offset,c.anchorNode,c.anchorOffset)||!vb(u.node,u.offset,c.focusNode,c.focusOffset))&&!this.suppressWidgetCursorChange(c,s))&&(this.view.observer.ignore(()=>{Jt.android&&Jt.chrome&&this.dom.contains(c.focusNode)&&vxe(c.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let d=JS(this.view.root);if(d)if(s.empty){if(Jt.gecko){let p=bxe(l.node,l.offset);if(p&&p!=3){let h=Oq(l.node,l.offset,p==1?1:-1);h&&(l=new Ro(h.node,h.offset))}}d.collapse(l.node,l.offset),s.bidiLevel!=null&&d.caretBidiLevel!==void 0&&(d.caretBidiLevel=s.bidiLevel)}else if(d.extend){d.collapse(l.node,l.offset);try{d.extend(u.node,u.offset)}catch{}}else{let p=document.createRange();s.anchor>s.head&&([l,u]=[u,l]),p.setEnd(u.node,u.offset),p.setStart(l.node,l.offset),d.removeAllRanges(),d.addRange(p)}o&&this.view.root.activeElement==this.dom&&(this.dom.blur(),r&&r.focus())}),this.view.observer.setSelectionRange(l,u)),this.impreciseAnchor=l.precise?null:new Ro(c.anchorNode,c.anchorOffset),this.impreciseHead=u.precise?null:new Ro(c.focusNode,c.focusOffset)}suppressWidgetCursorChange(t,n){return this.hasComposition&&n.empty&&vb(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=JS(t.root),{anchorNode:i,anchorOffset:o}=t.observer.selectionRange;if(!r||!n.empty||!n.assoc||!r.modify)return;let a=_i.find(this,n.head);if(!a)return;let s=a.posAtStart;if(n.head==s||n.head==s+a.length)return;let l=this.coordsAt(n.head,-1),u=this.coordsAt(n.head,1);if(!l||!u||l.bottom>u.top)return;let c=this.domAtPos(n.head+n.assoc);r.collapse(c.node,c.offset),r.modify("move",n.assoc<0?"forward":"backward","lineboundary"),t.observer.readSelectionRange();let d=t.observer.selectionRange;t.docView.posFromDOM(d.anchorNode,d.anchorOffset)!=n.from&&r.collapse(i,o)}moveToLine(t){let n=this.dom,r;if(t.node!=n)return t;for(let i=t.offset;!r&&i=0;i--){let o=Ir.get(n.childNodes[i]);o instanceof _i&&(r=o.domAtPos(o.length))}return r?new Ro(r.node,r.offset,!0):t}nearest(t){for(let n=t;n;){let r=Ir.get(n);if(r&&r.rootView==this)return r;n=n.parentNode}return null}posFromDOM(t,n){let r=this.nearest(t);if(!r)throw new RangeError("Trying to find position for a DOM position outside of the document");return r.localPosFromDOM(t,n)+r.posAtStart}domAtPos(t){let{i:n,off:r}=this.childCursor().findPos(t,-1);for(;n=0;a--){let s=this.children[a],l=o-s.breakAfter,u=l-s.length;if(lt||s.covers(1))&&(!r||s instanceof _i&&!(r instanceof _i&&n>=0))&&(r=s,i=u),o=u}return r?r.coordsAt(t-i,n):null}coordsForChar(t){let{i:n,off:r}=this.childPos(t,1),i=this.children[n];if(!(i instanceof _i))return null;for(;i.children.length;){let{i:s,off:l}=i.childPos(r,1);for(;;s++){if(s==i.children.length)return null;if((i=i.children[s]).length)break}r=l}if(!(i instanceof yc))return null;let o=mo(i.text,r);if(o==r)return null;let a=cp(i.dom,r,o).getClientRects();for(let s=0;sMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,s=-1,l=this.view.textDirection==Dr.LTR;for(let u=0,c=0;ci)break;if(u>=r){let h=d.dom.getBoundingClientRect();if(n.push(h.height),a){let m=d.dom.lastChild,y=m?Ty(m):[];if(y.length){let O=y[y.length-1],b=l?O.right-h.left:h.right-O.left;b>s&&(s=b,this.minWidth=o,this.minWidthFrom=u,this.minWidthTo=p)}}}u=p+d.breakAfter}return n}textDirectionAt(t){let{i:n}=this.childPos(t,1);return getComputedStyle(this.children[n].dom).direction=="rtl"?Dr.RTL:Dr.LTR}measureTextSize(){for(let o of this.children)if(o instanceof _i){let a=o.measureTextSize();if(a)return a}let t=document.createElement("div"),n,r,i;return t.className="cm-line",t.style.width="99999px",t.style.position="absolute",t.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(t);let o=Ty(t.firstChild)[0];n=t.getBoundingClientRect().height,r=o?o.width/27:7,i=o?o.height:n,t.remove()}),{lineHeight:n,charWidth:r,textHeight:i}}childCursor(t=this.length){let n=this.children.length;return n&&(t-=this.children[--n].length),new WG(this.children,t,n)}computeBlockGapDeco(){let t=[],n=this.view.viewState;for(let r=0,i=0;;i++){let o=i==n.viewports.length?null:n.viewports[i],a=o?o.from-1:this.length;if(a>r){let s=(n.lineBlockAt(a).bottom-n.lineBlockAt(r).top)/this.view.scaleY;t.push(sn.replace({widget:new D7(s),block:!0,inclusive:!0,isBlockGap:!0}).range(r,a))}if(!o)break;r=o.to+1}return sn.set(t)}updateDeco(){let t=this.view.state.facet(ky).map((i,o)=>(this.dynamicDecorationMap[o]=typeof i=="function")?i(this.view):i),n=!1,r=this.view.state.facet(hq).map((i,o)=>{let a=typeof i=="function";return a&&(n=!0),a?i(this.view):i});r.length&&(this.dynamicDecorationMap[t.length]=n,t.push(Xn.join(r)));for(let i=t.length;in.anchor?-1:1),i;if(!r)return;!n.empty&&(i=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(r={left:Math.min(r.left,i.left),top:Math.min(r.top,i.top),right:Math.max(r.right,i.right),bottom:Math.max(r.bottom,i.bottom)});let o=bq(this.view),a={left:r.left-o.left,top:r.top-o.top,right:r.right+o.right,bottom:r.bottom+o.bottom},{offsetWidth:s,offsetHeight:l}=this.view.scrollDOM;qke(this.view.scrollDOM,a,n.head0)r=r.childNodes[i-1],i=bc(r);else break}if(n>=0)for(let r=e,i=t;;){if(r.nodeType==3)return{node:r,offset:i};if(r.nodeType==1&&i=0)r=r.childNodes[i],i=0;else break}return null}function bxe(e,t){return e.nodeType!=1?0:(t&&e.childNodes[t-1].contentEditable=="false"?1:0)|(t{rt.from&&(n=!0)}),n}function Sxe(e,t,n=1){let r=e.charCategorizer(t),i=e.doc.lineAt(t),o=t-i.from;if(i.length==0)return Je.cursor(t);o==0?n=1:o==i.length&&(n=-1);let a=o,s=o;n<0?a=mo(i.text,o,!1):s=mo(i.text,o);let l=r(i.text.slice(a,s));for(;a>0;){let u=mo(i.text,a,!1);if(r(i.text.slice(u,a))!=l)break;a=u}for(;se?t.left-e:Math.max(0,e-t.right)}function wxe(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function VC(e,t){return e.topt.top+1}function P7(e,t){return te.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function nR(e,t,n){let r,i,o,a,s=!1,l,u,c,d;for(let m=e.firstChild;m;m=m.nextSibling){let y=Ty(m);for(let O=0;OS||a==S&&o>v){r=m,i=b,o=v,a=S;let k=S?n0?O0)}v==0?n>b.bottom&&(!c||c.bottomb.top)&&(u=m,d=b):c&&VC(c,b)?c=L7(c,b.bottom):d&&VC(d,b)&&(d=P7(d,b.top))}}if(c&&c.bottom>=n?(r=l,i=c):d&&d.top<=n&&(r=u,i=d),!r)return{node:e,offset:0};let p=Math.max(i.left,Math.min(i.right,t));if(r.nodeType==3)return M7(r,p,n);if(s&&r.contentEditable!="false")return nR(r,p,n);let h=Array.prototype.indexOf.call(e.childNodes,r)+(t>=(i.left+i.right)/2?1:0);return{node:e,offset:h}}function M7(e,t,n){let r=e.nodeValue.length,i=-1,o=1e9,a=0;for(let s=0;sn?c.top-n:n-c.bottom)-1;if(c.left-1<=t&&c.right+1>=t&&d=(c.left+c.right)/2,h=p;if((Jt.chrome||Jt.gecko)&&cp(e,s).getBoundingClientRect().left==c.right&&(h=!p),d<=0)return{node:e,offset:s+(h?1:0)};i=s+(h?1:0),o=d}}}return{node:e,offset:i>-1?i:a>0?e.nodeValue.length:0}}function vq(e,t,n,r=-1){var i,o;let a=e.contentDOM.getBoundingClientRect(),s=a.top+e.viewState.paddingTop,l,{docHeight:u}=e.viewState,{x:c,y:d}=t,p=d-s;if(p<0)return 0;if(p>u)return e.state.doc.length;for(let k=e.viewState.heightOracle.textHeight/2,C=!1;l=e.elementAtHeight(p),l.type!=ta.Text;)for(;p=r>0?l.bottom+k:l.top-k,!(p>=0&&p<=u);){if(C)return n?null:0;C=!0,r=-r}d=s+p;let h=l.from;if(he.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:n?null:$7(e,a,l,c,d);let m=e.dom.ownerDocument,y=e.root.elementFromPoint?e.root:m,O=y.elementFromPoint(c,d);O&&!e.contentDOM.contains(O)&&(O=null),O||(c=Math.max(a.left+1,Math.min(a.right-1,c)),O=y.elementFromPoint(c,d),O&&!e.contentDOM.contains(O)&&(O=null));let b,v=-1;if(O&&((i=e.docView.nearest(O))===null||i===void 0?void 0:i.isEditable)!=!1){if(m.caretPositionFromPoint){let k=m.caretPositionFromPoint(c,d);k&&({offsetNode:b,offset:v}=k)}else if(m.caretRangeFromPoint){let k=m.caretRangeFromPoint(c,d);k&&({startContainer:b,startOffset:v}=k,(!e.contentDOM.contains(b)||Jt.safari&&kxe(b,v,c)||Jt.chrome&&xxe(b,v,c))&&(b=void 0))}}if(!b||!e.docView.dom.contains(b)){let k=_i.find(e.docView,h);if(!k)return p>l.top+l.height/2?l.to:l.from;({node:b,offset:v}=nR(k.dom,c,d))}let S=e.docView.nearest(b);if(!S)return null;if(S.isWidget&&((o=S.dom)===null||o===void 0?void 0:o.nodeType)==1){let k=S.dom.getBoundingClientRect();return t.ye.defaultLineHeight*1.5){let s=e.viewState.heightOracle.textHeight,l=Math.floor((i-n.top-(e.defaultLineHeight-s)*.5)/s);o+=l*e.viewState.heightOracle.lineLength}let a=e.state.sliceDoc(n.from,n.to);return n.from+z_(a,o,e.state.tabSize)}function kxe(e,t,n){let r;if(e.nodeType!=3||t!=(r=e.nodeValue.length))return!1;for(let i=e.nextSibling;i;i=i.nextSibling)if(i.nodeType!=1||i.nodeName!="BR")return!1;return cp(e,r-1,r).getBoundingClientRect().left>n}function xxe(e,t,n){if(t!=0)return!1;for(let i=e;;){let o=i.parentNode;if(!o||o.nodeType!=1||o.firstChild!=i)return!1;if(o.classList.contains("cm-line"))break;i=o}let r=e.nodeType==1?e.getBoundingClientRect():cp(e,0,Math.max(e.nodeValue.length,1)).getBoundingClientRect();return n-r.left>5}function rR(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==ta.Text))return r}return n}function Cxe(e,t,n,r){let i=rR(e,t.head),o=!r||i.type!=ta.Text||!(e.lineWrapping||i.widgetLineBreaks)?null:e.coordsAtPos(t.assoc<0&&t.head>i.from?t.head-1:t.head);if(o){let a=e.dom.getBoundingClientRect(),s=e.textDirectionAt(i.from),l=e.posAtCoords({x:n==(s==Dr.LTR)?a.right-1:a.left+1,y:(o.top+o.bottom)/2});if(l!=null)return Je.cursor(l,n?-1:1)}return Je.cursor(n?i.to:i.from,n?-1:1)}function F7(e,t,n,r){let i=e.state.doc.lineAt(t.head),o=e.bidiSpans(i),a=e.textDirectionAt(i.from);for(let s=t,l=null;;){let u=fxe(i,o,a,s,n),c=iq;if(!u){if(i.number==(n?e.state.doc.lines:1))return s;c=` -`,i=e.state.doc.line(i.number+(n?1:-1)),o=e.bidiSpans(i),u=e.visualLineSide(i,!n)}if(l){if(!l(c))return s}else{if(!r)return u;l=r(c)}s=u}}function Axe(e,t,n){let r=e.state.charCategorizer(t),i=r(n);return o=>{let a=r(o);return i==Vr.Space&&(i=a),i==a}}function _xe(e,t,n,r){let i=t.head,o=n?1:-1;if(i==(n?e.state.doc.length:0))return Je.cursor(i,t.assoc);let a=t.goalColumn,s,l=e.contentDOM.getBoundingClientRect(),u=e.coordsAtPos(i,t.assoc||-1),c=e.documentTop;if(u)a==null&&(a=u.left-l.left),s=o<0?u.top:u.bottom;else{let h=e.viewState.lineBlockAt(i);a==null&&(a=Math.min(l.right-l.left,e.defaultCharacterWidth*(i-h.from))),s=(o<0?h.top:h.bottom)+c}let d=l.left+a,p=r??e.viewState.heightOracle.textHeight>>1;for(let h=0;;h+=10){let m=s+(p+h)*o,y=vq(e,{x:d,y:m},!1,o);if(ml.bottom||(o<0?yi)){let O=e.docView.coordsForChar(y),b=!O||m{if(t>o&&ti(e)),n.from,t.head>n.from?-1:1);return r==n.from?n:Je.cursor(r,rnull),Jt.gecko&&Qxe(t.contentDOM.ownerDocument)}handleEvent(t){!Fxe(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=Ixe(t),r=this.handlers,i=this.view.contentDOM;for(let o in n)if(o!="scroll"){let a=!n[o].handlers.length,s=r[o];s&&a!=!s.handlers.length&&(i.removeEventListener(o,this.handleEvent),s=null),s||i.addEventListener(o,this.handleEvent,{passive:a})}for(let o in r)o!="scroll"&&!n[o]&&i.removeEventListener(o,this.handleEvent);this.handlers=n}keydown(t){if(this.lastKeyCode=t.keyCode,this.lastKeyTime=Date.now(),t.keyCode==9&&Date.now()r.keyCode==t.keyCode))&&!t.ctrlKey||Nxe.indexOf(t.key)>-1&&t.ctrlKey&&!t.shiftKey)?(this.pendingIOSKey=n||t,setTimeout(()=>this.flushIOSKey(),250),!0):(t.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(){let t=this.pendingIOSKey;return t?(this.pendingIOSKey=void 0,Jh(this.view.contentDOM,t.key,t.keyCode)):!1}ignoreDuringComposition(t){return/^key/.test(t.type)?this.composing>0?!0:Jt.safari&&!Jt.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(t){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=t}update(t){this.mouseSelection&&this.mouseSelection.update(t),this.draggedContent&&t.docChanged&&(this.draggedContent=this.draggedContent.map(t.changes)),t.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function B7(e,t){return(n,r)=>{try{return t.call(e,r,n)}catch(i){Qs(n.state,i)}}}function Ixe(e){let t=Object.create(null);function n(r){return t[r]||(t[r]={observers:[],handlers:[]})}for(let r of e){let i=r.spec;if(i&&i.domEventHandlers)for(let o in i.domEventHandlers){let a=i.domEventHandlers[o];a&&n(o).handlers.push(B7(r.value,a))}if(i&&i.domEventObservers)for(let o in i.domEventObservers){let a=i.domEventObservers[o];a&&n(o).observers.push(B7(r.value,a))}}for(let r in Rl)n(r).handlers.push(Rl[r]);for(let r in Il)n(r).observers.push(Il[r]);return t}const Eq=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],Nxe="dthko",Sq=[16,17,18,20,91,92,224,225],Ev=6;function Sv(e){return Math.max(0,e)*.7+8}function Dxe(e,t){return Math.max(Math.abs(e.clientX-t.clientX),Math.abs(e.clientY-t.clientY))}class Pxe{constructor(t,n,r,i){this.view=t,this.startEvent=n,this.style=r,this.mustSelect=i,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=n,this.scrollParent=Zke(t.contentDOM),this.atoms=t.state.facet(sP).map(a=>a(t));let o=t.contentDOM.ownerDocument;o.addEventListener("mousemove",this.move=this.move.bind(this)),o.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=n.shiftKey,this.multiple=t.state.facet(qn.allowMultipleSelections)&&Lxe(t,n),this.dragging=$xe(t,n)&&xq(n)==1?null:!1}start(t){this.dragging===!1&&this.select(t)}move(t){var n;if(t.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&Dxe(this.startEvent,t)<10)return;this.select(this.lastEvent=t);let r=0,i=0,o=((n=this.scrollParent)===null||n===void 0?void 0:n.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},a=bq(this.view);t.clientX-a.left<=o.left+Ev?r=-Sv(o.left-t.clientX):t.clientX+a.right>=o.right-Ev&&(r=Sv(t.clientX-o.right)),t.clientY-a.top<=o.top+Ev?i=-Sv(o.top-t.clientY):t.clientY+a.bottom>=o.bottom-Ev&&(i=Sv(t.clientY-o.bottom)),this.setScrollSpeed(r,i)}up(t){this.dragging==null&&this.select(this.lastEvent),this.dragging||t.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let t=this.view.contentDOM.ownerDocument;t.removeEventListener("mousemove",this.move),t.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(t,n){this.scrollSpeed={x:t,y:n},t||n?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(t){let n=null;for(let r=0;rthis.select(this.lastEvent),20)}}function Lxe(e,t){let n=e.state.facet(oq);return n.length?n[0](t):Jt.mac?t.metaKey:t.ctrlKey}function Mxe(e,t){let n=e.state.facet(aq);return n.length?n[0](t):Jt.mac?!t.altKey:!t.ctrlKey}function $xe(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let r=JS(e.root);if(!r||r.rangeCount==0)return!0;let i=r.getRangeAt(0).getClientRects();for(let o=0;o=t.clientX&&a.top<=t.clientY&&a.bottom>=t.clientY)return!0}return!1}function Fxe(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=Ir.get(n))&&r.ignoreEvent(t))return!1;return!0}const Rl=Object.create(null),Il=Object.create(null),Tq=Jt.ie&&Jt.ie_version<15||Jt.ios&&Jt.webkit_version<604;function Bxe(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(),wq(e,n.value)},50)}function wq(e,t){let{state:n}=e,r,i=1,o=n.toText(t),a=o.lines==n.selection.ranges.length;if(iR!=null&&n.selection.ranges.every(l=>l.empty)&&iR==o.toString()){let l=-1;r=n.changeByRange(u=>{let c=n.doc.lineAt(u.from);if(c.from==l)return{range:u};l=c.from;let d=n.toText((a?o.line(i++).text:t)+n.lineBreak);return{changes:{from:c.from,insert:d},range:Je.cursor(u.from+d.length)}})}else a?r=n.changeByRange(l=>{let u=o.line(i++);return{changes:{from:l.from,to:l.to,insert:u.text},range:Je.cursor(l.from+u.length)}}):r=n.replaceSelection(o);e.dispatch(r,{userEvent:"input.paste",scrollIntoView:!0})}Il.scroll=e=>{e.inputState.lastScrollTop=e.scrollDOM.scrollTop,e.inputState.lastScrollLeft=e.scrollDOM.scrollLeft};Rl.keydown=(e,t)=>(e.inputState.setSelectionOrigin("select"),t.keyCode==27&&(e.inputState.lastEscPress=Date.now()),!1);Il.touchstart=(e,t)=>{e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")};Il.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")};Rl.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(sq))if(n=r(e,t),n)break;if(!n&&t.button==0&&(n=zxe(e,t)),n){let r=!e.hasFocus;e.inputState.startMouseSelection(new Pxe(e,t,n,r)),r&&e.observer.ignore(()=>zG(e.contentDOM));let i=e.inputState.mouseSelection;if(i)return i.start(t),i.dragging===!1}return!1};function U7(e,t,n,r){if(r==1)return Je.cursor(t,n);if(r==2)return Sxe(e.state,t,n);{let i=_i.find(e.docView,t),o=e.state.doc.lineAt(i?i.posAtEnd:t),a=i?i.posAtStart:o.from,s=i?i.posAtEnd:o.to;return se>=t.top&&e<=t.bottom,j7=(e,t,n)=>kq(t,n)&&e>=n.left&&e<=n.right;function Uxe(e,t,n,r){let i=_i.find(e.docView,t);if(!i)return 1;let o=t-i.posAtStart;if(o==0)return 1;if(o==i.length)return-1;let a=i.coordsAt(o,-1);if(a&&j7(n,r,a))return-1;let s=i.coordsAt(o,1);return s&&j7(n,r,s)?1:a&&kq(r,a)?-1:1}function z7(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:n,bias:Uxe(e,n,t.clientX,t.clientY)}}const jxe=Jt.ie&&Jt.ie_version<=11;let V7=null,H7=0,W7=0;function xq(e){if(!jxe)return e.detail;let t=V7,n=W7;return V7=e,W7=Date.now(),H7=!t||n>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(H7+1)%3:1}function zxe(e,t){let n=z7(e,t),r=xq(t),i=e.state.selection;return{update(o){o.docChanged&&(n.pos=o.changes.mapPos(n.pos),i=i.map(o.changes))},get(o,a,s){let l=z7(e,o),u,c=U7(e,l.pos,l.bias,r);if(n.pos!=l.pos&&!a){let d=U7(e,n.pos,n.bias,r),p=Math.min(d.from,c.from),h=Math.max(d.to,c.to);c=p1&&(u=Vxe(i,l.pos))?u:s?i.addRange(c):Je.create([c])}}}function Vxe(e,t){for(let n=0;n=t)return Je.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}Rl.dragstart=(e,t)=>{let{selection:{main:n}}=e.state;if(t.target.draggable){let i=e.docView.nearest(t.target);if(i&&i.isWidget){let o=i.posAtStart,a=o+i.length;(o>=n.to||a<=n.from)&&(n=Je.range(o,a))}}let{inputState:r}=e;return r.mouseSelection&&(r.mouseSelection.dragging=!0),r.draggedContent=n,t.dataTransfer&&(t.dataTransfer.setData("Text",e.state.sliceDoc(n.from,n.to)),t.dataTransfer.effectAllowed="copyMove"),!1};Rl.dragend=e=>(e.inputState.draggedContent=null,!1);function Q7(e,t,n,r){if(!n)return;let i=e.posAtCoords({x:t.clientX,y:t.clientY},!1),{draggedContent:o}=e.inputState,a=r&&o&&Mxe(e,t)?{from:o.from,to:o.to}:null,s={from:i,insert:n},l=e.state.changes(a?[a,s]:s);e.focus(),e.dispatch({changes:l,selection:{anchor:l.mapPos(i,-1),head:l.mapPos(i,1)},userEvent:a?"move.drop":"input.drop"}),e.inputState.draggedContent=null}Rl.drop=(e,t)=>{if(!t.dataTransfer)return!1;if(e.state.readOnly)return!0;let n=t.dataTransfer.files;if(n&&n.length){let r=Array(n.length),i=0,o=()=>{++i==n.length&&Q7(e,t,r.filter(a=>a!=null).join(e.state.lineBreak),!1)};for(let a=0;a{/[\x00-\x08\x0e-\x1f]{2}/.test(s.result)||(r[a]=s.result),o()},s.readAsText(n[a])}return!0}else{let r=t.dataTransfer.getData("Text");if(r)return Q7(e,t,r,!0),!0}return!1};Rl.paste=(e,t)=>{if(e.state.readOnly)return!0;e.observer.flush();let n=Tq?null:t.clipboardData;return n?(wq(e,n.getData("text/plain")||n.getData("text/uri-text")),!0):(Bxe(e),!1)};function Hxe(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 Wxe(e){let t=[],n=[],r=!1;for(let i of e.selection.ranges)i.empty||(t.push(e.sliceDoc(i.from,i.to)),n.push(i));if(!t.length){let i=-1;for(let{from:o}of e.selection.ranges){let a=e.doc.lineAt(o);a.number>i&&(t.push(a.text),n.push({from:a.from,to:Math.min(e.doc.length,a.to+1)})),i=a.number}r=!0}return{text:t.join(e.lineBreak),ranges:n,linewise:r}}let iR=null;Rl.copy=Rl.cut=(e,t)=>{let{text:n,ranges:r,linewise:i}=Wxe(e.state);if(!n&&!i)return!1;iR=i?n:null,t.type=="cut"&&!e.state.readOnly&&e.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"});let o=Tq?null:t.clipboardData;return o?(o.clearData(),o.setData("text/plain",n),!0):(Hxe(e,n),!1)};const Cq=Ll.define();function Aq(e,t){let n=[];for(let r of e.facet(cq)){let i=r(e,t);i&&n.push(i)}return n?e.update({effects:n,annotations:Cq.of(!0)}):null}function _q(e){setTimeout(()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let n=Aq(e.state,t);n?e.dispatch(n):e.update([])}},10)}Il.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),_q(e)};Il.blur=e=>{e.observer.clearSelectionRange(),_q(e)};Il.compositionstart=Il.compositionupdate=e=>{e.inputState.compositionFirstChange==null&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0)};Il.compositionend=e=>{e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionPendingKey=!0,e.inputState.compositionPendingChange=e.observer.pendingRecords().length>0,e.inputState.compositionFirstChange=null,Jt.chrome&&Jt.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then(()=>e.observer.flush()):setTimeout(()=>{e.inputState.composing<0&&e.docView.hasComposition&&e.update([])},50)};Il.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()};Rl.beforeinput=(e,t)=>{var n;let r;if(Jt.chrome&&Jt.android&&(r=Eq.find(i=>i.inputType==t.inputType))&&(e.observer.delayAndroidKey(r.key,r.keyCode),r.key=="Backspace"||r.key=="Delete")){let i=((n=window.visualViewport)===null||n===void 0?void 0:n.height)||0;setTimeout(()=>{var o;(((o=window.visualViewport)===null||o===void 0?void 0:o.height)||0)>i+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())},100)}return!1};const Y7=new Set;function Qxe(e){Y7.has(e)||(Y7.add(e),e.addEventListener("copy",()=>{}),e.addEventListener("cut",()=>{}))}const G7=["pre-wrap","normal","pre-line","break-spaces"];class Yxe{constructor(t){this.lineWrapping=t,this.doc=rr.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(t,n){let r=this.doc.lineAt(n).number-this.doc.lineAt(t).number+1;return this.lineWrapping&&(r+=Math.max(0,Math.ceil((n-t-r*this.lineLength*.5)/this.lineLength))),this.lineHeight*r}heightForLine(t){return this.lineWrapping?(1+Math.max(0,Math.ceil((t-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(t){return this.doc=t,this}mustRefreshForWrapping(t){return G7.indexOf(t)>-1!=this.lineWrapping}mustRefreshForHeights(t){let n=!1;for(let r=0;r-1,l=Math.round(n)!=Math.round(this.lineHeight)||this.lineWrapping!=s;if(this.lineWrapping=s,this.lineHeight=n,this.charWidth=r,this.textHeight=i,this.lineLength=o,l){this.heightSamples={};for(let u=0;u0}set outdated(t){this.flags=(t?2:0)|this.flags&-3}setHeight(t,n){this.height!=n&&(Math.abs(this.height-n)>IE&&(t.heightChanged=!0),this.height=n)}replace(t,n,r){return na.of(r)}decomposeLeft(t,n){n.push(this)}decomposeRight(t,n){n.push(this)}applyChanges(t,n,r,i){let o=this,a=r.doc;for(let s=i.length-1;s>=0;s--){let{fromA:l,toA:u,fromB:c,toB:d}=i[s],p=o.lineAt(l,Rr.ByPosNoHeight,r.setDoc(n),0,0),h=p.to>=u?p:o.lineAt(u,Rr.ByPosNoHeight,r,0,0);for(d+=h.to-u,u=h.to;s>0&&p.from<=i[s-1].toA;)l=i[s-1].fromA,c=i[s-1].fromB,s--,lo*2){let s=t[n-1];s.break?t.splice(--n,1,s.left,null,s.right):t.splice(--n,1,s.left,s.right),r+=1+s.break,i-=s.size}else if(o>i*2){let s=t[r];s.break?t.splice(r,1,s.left,null,s.right):t.splice(r,1,s.left,s.right),r+=2+s.break,o-=s.size}else break;else if(i=o&&a(this.blockAt(0,r,i,o))}updateHeight(t,n=0,r=!1,i){return i&&i.from<=n&&i.more&&this.setHeight(t,i.heights[i.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class qa extends Rq{constructor(t,n){super(t,n,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(t,n,r,i){return new cu(i,this.length,r,this.height,this.breaks)}replace(t,n,r){let i=r[0];return r.length==1&&(i instanceof qa||i instanceof so&&i.flags&4)&&Math.abs(this.length-i.length)<10?(i instanceof so?i=new qa(i.length,this.height):i.height=this.height,this.outdated||(i.outdated=!1),i):na.of(r)}updateHeight(t,n=0,r=!1,i){return i&&i.from<=n&&i.more?this.setHeight(t,i.heights[i.index++]):(r||this.outdated)&&this.setHeight(t,Math.max(this.widgetHeight,t.heightForLine(this.length-this.collapsed))+this.breaks*t.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class so extends na{constructor(t){super(t,0)}heightMetrics(t,n){let r=t.doc.lineAt(n).number,i=t.doc.lineAt(n+this.length).number,o=i-r+1,a,s=0;if(t.lineWrapping){let l=Math.min(this.height,t.lineHeight*o);a=l/o,this.length>o+1&&(s=(this.height-l)/(this.length-o-1))}else a=this.height/o;return{firstLine:r,lastLine:i,perLine:a,perChar:s}}blockAt(t,n,r,i){let{firstLine:o,lastLine:a,perLine:s,perChar:l}=this.heightMetrics(n,i);if(n.lineWrapping){let u=i+Math.round(Math.max(0,Math.min(1,(t-r)/this.height))*this.length),c=n.doc.lineAt(u),d=s+c.length*l,p=Math.max(r,t-d/2);return new cu(c.from,c.length,p,d,0)}else{let u=Math.max(0,Math.min(a-o,Math.floor((t-r)/s))),{from:c,length:d}=n.doc.line(o+u);return new cu(c,d,r+s*u,s,0)}}lineAt(t,n,r,i,o){if(n==Rr.ByHeight)return this.blockAt(t,r,i,o);if(n==Rr.ByPosNoHeight){let{from:h,to:m}=r.doc.lineAt(t);return new cu(h,m-h,0,0,0)}let{firstLine:a,perLine:s,perChar:l}=this.heightMetrics(r,o),u=r.doc.lineAt(t),c=s+u.length*l,d=u.number-a,p=i+s*d+l*(u.from-o-d);return new cu(u.from,u.length,Math.max(i,Math.min(p,i+this.height-c)),c,0)}forEachLine(t,n,r,i,o,a){t=Math.max(t,o),n=Math.min(n,o+this.length);let{firstLine:s,perLine:l,perChar:u}=this.heightMetrics(r,o);for(let c=t,d=i;c<=n;){let p=r.doc.lineAt(c);if(c==t){let m=p.number-s;d+=l*m+u*(t-o-m)}let h=l+u*p.length;a(new cu(p.from,p.length,d,h,0)),d+=h,c=p.to+1}}replace(t,n,r){let i=this.length-n;if(i>0){let o=r[r.length-1];o instanceof so?r[r.length-1]=new so(o.length+i):r.push(null,new so(i-1))}if(t>0){let o=r[0];o instanceof so?r[0]=new so(t+o.length):r.unshift(new so(t-1),null)}return na.of(r)}decomposeLeft(t,n){n.push(new so(t-1),null)}decomposeRight(t,n){n.push(null,new so(this.length-t-1))}updateHeight(t,n=0,r=!1,i){let o=n+this.length;if(i&&i.from<=n+this.length&&i.more){let a=[],s=Math.max(n,i.from),l=-1;for(i.from>n&&a.push(new so(i.from-n-1).updateHeight(t,n));s<=o&&i.more;){let c=t.doc.lineAt(s).length;a.length&&a.push(null);let d=i.heights[i.index++];l==-1?l=d:Math.abs(d-l)>=IE&&(l=-2);let p=new qa(c,d);p.outdated=!1,a.push(p),s+=c+1}s<=o&&a.push(null,new so(o-s).updateHeight(t,s));let u=na.of(a);return(l<0||Math.abs(u.height-this.height)>=IE||Math.abs(l-this.heightMetrics(t,n).perLine)>=IE)&&(t.heightChanged=!0),u}else(r||this.outdated)&&(this.setHeight(t,t.heightForGap(n,n+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class qxe extends na{constructor(t,n,r){super(t.length+n+r.length,t.height+r.height,n|(t.outdated||r.outdated?2:0)),this.left=t,this.right=r,this.size=t.size+r.size}get break(){return this.flags&1}blockAt(t,n,r,i){let o=r+this.left.height;return ts))return u;let c=n==Rr.ByPosNoHeight?Rr.ByPosNoHeight:Rr.ByPos;return l?u.join(this.right.lineAt(s,c,r,a,s)):this.left.lineAt(s,c,r,i,o).join(u)}forEachLine(t,n,r,i,o,a){let s=i+this.left.height,l=o+this.left.length+this.break;if(this.break)t=l&&this.right.forEachLine(t,n,r,s,l,a);else{let u=this.lineAt(l,Rr.ByPos,r,i,o);t=t&&u.from<=n&&a(u),n>u.to&&this.right.forEachLine(u.to+1,n,r,s,l,a)}}replace(t,n,r){let i=this.left.length+this.break;if(nthis.left.length)return this.balanced(this.left,this.right.replace(t-i,n-i,r));let o=[];t>0&&this.decomposeLeft(t,o);let a=o.length;for(let s of r)o.push(s);if(t>0&&q7(o,a-1),n=r&&n.push(null)),t>r&&this.right.decomposeLeft(t-r,n)}decomposeRight(t,n){let r=this.left.length,i=r+this.break;if(t>=i)return this.right.decomposeRight(t-i,n);t2*n.size||n.size>2*t.size?na.of(this.break?[t,null,n]:[t,n]):(this.left=t,this.right=n,this.height=t.height+n.height,this.outdated=t.outdated||n.outdated,this.size=t.size+n.size,this.length=t.length+this.break+n.length,this)}updateHeight(t,n=0,r=!1,i){let{left:o,right:a}=this,s=n+o.length+this.break,l=null;return i&&i.from<=n+o.length&&i.more?l=o=o.updateHeight(t,n,r,i):o.updateHeight(t,n,r),i&&i.from<=s+a.length&&i.more?l=a=a.updateHeight(t,s,r,i):a.updateHeight(t,s,r),l?this.balanced(o,a):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function q7(e,t){let n,r;e[t]==null&&(n=e[t-1])instanceof so&&(r=e[t+1])instanceof so&&e.splice(t-1,3,new so(n.length+1+r.length))}const Zxe=5;class lP{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 qa?i.length+=r-this.pos:(r>this.pos||!this.isCovered)&&this.nodes.push(new qa(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=Zxe)&&this.addLineDeco(i,o,a)}else n>t&&this.span(t,n);this.lineEnd>-1&&this.lineEnd-1)return;let{from:t,to:n}=this.oracle.doc.lineAt(this.pos);this.lineStart=t,this.lineEnd=n,this.writtenTot&&this.nodes.push(new qa(this.pos-t,-1)),this.writtenTo=this.pos}blankContent(t,n){let r=new so(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 qa)return t;let n=new qa(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 qa)&&!this.isCovered?this.nodes.push(new qa(0,-1)):(this.writtenToc.clientHeight||c.scrollWidth>c.clientWidth)&&d.overflow!="visible"){let p=c.getBoundingClientRect();o=Math.max(o,p.left),a=Math.min(a,p.right),s=Math.max(s,p.top),l=u==e.parentNode?p.bottom:Math.min(l,p.bottom)}u=d.position=="absolute"||d.position=="fixed"?c.offsetParent:c.parentNode}else if(u.nodeType==11)u=u.host;else break;return{left:o-n.left,right:Math.max(o,a)-n.left,top:s-(n.top+t),bottom:Math.max(s,l)-(n.top+t)}}function eCe(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}class WC{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 Yxe(n),this.stateDeco=t.facet(ky).filter(r=>typeof r!="function"),this.heightMap=na.empty().applyChanges(this.stateDeco,rr.empty,this.heightOracle.setDoc(t.doc),[new Ys(0,0,0,t.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=sn.set(this.lineGaps.map(r=>r.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let t=[this.viewport],{main:n}=this.state.selection;for(let r=0;r<=1;r++){let i=r?n.head:n.anchor;if(!t.some(({from:o,to:a})=>i>=o&&i<=a)){let{from:o,to:a}=this.lineBlockAt(i);t.push(new Tv(o,a))}}this.viewports=t.sort((r,i)=>r.from-i.from),this.scaler=this.heightMap.height<=7e6?X7:new iCe(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,t=>{this.viewportLines.push(this.scaler.scale==1?t:Q0(t,this.scaler))})}update(t,n=null){this.state=t.state;let r=this.stateDeco;this.stateDeco=this.state.facet(ky).filter(c=>typeof c!="function");let i=t.changedRanges,o=Ys.extendWithRanges(i,Xxe(r,this.stateDeco,t?t.changes:Ii.empty(this.state.doc.length))),a=this.heightMap.height,s=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,t.startState.doc,this.heightOracle.setDoc(this.state.doc),o),this.heightMap.height!=a&&(t.flags|=2),s?(this.scrollAnchorPos=t.changes.mapPos(s.from,-1),this.scrollAnchorHeight=s.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let l=o.length?this.mapViewport(this.viewport,t.changes):this.viewport;(n&&(n.range.headl.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,n));let u=!t.changes.empty||t.flags&2||l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,this.updateForViewport(),u&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,t.changes))),t.flags|=this.computeVisibleRanges(),n&&(this.scrollTarget=n),!this.mustEnforceCursorAssoc&&t.selectionSet&&t.view.lineWrapping&&t.state.selection.main.empty&&t.state.selection.main.assoc&&!t.state.facet(fq)&&(this.mustEnforceCursorAssoc=!0)}measure(t){let n=t.contentDOM,r=window.getComputedStyle(n),i=this.heightOracle,o=r.whiteSpace;this.defaultTextDirection=r.direction=="rtl"?Dr.RTL:Dr.LTR;let a=this.heightOracle.mustRefreshForWrapping(o),s=n.getBoundingClientRect(),l=a||this.mustMeasureContent||this.contentDOMHeight!=s.height;this.contentDOMHeight=s.height,this.mustMeasureContent=!1;let u=0,c=0;if(s.width&&s.height){let{scaleX:k,scaleY:C}=jG(n,s);(this.scaleX!=k||this.scaleY!=C)&&(this.scaleX=k,this.scaleY=C,u|=8,a=l=!0)}let d=(parseInt(r.paddingTop)||0)*this.scaleY,p=(parseInt(r.paddingBottom)||0)*this.scaleY;(this.paddingTop!=d||this.paddingBottom!=p)&&(this.paddingTop=d,this.paddingBottom=p,u|=10),this.editorWidth!=t.scrollDOM.clientWidth&&(i.lineWrapping&&(l=!0),this.editorWidth=t.scrollDOM.clientWidth,u|=8);let h=t.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=h&&(this.scrollAnchorHeight=-1,this.scrollTop=h),this.scrolledToBottom=HG(t.scrollDOM);let m=(this.printing?eCe:Jxe)(n,this.paddingTop),y=m.top-this.pixelViewport.top,O=m.bottom-this.pixelViewport.bottom;this.pixelViewport=m;let b=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(b!=this.inView&&(this.inView=b,b&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;let v=s.width;if((this.contentDOMWidth!=v||this.editorHeight!=t.scrollDOM.clientHeight)&&(this.contentDOMWidth=s.width,this.editorHeight=t.scrollDOM.clientHeight,u|=8),l){let k=t.docView.measureVisibleLineHeights(this.viewport);if(i.mustRefreshForHeights(k)&&(a=!0),a||i.lineWrapping&&Math.abs(v-this.contentDOMWidth)>i.charWidth){let{lineHeight:C,charWidth:w,textHeight:E}=t.docView.measureTextSize();a=C>0&&i.refresh(o,C,w,E,v/w,k),a&&(t.docView.minWidth=0,u|=8)}y>0&&O>0?c=Math.max(y,O):y<0&&O<0&&(c=Math.min(y,O)),i.heightChanged=!1;for(let C of this.viewports){let w=C.from==this.viewport.from?k:t.docView.measureVisibleLineHeights(C);this.heightMap=(a?na.empty().applyChanges(this.stateDeco,rr.empty,this.heightOracle,[new Ys(0,0,0,t.state.doc.length)]):this.heightMap).updateHeight(i,0,a,new Gxe(C.from,w))}i.heightChanged&&(u|=2)}let S=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return S&&(this.viewport=this.getViewport(c,this.scrollTarget)),this.updateForViewport(),(u&2||S)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(a?[]:this.lineGaps,t)),u|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,t.docView.enforceCursorAssoc()),u}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(t,n){let r=.5-Math.max(-.5,Math.min(.5,t/1e3/2)),i=this.heightMap,o=this.heightOracle,{visibleTop:a,visibleBottom:s}=this,l=new Tv(i.lineAt(a-r*1e3,Rr.ByHeight,o,0,0).from,i.lineAt(s+(1-r)*1e3,Rr.ByHeight,o,0,0).to);if(n){let{head:u}=n.range;if(ul.to){let c=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),d=i.lineAt(u,Rr.ByPos,o,0,0),p;n.y=="center"?p=(d.top+d.bottom)/2-c/2:n.y=="start"||n.y=="nearest"&&u=s+Math.max(10,Math.min(r,250)))&&i>a-2*1e3&&o>1,a=i<<1;if(this.defaultTextDirection!=Dr.LTR&&!r)return[];let s=[],l=(u,c,d,p)=>{if(c-uu&&OO.from>=d.from&&O.to<=d.to&&Math.abs(O.from-u)O.fromb));if(!y){if(cO.from<=c&&O.to>=c)){let O=n.moveToLineBoundary(Je.cursor(c),!1,!0).head;O>u&&(c=O)}y=new WC(u,c,this.gapSize(d,u,c,p))}s.push(y)};for(let u of this.viewportLines){if(u.lengthu.from&&l(u.from,p,u,c),hn.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let n=[];Xn.spans(t,this.viewport.from,this.viewport.to,{span(i,o){n.push({from:i,to:o})},point(){}},20);let r=n.length!=this.visibleRanges.length||this.visibleRanges.some((i,o)=>i.from!=n[o].from||i.to!=n[o].to);return this.visibleRanges=n,r?4:0}lineBlockAt(t){return t>=this.viewport.from&&t<=this.viewport.to&&this.viewportLines.find(n=>n.from<=t&&n.to>=t)||Q0(this.heightMap.lineAt(t,Rr.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(t){return Q0(this.heightMap.lineAt(this.scaler.fromDOM(t),Rr.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 Q0(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 Tv{constructor(t,n){this.from=t,this.to=n}}function nCe(e,t,n){let r=[],i=e,o=0;return Xn.spans(n,e,t,{span(){},point(a,s){a>i&&(r.push({from:i,to:a}),o+=a-i),i=s}},20),i=1)return t[t.length-1].to;let r=Math.floor(e*n);for(let i=0;;i++){let{from:o,to:a}=t[i],s=a-o;if(r<=s)return o+r;r-=s}}function kv(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 rCe(e,t){for(let n of e)if(t(n))return n}const X7={toDOM(e){return e},fromDOM(e){return e},scale:1};class iCe{constructor(t,n,r){let i=0,o=0,a=0;this.viewports=r.map(({from:s,to:l})=>{let u=n.lineAt(s,Rr.ByPos,t,0,0).top,c=n.lineAt(l,Rr.ByPos,t,0,0).bottom;return i+=c-u,{from:s,to:l,top:u,bottom:c,domTop:0,domBottom:0}}),this.scale=(7e6-i)/(n.height-i);for(let s of this.viewports)s.domTop=a+(s.top-o)*this.scale,a=s.domBottom=s.domTop+(s.bottom-s.top),o=s.bottom}toDOM(t){for(let n=0,r=0,i=0;;n++){let o=nQ0(i,t)):e._content)}const xv=Gt.define({combine:e=>e.join(" ")}),oR=Gt.define({combine:e=>e.indexOf(!0)>-1}),aR=$d.newName(),Iq=$d.newName(),Nq=$d.newName(),Dq={"&light":"."+Iq,"&dark":"."+Nq};function sR(e,t,n){return new $d(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 oCe=sR("."+aR,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},Dq),Y0="￿";class aCe{constructor(t,n){this.points=t,this.text="",this.lineSeparator=n.facet(qn.lineSeparator)}append(t){this.text+=t}lineBreak(){this.text+=Y0}readRange(t,n){if(!t)return this;let r=t.parentNode;for(let i=t;;){this.findPointBefore(r,i);let o=this.text.length;this.readNode(i);let a=i.nextSibling;if(a==n)break;let s=Ir.get(i),l=Ir.get(a);(s&&l?s.breakAfter:(s?s.breakAfter:K7(i))||K7(a)&&(i.nodeName!="BR"||i.cmIgnore)&&this.text.length>o)&&this.lineBreak(),i=a}return this.findPointBefore(r,n),this}readTextNode(t){let n=t.nodeValue;for(let r of this.points)r.node==t&&(r.pos=this.text.length+Math.min(r.offset,n.length));for(let r=0,i=this.lineSeparator?null:/\r\n?|\n/g;;){let o=-1,a=1,s;if(this.lineSeparator?(o=n.indexOf(this.lineSeparator,r),a=this.lineSeparator.length):(s=i.exec(n))&&(o=s.index,a=s[0].length),this.append(n.slice(r,o<0?n.length:o)),o<0)break;if(this.lineBreak(),a>1)for(let l of this.points)l.node==t&&l.pos>this.text.length&&(l.pos-=a-1);r=o+a}}readNode(t){if(t.cmIgnore)return;let n=Ir.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+(sCe(t,r.node,r.offset)?n:0))}}function sCe(e,t,n){for(;;){if(!t||n-1)this.newSel=null;else if(n>-1&&(this.bounds=t.docView.domBoundsAround(n,r,0))){let s=o||a?[]:dCe(t),l=new aCe(s,t.state);l.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=l.text,this.newSel=fCe(s,this.bounds.from)}else{let s=t.observer.selectionRange,l=o&&o.node==s.focusNode&&o.offset==s.focusOffset||!W_(t.contentDOM,s.focusNode)?t.state.selection.main.head:t.docView.posFromDOM(s.focusNode,s.focusOffset),u=a&&a.node==s.anchorNode&&a.offset==s.anchorOffset||!W_(t.contentDOM,s.anchorNode)?t.state.selection.main.anchor:t.docView.posFromDOM(s.anchorNode,s.anchorOffset),c=t.viewport;if(Jt.ios&&t.state.selection.main.empty&&l!=u&&(c.from>0||c.toDate.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:a,to:s}=t.bounds,l=i.from,u=null;(o===8||Jt.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))}:(Jt.mac||Jt.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=Je.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:rr.of([" "])}):Jt.chrome&&n&&n.from==n.to&&n.from==i.head&&n.insert.toString()==` - `&&e.lineWrapping&&(r&&(r=Je.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:rr.of([" "])}),n){if(Jt.ios&&e.inputState.flushIOSKey()||Jt.android&&(n.from==i.from&&n.to==i.to&&n.insert.length==1&&n.insert.lines==2&&Jh(e.contentDOM,"Enter",13)||(n.from==i.from-1&&n.to==i.to&&n.insert.length==0||o==8&&n.insert.lengthi.head)&&Jh(e.contentDOM,"Backspace",8)||n.from==i.from&&n.to==i.to+1&&n.insert.length==0&&Jh(e.contentDOM,"Delete",46)))return!0;let a=n.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let s,l=()=>s||(s=uCe(e,n,r));return e.state.facet(uq).some(u=>u(e,n.from,n.to,a,l))||e.dispatch(l()),!0}else if(r&&!r.main.eq(i)){let a=!1,s="select";return e.inputState.lastSelectionTime>Date.now()-50&&(e.inputState.lastSelectionOrigin=="select"&&(a=!0),s=e.inputState.lastSelectionOrigin),e.dispatch({selection:r,scrollIntoView:a,userEvent:s}),!0}else return!1}function uCe(e,t,n){let r,i=e.state,o=i.selection.main;if(t.from>=o.from&&t.to<=o.to&&t.to-t.from>=(o.to-o.from)/3&&(!n||n.main.empty&&n.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let s=o.fromt.to?i.sliceDoc(t.to,o.to):"";r=i.replaceSelection(e.state.toText(s+t.insert.sliceString(0,void 0,e.state.lineBreak)+l))}else{let s=i.changes(t),l=n&&n.main.to<=s.newLength?n.main:void 0;if(i.selection.ranges.length>1&&e.inputState.composing>=0&&t.to<=o.to&&t.to>=o.to-10){let u=e.state.sliceDoc(t.from,t.to),c,d=n&&yq(e,n.main.head);if(d){let m=t.insert.length-(t.to-t.from);c={from:d.from,to:d.to-m}}else c=e.state.doc.lineAt(o.head);let p=o.to-t.to,h=o.to-o.from;r=i.changeByRange(m=>{if(m.from==o.from&&m.to==o.to)return{changes:s,range:l||m.map(s)};let y=m.to-p,O=y-u.length;if(m.to-m.from!=h||e.state.sliceDoc(O,y)!=u||m.to>=c.from&&m.from<=c.to)return{range:m};let b=i.changes({from:O,to:y,insert:t.insert}),v=m.to-o.to;return{changes:b,range:l?Je.range(Math.max(0,l.anchor+v),Math.max(0,l.head+v)):m.map(b)}})}else r={changes:s,selection:l&&i.selection.replaceRange(l)}}let a="input.type";return(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,a+=".compose",e.inputState.compositionFirstChange&&(a+=".start",e.inputState.compositionFirstChange=!1)),i.update(r,{userEvent:a,scrollIntoView:!0})}function cCe(e,t,n,r){let i=Math.min(e.length,t.length),o=0;for(;o0&&s>0&&e.charCodeAt(a-1)==t.charCodeAt(s-1);)a--,s--;if(r=="end"){let l=Math.max(0,o-Math.min(a,s));n-=a+l-o}if(a=a?o-n:0;o-=l,s=o+(s-a),a=o}else if(s=s?o-n:0;o-=l,a=o+(a-s),s=o}return{from:o,toA:a,toB:s}}function dCe(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}=e.observer.selectionRange;return n&&(t.push(new J7(n,r)),(i!=n||o!=r)&&t.push(new J7(i,o))),t}function fCe(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?Je.single(n+t,r+t):null}const pCe={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},QC=Jt.ie&&Jt.ie_version<=11;class hCe{constructor(t){this.view=t,this.active=!1,this.selectionRange=new Xke,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=t.contentDOM,this.observer=new MutationObserver(n=>{for(let r of n)this.queue.push(r);(Jt.ie&&Jt.ie_version<=11||Jt.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()}),QC&&(this.onCharData=n=>{this.queue.push({target:n.target,type:"characterData",oldValue:n.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var n;((n=this.view.docView)===null||n===void 0?void 0:n.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),n.length>0&&n[n.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(n=>{n.length>0&&n[n.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(t){this.view.inputState.runHandlers("scroll",t),this.intersecting&&this.view.measure()}onScroll(t){this.intersecting&&this.flush(!1),this.onScrollChanged(t)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500)}updateGaps(t){if(this.gapIntersection&&(t.length!=this.gaps.length||this.gaps.some((n,r)=>n!=t[r]))){this.gapIntersection.disconnect();for(let n of t)this.gapIntersection.observe(n);this.gaps=t}}onSelectionChange(t){let n=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:r}=this,i=this.selectionRange;if(r.state.facet(Ck)?r.root.activeElement!=this.dom:!_E(r.dom,i))return;let o=i.anchorNode&&r.docView.nearest(i.anchorNode);if(o&&o.ignoreEvent(t)){n||(this.selectionChanged=!1);return}(Jt.ie&&Jt.ie_version<=11||Jt.android&&Jt.chrome)&&!r.state.selection.main.empty&&i.focusNode&&vb(i.focusNode,i.focusOffset,i.anchorNode,i.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:t}=this,n=Jt.safari&&t.root.nodeType==11&&Yke(this.dom.ownerDocument)==this.dom&&mCe(this.view)||JS(t.root);if(!n||this.selectionRange.eq(n))return!1;let r=_E(this.dom,n);return r&&!this.selectionChanged&&t.inputState.lastFocusTime>Date.now()-200&&t.inputState.lastTouchTime{let o=this.delayedAndroidKey;o&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=o.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&o.force&&Jh(this.dom,o.key,o.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(i)}(!this.delayedAndroidKey||t=="Enter")&&(this.delayedAndroidKey={key:t,keyCode:n,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}processRecords(){let t=this.pendingRecords();t.length&&(this.queue=[]);let n=-1,r=-1,i=!1;for(let o of t){let a=this.readMutation(o);a&&(a.typeOver&&(i=!0),n==-1?{from:n,to:r}=a:(n=Math.min(a.from,n),r=Math.max(a.to,r)))}return{from:n,to:r,typeOver:i}}readChange(){let{from:t,to:n,typeOver:r}=this.processRecords(),i=this.selectionChanged&&_E(this.dom,this.selectionRange);if(t<0&&!i)return null;t>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let o=new lCe(this.view,t,n,r);return this.view.docView.domChanged={newSel:o.newSel?o.newSel.main:null},o}flush(t=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;t&&this.readSelectionRange();let n=this.readChange();if(!n)return this.view.requestMeasure(),!1;let r=this.view.state,i=Pq(this.view,n);return this.view.state==r&&this.view.update([]),i}readMutation(t){let n=this.view.docView.nearest(t.target);if(!n||n.ignoreMutation(t))return null;if(n.markDirty(t.type=="attributes"),t.type=="attributes"&&(n.flags|=4),t.type=="childList"){let r=eU(n,t.previousSibling||t.target.previousSibling,-1),i=eU(n,t.nextSibling||t.target.nextSibling,1);return{from:r?n.posAfter(r):n.posAtStart,to:i?n.posBefore(i):n.posAtEnd,typeOver:!1}}else return t.type=="characterData"?{from:n.posAtStart,to:n.posAtEnd,typeOver:t.target.nodeValue==t.oldValue}:null}setWindow(t){t!=this.win&&(this.removeWindowListeners(this.win),this.win=t,this.addWindowListeners(this.win))}addWindowListeners(t){t.addEventListener("resize",this.onResize),t.addEventListener("beforeprint",this.onPrint),t.addEventListener("scroll",this.onScroll),t.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(t){t.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onResize),t.removeEventListener("beforeprint",this.onPrint),t.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var t,n,r;this.stop(),(t=this.intersection)===null||t===void 0||t.disconnect(),(n=this.gapIntersection)===null||n===void 0||n.disconnect(),(r=this.resizeScroll)===null||r===void 0||r.disconnect();for(let i of this.scrollTargets)i.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function eU(e,t,n){for(;t;){let r=Ir.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 mCe(e){let t=null;function n(l){l.preventDefault(),l.stopImmediatePropagation(),t=l.getTargetRanges()[0]}if(e.contentDOM.addEventListener("beforeinput",n,!0),e.dom.ownerDocument.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",n,!0),!t)return null;let r=t.startContainer,i=t.startOffset,o=t.endContainer,a=t.endOffset,s=e.docView.domAtPos(e.state.selection.main.anchor);return vb(s.node,s.offset,o,a)&&([r,i,o,a]=[o,a,r,i]),{anchorNode:r,anchorOffset:i,focusNode:o,focusOffset:a}}class Vt{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(t={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),t.parent&&t.parent.appendChild(this.dom);let{dispatch:n}=t;this.dispatchTransactions=t.dispatchTransactions||n&&(r=>r.forEach(i=>n(i,this)))||(r=>this.update(r)),this.dispatch=this.dispatch.bind(this),this._root=t.root||Kke(t.parent)||document,this.viewState=new Z7(t.state||qn.create(t)),t.scrollTo&&t.scrollTo.is(vv)&&(this.viewState.scrollTarget=t.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(H0).map(r=>new zC(r));for(let r of this.plugins)r.update(this);this.observer=new hCe(this),this.inputState=new Rxe(this),this.inputState.ensureHandlers(this.plugins),this.docView=new N7(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...t){let n=t.length==1&&t[0]instanceof Si?t:t.length==1&&Array.isArray(t[0])?t[0]:[this.state.update(...t)];this.dispatchTransactions(n,this)}update(t){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let n=!1,r=!1,i,o=this.state;for(let p of t){if(p.startState!=o)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");o=p.state}if(this.destroyed){this.viewState.state=o;return}let a=this.hasFocus,s=0,l=null;t.some(p=>p.annotation(Cq))?(this.inputState.notifiedFocused=a,s=1):a!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=a,l=Aq(o,a),l||(s=1));let u=this.observer.delayedAndroidKey,c=null;if(u?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(o.doc)||!this.state.selection.eq(o.selection))&&(c=null)):this.observer.clear(),o.facet(qn.phrases)!=this.state.facet(qn.phrases))return this.setState(o);i=eT.create(this,o,t),i.flags|=s;let d=this.viewState.scrollTarget;try{this.updateState=2;for(let p of t){if(d&&(d=d.map(p.changes)),p.scrollIntoView){let{main:h}=p.state.selection;d=new em(h.empty?h:Je.cursor(h.head,h.head>h.anchor?-1:1))}for(let h of p.effects)h.is(vv)&&(d=h.value.clip(this.state))}this.viewState.update(i,d),this.bidiCache=tT.update(this.bidiCache,i.changes),i.empty||(this.updatePlugins(i),this.inputState.update(i)),n=this.docView.update(i),this.state.facet(W0)!=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(xv)!=i.state.facet(xv)&&(this.viewState.mustMeasureContent=!0),(n||r||d||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!i.empty)for(let p of this.state.facet(tR))try{p(i)}catch(h){Qs(this.state,h,"update listener")}(l||c)&&Promise.resolve().then(()=>{l&&this.state==l.startState&&this.dispatch(l),c&&!Pq(this,c)&&u.force&&Jh(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 Z7(t),this.plugins=t.facet(H0).map(r=>new zC(r)),this.pluginMap.clear();for(let r of this.plugins)r.update(this);this.docView.destroy(),this.docView=new N7(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(H0),r=t.state.facet(H0);if(n!=r){let i=[];for(let o of r){let a=n.indexOf(o);if(a<0)i.push(new zC(o));else{let s=this.plugins[a];s.mustUpdate=t,i.push(s)}}for(let o of this.plugins)o.mustUpdate!=t&&o.destroy(this);this.plugins=i,this.pluginMap.clear()}else for(let i of this.plugins)i.mustUpdate=t;for(let i=0;i-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,t&&this.observer.forceFlush();let n=null,r=this.scrollDOM,i=r.scrollTop*this.scaleY,{scrollAnchorPos:o,scrollAnchorHeight:a}=this.viewState;Math.abs(i-this.viewState.scrollTop)>1&&(a=-1),this.viewState.scrollAnchorHeight=-1;try{for(let s=0;;s++){if(a<0)if(HG(r))o=-1,a=this.viewState.heightMap.height;else{let h=this.viewState.scrollAnchorAt(i);o=h.from,a=h.top}this.updateState=1;let l=this.viewState.measure(this);if(!l&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(s>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let u=[];l&4||([this.measureRequests,u]=[u,this.measureRequests]);let c=u.map(h=>{try{return h.read(this)}catch(m){return Qs(this.state,m),tU}}),d=eT.create(this,this.state,[]),p=!1;d.flags|=l,n?n.flags|=l:n=d,this.updateState=2,d.empty||(this.updatePlugins(d),this.inputState.update(d),this.updateAttrs(),p=this.docView.update(d));for(let h=0;h1||m<-1){i=i+m,r.scrollTop=i/this.scaleY,a=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(n&&!n.empty)for(let s of this.state.facet(tR))s(n)}get themeClasses(){return aR+" "+(this.state.facet(oR)?Nq:Iq)+" "+this.state.facet(xv)}updateAttrs(){let t=nU(this,pq,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),n={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(Ck)?"true":"false",class:"cm-content",style:`${Jt.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(n["aria-readonly"]="true"),nU(this,aP,n);let r=this.observer.ignore(()=>{let i=Z_(this.contentDOM,this.contentAttrs,n),o=Z_(this.dom,this.editorAttrs,t);return i||o});return this.editorAttrs=t,this.contentAttrs=n,r}showAnnouncements(t){let n=!0;for(let r of t)for(let i of r.effects)if(i.is(Vt.announce)){n&&(this.announceDOM.textContent=""),n=!1;let o=this.announceDOM.appendChild(document.createElement("div"));o.textContent=i.value}}mountStyles(){this.styleModules=this.state.facet(W0);let t=this.state.facet(Vt.cspNonce);$d.mount(this.root,this.styleModules.concat(oCe).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 HC(this,t,F7(this,t,n,r))}moveByGroup(t,n){return HC(this,t,F7(this,t,n,r=>Axe(this,t.head,r)))}visualLineSide(t,n){let r=this.bidiSpans(t),i=this.textDirectionAt(t.from),o=r[n?r.length-1:0];return Je.cursor(o.side(n,i)+t.from,o.forward(!n,i)?1:-1)}moveToLineBoundary(t,n,r=!0){return Cxe(this,t,n,r)}moveVertically(t,n,r){return HC(this,t,_xe(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(),vq(this,t,n)}coordsAtPos(t,n=1){this.readMeasured();let r=this.docView.coordsAt(t,n);if(!r||r.left==r.right)return r;let i=this.state.doc.lineAt(t),o=this.bidiSpans(i),a=o[fd.find(o,t-i.from,-1,n)];return nP(r,a.dir==Dr.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(dq)||tthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(t))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(t){if(t.length>gCe)return rq(t.length);let n=this.textDirectionAt(t.from),r;for(let o of this.bidiCache)if(o.from==t.from&&o.dir==n&&(o.fresh||nq(o.isolates,r=I7(this,t))))return o.order;r||(r=I7(this,t));let i=dxe(t.text,n,r);return this.bidiCache.push(new tT(t.from,t.to,n,r,!0,i)),i}get hasFocus(){var t;return(this.dom.ownerDocument.hasFocus()||Jt.safari&&((t=this.inputState)===null||t===void 0?void 0:t.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{zG(this.contentDOM),this.docView.updateSelection()})}setRoot(t){this._root!=t&&(this._root=t,this.observer.setWindow((t.nodeType==9?t:t.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let t of this.plugins)t.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(t,n={}){return vv.of(new em(typeof t=="number"?Je.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 vv.of(new em(Je.cursor(r.from),"start","start",r.top-t,n,!0))}static domEventHandlers(t){return Kr.define(()=>({}),{eventHandlers:t})}static domEventObservers(t){return Kr.define(()=>({}),{eventObservers:t})}static theme(t,n){let r=$d.newName(),i=[xv.of(r),W0.of(sR(`.${r}`,t))];return n&&n.dark&&i.push(oR.of(!0)),i}static baseTheme(t){return Zd.lowest(W0.of(sR("."+aR,t,Dq)))}static findFromDOM(t){var n;let r=t.querySelector(".cm-content"),i=r&&Ir.get(r)||Ir.get(t);return((n=i==null?void 0:i.rootView)===null||n===void 0?void 0:n.view)||null}}Vt.styleModule=W0;Vt.inputHandler=uq;Vt.focusChangeEffect=cq;Vt.perLineTextDirection=dq;Vt.exceptionSink=lq;Vt.updateListener=tR;Vt.editable=Ck;Vt.mouseSelectionStyle=sq;Vt.dragMovesSelection=aq;Vt.clickAddsSelectionRange=oq;Vt.decorations=ky;Vt.outerDecorations=hq;Vt.atomicRanges=sP;Vt.bidiIsolatedRanges=mq;Vt.scrollMargins=gq;Vt.darkTheme=oR;Vt.cspNonce=Gt.define({combine:e=>e.length?e[0]:""});Vt.contentAttributes=aP;Vt.editorAttributes=pq;Vt.lineWrapping=Vt.contentAttributes.of({class:"cm-lineWrapping"});Vt.announce=xn.define();const gCe=4096,tU={};class tT{constructor(t,n,r,i,o,a){this.from=t,this.to=n,this.dir=r,this.isolates=i,this.fresh=o,this.order=a}static update(t,n){if(n.empty&&!t.some(o=>o.fresh))return t;let r=[],i=t.length?t[t.length-1].dir:Dr.LTR;for(let o=Math.max(0,t.length-10);o=0;i--){let o=r[i],a=typeof o=="function"?o(e):o;a&&q_(a,n)}return n}const bCe=Jt.mac?"mac":Jt.windows?"win":Jt.linux?"linux":"key";function yCe(e,t){const n=e.split(/-(?!$)/);let r=n[n.length-1];r=="Space"&&(r=" ");let i,o,a,s;for(let l=0;lr.concat(i),[]))),n}function vCe(e,t,n){return Mq(Lq(e.state),t,e,n)}let Kc=null;const ECe=4e3;function SCe(e,t=bCe){let n=Object.create(null),r=Object.create(null),i=(a,s)=>{let l=r[a];if(l==null)r[a]=s;else if(l!=s)throw new Error("Key binding "+a+" is used both as a regular binding and as a multi-stroke prefix")},o=(a,s,l,u,c)=>{var d,p;let h=n[a]||(n[a]=Object.create(null)),m=s.split(/ (?!$)/).map(b=>yCe(b,t));for(let b=1;b{let k=Kc={view:S,prefix:v,scope:a};return setTimeout(()=>{Kc==k&&(Kc=null)},ECe),!0}]})}let y=m.join(" ");i(y,!1);let O=h[y]||(h[y]={preventDefault:!1,stopPropagation:!1,run:((p=(d=h._any)===null||d===void 0?void 0:d.run)===null||p===void 0?void 0:p.slice())||[]});l&&O.run.push(l),u&&(O.preventDefault=!0),c&&(O.stopPropagation=!0)};for(let a of e){let s=a.scope?a.scope.split(" "):["editor"];if(a.any)for(let u of s){let c=n[u]||(n[u]=Object.create(null));c._any||(c._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let d in c)c[d].run.push(a.any)}let l=a[t]||a.key;if(l)for(let u of s)o(u,l,a.run,a.preventDefault,a.stopPropagation),a.shift&&o(u,"Shift-"+l,a.shift,a.preventDefault,a.stopPropagation)}return n}function Mq(e,t,n,r){let i=Qke(t),o=uo(i,0),a=$s(o)==i.length&&i!=" ",s="",l=!1,u=!1,c=!1;Kc&&Kc.view==n&&Kc.scope==r&&(s=Kc.prefix+" ",Sq.indexOf(t.keyCode)<0&&(u=!0,Kc=null));let d=new Set,p=O=>{if(O){for(let b of O.run)if(!d.has(b)&&(d.add(b),b(n,t)))return O.stopPropagation&&(c=!0),!0;O.preventDefault&&(O.stopPropagation&&(c=!0),u=!0)}return!1},h=e[r],m,y;return h&&(p(h[s+Cv(i,t,!a)])?l=!0:a&&(t.altKey||t.metaKey||t.ctrlKey)&&!(Jt.windows&&t.ctrlKey&&t.altKey)&&(m=Fd[t.keyCode])&&m!=i?(p(h[s+Cv(m,t,!0)])||t.shiftKey&&(y=Sy[t.keyCode])!=i&&y!=m&&p(h[s+Cv(y,t,!1)]))&&(l=!0):a&&t.shiftKey&&p(h[s+Cv(i,t,!0)])&&(l=!0),!l&&p(h._any)&&(l=!0)),u&&(l=!0),l&&c&&t.stopPropagation(),l}class V1{constructor(t,n,r,i,o){this.className=t,this.left=n,this.top=r,this.width=i,this.height=o}draw(){let t=document.createElement("div");return t.className=this.className,this.adjust(t),t}update(t,n){return n.className!=this.className?!1:(this.adjust(t),!0)}adjust(t){t.style.left=this.left+"px",t.style.top=this.top+"px",this.width!=null&&(t.style.width=this.width+"px"),t.style.height=this.height+"px"}eq(t){return this.left==t.left&&this.top==t.top&&this.width==t.width&&this.height==t.height&&this.className==t.className}static forRange(t,n,r){if(r.empty){let i=t.coordsAtPos(r.head,r.assoc||1);if(!i)return[];let o=$q(t);return[new V1(n,i.left-o.left,i.top-o.top,null,i.bottom-i.top)]}else return TCe(t,n,r)}}function $q(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==Dr.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}function iU(e,t,n){let r=Je.cursor(t);return{from:Math.max(n.from,e.moveToLineBoundary(r,!1,!0).from),to:Math.min(n.to,e.moveToLineBoundary(r,!0,!0).from),type:ta.Text}}function TCe(e,t,n){if(n.to<=e.viewport.from||n.from>=e.viewport.to)return[];let r=Math.max(n.from,e.viewport.from),i=Math.min(n.to,e.viewport.to),o=e.textDirection==Dr.LTR,a=e.contentDOM,s=a.getBoundingClientRect(),l=$q(e),u=a.querySelector(".cm-line"),c=u&&window.getComputedStyle(u),d=s.left+(c?parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)):0),p=s.right-(c?parseInt(c.paddingRight):0),h=rR(e,r),m=rR(e,i),y=h.type==ta.Text?h:null,O=m.type==ta.Text?m:null;if(y&&(e.lineWrapping||h.widgetLineBreaks)&&(y=iU(e,r,y)),O&&(e.lineWrapping||m.widgetLineBreaks)&&(O=iU(e,i,O)),y&&O&&y.from==O.from)return v(S(n.from,n.to,y));{let C=y?S(n.from,null,y):k(h,!1),w=O?S(null,n.to,O):k(m,!0),E=[];return(y||h).to<(O||m).from-(y&&O?1:0)||h.widgetLineBreaks>1&&C.bottom+e.defaultLineHeight/2U&&z.from=X)break;j>Q&&B(Math.max(q,Q),C==null&&q<=U,Math.min(j,X),w==null&&j>=V,Y.dir)}if(Q=Z.to+1,Q>=X)break}return R.length==0&&B(U,C==null,V,w==null,e.textDirection),{top:$,bottom:D,horizontal:R}}function k(C,w){let E=s.top+(w?C.top:C.bottom);return{top:E,bottom:E,horizontal:[]}}}function wCe(e,t){return e.constructor==t.constructor&&e.eq(t)}class kCe{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(NE)!=t.state.facet(NE)&&this.setOrder(t.state),(this.layer.update(t,this.dom)||t.geometryChanged)&&(this.scale(),t.view.requestMeasure(this.measureReq))}setOrder(t){let n=0,r=t.facet(NE);for(;n!wCe(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 NE=Gt.define();function Fq(e){return[Kr.define(t=>new kCe(t,e)),NE.of(e)]}const Bq=!Jt.ios,xy=Gt.define({combine(e){return Iu(e,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(t,n)=>Math.min(t,n),drawRangeCursor:(t,n)=>t||n})}});function xCe(e={}){return[xy.of(e),CCe,ACe,_Ce,fq.of(!0)]}function Uq(e){return e.startState.facet(xy)!=e.state.facet(xy)}const CCe=Fq({above:!0,markers(e){let{state:t}=e,n=t.facet(xy),r=[];for(let i of t.selection.ranges){let o=i==t.selection.main;if(i.empty?!o||Bq:n.drawRangeCursor){let a=o?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",s=i.empty?i:Je.cursor(i.head,i.head>i.anchor?-1:1);for(let l of V1.forRange(e,a,s))r.push(l)}}return r},update(e,t){e.transactions.some(r=>r.selection)&&(t.style.animationName=t.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let n=Uq(e);return n&&oU(e.state,t),e.docChanged||e.selectionSet||n},mount(e,t){oU(t.state,e)},class:"cm-cursorLayer"});function oU(e,t){t.style.animationDuration=e.facet(xy).cursorBlinkRate+"ms"}const ACe=Fq({above:!1,markers(e){return e.state.selection.ranges.map(t=>t.empty?[]:V1.forRange(e,"cm-selectionBackground",t)).reduce((t,n)=>t.concat(n))},update(e,t){return e.docChanged||e.selectionSet||e.viewportChanged||Uq(e)},class:"cm-selectionLayer"}),lR={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};Bq&&(lR[".cm-line"].caretColor="transparent !important",lR[".cm-content"]={caretColor:"transparent !important"});const _Ce=Zd.highest(Vt.theme(lR)),jq=xn.define({map(e,t){return e==null?null:t.mapPos(e)}}),G0=Ki.define({create(){return null},update(e,t){return e!=null&&(e=t.changes.mapPos(e)),t.effects.reduce((n,r)=>r.is(jq)?r.value:n,e)}}),RCe=Kr.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(G0);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(G0)!=n||e.docChanged||e.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:e}=this,t=e.state.field(G0),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(G0)!=e&&this.view.dispatch({effects:jq.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 ICe(){return[G0,RCe]}function aU(e,t,n,r,i){t.lastIndex=0;for(let o=e.iterRange(n,r),a=n,s;!o.next().done;a+=o.value.length)if(!o.lineBreak)for(;s=t.exec(o.value);)i(a+s.index,s)}function NCe(e,t){let n=e.visibleRanges;if(n.length==1&&n[0].from==e.viewport.from&&n[0].to==e.viewport.to)return n;let r=[];for(let{from:i,to:o}of n)i=Math.max(e.state.doc.lineAt(i).from,i-t),o=Math.min(e.state.doc.lineAt(o).to,o+t),r.length&&r[r.length-1].to>=i?r[r.length-1].to=o:r.push({from:i,to:o});return r}class DCe{constructor(t){const{regexp:n,decoration:r,decorate:i,boundary:o,maxLength:a=1e3}=t;if(!n.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=n,i)this.addMatch=(s,l,u,c)=>i(c,u,u+s[0].length,s,l);else if(typeof r=="function")this.addMatch=(s,l,u,c)=>{let d=r(s,l,u);d&&c(u,u+s[0].length,d)};else if(r)this.addMatch=(s,l,u,c)=>c(u,u+s[0].length,r);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=o,this.maxLength=a}createDeco(t){let n=new Md,r=n.add.bind(n);for(let{from:i,to:o}of NCe(t,this.maxLength))aU(t.state.doc,this.regexp,i,o,(a,s)=>this.addMatch(s,t,a,r));return n.finish()}updateDeco(t,n){let r=1e9,i=-1;return t.docChanged&&t.changes.iterChanges((o,a,s,l)=>{l>t.view.viewport.from&&s1e3?this.createDeco(t.view):i>-1?this.updateRange(t.view,n.map(t.changes),r,i):n}updateRange(t,n,r,i){for(let o of t.visibleRanges){let a=Math.max(o.from,r),s=Math.min(o.to,i);if(s>a){let l=t.state.doc.lineAt(a),u=l.tol.from;a--)if(this.boundary.test(l.text[a-1-l.from])){c=a;break}for(;sp.push(b.range(y,O));if(l==u)for(this.regexp.lastIndex=c-l.from;(h=this.regexp.exec(l.text))&&h.indexthis.addMatch(O,t,y,m));n=n.update({filterFrom:c,filterTo:d,filter:(y,O)=>yd,add:p})}}return n}}const uR=/x/.unicode!=null?"gu":"g",PCe=new RegExp(`[\0-\b ---Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,uR),LCe={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 YC=null;function MCe(){var e;if(YC==null&&typeof document<"u"&&document.body){let t=document.body.style;YC=((e=t.tabSize)!==null&&e!==void 0?e:t.MozTabSize)!=null}return YC||!1}const DE=Gt.define({combine(e){let t=Iu(e,{render:null,specialChars:PCe,addSpecialChars:null});return(t.replaceTabs=!MCe())&&(t.specialChars=new RegExp(" |"+t.specialChars.source,uR)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,uR)),t}});function $Ce(e={}){return[DE.of(e),FCe()]}let sU=null;function FCe(){return sU||(sU=Kr.fromClass(class{constructor(e){this.view=e,this.decorations=sn.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(DE)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new DCe({regexp:e.specialChars,decoration:(t,n,r)=>{let{doc:i}=n.state,o=uo(t[0],0);if(o==9){let a=i.lineAt(r),s=n.state.tabSize,l=_l(a.text,s,r-a.from);return sn.replace({widget:new zCe((s-l%s)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[o]||(this.decorationCache[o]=sn.replace({widget:new jCe(e,o)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(DE);e.startState.facet(DE)!=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 BCe="•";function UCe(e){return e>=32?BCe:e==10?"␤":String.fromCharCode(9216+e)}class jCe extends Nu{constructor(t,n){super(),this.options=t,this.code=n}eq(t){return t.code==this.code}toDOM(t){let n=UCe(this.code),r=t.state.phrase("Control character")+" "+(LCe[this.code]||"0x"+this.code.toString(16)),i=this.options.render&&this.options.render(this.code,r,n);if(i)return i;let o=document.createElement("span");return o.textContent=n,o.title=r,o.setAttribute("aria-label",r),o.className="cm-specialChar",o}ignoreEvent(){return!1}}class zCe extends Nu{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 VCe(){return WCe}const HCe=sn.line({class:"cm-activeLine"}),WCe=Kr.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(HCe.range(i.from)),t=i.from)}return sn.set(n)}},{decorations:e=>e.decorations}),cR=2e3;function QCe(e,t,n){let r=Math.min(t.line,n.line),i=Math.max(t.line,n.line),o=[];if(t.off>cR||n.off>cR||t.col<0||n.col<0){let a=Math.min(t.off,n.off),s=Math.max(t.off,n.off);for(let l=r;l<=i;l++){let u=e.doc.line(l);u.length<=s&&o.push(Je.range(u.from+a,u.to+s))}}else{let a=Math.min(t.col,n.col),s=Math.max(t.col,n.col);for(let l=r;l<=i;l++){let u=e.doc.line(l),c=z_(u.text,a,e.tabSize,!0);if(c<0)o.push(Je.cursor(u.to));else{let d=z_(u.text,s,e.tabSize);o.push(Je.range(u.from+c,u.from+d))}}}return o}function YCe(e,t){let n=e.coordsAtPos(e.viewport.from);return n?Math.round(Math.abs((n.left-t)/e.defaultCharacterWidth)):-1}function lU(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1),r=e.state.doc.lineAt(n),i=n-r.from,o=i>cR?-1:i==r.length?YCe(e,t.clientX):_l(r.text,e.state.tabSize,n-r.from);return{line:r.number,col:o,off:i}}function GCe(e,t){let n=lU(e,t),r=e.state.selection;return n?{update(i){if(i.docChanged){let o=i.changes.mapPos(i.startState.doc.line(n.line).from),a=i.state.doc.lineAt(o);n={line:a.number,col:n.col,off:Math.min(n.off,a.length)},r=r.map(i.changes)}},get(i,o,a){let s=lU(e,i);if(!s)return r;let l=QCe(e.state,n,s);return l.length?a?Je.create(l.concat(r.ranges)):Je.create(l):r}}:null}function qCe(e){let t=(e==null?void 0:e.eventFilter)||(n=>n.altKey&&n.button==0);return Vt.mouseSelectionStyle.of((n,r)=>t(r)?GCe(n,r):null)}const ZCe={Alt:[18,e=>!!e.altKey],Control:[17,e=>!!e.ctrlKey],Shift:[16,e=>!!e.shiftKey],Meta:[91,e=>!!e.metaKey]},XCe={style:"cursor: crosshair"};function KCe(e={}){let[t,n]=ZCe[e.key||"Alt"],r=Kr.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,Vt.contentAttributes.of(i=>{var o;return!((o=i.plugin(r))===null||o===void 0)&&o.isDown?XCe:null})]}const b0="-10000px";class zq{constructor(t,n,r){this.facet=n,this.createTooltipView=r,this.input=t.state.facet(n),this.tooltips=this.input.filter(i=>i),this.tooltipViews=this.tooltips.map(r)}update(t,n){var r;let i=t.state.facet(this.facet),o=i.filter(l=>l);if(i===this.input){for(let l of this.tooltipViews)l.update&&l.update(t);return!1}let a=[],s=n?[]:null;for(let l=0;ln[u]=l),n.length=s.length),this.input=i,this.tooltips=o,this.tooltipViews=a,!0}}function JCe(e){let{win:t}=e;return{top:0,left:0,bottom:t.innerHeight,right:t.innerWidth}}const GC=Gt.define({combine:e=>{var t,n,r;return{position:Jt.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)||JCe}}}),uU=new WeakMap,uP=Kr.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(GC);this.position=t.position,this.parent=t.parent,this.classes=e.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new zq(e,cP,n=>this.createTooltip(n)),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(n=>{Date.now()>this.lastTransaction-50&&n.length>0&&n[n.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),e.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let e of this.manager.tooltipViews)this.intersectionObserver.observe(e.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(e,this.above);t&&this.observeIntersection();let n=t||e.geometryChanged,r=e.state.facet(GC);if(r.position!=this.position&&!this.madeAbsolute){this.position=r.position;for(let i of this.manager.tooltipViews)i.dom.style.position=this.position;n=!0}if(r.parent!=this.parent){this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer();for(let i of this.manager.tooltipViews)this.container.appendChild(i.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(e){let t=e.create(this.view);if(t.dom.classList.add("cm-tooltip"),e.arrow&&!t.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let n=document.createElement("div");n.className="cm-tooltip-arrow",t.dom.appendChild(n)}return t.dom.style.position=this.position,t.dom.style.top=b0,t.dom.style.left="0px",this.container.appendChild(t.dom),t.mount&&t.mount(this.view),t}destroy(){var e,t;this.view.win.removeEventListener("resize",this.measureSoon);for(let n of this.manager.tooltipViews)n.dom.remove(),(e=n.destroy)===null||e===void 0||e.call(n);this.parent&&this.container.remove(),(t=this.intersectionObserver)===null||t===void 0||t.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let e=this.view.dom.getBoundingClientRect(),t=1,n=1,r=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:i}=this.manager.tooltipViews[0];if(Jt.gecko)r=i.offsetParent!=this.container.ownerDocument.body;else if(i.style.top==b0&&i.style.left=="0px"){let o=i.getBoundingClientRect();r=Math.abs(o.top+1e4)>1||Math.abs(o.left)>1}}if(r||this.position=="absolute")if(this.parent){let i=this.parent.getBoundingClientRect();i.width&&i.height&&(t=i.width/this.parent.offsetWidth,n=i.height/this.parent.offsetHeight)}else({scaleX:t,scaleY:n}=this.view.viewState);return{editor:e,parent:this.parent?this.container.getBoundingClientRect():e,pos:this.manager.tooltips.map((i,o)=>{let a=this.manager.tooltipViews[o];return a.getCoords?a.getCoords(i.pos):this.view.coordsAtPos(i.pos)}),size:this.manager.tooltipViews.map(({dom:i})=>i.getBoundingClientRect()),space:this.view.state.facet(GC).tooltipSpace(this.view),scaleX:t,scaleY:n,makeAbsolute:r}}writeMeasure(e){var t;if(e.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let s of this.manager.tooltipViews)s.dom.style.position="absolute"}let{editor:n,space:r,scaleX:i,scaleY:o}=e,a=[];for(let s=0;s=Math.min(n.bottom,r.bottom)||d.rightMath.min(n.right,r.right)+.1){c.style.top=b0;continue}let h=l.arrow?u.dom.querySelector(".cm-tooltip-arrow"):null,m=h?7:0,y=p.right-p.left,O=(t=uU.get(u))!==null&&t!==void 0?t:p.bottom-p.top,b=u.offset||tAe,v=this.view.textDirection==Dr.LTR,S=p.width>r.right-r.left?v?r.left:r.right-p.width:v?Math.min(d.left-(h?14:0)+b.x,r.right-y):Math.max(r.left,d.left-y+(h?14:0)-b.x),k=this.above[s];!l.strictSide&&(k?d.top-(p.bottom-p.top)-b.yr.bottom)&&k==r.bottom-d.bottom>d.top-r.top&&(k=this.above[s]=!k);let C=(k?d.top-r.top:r.bottom-d.bottom)-m;if(CS&&$.topw&&(w=k?$.top-O-2-m:$.bottom+m+2);if(this.position=="absolute"?(c.style.top=(w-e.parent.top)/o+"px",c.style.left=(S-e.parent.left)/i+"px"):(c.style.top=w/o+"px",c.style.left=S/i+"px"),h){let $=d.left+(v?b.x:-b.x)-(S+14-7);h.style.left=$/i+"px"}u.overlap!==!0&&a.push({left:S,top:w,right:E,bottom:w+O}),c.classList.toggle("cm-tooltip-above",k),c.classList.toggle("cm-tooltip-below",!k),u.positioned&&u.positioned(e.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let e of this.manager.tooltipViews)e.dom.style.top=b0}},{eventObservers:{scroll(){this.maybeMeasure()}}}),eAe=Vt.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"}}}),tAe={x:0,y:0},cP=Gt.define({enables:[uP,eAe]}),nT=Gt.define();class Ak{static create(t){return new Ak(t)}constructor(t){this.view=t,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new zq(t,nT,n=>this.createHostedView(n))}createHostedView(t){let n=t.create(this.view);return n.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(n.dom),this.mounted&&n.mount&&n.mount(this.view),n}mount(t){for(let n of this.manager.tooltipViews)n.mount&&n.mount(t);this.mounted=!0}positioned(t){for(let n of this.manager.tooltipViews)n.positioned&&n.positioned(t)}update(t){this.manager.update(t)}destroy(){var t;for(let n of this.manager.tooltipViews)(t=n.destroy)===null||t===void 0||t.call(n)}passProp(t){let n;for(let r of this.manager.tooltipViews){let i=r[t];if(i!==void 0){if(n===void 0)n=i;else if(n!==i)return}}return n}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const nAe=cP.compute([nT],e=>{let t=e.facet(nT).filter(n=>n);return t.length===0?null:{pos:Math.min(...t.map(n=>n.pos)),end:Math.max(...t.map(n=>{var r;return(r=n.end)!==null&&r!==void 0?r:n.pos})),create:Ak.create,above:t[0].above,arrow:t.some(n=>n.arrow)}});class rAe{constructor(t,n,r,i,o){this.view=t,this.source=n,this.field=r,this.setHover=i,this.hoverTime=o,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:t.dom,time:0},this.checkHover=this.checkHover.bind(this),t.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),t.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active)return;let t=Date.now()-this.lastMove.time;ts.bottom||n.xs.right+t.defaultCharacterWidth)return;let l=t.bidiSpans(t.state.doc.lineAt(i)).find(c=>c.from<=i&&c.to>=i),u=l&&l.dir==Dr.RTL?-1:1;o=n.x{this.pending==s&&(this.pending=null,l&&t.dispatch({effects:this.setHover.of(l)}))},l=>Qs(t.state,l,"hover tooltip"))}else a&&t.dispatch({effects:this.setHover.of(a)})}get tooltip(){let t=this.view.plugin(uP),n=t?t.manager.tooltips.findIndex(r=>r.create==Ak.create):-1;return n>-1?t.manager.tooltipViews[n]:null}mousemove(t){var n;this.lastMove={x:t.clientX,y:t.clientY,target:t.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:r,tooltip:i}=this;if(r&&i&&!iAe(i.dom,t)||this.pending){let{pos:o}=r||this.pending,a=(n=r==null?void 0:r.end)!==null&&n!==void 0?n:o;(o==a?this.view.posAtCoords(this.lastMove)!=o:!oAe(this.view,o,a,t.clientX,t.clientY))&&(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(t){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:n}=this;if(n){let{tooltip:r}=this;r&&r.dom.contains(t.relatedTarget)?this.watchTooltipLeave(r.dom):this.view.dispatch({effects:this.setHover.of(null)})}}watchTooltipLeave(t){let n=r=>{t.removeEventListener("mouseleave",n),this.active&&!this.view.dom.contains(r.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})};t.addEventListener("mouseleave",n)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const Av=4;function iAe(e,t){let n=e.getBoundingClientRect();return t.clientX>=n.left-Av&&t.clientX<=n.right+Av&&t.clientY>=n.top-Av&&t.clientY<=n.bottom+Av}function oAe(e,t,n,r,i,o){let a=e.scrollDOM.getBoundingClientRect(),s=e.documentTop+e.documentPadding.top+e.contentHeight;if(a.left>r||a.righti||Math.min(a.bottom,s)=t&&l<=n}function aAe(e,t={}){let n=xn.define(),r=Ki.define({create(){return null},update(i,o){if(i&&(t.hideOnChange&&(o.docChanged||o.selection)||t.hideOn&&t.hideOn(o,i)))return null;if(i&&o.docChanged){let a=o.changes.mapPos(i.pos,-1,fo.TrackDel);if(a==null)return null;let s=Object.assign(Object.create(null),i);s.pos=a,i.end!=null&&(s.end=o.changes.mapPos(i.end)),i=s}for(let a of o.effects)a.is(n)&&(i=a.value),a.is(sAe)&&(i=null);return i},provide:i=>nT.from(i)});return[r,Kr.define(i=>new rAe(i,e,r,n,t.hoverTime||300)),nAe]}function Vq(e,t){let n=e.plugin(uP);if(!n)return null;let r=n.manager.tooltips.indexOf(t);return r<0?null:n.manager.tooltipViews[r]}const sAe=xn.define(),cU=Gt.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 Cy(e,t){let n=e.plugin(Hq),r=n?n.specs.indexOf(t):-1;return r>-1?n.panels[r]:null}const Hq=Kr.fromClass(class{constructor(e){this.input=e.state.facet(Ay),this.specs=this.input.filter(n=>n),this.panels=this.specs.map(n=>n(e));let t=e.state.facet(cU);this.top=new _v(e,!0,t.topContainer),this.bottom=new _v(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(cU);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new _v(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new _v(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=e.state.facet(Ay);if(n!=this.input){let r=n.filter(l=>l),i=[],o=[],a=[],s=[];for(let l of r){let u=this.specs.indexOf(l),c;u<0?(c=l(e.view),s.push(c)):(c=this.panels[u],c.update&&c.update(e)),i.push(c),(c.top?o:a).push(c)}this.specs=r,this.panels=i,this.top.sync(o),this.bottom.sync(a);for(let l of s)l.dom.classList.add("cm-panel"),l.mount&&l.mount()}else for(let r of this.panels)r.update&&r.update(e)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:e=>Vt.scrollMargins.of(t=>{let n=t.plugin(e);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}})});class _v{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=dU(t);t=t.nextSibling}else this.dom.insertBefore(n.dom,t);for(;t;)t=dU(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 dU(e){let t=e.nextSibling;return e.remove(),t}const Ay=Gt.define({enables:Hq});class vc extends up{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return!1}destroy(t){}}vc.prototype.elementClass="";vc.prototype.toDOM=void 0;vc.prototype.mapMode=fo.TrackBefore;vc.prototype.startSide=vc.prototype.endSide=-1;vc.prototype.point=!0;const PE=Gt.define(),lAe={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>Xn.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},Sb=Gt.define();function uAe(e){return[Wq(),Sb.of(Object.assign(Object.assign({},lAe),e))]}const dR=Gt.define({combine:e=>e.some(t=>t)});function Wq(e){let t=[cAe];return e&&e.fixed===!1&&t.push(dR.of(!0)),t}const cAe=Kr.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(Sb).map(t=>new pU(e,t));for(let t of this.gutters)this.dom.appendChild(t.dom);this.fixed=!e.state.facet(dR),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}update(e){if(this.updateGutters(e)){let t=this.prevViewport,n=e.view.viewport,r=Math.min(t.to,n.to)-Math.max(t.from,n.from);this.syncGutters(r<(n.to-n.from)*.8)}e.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(dR)!=!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=Xn.iter(this.view.state.facet(PE),this.view.viewport.from),r=[],i=this.gutters.map(o=>new dAe(o,this.view.viewport,-this.view.documentPadding.top));for(let o of this.view.viewportLineBlocks)if(r.length&&(r=[]),Array.isArray(o.type)){let a=!0;for(let s of o.type)if(s.type==ta.Text&&a){fR(n,r,s.from);for(let l of i)l.line(this.view,s,r);a=!1}else if(s.widget)for(let l of i)l.widget(this.view,s)}else if(o.type==ta.Text){fR(n,r,o.from);for(let a of i)a.line(this.view,o,r)}else if(o.widget)for(let a of i)a.widget(this.view,o);for(let o of i)o.finish();e&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(e){let t=e.startState.facet(Sb),n=e.state.facet(Sb),r=e.docChanged||e.heightChanged||e.viewportChanged||!Xn.eq(e.startState.facet(PE),e.state.facet(PE),e.view.viewport.from,e.view.viewport.to);if(t==n)for(let i of this.gutters)i.update(e)&&(r=!0);else{r=!0;let i=[];for(let o of n){let a=t.indexOf(o);a<0?i.push(new pU(this.view,o)):(this.gutters[a].update(e),i.push(this.gutters[a]))}for(let o of this.gutters)o.dom.remove(),i.indexOf(o)<0&&o.destroy();for(let o of i)this.dom.appendChild(o.dom);this.gutters=i}return r}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove()}},{provide:e=>Vt.scrollMargins.of(t=>{let n=t.plugin(e);return!n||n.gutters.length==0||!n.fixed?null:t.textDirection==Dr.LTR?{left:n.dom.offsetWidth*t.scaleX}:{right:n.dom.offsetWidth*t.scaleX}})});function fU(e){return Array.isArray(e)?e:[e]}function fR(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}class dAe{constructor(t,n,r){this.gutter=t,this.height=r,this.i=0,this.cursor=Xn.iter(t.markers,n.from)}addElement(t,n,r){let{gutter:i}=this,o=(n.top-this.height)/t.scaleY,a=n.height/t.scaleY;if(this.i==i.elements.length){let s=new Qq(t,a,o,r);i.elements.push(s),i.dom.appendChild(s.dom)}else i.elements[this.i].update(t,a,o,r);this.height=n.bottom,this.i++}line(t,n,r){let i=[];fR(this.cursor,i,n.from),r.length&&(i=i.concat(r));let o=this.gutter.config.lineMarker(t,n,i);o&&i.unshift(o);let a=this.gutter;i.length==0&&!a.config.renderEmptyElements||this.addElement(t,n,i)}widget(t,n){let r=this.gutter.config.widgetMarker(t,n.widget,n);r&&this.addElement(t,n,[r])}finish(){let t=this.gutter;for(;t.elements.length>this.i;){let n=t.elements.pop();t.dom.removeChild(n.dom),n.destroy()}}}class pU{constructor(t,n){this.view=t,this.config=n,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let r in n.domEventHandlers)this.dom.addEventListener(r,i=>{let o=i.target,a;if(o!=this.dom&&this.dom.contains(o)){for(;o.parentNode!=this.dom;)o=o.parentNode;let l=o.getBoundingClientRect();a=(l.top+l.bottom)/2}else a=i.clientY;let s=t.lineBlockAtHeight(a-t.documentTop);n.domEventHandlers[r](t,s,i)&&i.preventDefault()});this.markers=fU(n.markers(t)),n.initialSpacer&&(this.spacer=new Qq(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=fU(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!Xn.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 Qq{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":""),fAe(this.markers,i)||this.setMarkers(t,i)}setMarkers(t,n){let r="cm-gutterElement",i=this.dom.firstChild;for(let o=0,a=0;;){let s=a,l=oo(s,l,u)||a(s,l,u):a}return r}})}});class qC extends vc{constructor(t){super(),this.number=t}eq(t){return this.number==t.number}toDOM(){return document.createTextNode(this.number)}}function ZC(e,t){return e.state.facet(Lh).formatNumber(t,e.state)}const hAe=Sb.compute([Lh],e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(t){return t.state.facet(pAe)},lineMarker(t,n,r){return r.some(i=>i.toDOM)?null:new qC(ZC(t,t.state.doc.lineAt(n.from).number))},widgetMarker:()=>null,lineMarkerChange:t=>t.startState.facet(Lh)!=t.state.facet(Lh),initialSpacer(t){return new qC(ZC(t,hU(t.state.doc.lines)))},updateSpacer(t,n){let r=ZC(n.view,hU(n.view.state.doc.lines));return r==t.number?t:new qC(r)},domEventHandlers:e.facet(Lh).domEventHandlers}));function mAe(e={}){return[Lh.of(e),Wq(),hAe]}function hU(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(gAe.range(i)))}return Xn.of(t)});function yAe(){return bAe}const Yq=1024;let OAe=0;class Bs{constructor(t,n){this.from=t,this.to=n}}class On{constructor(t={}){this.id=OAe++,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=Li.match(t)),n=>{let r=t(n);return r===void 0?null:[this,r]}}}On.closedBy=new On({deserialize:e=>e.split(" ")});On.openedBy=new On({deserialize:e=>e.split(" ")});On.group=new On({deserialize:e=>e.split(" ")});On.isolate=new On({deserialize:e=>{if(e&&e!="rtl"&&e!="ltr"&&e!="auto")throw new RangeError("Invalid value for isolate: "+e);return e||"auto"}});On.contextHash=new On({perNode:!0});On.lookAhead=new On({perNode:!0});On.mounted=new On({perNode:!0});class _y{constructor(t,n,r){this.tree=t,this.overlay=n,this.parser=r}static get(t){return t&&t.props&&t.props[On.mounted.id]}}const vAe=Object.create(null);class Li{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):vAe,r=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(t.name==null?8:0),i=new Li(t.name||"",n,t.id,r);if(t.props){for(let o of t.props)if(Array.isArray(o)||(o=o(i)),o){if(o[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[o[0].id]=o[1]}}return i}prop(t){return this.props[t.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(t){if(typeof t=="string"){if(this.name==t)return!0;let n=this.prop(On.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(On.group),o=-1;o<(i?i.length:0);o++){let a=n[o<0?r.name:i[o]];if(a)return a}}}}Li.none=new Li("",Object.create(null),0,8);class H1{constructor(t){this.types=t;for(let n=0;n0;for(let l=this.cursor(a|Tr.IncludeAnonymous);;){let u=!1;if(l.from<=o&&l.to>=i&&(!s&&l.type.isAnonymous||n(l)!==!1)){if(l.firstChild())continue;u=!0}for(;u&&r&&(s||!l.type.isAnonymous)&&r(l),!l.nextSibling();){if(!l.parent())return;u=!0}}}prop(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}get propValues(){let t=[];if(this.props)for(let n in this.props)t.push([+n,this.props[n]]);return t}balance(t={}){return this.children.length<=8?this:pP(Li.none,this.children,this.positions,0,this.children.length,0,this.length,(n,r,i)=>new ur(this.type,n,r,i,this.propValues),t.makeTree||((n,r,i)=>new ur(Li.none,n,r,i)))}static build(t){return wAe(t)}}ur.empty=new ur(Li.none,[],[],0);class dP{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 dP(this.buffer,this.index)}}class Ud{constructor(t,n,r){this.buffer=t,this.length=n,this.set=r}get type(){return Li.none}toString(){let t=[];for(let n=0;n0));l=a[l+3]);return s}slice(t,n,r){let i=this.buffer,o=new Uint16Array(n-t),a=0;for(let s=t,l=0;s=t&&nt;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function Ry(e,t,n,r){for(var i;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to0?s.length:-1;t!=u;t+=n){let c=s[t],d=l[t]+a.from;if(Gq(i,r,d,d+c.length)){if(c instanceof Ud){if(o&Tr.ExcludeBuffers)continue;let p=c.findChild(0,c.buffer.length,n,r-d,i);if(p>-1)return new hu(new EAe(a,c,t,d),null,p)}else if(o&Tr.IncludeAnonymous||!c.type.isAnonymous||fP(c)){let p;if(!(o&Tr.IgnoreMounts)&&(p=_y.get(c))&&!p.overlay)return new Do(p.tree,d,t,a);let h=new Do(c,d,t,a);return o&Tr.IncludeAnonymous||!h.type.isAnonymous?h:h.nextChild(n<0?c.children.length-1:0,n,r,i)}}}if(o&Tr.IncludeAnonymous||!a.type.isAnonymous||(a.index>=0?t=a.index+n:t=n<0?-1:a._parent._tree.children.length,a=a._parent,!a))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}enter(t,n,r=0){let i;if(!(r&Tr.IgnoreOverlays)&&(i=_y.get(this._tree))&&i.overlay){let o=t-this.from;for(let{from:a,to:s}of i.overlay)if((n>0?a<=o:a=o:s>o))return new Do(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 gU(e,t,n,r){let i=e.cursor(),o=[];if(!i.firstChild())return o;if(n!=null){for(let a=!1;!a;)if(a=i.type.is(n),!i.nextSibling())return o}for(;;){if(r!=null&&i.type.is(r))return o;if(i.type.is(t)&&o.push(i.node),!i.nextSibling())return r==null?o:[]}}function pR(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 EAe{constructor(t,n,r,i){this.parent=t,this.buffer=n,this.index=r,this.start=i}}class hu extends qq{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(t,n,r){super(),this.context=t,this._parent=n,this.index=r,this.type=t.buffer.set.types[t.buffer.buffer[r]]}child(t,n,r){let{buffer:i}=this.context,o=i.findChild(this.index+4,i.buffer[this.index+3],t,n-this.context.start,r);return o<0?null:new hu(this.context,this,o)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(t){return this.child(1,t,2)}childBefore(t){return this.child(-1,t,-2)}enter(t,n,r=0){if(r&Tr.ExcludeBuffers)return null;let{buffer:i}=this.context,o=i.findChild(this.index+4,i.buffer[this.index+3],n>0?1:-1,t-this.context.start,n);return o<0?null:new hu(this.context,this,o)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}get nextSibling(){let{buffer:t}=this.context,n=t.buffer[this.index+3];return n<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new hu(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 hu(this.context,this._parent,t.findChild(n,this.index,-1,0,4))}get tree(){return null}toTree(){let t=[],n=[],{buffer:r}=this.context,i=this.index+4,o=r.buffer[this.index+3];if(o>i){let a=r.buffer[this.index+1];t.push(r.slice(i,o,a)),n.push(0)}return new ur(this.type,t,n,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function Zq(e){if(!e.length)return null;let t=0,n=e[0];for(let o=1;on.from||a.to=t){let s=new Do(a.tree,a.overlay[0].from+o.from,-1,o);(i||(i=[r])).push(Ry(s,t,n,!1))}}return i?Zq(i):r}class rT{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 Do)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 Do?(this.buffer=null,this.yieldNode(t)):(this.buffer=t.context,this.yieldBuf(t.index,t.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(t,n,r){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree._tree.children.length-1:0,t,n,r,this.mode));let{buffer:i}=this.buffer,o=i.findChild(this.index+4,i.buffer[this.index+3],t,n-this.buffer.start,r);return o<0?!1:(this.stack.push(this.index),this.yieldBuf(o))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(t){return this.enterChild(1,t,2)}childBefore(t){return this.enterChild(-1,t,-2)}enter(t,n,r=this.mode){return this.buffer?r&Tr.ExcludeBuffers?!1:this.enterChild(1,t,n):this.yield(this._tree.enter(t,n,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&Tr.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let t=this.mode&Tr.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(t)}sibling(t){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+t,t,0,4,this.mode)):!1;let{buffer:n}=this.buffer,r=this.stack.length-1;if(t<0){let i=r<0?0:this.stack[r]+4;if(this.index!=i)return this.yieldBuf(n.findChild(i,this.index,-1,0,4))}else{let i=n.buffer[this.index+3];if(i<(r<0?n.buffer.length:n.buffer[this.stack[r]+3]))return this.yieldBuf(i)}return r<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+t,t,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(t){let n,r,{buffer:i}=this;if(i){if(t>0){if(this.index-1)for(let o=n+t,a=t<0?-1:r._tree.children.length;o!=a;o+=t){let s=r._tree.children[o];if(this.mode&Tr.IncludeAnonymous||s instanceof Ud||!s.type.isAnonymous||fP(s))return!1}return!0}move(t,n){if(n&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}next(t=!0){return this.move(1,t)}prev(t=!0){return this.move(-1,t)}moveTo(t,n=0){for(;(this.from==this.to||(n<1?this.from>=t:this.from>t)||(n>-1?this.to<=t:this.to=0;){for(let a=t;a;a=a._parent)if(a.index==i){if(i==this.index)return a;n=a,r=o+1;break e}i=this.stack[--o]}for(let i=r;i=0;o--){if(o<0)return pR(this.node,t,i);let a=r[n.buffer[this.stack[o]]];if(!a.isAnonymous){if(t[i]&&t[i]!=a.name)return!1;i--}}return!0}}function fP(e){return e.children.some(t=>t instanceof Ud||!t.type.isAnonymous||fP(t))}function wAe(e){var t;let{buffer:n,nodeSet:r,maxBufferLength:i=Yq,reused:o=[],minRepeatType:a=r.types.length}=e,s=Array.isArray(n)?new dP(n,n.length):n,l=r.types,u=0,c=0;function d(C,w,E,$,D,R){let{id:B,start:U,end:V,size:z}=s,Q=c;for(;z<0;)if(s.next(),z==-1){let j=o[B];E.push(j),$.push(U-C);return}else if(z==-3){u=B;return}else if(z==-4){c=B;return}else throw new RangeError(`Unrecognized record size: ${z}`);let X=l[B],Z,Y,q=U-C;if(V-U<=i&&(Y=O(s.pos-w,D))){let j=new Uint16Array(Y.size-Y.skip),le=s.pos-Y.size,Ee=j.length;for(;s.pos>le;)Ee=b(Y.start,j,Ee);Z=new Ud(j,V-Y.start,r),q=Y.start-C}else{let j=s.pos-z;s.next();let le=[],Ee=[],G=B>=a?B:-1,ue=0,ge=V;for(;s.pos>j;)G>=0&&s.id==G&&s.size>=0?(s.end<=ge-i&&(m(le,Ee,U,ue,s.end,ge,G,Q),ue=le.length,ge=s.end),s.next()):R>2500?p(U,j,le,Ee):d(U,j,le,Ee,G,R+1);if(G>=0&&ue>0&&ue-1&&ue>0){let he=h(X);Z=pP(X,le,Ee,0,le.length,0,V-U,he,he)}else Z=y(X,le,Ee,V-U,Q-V)}E.push(Z),$.push(q)}function p(C,w,E,$){let D=[],R=0,B=-1;for(;s.pos>w;){let{id:U,start:V,end:z,size:Q}=s;if(Q>4)s.next();else{if(B>-1&&V=0;z-=3)U[Q++]=D[z],U[Q++]=D[z+1]-V,U[Q++]=D[z+2]-V,U[Q++]=Q;E.push(new Ud(U,D[2]-V,r)),$.push(V-C)}}function h(C){return(w,E,$)=>{let D=0,R=w.length-1,B,U;if(R>=0&&(B=w[R])instanceof ur){if(!R&&B.type==C&&B.length==$)return B;(U=B.prop(On.lookAhead))&&(D=E[R]+B.length+U)}return y(C,w,E,$,D)}}function m(C,w,E,$,D,R,B,U){let V=[],z=[];for(;C.length>$;)V.push(C.pop()),z.push(w.pop()+E-D);C.push(y(r.types[B],V,z,R-D,U-R)),w.push(D-E)}function y(C,w,E,$,D=0,R){if(u){let B=[On.contextHash,u];R=R?[B].concat(R):[B]}if(D>25){let B=[On.lookAhead,D];R=R?[B].concat(R):[B]}return new ur(C,w,E,$,R)}function O(C,w){let E=s.fork(),$=0,D=0,R=0,B=E.end-i,U={size:0,start:0,skip:0};e:for(let V=E.pos-C;E.pos>V;){let z=E.size;if(E.id==w&&z>=0){U.size=$,U.start=D,U.skip=R,R+=4,$+=4,E.next();continue}let Q=E.pos-z;if(z<0||Q=a?4:0,Z=E.start;for(E.next();E.pos>Q;){if(E.size<0)if(E.size==-3)X+=4;else break e;else E.id>=a&&(X+=4);E.next()}D=Z,$+=z,R+=X}return(w<0||$==C)&&(U.size=$,U.start=D,U.skip=R),U.size>4?U:void 0}function b(C,w,E){let{id:$,start:D,end:R,size:B}=s;if(s.next(),B>=0&&$4){let V=s.pos-(B-4);for(;s.pos>V;)E=b(C,w,E)}w[--E]=U,w[--E]=R-C,w[--E]=D-C,w[--E]=$}else B==-3?u=$:B==-4&&(c=$);return E}let v=[],S=[];for(;s.pos>0;)d(e.start||0,e.bufferStart||0,v,S,-1,0);let k=(t=e.length)!==null&&t!==void 0?t:v.length?S[0]+v[0].length:0;return new ur(l[e.topID],v.reverse(),S.reverse(),k)}const bU=new WeakMap;function LE(e,t){if(!e.isAnonymous||t instanceof Ud||t.type!=e)return 1;let n=bU.get(t);if(n==null){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof ur)){n=1;break}n+=LE(e,r)}bU.set(t,n)}return n}function pP(e,t,n,r,i,o,a,s,l){let u=0;for(let m=r;m=c)break;w+=E}if(S==k+1){if(w>c){let E=m[k];h(E.children,E.positions,0,E.children.length,y[k]+v);continue}d.push(m[k])}else{let E=y[S-1]+m[S-1].length-C;d.push(pP(e,m,y,k,S,C,E,null,l))}p.push(C+v-o)}}return h(t,n,r,i,0),(s||l)(d,p,a)}class Xq{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 hu?this.setBuffer(t.context.buffer,t.index,n):t instanceof Do&&this.map.set(t.tree,n)}get(t){return t instanceof hu?this.getBuffer(t.context.buffer,t.index):t instanceof Do?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 lc{constructor(t,n,r,i,o=!1,a=!1){this.from=t,this.to=n,this.tree=r,this.offset=i,this.open=(o?1:0)|(a?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(t,n=[],r=!1){let i=[new lc(0,t.length,t,0,!1,r)];for(let o of n)o.to>t.length&&i.push(o);return i}static applyChanges(t,n,r=128){if(!n.length)return t;let i=[],o=1,a=t.length?t[0]:null;for(let s=0,l=0,u=0;;s++){let c=s=r)for(;a&&a.from=p.from||d<=p.to||u){let h=Math.max(p.from,l)-u,m=Math.min(p.to,d)-u;p=h>=m?null:new lc(h,m,p.tree,p.offset+u,s>0,!!c)}if(p&&i.push(p),a.to>d)break;a=onew Bs(i.from,i.to)):[new Bs(0,0)]:[new Bs(0,t.length)],this.createParse(t,n||[],r)}parse(t,n,r){let i=this.startParse(t,n,r);for(;;){let o=i.advance();if(o)return o}}};class kAe{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 Kq(e){return(t,n,r,i)=>new CAe(t,e,n,r,i)}class yU{constructor(t,n,r,i,o){this.parser=t,this.parse=n,this.overlay=r,this.target=i,this.from=o}}function OU(e){if(!e.length||e.some(t=>t.from>=t.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(e))}class xAe{constructor(t,n,r,i,o,a,s){this.parser=t,this.predicate=n,this.mounts=r,this.index=i,this.start=o,this.target=a,this.prev=s,this.depth=0,this.ranges=[]}}const hR=new On({perNode:!0});class CAe{constructor(t,n,r,i,o){this.nest=n,this.input=r,this.fragments=i,this.ranges=o,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=t}advance(){if(this.baseParse){let r=this.baseParse.advance();if(!r)return null;if(this.baseParse=null,this.baseTree=r,this.startInner(),this.stoppedAt!=null)for(let i of this.inner)i.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let r=this.baseTree;return this.stoppedAt!=null&&(r=new ur(r.type,r.children,r.positions,r.length,r.propValues.concat([[hR,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[On.mounted.id]=new _y(n,t.overlay,t.parser),t.target.props=r}return null}get parsedPos(){if(this.baseParse)return 0;let t=this.input.length;for(let n=this.innerDone;n=this.stoppedAt)s=!1;else if(t.hasNode(i)){if(n){let u=n.mounts.find(c=>c.frag.from<=i.from&&c.frag.to>=i.to&&c.mount.overlay);if(u)for(let c of u.mount.overlay){let d=c.from+u.pos,p=c.to+u.pos;d>=i.from&&p<=i.to&&!n.ranges.some(h=>h.fromd)&&n.ranges.push({from:d,to:p})}}s=!1}else if(r&&(a=AAe(r.ranges,i.from,i.to)))s=a!=2;else if(!i.type.isAnonymous&&(o=this.nest(i,this.input))&&(i.fromnew Bs(d.from-i.from,d.to-i.from)):null,i.tree,c.length?c[0].from:i.from)),o.overlay?c.length&&(r={ranges:c,depth:0,prev:r}):s=!1}}else n&&(l=n.predicate(i))&&(l===!0&&(l=new Bs(i.from,i.to)),l.fromnew Bs(c.from-n.start,c.to-n.start)),n.target,u[0].from))),n=n.prev}r&&!--r.depth&&(r=r.prev)}}}}function AAe(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 vU(e,t,n,r,i,o){if(t=t&&n.enter(r,1,Tr.IgnoreOverlays|Tr.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 ur)n=n.children[0];else break}return!1}}let RAe=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(hR))!==null&&n!==void 0?n:r.to,this.inner=new EU(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(hR))!==null&&t!==void 0?t:n.to,this.inner=new EU(n.tree,-n.offset)}}findMounts(t,n){var r;let i=[];if(this.inner){this.inner.cursor.moveTo(t,1);for(let o=this.inner.cursor.node;o;o=o.parent){let a=(r=o.tree)===null||r===void 0?void 0:r.prop(On.mounted);if(a&&a.parser==n)for(let s=this.fragI;s=o.to)break;l.tree==this.curFrag.tree&&i.push({frag:l,pos:o.from-l.offset,mount:a})}}}return i}};function SU(e,t){let n=null,r=t;for(let i=1,o=0;i=s)break;l.to<=a||(n||(r=n=t.slice()),l.froms&&n.splice(o+1,0,new Bs(s,l.to))):l.to>s?n[o--]=new Bs(s,l.to):n.splice(o--,1))}}return r}function IAe(e,t,n,r){let i=0,o=0,a=!1,s=!1,l=-1e9,u=[];for(;;){let c=i==e.length?1e9:a?e[i].to:e[i].from,d=o==t.length?1e9:s?t[o].to:t[o].from;if(a!=s){let p=Math.max(l,n),h=Math.min(c,d,r);pnew Bs(p.from+r,p.to+r)),d=IAe(t,c,l,u);for(let p=0,h=l;;p++){let m=p==d.length,y=m?u:d[p].from;if(y>h&&n.push(new lc(h,y,i.tree,-a,o.from>=h||o.openStart,o.to<=y||o.openEnd)),m)break;h=d[p].to}}else n.push(new lc(l,u,i.tree,-a,o.from>=a||o.openStart,o.to<=s||o.openEnd))}return n}let NAe=0;class hl{constructor(t,n,r){this.set=t,this.base=n,this.modified=r,this.id=NAe++}static define(t){if(t!=null&&t.base)throw new Error("Can not derive from a modified tag");let n=new hl([],null,[]);if(n.set.push(n),t)for(let r of t.set)n.set.push(r);return n}static defineModifier(){let t=new iT;return n=>n.modified.indexOf(t)>-1?n:iT.get(n.base||n,n.modified.concat(t).sort((r,i)=>r.id-i.id))}}let DAe=0;class iT{constructor(){this.instances=[],this.id=DAe++}static get(t,n){if(!n.length)return t;let r=n[0].instances.find(s=>s.base==t&&PAe(n,s.modified));if(r)return r;let i=[],o=new hl(i,t,n);for(let s of n)s.instances.push(o);let a=LAe(n);for(let s of t.set)if(!s.modified.length)for(let l of a)i.push(iT.get(s,l));return o}}function PAe(e,t){return e.length==t.length&&e.every((n,r)=>n==t[r])}function LAe(e){let t=[[]];for(let n=0;nr.length-n.length)}function Og(e){let t=Object.create(null);for(let n in e){let r=e[n];Array.isArray(r)||(r=[r]);for(let i of n.split(" "))if(i){let o=[],a=2,s=i;for(let d=0;;){if(s=="..."&&d>0&&d+3==i.length){a=1;break}let p=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(s);if(!p)throw new RangeError("Invalid path: "+i);if(o.push(p[0]=="*"?"":p[0][0]=='"'?JSON.parse(p[0]):p[0]),d+=p[0].length,d==i.length)break;let h=i[d++];if(d==i.length&&h=="!"){a=0;break}if(h!="/")throw new RangeError("Invalid path: "+i);s=i.slice(d)}let l=o.length-1,u=o[l];if(!u)throw new RangeError("Invalid path: "+i);let c=new oT(r,a,l>0?o.slice(0,l):null);t[u]=c.sort(t[u])}}return Jq.add(t)}const Jq=new On;class oT{constructor(t,n,r,i){this.tags=t,this.mode=n,this.context=r,this.next=i}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(t){return!t||t.depth{let a=i;for(let s of o)for(let l of s.set){let u=n[l.id];if(u){a=a?a+" "+u:u;break}}return a},scope:r}}function MAe(e,t){let n=null;for(let r of e){let i=r.style(t);i&&(n=n?n+" "+i:i)}return n}function $Ae(e,t,n,r=0,i=e.length){let o=new FAe(r,Array.isArray(t)?t:[t],n);o.highlightRange(e.cursor(),r,i,"",o.highlighters),o.flush(i)}class FAe{constructor(t,n,r){this.at=t,this.highlighters=n,this.span=r,this.class=""}startSpan(t,n){n!=this.class&&(this.flush(t),t>this.at&&(this.at=t),this.class=n)}flush(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}highlightRange(t,n,r,i,o){let{type:a,from:s,to:l}=t;if(s>=r||l<=n)return;a.isTop&&(o=this.highlighters.filter(h=>!h.scope||h.scope(a)));let u=i,c=BAe(t)||oT.empty,d=MAe(o,c.tags);if(d&&(u&&(u+=" "),u+=d,c.mode==1&&(i+=(i?" ":"")+d)),this.startSpan(Math.max(n,s),u),c.opaque)return;let p=t.tree&&t.tree.prop(On.mounted);if(p&&p.overlay){let h=t.node.enter(p.overlay[0].from+s,1),m=this.highlighters.filter(O=>!O.scope||O.scope(p.tree.type)),y=t.firstChild();for(let O=0,b=s;;O++){let v=O=S||!t.nextSibling())););if(!v||S>r)break;b=v.to+s,b>n&&(this.highlightRange(h.cursor(),Math.max(n,v.from+s),Math.min(r,b),"",m),this.startSpan(Math.min(r,b),u))}y&&t.parent()}else if(t.firstChild()){p&&(i="");do if(!(t.to<=n)){if(t.from>=r)break;this.highlightRange(t,n,r,i,o),this.startSpan(Math.min(r,t.to),u)}while(t.nextSibling());t.parent()}}}function BAe(e){let t=e.type.prop(Jq);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}const Lt=hl.define,Iv=Lt(),Yc=Lt(),wU=Lt(Yc),kU=Lt(Yc),Gc=Lt(),Nv=Lt(Gc),XC=Lt(Gc),Kl=Lt(),uf=Lt(Kl),Zl=Lt(),Xl=Lt(),mR=Lt(),y0=Lt(mR),Dv=Lt(),pe={comment:Iv,lineComment:Lt(Iv),blockComment:Lt(Iv),docComment:Lt(Iv),name:Yc,variableName:Lt(Yc),typeName:wU,tagName:Lt(wU),propertyName:kU,attributeName:Lt(kU),className:Lt(Yc),labelName:Lt(Yc),namespace:Lt(Yc),macroName:Lt(Yc),literal:Gc,string:Nv,docString:Lt(Nv),character:Lt(Nv),attributeValue:Lt(Nv),number:XC,integer:Lt(XC),float:Lt(XC),bool:Lt(Gc),regexp:Lt(Gc),escape:Lt(Gc),color:Lt(Gc),url:Lt(Gc),keyword:Zl,self:Lt(Zl),null:Lt(Zl),atom:Lt(Zl),unit:Lt(Zl),modifier:Lt(Zl),operatorKeyword:Lt(Zl),controlKeyword:Lt(Zl),definitionKeyword:Lt(Zl),moduleKeyword:Lt(Zl),operator:Xl,derefOperator:Lt(Xl),arithmeticOperator:Lt(Xl),logicOperator:Lt(Xl),bitwiseOperator:Lt(Xl),compareOperator:Lt(Xl),updateOperator:Lt(Xl),definitionOperator:Lt(Xl),typeOperator:Lt(Xl),controlOperator:Lt(Xl),punctuation:mR,separator:Lt(mR),bracket:y0,angleBracket:Lt(y0),squareBracket:Lt(y0),paren:Lt(y0),brace:Lt(y0),content:Kl,heading:uf,heading1:Lt(uf),heading2:Lt(uf),heading3:Lt(uf),heading4:Lt(uf),heading5:Lt(uf),heading6:Lt(uf),contentSeparator:Lt(Kl),list:Lt(Kl),quote:Lt(Kl),emphasis:Lt(Kl),strong:Lt(Kl),link:Lt(Kl),monospace:Lt(Kl),strikethrough:Lt(Kl),inserted:Lt(),deleted:Lt(),changed:Lt(),invalid:Lt(),meta:Dv,documentMeta:Lt(Dv),annotation:Lt(Dv),processingInstruction:Lt(Dv),definition:hl.defineModifier(),constant:hl.defineModifier(),function:hl.defineModifier(),standard:hl.defineModifier(),local:hl.defineModifier(),special:hl.defineModifier()};eZ([{tag:pe.link,class:"tok-link"},{tag:pe.heading,class:"tok-heading"},{tag:pe.emphasis,class:"tok-emphasis"},{tag:pe.strong,class:"tok-strong"},{tag:pe.keyword,class:"tok-keyword"},{tag:pe.atom,class:"tok-atom"},{tag:pe.bool,class:"tok-bool"},{tag:pe.url,class:"tok-url"},{tag:pe.labelName,class:"tok-labelName"},{tag:pe.inserted,class:"tok-inserted"},{tag:pe.deleted,class:"tok-deleted"},{tag:pe.literal,class:"tok-literal"},{tag:pe.string,class:"tok-string"},{tag:pe.number,class:"tok-number"},{tag:[pe.regexp,pe.escape,pe.special(pe.string)],class:"tok-string2"},{tag:pe.variableName,class:"tok-variableName"},{tag:pe.local(pe.variableName),class:"tok-variableName tok-local"},{tag:pe.definition(pe.variableName),class:"tok-variableName tok-definition"},{tag:pe.special(pe.variableName),class:"tok-variableName2"},{tag:pe.definition(pe.propertyName),class:"tok-propertyName tok-definition"},{tag:pe.typeName,class:"tok-typeName"},{tag:pe.namespace,class:"tok-namespace"},{tag:pe.className,class:"tok-className"},{tag:pe.macroName,class:"tok-macroName"},{tag:pe.propertyName,class:"tok-propertyName"},{tag:pe.operator,class:"tok-operator"},{tag:pe.comment,class:"tok-comment"},{tag:pe.meta,class:"tok-meta"},{tag:pe.invalid,class:"tok-invalid"},{tag:pe.punctuation,class:"tok-punctuation"}]);var KC;const Nf=new On;function mP(e){return Gt.define({combine:e?t=>t.concat(e):void 0})}const gP=new On;class Us{constructor(t,n,r=[],i=""){this.data=t,this.name=i,qn.prototype.hasOwnProperty("tree")||Object.defineProperty(qn.prototype,"tree",{get(){return kr(this)}}),this.parser=n,this.extension=[jd.of(this),qn.languageData.of((o,a,s)=>{let l=xU(o,a,s),u=l.type.prop(Nf);if(!u)return[];let c=o.facet(u),d=l.type.prop(gP);if(d){let p=l.resolve(a-l.from,s);for(let h of d)if(h.test(p,o)){let m=o.facet(h.facet);return h.type=="replace"?m:m.concat(c)}}return c})].concat(r)}isActiveAt(t,n,r=-1){return xU(t,n,r).type.prop(Nf)==this.data}findRegions(t){let n=t.facet(jd);if((n==null?void 0:n.data)==this.data)return[{from:0,to:t.doc.length}];if(!n||!n.allowsNesting)return[];let r=[],i=(o,a)=>{if(o.prop(Nf)==this.data){r.push({from:a,to:a+o.length});return}let s=o.prop(On.mounted);if(s){if(s.tree.prop(Nf)==this.data){if(s.overlay)for(let l of s.overlay)r.push({from:l.from+a,to:l.to+a});else r.push({from:a,to:a+o.length});return}else if(s.overlay){let l=r.length;if(i(s.tree,s.overlay[0].from+a),r.length>l)return}}for(let l=0;lr.isTop?n:void 0)]}),t.name)}configure(t,n){return new Wm(this.data,this.parser.configure(t),n||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function kr(e){let t=e.field(Us.state,!1);return t?t.tree:ur.empty}class UAe{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 O0=null;class Iy{constructor(t,n,r=[],i,o,a,s,l){this.parser=t,this.state=n,this.fragments=r,this.tree=i,this.treeLen=o,this.viewport=a,this.skipped=s,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(t,n,r){return new Iy(t,n,[],ur.empty,0,r,[],null)}startParse(){return this.parser.startParse(new UAe(this.state.doc),this.fragments)}work(t,n){return n!=null&&n>=this.state.doc.length&&(n=void 0),this.tree!=ur.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(lc.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let n=O0;O0=this;try{return t()}finally{O0=n}}withoutTempSkipped(t){for(let n;n=this.tempSkipped.pop();)t=CU(t,n.from,n.to);return t}changes(t,n){let{fragments:r,tree:i,treeLen:o,viewport:a,skipped:s}=this;if(this.takeTree(),!t.empty){let l=[];if(t.iterChangedRanges((u,c,d,p)=>l.push({fromA:u,toA:c,fromB:d,toB:p})),r=lc.applyChanges(r,l),i=ur.empty,o=0,a={from:t.mapPos(a.from,-1),to:t.mapPos(a.to,1)},this.skipped.length){s=[];for(let u of this.skipped){let c=t.mapPos(u.from,1),d=t.mapPos(u.to,-1);ct.from&&(this.fragments=CU(this.fragments,i,o),this.skipped.splice(r--,1))}return this.skipped.length>=n?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(t,n){this.skipped.push({from:t,to:n})}static getSkippingParser(t){return new class extends hP{createParse(n,r,i){let o=i[0].from,a=i[i.length-1].to;return{parsedPos:o,advance(){let l=O0;if(l){for(let u of i)l.tempSkipped.push(u);t&&(l.scheduleOn=l.scheduleOn?Promise.all([l.scheduleOn,t]):t)}return this.parsedPos=a,new ur(Li.none,[],[],a-o)},stoppedAt:null,stopAt(){}}}}}isDone(t){t=Math.min(t,this.state.doc.length);let n=this.fragments;return this.treeLen>=t&&n.length&&n[0].from==0&&n[0].to>=t}static get(){return O0}}function CU(e,t,n){return lc.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class Qm{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 Qm(n)}static init(t){let n=Math.min(3e3,t.doc.length),r=Iy.create(t.facet(jd).parser,t,{from:0,to:n});return r.work(20,n)||r.takeTree(),new Qm(r)}}Us.state=Ki.define({create:Qm.init,update(e,t){for(let n of t.effects)if(n.is(Us.setState))return n.value;return t.startState.facet(jd)!=t.state.facet(jd)?Qm.init(t.state):e.apply(t)}});let tZ=e=>{let t=setTimeout(()=>e(),500);return()=>clearTimeout(t)};typeof requestIdleCallback<"u"&&(tZ=e=>{let t=-1,n=setTimeout(()=>{t=requestIdleCallback(e,{timeout:400})},100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});const JC=typeof navigator<"u"&&(!((KC=navigator.scheduling)===null||KC===void 0)&&KC.isInputPending)?()=>navigator.scheduling.isInputPending():null,jAe=Kr.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(Us.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(Us.state);(n.tree!=n.context.tree||!n.context.isDone(t.doc.length))&&(this.working=tZ(this.work))}work(t){this.working=null;let n=Date.now();if(this.chunkEndi+1e3,l=o.context.work(()=>JC&&JC()||Date.now()>a,i+(s?0:1e5));this.chunkBudget-=Date.now()-n,(l||this.chunkBudget<=0)&&(o.context.takeTree(),this.view.dispatch({effects:Us.setState.of(new Qm(o.context))})),this.chunkBudget>0&&!(l&&!s)&&this.scheduleWork(),this.checkAsyncSchedule(o.context)}checkAsyncSchedule(t){t.scheduleOn&&(this.workScheduled++,t.scheduleOn.then(()=>this.scheduleWork()).catch(n=>Qs(this.view.state,n)).then(()=>this.workScheduled--),t.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),jd=Gt.define({combine(e){return e.length?e[0]:null},enables:e=>[Us.state,jAe,Vt.contentAttributes.compute([e],t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}})]});class Ny{constructor(t,n=[]){this.language=t,this.support=n,this.extension=[t,n]}}class aT{constructor(t,n,r,i,o,a=void 0){this.name=t,this.alias=n,this.extensions=r,this.filename=i,this.loadFunc=o,this.support=a,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(t=>this.support=t,t=>{throw this.loading=null,t}))}static of(t){let{load:n,support:r}=t;if(!n){if(!r)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");n=()=>Promise.resolve(r)}return new aT(t.name,(t.alias||[]).concat(t.name).map(i=>i.toLowerCase()),t.extensions||[],t.filename,n,r)}static matchFilename(t,n){for(let i of t)if(i.filename&&i.filename.test(n))return i;let r=/\.([^.]+)$/.exec(n);if(r){for(let i of t)if(i.extensions.indexOf(r[1])>-1)return i}return null}static matchLanguageName(t,n,r=!0){n=n.toLowerCase();for(let i of t)if(i.alias.some(o=>o==n))return i;if(r)for(let i of t)for(let o of i.alias){let a=n.indexOf(o);if(a>-1&&(o.length>2||!/\w/.test(n[a-1])&&!/\w/.test(n[a+o.length])))return i}return null}}const zAe=Gt.define(),W1=Gt.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 sT(e){let t=e.facet(W1);return t.charCodeAt(0)==9?e.tabSize*t.length:t.length}function Dy(e,t){let n="",r=e.tabSize,i=e.facet(W1)[0];if(i==" "){for(;t>=r;)n+=" ",t-=r;i=" "}for(let o=0;o=t?VAe(e,n,t):null}class _k{constructor(t,n={}){this.state=t,this.options=n,this.unit=sT(t)}lineAt(t,n=1){let r=this.state.doc.lineAt(t),{simulateBreak:i,simulateDoubleBreak:o}=this.options;return i!=null&&i>=r.from&&i<=r.to?o&&i==t?{text:"",from:t}:(n<0?i-1&&(o+=a-this.countColumn(r,r.search(/\S|$/))),o}countColumn(t,n=t.length){return _l(t,this.state.tabSize,n)}lineIndent(t,n=1){let{text:r,from:i}=this.lineAt(t,n),o=this.options.overrideIndentation;if(o){let a=o(i);if(a>-1)return a}return this.countColumn(r,r.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const Q1=new On;function VAe(e,t,n){let r=t.resolveStack(n),i=r.node.enterUnfinishedNodesBefore(n);if(i!=r.node){let o=[];for(let a=i;a!=r.node;a=a.parent)o.push(a);for(let a=o.length-1;a>=0;a--)r={node:o[a],next:r}}return nZ(r,e,n)}function nZ(e,t,n){for(let r=e;r;r=r.next){let i=WAe(r.node);if(i)return i(yP.create(t,n,r))}return 0}function HAe(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}function WAe(e){let t=e.type.prop(Q1);if(t)return t;let n=e.firstChild,r;if(n&&(r=n.type.prop(On.closedBy))){let i=e.lastChild,o=i&&r.indexOf(i.name)>-1;return a=>rZ(a,!0,1,void 0,o&&!HAe(a)?i.from:void 0)}return e.parent==null?QAe:null}function QAe(){return 0}class yP extends _k{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 yP(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(YAe(r,t))break;n=this.state.doc.lineAt(r.from)}return this.lineIndent(n.from)}continue(){return nZ(this.context.next,this.base,this.pos)}}function YAe(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}function GAe(e){let t=e.node,n=t.childAfter(t.from),r=t.lastChild;if(!n)return null;let i=e.options.simulateBreak,o=e.state.doc.lineAt(n.from),a=i==null||i<=o.from?o.to:Math.min(o.to,i);for(let s=n.to;;){let l=t.childAfter(s);if(!l||l==r)return null;if(!l.type.isSkipped)return l.fromrZ(r,t,n,e)}function rZ(e,t,n,r,i){let o=e.textAfter,a=o.match(/^\s*/)[0].length,s=r&&o.slice(a,a+r.length)==r||i==e.pos+a,l=t?GAe(e):null;return l?s?e.column(l.from):e.column(l.to):e.baseIndent+(s?0:e.unit*n)}const ZAe=e=>e.baseIndent;function ME({except:e,units:t=1}={}){return n=>{let r=e&&e.test(n.textAfter);return n.baseIndent+(r?0:t*n.unit)}}const XAe=200;function KAe(){return qn.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+XAe)return e;let o=n.sliceString(i.from,r);if(!t.some(u=>u.test(o)))return e;let{state:a}=e,s=-1,l=[];for(let{head:u}of a.selection.ranges){let c=a.doc.lineAt(u);if(c.from==s)continue;s=c.from;let d=bP(a,c.from);if(d==null)continue;let p=/^\s*/.exec(c.text)[0],h=Dy(a,d);p!=h&&l.push({from:c.from,to:c.from+p.length,insert:h})}return l.length?[e,{changes:l,sequential:!0}]:e})}const iZ=Gt.define(),vg=new On;function oZ(e){let t=e.firstChild,n=e.lastChild;return t&&t.ton)continue;if(o&&s.from=t&&u.to>n&&(o=u)}}return o}function e2e(e){let t=e.lastChild;return t&&t.to==e.to&&t.type.isError}function lT(e,t,n){for(let r of e.facet(iZ)){let i=r(e,t,n);if(i)return i}return JAe(e,t,n)}function aZ(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 Rk=xn.define({map:aZ}),Y1=xn.define({map:aZ});function sZ(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 fp=Ki.define({create(){return sn.none},update(e,t){e=e.map(t.changes);for(let n of t.effects)if(n.is(Rk)&&!t2e(e,n.value.from,n.value.to)){let{preparePlaceholder:r}=t.state.facet(OP),i=r?sn.replace({widget:new l2e(r(t.state,n.value))}):AU;e=e.update({add:[i.range(n.value.from,n.value.to)]})}else n.is(Y1)&&(e=e.update({filter:(r,i)=>n.value.from!=r||n.value.to!=i,filterFrom:n.value.from,filterTo:n.value.to}));if(t.selection){let n=!1,{head:r}=t.selection.main;e.between(r,r,(i,o)=>{ir&&(n=!0)}),n&&(e=e.update({filterFrom:r,filterTo:r,filter:(i,o)=>o<=r||i>=r}))}return e},provide:e=>Vt.decorations.from(e),toJSON(e,t){let n=[];return e.between(0,t.doc.length,(r,i)=>{n.push(r,i)}),n},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let n=0;n{(!i||i.from>o)&&(i={from:o,to:a})}),i}function t2e(e,t,n){let r=!1;return e.between(t,t,(i,o)=>{i==t&&o==n&&(r=!0)}),r}function lZ(e,t){return e.field(fp,!1)?t:t.concat(xn.appendConfig.of(cZ()))}const n2e=e=>{for(let t of sZ(e)){let n=lT(e.state,t.from,t.to);if(n)return e.dispatch({effects:lZ(e.state,[Rk.of(n),uZ(e,n)])}),!0}return!1},r2e=e=>{if(!e.state.field(fp,!1))return!1;let t=[];for(let n of sZ(e)){let r=uT(e.state,n.from,n.to);r&&t.push(Y1.of(r),uZ(e,r,!1))}return t.length&&e.dispatch({effects:t}),t.length>0};function uZ(e,t,n=!0){let r=e.state.doc.lineAt(t.from).number,i=e.state.doc.lineAt(t.to).number;return Vt.announce.of(`${e.state.phrase(n?"Folded lines":"Unfolded lines")} ${r} ${e.state.phrase("to")} ${i}.`)}const i2e=e=>{let{state:t}=e,n=[];for(let r=0;r{let t=e.state.field(fp,!1);if(!t||!t.size)return!1;let n=[];return t.between(0,e.state.doc.length,(r,i)=>{n.push(Y1.of({from:r,to:i}))}),e.dispatch({effects:n}),!0},a2e=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:n2e},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:r2e},{key:"Ctrl-Alt-[",run:i2e},{key:"Ctrl-Alt-]",run:o2e}],s2e={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},OP=Gt.define({combine(e){return Iu(e,s2e)}});function cZ(e){let t=[fp,d2e];return e&&t.push(OP.of(e)),t}function dZ(e,t){let{state:n}=e,r=n.facet(OP),i=a=>{let s=e.lineBlockAt(e.posAtDOM(a.target)),l=uT(e.state,s.from,s.to);l&&e.dispatch({effects:Y1.of(l)}),a.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(e,i,t);let o=document.createElement("span");return o.textContent=r.placeholderText,o.setAttribute("aria-label",n.phrase("folded code")),o.title=n.phrase("unfold"),o.className="cm-foldPlaceholder",o.onclick=i,o}const AU=sn.replace({widget:new class extends Nu{toDOM(e){return dZ(e,null)}}});class l2e extends Nu{constructor(t){super(),this.value=t}eq(t){return this.value==t.value}toDOM(t){return dZ(t,this.value)}}const u2e={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class eA extends vc{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 c2e(e={}){let t=Object.assign(Object.assign({},u2e),e),n=new eA(t,!0),r=new eA(t,!1),i=Kr.fromClass(class{constructor(a){this.from=a.viewport.from,this.markers=this.buildMarkers(a)}update(a){(a.docChanged||a.viewportChanged||a.startState.facet(jd)!=a.state.facet(jd)||a.startState.field(fp,!1)!=a.state.field(fp,!1)||kr(a.startState)!=kr(a.state)||t.foldingChanged(a))&&(this.markers=this.buildMarkers(a.view))}buildMarkers(a){let s=new Md;for(let l of a.viewportLineBlocks){let u=uT(a.state,l.from,l.to)?r:lT(a.state,l.from,l.to)?n:null;u&&s.add(l.from,l.from,u)}return s.finish()}}),{domEventHandlers:o}=t;return[i,uAe({class:"cm-foldGutter",markers(a){var s;return((s=a.plugin(i))===null||s===void 0?void 0:s.markers)||Xn.empty},initialSpacer(){return new eA(t,!1)},domEventHandlers:Object.assign(Object.assign({},o),{click:(a,s,l)=>{if(o.click&&o.click(a,s,l))return!0;let u=uT(a.state,s.from,s.to);if(u)return a.dispatch({effects:Y1.of(u)}),!0;let c=lT(a.state,s.from,s.to);return c?(a.dispatch({effects:Rk.of(c)}),!0):!1}})}),cZ()]}const d2e=Vt.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 G1{constructor(t,n){this.specs=t;let r;function i(s){let l=$d.newName();return(r||(r=Object.create(null)))["."+l]=s,l}const o=typeof n.all=="string"?n.all:n.all?i(n.all):void 0,a=n.scope;this.scope=a instanceof Us?s=>s.prop(Nf)==a.data:a?s=>s==a:void 0,this.style=eZ(t.map(s=>({tag:s.tag,class:s.class||i(Object.assign({},s,{tag:null}))})),{all:o}).style,this.module=r?new $d(r):null,this.themeType=n.themeType}static define(t,n){return new G1(t,n||{})}}const gR=Gt.define(),fZ=Gt.define({combine(e){return e.length?[e[0]]:null}});function tA(e){let t=e.facet(gR);return t.length?t:e.facet(fZ)}function pZ(e,t){let n=[p2e],r;return e instanceof G1&&(e.module&&n.push(Vt.styleModule.of(e.module)),r=e.themeType),t!=null&&t.fallback?n.push(fZ.of(e)):r?n.push(gR.computeN([Vt.darkTheme],i=>i.facet(Vt.darkTheme)==(r=="dark")?[e]:[])):n.push(gR.of(e)),n}class f2e{constructor(t){this.markCache=Object.create(null),this.tree=kr(t.state),this.decorations=this.buildDeco(t,tA(t.state))}update(t){let n=kr(t.state),r=tA(t.state),i=r!=tA(t.startState);n.length{r.add(a,s,this.markCache[l]||(this.markCache[l]=sn.mark({class:l})))},i,o);return r.finish()}}const p2e=Zd.high(Kr.fromClass(f2e,{decorations:e=>e.decorations})),h2e=G1.define([{tag:pe.meta,color:"#404740"},{tag:pe.link,textDecoration:"underline"},{tag:pe.heading,textDecoration:"underline",fontWeight:"bold"},{tag:pe.emphasis,fontStyle:"italic"},{tag:pe.strong,fontWeight:"bold"},{tag:pe.strikethrough,textDecoration:"line-through"},{tag:pe.keyword,color:"#708"},{tag:[pe.atom,pe.bool,pe.url,pe.contentSeparator,pe.labelName],color:"#219"},{tag:[pe.literal,pe.inserted],color:"#164"},{tag:[pe.string,pe.deleted],color:"#a11"},{tag:[pe.regexp,pe.escape,pe.special(pe.string)],color:"#e40"},{tag:pe.definition(pe.variableName),color:"#00f"},{tag:pe.local(pe.variableName),color:"#30a"},{tag:[pe.typeName,pe.namespace],color:"#085"},{tag:pe.className,color:"#167"},{tag:[pe.special(pe.variableName),pe.macroName],color:"#256"},{tag:pe.definition(pe.propertyName),color:"#00c"},{tag:pe.comment,color:"#940"},{tag:pe.invalid,color:"#f00"}]),m2e=Vt.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),hZ=1e4,mZ="()[]{}",gZ=Gt.define({combine(e){return Iu(e,{afterCursor:!0,brackets:mZ,maxScanDistance:hZ,renderMatch:y2e})}}),g2e=sn.mark({class:"cm-matchingBracket"}),b2e=sn.mark({class:"cm-nonmatchingBracket"});function y2e(e){let t=[],n=e.matched?g2e:b2e;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 O2e=Ki.define({create(){return sn.none},update(e,t){if(!t.docChanged&&!t.selection)return e;let n=[],r=t.state.facet(gZ);for(let i of t.state.selection.ranges){if(!i.empty)continue;let o=mu(t.state,i.head,-1,r)||i.head>0&&mu(t.state,i.head-1,1,r)||r.afterCursor&&(mu(t.state,i.head,1,r)||i.headVt.decorations.from(e)}),v2e=[O2e,m2e];function E2e(e={}){return[gZ.of(e),v2e]}const bZ=new On;function bR(e,t,n){let r=e.prop(t<0?On.openedBy:On.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 yR(e){let t=e.type.prop(bZ);return t?t(e.node):e}function mu(e,t,n,r={}){let i=r.maxScanDistance||hZ,o=r.brackets||mZ,a=kr(e),s=a.resolveInner(t,n);for(let l=s;l;l=l.parent){let u=bR(l.type,n,o);if(u&&l.from0?t>=c.from&&tc.from&&t<=c.to))return S2e(e,t,n,l,c,u,o)}}return T2e(e,t,n,a,s.type,i,o)}function S2e(e,t,n,r,i,o,a){let s=r.parent,l={from:i.from,to:i.to},u=0,c=s==null?void 0:s.cursor();if(c&&(n<0?c.childBefore(r.from):c.childAfter(r.to)))do if(n<0?c.to<=r.from:c.from>=r.to){if(u==0&&o.indexOf(c.type.name)>-1&&c.from0)return null;let u={from:n<0?t-1:t,to:n>0?t+1:t},c=e.doc.iterRange(t,n>0?e.doc.length:0),d=0;for(let p=0;!c.next().done&&p<=o;){let h=c.value;n<0&&(p+=h.length);let m=t+p*n;for(let y=n>0?0:h.length-1,O=n>0?h.length:-1;y!=O;y+=n){let b=a.indexOf(h[y]);if(!(b<0||r.resolveInner(m+y,1).type!=i))if(b%2==0==n>0)d++;else{if(d==1)return{start:u,end:{from:m+y,to:m+y+1},matched:b>>1==l>>1};d--}}n>0&&(p+=h.length)}return c.done?{start:u,matched:!1}:null}const w2e=Object.create(null),_U=[Li.none],RU=[],IU=Object.create(null),k2e=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"]])k2e[e]=x2e(w2e,t);function nA(e,t){RU.indexOf(e)>-1||(RU.push(e),console.warn(t))}function x2e(e,t){let n=[];for(let s of t.split(" ")){let l=[];for(let u of s.split(".")){let c=e[u]||pe[u];c?typeof c=="function"?l.length?l=l.map(c):nA(u,`Modifier ${u} used at start of tag`):l.length?nA(u,`Tag ${u} used as modifier`):l=Array.isArray(c)?c:[c]:nA(u,`Unknown highlighting tag ${u}`)}for(let u of l)n.push(u)}if(!n.length)return 0;let r=t.replace(/ /g,"_"),i=r+" "+n.map(s=>s.id),o=IU[i];if(o)return o.id;let a=IU[i]=Li.define({id:_U.length,name:r,props:[Og({[r]:n})]});return _U.push(a),a.id}Dr.RTL,Dr.LTR;const C2e=e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=EP(e.state,n.from);return r.line?A2e(e):r.block?R2e(e):!1};function vP(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 A2e=vP(D2e,0),_2e=vP(yZ,0),R2e=vP((e,t)=>yZ(e,t,N2e(t)),0);function EP(e,t){let n=e.languageDataAt("commentTokens",t);return n.length?n[0]:{}}const v0=50;function I2e(e,{open:t,close:n},r,i){let o=e.sliceDoc(r-v0,r),a=e.sliceDoc(i,i+v0),s=/\s*$/.exec(o)[0].length,l=/^\s*/.exec(a)[0].length,u=o.length-s;if(o.slice(u-t.length,u)==t&&a.slice(l,l+n.length)==n)return{open:{pos:r-s,margin:s&&1},close:{pos:i+l,margin:l&&1}};let c,d;i-r<=2*v0?c=d=e.sliceDoc(r,i):(c=e.sliceDoc(r,r+v0),d=e.sliceDoc(i-v0,i));let p=/^\s*/.exec(c)[0].length,h=/\s*$/.exec(d)[0].length,m=d.length-h-n.length;return c.slice(p,p+t.length)==t&&d.slice(m,m+n.length)==n?{open:{pos:r+p+t.length,margin:/\s/.test(c.charAt(p+t.length))?1:0},close:{pos:i-h-n.length,margin:/\s/.test(d.charAt(m-1))?1:0}}:null}function N2e(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),i=n.to<=r.to?r:e.doc.lineAt(n.to),o=t.length-1;o>=0&&t[o].to>r.from?t[o].to=i.to:t.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to})}return t}function yZ(e,t,n=t.selection.ranges){let r=n.map(o=>EP(t,o.from).block);if(!r.every(o=>o))return null;let i=n.map((o,a)=>I2e(t,r[a],o.from,o.to));if(e!=2&&!i.every(o=>o))return{changes:t.changes(n.map((o,a)=>i[a]?[]:[{from:o.from,insert:r[a].open+" "},{from:o.to,insert:" "+r[a].close}]))};if(e!=1&&i.some(o=>o)){let o=[];for(let a=0,s;ai&&(o==a||a>d.from)){i=d.from;let p=/^\s*/.exec(d.text)[0].length,h=p==d.length,m=d.text.slice(p,p+u.length)==u?p:-1;po.comment<0&&(!o.empty||o.single))){let o=[];for(let{line:s,token:l,indent:u,empty:c,single:d}of r)(d||!c)&&o.push({from:s.from+u,insert:l+" "});let a=t.changes(o);return{changes:a,selection:t.selection.map(a,1)}}else if(e!=1&&r.some(o=>o.comment>=0)){let o=[];for(let{line:a,comment:s,token:l}of r)if(s>=0){let u=a.from+s,c=u+l.length;a.text[c-a.from]==" "&&c++,o.push({from:u,to:c})}return{changes:o}}return null}const OR=Ll.define(),P2e=Ll.define(),L2e=Gt.define(),OZ=Gt.define({combine(e){return Iu(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)})}}),vZ=Ki.define({create(){return gu.empty},update(e,t){let n=t.state.facet(OZ),r=t.annotation(OR);if(r){let l=va.fromTransaction(t,r.selection),u=r.side,c=u==0?e.undone:e.done;return l?c=cT(c,c.length,n.minDepth,l):c=TZ(c,t.startState.selection),new gu(u==0?r.rest:c,u==0?c:r.rest)}let i=t.annotation(P2e);if((i=="full"||i=="before")&&(e=e.isolate()),t.annotation(Si.addToHistory)===!1)return t.changes.empty?e:e.addMapping(t.changes.desc);let o=va.fromTransaction(t),a=t.annotation(Si.time),s=t.annotation(Si.userEvent);return o?e=e.addChanges(o,a,s,n,t):t.selection&&(e=e.addSelection(t.startState.selection,a,s,n.newGroupDelay)),(i=="full"||i=="after")&&(e=e.isolate()),e},toJSON(e){return{done:e.done.map(t=>t.toJSON()),undone:e.undone.map(t=>t.toJSON())}},fromJSON(e){return new gu(e.done.map(va.fromJSON),e.undone.map(va.fromJSON))}});function M2e(e={}){return[vZ,OZ.of(e),Vt.domEventHandlers({beforeinput(t,n){let r=t.inputType=="historyUndo"?EZ:t.inputType=="historyRedo"?vR:null;return r?(t.preventDefault(),r(n)):!1}})]}function Ik(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return!1;let i=n.field(vZ,!1);if(!i)return!1;let o=i.pop(e,n,t);return o?(r(o),!0):!1}}const EZ=Ik(0,!1),vR=Ik(1,!1),$2e=Ik(0,!0),F2e=Ik(1,!0);class va{constructor(t,n,r,i,o){this.changes=t,this.effects=n,this.mapped=r,this.startSelection=i,this.selectionsAfter=o}setSelAfter(t){return new va(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 va(t.changes&&Ii.fromJSON(t.changes),[],t.mapped&&wu.fromJSON(t.mapped),t.startSelection&&Je.fromJSON(t.startSelection),t.selectionsAfter.map(Je.fromJSON))}static fromTransaction(t,n){let r=js;for(let i of t.startState.facet(L2e)){let o=i(t);o.length&&(r=r.concat(o))}return!r.length&&t.changes.empty?null:new va(t.changes.invert(t.startState.doc),r,void 0,n||t.startState.selection,js)}static selection(t){return new va(void 0,js,void 0,void 0,t)}}function cT(e,t,n,r){let i=t+1>n+20?t-n-1:0,o=e.slice(i,t);return o.push(r),o}function B2e(e,t){let n=[],r=!1;return e.iterChangedRanges((i,o)=>n.push(i,o)),t.iterChangedRanges((i,o,a,s)=>{for(let l=0;l=u&&a<=c&&(r=!0)}}),r}function U2e(e,t){return e.ranges.length==t.ranges.length&&e.ranges.filter((n,r)=>n.empty!=t.ranges[r].empty).length===0}function SZ(e,t){return e.length?t.length?e.concat(t):e:t}const js=[],j2e=200;function TZ(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-j2e));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),cT(e,e.length-1,1e9,n.setSelAfter(r)))}else return[va.selection([t])]}function z2e(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 rA(e,t){if(!e.length)return e;let n=e.length,r=js;for(;n;){let i=V2e(e[n-1],t,r);if(i.changes&&!i.changes.empty||i.effects.length){let o=e.slice(0,n);return o[n-1]=i,o}else t=i.mapped,n--,r=i.selectionsAfter}return r.length?[va.selection(r)]:js}function V2e(e,t,n){let r=SZ(e.selectionsAfter.length?e.selectionsAfter.map(s=>s.map(t)):js,n);if(!e.changes)return va.selection(r);let i=e.changes.map(t),o=t.mapDesc(e.changes,!0),a=e.mapped?e.mapped.composeDesc(o):o;return new va(i,xn.mapEffects(e.effects,t),a,e.startSelection.map(o),r)}const H2e=/^(input\.type|delete)($|\.)/;class gu{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 gu(this.done,this.undone):this}addChanges(t,n,r,i,o){let a=this.done,s=a[a.length-1];return s&&s.changes&&!s.changes.empty&&t.changes&&(!r||H2e.test(r))&&(!s.selectionsAfter.length&&n-this.prevTime0&&n-this.prevTimen.empty?e.moveByChar(n,t):Nk(n,t))}function Bo(e){return e.textDirectionAt(e.state.selection.main.head)==Dr.LTR}const kZ=e=>wZ(e,!Bo(e)),xZ=e=>wZ(e,Bo(e));function CZ(e,t){return Ml(e,n=>n.empty?e.moveByGroup(n,t):Nk(n,t))}const Q2e=e=>CZ(e,!Bo(e)),Y2e=e=>CZ(e,Bo(e));function G2e(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 Dk(e,t,n){let r=kr(e).resolveInner(t.head),i=n?On.closedBy:On.openedBy;for(let l=t.head;;){let u=n?r.childAfter(l):r.childBefore(l);if(!u)break;G2e(e,u,i)?r=u:l=n?u.to:u.from}let o=r.type.prop(i),a,s;return o&&(a=n?mu(e,r.from,1):mu(e,r.to,-1))&&a.matched?s=n?a.end.to:a.end.from:s=n?r.to:r.from,Je.cursor(s,n?-1:1)}const q2e=e=>Ml(e,t=>Dk(e.state,t,!Bo(e))),Z2e=e=>Ml(e,t=>Dk(e.state,t,Bo(e)));function AZ(e,t){return Ml(e,n=>{if(!n.empty)return Nk(n,t);let r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)})}const _Z=e=>AZ(e,!1),RZ=e=>AZ(e,!0);function IZ(e){let t=e.scrollDOM.clientHeighta.empty?e.moveVertically(a,t,n.height):Nk(a,t));if(i.eq(r.selection))return!1;let o;if(n.selfScroll){let a=e.coordsAtPos(r.selection.main.head),s=e.scrollDOM.getBoundingClientRect(),l=s.top+n.marginTop,u=s.bottom-n.marginBottom;a&&a.top>l&&a.bottomNZ(e,!1),ER=e=>NZ(e,!0);function Xd(e,t,n){let r=e.lineBlockAt(t.head),i=e.moveToLineBoundary(t,n);if(i.head==t.head&&i.head!=(n?r.to:r.from)&&(i=e.moveToLineBoundary(t,n,!1)),!n&&i.head==r.from&&r.length){let o=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;o&&t.head!=r.from+o&&(i=Je.cursor(r.from+o))}return i}const X2e=e=>Ml(e,t=>Xd(e,t,!0)),K2e=e=>Ml(e,t=>Xd(e,t,!1)),J2e=e=>Ml(e,t=>Xd(e,t,!Bo(e))),e_e=e=>Ml(e,t=>Xd(e,t,Bo(e))),t_e=e=>Ml(e,t=>Je.cursor(e.lineBlockAt(t.head).from,1)),n_e=e=>Ml(e,t=>Je.cursor(e.lineBlockAt(t.head).to,-1));function r_e(e,t,n){let r=!1,i=Eg(e.selection,o=>{let a=mu(e,o.head,-1)||mu(e,o.head,1)||o.head>0&&mu(e,o.head-1,1)||o.headr_e(e,t,!1);function nl(e,t){let n=Eg(e.state.selection,r=>{let i=t(r);return Je.range(r.anchor,i.head,i.goalColumn,i.bidiLevel||void 0)});return n.eq(e.state.selection)?!1:(e.dispatch(Du(e.state,n)),!0)}function DZ(e,t){return nl(e,n=>e.moveByChar(n,t))}const PZ=e=>DZ(e,!Bo(e)),LZ=e=>DZ(e,Bo(e));function MZ(e,t){return nl(e,n=>e.moveByGroup(n,t))}const o_e=e=>MZ(e,!Bo(e)),a_e=e=>MZ(e,Bo(e)),s_e=e=>nl(e,t=>Dk(e.state,t,!Bo(e))),l_e=e=>nl(e,t=>Dk(e.state,t,Bo(e)));function $Z(e,t){return nl(e,n=>e.moveVertically(n,t))}const FZ=e=>$Z(e,!1),BZ=e=>$Z(e,!0);function UZ(e,t){return nl(e,n=>e.moveVertically(n,t,IZ(e).height))}const DU=e=>UZ(e,!1),PU=e=>UZ(e,!0),u_e=e=>nl(e,t=>Xd(e,t,!0)),c_e=e=>nl(e,t=>Xd(e,t,!1)),d_e=e=>nl(e,t=>Xd(e,t,!Bo(e))),f_e=e=>nl(e,t=>Xd(e,t,Bo(e))),p_e=e=>nl(e,t=>Je.cursor(e.lineBlockAt(t.head).from)),h_e=e=>nl(e,t=>Je.cursor(e.lineBlockAt(t.head).to)),LU=({state:e,dispatch:t})=>(t(Du(e,{anchor:0})),!0),MU=({state:e,dispatch:t})=>(t(Du(e,{anchor:e.doc.length})),!0),$U=({state:e,dispatch:t})=>(t(Du(e,{anchor:e.selection.main.anchor,head:0})),!0),FU=({state:e,dispatch:t})=>(t(Du(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0),m_e=({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0),g_e=({state:e,dispatch:t})=>{let n=Pk(e).map(({from:r,to:i})=>Je.range(r,Math.min(i+1,e.doc.length)));return t(e.update({selection:Je.create(n),userEvent:"select"})),!0},b_e=({state:e,dispatch:t})=>{let n=Eg(e.selection,r=>{var i;let o=kr(e).resolveStack(r.from,1);for(let a=o;a;a=a.next){let{node:s}=a;if((s.from=r.to||s.to>r.to&&s.from<=r.from)&&(!((i=s.parent)===null||i===void 0)&&i.parent))return Je.range(s.to,s.from)}return r});return t(Du(e,n)),!0},y_e=({state:e,dispatch:t})=>{let n=e.selection,r=null;return n.ranges.length>1?r=Je.create([n.main]):n.main.empty||(r=Je.create([Je.cursor(n.main.head)])),r?(t(Du(e,r)),!0):!1};function q1(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:r}=e,i=r.changeByRange(o=>{let{from:a,to:s}=o;if(a==s){let l=t(o);la&&(n="delete.forward",l=Pv(e,l,!0)),a=Math.min(a,l),s=Math.max(s,l)}else a=Pv(e,a,!1),s=Pv(e,s,!0);return a==s?{range:o}:{changes:{from:a,to:s},range:Je.cursor(a,ai(e)))r.between(t,t,(i,o)=>{it&&(t=n?o:i)});return t}const jZ=(e,t)=>q1(e,n=>{let r=n.from,{state:i}=e,o=i.doc.lineAt(r),a,s;if(!t&&r>o.from&&rjZ(e,!1),zZ=e=>jZ(e,!0),VZ=(e,t)=>q1(e,n=>{let r=n.head,{state:i}=e,o=i.doc.lineAt(r),a=i.charCategorizer(r);for(let s=null;;){if(r==(t?o.to:o.from)){r==n.head&&o.number!=(t?i.doc.lines:1)&&(r+=t?1:-1);break}let l=mo(o.text,r-o.from,t)+o.from,u=o.text.slice(Math.min(r,l)-o.from,Math.max(r,l)-o.from),c=a(u);if(s!=null&&c!=s)break;(u!=" "||r!=n.head)&&(s=c),r=l}return r}),HZ=e=>VZ(e,!1),O_e=e=>VZ(e,!0),v_e=e=>q1(e,t=>{let n=e.lineBlockAt(t.head).to;return t.headq1(e,t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}),S_e=e=>q1(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:rr.of(["",""])},range:Je.cursor(r.from)}));return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0},w_e=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(r=>{if(!r.empty||r.from==0||r.from==e.doc.length)return{range:r};let i=r.from,o=e.doc.lineAt(i),a=i==o.from?i-1:mo(o.text,i-o.from,!1)+o.from,s=i==o.to?i+1:mo(o.text,i-o.from,!0)+o.from;return{changes:{from:a,to:s,insert:e.doc.slice(i,s).append(e.doc.slice(a,i))},range:Je.cursor(s)}});return n.changes.empty?!1:(t(e.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function Pk(e){let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.from),o=e.doc.lineAt(r.to);if(!r.empty&&r.to==o.from&&(o=e.doc.lineAt(r.to-1)),n>=i.number){let a=t[t.length-1];a.to=o.to,a.ranges.push(r)}else t.push({from:i.from,to:o.to,ranges:[r]});n=o.number+1}return t}function WZ(e,t,n){if(e.readOnly)return!1;let r=[],i=[];for(let o of Pk(e)){if(n?o.to==e.doc.length:o.from==0)continue;let a=e.doc.lineAt(n?o.to+1:o.from-1),s=a.length+1;if(n){r.push({from:o.to,to:a.to},{from:o.from,insert:a.text+e.lineBreak});for(let l of o.ranges)i.push(Je.range(Math.min(e.doc.length,l.anchor+s),Math.min(e.doc.length,l.head+s)))}else{r.push({from:a.from,to:o.from},{from:o.to,insert:e.lineBreak+a.text});for(let l of o.ranges)i.push(Je.range(l.anchor-s,l.head-s))}}return r.length?(t(e.update({changes:r,scrollIntoView:!0,selection:Je.create(i,e.selection.mainIndex),userEvent:"move.line"})),!0):!1}const k_e=({state:e,dispatch:t})=>WZ(e,t,!1),x_e=({state:e,dispatch:t})=>WZ(e,t,!0);function QZ(e,t,n){if(e.readOnly)return!1;let r=[];for(let i of Pk(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 C_e=({state:e,dispatch:t})=>QZ(e,t,!1),A_e=({state:e,dispatch:t})=>QZ(e,t,!0),__e=e=>{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(Pk(t).map(({from:i,to:o})=>(i>0?i--:oe.moveVertically(i,!0)).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0};function R_e(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n=kr(e).resolveInner(t),r=n.childBefore(t),i=n.childAfter(t),o;return r&&i&&r.to<=t&&i.from>=t&&(o=r.type.prop(On.closedBy))&&o.indexOf(i.name)>-1&&e.doc.lineAt(r.to).from==e.doc.lineAt(i.from).from&&!/\S/.test(e.sliceDoc(r.to,i.from))?{from:r.to,to:i.from}:null}const I_e=YZ(!1),N_e=YZ(!0);function YZ(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let r=t.changeByRange(i=>{let{from:o,to:a}=i,s=t.doc.lineAt(o),l=!e&&o==a&&R_e(t,o);e&&(o=a=(a<=s.to?s:t.doc.lineAt(a)).to);let u=new _k(t,{simulateBreak:o,simulateDoubleBreak:!!l}),c=bP(u,o);for(c==null&&(c=_l(/^\s*/.exec(t.doc.lineAt(o).text)[0],t.tabSize));as.from&&o{let i=[];for(let a=r.from;a<=r.to;){let s=e.doc.lineAt(a);s.number>n&&(r.empty||r.to>s.from)&&(t(s,i,r),n=s.number),a=s.to+1}let o=e.changes(i);return{changes:i,range:Je.range(o.mapPos(r.anchor,1),o.mapPos(r.head,1))}})}const D_e=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),r=new _k(e,{overrideIndentation:o=>{let a=n[o];return a??-1}}),i=SP(e,(o,a,s)=>{let l=bP(r,o.from);if(l==null)return;/\S/.test(o.text)||(l=0);let u=/^\s*/.exec(o.text)[0],c=Dy(e,l);(u!=c||s.frome.readOnly?!1:(t(e.update(SP(e,(n,r)=>{r.push({from:n.from,insert:e.facet(W1)})}),{userEvent:"input.indent"})),!0),qZ=({state:e,dispatch:t})=>e.readOnly?!1:(t(e.update(SP(e,(n,r)=>{let i=/^\s*/.exec(n.text)[0];if(!i)return;let o=_l(i,e.tabSize),a=0,s=Dy(e,Math.max(0,o-sT(e)));for(;a({mac:e.key,run:e.run,shift:e.shift}))),M_e=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:q2e,shift:s_e},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:Z2e,shift:l_e},{key:"Alt-ArrowUp",run:k_e},{key:"Shift-Alt-ArrowUp",run:C_e},{key:"Alt-ArrowDown",run:x_e},{key:"Shift-Alt-ArrowDown",run:A_e},{key:"Escape",run:y_e},{key:"Mod-Enter",run:N_e},{key:"Alt-l",mac:"Ctrl-l",run:g_e},{key:"Mod-i",run:b_e,preventDefault:!0},{key:"Mod-[",run:qZ},{key:"Mod-]",run:GZ},{key:"Mod-Alt-\\",run:D_e},{key:"Shift-Mod-k",run:__e},{key:"Shift-Mod-\\",run:i_e},{key:"Mod-/",run:C2e},{key:"Alt-A",run:_2e}].concat(L_e),$_e={key:"Tab",run:GZ,shift:qZ};function Sr(){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 Ym{constructor(t,n,r=0,i=t.length,o,a){this.test=a,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=t.iterRange(r,i),this.bufferStart=r,this.normalize=o?s=>o(BU(s)):BU,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 uo(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=KD(t),r=this.bufferStart+this.bufferPos;this.bufferPos+=$s(t);let i=this.normalize(n);for(let o=0,a=r;;o++){let s=i.charCodeAt(o),l=this.match(s,a);if(o==i.length-1){if(l)return this.value=l,this;break}a==r&&othis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let t=this.matchPos-this.curLineStart;;){this.re.lastIndex=t;let n=this.matchPos<=this.to&&this.re.exec(this.curLine);if(n){let r=this.curLineStart+n.index,i=r+n[0].length;if(this.matchPos=dT(this.text,i+(r==i?1:0)),r==this.curLineStart+this.curLine.length&&this.nextLine(),(rthis.value.to)&&(!this.test||this.test(r,i,n)))return this.value={from:r,to:i,match:n},this;t=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length=r||i.to<=n){let s=new tm(n,t.sliceString(n,r));return iA.set(t,s),s}if(i.from==n&&i.to==r)return i;let{text:o,from:a}=i;return a>n&&(o=t.sliceString(n,a)+o,a=n),i.to=this.to?this.to:this.text.lineAt(t).to}next(){for(;;){let t=this.re.lastIndex=this.matchPos-this.flat.from,n=this.re.exec(this.flat.text);if(n&&!n[0]&&n.index==t&&(this.re.lastIndex=t+1,n=this.re.exec(this.flat.text)),n){let r=this.flat.from+n.index,i=r+n[0].length;if((this.flat.to>=this.to||n.index+n[0].length<=this.flat.text.length-10)&&(!this.test||this.test(r,i,n)))return this.value={from:r,to:i,match:n},this.matchPos=dT(this.text,i+(r==i?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=tm.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(KZ.prototype[Symbol.iterator]=JZ.prototype[Symbol.iterator]=function(){return this});function F_e(e){try{return new RegExp(e,TP),!0}catch{return!1}}function dT(e,t){if(t>=e.length)return t;let n=e.lineAt(t),r;for(;t=56320&&r<57344;)t++;return t}function TR(e){let t=String(e.state.doc.lineAt(e.state.selection.main.head).number),n=Sr("input",{class:"cm-textfield",name:"line",value:t}),r=Sr("form",{class:"cm-gotoLine",onkeydown:o=>{o.keyCode==27?(o.preventDefault(),e.dispatch({effects:fT.of(!1)}),e.focus()):o.keyCode==13&&(o.preventDefault(),i())},onsubmit:o=>{o.preventDefault(),i()}},Sr("label",e.state.phrase("Go to line"),": ",n)," ",Sr("button",{class:"cm-button",type:"submit"},e.state.phrase("go")));function i(){let o=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.value);if(!o)return;let{state:a}=e,s=a.doc.lineAt(a.selection.main.head),[,l,u,c,d]=o,p=c?+c.slice(1):0,h=u?+u:s.number;if(u&&d){let O=h/100;l&&(O=O*(l=="-"?-1:1)+s.number/a.doc.lines),h=Math.round(a.doc.lines*O)}else u&&l&&(h=h*(l=="-"?-1:1)+s.number);let m=a.doc.line(Math.max(1,Math.min(a.doc.lines,h))),y=Je.cursor(m.from+Math.max(0,Math.min(p,m.length)));e.dispatch({effects:[fT.of(!1),Vt.scrollIntoView(y.from,{y:"center"})],selection:y}),e.focus()}return{dom:r}}const fT=xn.define(),UU=Ki.define({create(){return!0},update(e,t){for(let n of t.effects)n.is(fT)&&(e=n.value);return e},provide:e=>Ay.from(e,t=>t?TR:null)}),B_e=e=>{let t=Cy(e,TR);if(!t){let n=[fT.of(!0)];e.state.field(UU,!1)==null&&n.push(xn.appendConfig.of([UU,U_e])),e.dispatch({effects:n}),t=Cy(e,TR)}return t&&t.dom.querySelector("input").select(),!0},U_e=Vt.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),j_e={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},eX=Gt.define({combine(e){return Iu(e,j_e,{highlightWordAroundCursor:(t,n)=>t||n,minSelectionLength:Math.min,maxMatches:Math.min})}});function z_e(e){let t=[Y_e,Q_e];return e&&t.push(eX.of(e)),t}const V_e=sn.mark({class:"cm-selectionMatch"}),H_e=sn.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function jU(e,t,n,r){return(n==0||e(t.sliceDoc(n-1,n))!=Vr.Word)&&(r==t.doc.length||e(t.sliceDoc(r,r+1))!=Vr.Word)}function W_e(e,t,n,r){return e(t.sliceDoc(n,n+1))==Vr.Word&&e(t.sliceDoc(r-1,r))==Vr.Word}const Q_e=Kr.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(eX),{state:n}=e,r=n.selection;if(r.ranges.length>1)return sn.none;let i=r.main,o,a=null;if(i.empty){if(!t.highlightWordAroundCursor)return sn.none;let l=n.wordAt(i.head);if(!l)return sn.none;a=n.charCategorizer(i.head),o=n.sliceDoc(l.from,l.to)}else{let l=i.to-i.from;if(l200)return sn.none;if(t.wholeWords){if(o=n.sliceDoc(i.from,i.to),a=n.charCategorizer(i.head),!(jU(a,n,i.from,i.to)&&W_e(a,n,i.from,i.to)))return sn.none}else if(o=n.sliceDoc(i.from,i.to).trim(),!o)return sn.none}let s=[];for(let l of e.visibleRanges){let u=new Ym(n.doc,o,l.from,l.to);for(;!u.next().done;){let{from:c,to:d}=u.value;if((!a||jU(a,n,c,d))&&(i.empty&&c<=i.from&&d>=i.to?s.push(H_e.range(c,d)):(c>=i.to||d<=i.from)&&s.push(V_e.range(c,d)),s.length>t.maxMatches))return sn.none}}return sn.set(s)}},{decorations:e=>e.decorations}),Y_e=Vt.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),G_e=({state:e,dispatch:t})=>{let{selection:n}=e,r=Je.create(n.ranges.map(i=>e.wordAt(i.head)||Je.cursor(i.head)),n.mainIndex);return r.eq(n)?!1:(t(e.update({selection:r})),!0)};function q_e(e,t){let{main:n,ranges:r}=e.selection,i=e.wordAt(n.head),o=i&&i.from==n.from&&i.to==n.to;for(let a=!1,s=new Ym(e.doc,t,r[r.length-1].to);;)if(s.next(),s.done){if(a)return null;s=new Ym(e.doc,t,0,Math.max(0,r[r.length-1].from-1)),a=!0}else{if(a&&r.some(l=>l.from==s.value.from))continue;if(o){let l=e.wordAt(s.value.from);if(!l||l.from!=s.value.from||l.to!=s.value.to)continue}return s.value}}const Z_e=({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some(o=>o.from===o.to))return G_e({state:e,dispatch:t});let r=e.sliceDoc(n[0].from,n[0].to);if(e.selection.ranges.some(o=>e.sliceDoc(o.from,o.to)!=r))return!1;let i=q_e(e,r);return i?(t(e.update({selection:e.selection.addRange(Je.range(i.from,i.to),!1),effects:Vt.scrollIntoView(i.to)})),!0):!1},Sg=Gt.define({combine(e){return Iu(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:t=>new lRe(t),scrollToMatch:t=>Vt.scrollIntoView(t)})}});class tX{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||F_e(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 eRe(this):new K_e(this)}getCursor(t,n=0,r){let i=t.doc?t:qn.create({doc:t});return r==null&&(r=i.doc.length),this.regexp?fh(this,i,n,r):dh(this,i,n,r)}}class nX{constructor(t){this.spec=t}}function dh(e,t,n,r){return new Ym(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:i=>i.toLowerCase(),e.wholeWord?X_e(t.doc,t.charCategorizer(t.selection.main.head)):void 0)}function X_e(e,t){return(n,r,i,o)=>((o>n||o+i.length=n)return null;i.push(r.value)}return i}highlight(t,n,r,i){let o=dh(this.spec,t,Math.max(0,n-this.spec.unquoted.length),Math.min(r+this.spec.unquoted.length,t.doc.length));for(;!o.next().done;)i(o.value.from,o.value.to)}}function fh(e,t,n,r){return new KZ(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?J_e(t.charCategorizer(t.selection.main.head)):void 0},n,r)}function pT(e,t){return e.slice(mo(e,t,!1),t)}function hT(e,t){return e.slice(t,mo(e,t))}function J_e(e){return(t,n,r)=>!r[0].length||(e(pT(r.input,r.index))!=Vr.Word||e(hT(r.input,r.index))!=Vr.Word)&&(e(hT(r.input,r.index+r[0].length))!=Vr.Word||e(pT(r.input,r.index+r[0].length))!=Vr.Word)}class eRe extends nX{nextMatch(t,n,r){let i=fh(this.spec,t,r,t.doc.length).next();return i.done&&(i=fh(this.spec,t,0,n).next()),i.done?null:i.value}prevMatchInRange(t,n,r){for(let i=1;;i++){let o=Math.max(n,r-i*1e4),a=fh(this.spec,t,o,r),s=null;for(;!a.next().done;)s=a.value;if(s&&(o==n||s.from>o+10))return s;if(o==n)return null}}prevMatch(t,n,r){return this.prevMatchInRange(t,0,n)||this.prevMatchInRange(t,r,t.doc.length)}getReplacement(t){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,(n,r)=>r=="$"?"$":r=="&"?t.match[0]:r!="0"&&+r=n)return null;i.push(r.value)}return i}highlight(t,n,r,i){let o=fh(this.spec,t,Math.max(0,n-250),Math.min(r+250,t.doc.length));for(;!o.next().done;)i(o.value.from,o.value.to)}}const Py=xn.define(),wP=xn.define(),xd=Ki.define({create(e){return new oA(wR(e).create(),null)},update(e,t){for(let n of t.effects)n.is(Py)?e=new oA(n.value.create(),e.panel):n.is(wP)&&(e=new oA(e.query,n.value?kP:null));return e},provide:e=>Ay.from(e,t=>t.panel)});class oA{constructor(t,n){this.query=t,this.panel=n}}const tRe=sn.mark({class:"cm-searchMatch"}),nRe=sn.mark({class:"cm-searchMatch cm-searchMatch-selected"}),rRe=Kr.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(xd))}update(e){let t=e.state.field(xd);(t!=e.startState.field(xd)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return sn.none;let{view:n}=this,r=new Md;for(let i=0,o=n.visibleRanges,a=o.length;io[i+1].from-2*250;)l=o[++i].to;e.highlight(n.state,s,l,(u,c)=>{let d=n.state.selection.ranges.some(p=>p.from==u&&p.to==c);r.add(u,c,d?nRe:tRe)})}return r.finish()}},{decorations:e=>e.decorations});function Z1(e){return t=>{let n=t.state.field(xd,!1);return n&&n.query.spec.valid?e(t,n):oX(t)}}const mT=Z1((e,{query:t})=>{let{to:n}=e.state.selection.main,r=t.nextMatch(e.state,n,n);if(!r)return!1;let i=Je.single(r.from,r.to),o=e.state.facet(Sg);return e.dispatch({selection:i,effects:[xP(e,r),o.scrollToMatch(i.main,e)],userEvent:"select.search"}),iX(e),!0}),gT=Z1((e,{query:t})=>{let{state:n}=e,{from:r}=n.selection.main,i=t.prevMatch(n,r,r);if(!i)return!1;let o=Je.single(i.from,i.to),a=e.state.facet(Sg);return e.dispatch({selection:o,effects:[xP(e,i),a.scrollToMatch(o.main,e)],userEvent:"select.search"}),iX(e),!0}),iRe=Z1((e,{query:t})=>{let n=t.matchAll(e.state,1e3);return!n||!n.length?!1:(e.dispatch({selection:Je.create(n.map(r=>Je.range(r.from,r.to))),userEvent:"select.search.matches"}),!0)}),oRe=({state:e,dispatch:t})=>{let n=e.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:r,to:i}=n.main,o=[],a=0;for(let s=new Ym(e.doc,e.sliceDoc(r,i));!s.next().done;){if(o.length>1e3)return!1;s.value.from==r&&(a=o.length),o.push(Je.range(s.value.from,s.value.to))}return t(e.update({selection:Je.create(o,a),userEvent:"select.search.matches"})),!0},zU=Z1((e,{query:t})=>{let{state:n}=e,{from:r,to:i}=n.selection.main;if(n.readOnly)return!1;let o=t.nextMatch(n,r,r);if(!o)return!1;let a=[],s,l,u=[];if(o.from==r&&o.to==i&&(l=n.toText(t.getReplacement(o)),a.push({from:o.from,to:o.to,insert:l}),o=t.nextMatch(n,o.from,o.to),u.push(Vt.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(r).number)+"."))),o){let c=a.length==0||a[0].from>=o.to?0:o.to-o.from-l.length;s=Je.single(o.from-c,o.to-c),u.push(xP(e,o)),u.push(n.facet(Sg).scrollToMatch(s.main,e))}return e.dispatch({changes:a,selection:s,effects:u,userEvent:"input.replace"}),!0}),aRe=Z1((e,{query:t})=>{if(e.state.readOnly)return!1;let n=t.matchAll(e.state,1e9).map(i=>{let{from:o,to:a}=i;return{from:o,to:a,insert:t.getReplacement(i)}});if(!n.length)return!1;let r=e.state.phrase("replaced $ matches",n.length)+".";return e.dispatch({changes:n,effects:Vt.announce.of(r),userEvent:"input.replace.all"}),!0});function kP(e){return e.state.facet(Sg).createPanel(e)}function wR(e,t){var n,r,i,o,a;let s=e.selection.main,l=s.empty||s.to>s.from+100?"":e.sliceDoc(s.from,s.to);if(t&&!l)return t;let u=e.facet(Sg);return new tX({search:((n=t==null?void 0:t.literal)!==null&&n!==void 0?n:u.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:(r=t==null?void 0:t.caseSensitive)!==null&&r!==void 0?r:u.caseSensitive,literal:(i=t==null?void 0:t.literal)!==null&&i!==void 0?i:u.literal,regexp:(o=t==null?void 0:t.regexp)!==null&&o!==void 0?o:u.regexp,wholeWord:(a=t==null?void 0:t.wholeWord)!==null&&a!==void 0?a:u.wholeWord})}function rX(e){let t=Cy(e,kP);return t&&t.dom.querySelector("[main-field]")}function iX(e){let t=rX(e);t&&t==e.root.activeElement&&t.select()}const oX=e=>{let t=e.state.field(xd,!1);if(t&&t.panel){let n=rX(e);if(n&&n!=e.root.activeElement){let r=wR(e.state,t.query.spec);r.valid&&e.dispatch({effects:Py.of(r)}),n.focus(),n.select()}}else e.dispatch({effects:[wP.of(!0),t?Py.of(wR(e.state,t.query.spec)):xn.appendConfig.of(cRe)]});return!0},aX=e=>{let t=e.state.field(xd,!1);if(!t||!t.panel)return!1;let n=Cy(e,kP);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:wP.of(!1)}),!0},sRe=[{key:"Mod-f",run:oX,scope:"editor search-panel"},{key:"F3",run:mT,shift:gT,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:mT,shift:gT,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:aX,scope:"editor search-panel"},{key:"Mod-Shift-l",run:oRe},{key:"Mod-Alt-g",run:B_e},{key:"Mod-d",run:Z_e,preventDefault:!0}];class lRe{constructor(t){this.view=t;let n=this.query=t.state.field(xd).query.spec;this.commit=this.commit.bind(this),this.searchField=Sr("input",{value:n.search,placeholder:za(t,"Find"),"aria-label":za(t,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Sr("input",{value:n.replace,placeholder:za(t,"Replace"),"aria-label":za(t,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Sr("input",{type:"checkbox",name:"case",form:"",checked:n.caseSensitive,onchange:this.commit}),this.reField=Sr("input",{type:"checkbox",name:"re",form:"",checked:n.regexp,onchange:this.commit}),this.wordField=Sr("input",{type:"checkbox",name:"word",form:"",checked:n.wholeWord,onchange:this.commit});function r(i,o,a){return Sr("button",{class:"cm-button",name:i,onclick:o,type:"button"},a)}this.dom=Sr("div",{onkeydown:i=>this.keydown(i),class:"cm-search"},[this.searchField,r("next",()=>mT(t),[za(t,"next")]),r("prev",()=>gT(t),[za(t,"previous")]),r("select",()=>iRe(t),[za(t,"all")]),Sr("label",null,[this.caseField,za(t,"match case")]),Sr("label",null,[this.reField,za(t,"regexp")]),Sr("label",null,[this.wordField,za(t,"by word")]),...t.state.readOnly?[]:[Sr("br"),this.replaceField,r("replace",()=>zU(t),[za(t,"replace")]),r("replaceAll",()=>aRe(t),[za(t,"replace all")])],Sr("button",{name:"close",onclick:()=>aX(t),"aria-label":za(t,"close"),type:"button"},["×"])])}commit(){let t=new tX({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:Py.of(t)}))}keydown(t){vCe(this.view,t,"search-panel")?t.preventDefault():t.keyCode==13&&t.target==this.searchField?(t.preventDefault(),(t.shiftKey?gT:mT)(this.view)):t.keyCode==13&&t.target==this.replaceField&&(t.preventDefault(),zU(this.view))}update(t){for(let n of t.transactions)for(let r of n.effects)r.is(Py)&&!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(Sg).top}}function za(e,t){return e.state.phrase(t)}const Lv=30,Mv=/[\s\.,:;?!]/;function xP(e,{from:t,to:n}){let r=e.state.doc.lineAt(t),i=e.state.doc.lineAt(n).to,o=Math.max(r.from,t-Lv),a=Math.min(i,n+Lv),s=e.state.sliceDoc(o,a);if(o!=r.from){for(let l=0;ls.length-Lv;l--)if(!Mv.test(s[l-1])&&Mv.test(s[l])){s=s.slice(0,l);break}}return Vt.announce.of(`${e.state.phrase("current match")}. ${s} ${e.state.phrase("on line")} ${r.number}.`)}const uRe=Vt.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"}}),cRe=[xd,Zd.low(rRe),uRe];class CP{constructor(t,n,r){this.state=t,this.pos=n,this.explicit=r,this.abortListeners=[]}tokenBefore(t){let n=kr(this.state).resolveInner(this.pos,-1);for(;n&&t.indexOf(n.name)<0;)n=n.parent;return n?{from:n.from,to:this.pos,text:this.state.sliceDoc(n.from,this.pos),type:n.type}:null}matchBefore(t){let n=this.state.doc.lineAt(this.pos),r=Math.max(n.from,this.pos-250),i=n.text.slice(r-n.from,this.pos-n.from),o=i.search(lX(t,!1));return o<0?null:{from:r+o,to:this.pos,text:i.slice(o)}}get aborted(){return this.abortListeners==null}addEventListener(t,n){t=="abort"&&this.abortListeners&&this.abortListeners.push(n)}}function VU(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 dRe(e){let t=Object.create(null),n=Object.create(null);for(let{label:i}of e){t[i[0]]=!0;for(let o=1;otypeof i=="string"?{label:i}:i),[n,r]=t.every(i=>/^\w+$/.test(i.label))?[/\w*$/,/\w+$/]:dRe(t);return i=>{let o=i.matchBefore(r);return o||i.explicit?{from:o?o.from:i.pos,options:t,validFor:n}:null}}function fRe(e,t){return n=>{for(let r=kr(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 HU{constructor(t,n,r,i){this.completion=t,this.source=n,this.match=r,this.score=i}}function Cd(e){return e.selection.main.from}function lX(e,t){var n;let{source:r}=e,i=t&&r[0]!="^",o=r[r.length-1]!="$";return!i&&!o?e:new RegExp(`${i?"^":""}(?:${r})${o?"$":""}`,(n=e.flags)!==null&&n!==void 0?n:e.ignoreCase?"i":"")}const uX=Ll.define();function pRe(e,t,n,r){let{main:i}=e.selection,o=n-i.from,a=r-i.from;return Object.assign(Object.assign({},e.changeByRange(s=>s!=i&&n!=r&&e.sliceDoc(s.from+o,s.from+a)!=e.sliceDoc(n,r)?{range:s}:{changes:{from:s.from+o,to:r==i.from?s.to:s.from+a,insert:t},range:Je.cursor(s.from+o+t.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}const WU=new WeakMap;function hRe(e){if(!Array.isArray(e))return e;let t=WU.get(e);return t||WU.set(e,t=sX(e)),t}const bT=xn.define(),Ly=xn.define();class mRe{constructor(t){this.pattern=t,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let n=0;n=48&&C<=57||C>=97&&C<=122?2:C>=65&&C<=90?1:0:(w=KD(C))!=w.toLowerCase()?1:w!=w.toUpperCase()?2:0;(!v||E==1&&O||k==0&&E!=0)&&(n[d]==C||r[d]==C&&(p=!0)?a[d++]=v:a.length&&(b=!1)),k=E,v+=$s(C)}return d==l&&a[0]==0&&b?this.result(-100+(p?-200:0),a,t):h==l&&m==0?this.ret(-200-t.length+(y==t.length?0:-100),[0,y]):s>-1?this.ret(-700-t.length,[s,s+this.pattern.length]):h==l?this.ret(-900-t.length,[m,y]):d==l?this.result(-100+(p?-200:0)+-700+(b?0:-1100),a,t):n.length==2?!1:this.result((i[0]?-700:0)+-200+-1100,i,t)}result(t,n,r){let i=[],o=0;for(let a of n){let s=a+(this.astral?$s(uo(r,a)):1);o&&i[o-1]==a?i[o-1]=s:(i[o++]=a,i[o++]=s)}return this.ret(t-r.length,i)}}const po=Gt.define({combine(e){return Iu(e,{activateOnTyping:!0,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:gRe,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=>QU(t(r),n(r)),optionClass:(t,n)=>r=>QU(t(r),n(r)),addToOptions:(t,n)=>t.concat(n)})}});function QU(e,t){return e?t?e+" "+t:e:t}function gRe(e,t,n,r,i,o){let a=e.textDirection==Dr.RTL,s=a,l=!1,u="top",c,d,p=t.left-i.left,h=i.right-t.right,m=r.right-r.left,y=r.bottom-r.top;if(s&&p=y||v>t.top?c=n.bottom-t.top:(u="bottom",c=t.bottom-n.top)}let O=(t.bottom-t.top)/o.offsetHeight,b=(t.right-t.left)/o.offsetWidth;return{style:`${u}: ${c/O}px; max-width: ${d/b}px`,class:"cm-completionInfo-"+(l?a?"left-narrow":"right-narrow":s?"left":"right")}}function bRe(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(n){let r=document.createElement("div");return r.classList.add("cm-completionIcon"),n.type&&r.classList.add(...n.type.split(/\s+/g).map(i=>"cm-completionIcon-"+i)),r.setAttribute("aria-hidden","true"),r},position:20}),t.push({render(n,r,i,o){let a=document.createElement("span");a.className="cm-completionLabel";let s=n.displayLabel||n.label,l=0;for(let u=0;ul&&a.appendChild(document.createTextNode(s.slice(l,c)));let p=a.appendChild(document.createElement("span"));p.appendChild(document.createTextNode(s.slice(c,d))),p.className="cm-completionMatchedText",l=d}return ln.position-r.position).map(n=>n.render)}function aA(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 yRe{constructor(t,n,r){this.view=t,this.stateField=n,this.applyCompletion=r,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:l=>this.placeInfo(l),key:this},this.space=null,this.currentClass="";let i=t.state.field(n),{options:o,selected:a}=i.open,s=t.state.facet(po);this.optionContent=bRe(s),this.optionClass=s.optionClass,this.tooltipClass=s.tooltipClass,this.range=aA(o.length,a,s.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(t.state),this.dom.addEventListener("mousedown",l=>{let{options:u}=t.state.field(n).open;for(let c=l.target,d;c&&c!=this.dom;c=c.parentNode)if(c.nodeName=="LI"&&(d=/-(\d+)$/.exec(c.id))&&+d[1]{let u=t.state.field(this.stateField,!1);u&&u.tooltip&&t.state.facet(po).closeOnBlur&&l.relatedTarget!=t.contentDOM&&t.dispatch({effects:Ly.of(null)})}),this.showOptions(o,i.id)}mount(){this.updateSel()}showOptions(t,n){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(t,n,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(t){var n;let r=t.state.field(this.stateField),i=t.startState.field(this.stateField);if(this.updateTooltipClass(t.state),r!=i){let{options:o,selected:a,disabled:s}=r.open;(!i.open||i.open.options!=o)&&(this.range=aA(o.length,a,t.state.facet(po).maxRenderedOptions),this.showOptions(o,r.id)),this.updateSel(),s!=((n=i.open)===null||n===void 0?void 0:n.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!s)}}updateTooltipClass(t){let n=this.tooltipClass(t);if(n!=this.currentClass){for(let r of this.currentClass.split(" "))r&&this.dom.classList.remove(r);for(let r of n.split(" "))r&&this.dom.classList.add(r);this.currentClass=n}}positioned(t){this.space=t,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let t=this.view.state.field(this.stateField),n=t.open;if((n.selected>-1&&n.selected=this.range.to)&&(this.range=aA(n.options.length,n.selected,this.view.state.facet(po).maxRenderedOptions),this.showOptions(n.options,t.id)),this.updateSelectedOption(n.selected)){this.destroyInfo();let{completion:r}=n.options[n.selected],{info:i}=r;if(!i)return;let o=typeof i=="string"?document.createTextNode(i):i(r);if(!o)return;"then"in o?o.then(a=>{a&&this.view.state.field(this.stateField,!1)==t&&this.addInfoPane(a,r)}).catch(a=>Qs(this.view.state,a,"completion info")):this.addInfoPane(o,r)}}addInfoPane(t,n){this.destroyInfo();let r=this.info=document.createElement("div");if(r.className="cm-tooltip cm-completionInfo",t.nodeType!=null)r.appendChild(t),this.infoDestroy=null;else{let{dom:i,destroy:o}=t;r.appendChild(i),this.infoDestroy=o||null}this.dom.appendChild(r),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(t){let n=null;for(let r=this.list.firstChild,i=this.range.from;r;r=r.nextSibling,i++)r.nodeName!="LI"||!r.id?i--:i==t?r.hasAttribute("aria-selected")||(r.setAttribute("aria-selected","true"),n=r):r.hasAttribute("aria-selected")&&r.removeAttribute("aria-selected");return n&&vRe(this.list,n),n}measureInfo(){let t=this.dom.querySelector("[aria-selected]");if(!t||!this.info)return null;let n=this.dom.getBoundingClientRect(),r=this.info.getBoundingClientRect(),i=t.getBoundingClientRect(),o=this.space;if(!o){let a=this.dom.ownerDocument.defaultView||window;o={left:0,top:0,right:a.innerWidth,bottom:a.innerHeight}}return i.top>Math.min(o.bottom,n.bottom)-10||i.bottomr.from||r.from==0))if(o=p,typeof u!="string"&&u.header)i.appendChild(u.header(u));else{let h=i.appendChild(document.createElement("completion-section"));h.textContent=p}}const c=i.appendChild(document.createElement("li"));c.id=n+"-"+a,c.setAttribute("role","option");let d=this.optionClass(s);d&&(c.className=d);for(let p of this.optionContent){let h=p(s,this.view.state,this.view,l);h&&c.appendChild(h)}}return r.from&&i.classList.add("cm-completionListIncompleteTop"),r.tonew yRe(n,e,t)}function vRe(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 YU(e){return(e.boost||0)*100+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}function ERe(e,t){let n=[],r=null,i=l=>{n.push(l);let{section:u}=l.completion;if(u){r||(r=[]);let c=typeof u=="string"?u:u.name;r.some(d=>d.name==c)||r.push(typeof u=="string"?{name:c}:u)}};for(let l of e)if(l.hasResult()){let u=l.result.getMatch;if(l.result.filter===!1)for(let c of l.result.options)i(new HU(c,l.source,u?u(c):[],1e9-n.length));else{let c=new mRe(t.sliceDoc(l.from,l.to));for(let d of l.result.options)if(c.match(d.label)){let p=d.displayLabel?u?u(d,c.matched):[]:c.matched;i(new HU(d,l.source,p,c.score+(d.boost||0)))}}}if(r){let l=Object.create(null),u=0,c=(d,p)=>{var h,m;return((h=d.rank)!==null&&h!==void 0?h:1e9)-((m=p.rank)!==null&&m!==void 0?m:1e9)||(d.namec.score-u.score||s(u.completion,c.completion))){let u=l.completion;!a||a.label!=u.label||a.detail!=u.detail||a.type!=null&&u.type!=null&&a.type!=u.type||a.apply!=u.apply||a.boost!=u.boost?o.push(l):YU(l.completion)>YU(a)&&(o[o.length-1]=l),a=l.completion}return o}class Mh{constructor(t,n,r,i,o,a){this.options=t,this.attrs=n,this.tooltip=r,this.timestamp=i,this.selected=o,this.disabled=a}setSelected(t,n){return t==this.selected||t>=this.options.length?this:new Mh(this.options,GU(n,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,n,r,i,o){let a=ERe(t,n);if(!a.length)return i&&t.some(l=>l.state==1)?new Mh(i.options,i.attrs,i.tooltip,i.timestamp,i.selected,!0):null;let s=n.facet(po).selectOnOpen?0:-1;if(i&&i.selected!=s&&i.selected!=-1){let l=i.options[i.selected].completion;for(let u=0;uu.hasResult()?Math.min(l,u.from):l,1e8),create:xRe,above:o.aboveCursor},i?i.timestamp:Date.now(),s,!1)}map(t){return new Mh(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:t.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class yT{constructor(t,n,r){this.active=t,this.id=n,this.open=r}static start(){return new yT(wRe,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(t){let{state:n}=t,r=n.facet(po),o=(r.override||n.languageDataAt("autocomplete",Cd(n)).map(hRe)).map(s=>(this.active.find(u=>u.source==s)||new ba(s,this.active.some(u=>u.state!=0)?1:0)).update(t,r));o.length==this.active.length&&o.every((s,l)=>s==this.active[l])&&(o=this.active);let a=this.open;a&&t.docChanged&&(a=a.map(t.changes)),t.selection||o.some(s=>s.hasResult()&&t.changes.touchesRange(s.from,s.to))||!SRe(o,this.active)?a=Mh.build(o,n,this.id,a,r):a&&a.disabled&&!o.some(s=>s.state==1)&&(a=null),!a&&o.every(s=>s.state!=1)&&o.some(s=>s.hasResult())&&(o=o.map(s=>s.hasResult()?new ba(s.source,0):s));for(let s of t.effects)s.is(dX)&&(a=a&&a.setSelected(s.value,this.id));return o==this.active&&a==this.open?this:new yT(o,this.id,a)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:TRe}}function SRe(e,t){if(e==t)return!0;for(let n=0,r=0;;){for(;n-1&&(n["aria-activedescendant"]=e+"-"+t),n}const wRe=[];function kR(e){return e.isUserEvent("input.type")?"input":e.isUserEvent("delete.backward")?"delete":null}class ba{constructor(t,n,r=-1){this.source=t,this.state=n,this.explicitPos=r}hasResult(){return!1}update(t,n){let r=kR(t),i=this;r?i=i.handleUserEvent(t,r,n):t.docChanged?i=i.handleChange(t):t.selection&&i.state!=0&&(i=new ba(i.source,0));for(let o of t.effects)if(o.is(bT))i=new ba(i.source,1,o.value?Cd(t.state):-1);else if(o.is(Ly))i=new ba(i.source,0);else if(o.is(cX))for(let a of o.value)a.source==i.source&&(i=a);return i}handleUserEvent(t,n,r){return n=="delete"||!r.activateOnTyping?this.map(t.changes):new ba(this.source,1)}handleChange(t){return t.changes.touchesRange(Cd(t.startState))?new ba(this.source,0):this.map(t.changes)}map(t){return t.empty||this.explicitPos<0?this:new ba(this.source,this.state,t.mapPos(this.explicitPos))}}class nm extends ba{constructor(t,n,r,i,o){super(t,2,n),this.result=r,this.from=i,this.to=o}hasResult(){return!0}handleUserEvent(t,n,r){var i;let o=t.changes.mapPos(this.from),a=t.changes.mapPos(this.to,1),s=Cd(t.state);if((this.explicitPos<0?s<=o:sa||n=="delete"&&Cd(t.startState)==this.from)return new ba(this.source,n=="input"&&r.activateOnTyping?1:0);let l=this.explicitPos<0?-1:t.changes.mapPos(this.explicitPos),u;return kRe(this.result.validFor,t.state,o,a)?new nm(this.source,l,this.result,o,a):this.result.update&&(u=this.result.update(this.result,o,a,new CP(t.state,s,l>=0)))?new nm(this.source,l,u,u.from,(i=u.to)!==null&&i!==void 0?i:Cd(t.state)):new ba(this.source,1,l)}handleChange(t){return t.changes.touchesRange(this.from,this.to)?new ba(this.source,0):this.map(t.changes)}map(t){return t.empty?this:new nm(this.source,this.explicitPos<0?-1:t.mapPos(this.explicitPos),this.result,t.mapPos(this.from),t.mapPos(this.to,1))}}function kRe(e,t,n,r){if(!e)return!1;let i=t.sliceDoc(n,r);return typeof e=="function"?e(i,n,r,t):lX(e,!0).test(i)}const cX=xn.define({map(e,t){return e.map(n=>n.map(t))}}),dX=xn.define(),Ja=Ki.define({create(){return yT.start()},update(e,t){return e.update(t)},provide:e=>[cP.from(e,t=>t.tooltip),Vt.contentAttributes.from(e,t=>t.attrs)]});function fX(e,t){const n=t.completion.apply||t.completion.label;let r=e.state.field(Ja).active.find(i=>i.source==t.source);return r instanceof nm?(typeof n=="string"?e.dispatch(Object.assign(Object.assign({},pRe(e.state,n,r.from,r.to)),{annotations:uX.of(t.completion)})):n(e,t.completion,r.from,r.to),!0):!1}const xRe=ORe(Ja,fX);function $v(e,t="option"){return n=>{let r=n.state.field(Ja,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp-1?r.open.selected+i*(e?1:-1):e?0:a-1;return s<0?s=t=="page"?0:a-1:s>=a&&(s=t=="page"?a-1:0),n.dispatch({effects:dX.of(s)}),!0}}const CRe=e=>{let t=e.state.field(Ja,!1);return e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestampe.state.field(Ja,!1)?(e.dispatch({effects:bT.of(!0)}),!0):!1,_Re=e=>{let t=e.state.field(Ja,!1);return!t||!t.active.some(n=>n.state!=0)?!1:(e.dispatch({effects:Ly.of(null)}),!0)};class RRe{constructor(t,n){this.active=t,this.context=n,this.time=Date.now(),this.updates=[],this.done=void 0}}const IRe=50,NRe=1e3,DRe=Kr.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(Ja).active)t.state==1&&this.startQuery(t)}update(e){let t=e.state.field(Ja);if(!e.selectionSet&&!e.docChanged&&e.startState.field(Ja)==t)return;let n=e.transactions.some(i=>(i.selection||i.docChanged)&&!kR(i));for(let i=0;iIRe&&Date.now()-o.time>NRe){for(let a of o.context.abortListeners)try{a()}catch(s){Qs(this.view.state,s)}o.context.abortListeners=null,this.running.splice(i--,1)}else o.updates.push(...e.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),e.transactions.some(i=>i.effects.some(o=>o.is(bT)))&&(this.pendingStart=!0);let r=this.pendingStart?50:e.state.facet(po).activateOnTypingDelay;if(this.debounceUpdate=t.active.some(i=>i.state==1&&!this.running.some(o=>o.active.source==i.source))?setTimeout(()=>this.startUpdate(),r):-1,this.composing!=0)for(let i of e.transactions)kR(i)=="input"?this.composing=2:this.composing==2&&i.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:e}=this.view,t=e.field(Ja);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=Cd(t),r=new CP(t,n,e.explicitPos==n),i=new RRe(e,r);this.running.push(i),Promise.resolve(e.source(r)).then(o=>{i.context.aborted||(i.done=o||null,this.scheduleAccept())},o=>{this.view.dispatch({effects:Ly.of(null)}),Qs(this.view.state,o)})}scheduleAccept(){this.running.every(e=>e.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(po).updateSyncTime))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],n=this.view.state.facet(po);for(let r=0;ra.source==i.active.source);if(o&&o.state==1)if(i.done==null){let a=new ba(i.active.source,0);for(let s of i.updates)a=a.update(s,n);a.state!=1&&t.push(a)}else this.startQuery(o)}t.length&&this.view.dispatch({effects:cX.of(t)})}},{eventHandlers:{blur(e){let t=this.view.state.field(Ja,!1);if(t&&t.tooltip&&this.view.state.facet(po).closeOnBlur){let n=t.open&&Vq(this.view,t.open.tooltip);(!n||!n.dom.contains(e.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:Ly.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:bT.of(!1)}),20),this.composing=0}}}),pX=Vt.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class PRe{constructor(t,n,r,i){this.field=t,this.line=n,this.from=r,this.to=i}}class AP{constructor(t,n,r){this.field=t,this.from=n,this.to=r}map(t){let n=t.mapPos(this.from,-1,fo.TrackDel),r=t.mapPos(this.to,1,fo.TrackDel);return n==null||r==null?null:new AP(this.field,n,r)}}class _P{constructor(t,n){this.lines=t,this.fieldPositions=n}instantiate(t,n){let r=[],i=[n],o=t.doc.lineAt(n),a=/^\s*/.exec(o.text)[0];for(let l of this.lines){if(r.length){let u=a,c=/^\t*/.exec(l)[0].length;for(let d=0;dnew AP(l.field,i[l.line]+l.from,i[l.line]+l.to));return{text:r,ranges:s}}static parse(t){let n=[],r=[],i=[],o;for(let a of t.split(/\r\n?|\n/)){for(;o=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(a);){let s=o[1]?+o[1]:null,l=o[2]||o[3]||"",u=-1;for(let c=0;c=u&&d.field++}i.push(new PRe(u,r.length,o.index,o.index+l.length)),a=a.slice(0,o.index)+l+a.slice(o.index+o[0].length)}for(let s;s=/\\([{}])/.exec(a);){a=a.slice(0,s.index)+s[1]+a.slice(s.index+s[0].length);for(let l of i)l.line==r.length&&l.from>s.index&&(l.from--,l.to--)}r.push(a)}return new _P(r,i)}}let LRe=sn.widget({widget:new class extends Nu{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),MRe=sn.mark({class:"cm-snippetField"});class Tg{constructor(t,n){this.ranges=t,this.active=n,this.deco=sn.set(t.map(r=>(r.from==r.to?LRe:MRe).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 Tg(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 X1=xn.define({map(e,t){return e&&e.map(t)}}),$Re=xn.define(),My=Ki.define({create(){return null},update(e,t){for(let n of t.effects){if(n.is(X1))return n.value;if(n.is($Re)&&e)return new Tg(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=>Vt.decorations.from(e,t=>t?t.deco:sn.none)});function RP(e,t){return Je.create(e.filter(n=>n.field==t).map(n=>Je.range(n.from,n.to)))}function FRe(e){let t=_P.parse(e);return(n,r,i,o)=>{let{text:a,ranges:s}=t.instantiate(n.state,i),l={changes:{from:i,to:o,insert:rr.of(a)},scrollIntoView:!0,annotations:r?[uX.of(r),Si.userEvent.of("input.complete")]:void 0};if(s.length&&(l.selection=RP(s,0)),s.some(u=>u.field>0)){let u=new Tg(s,0),c=l.effects=[X1.of(u)];n.state.field(My,!1)===void 0&&c.push(xn.appendConfig.of([My,VRe,HRe,pX]))}n.dispatch(n.state.update(l))}}function hX(e){return({state:t,dispatch:n})=>{let r=t.field(My,!1);if(!r||e<0&&r.active==0)return!1;let i=r.active+e,o=e>0&&!r.ranges.some(a=>a.field==i+e);return n(t.update({selection:RP(r.ranges,i),effects:X1.of(o?null:new Tg(r.ranges,i)),scrollIntoView:!0})),!0}}const BRe=({state:e,dispatch:t})=>e.field(My,!1)?(t(e.update({effects:X1.of(null)})),!0):!1,URe=hX(1),jRe=hX(-1),zRe=[{key:"Tab",run:URe,shift:jRe},{key:"Escape",run:BRe}],qU=Gt.define({combine(e){return e.length?e[0]:zRe}}),VRe=Zd.highest(yg.compute([qU],e=>e.facet(qU)));function fa(e,t){return Object.assign(Object.assign({},t),{apply:FRe(e)})}const HRe=Vt.domEventHandlers({mousedown(e,t){let n=t.state.field(My,!1),r;if(!n||(r=t.posAtCoords({x:e.clientX,y:e.clientY}))==null)return!1;let i=n.ranges.find(o=>o.from<=r&&o.to>=r);return!i||i.field==n.active?!1:(t.dispatch({selection:RP(n.ranges,i.field),effects:X1.of(n.ranges.some(o=>o.field>i.field)?new Tg(n.ranges,i.field):null),scrollIntoView:!0}),!0)}}),$y={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},Df=xn.define({map(e,t){let n=t.mapPos(e,-1,fo.TrackAfter);return n??void 0}}),IP=new class extends up{};IP.startSide=1;IP.endSide=-1;const mX=Ki.define({create(){return Xn.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(Df)&&(e=e.update({add:[IP.range(n.value,n.value+1)]}));return e}});function WRe(){return[YRe,mX]}const sA="()[]{}<>";function gX(e){for(let t=0;t{if((QRe?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let i=e.state.selection.main;if(r.length>2||r.length==2&&$s(uo(r,0))==1||t!=i.from||n!=i.to)return!1;let o=ZRe(e.state,r);return o?(e.dispatch(o),!0):!1}),GRe=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let r=bX(e,e.selection.main.head).brackets||$y.brackets,i=null,o=e.changeByRange(a=>{if(a.empty){let s=XRe(e.doc,a.head);for(let l of r)if(l==s&&Lk(e.doc,a.head)==gX(uo(l,0)))return{changes:{from:a.head-l.length,to:a.head+l.length},range:Je.cursor(a.head-l.length)}}return{range:i=a}});return i||t(e.update(o,{scrollIntoView:!0,userEvent:"delete.backward"})),!i},qRe=[{key:"Backspace",run:GRe}];function ZRe(e,t){let n=bX(e,e.selection.main.head),r=n.brackets||$y.brackets;for(let i of r){let o=gX(uo(i,0));if(t==i)return o==i?eIe(e,i,r.indexOf(i+i+i)>-1,n):KRe(e,i,o,n.before||$y.before);if(t==o&&yX(e,e.selection.main.from))return JRe(e,i,o)}return null}function yX(e,t){let n=!1;return e.field(mX).between(0,e.doc.length,r=>{r==t&&(n=!0)}),n}function Lk(e,t){let n=e.sliceString(t,t+2);return n.slice(0,$s(uo(n,0)))}function XRe(e,t){let n=e.sliceString(t-2,t);return $s(uo(n,0))==n.length?n:n.slice(1)}function KRe(e,t,n,r){let i=null,o=e.changeByRange(a=>{if(!a.empty)return{changes:[{insert:t,from:a.from},{insert:n,from:a.to}],effects:Df.of(a.to+t.length),range:Je.range(a.anchor+t.length,a.head+t.length)};let s=Lk(e.doc,a.head);return!s||/\s/.test(s)||r.indexOf(s)>-1?{changes:{insert:t+n,from:a.head},effects:Df.of(a.head+t.length),range:Je.cursor(a.head+t.length)}:{range:i=a}});return i?null:e.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function JRe(e,t,n){let r=null,i=e.changeByRange(o=>o.empty&&Lk(e.doc,o.head)==n?{changes:{from:o.head,to:o.head+n.length,insert:n},range:Je.cursor(o.head+n.length)}:r={range:o});return r?null:e.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function eIe(e,t,n,r){let i=r.stringPrefixes||$y.stringPrefixes,o=null,a=e.changeByRange(s=>{if(!s.empty)return{changes:[{insert:t,from:s.from},{insert:t,from:s.to}],effects:Df.of(s.to+t.length),range:Je.range(s.anchor+t.length,s.head+t.length)};let l=s.head,u=Lk(e.doc,l),c;if(u==t){if(ZU(e,l))return{changes:{insert:t+t,from:l},effects:Df.of(l+t.length),range:Je.cursor(l+t.length)};if(yX(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:Je.cursor(l+p.length)}}}else{if(n&&e.sliceDoc(l-2*t.length,l)==t+t&&(c=XU(e,l-2*t.length,i))>-1&&ZU(e,c))return{changes:{insert:t+t+t+t,from:l},effects:Df.of(l+t.length),range:Je.cursor(l+t.length)};if(e.charCategorizer(l)(u)!=Vr.Word&&XU(e,l,i)>-1&&!tIe(e,l,t,i))return{changes:{insert:t+t,from:l},effects:Df.of(l+t.length),range:Je.cursor(l+t.length)}}return{range:o=s}});return o?null:e.update(a,{scrollIntoView:!0,userEvent:"input.type"})}function ZU(e,t){let n=kr(e).resolveInner(t+1);return n.parent&&n.from==t}function tIe(e,t,n,r){let i=kr(e).resolveInner(t,-1),o=r.reduce((a,s)=>Math.max(a,s.length),0);for(let a=0;a<5;a++){let s=e.sliceDoc(i.from,Math.min(i.to,i.from+n.length+o)),l=s.indexOf(n);if(!l||l>-1&&r.indexOf(s.slice(0,l))>-1){let c=i.firstChild;for(;c&&c.from==i.from&&c.to-c.from>n.length+l;){if(e.sliceDoc(c.to-n.length,c.to)==n)return!1;c=c.firstChild}return!0}let u=i.to==t&&i.parent;if(!u)break;i=u}return!1}function XU(e,t,n){let r=e.charCategorizer(t);if(r(e.sliceDoc(t-1,t))!=Vr.Word)return t;for(let i of n){let o=t-i.length;if(e.sliceDoc(o,t)==i&&r(e.sliceDoc(o-1,o))!=Vr.Word)return o}return-1}function nIe(e={}){return[Ja,po.of(e),DRe,rIe,pX]}const OX=[{key:"Ctrl-Space",run:ARe},{key:"Escape",run:_Re},{key:"ArrowDown",run:$v(!0)},{key:"ArrowUp",run:$v(!1)},{key:"PageDown",run:$v(!0,"page")},{key:"PageUp",run:$v(!1,"page")},{key:"Enter",run:CRe}],rIe=Zd.highest(yg.computeN([po],e=>e.facet(po).defaultKeymap?[OX]:[]));class iIe{constructor(t,n,r){this.from=t,this.to=n,this.diagnostic=r}}class Ef{constructor(t,n,r){this.diagnostics=t,this.panel=n,this.selected=r}static init(t,n,r){let i=t,o=r.facet(SX).markerFilter;o&&(i=o(i));let a=sn.set(i.map(s=>s.from==s.to||s.from==s.to-1&&r.doc.lineAt(s.from).to==s.from?sn.widget({widget:new pIe(s),diagnostic:s}).range(s.from):sn.mark({attributes:{class:"cm-lintRange cm-lintRange-"+s.severity+(s.markClass?" "+s.markClass:"")},diagnostic:s}).range(s.from,s.to)),!0);return new Ef(a,n,Gm(a))}}function Gm(e,t=null,n=0){let r=null;return e.between(n,1e9,(i,o,{spec:a})=>{if(!(t&&a.diagnostic!=t))return r=new iIe(i,o,a.diagnostic),!1}),r}function oIe(e,t){let n=e.startState.doc.lineAt(t.pos);return!!(e.effects.some(r=>r.is(vX))||e.changes.touchesRange(n.from,n.to))}function aIe(e,t){return e.field(as,!1)?t:t.concat(xn.appendConfig.of(gIe))}const vX=xn.define(),NP=xn.define(),EX=xn.define(),as=Ki.define({create(){return new Ef(sn.none,null,null)},update(e,t){if(t.docChanged){let n=e.diagnostics.map(t.changes),r=null;if(e.selected){let i=t.changes.mapPos(e.selected.from,1);r=Gm(n,e.selected.diagnostic,i)||Gm(n,null,i)}e=new Ef(n,e.panel,r)}for(let n of t.effects)n.is(vX)?e=Ef.init(n.value,e.panel,t.state):n.is(NP)?e=new Ef(e.diagnostics,n.value?Mk.open:null,e.selected):n.is(EX)&&(e=new Ef(e.diagnostics,e.panel,n.value));return e},provide:e=>[Ay.from(e,t=>t.panel),Vt.decorations.from(e,t=>t.diagnostics)]}),sIe=sn.mark({class:"cm-lintRange cm-lintRange-active"});function lIe(e,t,n){let{diagnostics:r}=e.state.field(as),i=[],o=2e8,a=0;r.between(t-(n<0?1:0),t+(n>0?1:0),(l,u,{spec:c})=>{t>=l&&t<=u&&(l==u||(t>l||n>0)&&(twX(e,n,!1)))}const cIe=e=>{let t=e.state.field(as,!1);(!t||!t.panel)&&e.dispatch({effects:aIe(e.state,[NP.of(!0)])});let n=Cy(e,Mk.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},KU=e=>{let t=e.state.field(as,!1);return!t||!t.panel?!1:(e.dispatch({effects:NP.of(!1)}),!0)},dIe=e=>{let t=e.state.field(as,!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)},fIe=[{key:"Mod-Shift-m",run:cIe,preventDefault:!0},{key:"F8",run:dIe}],SX=Gt.define({combine(e){return Object.assign({sources:e.map(t=>t.source)},Iu(e.map(t=>t.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null},{needsRefresh:(t,n)=>t?n?r=>t(r)||n(r):t:n}))}});function TX(e){let t=[];if(e)e:for(let{name:n}of e){for(let r=0;ro.toLowerCase()==i.toLowerCase())){t.push(i);continue e}}t.push("")}return t}function wX(e,t,n){var r;let i=n?TX(t.actions):[];return Sr("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},Sr("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage():t.message),(r=t.actions)===null||r===void 0?void 0:r.map((o,a)=>{let s=!1,l=p=>{if(p.preventDefault(),s)return;s=!0;let h=Gm(e.state.field(as).diagnostics,t);h&&o.apply(e,h.from,h.to)},{name:u}=o,c=i[a]?u.indexOf(i[a]):-1,d=c<0?u:[u.slice(0,c),Sr("u",u.slice(c,c+1)),u.slice(c+1)];return Sr("button",{type:"button",class:"cm-diagnosticAction",onclick:l,onmousedown:l,"aria-label":` Action: ${u}${c<0?"":` (access key "${i[a]})"`}.`},d)}),t.source&&Sr("div",{class:"cm-diagnosticSource"},t.source))}class pIe extends Nu{constructor(t){super(),this.diagnostic=t}eq(t){return t.diagnostic==this.diagnostic}toDOM(){return Sr("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class JU{constructor(t,n){this.diagnostic=n,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=wX(t,n,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class Mk{constructor(t){this.view=t,this.items=[];let n=i=>{if(i.keyCode==27)KU(this.view),this.view.focus();else if(i.keyCode==38||i.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(i.keyCode==40||i.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(i.keyCode==36)this.moveSelection(0);else if(i.keyCode==35)this.moveSelection(this.items.length-1);else if(i.keyCode==13)this.view.focus();else if(i.keyCode>=65&&i.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:o}=this.items[this.selectedIndex],a=TX(o.actions);for(let s=0;s{for(let o=0;oKU(this.view)},"×")),this.update()}get selectedIndex(){let t=this.view.state.field(as).selected;if(!t)return-1;for(let n=0;n{let u=-1,c;for(let d=r;dr&&(this.items.splice(r,u-r),i=!0)),n&&c.diagnostic==n.diagnostic?c.dom.hasAttribute("aria-selected")||(c.dom.setAttribute("aria-selected","true"),o=c):c.dom.hasAttribute("aria-selected")&&c.dom.removeAttribute("aria-selected"),r++});r({sel:o.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:a,panel:s})=>{let l=s.height/this.list.offsetHeight;a.tops.bottom&&(this.list.scrollTop+=(a.bottom-s.bottom)/l)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),i&&this.sync()}sync(){let t=this.list.firstChild;function n(){let r=t;t=r.nextSibling,r.remove()}for(let r of this.items)if(r.dom.parentNode==this.list){for(;t!=r.dom;)n();t=r.dom.nextSibling}else this.list.insertBefore(r.dom,t);for(;t;)n()}moveSelection(t){if(this.selectedIndex<0)return;let n=this.view.state.field(as),r=Gm(n.diagnostics,this.items[t].diagnostic);r&&this.view.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0,effects:EX.of(r)})}static open(t){return new Mk(t)}}function hIe(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(e)}')`}function Fv(e){return hIe(``,'width="6" height="3"')}const mIe=Vt.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:Fv("#d11")},".cm-lintRange-warning":{backgroundImage:Fv("orange")},".cm-lintRange-info":{backgroundImage:Fv("#999")},".cm-lintRange-hint":{backgroundImage:Fv("#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}}}),gIe=[as,Vt.decorations.compute([as],e=>{let{selected:t,panel:n}=e.field(as);return!t||!n||t.from==t.to?sn.none:sn.set([sIe.range(t.from,t.to)])}),aAe(lIe,{hideOn:oIe}),mIe],bIe=[mAe(),yAe(),$Ce(),M2e(),c2e(),xCe(),ICe(),qn.allowMultipleSelections.of(!0),KAe(),pZ(h2e,{fallback:!0}),E2e(),WRe(),nIe(),qCe(),KCe(),VCe(),z_e(),yg.of([...qRe,...M_e,...sRe,...W2e,...a2e,...OX,...fIe])];class OT{static create(t,n,r,i,o){let a=i+(i<<8)+t+(n<<4)|0;return new OT(t,n,r,a,o,[],[])}constructor(t,n,r,i,o,a,s){this.type=t,this.value=n,this.from=r,this.hash=i,this.end=o,this.children=a,this.positions=s,this.hashProp=[[On.contextHash,i]]}addChild(t,n){t.prop(On.contextHash)!=this.hash&&(t=new ur(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 ur(t.types[this.type],this.children,this.positions,n-this.from).balance({makeTree:(i,o,a)=>new ur(Li.none,i,o,a,this.hashProp)})}}var Rt;(function(e){e[e.Document=1]="Document",e[e.CodeBlock=2]="CodeBlock",e[e.FencedCode=3]="FencedCode",e[e.Blockquote=4]="Blockquote",e[e.HorizontalRule=5]="HorizontalRule",e[e.BulletList=6]="BulletList",e[e.OrderedList=7]="OrderedList",e[e.ListItem=8]="ListItem",e[e.ATXHeading1=9]="ATXHeading1",e[e.ATXHeading2=10]="ATXHeading2",e[e.ATXHeading3=11]="ATXHeading3",e[e.ATXHeading4=12]="ATXHeading4",e[e.ATXHeading5=13]="ATXHeading5",e[e.ATXHeading6=14]="ATXHeading6",e[e.SetextHeading1=15]="SetextHeading1",e[e.SetextHeading2=16]="SetextHeading2",e[e.HTMLBlock=17]="HTMLBlock",e[e.LinkReference=18]="LinkReference",e[e.Paragraph=19]="Paragraph",e[e.CommentBlock=20]="CommentBlock",e[e.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",e[e.Escape=22]="Escape",e[e.Entity=23]="Entity",e[e.HardBreak=24]="HardBreak",e[e.Emphasis=25]="Emphasis",e[e.StrongEmphasis=26]="StrongEmphasis",e[e.Link=27]="Link",e[e.Image=28]="Image",e[e.InlineCode=29]="InlineCode",e[e.HTMLTag=30]="HTMLTag",e[e.Comment=31]="Comment",e[e.ProcessingInstruction=32]="ProcessingInstruction",e[e.Autolink=33]="Autolink",e[e.HeaderMark=34]="HeaderMark",e[e.QuoteMark=35]="QuoteMark",e[e.ListMark=36]="ListMark",e[e.LinkMark=37]="LinkMark",e[e.EmphasisMark=38]="EmphasisMark",e[e.CodeMark=39]="CodeMark",e[e.CodeText=40]="CodeText",e[e.CodeInfo=41]="CodeInfo",e[e.LinkTitle=42]="LinkTitle",e[e.LinkLabel=43]="LinkLabel",e[e.URL=44]="URL"})(Rt||(Rt={}));class yIe{constructor(t,n){this.start=t,this.content=n,this.marks=[],this.parsers=[]}}class OIe{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 Tb(this.text,t)}reset(t){for(this.text=t,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(t){this.basePos=t,this.baseIndent=this.countIndent(t,this.pos,this.indent)}moveBaseColumn(t){this.baseIndent=t,this.basePos=this.findColumn(t)}addMarker(t){this.markers.push(t)}countIndent(t,n=0,r=0){for(let i=n;i=t.stack[n.depth+1].value+n.baseIndent)return!0;if(n.indent>=n.baseIndent+4)return!1;let r=(e.type==Rt.OrderedList?LP:PP)(n,t,!1);return r>0&&(e.type!=Rt.BulletList||DP(n,t,!1)<0)&&n.text.charCodeAt(n.pos+r-1)==e.value}const kX={[Rt.Blockquote](e,t,n){return n.next!=62?!1:(n.markers.push(Gn(Rt.QuoteMark,t.lineStart+n.pos,t.lineStart+n.pos+1)),n.moveBase(n.pos+(rl(n.text.charCodeAt(n.pos+1))?2:1)),e.end=t.lineStart+n.text.length,!0)},[Rt.ListItem](e,t,n){return n.indent-1?!1:(n.moveBaseColumn(n.baseIndent+e.value),!0)},[Rt.OrderedList]:e9,[Rt.BulletList]:e9,[Rt.Document](){return!0}};function rl(e){return e==32||e==9||e==10||e==13}function Tb(e,t=0){for(;tn&&rl(e.charCodeAt(t-1));)t--;return t}function xX(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 AX(e,t){for(let n=e.stack.length-1;n>=0;n--)if(e.stack[n].type==t)return!0;return!1}function PP(e,t,n){return(e.next==45||e.next==43||e.next==42)&&(e.pos==e.text.length-1||rl(e.text.charCodeAt(e.pos+1)))&&(!n||AX(t,Rt.BulletList)||e.skipSpace(e.pos+2)=48&&i<=57;){r++;if(r==e.text.length)return-1;i=e.text.charCodeAt(r)}return r==e.pos||r>e.pos+9||i!=46&&i!=41||re.pos+1||e.next!=49)?-1:r+1-e.pos}function _X(e){if(e.next!=35)return-1;let t=e.pos+1;for(;t6?-1:n}function RX(e){if(e.next!=45&&e.next!=61||e.indent>=e.baseIndent+4)return-1;let t=e.pos+1;for(;t/,NX=/\?>/,CR=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/,aK=/\?>/,GR=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/i.exec(r);if(o)return e.append(Gn(Rt.Comment,n,n+1+o[0].length));let a=/^\?[^]*?\?>/.exec(r);if(a)return e.append(Gn(Rt.ProcessingInstruction,n,n+1+a[0].length));let s=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(r);return s?e.append(Gn(Rt.HTMLTag,n,n+1+s[0].length)):-1},Emphasis(e,t,n){if(t!=95&&t!=42)return-1;let r=n+1;for(;e.char(r)==t;)r++;let i=e.slice(n-1,n),o=e.slice(r,r+1),a=By.test(i),s=By.test(o),l=/\s|^$/.test(i),u=/\s|^$/.test(o),c=!u&&(!s||l||a),d=!l&&(!a||u||s),p=c&&(t==42||!d||a),h=d&&(t==42||!c||s);return e.append(new ml(t==95?FX:BX,n,r,(p?1:0)|(h?2:0)))},HardBreak(e,t,n){if(t==92&&e.char(n+1)==10)return e.append(Gn(Rt.HardBreak,n,n+2));if(t==32){let r=n+1;for(;e.char(r)==32;)r++;if(e.char(r)==10&&r>=n+2)return e.append(Gn(Rt.HardBreak,n,r+1))}return-1},Link(e,t,n){return t==91?e.append(new ml(S0,n,n+1,1)):-1},Image(e,t,n){return t==33&&e.char(n+1)==91?e.append(new ml(r9,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 ml&&(i.type==S0||i.type==r9)){if(!i.side||e.skipSpace(i.to)==n&&!/[(\[]/.test(e.slice(n+1,n+2)))return e.parts[r]=null,-1;let o=e.takeContent(r),a=e.parts[r]=xIe(e,o,i.type==S0?Rt.Link:Rt.Image,i.from,n+1);if(i.type==S0)for(let s=0;st?Gn(Rt.URL,t+n,o+n):o==e.length?null:!1}}function jX(e,t,n){let r=e.charCodeAt(t);if(r!=39&&r!=34&&r!=40)return!1;let i=r==40?41:r;for(let o=t+1,a=!1;o=this.end?-1:this.text.charCodeAt(t-this.offset)}get end(){return this.offset+this.text.length}slice(t,n){return this.text.slice(t-this.offset,n-this.offset)}append(t){return this.parts.push(t),t.to}addDelimiter(t,n,r,i,o){return this.append(new ml(t,n,r,(i?1:0)|(o?2:0)))}addElement(t){return this.append(t)}resolveMarkers(t){for(let r=t;r=t;l--){let y=this.parts[l];if(y instanceof ml&&y.side&1&&y.type==i.type&&!(o&&(i.side&1||y.side&2)&&(y.to-y.from+a)%3==0&&((y.to-y.from)%3||a%3))){s=y;break}}if(!s)continue;let u=i.type.resolve,c=[],d=s.from,p=i.to;if(o){let y=Math.min(2,s.to-s.from,a);d=s.to-y,p=i.from+y,u=y==1?"Emphasis":"StrongEmphasis"}s.type.mark&&c.push(this.elt(s.type.mark,d,s.to));for(let y=l+1;y=0;n--){let r=this.parts[n];if(r instanceof ml&&r.type==t)return n}return null}takeContent(t){let n=this.resolveMarkers(t);return this.parts.length=t,n}skipSpace(t){return Tb(this.text,t-this.offset)+this.offset}elt(t,n,r,i){return typeof t=="string"?Gn(this.parser.getNodeType(t),n,r,i):new $X(t,n)}}function _R(e,t){if(!t.length)return e;if(!e.length)return t;let n=e.slice(),r=0;for(let i of t){for(;r(t?t-1:0))return!1;if(this.fragmentEnd<0){let o=this.fragment.to;for(;o>0&&this.input.read(o-1,o)!=` -`;)o--;this.fragmentEnd=o?o-1:0}let r=this.cursor;r||(r=this.cursor=this.fragment.tree.cursor(),r.firstChild());let i=t+this.fragment.offset;for(;r.to<=i;)if(!r.parent())return!1;for(;;){if(r.from>=i)return this.fragment.from<=n;if(!r.childAfter(i))return!1}}matches(t){let n=this.cursor.tree;return n&&n.prop(On.contextHash)==t}takeNodes(t){let n=this.cursor,r=this.fragment.offset,i=this.fragmentEnd-(this.fragment.openEnd?1:0),o=t.absoluteLineStart,a=o,s=t.block.children.length,l=a,u=s;for(;;){if(n.to-r>i){if(n.type.isAnonymous&&n.firstChild())continue;break}let c=VX(n.from-r,t.ranges);if(n.to-r<=t.ranges[t.rangeI].to)t.addNode(n.tree,c);else{let d=new ur(t.parser.nodeSet.types[Rt.Paragraph],[],[],0,t.block.hashProp);t.reusePlaceholders.set(d,n.tree),t.addNode(d,c)}if(n.type.is("Block")&&(AIe.indexOf(n.type.id)<0?(a=n.to-r,s=t.block.children.length):(a=l,s=u,l=n.to-r,u=t.block.children.length)),!n.nextSibling())break}for(;t.block.children.length>s;)t.block.children.pop(),t.block.positions.pop();return a-o}};function VX(e,t){let n=e;for(let r=1;rBv[e]),Object.keys(Bv).map(e=>SIe[e]),Object.keys(Bv),TIe,kX,Object.keys(uA).map(e=>uA[e]),Object.keys(uA),[]);function NIe(e,t,n){let r=[];for(let i=e.firstChild,o=t;;i=i.nextSibling){let a=i?i.from:n;if(a>o&&r.push({from:o,to:a}),!i)break;o=i.to}return r}function DIe(e){let{codeParser:t,htmlParser:n}=e;return{wrap:Kq((i,o)=>{let a=i.type.id;if(t&&(a==Rt.CodeBlock||a==Rt.FencedCode)){let s="";if(a==Rt.FencedCode){let u=i.node.getChild(Rt.CodeInfo);u&&(s=o.read(u.from,u.to))}let l=t(s);if(l)return{parser:l,overlay:u=>u.type.id==Rt.CodeText}}else if(n&&(a==Rt.HTMLBlock||a==Rt.HTMLTag))return{parser:n,overlay:NIe(i.node,i.from,i.to)};return null})}}const PIe={resolve:"Strikethrough",mark:"StrikethroughMark"},LIe={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":pe.strikethrough}},{name:"StrikethroughMark",style:pe.processingInstruction}],parseInline:[{name:"Strikethrough",parse(e,t,n){if(t!=126||e.char(n+1)!=126||e.char(n+2)==126)return-1;let r=e.slice(n-1,n),i=e.slice(n+2,n+3),o=/\s|^$/.test(r),a=/\s|^$/.test(i),s=By.test(r),l=By.test(i);return e.addDelimiter(PIe,n,n+2,!a&&(!l||o||s),!o&&(!s||a||l))},after:"Emphasis"}]};function wb(e,t,n=0,r,i=0){let o=0,a=!0,s=-1,l=-1,u=!1,c=()=>{r.push(e.elt("TableCell",i+s,i+l,e.parser.parseInline(t.slice(s,l),i+s)))};for(let d=n;d-1)&&o++,a=!1,r&&(s>-1&&c(),r.push(e.elt("TableDelimiter",d+i,d+i+1))),s=l=-1):(u||p!=32&&p!=9)&&(s<0&&(s=d),l=d+1),u=!u&&p==92}return s>-1&&(o++,r&&c()),o}function o9(e,t){for(let n=t;ni instanceof a9)||!o9(t.text,t.basePos))return!1;let r=e.scanLine(e.absoluteLineEnd+1).text;return HX.test(r)&&wb(e,t.text,t.basePos)==wb(e,r,t.basePos)},before:"SetextHeading"}]};class $Ie{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 FIe={defineNodes:[{name:"Task",block:!0,style:pe.list},{name:"TaskMarker",style:pe.atom}],parseBlock:[{name:"TaskList",leaf(e,t){return/^\[[ xX]\][ \t]/.test(t.content)&&e.parentType().name=="ListItem"?new $Ie:null},after:"SetextHeading"}]},s9=/(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy,l9=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,BIe=/[\w-]+\.[\w-]+($|\/)/,u9=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,c9=/\/[a-zA-Z\d@.]+/gy;function d9(e,t,n,r){let i=0;for(let o=t;o-1)return-1;let r=t+n[0].length;for(;;){let i=e[r-1],o;if(/[?!.,:*_~]/.test(i)||i==")"&&d9(e,t,r,")")>d9(e,t,r,"("))r--;else if(i==";"&&(o=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(e.slice(t,r))))r=t+o.index;else break}return r}function f9(e,t){u9.lastIndex=t;let n=u9.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 jIe={parseInline:[{name:"Autolink",parse(e,t,n){let r=n-e.offset;s9.lastIndex=r;let i=s9.exec(e.text),o=-1;return!i||(i[1]||i[2]?o=UIe(e.text,r+i[0].length):i[3]?o=f9(e.text,r):(o=f9(e.text,r+i[0].length),o>-1&&i[0]=="xmpp:"&&(c9.lastIndex=o,i=c9.exec(e.text),i&&(o=i.index+i[0].length))),o<0)?-1:(e.addElement(e.elt("URL",n,o+e.offset)),o+e.offset)}}]},zIe=[MIe,FIe,LIe,jIe];function WX(e,t,n){return(r,i,o)=>{if(i!=e||r.char(o+1)==e)return-1;let a=[r.elt(n,o,o+1)];for(let s=o+1;sn%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,n,r=0){let i=t.parser.context;return new vT(t,[],n,r,r,0,[],0,i?new h9(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,n){this.stack.push(this.state,n,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var n;let r=t>>19,i=t&65535,{parser:o}=this.p,a=o.dynamicPrecedence(i);if(a&&(this.score+=a),r==0){this.pushState(o.getGoto(this.state,i,!0),this.reducePos),i=2e3&&!(!((n=this.p.parser.nodeSet.types[i])===null||n===void 0)&&n.isAnonymous)&&(l==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=u):this.p.lastBigReductionSizes;)this.stack.pop();this.reduceContext(i,l)}storeNode(t,n,r,i=4,o=!1){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&a.buffer[s-4]==0&&a.buffer[s-1]>-1){if(n==r)return;if(a.buffer[s-2]>=n){a.buffer[s-2]=r;return}}}if(!o||this.pos==r)this.buffer.push(t,n,r,i);else{let a=this.buffer.length;if(a>0&&this.buffer[a-4]!=0)for(;a>0&&this.buffer[a-2]>r;)this.buffer[a]=this.buffer[a-4],this.buffer[a+1]=this.buffer[a-3],this.buffer[a+2]=this.buffer[a-2],this.buffer[a+3]=this.buffer[a-1],a-=4,i>4&&(i-=4);this.buffer[a]=t,this.buffer[a+1]=n,this.buffer[a+2]=r,this.buffer[a+3]=i}}shift(t,n,r,i){if(t&131072)this.pushState(t&65535,this.pos);else if(t&262144)this.pos=i,this.shiftContext(n,r),n<=this.p.parser.maxNode&&this.buffer.push(n,r,i,4);else{let o=t,{parser:a}=this.p;(i>this.pos||n<=a.maxNode)&&(this.pos=i,a.stateFlag(o,1)||(this.reducePos=i)),this.pushState(o,r),this.shiftContext(n,r),n<=a.maxNode&&this.buffer.push(n,r,i,4)}}apply(t,n,r,i){t&65536?this.reduce(t):this.shift(t,n,r,i)}useNode(t,n){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=t)&&(this.p.reused.push(t),r++);let i=this.pos;this.reducePos=this.pos=i+t.length,this.pushState(n,i),this.buffer.push(r,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,n=t.buffer.length;for(;n>0&&t.buffer[n-2]>t.reducePos;)n-=4;let r=t.buffer.slice(n),i=t.bufferBase+n;for(;t&&i==t.bufferBase;)t=t.parent;return new vT(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 QIe(this);;){let r=this.p.parser.stateSlot(n.state,4)||this.p.parser.hasAction(n.state,t);if(r==0)return!1;if(!(r&65536))return!0;n.reduce(r)}}recoverByInsert(t){if(this.stack.length>=300)return[];let n=this.p.parser.nextStates(this.state);if(n.length>8||this.stack.length>=120){let i=[];for(let o=0,a;ol&1&&s==a)||i.push(n[o],a)}n=i}let r=[];for(let i=0;i>19,i=n&65535,o=this.stack.length-r*3;if(o<0||t.getGoto(this.stack[o],i,!1)<0){let a=this.findForcedReduction();if(a==null)return!1;n=a}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}findForcedReduction(){let{parser:t}=this.p,n=[],r=(i,o)=>{if(!n.includes(i))return n.push(i),t.allActions(i,a=>{if(!(a&393216))if(a&65536){let s=(a>>19)-o;if(s>1){let l=a&65535,u=this.stack.length-s*3;if(u>=0&&t.getGoto(this.stack[u],l,!1)>=0)return s<<19|65536|l}}else{let s=r(a,o+1);if(s!=null)return s}})};return r(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:t}=this.p;return t.data[t.stateSlot(this.state,1)]==65535&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let n=0;nthis.lookAhead&&(this.emitLookAhead(),this.lookAhead=t)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class h9{constructor(t,n){this.tracker=t,this.context=n,this.hash=t.strict?t.hash(n):0}}class QIe{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 ET{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 ET(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 ET(this.stack,this.pos,this.index)}}function q0(e,t=Uint16Array){if(typeof e!="string")return e;let n=null;for(let r=0,i=0;r=92&&a--,a>=34&&a--;let l=a-32;if(l>=46&&(l-=46,s=!0),o+=l,s)break;o*=46}n?n[i++]=o:n=new t(o)}return n}class $E{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const m9=new $E;class YIe{constructor(t,n){this.input=t,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=m9,this.rangeIndex=0,this.pos=this.chunkPos=n[0].from,this.range=n[0],this.end=n[n.length-1].to,this.readNext()}resolveOffset(t,n){let r=this.range,i=this.rangeIndex,o=this.pos+t;for(;or.to:o>=r.to;){if(i==this.ranges.length-1)return null;let a=this.ranges[++i];o+=a.from-r.to,r=a}return o}clipPos(t){if(t>=this.range.from&&tt)return Math.max(t,n.from);return this.end}peek(t){let n=this.chunkOff+t,r,i;if(n>=0&&n=this.chunk2Pos&&rs.to&&(this.chunk2=this.chunk2.slice(0,s.to-r)),i=this.chunk2.charCodeAt(0)}}return r>=this.token.lookAhead&&(this.token.lookAhead=r+1),i}acceptToken(t,n=0){let r=n?this.resolveOffset(n,-1):this.pos;if(r==null||r=this.chunk2Pos&&this.posthis.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,n){if(n?(this.token=n,n.start=t,n.lookAhead=t+1,n.value=n.extended=-1):this.token=m9,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 rm{constructor(t,n){this.data=t,this.id=n}token(t,n){let{parser:r}=n.p;QX(this.data,t,n,this.id,r.data,r.tokenPrecTable)}}rm.prototype.contextual=rm.prototype.fallback=rm.prototype.extend=!1;class ST{constructor(t,n,r){this.precTable=n,this.elseToken=r,this.data=typeof t=="string"?q0(t):t}token(t,n){let r=t.pos,i=0;for(;;){let o=t.next<0,a=t.resolveOffset(1,1);if(QX(this.data,t,n,0,this.data,this.precTable),t.token.value>-1)break;if(this.elseToken==null)return;if(o||i++,a==null)break;t.reset(a,t.token)}i&&(t.reset(r,t.token),t.acceptToken(this.elseToken,i))}}ST.prototype.contextual=rm.prototype.fallback=rm.prototype.extend=!1;class $l{constructor(t,n={}){this.token=t,this.contextual=!!n.contextual,this.fallback=!!n.fallback,this.extend=!!n.extend}}function QX(e,t,n,r,i,o){let a=0,s=1<0){let m=e[h];if(l.allows(m)&&(t.token.value==-1||t.token.value==m||GIe(m,t.token.value,i,o))){t.acceptToken(m);break}}let c=t.next,d=0,p=e[a+2];if(t.next<0&&p>d&&e[u+p*3-3]==65535){a=e[u+p*3-1];continue e}for(;d>1,m=u+h+(h<<1),y=e[m],O=e[m+1]||65536;if(c=O)d=h+1;else{a=e[m+2],t.advance();continue e}}break}}function g9(e,t,n){for(let r=t,i;(i=e[r])!=65535;r++)if(i==n)return r-t;return-1}function GIe(e,t,n,r){let i=g9(n,r,t);return i<0||g9(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 qIe{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?b9(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?b9(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(tt)return this.nextStart=a,null;if(o instanceof ur){if(a==t){if(a=Math.max(this.safeFrom,t)&&(this.trees.push(o),this.start.push(a),this.index.push(0))}else this.index[n]++,this.nextStart=a+o.length}}}class ZIe{constructor(t,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(r=>new $E)}getActions(t){let n=0,r=null,{parser:i}=t.p,{tokenizers:o}=i,a=i.stateSlot(t.state,3),s=t.curContext?t.curContext.hash:0,l=0;for(let u=0;ud.end+25&&(l=Math.max(d.lookAhead,l)),d.value!=0)){let p=n;if(d.extended>-1&&(n=this.addActions(t,d.extended,d.end,n)),n=this.addActions(t,d.value,d.end,n),!c.extend&&(r=d,n>p))break}}for(;this.actions.length>n;)this.actions.pop();return l&&t.setLookAhead(l),!r&&t.pos==this.stream.end&&(r=new $E,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 $E,{pos:r,p:i}=t;return n.start=r,n.end=Math.min(r+1,i.stream.end),n.value=r==i.stream.end?i.parser.eofTerm:0,n}updateCachedToken(t,n,r){let i=this.stream.clipPos(r.pos);if(n.token(this.stream.reset(i,t),r),t.value>-1){let{parser:o}=r.p;for(let a=0;a=0&&r.p.parser.dialect.allows(s>>1)){s&1?t.extended=s>>1:t.value=s>>1;break}}}else t.value=0,t.end=this.stream.clipPos(i+1)}putAction(t,n,r,i){for(let o=0;ot.bufferLength*4?new qIe(r,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,n=this.minStackPos,r=this.stacks=[],i,o;if(this.bigReductionCount>300&&t.length==1){let[a]=t;for(;a.forceReduce()&&a.stack.length&&a.stack[a.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let a=0;an)r.push(s);else{if(this.advanceStack(s,r,t))continue;{i||(i=[],o=[]),i.push(s);let l=this.tokens.getMainToken(s);o.push(l.value,l.end)}}break}}if(!r.length){let a=i&&JIe(i);if(a)return Va&&console.log("Finish with "+this.stackID(a)),this.stackToTree(a);if(this.parser.strict)throw Va&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+n);this.recovering||(this.recovering=5)}if(this.recovering&&i){let a=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,o,r);if(a)return Va&&console.log("Force-finish "+this.stackID(a)),this.stackToTree(a.forceAll())}if(this.recovering){let a=this.recovering==1?1:this.recovering*3;if(r.length>a)for(r.sort((s,l)=>l.score-s.score);r.length>a;)r.pop();r.some(s=>s.reducePos>n)&&this.recovering--}else if(r.length>1){e:for(let a=0;a500&&u.buffer.length>500)if((s.score-u.score||s.buffer.length-u.buffer.length)>0)r.splice(l--,1);else{r.splice(a--,1);continue e}}}r.length>12&&r.splice(12,r.length-12)}this.minStackPos=r[0].pos;for(let a=1;a ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let u=t.curContext&&t.curContext.tracker.strict,c=u?t.curContext.hash:0;for(let d=this.fragments.nodeAt(i);d;){let p=this.parser.nodeSet.types[d.type.id]==d.type?o.getGoto(t.state,d.type.id):-1;if(p>-1&&d.length&&(!u||(d.prop(On.contextHash)||0)==c))return t.useNode(d,p),Va&&console.log(a+this.stackID(t)+` (via reuse of ${o.getName(d.type.id)})`),!0;if(!(d instanceof ur)||d.children.length==0||d.positions[0]>0)break;let h=d.children[0];if(h instanceof ur&&d.positions[0]==0)d=h;else break}}let s=o.stateSlot(t.state,4);if(s>0)return t.reduce(s),Va&&console.log(a+this.stackID(t)+` (via always-reduce ${o.getName(s&65535)})`),!0;if(t.stack.length>=8400)for(;t.stack.length>6e3&&t.forceReduce(););let l=this.tokens.getActions(t);for(let u=0;ui?n.push(m):r.push(m)}return!1}advanceFully(t,n){let r=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>r)return y9(t,n),!0}}runRecovery(t,n,r){let i=null,o=!1;for(let a=0;a ":"";if(s.deadEnd&&(o||(o=!0,s.restart(),Va&&console.log(c+this.stackID(s)+" (restarted)"),this.advanceFully(s,r))))continue;let d=s.split(),p=c;for(let h=0;d.forceReduce()&&h<10&&(Va&&console.log(p+this.stackID(d)+" (via force-reduce)"),!this.advanceFully(d,r));h++)Va&&(p=this.stackID(d)+" -> ");for(let h of s.recoverByInsert(l))Va&&console.log(c+this.stackID(h)+" (via recover-insert)"),this.advanceFully(h,r);this.stream.end>s.pos?(u==s.pos&&(u++,l=0),s.recoverByDelete(l,u),Va&&console.log(c+this.stackID(s)+` (via recover-delete ${this.parser.getName(l)})`),y9(s,r)):(!i||i.scoree;class YX{constructor(t){this.start=t.start,this.shift=t.shift||dA,this.reduce=t.reduce||dA,this.reuse=t.reuse||dA,this.hash=t.hash||(()=>0),this.strict=t.strict!==!1}}class Zm extends hP{constructor(t){if(super(),this.wrappers=[],t.version!=14)throw new RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let n=t.nodeNames.split(" ");this.minRepeatTerm=n.length;for(let s=0;st.topRules[s][1]),i=[];for(let s=0;s=0)o(c,l,s[u++]);else{let d=s[u+-c];for(let p=-c;p>0;p--)o(s[u++],l,d);u++}}}this.nodeSet=new H1(n.map((s,l)=>Li.define({name:l>=this.minRepeatTerm?void 0:s,id:l,props:i[l],top:r.indexOf(l)>-1,error:l==0,skipped:t.skippedNodes&&t.skippedNodes.indexOf(l)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=Yq;let a=q0(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let s=0;stypeof s=="number"?new rm(a,s):s),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,n,r){let i=new XIe(this,t,n,r);for(let o of this.wrappers)i=o(i,t,n,r);return i}getGoto(t,n,r=!1){let i=this.goto;if(n>=i[0])return-1;for(let o=i[n+1];;){let a=i[o++],s=a&1,l=i[o++];if(s&&r)return l;for(let u=o+(a>>1);o0}validAction(t,n){return!!this.allActions(t,r=>r==n?!0:null)}allActions(t,n){let r=this.stateSlot(t,4),i=r?n(r):void 0;for(let o=this.stateSlot(t,1);i==null;o+=3){if(this.data[o]==65535)if(this.data[o+1]==1)o=Xu(this.data,o+2);else break;i=n(Xu(this.data,o+1))}return i}nextStates(t){let n=[];for(let r=this.stateSlot(t,1);;r+=3){if(this.data[r]==65535)if(this.data[r+1]==1)r=Xu(this.data,r+2);else break;if(!(this.data[r+2]&1)){let i=this.data[r+1];n.some((o,a)=>a&1&&o==i)||n.push(this.data[r],i)}}return n}configure(t){let n=Object.assign(Object.create(Zm.prototype),this);if(t.props&&(n.nodeSet=this.nodeSet.extend(...t.props)),t.top){let r=this.topRules[t.top];if(!r)throw new RangeError(`Invalid top rule name ${t.top}`);n.top=r}return t.tokenizers&&(n.tokenizers=this.tokenizers.map(r=>{let i=t.tokenizers.find(o=>o.from==r);return i?i.to:r})),t.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((r,i)=>{let o=t.specializers.find(s=>s.from==r.external);if(!o)return r;let a=Object.assign(Object.assign({},r),{external:o.to});return n.specializers[i]=O9(a),a})),t.contextTracker&&(n.context=t.contextTracker),t.dialect&&(n.dialect=this.parseDialect(t.dialect)),t.strict!=null&&(n.strict=t.strict),t.wrap&&(n.wrappers=n.wrappers.concat(t.wrap)),t.bufferLength!=null&&(n.bufferLength=t.bufferLength),n}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let n=this.dynamicPrecedences;return n==null?0:n[t]||0}parseDialect(t){let n=Object.keys(this.dialects),r=n.map(()=>!1);if(t)for(let o of t.split(" ")){let a=n.indexOf(o);a>=0&&(r[a]=!0)}let i=null;for(let o=0;or)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.scoree.external(n,r)<<1|t}return e.get}const eNe=54,tNe=1,nNe=55,rNe=2,iNe=56,oNe=3,v9=4,aNe=5,TT=6,GX=7,qX=8,ZX=9,XX=10,sNe=11,lNe=12,uNe=13,fA=57,cNe=14,E9=58,KX=20,dNe=22,JX=23,fNe=24,RR=26,eK=27,pNe=28,hNe=31,mNe=34,gNe=36,bNe=37,yNe=0,ONe=1,vNe={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},ENe={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},S9={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 SNe(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}function tK(e){return e==9||e==10||e==13||e==32}let T9=null,w9=null,k9=0;function IR(e,t){let n=e.pos+t;if(k9==n&&w9==e)return T9;let r=e.peek(t);for(;tK(r);)r=e.peek(++t);let i="";for(;SNe(r);)i+=String.fromCharCode(r),r=e.peek(++t);return w9=e,k9=n,T9=i?i.toLowerCase():r==TNe||r==wNe?void 0:null}const nK=60,wT=62,MP=47,TNe=63,wNe=33,kNe=45;function x9(e,t){this.name=e,this.parent=t,this.hash=t?t.hash:0;for(let n=0;n-1?new x9(IR(r,1)||"",e):e},reduce(e,t){return t==KX&&e?e.parent:e},reuse(e,t,n,r){let i=t.type.id;return i==TT||i==gNe?new x9(IR(r,1)||"",e):e},hash(e){return e?e.hash:0},strict:!1}),ANe=new $l((e,t)=>{if(e.next!=nK){e.next<0&&t.context&&e.acceptToken(fA);return}e.advance();let n=e.next==MP;n&&e.advance();let r=IR(e,0);if(r===void 0)return;if(!r)return e.acceptToken(n?cNe:TT);let i=t.context?t.context.name:null;if(n){if(r==i)return e.acceptToken(sNe);if(i&&ENe[i])return e.acceptToken(fA,-2);if(t.dialectEnabled(yNe))return e.acceptToken(lNe);for(let o=t.context;o;o=o.parent)if(o.name==r)return;e.acceptToken(uNe)}else{if(r=="script")return e.acceptToken(GX);if(r=="style")return e.acceptToken(qX);if(r=="textarea")return e.acceptToken(ZX);if(vNe.hasOwnProperty(r))return e.acceptToken(XX);i&&S9[i]&&S9[i][r]?e.acceptToken(fA,-1):e.acceptToken(TT)}},{contextual:!0}),_Ne=new $l(e=>{for(let t=0,n=0;;n++){if(e.next<0){n&&e.acceptToken(E9);break}if(e.next==kNe)t++;else if(e.next==wT&&t>=2){n>=3&&e.acceptToken(E9,-2);break}else t=0;e.advance()}});function RNe(e){for(;e;e=e.parent)if(e.name=="svg"||e.name=="math")return!0;return!1}const INe=new $l((e,t)=>{if(e.next==MP&&e.peek(1)==wT){let n=t.dialectEnabled(ONe)||RNe(t.context);e.acceptToken(n?aNe:v9,2)}else e.next==wT&&e.acceptToken(v9,1)});function $P(e,t,n){let r=2+e.length;return new $l(i=>{for(let o=0,a=0,s=0;;s++){if(i.next<0){s&&i.acceptToken(t);break}if(o==0&&i.next==nK||o==1&&i.next==MP||o>=2&&oa?i.acceptToken(t,-a):i.acceptToken(n,-(a-2));break}else if((i.next==10||i.next==13)&&s){i.acceptToken(t,1);break}else o=a=0;i.advance()}})}const NNe=$P("script",eNe,tNe),DNe=$P("style",nNe,rNe),PNe=$P("textarea",iNe,oNe),LNe=Og({"Text RawText":pe.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":pe.angleBracket,TagName:pe.tagName,"MismatchedCloseTag/TagName":[pe.tagName,pe.invalid],AttributeName:pe.attributeName,"AttributeValue UnquotedAttributeValue":pe.attributeValue,Is:pe.definitionOperator,"EntityReference CharacterReference":pe.character,Comment:pe.blockComment,ProcessingInst:pe.processingInstruction,DoctypeDecl:pe.documentMeta}),MNe=Zm.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%WQ&rO,59fO%`Q&rO,59iO%hQ&rO,59lO%sQ&rO,59nOOOa'#D^'#D^O%{OaO'#CxO&WOaO,59[OOOb'#D_'#D_O&`ObO'#C{O&kObO,59[OOOd'#D`'#D`O&sOdO'#DOO'OOdO,59[OOO`'#Da'#DaO'WO!rO,59[O'_Q#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'dO$fO,59oOOO`,59o,59oO'lQ#|O,59qO'qQ#|O,59rOOO`-E7W-E7WO'vQ&rO'#CsOOQW'#DZ'#DZO(UQ&rO1G.wOOOa1G.w1G.wO(^Q&rO1G/QOOOb1G/Q1G/QO(fQ&rO1G/TOOOd1G/T1G/TO(nQ&rO1G/WOOO`1G/W1G/WOOO`1G/Y1G/YO(yQ&rO1G/YOOOa-E7[-E7[O)RQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)WQ#tO'#C|OOOd-E7^-E7^O)]Q#tO'#DPOOO`-E7_-E7_O)bQ#|O,59mOOOp-E7`-E7`OOO`1G/Z1G/ZOOO`1G/]1G/]OOO`1G/^1G/^O)gQ,UO,59_OOQW-E7X-E7XOOOa7+$c7+$cOOOb7+$l7+$lOOOd7+$o7+$oOOO`7+$r7+$rOOO`7+$t7+$tO)rQ#|O,59eO)wQ#|O,59hO)|Q#|O,59kOOO`1G/X1G/XO*RO7[O'#CvO*dOMhO'#CvOOQW1G.y1G.yOOO`1G/P1G/POOO`1G/S1G/SOOO`1G/V1G/VOOOO'#D['#D[O*uO7[O,59bOOQW,59b,59bOOOO'#D]'#D]O+WOMhO,59bOOOO-E7Y-E7YOOQW1G.|1G.|OOOO-E7Z-E7Z",stateData:"+s~O!^OS~OUSOVPOWQOXROYTO[]O][O^^O`^Oa^Ob^Oc^Ox^O{_O!dZO~OfaO~OfbO~OfcO~OfdO~OfeO~O!WfOPlP!ZlP~O!XiOQoP!ZoP~O!YlORrP!ZrP~OUSOVPOWQOXROYTOZqO[]O][O^^O`^Oa^Ob^Oc^Ox^O!dZO~O!ZrO~P#dO![sO!euO~OfvO~OfwO~OS|OhyO~OS!OOhyO~OS!QOhyO~OS!SOT!TOhyO~OS!TOhyO~O!WfOPlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXhgXTgX~OS!fOhyO~OS!gOhyO~OS!hOhyO~OS!iOT!jOhyO~OS!jOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",goto:"%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{}!P!R!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!UeZ!e{}!P!R!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:CNe,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:[LNe],skippedNodes:[0],repeatNodeCount:9,tokenData:"!]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zbkWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOa!R!R7tP;=`<%l7S!Z8OYkWa!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{ihSkWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbhSkWa!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VP<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXhSa!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TakWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOb!R!RAwP;=`<%lAY!ZBRYkWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbhSkWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbhSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXhSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!bx`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYlhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_khS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_X`P!a`!cp!eQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZhSfQ`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!a`!cpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!a`!cp!dPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!a`!cpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!a`!cpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!a`!cpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!a`!cpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!a`!cpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!a`!cpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!a`!cpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!cpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO{PP!-nP;=`<%l!-Sq!-xS!cp{POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!a`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!a`{POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!a`!cp{POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!a`!cpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!a`!cpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!a`!cpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!a`!cpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!a`!cpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!a`!cpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!cpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOxPP!7TP;=`<%l!6Vq!7]V!cpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!cpxPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!a`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!a`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!a`xPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!{let u=s.type.id;if(u==pNe)return pA(s,l,n);if(u==hNe)return pA(s,l,r);if(u==mNe)return pA(s,l,i);if(u==KX&&o.length){let c=s.node,d=c.firstChild,p=d&&C9(d,l),h;if(p){for(let m of o)if(m.tag==p&&(!m.attrs||m.attrs(h||(h=rK(c,l))))){let y=c.lastChild,O=y.type.id==bNe?y.from:c.to;if(O>d.to)return{parser:m.parser,overlay:[{from:d.to,to:O}]}}}}if(a&&u==JX){let c=s.node,d;if(d=c.firstChild){let p=a[l.read(d.from,d.to)];if(p)for(let h of p){if(h.tagName&&h.tagName!=C9(c.parent,l))continue;let m=c.lastChild;if(m.type.id==RR){let y=m.from+1,O=m.lastChild,b=m.to-(O&&O.isError?0:1);if(b>y)return{parser:h.parser,overlay:[{from:y,to:b}]}}else if(m.type.id==eK)return{parser:h.parser,overlay:[{from:m.from,to:m.to}]}}}}return null})}const $Ne=99,A9=1,FNe=100,BNe=101,_9=2,oK=[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],UNe=58,jNe=40,aK=95,zNe=91,FE=45,VNe=46,HNe=35,WNe=37,QNe=38,YNe=92,GNe=10;function Uy(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function qNe(e){return e>=48&&e<=57}const ZNe=new $l((e,t)=>{for(let n=!1,r=0,i=0;;i++){let{next:o}=e;if(Uy(o)||o==FE||o==aK||n&&qNe(o))!n&&(o!=FE||i>0)&&(n=!0),r===i&&o==FE&&r++,e.advance();else if(o==YNe&&e.peek(1)!=GNe)e.advance(),e.next>-1&&e.advance(),n=!0;else{n&&e.acceptToken(o==jNe?FNe:r==2&&t.canShift(_9)?_9:BNe);break}}}),XNe=new $l(e=>{if(oK.includes(e.peek(-1))){let{next:t}=e;(Uy(t)||t==aK||t==HNe||t==VNe||t==zNe||t==UNe&&Uy(e.peek(1))||t==FE||t==QNe)&&e.acceptToken($Ne)}}),KNe=new $l(e=>{if(!oK.includes(e.peek(-1))){let{next:t}=e;if(t==WNe&&(e.advance(),e.acceptToken(A9)),Uy(t)){do e.advance();while(Uy(e.next));e.acceptToken(A9)}}}),JNe=Og({"AtKeyword import charset namespace keyframes media supports":pe.definitionKeyword,"from to selector":pe.keyword,NamespaceName:pe.namespace,KeyframeName:pe.labelName,KeyframeRangeName:pe.operatorKeyword,TagName:pe.tagName,ClassName:pe.className,PseudoClassName:pe.constant(pe.className),IdName:pe.labelName,"FeatureName PropertyName":pe.propertyName,AttributeName:pe.attributeName,NumberLiteral:pe.number,KeywordQuery:pe.keyword,UnaryQueryOp:pe.operatorKeyword,"CallTag ValueName":pe.atom,VariableName:pe.variableName,Callee:pe.operatorKeyword,Unit:pe.unit,"UniversalSelector NestingSelector":pe.definitionOperator,MatchOp:pe.compareOperator,"ChildOp SiblingOp, LogicOp":pe.logicOperator,BinOp:pe.arithmeticOperator,Important:pe.modifier,Comment:pe.blockComment,ColorLiteral:pe.color,"ParenthesizedContent StringLiteral":pe.string,":":pe.punctuation,"PseudoOp #":pe.derefOperator,"; ,":pe.separator,"( )":pe.paren,"[ ]":pe.squareBracket,"{ }":pe.brace}),eDe={__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},tDe={__proto__:null,"@import":118,"@media":142,"@charset":146,"@namespace":150,"@keyframes":156,"@supports":168},nDe={__proto__:null,not:132,only:132},rDe=Zm.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:[XNe,KNe,ZNe,1,2,3,4,new ST("m~RRYZ[z{a~~g~aO#^~~dP!P!Qg~lO#_~~",28,105)],topRules:{StyleSheet:[0,4],Styles:[1,86]},specialized:[{term:100,get:e=>eDe[e]||-1},{term:58,get:e=>tDe[e]||-1},{term:101,get:e=>nDe[e]||-1}],tokenPrec:1200});let hA=null;function mA(){if(!hA&&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)));hA=t.sort().map(r=>({type:"property",label:r}))}return hA||[]}const R9=["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})),I9=["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}))),iDe=["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})),Fc=/^(\w[\w-]*|-\w[\w-]*|)$/,oDe=/^-(-[\w-]*)?$/;function aDe(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 N9=new Xq,sDe=["Declaration"];function lDe(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function sK(e,t,n){if(t.to-t.from>4096){let r=N9.get(t);if(r)return r;let i=[],o=new Set,a=t.cursor(Tr.IncludeAnonymous);if(a.firstChild())do for(let s of sK(e,a.node,n))o.has(s.label)||(o.add(s.label),i.push(s));while(a.nextSibling());return N9.set(t,i),i}else{let r=[],i=new Set;return t.cursor().iterate(o=>{var a;if(n(o)&&o.matchContext(sDe)&&((a=o.node.nextSibling)===null||a===void 0?void 0:a.name)==":"){let s=e.sliceString(o.from,o.to);i.has(s)||(i.add(s),r.push({label:s,type:"variable"}))}}),r}}const uDe=e=>t=>{let{state:n,pos:r}=t,i=kr(n).resolveInner(r,-1),o=i.type.isError&&i.from==i.to-1&&n.doc.sliceString(i.from,i.to)=="-";if(i.name=="PropertyName"||(o||i.name=="TagName")&&/^(Block|Styles)$/.test(i.resolve(i.to).name))return{from:i.from,options:mA(),validFor:Fc};if(i.name=="ValueName")return{from:i.from,options:I9,validFor:Fc};if(i.name=="PseudoClassName")return{from:i.from,options:R9,validFor:Fc};if(e(i)||(t.explicit||o)&&aDe(i,n.doc))return{from:e(i)||o?i.from:r,options:sK(n.doc,lDe(i),e),validFor:oDe};if(i.name=="TagName"){for(let{parent:l}=i;l;l=l.parent)if(l.name=="Block")return{from:i.from,options:mA(),validFor:Fc};return{from:i.from,options:iDe,validFor:Fc}}if(!t.explicit)return null;let a=i.resolve(r),s=a.childBefore(r);return s&&s.name==":"&&a.name=="PseudoClassSelector"?{from:r,options:R9,validFor:Fc}:s&&s.name==":"&&a.name=="Declaration"||a.name=="ArgList"?{from:r,options:I9,validFor:Fc}:a.name=="Block"||a.name=="Styles"?{from:r,options:mA(),validFor:Fc}:null},cDe=uDe(e=>e.name=="VariableName"),kT=Wm.define({name:"css",parser:rDe.configure({props:[Q1.add({Declaration:ME()}),vg.add({"Block KeyframeList":oZ})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function dDe(){return new Ny(kT,kT.data.of({autocomplete:cDe}))}const fDe=309,D9=1,pDe=2,hDe=3,mDe=310,gDe=312,bDe=313,yDe=4,ODe=5,vDe=0,NR=[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],lK=125,EDe=59,DR=47,SDe=42,TDe=43,wDe=45,kDe=60,xDe=44,CDe=new YX({start:!1,shift(e,t){return t==yDe||t==ODe||t==gDe?e:t==bDe},strict:!1}),ADe=new $l((e,t)=>{let{next:n}=e;(n==lK||n==-1||t.context)&&e.acceptToken(mDe)},{contextual:!0,fallback:!0}),_De=new $l((e,t)=>{let{next:n}=e,r;NR.indexOf(n)>-1||n==DR&&((r=e.peek(1))==DR||r==SDe)||n!=lK&&n!=EDe&&n!=-1&&!t.context&&e.acceptToken(fDe)},{contextual:!0}),RDe=new $l((e,t)=>{let{next:n}=e;if((n==TDe||n==wDe)&&(e.advance(),n==e.next)){e.advance();let r=!t.context&&t.canShift(D9);e.acceptToken(r?D9:pDe)}},{contextual:!0});function gA(e,t){return e>=65&&e<=90||e>=97&&e<=122||e==95||e>=192||!t&&e>=48&&e<=57}const IDe=new $l((e,t)=>{if(e.next!=kDe||!t.dialectEnabled(vDe)||(e.advance(),e.next==DR))return;let n=0;for(;NR.indexOf(e.next)>-1;)e.advance(),n++;if(gA(e.next,!0)){for(e.advance(),n++;gA(e.next,!1);)e.advance(),n++;for(;NR.indexOf(e.next)>-1;)e.advance(),n++;if(e.next==xDe)return;for(let r=0;;r++){if(r==7){if(!gA(e.next,!0))return;break}if(e.next!="extends".charCodeAt(r))break;e.advance(),n++}}e.acceptToken(hDe,-n)}),NDe=Og({"get set async static":pe.modifier,"for while do if else switch try catch finally return throw break continue default case":pe.controlKeyword,"in of await yield void typeof delete instanceof":pe.operatorKeyword,"let var const using function class extends":pe.definitionKeyword,"import export from":pe.moduleKeyword,"with debugger as new":pe.keyword,TemplateString:pe.special(pe.string),super:pe.atom,BooleanLiteral:pe.bool,this:pe.self,null:pe.null,Star:pe.modifier,VariableName:pe.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":pe.function(pe.variableName),VariableDefinition:pe.definition(pe.variableName),Label:pe.labelName,PropertyName:pe.propertyName,PrivatePropertyName:pe.special(pe.propertyName),"CallExpression/MemberExpression/PropertyName":pe.function(pe.propertyName),"FunctionDeclaration/VariableDefinition":pe.function(pe.definition(pe.variableName)),"ClassDeclaration/VariableDefinition":pe.definition(pe.className),PropertyDefinition:pe.definition(pe.propertyName),PrivatePropertyDefinition:pe.definition(pe.special(pe.propertyName)),UpdateOp:pe.updateOperator,"LineComment Hashbang":pe.lineComment,BlockComment:pe.blockComment,Number:pe.number,String:pe.string,Escape:pe.escape,ArithOp:pe.arithmeticOperator,LogicOp:pe.logicOperator,BitOp:pe.bitwiseOperator,CompareOp:pe.compareOperator,RegExp:pe.regexp,Equals:pe.definitionOperator,Arrow:pe.function(pe.punctuation),": Spread":pe.punctuation,"( )":pe.paren,"[ ]":pe.squareBracket,"{ }":pe.brace,"InterpolationStart InterpolationEnd":pe.special(pe.brace),".":pe.derefOperator,", ;":pe.separator,"@":pe.meta,TypeName:pe.typeName,TypeDefinition:pe.definition(pe.typeName),"type enum interface implements namespace module declare":pe.definitionKeyword,"abstract global Privacy readonly override":pe.modifier,"is keyof unique infer":pe.operatorKeyword,JSXAttributeValue:pe.attributeValue,JSXText:pe.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":pe.angleBracket,"JSXIdentifier JSXNameSpacedName":pe.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":pe.attributeName,"JSXBuiltin/JSXIdentifier":pe.standard(pe.tagName)}),DDe={__proto__:null,export:18,as:23,from:31,default:34,async:39,function:40,extends:52,this:56,true:64,false:64,null:76,void:80,typeof:84,super:102,new:136,delete:152,yield:161,await:165,class:170,public:227,private:227,protected:227,readonly:229,instanceof:248,satisfies:251,in:252,const:254,import:286,keyof:339,unique:343,infer:349,is:385,abstract:405,implements:407,type:409,let:412,var:414,using:417,interface:423,enum:427,namespace:433,module:435,declare:439,global:443,for:462,of:471,while:474,with:478,do:482,if:486,else:488,switch:492,case:498,try:504,catch:508,finally:512,return:516,throw:520,break:524,continue:528,debugger:532},PDe={__proto__:null,async:123,get:125,set:127,declare:187,public:189,private:189,protected:189,static:191,abstract:193,override:195,readonly:201,accessor:203,new:389},LDe={__proto__:null,"<":143},MDe=Zm.deserialize({version:14,states:"$RQWO'#CdO>cQWO'#H[O>kQWO'#HbO>kQWO'#HdO`Q^O'#HfO>kQWO'#HhO>kQWO'#HkO>pQWO'#HqO>uQ07iO'#HwO%[Q^O'#HyO?QQ07iO'#H{O?]Q07iO'#H}O9kQ07hO'#IPO?hQ08SO'#ChO@jQ`O'#DiQOQWOOO%[Q^O'#EPOAQQWO'#ESO:RQ7[O'#EjOA]QWO'#EjOAhQpO'#FbOOQU'#Cf'#CfOOQ07`'#Dn'#DnOOQ07`'#Jm'#JmO%[Q^O'#JmOOQO'#Jq'#JqOOQO'#Ib'#IbOBhQ`O'#EcOOQ07`'#Eb'#EbOCdQ07pO'#EcOCnQ`O'#EVOOQO'#Jp'#JpODSQ`O'#JqOEaQ`O'#EVOCnQ`O'#EcPEnO!0LbO'#CaPOOO)CDu)CDuOOOO'#IX'#IXOEyO!bO,59TOOQ07b,59T,59TOOOO'#IY'#IYOFXO#tO,59TO%[Q^O'#D`OOOO'#I['#I[OFgO?MpO,59xOOQ07b,59x,59xOFuQ^O'#I]OGYQWO'#JkOI[QrO'#JkO+}Q^O'#JkOIcQWO,5:OOIyQWO'#ElOJWQWO'#JyOJcQWO'#JxOJcQWO'#JxOJkQWO,5;YOJpQWO'#JwOOQ07f,5:Z,5:ZOJwQ^O,5:ZOLxQ08SO,5:eOMiQWO,5:mONSQ07hO'#JvONZQWO'#JuO9ZQWO'#JuONoQWO'#JuONwQWO,5;XON|QWO'#JuO!#UQrO'#JjOOQ07b'#Ch'#ChO%[Q^O'#ERO!#tQpO,5:rOOQO'#Jr'#JrOOQO-EmOOQU'#J`'#J`OOQU,5>n,5>nOOQU-EpQWO'#HQO9aQWO'#HSO!CgQWO'#HSO:RQ7[O'#HUO!ClQWO'#HUOOQU,5=j,5=jO!CqQWO'#HVO!DSQWO'#CnO!DXQWO,59OO!DcQWO,59OO!FhQ^O,59OOOQU,59O,59OO!FxQ07hO,59OO%[Q^O,59OO!ITQ^O'#H^OOQU'#H_'#H_OOQU'#H`'#H`O`Q^O,5=vO!IkQWO,5=vO`Q^O,5=|O`Q^O,5>OO!IpQWO,5>QO`Q^O,5>SO!IuQWO,5>VO!IzQ^O,5>]OOQU,5>c,5>cO%[Q^O,5>cO9kQ07hO,5>eOOQU,5>g,5>gO!NUQWO,5>gOOQU,5>i,5>iO!NUQWO,5>iOOQU,5>k,5>kO!NZQ`O'#D[O%[Q^O'#JmO!NxQ`O'#JmO# gQ`O'#DjO# xQ`O'#DjO#$ZQ^O'#DjO#$bQWO'#JlO#$jQWO,5:TO#$oQWO'#EpO#$}QWO'#JzO#%VQWO,5;ZO#%[Q`O'#DjO#%iQ`O'#EUOOQ07b,5:n,5:nO%[Q^O,5:nO#%pQWO,5:nO>pQWO,5;UO!@}Q`O,5;UO!AVQ7[O,5;UO:RQ7[O,5;UO#%xQWO,5@XO#%}Q$ISO,5:rOOQO-E<`-E<`O#'TQ07pO,5:}OCnQ`O,5:qO#'_Q`O,5:qOCnQ`O,5:}O!@rQ07hO,5:qOOQ07`'#Ef'#EfOOQO,5:},5:}O%[Q^O,5:}O#'lQ07hO,5:}O#'wQ07hO,5:}O!@}Q`O,5:qOOQO,5;T,5;TO#(VQ07hO,5:}POOO'#IV'#IVP#(kO!0LbO,58{POOO,58{,58{OOOO-EwO+}Q^O,5>wOOQO,5>},5>}O#)VQ^O'#I]OOQO-EjQ08SO1G0{O#>wQ08SO1G0{O#@uQ08SO1G0{O#CuQ(CYO'#ChO#EsQ(CYO1G1^O#EzQ(CYO'#JjO!,lQWO1G1dO#F[Q08SO,5?TOOQ07`-EkQWO1G3lO$2dQ^O1G3nO$6hQ^O'#HmOOQU1G3q1G3qO$6uQWO'#HsO>pQWO'#HuOOQU1G3w1G3wO$6}Q^O1G3wO9kQ07hO1G3}OOQU1G4P1G4POOQ07`'#GY'#GYO9kQ07hO1G4RO9kQ07hO1G4TO$;UQWO,5@XO!*fQ^O,5;[O9ZQWO,5;[O>pQWO,5:UO!*fQ^O,5:UO!@}Q`O,5:UO$;ZQ(CYO,5:UOOQO,5;[,5;[O$;eQ`O'#I^O$;{QWO,5@WOOQ07b1G/o1G/oO$pQWO1G0pO!@}Q`O1G0pO!AVQ7[O1G0pOOQ07`1G5s1G5sO!@rQ07hO1G0]OOQO1G0i1G0iO%[Q^O1G0iO$PQrO1G4cOOQO1G4i1G4iO%[Q^O,5>wO$>ZQWO1G5qO$>cQWO1G6OO$>kQrO1G6PO9ZQWO,5>}O$>uQ08SO1G5|O%[Q^O1G5|O$?VQ07hO1G5|O$?hQWO1G5{O$?hQWO1G5{O9ZQWO1G5{O$?pQWO,5?QO9ZQWO,5?QOOQO,5?Q,5?QO$@UQWO,5?QO$'ZQWO,5?QOOQO-EXOOQU,5>X,5>XO%[Q^O'#HnO%7dQWO'#HpOOQU,5>_,5>_O9ZQWO,5>_OOQU,5>a,5>aOOQU7+)c7+)cOOQU7+)i7+)iOOQU7+)m7+)mOOQU7+)o7+)oO%7iQ`O1G5sO%7}Q(CYO1G0vO%8XQWO1G0vOOQO1G/p1G/pO%8dQ(CYO1G/pO>pQWO1G/pO!*fQ^O'#DjOOQO,5>x,5>xOOQO-E<[-E<[OOQO,5?O,5?OOOQO-EpQWO7+&[O!@}Q`O7+&[OOQO7+%w7+%wO$=mQ08SO7+&TOOQO7+&T7+&TO%[Q^O7+&TO%8nQ07hO7+&TO!@rQ07hO7+%wO!@}Q`O7+%wO%8yQ07hO7+&TO%9XQ08SO7++hO%[Q^O7++hO%9iQWO7++gO%9iQWO7++gOOQO1G4l1G4lO9ZQWO1G4lO%9qQWO1G4lOOQO7+%|7+%|O#%sQWO<zQ08SO1G2ZO%A]Q08SO1G2mO%ChQ08SO1G2oO%EsQ7[O,5>yOOQO-E<]-E<]O%E}QrO,5>zO%[Q^O,5>zOOQO-E<^-E<^O%FXQWO1G5uOOQ07b<YOOQU,5>[,5>[O&5oQWO1G3yO9ZQWO7+&bO!*fQ^O7+&bOOQO7+%[7+%[O&5tQ(CYO1G6PO>pQWO7+%[OOQ07b<pQWO<pQWO7+)eO'&sQWO<}AN>}O%[Q^OAN?ZOOQO<qQ(CYOG26}O!*fQ^O'#DyO1PQWO'#EWO'@gQrO'#JiO!*fQ^O'#DqO'@nQ^O'#D}O'@uQrO'#ChO'C]QrO'#ChO!*fQ^O'#EPO'CmQ^O,5;VO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O'#IiO'EpQWO,5a#@O#@^#@d#Ax#BW#Cr#DQ#DW#D^#Dd#Dn#Dt#Dz#EU#Eh#EnPPPPPPPPPP#EtPPPPPPP#Fi#Ip#KP#KW#K`PPPP$!d$%Z$+r$+u$+x$,q$,t$,w$-O$-WPP$-^$-b$.Y$/X$/]$/qPP$/u$/{$0PP$0S$0W$0Z$1P$1h$2P$2T$2W$2Z$2a$2d$2h$2lR!{RoqOXst!Z#c%j&m&o&p&r,h,m1w1zY!uQ'Z-Y1[5]Q%pvQ%xyQ&P|Q&e!VS'R!e-QQ'a!iS'g!r!xS*c$|*hQ+f%yQ+s&RQ,X&_Q-W'YQ-b'bQ-j'hQ/|*jQ1f,YR;Y:g%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%j%p%}&f&i&m&o&p&r&v'O']'m'}(P(V(^(r(v(z)y+O+S,e,h,m-^-f-t-z.l.s0[0a0q1_1o1p1r1t1w1z1|2m2s3Z5Y5d5t5u5x6]7w7|8]8gS#p]:d!r)[$[$m'S)n,y,|.{2]3p5W6S9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]Q*u%ZQ+k%{Q,Z&bQ,b&jQ.c;QQ0h+^Q0l+`Q0w+lQ1n,`Q2{.[Q4v0rQ5k1gQ6i3PQ6u;RQ7h4wR8m6j&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%j%p%}&f&i&j&m&o&p&r&v'O'S']'m'}(P(V(^(r(v(z)n)y+O+S+^,e,h,m,y,|-^-f-t-z.[.l.s.{0[0a0q1_1o1p1r1t1w1z1|2]2m2s3P3Z3p5W5Y5d5t5u5x6S6]6j7w7|8]8g9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]t!nQ!r!u!x!y'R'Y'Z'g'h'i-Q-W-Y-j1[5]5_$v$si#u#w$c$d$x${%O%Q%[%]%a)u){)}*P*R*Y*`*p*q+]+`+w+z.Z.i/Z/j/k/m0Q0S0^1R1U1^3O3x4S4[4f4n4p5c6g7T7^7y8j8w9[9n:O:W:y:z:|:};O;P;S;T;U;V;W;X;_;`;a;b;c;d;g;h;i;j;k;l;m;n;q;r < TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:371,context:CDe,nodeProps:[["isolate",-8,4,5,13,33,35,48,50,52,""],["group",-26,8,16,18,65,201,205,209,210,212,215,218,228,230,236,238,240,242,245,251,257,259,261,263,265,267,268,"Statement",-32,12,13,28,31,32,38,48,51,52,54,59,67,75,79,81,83,84,106,107,116,117,134,137,139,140,141,142,144,145,164,165,167,"Expression",-23,27,29,33,37,39,41,168,170,172,173,175,176,177,179,180,181,183,184,185,195,197,199,200,"Type",-3,87,99,105,"ClassItem"],["openedBy",22,"<",34,"InterpolationStart",53,"[",57,"{",72,"(",157,"JSXStartCloseTag"],["closedBy",23,">",36,"InterpolationEnd",47,"]",58,"}",73,")",162,"JSXEndTag"]],propSources:[NDe],skippedNodes:[0,4,5,271],repeatNodeCount:37,tokenData:"$Fj(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#8g!R![#:v![!]#Gv!]!^#IS!^!_#J^!_!`#Ns!`!a$#_!a!b$(l!b!c$,k!c!}Er!}#O$-u#O#P$/P#P#Q$4h#Q#R$5r#R#SEr#S#T$7P#T#o$8Z#o#p$q#r#s$?}#s$f%Z$f$g+g$g#BYEr#BY#BZ$AX#BZ$ISEr$IS$I_$AX$I_$I|Er$I|$I}$Dd$I}$JO$Dd$JO$JTEr$JT$JU$AX$JU$KVEr$KV$KW$AX$KW&FUEr&FU&FV$AX&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$AX?HUOEr(n%d_$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$f&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$f&j(R!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(R!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$f&j(OpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU(OpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Op(R!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z(CS+rq$f&j(Op(R!b't(;dOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z(CS.ST(P#S$f&j'u(;dO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c(CS.n_$f&j(Op(R!b'u(;dOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#`/x`$f&j!o$Ip(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S1V`#t$Id$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S2d_#t$Id$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/|3l_'}$(n$f&j(R!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$f&j(R!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$f&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$a`$f&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$a``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$a`$f&j(R!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ(R!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$a`(R!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k#%|:hh$f&j(Op(R!bOY%ZYZ&cZq%Zqr`#P#o`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXVS$f&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSVSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWVS(R!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]VS$f&j(OpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWVS(OpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYVS(Op(R!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%lQ^$f&j!USOY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@Y!_!}!=y!}#O!Bw#O#P!Dj#P#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!?Ta$f&j!USO!^&c!_#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&cS!@_X!USOY!@YZ!P!@Y!P!Q!@z!Q!}!@Y!}#O!Ac#O#P!Bb#P;'S!@Y;'S;=`!Bq<%lO!@YS!APU!US#Z#[!@z#]#^!@z#a#b!@z#g#h!@z#i#j!@z#m#n!@zS!AfVOY!AcZ#O!Ac#O#P!A{#P#Q!@Y#Q;'S!Ac;'S;=`!B[<%lO!AcS!BOSOY!AcZ;'S!Ac;'S;=`!B[<%lO!AcS!B_P;=`<%l!AcS!BeSOY!@YZ;'S!@Y;'S;=`!Bq<%lO!@YS!BtP;=`<%l!@Y&n!B|[$f&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#O!Bw#O#P!Cr#P#Q!=y#Q#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!CwX$f&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!DgP;=`<%l!Bw&n!DoX$f&jOY!=yYZ&cZ!^!=y!^!_!@Y!_#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!E_P;=`<%l!=y(Q!Eki$f&j(R!b!USOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#Z&}#Z#[!Eb#[#]&}#]#^!Eb#^#a&}#a#b!Eb#b#g&}#g#h!Eb#h#i&}#i#j!Eb#j#m&}#m#n!Eb#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!f!GaZ(R!b!USOY!GYZw!GYwx!@Yx!P!GY!P!Q!HS!Q!}!GY!}#O!Ic#O#P!Bb#P;'S!GY;'S;=`!JZ<%lO!GY!f!HZb(R!b!USOY'}Zw'}x#O'}#P#Z'}#Z#[!HS#[#]'}#]#^!HS#^#a'}#a#b!HS#b#g'}#g#h!HS#h#i'}#i#j!HS#j#m'}#m#n!HS#n;'S'};'S;=`(f<%lO'}!f!IhX(R!bOY!IcZw!Icwx!Acx#O!Ic#O#P!A{#P#Q!GY#Q;'S!Ic;'S;=`!JT<%lO!Ic!f!JWP;=`<%l!Ic!f!J^P;=`<%l!GY(Q!Jh^$f&j(R!bOY!JaYZ&cZw!Jawx!Bwx!^!Ja!^!_!Ic!_#O!Ja#O#P!Cr#P#Q!Q#V#X%Z#X#Y!4|#Y#b%Z#b#c#Zd$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#?tf$f&j(Op(R!bo$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#b%Z#b#c#DDe[e]||-1},{term:334,get:e=>PDe[e]||-1},{term:70,get:e=>LDe[e]||-1}],tokenPrec:14638}),uK=[fa("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),fa("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),fa("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),fa("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),fa("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),fa(`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=LT.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 ur(this.parser.nodeSet.types[t],og,og,(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(ZR(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?lK(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=ZR(this.parser.parseInline(t.content,t.start),t.marks);this.addNode(this.buffer.writeElements(n,-t.start).finish(Rt.Paragraph,t.content.length),t.start)}elt(t,n,r,i){return typeof t=="string"?Gn(this.parser.getNodeType(t),n,r,i):new dK(t,n)}get buffer(){return new cK(this.parser.nodeSet)}}function lK(e,t,n,r,i){let o=e[t].to,a=[],s=[],l=n.from+r;function u(c,d){for(;d?c>=o:c>o;){let p=e[t+1].from-o;r+=p,c+=p,t++,o=e[t].to}}for(let c=n.firstChild;c;c=c.nextSibling){u(c.from+r,!0);let d=c.from+r,p,h=i.get(c.tree);h?p=h:c.to+r>o?(p=lK(e,t,c,r,i),u(c.to+r,!1)):p=c.toTree(),a.push(p),s.push(d-l)}return u(n.to+r,!1),new ur(n.type,a,s,n.to+r-l,n.tree?n.tree.propValues:void 0)}class ex extends PP{constructor(t,n,r,i,o,a,s,l,u){super(),this.nodeSet=t,this.blockParsers=n,this.leafBlockParsers=r,this.blockNames=i,this.endLeafBlock=o,this.skipContextMarkup=a,this.inlineParsers=s,this.inlineNames=l,this.wrappers=u,this.nodeTypes=Object.create(null);for(let c of t.types)this.nodeTypes[c.name]=c.id}createParse(t,n,r){let i=new cDe(this,t,n,r);for(let o of this.wrappers)i=o(i,t,n,r);return i}configure(t){let n=qR(t);if(!n)return this;let{nodeSet:r,skipContextMarkup:i}=this,o=this.blockParsers.slice(),a=this.leafBlockParsers.slice(),s=this.blockNames.slice(),l=this.inlineParsers.slice(),u=this.inlineNames.slice(),c=this.endLeafBlock.slice(),d=this.wrappers;if(D0(n.defineNodes)){i=Object.assign({},i);let p=r.types.slice(),h;for(let m of n.defineNodes){let{name:b,block:O,composite:y,style:v}=typeof m=="string"?{name:m}:m;if(p.some(C=>C.name==b))continue;y&&(i[p.length]=(C,w,E)=>y(w,E,C.value));let S=p.length,k=y?["Block","BlockContext"]:O?S>=Rt.ATXHeading1&&S<=Rt.SetextHeading2?["Block","LeafBlock","Heading"]:["Block","LeafBlock"]:void 0;p.push($i.define({id:S,name:b,props:k&&[[vn.group,k]]})),v&&(h||(h={}),Array.isArray(v)||v instanceof bl?h[b]=v:Object.assign(h,v))}r=new iO(p),h&&(r=r.extend(Rg(h)))}if(D0(n.props)&&(r=r.extend(...n.props)),D0(n.remove))for(let p of n.remove){let h=this.blockNames.indexOf(p),m=this.inlineNames.indexOf(p);h>-1&&(o[h]=a[h]=void 0),m>-1&&(l[m]=void 0)}if(D0(n.parseBlock))for(let p of n.parseBlock){let h=s.indexOf(p.name);if(h>-1)o[h]=p.parse,a[h]=p.leaf;else{let m=p.before?eE(s,p.before):p.after?eE(s,p.after)+1:s.length-1;o.splice(m,0,p.parse),a.splice(m,0,p.leaf),s.splice(m,0,p.name)}p.endLeaf&&c.push(p.endLeaf)}if(D0(n.parseInline))for(let p of n.parseInline){let h=u.indexOf(p.name);if(h>-1)l[h]=p.parse;else{let m=p.before?eE(u,p.before):p.after?eE(u,p.after)+1:u.length-1;l.splice(m,0,p.parse),u.splice(m,0,p.name)}}return n.wrap&&(d=d.concat(n.wrap)),new ex(r,o,a,s,c,i,l,u,d)}getNodeType(t){let n=this.nodeTypes[t];if(n==null)throw new RangeError(`Unknown node type '${t}'`);return n}parseInline(t,n){let r=new fDe(this,t,n);e:for(let i=n;i=0){i=s;continue e}}i++}return r.resolveMarkers(0)}}function D0(e){return e!=null&&e.length>0}function qR(e){if(!Array.isArray(e))return e;if(e.length==0)return null;let t=qR(e[0]);if(e.length==1)return t;let n=qR(e.slice(1));if(!n||!t)return t||n;let r=(a,s)=>(a||og).concat(s||og),i=t.wrap,o=n.wrap;return{props:r(t.props,n.props),defineNodes:r(t.defineNodes,n.defineNodes),parseBlock:r(t.parseBlock,n.parseBlock),parseInline:r(t.parseInline,n.parseInline),remove:r(t.remove,n.remove),wrap:i?o?(a,s,l,u)=>i(o(a,s,l,u),s,l,u):i:o}}function eE(e,t){let n=e.indexOf(t);if(n<0)throw new RangeError(`Position specified relative to unknown parser ${t}`);return n}let uK=[$i.none];for(let e=1,t;t=Rt[e];e++)uK[e]=$i.define({id:e,name:t,props:e>=Rt.Escape?[]:[[vn.group,e in JX?["Block","BlockContext"]:["Block","LeafBlock"]]],top:t=="Document"});const og=[];let cK=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 ur.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:t,length:n})}},Xy=class{constructor(t,n,r,i=og){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 cK(t).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}};class dK{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 og}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 Gn(e,t,n,r){return new Xy(e,t,n,r)}const fK={resolve:"Emphasis",mark:"EmphasisMark"},pK={resolve:"Emphasis",mark:"EmphasisMark"},N0={},T9={};class yl{constructor(t,n,r,i){this.type=t,this.from=n,this.to=r,this.side=i}}const w9="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";let Ky=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{Ky=new RegExp("[\\p{Pc}|\\p{Pd}|\\p{Pe}|\\p{Pf}|\\p{Pi}|\\p{Po}|\\p{Ps}]","u")}catch{}const xA={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(Gn(Rt.Autolink,n,n+1+i[0].length,[Gn(Rt.LinkMark,n,n+1),Gn(Rt.URL,n+1,n+i[0].length),Gn(Rt.LinkMark,n+i[0].length,n+1+i[0].length)]));let o=/^!--[^>](?:-[^-]|[^-])*?-->/i.exec(r);if(o)return e.append(Gn(Rt.Comment,n,n+1+o[0].length));let a=/^\?[^]*?\?>/.exec(r);if(a)return e.append(Gn(Rt.ProcessingInstruction,n,n+1+a[0].length));let s=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(r);return s?e.append(Gn(Rt.HTMLTag,n,n+1+s[0].length)):-1},Emphasis(e,t,n){if(t!=95&&t!=42)return-1;let r=n+1;for(;e.char(r)==t;)r++;let i=e.slice(n-1,n),o=e.slice(r,r+1),a=Ky.test(i),s=Ky.test(o),l=/\s|^$/.test(i),u=/\s|^$/.test(o),c=!u&&(!s||l||a),d=!l&&(!a||u||s),p=c&&(t==42||!d||a),h=d&&(t==42||!c||s);return e.append(new yl(t==95?fK:pK,n,r,(p?1:0)|(h?2:0)))},HardBreak(e,t,n){if(t==92&&e.char(n+1)==10)return e.append(Gn(Rt.HardBreak,n,n+2));if(t==32){let r=n+1;for(;e.char(r)==32;)r++;if(e.char(r)==10&&r>=n+2)return e.append(Gn(Rt.HardBreak,n,r+1))}return-1},Link(e,t,n){return t==91?e.append(new yl(N0,n,n+1,1)):-1},Image(e,t,n){return t==33&&e.char(n+1)==91?e.append(new yl(T9,n,n+2,1)):-1},LinkEnd(e,t,n){if(t!=93)return-1;for(let r=e.parts.length-1;r>=0;r--){let i=e.parts[r];if(i instanceof yl&&(i.type==N0||i.type==T9)){if(!i.side||e.skipSpace(i.to)==n&&!/[(\[]/.test(e.slice(n+1,n+2)))return e.parts[r]=null,-1;let o=e.takeContent(r),a=e.parts[r]=dDe(e,o,i.type==N0?Rt.Link:Rt.Image,i.from,n+1);if(i.type==N0)for(let s=0;st?Gn(Rt.URL,t+n,o+n):o==e.length?null:!1}}function mK(e,t,n){let r=e.charCodeAt(t);if(r!=39&&r!=34&&r!=40)return!1;let i=r==40?41:r;for(let o=t+1,a=!1;o=this.end?-1:this.text.charCodeAt(t-this.offset)}get end(){return this.offset+this.text.length}slice(t,n){return this.text.slice(t-this.offset,n-this.offset)}append(t){return this.parts.push(t),t.to}addDelimiter(t,n,r,i,o){return this.append(new yl(t,n,r,(i?1:0)|(o?2:0)))}addElement(t){return this.append(t)}resolveMarkers(t){for(let r=t;r=t;l--){let b=this.parts[l];if(b instanceof yl&&b.side&1&&b.type==i.type&&!(o&&(i.side&1||b.side&2)&&(b.to-b.from+a)%3==0&&((b.to-b.from)%3||a%3))){s=b;break}}if(!s)continue;let u=i.type.resolve,c=[],d=s.from,p=i.to;if(o){let b=Math.min(2,s.to-s.from,a);d=s.to-b,p=i.from+b,u=b==1?"Emphasis":"StrongEmphasis"}s.type.mark&&c.push(this.elt(s.type.mark,d,s.to));for(let b=l+1;b=0;n--){let r=this.parts[n];if(r instanceof yl&&r.type==t)return n}return null}takeContent(t){let n=this.resolveMarkers(t);return this.parts.length=t,n}skipSpace(t){return Pb(this.text,t-this.offset)+this.offset}elt(t,n,r,i){return typeof t=="string"?Gn(this.parser.getNodeType(t),n,r,i):new dK(t,n)}}function ZR(e,t){if(!t.length)return e;if(!e.length)return t;let n=e.slice(),r=0;for(let i of t){for(;r(t?t-1:0))return!1;if(this.fragmentEnd<0){let o=this.fragment.to;for(;o>0&&this.input.read(o-1,o)!=` +`;)o--;this.fragmentEnd=o?o-1:0}let r=this.cursor;r||(r=this.cursor=this.fragment.tree.cursor(),r.firstChild());let i=t+this.fragment.offset;for(;r.to<=i;)if(!r.parent())return!1;for(;;){if(r.from>=i)return this.fragment.from<=n;if(!r.childAfter(i))return!1}}matches(t){let n=this.cursor.tree;return n&&n.prop(vn.contextHash)==t}takeNodes(t){let n=this.cursor,r=this.fragment.offset,i=this.fragmentEnd-(this.fragment.openEnd?1:0),o=t.absoluteLineStart,a=o,s=t.block.children.length,l=a,u=s;for(;;){if(n.to-r>i){if(n.type.isAnonymous&&n.firstChild())continue;break}let c=bK(n.from-r,t.ranges);if(n.to-r<=t.ranges[t.rangeI].to)t.addNode(n.tree,c);else{let d=new ur(t.parser.nodeSet.types[Rt.Paragraph],[],[],0,t.block.hashProp);t.reusePlaceholders.set(d,n.tree),t.addNode(d,c)}if(n.type.is("Block")&&(pDe.indexOf(n.type.id)<0?(a=n.to-r,s=t.block.children.length):(a=l,s=u,l=n.to-r,u=t.block.children.length)),!n.nextSibling())break}for(;t.block.children.length>s;)t.block.children.pop(),t.block.positions.pop();return a-o}};function bK(e,t){let n=e;for(let r=1;rJv[e]),Object.keys(Jv).map(e=>sDe[e]),Object.keys(Jv),lDe,JX,Object.keys(xA).map(e=>xA[e]),Object.keys(xA),[]);function bDe(e,t,n){let r=[];for(let i=e.firstChild,o=t;;i=i.nextSibling){let a=i?i.from:n;if(a>o&&r.push({from:o,to:a}),!i)break;o=i.to}return r}function yDe(e){let{codeParser:t,htmlParser:n}=e;return{wrap:xZ((i,o)=>{let a=i.type.id;if(t&&(a==Rt.CodeBlock||a==Rt.FencedCode)){let s="";if(a==Rt.FencedCode){let u=i.node.getChild(Rt.CodeInfo);u&&(s=o.read(u.from,u.to))}let l=t(s);if(l)return{parser:l,overlay:u=>u.type.id==Rt.CodeText}}else if(n&&(a==Rt.HTMLBlock||a==Rt.HTMLTag))return{parser:n,overlay:bDe(i.node,i.from,i.to)};return null})}}const ODe={resolve:"Strikethrough",mark:"StrikethroughMark"},vDe={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":he.strikethrough}},{name:"StrikethroughMark",style:he.processingInstruction}],parseInline:[{name:"Strikethrough",parse(e,t,n){if(t!=126||e.char(n+1)!=126||e.char(n+2)==126)return-1;let r=e.slice(n-1,n),i=e.slice(n+2,n+3),o=/\s|^$/.test(r),a=/\s|^$/.test(i),s=Ky.test(r),l=Ky.test(i);return e.addDelimiter(ODe,n,n+2,!a&&(!l||o||s),!o&&(!s||a||l))},after:"Emphasis"}]};function Lb(e,t,n=0,r,i=0){let o=0,a=!0,s=-1,l=-1,u=!1,c=()=>{r.push(e.elt("TableCell",i+s,i+l,e.parser.parseInline(t.slice(s,l),i+s)))};for(let d=n;d-1)&&o++,a=!1,r&&(s>-1&&c(),r.push(e.elt("TableDelimiter",d+i,d+i+1))),s=l=-1):(u||p!=32&&p!=9)&&(s<0&&(s=d),l=d+1),u=!u&&p==92}return s>-1&&(o++,r&&c()),o}function k9(e,t){for(let n=t;ni instanceof x9)||!k9(t.text,t.basePos))return!1;let r=e.scanLine(e.absoluteLineEnd+1).text;return yK.test(r)&&Lb(e,t.text,t.basePos)==Lb(e,r,t.basePos)},before:"SetextHeading"}]};class SDe{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 TDe={defineNodes:[{name:"Task",block:!0,style:he.list},{name:"TaskMarker",style:he.atom}],parseBlock:[{name:"TaskList",leaf(e,t){return/^\[[ xX]\][ \t]/.test(t.content)&&e.parentType().name=="ListItem"?new SDe:null},after:"SetextHeading"}]},C9=/(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy,A9=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,wDe=/[\w-]+\.[\w-]+($|\/)/,_9=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,R9=/\/[a-zA-Z\d@.]+/gy;function I9(e,t,n,r){let i=0;for(let o=t;o-1)return-1;let r=t+n[0].length;for(;;){let i=e[r-1],o;if(/[?!.,:*_~]/.test(i)||i==")"&&I9(e,t,r,")")>I9(e,t,r,"("))r--;else if(i==";"&&(o=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(e.slice(t,r))))r=t+o.index;else break}return r}function D9(e,t){_9.lastIndex=t;let n=_9.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 xDe={parseInline:[{name:"Autolink",parse(e,t,n){let r=n-e.offset;C9.lastIndex=r;let i=C9.exec(e.text),o=-1;return!i||(i[1]||i[2]?o=kDe(e.text,r+i[0].length):i[3]?o=D9(e.text,r):(o=D9(e.text,r+i[0].length),o>-1&&i[0]=="xmpp:"&&(R9.lastIndex=o,i=R9.exec(e.text),i&&(o=i.index+i[0].length))),o<0)?-1:(e.addElement(e.elt("URL",n,o+e.offset)),o+e.offset)}}]},CDe=[EDe,TDe,vDe,xDe];function OK(e,t,n){return(r,i,o)=>{if(i!=e||r.char(o+1)==e)return-1;let a=[r.elt(n,o,o+1)];for(let s=o+1;sn%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,n,r=0){let i=t.parser.context;return new MT(t,[],n,r,r,0,[],0,i?new P9(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,n){this.stack.push(this.state,n,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var n;let r=t>>19,i=t&65535,{parser:o}=this.p,a=o.dynamicPrecedence(i);if(a&&(this.score+=a),r==0){this.pushState(o.getGoto(this.state,i,!0),this.reducePos),i=2e3&&!(!((n=this.p.parser.nodeSet.types[i])===null||n===void 0)&&n.isAnonymous)&&(l==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=u):this.p.lastBigReductionSizes;)this.stack.pop();this.reduceContext(i,l)}storeNode(t,n,r,i=4,o=!1){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&a.buffer[s-4]==0&&a.buffer[s-1]>-1){if(n==r)return;if(a.buffer[s-2]>=n){a.buffer[s-2]=r;return}}}if(!o||this.pos==r)this.buffer.push(t,n,r,i);else{let a=this.buffer.length;if(a>0&&this.buffer[a-4]!=0)for(;a>0&&this.buffer[a-2]>r;)this.buffer[a]=this.buffer[a-4],this.buffer[a+1]=this.buffer[a-3],this.buffer[a+2]=this.buffer[a-2],this.buffer[a+3]=this.buffer[a-1],a-=4,i>4&&(i-=4);this.buffer[a]=t,this.buffer[a+1]=n,this.buffer[a+2]=r,this.buffer[a+3]=i}}shift(t,n,r,i){if(t&131072)this.pushState(t&65535,this.pos);else if(t&262144)this.pos=i,this.shiftContext(n,r),n<=this.p.parser.maxNode&&this.buffer.push(n,r,i,4);else{let o=t,{parser:a}=this.p;(i>this.pos||n<=a.maxNode)&&(this.pos=i,a.stateFlag(o,1)||(this.reducePos=i)),this.pushState(o,r),this.shiftContext(n,r),n<=a.maxNode&&this.buffer.push(n,r,i,4)}}apply(t,n,r,i){t&65536?this.reduce(t):this.shift(t,n,r,i)}useNode(t,n){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=t)&&(this.p.reused.push(t),r++);let i=this.pos;this.reducePos=this.pos=i+t.length,this.pushState(n,i),this.buffer.push(r,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,n=t.buffer.length;for(;n>0&&t.buffer[n-2]>t.reducePos;)n-=4;let r=t.buffer.slice(n),i=t.bufferBase+n;for(;t&&i==t.bufferBase;)t=t.parent;return new MT(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 IDe(this);;){let r=this.p.parser.stateSlot(n.state,4)||this.p.parser.hasAction(n.state,t);if(r==0)return!1;if(!(r&65536))return!0;n.reduce(r)}}recoverByInsert(t){if(this.stack.length>=300)return[];let n=this.p.parser.nextStates(this.state);if(n.length>8||this.stack.length>=120){let i=[];for(let o=0,a;ol&1&&s==a)||i.push(n[o],a)}n=i}let r=[];for(let i=0;i>19,i=n&65535,o=this.stack.length-r*3;if(o<0||t.getGoto(this.stack[o],i,!1)<0){let a=this.findForcedReduction();if(a==null)return!1;n=a}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}findForcedReduction(){let{parser:t}=this.p,n=[],r=(i,o)=>{if(!n.includes(i))return n.push(i),t.allActions(i,a=>{if(!(a&393216))if(a&65536){let s=(a>>19)-o;if(s>1){let l=a&65535,u=this.stack.length-s*3;if(u>=0&&t.getGoto(this.stack[u],l,!1)>=0)return s<<19|65536|l}}else{let s=r(a,o+1);if(s!=null)return s}})};return r(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:t}=this.p;return t.data[t.stateSlot(this.state,1)]==65535&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let n=0;nthis.lookAhead&&(this.emitLookAhead(),this.lookAhead=t)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class P9{constructor(t,n){this.tracker=t,this.context=n,this.hash=t.strict?t.hash(n):0}}class IDe{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 $T{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 $T(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 $T(this.stack,this.pos,this.index)}}function ab(e,t=Uint16Array){if(typeof e!="string")return e;let n=null;for(let r=0,i=0;r=92&&a--,a>=34&&a--;let l=a-32;if(l>=46&&(l-=46,s=!0),o+=l,s)break;o*=46}n?n[i++]=o:n=new t(o)}return n}class JE{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const L9=new JE;class DDe{constructor(t,n){this.input=t,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=L9,this.rangeIndex=0,this.pos=this.chunkPos=n[0].from,this.range=n[0],this.end=n[n.length-1].to,this.readNext()}resolveOffset(t,n){let r=this.range,i=this.rangeIndex,o=this.pos+t;for(;or.to:o>=r.to;){if(i==this.ranges.length-1)return null;let a=this.ranges[++i];o+=a.from-r.to,r=a}return o}clipPos(t){if(t>=this.range.from&&tt)return Math.max(t,n.from);return this.end}peek(t){let n=this.chunkOff+t,r,i;if(n>=0&&n=this.chunk2Pos&&rs.to&&(this.chunk2=this.chunk2.slice(0,s.to-r)),i=this.chunk2.charCodeAt(0)}}return r>=this.token.lookAhead&&(this.token.lookAhead=r+1),i}acceptToken(t,n=0){let r=n?this.resolveOffset(n,-1):this.pos;if(r==null||r=this.chunk2Pos&&this.posthis.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,n){if(n?(this.token=n,n.start=t,n.lookAhead=t+1,n.value=n.extended=-1):this.token=L9,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 hm{constructor(t,n){this.data=t,this.id=n}token(t,n){let{parser:r}=n.p;vK(this.data,t,n,this.id,r.data,r.tokenPrecTable)}}hm.prototype.contextual=hm.prototype.fallback=hm.prototype.extend=!1;class FT{constructor(t,n,r){this.precTable=n,this.elseToken=r,this.data=typeof t=="string"?ab(t):t}token(t,n){let r=t.pos,i=0;for(;;){let o=t.next<0,a=t.resolveOffset(1,1);if(vK(this.data,t,n,0,this.data,this.precTable),t.token.value>-1)break;if(this.elseToken==null)return;if(o||i++,a==null)break;t.reset(a,t.token)}i&&(t.reset(r,t.token),t.acceptToken(this.elseToken,i))}}FT.prototype.contextual=hm.prototype.fallback=hm.prototype.extend=!1;class Ul{constructor(t,n={}){this.token=t,this.contextual=!!n.contextual,this.fallback=!!n.fallback,this.extend=!!n.extend}}function vK(e,t,n,r,i,o){let a=0,s=1<0){let m=e[h];if(l.allows(m)&&(t.token.value==-1||t.token.value==m||NDe(m,t.token.value,i,o))){t.acceptToken(m);break}}let c=t.next,d=0,p=e[a+2];if(t.next<0&&p>d&&e[u+p*3-3]==65535){a=e[u+p*3-1];continue e}for(;d>1,m=u+h+(h<<1),b=e[m],O=e[m+1]||65536;if(c=O)d=h+1;else{a=e[m+2],t.advance();continue e}}break}}function M9(e,t,n){for(let r=t,i;(i=e[r])!=65535;r++)if(i==n)return r-t;return-1}function NDe(e,t,n,r){let i=M9(n,r,t);return i<0||M9(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 PDe{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?$9(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?$9(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(tt)return this.nextStart=a,null;if(o instanceof ur){if(a==t){if(a=Math.max(this.safeFrom,t)&&(this.trees.push(o),this.start.push(a),this.index.push(0))}else this.index[n]++,this.nextStart=a+o.length}}}class LDe{constructor(t,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(r=>new JE)}getActions(t){let n=0,r=null,{parser:i}=t.p,{tokenizers:o}=i,a=i.stateSlot(t.state,3),s=t.curContext?t.curContext.hash:0,l=0;for(let u=0;ud.end+25&&(l=Math.max(d.lookAhead,l)),d.value!=0)){let p=n;if(d.extended>-1&&(n=this.addActions(t,d.extended,d.end,n)),n=this.addActions(t,d.value,d.end,n),!c.extend&&(r=d,n>p))break}}for(;this.actions.length>n;)this.actions.pop();return l&&t.setLookAhead(l),!r&&t.pos==this.stream.end&&(r=new JE,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 JE,{pos:r,p:i}=t;return n.start=r,n.end=Math.min(r+1,i.stream.end),n.value=r==i.stream.end?i.parser.eofTerm:0,n}updateCachedToken(t,n,r){let i=this.stream.clipPos(r.pos);if(n.token(this.stream.reset(i,t),r),t.value>-1){let{parser:o}=r.p;for(let a=0;a=0&&r.p.parser.dialect.allows(s>>1)){s&1?t.extended=s>>1:t.value=s>>1;break}}}else t.value=0,t.end=this.stream.clipPos(i+1)}putAction(t,n,r,i){for(let o=0;ot.bufferLength*4?new PDe(r,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,n=this.minStackPos,r=this.stacks=[],i,o;if(this.bigReductionCount>300&&t.length==1){let[a]=t;for(;a.forceReduce()&&a.stack.length&&a.stack[a.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let a=0;an)r.push(s);else{if(this.advanceStack(s,r,t))continue;{i||(i=[],o=[]),i.push(s);let l=this.tokens.getMainToken(s);o.push(l.value,l.end)}}break}}if(!r.length){let a=i&&FDe(i);if(a)return Wa&&console.log("Finish with "+this.stackID(a)),this.stackToTree(a);if(this.parser.strict)throw Wa&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+n);this.recovering||(this.recovering=5)}if(this.recovering&&i){let a=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,o,r);if(a)return Wa&&console.log("Force-finish "+this.stackID(a)),this.stackToTree(a.forceAll())}if(this.recovering){let a=this.recovering==1?1:this.recovering*3;if(r.length>a)for(r.sort((s,l)=>l.score-s.score);r.length>a;)r.pop();r.some(s=>s.reducePos>n)&&this.recovering--}else if(r.length>1){e:for(let a=0;a500&&u.buffer.length>500)if((s.score-u.score||s.buffer.length-u.buffer.length)>0)r.splice(l--,1);else{r.splice(a--,1);continue e}}}r.length>12&&r.splice(12,r.length-12)}this.minStackPos=r[0].pos;for(let a=1;a ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let u=t.curContext&&t.curContext.tracker.strict,c=u?t.curContext.hash:0;for(let d=this.fragments.nodeAt(i);d;){let p=this.parser.nodeSet.types[d.type.id]==d.type?o.getGoto(t.state,d.type.id):-1;if(p>-1&&d.length&&(!u||(d.prop(vn.contextHash)||0)==c))return t.useNode(d,p),Wa&&console.log(a+this.stackID(t)+` (via reuse of ${o.getName(d.type.id)})`),!0;if(!(d instanceof ur)||d.children.length==0||d.positions[0]>0)break;let h=d.children[0];if(h instanceof ur&&d.positions[0]==0)d=h;else break}}let s=o.stateSlot(t.state,4);if(s>0)return t.reduce(s),Wa&&console.log(a+this.stackID(t)+` (via always-reduce ${o.getName(s&65535)})`),!0;if(t.stack.length>=8400)for(;t.stack.length>6e3&&t.forceReduce(););let l=this.tokens.getActions(t);for(let u=0;ui?n.push(m):r.push(m)}return!1}advanceFully(t,n){let r=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>r)return F9(t,n),!0}}runRecovery(t,n,r){let i=null,o=!1;for(let a=0;a ":"";if(s.deadEnd&&(o||(o=!0,s.restart(),Wa&&console.log(c+this.stackID(s)+" (restarted)"),this.advanceFully(s,r))))continue;let d=s.split(),p=c;for(let h=0;d.forceReduce()&&h<10&&(Wa&&console.log(p+this.stackID(d)+" (via force-reduce)"),!this.advanceFully(d,r));h++)Wa&&(p=this.stackID(d)+" -> ");for(let h of s.recoverByInsert(l))Wa&&console.log(c+this.stackID(h)+" (via recover-insert)"),this.advanceFully(h,r);this.stream.end>s.pos?(u==s.pos&&(u++,l=0),s.recoverByDelete(l,u),Wa&&console.log(c+this.stackID(s)+` (via recover-delete ${this.parser.getName(l)})`),F9(s,r)):(!i||i.scoree;class EK{constructor(t){this.start=t.start,this.shift=t.shift||AA,this.reduce=t.reduce||AA,this.reuse=t.reuse||AA,this.hash=t.hash||(()=>0),this.strict=t.strict!==!1}}class ag extends PP{constructor(t){if(super(),this.wrappers=[],t.version!=14)throw new RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let n=t.nodeNames.split(" ");this.minRepeatTerm=n.length;for(let s=0;st.topRules[s][1]),i=[];for(let s=0;s=0)o(c,l,s[u++]);else{let d=s[u+-c];for(let p=-c;p>0;p--)o(s[u++],l,d);u++}}}this.nodeSet=new iO(n.map((s,l)=>$i.define({name:l>=this.minRepeatTerm?void 0:s,id:l,props:i[l],top:r.indexOf(l)>-1,error:l==0,skipped:t.skippedNodes&&t.skippedNodes.indexOf(l)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=EZ;let a=ab(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let s=0;stypeof s=="number"?new hm(a,s):s),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,n,r){let i=new MDe(this,t,n,r);for(let o of this.wrappers)i=o(i,t,n,r);return i}getGoto(t,n,r=!1){let i=this.goto;if(n>=i[0])return-1;for(let o=i[n+1];;){let a=i[o++],s=a&1,l=i[o++];if(s&&r)return l;for(let u=o+(a>>1);o0}validAction(t,n){return!!this.allActions(t,r=>r==n?!0:null)}allActions(t,n){let r=this.stateSlot(t,4),i=r?n(r):void 0;for(let o=this.stateSlot(t,1);i==null;o+=3){if(this.data[o]==65535)if(this.data[o+1]==1)o=nc(this.data,o+2);else break;i=n(nc(this.data,o+1))}return i}nextStates(t){let n=[];for(let r=this.stateSlot(t,1);;r+=3){if(this.data[r]==65535)if(this.data[r+1]==1)r=nc(this.data,r+2);else break;if(!(this.data[r+2]&1)){let i=this.data[r+1];n.some((o,a)=>a&1&&o==i)||n.push(this.data[r],i)}}return n}configure(t){let n=Object.assign(Object.create(ag.prototype),this);if(t.props&&(n.nodeSet=this.nodeSet.extend(...t.props)),t.top){let r=this.topRules[t.top];if(!r)throw new RangeError(`Invalid top rule name ${t.top}`);n.top=r}return t.tokenizers&&(n.tokenizers=this.tokenizers.map(r=>{let i=t.tokenizers.find(o=>o.from==r);return i?i.to:r})),t.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((r,i)=>{let o=t.specializers.find(s=>s.from==r.external);if(!o)return r;let a=Object.assign(Object.assign({},r),{external:o.to});return n.specializers[i]=B9(a),a})),t.contextTracker&&(n.context=t.contextTracker),t.dialect&&(n.dialect=this.parseDialect(t.dialect)),t.strict!=null&&(n.strict=t.strict),t.wrap&&(n.wrappers=n.wrappers.concat(t.wrap)),t.bufferLength!=null&&(n.bufferLength=t.bufferLength),n}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let n=this.dynamicPrecedences;return n==null?0:n[t]||0}parseDialect(t){let n=Object.keys(this.dialects),r=n.map(()=>!1);if(t)for(let o of t.split(" ")){let a=n.indexOf(o);a>=0&&(r[a]=!0)}let i=null;for(let o=0;or)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.scoree.external(n,r)<<1|t}return e.get}const BDe=54,UDe=1,jDe=55,zDe=2,VDe=56,HDe=3,U9=4,WDe=5,BT=6,SK=7,TK=8,wK=9,kK=10,QDe=11,YDe=12,GDe=13,_A=57,qDe=14,j9=58,xK=20,ZDe=22,CK=23,XDe=24,XR=26,AK=27,KDe=28,JDe=31,eNe=34,tNe=36,nNe=37,rNe=0,iNe=1,oNe={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},aNe={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},z9={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 sNe(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}function _K(e){return e==9||e==10||e==13||e==32}let V9=null,H9=null,W9=0;function KR(e,t){let n=e.pos+t;if(W9==n&&H9==e)return V9;let r=e.peek(t);for(;_K(r);)r=e.peek(++t);let i="";for(;sNe(r);)i+=String.fromCharCode(r),r=e.peek(++t);return H9=e,W9=n,V9=i?i.toLowerCase():r==lNe||r==uNe?void 0:null}const RK=60,UT=62,n3=47,lNe=63,uNe=33,cNe=45;function Q9(e,t){this.name=e,this.parent=t,this.hash=t?t.hash:0;for(let n=0;n-1?new Q9(KR(r,1)||"",e):e},reduce(e,t){return t==xK&&e?e.parent:e},reuse(e,t,n,r){let i=t.type.id;return i==BT||i==tNe?new Q9(KR(r,1)||"",e):e},hash(e){return e?e.hash:0},strict:!1}),pNe=new Ul((e,t)=>{if(e.next!=RK){e.next<0&&t.context&&e.acceptToken(_A);return}e.advance();let n=e.next==n3;n&&e.advance();let r=KR(e,0);if(r===void 0)return;if(!r)return e.acceptToken(n?qDe:BT);let i=t.context?t.context.name:null;if(n){if(r==i)return e.acceptToken(QDe);if(i&&aNe[i])return e.acceptToken(_A,-2);if(t.dialectEnabled(rNe))return e.acceptToken(YDe);for(let o=t.context;o;o=o.parent)if(o.name==r)return;e.acceptToken(GDe)}else{if(r=="script")return e.acceptToken(SK);if(r=="style")return e.acceptToken(TK);if(r=="textarea")return e.acceptToken(wK);if(oNe.hasOwnProperty(r))return e.acceptToken(kK);i&&z9[i]&&z9[i][r]?e.acceptToken(_A,-1):e.acceptToken(BT)}},{contextual:!0}),hNe=new Ul(e=>{for(let t=0,n=0;;n++){if(e.next<0){n&&e.acceptToken(j9);break}if(e.next==cNe)t++;else if(e.next==UT&&t>=2){n>=3&&e.acceptToken(j9,-2);break}else t=0;e.advance()}});function mNe(e){for(;e;e=e.parent)if(e.name=="svg"||e.name=="math")return!0;return!1}const gNe=new Ul((e,t)=>{if(e.next==n3&&e.peek(1)==UT){let n=t.dialectEnabled(iNe)||mNe(t.context);e.acceptToken(n?WDe:U9,2)}else e.next==UT&&e.acceptToken(U9,1)});function r3(e,t,n){let r=2+e.length;return new Ul(i=>{for(let o=0,a=0,s=0;;s++){if(i.next<0){s&&i.acceptToken(t);break}if(o==0&&i.next==RK||o==1&&i.next==n3||o>=2&&oa?i.acceptToken(t,-a):i.acceptToken(n,-(a-2));break}else if((i.next==10||i.next==13)&&s){i.acceptToken(t,1);break}else o=a=0;i.advance()}})}const bNe=r3("script",BDe,UDe),yNe=r3("style",jDe,zDe),ONe=r3("textarea",VDe,HDe),vNe=Rg({"Text RawText":he.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":he.angleBracket,TagName:he.tagName,"MismatchedCloseTag/TagName":[he.tagName,he.invalid],AttributeName:he.attributeName,"AttributeValue UnquotedAttributeValue":he.attributeValue,Is:he.definitionOperator,"EntityReference CharacterReference":he.character,Comment:he.blockComment,ProcessingInst:he.processingInstruction,DoctypeDecl:he.documentMeta}),ENe=ag.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%WQ&rO,59fO%`Q&rO,59iO%hQ&rO,59lO%sQ&rO,59nOOOa'#D^'#D^O%{OaO'#CxO&WOaO,59[OOOb'#D_'#D_O&`ObO'#C{O&kObO,59[OOOd'#D`'#D`O&sOdO'#DOO'OOdO,59[OOO`'#Da'#DaO'WO!rO,59[O'_Q#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'dO$fO,59oOOO`,59o,59oO'lQ#|O,59qO'qQ#|O,59rOOO`-E7W-E7WO'vQ&rO'#CsOOQW'#DZ'#DZO(UQ&rO1G.wOOOa1G.w1G.wO(^Q&rO1G/QOOOb1G/Q1G/QO(fQ&rO1G/TOOOd1G/T1G/TO(nQ&rO1G/WOOO`1G/W1G/WOOO`1G/Y1G/YO(yQ&rO1G/YOOOa-E7[-E7[O)RQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)WQ#tO'#C|OOOd-E7^-E7^O)]Q#tO'#DPOOO`-E7_-E7_O)bQ#|O,59mOOOp-E7`-E7`OOO`1G/Z1G/ZOOO`1G/]1G/]OOO`1G/^1G/^O)gQ,UO,59_OOQW-E7X-E7XOOOa7+$c7+$cOOOb7+$l7+$lOOOd7+$o7+$oOOO`7+$r7+$rOOO`7+$t7+$tO)rQ#|O,59eO)wQ#|O,59hO)|Q#|O,59kOOO`1G/X1G/XO*RO7[O'#CvO*dOMhO'#CvOOQW1G.y1G.yOOO`1G/P1G/POOO`1G/S1G/SOOO`1G/V1G/VOOOO'#D['#D[O*uO7[O,59bOOQW,59b,59bOOOO'#D]'#D]O+WOMhO,59bOOOO-E7Y-E7YOOQW1G.|1G.|OOOO-E7Z-E7Z",stateData:"+s~O!^OS~OUSOVPOWQOXROYTO[]O][O^^O`^Oa^Ob^Oc^Ox^O{_O!dZO~OfaO~OfbO~OfcO~OfdO~OfeO~O!WfOPlP!ZlP~O!XiOQoP!ZoP~O!YlORrP!ZrP~OUSOVPOWQOXROYTOZqO[]O][O^^O`^Oa^Ob^Oc^Ox^O!dZO~O!ZrO~P#dO![sO!euO~OfvO~OfwO~OS|OhyO~OS!OOhyO~OS!QOhyO~OS!SOT!TOhyO~OS!TOhyO~O!WfOPlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXhgXTgX~OS!fOhyO~OS!gOhyO~OS!hOhyO~OS!iOT!jOhyO~OS!jOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",goto:"%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{}!P!R!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!UeZ!e{}!P!R!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:fNe,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:[vNe],skippedNodes:[0],repeatNodeCount:9,tokenData:"!]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zbkWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOa!R!R7tP;=`<%l7S!Z8OYkWa!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{ihSkWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbhSkWa!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VP<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXhSa!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TakWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOb!R!RAwP;=`<%lAY!ZBRYkWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbhSkWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbhSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXhSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!bx`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYlhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_khS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_X`P!a`!cp!eQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZhSfQ`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!a`!cpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!a`!cp!dPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!a`!cpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!a`!cpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!a`!cpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!a`!cpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!a`!cpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!a`!cpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!a`!cpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!cpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO{PP!-nP;=`<%l!-Sq!-xS!cp{POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!a`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!a`{POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!a`!cp{POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!a`!cpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!a`!cpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!a`!cpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!a`!cpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!a`!cpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!a`!cpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!cpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOxPP!7TP;=`<%l!6Vq!7]V!cpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!cpxPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!a`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!a`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!a`xPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!{let u=s.type.id;if(u==KDe)return RA(s,l,n);if(u==JDe)return RA(s,l,r);if(u==eNe)return RA(s,l,i);if(u==xK&&o.length){let c=s.node,d=c.firstChild,p=d&&Y9(d,l),h;if(p){for(let m of o)if(m.tag==p&&(!m.attrs||m.attrs(h||(h=IK(c,l))))){let b=c.lastChild,O=b.type.id==nNe?b.from:c.to;if(O>d.to)return{parser:m.parser,overlay:[{from:d.to,to:O}]}}}}if(a&&u==CK){let c=s.node,d;if(d=c.firstChild){let p=a[l.read(d.from,d.to)];if(p)for(let h of p){if(h.tagName&&h.tagName!=Y9(c.parent,l))continue;let m=c.lastChild;if(m.type.id==XR){let b=m.from+1,O=m.lastChild,y=m.to-(O&&O.isError?0:1);if(y>b)return{parser:h.parser,overlay:[{from:b,to:y}]}}else if(m.type.id==AK)return{parser:h.parser,overlay:[{from:m.from,to:m.to}]}}}}return null})}const SNe=99,G9=1,TNe=100,wNe=101,q9=2,NK=[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],kNe=58,xNe=40,PK=95,CNe=91,eS=45,ANe=46,_Ne=35,RNe=37,INe=38,DNe=92,NNe=10;function Jy(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function PNe(e){return e>=48&&e<=57}const LNe=new Ul((e,t)=>{for(let n=!1,r=0,i=0;;i++){let{next:o}=e;if(Jy(o)||o==eS||o==PK||n&&PNe(o))!n&&(o!=eS||i>0)&&(n=!0),r===i&&o==eS&&r++,e.advance();else if(o==DNe&&e.peek(1)!=NNe)e.advance(),e.next>-1&&e.advance(),n=!0;else{n&&e.acceptToken(o==xNe?TNe:r==2&&t.canShift(q9)?q9:wNe);break}}}),MNe=new Ul(e=>{if(NK.includes(e.peek(-1))){let{next:t}=e;(Jy(t)||t==PK||t==_Ne||t==ANe||t==CNe||t==kNe&&Jy(e.peek(1))||t==eS||t==INe)&&e.acceptToken(SNe)}}),$Ne=new Ul(e=>{if(!NK.includes(e.peek(-1))){let{next:t}=e;if(t==RNe&&(e.advance(),e.acceptToken(G9)),Jy(t)){do e.advance();while(Jy(e.next));e.acceptToken(G9)}}}),FNe=Rg({"AtKeyword import charset namespace keyframes media supports":he.definitionKeyword,"from to selector":he.keyword,NamespaceName:he.namespace,KeyframeName:he.labelName,KeyframeRangeName:he.operatorKeyword,TagName:he.tagName,ClassName:he.className,PseudoClassName:he.constant(he.className),IdName:he.labelName,"FeatureName PropertyName":he.propertyName,AttributeName:he.attributeName,NumberLiteral:he.number,KeywordQuery:he.keyword,UnaryQueryOp:he.operatorKeyword,"CallTag ValueName":he.atom,VariableName:he.variableName,Callee:he.operatorKeyword,Unit:he.unit,"UniversalSelector NestingSelector":he.definitionOperator,MatchOp:he.compareOperator,"ChildOp SiblingOp, LogicOp":he.logicOperator,BinOp:he.arithmeticOperator,Important:he.modifier,Comment:he.blockComment,ColorLiteral:he.color,"ParenthesizedContent StringLiteral":he.string,":":he.punctuation,"PseudoOp #":he.derefOperator,"; ,":he.separator,"( )":he.paren,"[ ]":he.squareBracket,"{ }":he.brace}),BNe={__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},UNe={__proto__:null,"@import":118,"@media":142,"@charset":146,"@namespace":150,"@keyframes":156,"@supports":168},jNe={__proto__:null,not:132,only:132},zNe=ag.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:[MNe,$Ne,LNe,1,2,3,4,new FT("m~RRYZ[z{a~~g~aO#^~~dP!P!Qg~lO#_~~",28,105)],topRules:{StyleSheet:[0,4],Styles:[1,86]},specialized:[{term:100,get:e=>BNe[e]||-1},{term:58,get:e=>UNe[e]||-1},{term:101,get:e=>jNe[e]||-1}],tokenPrec:1200});let IA=null;function DA(){if(!IA&&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)));IA=t.sort().map(r=>({type:"property",label:r}))}return IA||[]}const Z9=["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})),X9=["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}))),VNe=["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})),Vc=/^(\w[\w-]*|-\w[\w-]*|)$/,HNe=/^-(-[\w-]*)?$/;function WNe(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 K9=new kZ,QNe=["Declaration"];function YNe(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function LK(e,t,n){if(t.to-t.from>4096){let r=K9.get(t);if(r)return r;let i=[],o=new Set,a=t.cursor(wr.IncludeAnonymous);if(a.firstChild())do for(let s of LK(e,a.node,n))o.has(s.label)||(o.add(s.label),i.push(s));while(a.nextSibling());return K9.set(t,i),i}else{let r=[],i=new Set;return t.cursor().iterate(o=>{var a;if(n(o)&&o.matchContext(QNe)&&((a=o.node.nextSibling)===null||a===void 0?void 0:a.name)==":"){let s=e.sliceString(o.from,o.to);i.has(s)||(i.add(s),r.push({label:s,type:"variable"}))}}),r}}const GNe=e=>t=>{let{state:n,pos:r}=t,i=xr(n).resolveInner(r,-1),o=i.type.isError&&i.from==i.to-1&&n.doc.sliceString(i.from,i.to)=="-";if(i.name=="PropertyName"||(o||i.name=="TagName")&&/^(Block|Styles)$/.test(i.resolve(i.to).name))return{from:i.from,options:DA(),validFor:Vc};if(i.name=="ValueName")return{from:i.from,options:X9,validFor:Vc};if(i.name=="PseudoClassName")return{from:i.from,options:Z9,validFor:Vc};if(e(i)||(t.explicit||o)&&WNe(i,n.doc))return{from:e(i)||o?i.from:r,options:LK(n.doc,YNe(i),e),validFor:HNe};if(i.name=="TagName"){for(let{parent:l}=i;l;l=l.parent)if(l.name=="Block")return{from:i.from,options:DA(),validFor:Vc};return{from:i.from,options:VNe,validFor:Vc}}if(!t.explicit)return null;let a=i.resolve(r),s=a.childBefore(r);return s&&s.name==":"&&a.name=="PseudoClassSelector"?{from:r,options:Z9,validFor:Vc}:s&&s.name==":"&&a.name=="Declaration"||a.name=="ArgList"?{from:r,options:X9,validFor:Vc}:a.name=="Block"||a.name=="Styles"?{from:r,options:DA(),validFor:Vc}:null},qNe=GNe(e=>e.name=="VariableName"),jT=tg.define({name:"css",parser:zNe.configure({props:[aO.add({Declaration:KE()}),Ig.add({"Block KeyframeList":NZ})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function ZNe(){return new Wy(jT,jT.data.of({autocomplete:qNe}))}const XNe=309,J9=1,KNe=2,JNe=3,ePe=310,tPe=312,nPe=313,rPe=4,iPe=5,oPe=0,JR=[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],MK=125,aPe=59,eI=47,sPe=42,lPe=43,uPe=45,cPe=60,dPe=44,fPe=new EK({start:!1,shift(e,t){return t==rPe||t==iPe||t==tPe?e:t==nPe},strict:!1}),pPe=new Ul((e,t)=>{let{next:n}=e;(n==MK||n==-1||t.context)&&e.acceptToken(ePe)},{contextual:!0,fallback:!0}),hPe=new Ul((e,t)=>{let{next:n}=e,r;JR.indexOf(n)>-1||n==eI&&((r=e.peek(1))==eI||r==sPe)||n!=MK&&n!=aPe&&n!=-1&&!t.context&&e.acceptToken(XNe)},{contextual:!0}),mPe=new Ul((e,t)=>{let{next:n}=e;if((n==lPe||n==uPe)&&(e.advance(),n==e.next)){e.advance();let r=!t.context&&t.canShift(J9);e.acceptToken(r?J9:KNe)}},{contextual:!0});function NA(e,t){return e>=65&&e<=90||e>=97&&e<=122||e==95||e>=192||!t&&e>=48&&e<=57}const gPe=new Ul((e,t)=>{if(e.next!=cPe||!t.dialectEnabled(oPe)||(e.advance(),e.next==eI))return;let n=0;for(;JR.indexOf(e.next)>-1;)e.advance(),n++;if(NA(e.next,!0)){for(e.advance(),n++;NA(e.next,!1);)e.advance(),n++;for(;JR.indexOf(e.next)>-1;)e.advance(),n++;if(e.next==dPe)return;for(let r=0;;r++){if(r==7){if(!NA(e.next,!0))return;break}if(e.next!="extends".charCodeAt(r))break;e.advance(),n++}}e.acceptToken(JNe,-n)}),bPe=Rg({"get set async static":he.modifier,"for while do if else switch try catch finally return throw break continue default case":he.controlKeyword,"in of await yield void typeof delete instanceof":he.operatorKeyword,"let var const using function class extends":he.definitionKeyword,"import export from":he.moduleKeyword,"with debugger as new":he.keyword,TemplateString:he.special(he.string),super:he.atom,BooleanLiteral:he.bool,this:he.self,null:he.null,Star:he.modifier,VariableName:he.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":he.function(he.variableName),VariableDefinition:he.definition(he.variableName),Label:he.labelName,PropertyName:he.propertyName,PrivatePropertyName:he.special(he.propertyName),"CallExpression/MemberExpression/PropertyName":he.function(he.propertyName),"FunctionDeclaration/VariableDefinition":he.function(he.definition(he.variableName)),"ClassDeclaration/VariableDefinition":he.definition(he.className),PropertyDefinition:he.definition(he.propertyName),PrivatePropertyDefinition:he.definition(he.special(he.propertyName)),UpdateOp:he.updateOperator,"LineComment Hashbang":he.lineComment,BlockComment:he.blockComment,Number:he.number,String:he.string,Escape:he.escape,ArithOp:he.arithmeticOperator,LogicOp:he.logicOperator,BitOp:he.bitwiseOperator,CompareOp:he.compareOperator,RegExp:he.regexp,Equals:he.definitionOperator,Arrow:he.function(he.punctuation),": Spread":he.punctuation,"( )":he.paren,"[ ]":he.squareBracket,"{ }":he.brace,"InterpolationStart InterpolationEnd":he.special(he.brace),".":he.derefOperator,", ;":he.separator,"@":he.meta,TypeName:he.typeName,TypeDefinition:he.definition(he.typeName),"type enum interface implements namespace module declare":he.definitionKeyword,"abstract global Privacy readonly override":he.modifier,"is keyof unique infer":he.operatorKeyword,JSXAttributeValue:he.attributeValue,JSXText:he.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":he.angleBracket,"JSXIdentifier JSXNameSpacedName":he.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":he.attributeName,"JSXBuiltin/JSXIdentifier":he.standard(he.tagName)}),yPe={__proto__:null,export:18,as:23,from:31,default:34,async:39,function:40,extends:52,this:56,true:64,false:64,null:76,void:80,typeof:84,super:102,new:136,delete:152,yield:161,await:165,class:170,public:227,private:227,protected:227,readonly:229,instanceof:248,satisfies:251,in:252,const:254,import:286,keyof:339,unique:343,infer:349,is:385,abstract:405,implements:407,type:409,let:412,var:414,using:417,interface:423,enum:427,namespace:433,module:435,declare:439,global:443,for:462,of:471,while:474,with:478,do:482,if:486,else:488,switch:492,case:498,try:504,catch:508,finally:512,return:516,throw:520,break:524,continue:528,debugger:532},OPe={__proto__:null,async:123,get:125,set:127,declare:187,public:189,private:189,protected:189,static:191,abstract:193,override:195,readonly:201,accessor:203,new:389},vPe={__proto__:null,"<":143},EPe=ag.deserialize({version:14,states:"$RQWO'#CdO>cQWO'#H[O>kQWO'#HbO>kQWO'#HdO`Q^O'#HfO>kQWO'#HhO>kQWO'#HkO>pQWO'#HqO>uQ07iO'#HwO%[Q^O'#HyO?QQ07iO'#H{O?]Q07iO'#H}O9kQ07hO'#IPO?hQ08SO'#ChO@jQ`O'#DiQOQWOOO%[Q^O'#EPOAQQWO'#ESO:RQ7[O'#EjOA]QWO'#EjOAhQpO'#FbOOQU'#Cf'#CfOOQ07`'#Dn'#DnOOQ07`'#Jm'#JmO%[Q^O'#JmOOQO'#Jq'#JqOOQO'#Ib'#IbOBhQ`O'#EcOOQ07`'#Eb'#EbOCdQ07pO'#EcOCnQ`O'#EVOOQO'#Jp'#JpODSQ`O'#JqOEaQ`O'#EVOCnQ`O'#EcPEnO!0LbO'#CaPOOO)CDu)CDuOOOO'#IX'#IXOEyO!bO,59TOOQ07b,59T,59TOOOO'#IY'#IYOFXO#tO,59TO%[Q^O'#D`OOOO'#I['#I[OFgO?MpO,59xOOQ07b,59x,59xOFuQ^O'#I]OGYQWO'#JkOI[QrO'#JkO+}Q^O'#JkOIcQWO,5:OOIyQWO'#ElOJWQWO'#JyOJcQWO'#JxOJcQWO'#JxOJkQWO,5;YOJpQWO'#JwOOQ07f,5:Z,5:ZOJwQ^O,5:ZOLxQ08SO,5:eOMiQWO,5:mONSQ07hO'#JvONZQWO'#JuO9ZQWO'#JuONoQWO'#JuONwQWO,5;XON|QWO'#JuO!#UQrO'#JjOOQ07b'#Ch'#ChO%[Q^O'#ERO!#tQpO,5:rOOQO'#Jr'#JrOOQO-EmOOQU'#J`'#J`OOQU,5>n,5>nOOQU-EpQWO'#HQO9aQWO'#HSO!CgQWO'#HSO:RQ7[O'#HUO!ClQWO'#HUOOQU,5=j,5=jO!CqQWO'#HVO!DSQWO'#CnO!DXQWO,59OO!DcQWO,59OO!FhQ^O,59OOOQU,59O,59OO!FxQ07hO,59OO%[Q^O,59OO!ITQ^O'#H^OOQU'#H_'#H_OOQU'#H`'#H`O`Q^O,5=vO!IkQWO,5=vO`Q^O,5=|O`Q^O,5>OO!IpQWO,5>QO`Q^O,5>SO!IuQWO,5>VO!IzQ^O,5>]OOQU,5>c,5>cO%[Q^O,5>cO9kQ07hO,5>eOOQU,5>g,5>gO!NUQWO,5>gOOQU,5>i,5>iO!NUQWO,5>iOOQU,5>k,5>kO!NZQ`O'#D[O%[Q^O'#JmO!NxQ`O'#JmO# gQ`O'#DjO# xQ`O'#DjO#$ZQ^O'#DjO#$bQWO'#JlO#$jQWO,5:TO#$oQWO'#EpO#$}QWO'#JzO#%VQWO,5;ZO#%[Q`O'#DjO#%iQ`O'#EUOOQ07b,5:n,5:nO%[Q^O,5:nO#%pQWO,5:nO>pQWO,5;UO!@}Q`O,5;UO!AVQ7[O,5;UO:RQ7[O,5;UO#%xQWO,5@XO#%}Q$ISO,5:rOOQO-E<`-E<`O#'TQ07pO,5:}OCnQ`O,5:qO#'_Q`O,5:qOCnQ`O,5:}O!@rQ07hO,5:qOOQ07`'#Ef'#EfOOQO,5:},5:}O%[Q^O,5:}O#'lQ07hO,5:}O#'wQ07hO,5:}O!@}Q`O,5:qOOQO,5;T,5;TO#(VQ07hO,5:}POOO'#IV'#IVP#(kO!0LbO,58{POOO,58{,58{OOOO-EwO+}Q^O,5>wOOQO,5>},5>}O#)VQ^O'#I]OOQO-EjQ08SO1G0{O#>wQ08SO1G0{O#@uQ08SO1G0{O#CuQ(CYO'#ChO#EsQ(CYO1G1^O#EzQ(CYO'#JjO!,lQWO1G1dO#F[Q08SO,5?TOOQ07`-EkQWO1G3lO$2dQ^O1G3nO$6hQ^O'#HmOOQU1G3q1G3qO$6uQWO'#HsO>pQWO'#HuOOQU1G3w1G3wO$6}Q^O1G3wO9kQ07hO1G3}OOQU1G4P1G4POOQ07`'#GY'#GYO9kQ07hO1G4RO9kQ07hO1G4TO$;UQWO,5@XO!*fQ^O,5;[O9ZQWO,5;[O>pQWO,5:UO!*fQ^O,5:UO!@}Q`O,5:UO$;ZQ(CYO,5:UOOQO,5;[,5;[O$;eQ`O'#I^O$;{QWO,5@WOOQ07b1G/o1G/oO$pQWO1G0pO!@}Q`O1G0pO!AVQ7[O1G0pOOQ07`1G5s1G5sO!@rQ07hO1G0]OOQO1G0i1G0iO%[Q^O1G0iO$PQrO1G4cOOQO1G4i1G4iO%[Q^O,5>wO$>ZQWO1G5qO$>cQWO1G6OO$>kQrO1G6PO9ZQWO,5>}O$>uQ08SO1G5|O%[Q^O1G5|O$?VQ07hO1G5|O$?hQWO1G5{O$?hQWO1G5{O9ZQWO1G5{O$?pQWO,5?QO9ZQWO,5?QOOQO,5?Q,5?QO$@UQWO,5?QO$'ZQWO,5?QOOQO-EXOOQU,5>X,5>XO%[Q^O'#HnO%7dQWO'#HpOOQU,5>_,5>_O9ZQWO,5>_OOQU,5>a,5>aOOQU7+)c7+)cOOQU7+)i7+)iOOQU7+)m7+)mOOQU7+)o7+)oO%7iQ`O1G5sO%7}Q(CYO1G0vO%8XQWO1G0vOOQO1G/p1G/pO%8dQ(CYO1G/pO>pQWO1G/pO!*fQ^O'#DjOOQO,5>x,5>xOOQO-E<[-E<[OOQO,5?O,5?OOOQO-EpQWO7+&[O!@}Q`O7+&[OOQO7+%w7+%wO$=mQ08SO7+&TOOQO7+&T7+&TO%[Q^O7+&TO%8nQ07hO7+&TO!@rQ07hO7+%wO!@}Q`O7+%wO%8yQ07hO7+&TO%9XQ08SO7++hO%[Q^O7++hO%9iQWO7++gO%9iQWO7++gOOQO1G4l1G4lO9ZQWO1G4lO%9qQWO1G4lOOQO7+%|7+%|O#%sQWO<zQ08SO1G2ZO%A]Q08SO1G2mO%ChQ08SO1G2oO%EsQ7[O,5>yOOQO-E<]-E<]O%E}QrO,5>zO%[Q^O,5>zOOQO-E<^-E<^O%FXQWO1G5uOOQ07b<YOOQU,5>[,5>[O&5oQWO1G3yO9ZQWO7+&bO!*fQ^O7+&bOOQO7+%[7+%[O&5tQ(CYO1G6PO>pQWO7+%[OOQ07b<pQWO<pQWO7+)eO'&sQWO<}AN>}O%[Q^OAN?ZOOQO<qQ(CYOG26}O!*fQ^O'#DyO1PQWO'#EWO'@gQrO'#JiO!*fQ^O'#DqO'@nQ^O'#D}O'@uQrO'#ChO'C]QrO'#ChO!*fQ^O'#EPO'CmQ^O,5;VO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O'#IiO'EpQWO,5a#@O#@^#@d#Ax#BW#Cr#DQ#DW#D^#Dd#Dn#Dt#Dz#EU#Eh#EnPPPPPPPPPP#EtPPPPPPP#Fi#Ip#KP#KW#K`PPPP$!d$%Z$+r$+u$+x$,q$,t$,w$-O$-WPP$-^$-b$.Y$/X$/]$/qPP$/u$/{$0PP$0S$0W$0Z$1P$1h$2P$2T$2W$2Z$2a$2d$2h$2lR!{RoqOXst!Z#c%j&m&o&p&r,h,m1w1zY!uQ'Z-Y1[5]Q%pvQ%xyQ&P|Q&e!VS'R!e-QQ'a!iS'g!r!xS*c$|*hQ+f%yQ+s&RQ,X&_Q-W'YQ-b'bQ-j'hQ/|*jQ1f,YR;Y:g%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%j%p%}&f&i&m&o&p&r&v'O']'m'}(P(V(^(r(v(z)y+O+S,e,h,m-^-f-t-z.l.s0[0a0q1_1o1p1r1t1w1z1|2m2s3Z5Y5d5t5u5x6]7w7|8]8gS#p]:d!r)[$[$m'S)n,y,|.{2]3p5W6S9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]Q*u%ZQ+k%{Q,Z&bQ,b&jQ.c;QQ0h+^Q0l+`Q0w+lQ1n,`Q2{.[Q4v0rQ5k1gQ6i3PQ6u;RQ7h4wR8m6j&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%j%p%}&f&i&j&m&o&p&r&v'O'S']'m'}(P(V(^(r(v(z)n)y+O+S+^,e,h,m,y,|-^-f-t-z.[.l.s.{0[0a0q1_1o1p1r1t1w1z1|2]2m2s3P3Z3p5W5Y5d5t5u5x6S6]6j7w7|8]8g9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]t!nQ!r!u!x!y'R'Y'Z'g'h'i-Q-W-Y-j1[5]5_$v$si#u#w$c$d$x${%O%Q%[%]%a)u){)}*P*R*Y*`*p*q+]+`+w+z.Z.i/Z/j/k/m0Q0S0^1R1U1^3O3x4S4[4f4n4p5c6g7T7^7y8j8w9[9n:O:W:y:z:|:};O;P;S;T;U;V;W;X;_;`;a;b;c;d;g;h;i;j;k;l;m;n;q;r < TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:371,context:fPe,nodeProps:[["isolate",-8,4,5,13,33,35,48,50,52,""],["group",-26,8,16,18,65,201,205,209,210,212,215,218,228,230,236,238,240,242,245,251,257,259,261,263,265,267,268,"Statement",-32,12,13,28,31,32,38,48,51,52,54,59,67,75,79,81,83,84,106,107,116,117,134,137,139,140,141,142,144,145,164,165,167,"Expression",-23,27,29,33,37,39,41,168,170,172,173,175,176,177,179,180,181,183,184,185,195,197,199,200,"Type",-3,87,99,105,"ClassItem"],["openedBy",22,"<",34,"InterpolationStart",53,"[",57,"{",72,"(",157,"JSXStartCloseTag"],["closedBy",23,">",36,"InterpolationEnd",47,"]",58,"}",73,")",162,"JSXEndTag"]],propSources:[bPe],skippedNodes:[0,4,5,271],repeatNodeCount:37,tokenData:"$Fj(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#8g!R![#:v![!]#Gv!]!^#IS!^!_#J^!_!`#Ns!`!a$#_!a!b$(l!b!c$,k!c!}Er!}#O$-u#O#P$/P#P#Q$4h#Q#R$5r#R#SEr#S#T$7P#T#o$8Z#o#p$q#r#s$?}#s$f%Z$f$g+g$g#BYEr#BY#BZ$AX#BZ$ISEr$IS$I_$AX$I_$I|Er$I|$I}$Dd$I}$JO$Dd$JO$JTEr$JT$JU$AX$JU$KVEr$KV$KW$AX$KW&FUEr&FU&FV$AX&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$AX?HUOEr(n%d_$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$f&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$f&j(R!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(R!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$f&j(OpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU(OpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Op(R!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z(CS+rq$f&j(Op(R!b't(;dOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z(CS.ST(P#S$f&j'u(;dO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c(CS.n_$f&j(Op(R!b'u(;dOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#`/x`$f&j!o$Ip(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S1V`#t$Id$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S2d_#t$Id$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/|3l_'}$(n$f&j(R!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$f&j(R!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$f&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$a`$f&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$a``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$a`$f&j(R!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ(R!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$a`(R!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k#%|:hh$f&j(Op(R!bOY%ZYZ&cZq%Zqr`#P#o`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXVS$f&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSVSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWVS(R!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]VS$f&j(OpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWVS(OpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYVS(Op(R!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%lQ^$f&j!USOY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@Y!_!}!=y!}#O!Bw#O#P!Dj#P#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!?Ta$f&j!USO!^&c!_#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&cS!@_X!USOY!@YZ!P!@Y!P!Q!@z!Q!}!@Y!}#O!Ac#O#P!Bb#P;'S!@Y;'S;=`!Bq<%lO!@YS!APU!US#Z#[!@z#]#^!@z#a#b!@z#g#h!@z#i#j!@z#m#n!@zS!AfVOY!AcZ#O!Ac#O#P!A{#P#Q!@Y#Q;'S!Ac;'S;=`!B[<%lO!AcS!BOSOY!AcZ;'S!Ac;'S;=`!B[<%lO!AcS!B_P;=`<%l!AcS!BeSOY!@YZ;'S!@Y;'S;=`!Bq<%lO!@YS!BtP;=`<%l!@Y&n!B|[$f&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#O!Bw#O#P!Cr#P#Q!=y#Q#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!CwX$f&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!DgP;=`<%l!Bw&n!DoX$f&jOY!=yYZ&cZ!^!=y!^!_!@Y!_#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!E_P;=`<%l!=y(Q!Eki$f&j(R!b!USOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#Z&}#Z#[!Eb#[#]&}#]#^!Eb#^#a&}#a#b!Eb#b#g&}#g#h!Eb#h#i&}#i#j!Eb#j#m&}#m#n!Eb#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!f!GaZ(R!b!USOY!GYZw!GYwx!@Yx!P!GY!P!Q!HS!Q!}!GY!}#O!Ic#O#P!Bb#P;'S!GY;'S;=`!JZ<%lO!GY!f!HZb(R!b!USOY'}Zw'}x#O'}#P#Z'}#Z#[!HS#[#]'}#]#^!HS#^#a'}#a#b!HS#b#g'}#g#h!HS#h#i'}#i#j!HS#j#m'}#m#n!HS#n;'S'};'S;=`(f<%lO'}!f!IhX(R!bOY!IcZw!Icwx!Acx#O!Ic#O#P!A{#P#Q!GY#Q;'S!Ic;'S;=`!JT<%lO!Ic!f!JWP;=`<%l!Ic!f!J^P;=`<%l!GY(Q!Jh^$f&j(R!bOY!JaYZ&cZw!Jawx!Bwx!^!Ja!^!_!Ic!_#O!Ja#O#P!Cr#P#Q!Q#V#X%Z#X#Y!4|#Y#b%Z#b#c#Zd$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#?tf$f&j(Op(R!bo$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#b%Z#b#c#yPe[e]||-1},{term:334,get:e=>OPe[e]||-1},{term:70,get:e=>vPe[e]||-1}],tokenPrec:14638}),$K=[ha("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),ha("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),ha("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),ha("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),ha("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),ha(`try { \${} } catch (\${error}) { \${} -}`,{label:"try",detail:"/ catch block",type:"keyword"}),fa("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),fa(`if (\${}) { +}`,{label:"try",detail:"/ catch block",type:"keyword"}),ha("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),ha(`if (\${}) { \${} } else { \${} -}`,{label:"if",detail:"/ else block",type:"keyword"}),fa(`class \${name} { +}`,{label:"if",detail:"/ else block",type:"keyword"}),ha(`class \${name} { constructor(\${params}) { \${} } -}`,{label:"class",detail:"definition",type:"keyword"}),fa('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),fa('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],$De=uK.concat([fa("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),fa("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),fa("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),P9=new Xq,cK=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function T0(e){return(t,n)=>{let r=t.node.getChild("VariableDefinition");return r&&n(r,e),!0}}const FDe=["FunctionDeclaration"],BDe={FunctionDeclaration:T0("function"),ClassDeclaration:T0("class"),ClassExpression:()=>!0,EnumDeclaration:T0("constant"),TypeAliasDeclaration:T0("type"),NamespaceDeclaration:T0("namespace"),VariableDefinition(e,t){e.matchContext(FDe)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function dK(e,t){let n=P9.get(t);if(n)return n;let r=[],i=!0;function o(a,s){let l=e.sliceString(a.from,a.to);r.push({label:l,type:s})}return t.cursor(Tr.IncludeAnonymous).iterate(a=>{if(i)i=!1;else if(a.name){let s=BDe[a.name];if(s&&s(a,o)||cK.has(a.name))return!1}else if(a.to-a.from>8192){for(let s of dK(e,a.node))r.push(s);return!1}}),P9.set(t,r),r}const L9=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,fK=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function UDe(e){let t=kr(e.state).resolveInner(e.pos,-1);if(fK.indexOf(t.name)>-1)return null;let n=t.name=="VariableName"||t.to-t.from<20&&L9.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let i=t;i;i=i.parent)cK.has(i.name)&&(r=r.concat(dK(e.state.doc,i)));return{options:r,from:n?t.from:e.pos,validFor:L9}}const ku=Wm.define({name:"javascript",parser:MDe.configure({props:[Q1.add({IfStatement:ME({except:/^\s*({|else\b)/}),TryStatement:ME({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:ZAe,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:qAe({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":ME({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}}),vg.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":oZ,BlockComment(e){return{from:e.from+2,to:e.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),pK={test:e=>/^JSX/.test(e.name),facet:mP({commentTokens:{block:{open:"{/*",close:"*/}"}}})},hK=ku.configure({dialect:"ts"},"typescript"),mK=ku.configure({dialect:"jsx",props:[gP.add(e=>e.isTop?[pK]:void 0)]}),gK=ku.configure({dialect:"jsx ts",props:[gP.add(e=>e.isTop?[pK]:void 0)]},"typescript");let bK=e=>({label:e,type:"keyword"});const yK="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(bK),jDe=yK.concat(["declare","implements","private","protected","public"].map(bK));function zDe(e={}){let t=e.jsx?e.typescript?gK:mK:e.typescript?hK:ku,n=e.typescript?$De.concat(jDe):uK.concat(yK);return new Ny(t,[ku.data.of({autocomplete:fRe(fK,sX(n))}),ku.data.of({autocomplete:UDe}),e.jsx?WDe:[]])}function VDe(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 M9(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 HDe=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),WDe=Vt.inputHandler.of((e,t,n,r,i)=>{if((HDe?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||r!=">"&&r!="/"||!ku.isActiveAt(e.state,t,-1))return!1;let o=i(),{state:a}=o,s=a.changeByRange(l=>{var u;let{head:c}=l,d=kr(a).resolveInner(c-1,-1),p;if(d.name=="JSXStartTag"&&(d=d.parent),!(a.doc.sliceString(c-1,c)!=r||d.name=="JSXAttributeValue"&&d.to>c)){if(r==">"&&d.name=="JSXFragmentTag")return{range:l,changes:{from:c,insert:""}};if(r=="/"&&d.name=="JSXStartCloseTag"){let h=d.parent,m=h.parent;if(m&&h.from==c-2&&((p=M9(a.doc,m.firstChild,c))||((u=m.firstChild)===null||u===void 0?void 0:u.name)=="JSXFragmentTag")){let y=`${p}>`;return{range:Je.cursor(c+y.length,-1),changes:{from:c,insert:y}}}}else if(r==">"){let h=VDe(d);if(h&&!/^\/?>|^<\//.test(a.doc.sliceString(c,c+2))&&(p=M9(a.doc,h,c)))return{range:l,changes:{from:c,insert:``}}}}return{range:l}});return s.changes.empty?!1:(e.dispatch([o,a.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),w0=["_blank","_self","_top","_parent"],bA=["ascii","utf-8","utf-16","latin1","latin1"],yA=["get","post","put","delete"],OA=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Ha=["true","false"],on={},QDe={a:{attrs:{href:null,ping:null,type:null,media:null,target:w0,hreflang:null}},abbr:on,address:on,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:on,aside:on,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:on,base:{attrs:{href:null,target:w0}},bdi:on,bdo:on,blockquote:{attrs:{cite:null}},body:on,br:on,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:OA,formmethod:yA,formnovalidate:["novalidate"],formtarget:w0,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:on,center:on,cite:on,code:on,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:on,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:on,div:on,dl:on,dt:on,em:on,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:on,figure:on,footer:on,form:{attrs:{action:null,name:null,"accept-charset":bA,autocomplete:["on","off"],enctype:OA,method:yA,novalidate:["novalidate"],target:w0}},h1:on,h2:on,h3:on,h4:on,h5:on,h6:on,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:on,hgroup:on,hr:on,html:{attrs:{manifest:null}},i:on,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:OA,formmethod:yA,formnovalidate:["novalidate"],formtarget:w0,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:on,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:on,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:on,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:bA,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:on,noscript:on,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:on,param:{attrs:{name:null,value:null}},pre:on,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:on,rt:on,ruby:on,samp:on,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:bA}},section:on,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:on,source:{attrs:{src:null,type:null,media:null}},span:on,strong:on,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:on,summary:on,sup:on,table:on,tbody:on,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:on,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:on,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:on,time:{attrs:{datetime:null}},title:on,tr:on,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:on,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:on},OK={accesskey:null,class:null,contenteditable:Ha,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:Ha,autocorrect:Ha,autocapitalize:Ha,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":Ha,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Ha,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Ha,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Ha,"aria-hidden":Ha,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Ha,"aria-multiselectable":Ha,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Ha,"aria-relevant":null,"aria-required":Ha,"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},vK="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 vK)OK[e]=null;let jy=class{constructor(t,n){this.tags=Object.assign(Object.assign({},QDe),t),this.globalAttrs=Object.assign(Object.assign({},OK),n),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}};jy.default=new jy;function Xm(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 Km(e,t=!1){for(;e;e=e.parent)if(e.name=="Element")if(t)t=!1;else return e;return null}function EK(e,t,n){let r=n.tags[Xm(e,Km(t))];return(r==null?void 0:r.children)||n.allTags}function FP(e,t){let n=[];for(let r=Km(t);r&&!r.type.isTop;r=Km(r.parent)){let i=Xm(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 SK=/^[:\-\.\w\u00b7-\uffff]*$/;function $9(e,t,n,r,i){let o=/\s*>/.test(e.sliceDoc(i,i+5))?"":">",a=Km(n,!0);return{from:r,to:i,options:EK(e.doc,a,t).map(s=>({label:s,type:"type"})).concat(FP(e.doc,n).map((s,l)=>({label:"/"+s,apply:"/"+s+o,type:"type",boost:99-l}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function F9(e,t,n,r){let i=/\s*>/.test(e.sliceDoc(r,r+5))?"":">";return{from:n,to:r,options:FP(e.doc,t).map((o,a)=>({label:o,apply:o+i,type:"type",boost:99-a})),validFor:SK}}function YDe(e,t,n,r){let i=[],o=0;for(let a of EK(e.doc,n,t))i.push({label:"<"+a,type:"type"});for(let a of FP(e.doc,n))i.push({label:"",type:"type",boost:99-o++});return{from:r,to:r,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function GDe(e,t,n,r,i){let o=Km(n),a=o?t.tags[Xm(e.doc,o)]:null,s=a&&a.attrs?Object.keys(a.attrs):[],l=a&&a.globalAttrs===!1?s:s.length?s.concat(t.globalAttrNames):t.globalAttrNames;return{from:r,to:i,options:l.map(u=>({label:u,type:"property"})),validFor:SK}}function qDe(e,t,n,r,i){var o;let a=(o=n.parent)===null||o===void 0?void 0:o.getChild("AttributeName"),s=[],l;if(a){let u=e.sliceDoc(a.from,a.to),c=t.globalAttrs[u];if(!c){let d=Km(n),p=d?t.tags[Xm(e.doc,d)]:null;c=(p==null?void 0:p.attrs)&&p.attrs[u]}if(c){let d=e.sliceDoc(r,i).toLowerCase(),p='"',h='"';/^['"]/.test(d)?(l=d[0]=='"'?/^[^"]*$/:/^[^']*$/,p="",h=e.sliceDoc(i,i+1)==d[0]?"":d[0],d=d.slice(1),r++):l=/^[^\s<>='"]*$/;for(let m of c)s.push({label:m,apply:p+m+h,type:"constant"})}}return{from:r,to:i,options:s,validFor:l}}function TK(e,t){let{state:n,pos:r}=t,i=kr(n).resolveInner(r,-1),o=i.resolve(r);for(let a=r,s;o==i&&(s=i.childBefore(a));){let l=s.lastChild;if(!l||!l.type.isError||l.fromTK(r,i)}const KDe=ku.parser.configure({top:"SingleExpression"}),wK=[{tag:"script",attrs:e=>e.type=="text/typescript"||e.lang=="ts",parser:hK.parser},{tag:"script",attrs:e=>e.type=="text/babel"||e.type=="text/jsx",parser:mK.parser},{tag:"script",attrs:e=>e.type=="text/typescript-jsx",parser:gK.parser},{tag:"script",attrs(e){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type)},parser:KDe},{tag:"script",attrs(e){return!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type)},parser:ku.parser},{tag:"style",attrs(e){return(!e.lang||e.lang=="css")&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type))},parser:kT.parser}],kK=[{name:"style",parser:kT.parser.configure({top:"Styles"})}].concat(vK.map(e=>({name:e,parser:ku.parser}))),xK=Wm.define({name:"html",parser:MNe.configure({props:[Q1.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:"-._"}}),BE=xK.configure({wrap:iK(wK,kK)});function JDe(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=iK((e.nestedLanguages||[]).concat(wK),(e.nestedAttributes||[]).concat(kK)));let r=n?xK.configure({wrap:n,dialect:t}):t?BE.configure({dialect:t}):BE;return new Ny(r,[BE.data.of({autocomplete:XDe(e)}),e.autoCloseTags!==!1?ePe:[],zDe().support,dDe().support])}const B9=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),ePe=Vt.inputHandler.of((e,t,n,r,i)=>{if(e.composing||e.state.readOnly||t!=n||r!=">"&&r!="/"||!BE.isActiveAt(e.state,t,-1))return!1;let o=i(),{state:a}=o,s=a.changeByRange(l=>{var u,c,d;let p=a.doc.sliceString(l.from-1,l.to)==r,{head:h}=l,m=kr(a).resolveInner(h-1,-1),y;if((m.name=="TagName"||m.name=="StartTag")&&(m=m.parent),p&&r==">"&&m.name=="OpenTag"){if(((c=(u=m.parent)===null||u===void 0?void 0:u.lastChild)===null||c===void 0?void 0:c.name)!="CloseTag"&&(y=Xm(a.doc,m.parent,h))&&!B9.has(y)){let O=h+(a.doc.sliceString(h,h+1)===">"?1:0),b=``;return{range:l,changes:{from:h,to:O,insert:b}}}}else if(p&&r=="/"&&m.name=="IncompleteCloseTag"){let O=m.parent;if(m.from==h-2&&((d=O.lastChild)===null||d===void 0?void 0:d.name)!="CloseTag"&&(y=Xm(a.doc,O,h))&&!B9.has(y)){let b=h+(a.doc.sliceString(h,h+1)===">"?1:0),v=`${y}>`;return{range:Je.cursor(h+v.length,-1),changes:{from:h,to:b,insert:v}}}}return{range:l}});return s.changes.empty?!1:(e.dispatch([o,a.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),CK=mP({commentTokens:{block:{open:""}}}),AK=new On,_K=IIe.configure({props:[vg.add(e=>!e.is("Block")||e.is("Document")||PR(e)!=null?void 0:(t,n)=>({from:n.doc.lineAt(t.from).to,to:t.to})),AK.add(PR),Q1.add({Document:()=>null}),Nf.add({Document:CK})]});function PR(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?+t[1]:void 0}function tPe(e,t){let n=e;for(;;){let r=n.nextSibling,i;if(!r||(i=PR(r.type))!=null&&i<=t)break;n=r}return n.to}const nPe=iZ.of((e,t,n)=>{for(let r=kr(e).resolveInner(n,-1);r&&!(r.fromn)return{from:n,to:o}}return null});function BP(e){return new Us(CK,e,[nPe],"markdown")}const rPe=BP(_K),iPe=_K.configure([zIe,HIe,VIe,WIe,{props:[vg.add({Table:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}]),RK=BP(iPe);function oPe(e,t){return n=>{if(n&&e){let r=null;if(n=/\S*/.exec(n)[0],typeof e=="function"?r=e(n):r=aT.matchLanguageName(e,n,!0),r instanceof aT)return r.support?r.support.language.parser:Iy.getSkippingParser(r.load());if(r)return r.parser}return t?t.parser:null}}class jv{constructor(t,n,r,i,o,a,s){this.node=t,this.from=n,this.to=r,this.spaceBefore=i,this.spaceAfter=o,this.type=a,this.item=s}blank(t,n=!0){let r=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(t!=null){for(;r.length0;i--)r+=" ";return r+(n?this.spaceAfter:"")}}marker(t,n){let r=this.node.name=="OrderedList"?String(+NK(this.item,t)[2]+n):"";return this.spaceBefore+r+this.type+this.spaceAfter}}function IK(e,t){let n=[];for(let i=e;i&&i.name!="Document";i=i.parent)(i.name=="ListItem"||i.name=="Blockquote"||i.name=="FencedCode")&&n.push(i);let r=[];for(let i=n.length-1;i>=0;i--){let o=n[i],a,s=t.lineAt(o.from),l=o.from-s.from;if(o.name=="FencedCode")r.push(new jv(o,l,l,"","","",null));else if(o.name=="Blockquote"&&(a=/^ *>( ?)/.exec(s.text.slice(l))))r.push(new jv(o,l,l+a[0].length,"",a[1],">",null));else if(o.name=="ListItem"&&o.parent.name=="OrderedList"&&(a=/^( *)\d+([.)])( *)/.exec(s.text.slice(l)))){let u=a[3],c=a[0].length;u.length>=4&&(u=u.slice(0,u.length-4),c-=4),r.push(new jv(o.parent,l,l+c,a[1],u,a[2],o))}else if(o.name=="ListItem"&&o.parent.name=="BulletList"&&(a=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(s.text.slice(l)))){let u=a[4],c=a[0].length;u.length>4&&(u=u.slice(0,u.length-4),c-=4);let d=a[2];a[3]&&(d+=a[3].replace(/[xX]/," ")),r.push(new jv(o.parent,l,l+c,a[1],u,d,o))}}return r}function NK(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function vA(e,t,n,r=0){for(let i=-1,o=e;;){if(o.name=="ListItem"){let s=NK(o,t),l=+s[2];if(i>=0){if(l!=i+1)return;n.push({from:o.from+s[1].length,to:o.from+s[0].length,insert:String(i+2+r)})}i=l}let a=o.nextSibling;if(!a)break;o=a}}function UP(e,t){let n=/^[ \t]*/.exec(e)[0].length;if(!n||t.facet(W1)!=" ")return e;let r=_l(e,4,n),i="";for(let o=r;o>0;)o>=4?(i+=" ",o-=4):(i+=" ",o--);return i+e.slice(n)}const aPe=({state:e,dispatch:t})=>{let n=kr(e),{doc:r}=e,i=null,o=e.changeByRange(a=>{if(!a.empty||!RK.isActiveAt(e,a.from))return i={range:a};let s=a.from,l=r.lineAt(s),u=IK(n.resolveInner(s,-1),r);for(;u.length&&u[u.length-1].from>s-l.from;)u.pop();if(!u.length)return i={range:a};let c=u[u.length-1];if(c.to-c.spaceAfter.length>s-l.from)return i={range:a};let d=s>=c.to-c.spaceAfter.length&&!/\S/.test(l.text.slice(c.to));if(c.item&&d){let O=c.node.firstChild,b=c.node.getChild("ListItem","ListItem");if(O.to>=s||b&&b.to0&&!/[^\s>]/.test(r.lineAt(l.from-1).text)){let v=u.length>1?u[u.length-2]:null,S,k="";v&&v.item?(S=l.from+v.from,k=v.marker(r,1)):S=l.from+(v?v.to:0);let C=[{from:S,to:s,insert:k}];return c.node.name=="OrderedList"&&vA(c.item,r,C,-2),v&&v.node.name=="OrderedList"&&vA(v.item,r,C),{range:Je.cursor(S+k.length),changes:C}}else{let v=j9(u,e,l);return{range:Je.cursor(s+v.length+1),changes:{from:l.from,insert:v+e.lineBreak}}}}if(c.node.name=="Blockquote"&&d&&l.from){let O=r.lineAt(l.from-1),b=/>\s*$/.exec(O.text);if(b&&b.index==c.from){let v=e.changes([{from:O.from+b.index,to:O.to},{from:l.from+c.from,to:l.to}]);return{range:a.map(v),changes:v}}}let p=[];c.node.name=="OrderedList"&&vA(c.item,r,p);let h=c.item&&c.item.from]*/.exec(l.text)[0].length>=c.to)for(let O=0,b=u.length-1;O<=b;O++)m+=O==b&&!h?u[O].marker(r,1):u[O].blank(Ol.from&&/\s/.test(l.text.charAt(y-l.from-1));)y--;return m=UP(m,e),sPe(c.node,e.doc)&&(m=j9(u,e,l)+e.lineBreak+m),p.push({from:y,to:s,insert:e.lineBreak+m}),{range:Je.cursor(y+m.length+1),changes:p}});return i?!1:(t(e.update(o,{scrollIntoView:!0,userEvent:"input"})),!0)};function U9(e){return e.name=="QuoteMark"||e.name=="ListMark"}function sPe(e,t){if(e.name!="OrderedList"&&e.name!="BulletList")return!1;let n=e.firstChild,r=e.getChild("ListItem","ListItem");if(!r)return!1;let i=t.lineAt(n.to),o=t.lineAt(r.from),a=/^[\s>]*$/.test(i.text);return i.number+(a?0:1){let n=kr(e),r=null,i=e.changeByRange(o=>{let a=o.from,{doc:s}=e;if(o.empty&&RK.isActiveAt(e,o.from)){let l=s.lineAt(a),u=IK(lPe(n,a),s);if(u.length){let c=u[u.length-1],d=c.to-c.spaceAfter.length+(c.spaceAfter?1:0);if(a-l.from>d&&!/\S/.test(l.text.slice(d,a-l.from)))return{range:Je.cursor(l.from+d),changes:{from:l.from+d,to:a}};if(a-l.from==d&&(!c.item||l.from<=c.item.from||!/\S/.test(l.text.slice(0,c.to)))){let p=l.from+c.from;if(c.item&&c.node.from{let r=t.node.getChild("VariableDefinition");return r&&n(r,e),!0}}const TPe=["FunctionDeclaration"],wPe={FunctionDeclaration:P0("function"),ClassDeclaration:P0("class"),ClassExpression:()=>!0,EnumDeclaration:P0("constant"),TypeAliasDeclaration:P0("type"),NamespaceDeclaration:P0("namespace"),VariableDefinition(e,t){e.matchContext(TPe)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function BK(e,t){let n=ej.get(t);if(n)return n;let r=[],i=!0;function o(a,s){let l=e.sliceString(a.from,a.to);r.push({label:l,type:s})}return t.cursor(wr.IncludeAnonymous).iterate(a=>{if(i)i=!1;else if(a.name){let s=wPe[a.name];if(s&&s(a,o)||FK.has(a.name))return!1}else if(a.to-a.from>8192){for(let s of BK(e,a.node))r.push(s);return!1}}),ej.set(t,r),r}const tj=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,UK=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function kPe(e){let t=xr(e.state).resolveInner(e.pos,-1);if(UK.indexOf(t.name)>-1)return null;let n=t.name=="VariableName"||t.to-t.from<20&&tj.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let i=t;i;i=i.parent)FK.has(i.name)&&(r=r.concat(BK(e.state.doc,i)));return{options:r,from:n?t.from:e.pos,validFor:tj}}const Au=tg.define({name:"javascript",parser:EPe.configure({props:[aO.add({IfStatement:KE({except:/^\s*({|else\b)/}),TryStatement:KE({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:L2e,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:P2e({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":KE({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}}),Ig.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":NZ,BlockComment(e){return{from:e.from+2,to:e.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),jK={test:e=>/^JSX/.test(e.name),facet:LP({commentTokens:{block:{open:"{/*",close:"*/}"}}})},zK=Au.configure({dialect:"ts"},"typescript"),VK=Au.configure({dialect:"jsx",props:[MP.add(e=>e.isTop?[jK]:void 0)]}),HK=Au.configure({dialect:"jsx ts",props:[MP.add(e=>e.isTop?[jK]:void 0)]},"typescript");let WK=e=>({label:e,type:"keyword"});const QK="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(WK),xPe=QK.concat(["declare","implements","private","protected","public"].map(WK));function CPe(e={}){let t=e.jsx?e.typescript?HK:VK:e.typescript?zK:Au,n=e.typescript?SPe.concat(xPe):$K.concat(QK);return new Wy(t,[Au.data.of({autocomplete:XRe(UK,LX(n))}),Au.data.of({autocomplete:kPe}),e.jsx?RPe:[]])}function APe(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 nj(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 _Pe=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),RPe=Vt.inputHandler.of((e,t,n,r,i)=>{if((_Pe?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||r!=">"&&r!="/"||!Au.isActiveAt(e.state,t,-1))return!1;let o=i(),{state:a}=o,s=a.changeByRange(l=>{var u;let{head:c}=l,d=xr(a).resolveInner(c-1,-1),p;if(d.name=="JSXStartTag"&&(d=d.parent),!(a.doc.sliceString(c-1,c)!=r||d.name=="JSXAttributeValue"&&d.to>c)){if(r==">"&&d.name=="JSXFragmentTag")return{range:l,changes:{from:c,insert:""}};if(r=="/"&&d.name=="JSXStartCloseTag"){let h=d.parent,m=h.parent;if(m&&h.from==c-2&&((p=nj(a.doc,m.firstChild,c))||((u=m.firstChild)===null||u===void 0?void 0:u.name)=="JSXFragmentTag")){let b=`${p}>`;return{range:tt.cursor(c+b.length,-1),changes:{from:c,insert:b}}}}else if(r==">"){let h=APe(d);if(h&&!/^\/?>|^<\//.test(a.doc.sliceString(c,c+2))&&(p=nj(a.doc,h,c)))return{range:l,changes:{from:c,insert:``}}}}return{range:l}});return s.changes.empty?!1:(e.dispatch([o,a.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),L0=["_blank","_self","_top","_parent"],PA=["ascii","utf-8","utf-16","latin1","latin1"],LA=["get","post","put","delete"],MA=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Qa=["true","false"],an={},IPe={a:{attrs:{href:null,ping:null,type:null,media:null,target:L0,hreflang:null}},abbr:an,address:an,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:an,aside:an,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:an,base:{attrs:{href:null,target:L0}},bdi:an,bdo:an,blockquote:{attrs:{cite:null}},body:an,br:an,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:MA,formmethod:LA,formnovalidate:["novalidate"],formtarget:L0,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:an,center:an,cite:an,code:an,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:an,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:an,div:an,dl:an,dt:an,em:an,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:an,figure:an,footer:an,form:{attrs:{action:null,name:null,"accept-charset":PA,autocomplete:["on","off"],enctype:MA,method:LA,novalidate:["novalidate"],target:L0}},h1:an,h2:an,h3:an,h4:an,h5:an,h6:an,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:an,hgroup:an,hr:an,html:{attrs:{manifest:null}},i:an,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:MA,formmethod:LA,formnovalidate:["novalidate"],formtarget:L0,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:an,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:an,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:an,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:PA,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:an,noscript:an,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:an,param:{attrs:{name:null,value:null}},pre:an,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:an,rt:an,ruby:an,samp:an,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:PA}},section:an,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:an,source:{attrs:{src:null,type:null,media:null}},span:an,strong:an,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:an,summary:an,sup:an,table:an,tbody:an,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:an,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:an,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:an,time:{attrs:{datetime:null}},title:an,tr:an,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:an,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:an},YK={accesskey:null,class:null,contenteditable:Qa,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:Qa,autocorrect:Qa,autocapitalize:Qa,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":Qa,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Qa,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Qa,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Qa,"aria-hidden":Qa,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Qa,"aria-multiselectable":Qa,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Qa,"aria-relevant":null,"aria-required":Qa,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},GK="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 GK)YK[e]=null;let e1=class{constructor(t,n){this.tags=Object.assign(Object.assign({},IPe),t),this.globalAttrs=Object.assign(Object.assign({},YK),n),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}};e1.default=new e1;function sg(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 lg(e,t=!1){for(;e;e=e.parent)if(e.name=="Element")if(t)t=!1;else return e;return null}function qK(e,t,n){let r=n.tags[sg(e,lg(t))];return(r==null?void 0:r.children)||n.allTags}function i3(e,t){let n=[];for(let r=lg(t);r&&!r.type.isTop;r=lg(r.parent)){let i=sg(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 ZK=/^[:\-\.\w\u00b7-\uffff]*$/;function rj(e,t,n,r,i){let o=/\s*>/.test(e.sliceDoc(i,i+5))?"":">",a=lg(n,!0);return{from:r,to:i,options:qK(e.doc,a,t).map(s=>({label:s,type:"type"})).concat(i3(e.doc,n).map((s,l)=>({label:"/"+s,apply:"/"+s+o,type:"type",boost:99-l}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function ij(e,t,n,r){let i=/\s*>/.test(e.sliceDoc(r,r+5))?"":">";return{from:n,to:r,options:i3(e.doc,t).map((o,a)=>({label:o,apply:o+i,type:"type",boost:99-a})),validFor:ZK}}function DPe(e,t,n,r){let i=[],o=0;for(let a of qK(e.doc,n,t))i.push({label:"<"+a,type:"type"});for(let a of i3(e.doc,n))i.push({label:"",type:"type",boost:99-o++});return{from:r,to:r,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function NPe(e,t,n,r,i){let o=lg(n),a=o?t.tags[sg(e.doc,o)]:null,s=a&&a.attrs?Object.keys(a.attrs):[],l=a&&a.globalAttrs===!1?s:s.length?s.concat(t.globalAttrNames):t.globalAttrNames;return{from:r,to:i,options:l.map(u=>({label:u,type:"property"})),validFor:ZK}}function PPe(e,t,n,r,i){var o;let a=(o=n.parent)===null||o===void 0?void 0:o.getChild("AttributeName"),s=[],l;if(a){let u=e.sliceDoc(a.from,a.to),c=t.globalAttrs[u];if(!c){let d=lg(n),p=d?t.tags[sg(e.doc,d)]:null;c=(p==null?void 0:p.attrs)&&p.attrs[u]}if(c){let d=e.sliceDoc(r,i).toLowerCase(),p='"',h='"';/^['"]/.test(d)?(l=d[0]=='"'?/^[^"]*$/:/^[^']*$/,p="",h=e.sliceDoc(i,i+1)==d[0]?"":d[0],d=d.slice(1),r++):l=/^[^\s<>='"]*$/;for(let m of c)s.push({label:m,apply:p+m+h,type:"constant"})}}return{from:r,to:i,options:s,validFor:l}}function XK(e,t){let{state:n,pos:r}=t,i=xr(n).resolveInner(r,-1),o=i.resolve(r);for(let a=r,s;o==i&&(s=i.childBefore(a));){let l=s.lastChild;if(!l||!l.type.isError||l.fromXK(r,i)}const $Pe=Au.parser.configure({top:"SingleExpression"}),KK=[{tag:"script",attrs:e=>e.type=="text/typescript"||e.lang=="ts",parser:zK.parser},{tag:"script",attrs:e=>e.type=="text/babel"||e.type=="text/jsx",parser:VK.parser},{tag:"script",attrs:e=>e.type=="text/typescript-jsx",parser:HK.parser},{tag:"script",attrs(e){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type)},parser:$Pe},{tag:"script",attrs(e){return!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type)},parser:Au.parser},{tag:"style",attrs(e){return(!e.lang||e.lang=="css")&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type))},parser:jT.parser}],JK=[{name:"style",parser:jT.parser.configure({top:"Styles"})}].concat(GK.map(e=>({name:e,parser:Au.parser}))),eJ=tg.define({name:"html",parser:ENe.configure({props:[aO.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:"-._"}}),tS=eJ.configure({wrap:DK(KK,JK)});function FPe(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=DK((e.nestedLanguages||[]).concat(KK),(e.nestedAttributes||[]).concat(JK)));let r=n?eJ.configure({wrap:n,dialect:t}):t?tS.configure({dialect:t}):tS;return new Wy(r,[tS.data.of({autocomplete:MPe(e)}),e.autoCloseTags!==!1?BPe:[],CPe().support,ZNe().support])}const oj=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),BPe=Vt.inputHandler.of((e,t,n,r,i)=>{if(e.composing||e.state.readOnly||t!=n||r!=">"&&r!="/"||!tS.isActiveAt(e.state,t,-1))return!1;let o=i(),{state:a}=o,s=a.changeByRange(l=>{var u,c,d;let p=a.doc.sliceString(l.from-1,l.to)==r,{head:h}=l,m=xr(a).resolveInner(h-1,-1),b;if((m.name=="TagName"||m.name=="StartTag")&&(m=m.parent),p&&r==">"&&m.name=="OpenTag"){if(((c=(u=m.parent)===null||u===void 0?void 0:u.lastChild)===null||c===void 0?void 0:c.name)!="CloseTag"&&(b=sg(a.doc,m.parent,h))&&!oj.has(b)){let O=h+(a.doc.sliceString(h,h+1)===">"?1:0),y=``;return{range:l,changes:{from:h,to:O,insert:y}}}}else if(p&&r=="/"&&m.name=="IncompleteCloseTag"){let O=m.parent;if(m.from==h-2&&((d=O.lastChild)===null||d===void 0?void 0:d.name)!="CloseTag"&&(b=sg(a.doc,O,h))&&!oj.has(b)){let y=h+(a.doc.sliceString(h,h+1)===">"?1:0),v=`${b}>`;return{range:tt.cursor(h+v.length,-1),changes:{from:h,to:y,insert:v}}}}return{range:l}});return s.changes.empty?!1:(e.dispatch([o,a.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),tJ=LP({commentTokens:{block:{open:""}}}),nJ=new vn,rJ=gDe.configure({props:[Ig.add(e=>!e.is("Block")||e.is("Document")||tI(e)!=null?void 0:(t,n)=>({from:n.doc.lineAt(t.from).to,to:t.to})),nJ.add(tI),aO.add({Document:()=>null}),zf.add({Document:tJ})]});function tI(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?+t[1]:void 0}function UPe(e,t){let n=e;for(;;){let r=n.nextSibling,i;if(!r||(i=tI(r.type))!=null&&i<=t)break;n=r}return n.to}const jPe=DZ.of((e,t,n)=>{for(let r=xr(e).resolveInner(n,-1);r&&!(r.fromn)return{from:n,to:o}}return null});function o3(e){return new zs(tJ,e,[jPe],"markdown")}const zPe=o3(rJ),VPe=rJ.configure([CDe,_De,ADe,RDe,{props:[Ig.add({Table:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}]),iJ=o3(VPe);function HPe(e,t){return n=>{if(n&&e){let r=null;if(n=/\S*/.exec(n)[0],typeof e=="function"?r=e(n):r=ST.matchLanguageName(e,n,!0),r instanceof ST)return r.support?r.support.language.parser:Hy.getSkippingParser(r.load());if(r)return r.parser}return t?t.parser:null}}class tE{constructor(t,n,r,i,o,a,s){this.node=t,this.from=n,this.to=r,this.spaceBefore=i,this.spaceAfter=o,this.type=a,this.item=s}blank(t,n=!0){let r=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(t!=null){for(;r.length0;i--)r+=" ";return r+(n?this.spaceAfter:"")}}marker(t,n){let r=this.node.name=="OrderedList"?String(+aJ(this.item,t)[2]+n):"";return this.spaceBefore+r+this.type+this.spaceAfter}}function oJ(e,t){let n=[];for(let i=e;i&&i.name!="Document";i=i.parent)(i.name=="ListItem"||i.name=="Blockquote"||i.name=="FencedCode")&&n.push(i);let r=[];for(let i=n.length-1;i>=0;i--){let o=n[i],a,s=t.lineAt(o.from),l=o.from-s.from;if(o.name=="FencedCode")r.push(new tE(o,l,l,"","","",null));else if(o.name=="Blockquote"&&(a=/^ *>( ?)/.exec(s.text.slice(l))))r.push(new tE(o,l,l+a[0].length,"",a[1],">",null));else if(o.name=="ListItem"&&o.parent.name=="OrderedList"&&(a=/^( *)\d+([.)])( *)/.exec(s.text.slice(l)))){let u=a[3],c=a[0].length;u.length>=4&&(u=u.slice(0,u.length-4),c-=4),r.push(new tE(o.parent,l,l+c,a[1],u,a[2],o))}else if(o.name=="ListItem"&&o.parent.name=="BulletList"&&(a=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(s.text.slice(l)))){let u=a[4],c=a[0].length;u.length>4&&(u=u.slice(0,u.length-4),c-=4);let d=a[2];a[3]&&(d+=a[3].replace(/[xX]/," ")),r.push(new tE(o.parent,l,l+c,a[1],u,d,o))}}return r}function aJ(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function $A(e,t,n,r=0){for(let i=-1,o=e;;){if(o.name=="ListItem"){let s=aJ(o,t),l=+s[2];if(i>=0){if(l!=i+1)return;n.push({from:o.from+s[1].length,to:o.from+s[0].length,insert:String(i+2+r)})}i=l}let a=o.nextSibling;if(!a)break;o=a}}function a3(e,t){let n=/^[ \t]*/.exec(e)[0].length;if(!n||t.facet(oO)!=" ")return e;let r=Dl(e,4,n),i="";for(let o=r;o>0;)o>=4?(i+=" ",o-=4):(i+=" ",o--);return i+e.slice(n)}const WPe=({state:e,dispatch:t})=>{let n=xr(e),{doc:r}=e,i=null,o=e.changeByRange(a=>{if(!a.empty||!iJ.isActiveAt(e,a.from))return i={range:a};let s=a.from,l=r.lineAt(s),u=oJ(n.resolveInner(s,-1),r);for(;u.length&&u[u.length-1].from>s-l.from;)u.pop();if(!u.length)return i={range:a};let c=u[u.length-1];if(c.to-c.spaceAfter.length>s-l.from)return i={range:a};let d=s>=c.to-c.spaceAfter.length&&!/\S/.test(l.text.slice(c.to));if(c.item&&d){let O=c.node.firstChild,y=c.node.getChild("ListItem","ListItem");if(O.to>=s||y&&y.to0&&!/[^\s>]/.test(r.lineAt(l.from-1).text)){let v=u.length>1?u[u.length-2]:null,S,k="";v&&v.item?(S=l.from+v.from,k=v.marker(r,1)):S=l.from+(v?v.to:0);let C=[{from:S,to:s,insert:k}];return c.node.name=="OrderedList"&&$A(c.item,r,C,-2),v&&v.node.name=="OrderedList"&&$A(v.item,r,C),{range:tt.cursor(S+k.length),changes:C}}else{let v=sj(u,e,l);return{range:tt.cursor(s+v.length+1),changes:{from:l.from,insert:v+e.lineBreak}}}}if(c.node.name=="Blockquote"&&d&&l.from){let O=r.lineAt(l.from-1),y=/>\s*$/.exec(O.text);if(y&&y.index==c.from){let v=e.changes([{from:O.from+y.index,to:O.to},{from:l.from+c.from,to:l.to}]);return{range:a.map(v),changes:v}}}let p=[];c.node.name=="OrderedList"&&$A(c.item,r,p);let h=c.item&&c.item.from]*/.exec(l.text)[0].length>=c.to)for(let O=0,y=u.length-1;O<=y;O++)m+=O==y&&!h?u[O].marker(r,1):u[O].blank(Ol.from&&/\s/.test(l.text.charAt(b-l.from-1));)b--;return m=a3(m,e),QPe(c.node,e.doc)&&(m=sj(u,e,l)+e.lineBreak+m),p.push({from:b,to:s,insert:e.lineBreak+m}),{range:tt.cursor(b+m.length+1),changes:p}});return i?!1:(t(e.update(o,{scrollIntoView:!0,userEvent:"input"})),!0)};function aj(e){return e.name=="QuoteMark"||e.name=="ListMark"}function QPe(e,t){if(e.name!="OrderedList"&&e.name!="BulletList")return!1;let n=e.firstChild,r=e.getChild("ListItem","ListItem");if(!r)return!1;let i=t.lineAt(n.to),o=t.lineAt(r.from),a=/^[\s>]*$/.test(i.text);return i.number+(a?0:1){let n=xr(e),r=null,i=e.changeByRange(o=>{let a=o.from,{doc:s}=e;if(o.empty&&iJ.isActiveAt(e,o.from)){let l=s.lineAt(a),u=oJ(YPe(n,a),s);if(u.length){let c=u[u.length-1],d=c.to-c.spaceAfter.length+(c.spaceAfter?1:0);if(a-l.from>d&&!/\S/.test(l.text.slice(d,a-l.from)))return{range:tt.cursor(l.from+d),changes:{from:l.from+d,to:a}};if(a-l.from==d&&(!c.item||l.from<=c.item.from||!/\S/.test(l.text.slice(0,c.to)))){let p=l.from+c.from;if(c.item&&c.node.from(()=>{var r={646:(s,l,u)=>{Object.defineProperty(l,"__esModule",{value:!0});const{proto3:c,StringValue:d,Timestamp:p}=u(532),h=c.makeEnum("yorkie.v1.ValueType",[{no:0,name:"VALUE_TYPE_NULL",localName:"NULL"},{no:1,name:"VALUE_TYPE_BOOLEAN",localName:"BOOLEAN"},{no:2,name:"VALUE_TYPE_INTEGER",localName:"INTEGER"},{no:3,name:"VALUE_TYPE_LONG",localName:"LONG"},{no:4,name:"VALUE_TYPE_DOUBLE",localName:"DOUBLE"},{no:5,name:"VALUE_TYPE_STRING",localName:"STRING"},{no:6,name:"VALUE_TYPE_BYTES",localName:"BYTES"},{no:7,name:"VALUE_TYPE_DATE",localName:"DATE"},{no:8,name:"VALUE_TYPE_JSON_OBJECT",localName:"JSON_OBJECT"},{no:9,name:"VALUE_TYPE_JSON_ARRAY",localName:"JSON_ARRAY"},{no:10,name:"VALUE_TYPE_TEXT",localName:"TEXT"},{no:11,name:"VALUE_TYPE_INTEGER_CNT",localName:"INTEGER_CNT"},{no:12,name:"VALUE_TYPE_LONG_CNT",localName:"LONG_CNT"},{no:13,name:"VALUE_TYPE_TREE",localName:"TREE"}]),m=c.makeEnum("yorkie.v1.DocEventType",[{no:0,name:"DOC_EVENT_TYPE_DOCUMENT_CHANGED",localName:"DOCUMENT_CHANGED"},{no:1,name:"DOC_EVENT_TYPE_DOCUMENT_WATCHED",localName:"DOCUMENT_WATCHED"},{no:2,name:"DOC_EVENT_TYPE_DOCUMENT_UNWATCHED",localName:"DOCUMENT_UNWATCHED"},{no:3,name:"DOC_EVENT_TYPE_DOCUMENT_BROADCAST",localName:"DOCUMENT_BROADCAST"}]),y=c.makeMessageType("yorkie.v1.Snapshot",()=>[{no:1,name:"root",kind:"message",T:Q},{no:2,name:"presences",kind:"map",K:9,V:{kind:"message",T:Be}}]),O=c.makeMessageType("yorkie.v1.ChangePack",()=>[{no:1,name:"document_key",kind:"scalar",T:9},{no:2,name:"checkpoint",kind:"message",T:re},{no:3,name:"snapshot",kind:"scalar",T:12},{no:4,name:"changes",kind:"message",T:b,repeated:!0},{no:5,name:"min_synced_ticket",kind:"message",T:J},{no:6,name:"is_removed",kind:"scalar",T:8}]),b=c.makeMessageType("yorkie.v1.Change",()=>[{no:1,name:"id",kind:"message",T:v},{no:2,name:"message",kind:"scalar",T:9},{no:3,name:"operations",kind:"message",T:S,repeated:!0},{no:4,name:"presence_change",kind:"message",T:He}]),v=c.makeMessageType("yorkie.v1.ChangeID",()=>[{no:1,name:"client_seq",kind:"scalar",T:13},{no:2,name:"server_seq",kind:"scalar",T:3,L:1},{no:3,name:"lamport",kind:"scalar",T:3,L:1},{no:4,name:"actor_id",kind:"scalar",T:12}]),S=c.makeMessageType("yorkie.v1.Operation",()=>[{no:1,name:"set",kind:"message",T:k,oneof:"body"},{no:2,name:"add",kind:"message",T:C,oneof:"body"},{no:3,name:"move",kind:"message",T:w,oneof:"body"},{no:4,name:"remove",kind:"message",T:E,oneof:"body"},{no:5,name:"edit",kind:"message",T:$,oneof:"body"},{no:6,name:"select",kind:"message",T:D,oneof:"body"},{no:7,name:"style",kind:"message",T:R,oneof:"body"},{no:8,name:"increase",kind:"message",T:B,oneof:"body"},{no:9,name:"tree_edit",kind:"message",T:U,oneof:"body"},{no:10,name:"tree_style",kind:"message",T:V,oneof:"body"}]),k=c.makeMessageType("yorkie.v1.Operation.Set",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"value",kind:"message",T:z},{no:4,name:"executed_at",kind:"message",T:J}],{localName:"Operation_Set"}),C=c.makeMessageType("yorkie.v1.Operation.Add",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"prev_created_at",kind:"message",T:J},{no:3,name:"value",kind:"message",T:z},{no:4,name:"executed_at",kind:"message",T:J}],{localName:"Operation_Add"}),w=c.makeMessageType("yorkie.v1.Operation.Move",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"prev_created_at",kind:"message",T:J},{no:3,name:"created_at",kind:"message",T:J},{no:4,name:"executed_at",kind:"message",T:J}],{localName:"Operation_Move"}),E=c.makeMessageType("yorkie.v1.Operation.Remove",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"created_at",kind:"message",T:J},{no:3,name:"executed_at",kind:"message",T:J}],{localName:"Operation_Remove"}),$=c.makeMessageType("yorkie.v1.Operation.Edit",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"from",kind:"message",T:ee},{no:3,name:"to",kind:"message",T:ee},{no:4,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:J}},{no:5,name:"content",kind:"scalar",T:9},{no:6,name:"executed_at",kind:"message",T:J},{no:7,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}}],{localName:"Operation_Edit"}),D=c.makeMessageType("yorkie.v1.Operation.Select",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"from",kind:"message",T:ee},{no:3,name:"to",kind:"message",T:ee},{no:4,name:"executed_at",kind:"message",T:J}],{localName:"Operation_Select"}),R=c.makeMessageType("yorkie.v1.Operation.Style",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"from",kind:"message",T:ee},{no:3,name:"to",kind:"message",T:ee},{no:4,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:5,name:"executed_at",kind:"message",T:J},{no:6,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:J}}],{localName:"Operation_Style"}),B=c.makeMessageType("yorkie.v1.Operation.Increase",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"value",kind:"message",T:z},{no:3,name:"executed_at",kind:"message",T:J}],{localName:"Operation_Increase"}),U=c.makeMessageType("yorkie.v1.Operation.TreeEdit",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"from",kind:"message",T:rt},{no:3,name:"to",kind:"message",T:rt},{no:4,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:J}},{no:5,name:"contents",kind:"message",T:Le,repeated:!0},{no:7,name:"split_level",kind:"scalar",T:5},{no:6,name:"executed_at",kind:"message",T:J}],{localName:"Operation_TreeEdit"}),V=c.makeMessageType("yorkie.v1.Operation.TreeStyle",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"from",kind:"message",T:rt},{no:3,name:"to",kind:"message",T:rt},{no:4,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:5,name:"executed_at",kind:"message",T:J}],{localName:"Operation_TreeStyle"}),z=c.makeMessageType("yorkie.v1.JSONElementSimple",()=>[{no:1,name:"created_at",kind:"message",T:J},{no:2,name:"moved_at",kind:"message",T:J},{no:3,name:"removed_at",kind:"message",T:J},{no:4,name:"type",kind:"enum",T:c.getEnumType(h)},{no:5,name:"value",kind:"scalar",T:12}]),Q=c.makeMessageType("yorkie.v1.JSONElement",()=>[{no:1,name:"json_object",kind:"message",T:X,oneof:"body"},{no:2,name:"json_array",kind:"message",T:Z,oneof:"body"},{no:3,name:"primitive",kind:"message",T:Y,oneof:"body"},{no:5,name:"text",kind:"message",T:q,oneof:"body"},{no:6,name:"counter",kind:"message",T:j,oneof:"body"},{no:7,name:"tree",kind:"message",T:le,oneof:"body"}]),X=c.makeMessageType("yorkie.v1.JSONElement.JSONObject",()=>[{no:1,name:"nodes",kind:"message",T:Ee,repeated:!0},{no:2,name:"created_at",kind:"message",T:J},{no:3,name:"moved_at",kind:"message",T:J},{no:4,name:"removed_at",kind:"message",T:J}],{localName:"JSONElement_JSONObject"}),Z=c.makeMessageType("yorkie.v1.JSONElement.JSONArray",()=>[{no:1,name:"nodes",kind:"message",T:G,repeated:!0},{no:2,name:"created_at",kind:"message",T:J},{no:3,name:"moved_at",kind:"message",T:J},{no:4,name:"removed_at",kind:"message",T:J}],{localName:"JSONElement_JSONArray"}),Y=c.makeMessageType("yorkie.v1.JSONElement.Primitive",()=>[{no:1,name:"type",kind:"enum",T:c.getEnumType(h)},{no:2,name:"value",kind:"scalar",T:12},{no:3,name:"created_at",kind:"message",T:J},{no:4,name:"moved_at",kind:"message",T:J},{no:5,name:"removed_at",kind:"message",T:J}],{localName:"JSONElement_Primitive"}),q=c.makeMessageType("yorkie.v1.JSONElement.Text",()=>[{no:1,name:"nodes",kind:"message",T:ge,repeated:!0},{no:2,name:"created_at",kind:"message",T:J},{no:3,name:"moved_at",kind:"message",T:J},{no:4,name:"removed_at",kind:"message",T:J}],{localName:"JSONElement_Text"}),j=c.makeMessageType("yorkie.v1.JSONElement.Counter",()=>[{no:1,name:"type",kind:"enum",T:c.getEnumType(h)},{no:2,name:"value",kind:"scalar",T:12},{no:3,name:"created_at",kind:"message",T:J},{no:4,name:"moved_at",kind:"message",T:J},{no:5,name:"removed_at",kind:"message",T:J}],{localName:"JSONElement_Counter"}),le=c.makeMessageType("yorkie.v1.JSONElement.Tree",()=>[{no:1,name:"nodes",kind:"message",T:Ne,repeated:!0},{no:2,name:"created_at",kind:"message",T:J},{no:3,name:"moved_at",kind:"message",T:J},{no:4,name:"removed_at",kind:"message",T:J}],{localName:"JSONElement_Tree"}),Ee=c.makeMessageType("yorkie.v1.RHTNode",()=>[{no:1,name:"key",kind:"scalar",T:9},{no:2,name:"element",kind:"message",T:Q}]),G=c.makeMessageType("yorkie.v1.RGANode",()=>[{no:1,name:"next",kind:"message",T:G},{no:2,name:"element",kind:"message",T:Q}]),ue=c.makeMessageType("yorkie.v1.NodeAttr",()=>[{no:1,name:"value",kind:"scalar",T:9},{no:2,name:"updated_at",kind:"message",T:J}]),ge=c.makeMessageType("yorkie.v1.TextNode",()=>[{no:1,name:"id",kind:"message",T:he},{no:2,name:"value",kind:"scalar",T:9},{no:3,name:"removed_at",kind:"message",T:J},{no:4,name:"ins_prev_id",kind:"message",T:he},{no:5,name:"attributes",kind:"map",K:9,V:{kind:"message",T:ue}}]),he=c.makeMessageType("yorkie.v1.TextNodeID",()=>[{no:1,name:"created_at",kind:"message",T:J},{no:2,name:"offset",kind:"scalar",T:5}]),Ne=c.makeMessageType("yorkie.v1.TreeNode",()=>[{no:1,name:"id",kind:"message",T:qe},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"value",kind:"scalar",T:9},{no:4,name:"removed_at",kind:"message",T:J},{no:5,name:"ins_prev_id",kind:"message",T:qe},{no:6,name:"ins_next_id",kind:"message",T:qe},{no:7,name:"depth",kind:"scalar",T:5},{no:8,name:"attributes",kind:"map",K:9,V:{kind:"message",T:ue}}]),Le=c.makeMessageType("yorkie.v1.TreeNodes",()=>[{no:1,name:"content",kind:"message",T:Ne,repeated:!0}]),qe=c.makeMessageType("yorkie.v1.TreeNodeID",()=>[{no:1,name:"created_at",kind:"message",T:J},{no:2,name:"offset",kind:"scalar",T:5}]),rt=c.makeMessageType("yorkie.v1.TreePos",()=>[{no:1,name:"parent_id",kind:"message",T:qe},{no:2,name:"left_sibling_id",kind:"message",T:qe}]),Me=c.makeMessageType("yorkie.v1.User",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"username",kind:"scalar",T:9},{no:3,name:"created_at",kind:"message",T:p}]),Qe=c.makeMessageType("yorkie.v1.Project",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"public_key",kind:"scalar",T:9},{no:4,name:"secret_key",kind:"scalar",T:9},{no:5,name:"auth_webhook_url",kind:"scalar",T:9},{no:6,name:"auth_webhook_methods",kind:"scalar",T:9,repeated:!0},{no:7,name:"client_deactivate_threshold",kind:"scalar",T:9},{no:8,name:"created_at",kind:"message",T:p},{no:9,name:"updated_at",kind:"message",T:p}]),ye=c.makeMessageType("yorkie.v1.UpdatableProjectFields",()=>[{no:1,name:"name",kind:"message",T:d},{no:2,name:"auth_webhook_url",kind:"message",T:d},{no:3,name:"auth_webhook_methods",kind:"message",T:ze},{no:4,name:"client_deactivate_threshold",kind:"message",T:d}]),ze=c.makeMessageType("yorkie.v1.UpdatableProjectFields.AuthWebhookMethods",()=>[{no:1,name:"methods",kind:"scalar",T:9,repeated:!0}],{localName:"UpdatableProjectFields_AuthWebhookMethods"}),$e=c.makeMessageType("yorkie.v1.DocumentSummary",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"snapshot",kind:"scalar",T:9},{no:4,name:"created_at",kind:"message",T:p},{no:5,name:"accessed_at",kind:"message",T:p},{no:6,name:"updated_at",kind:"message",T:p}]),He=c.makeMessageType("yorkie.v1.PresenceChange",()=>[{no:1,name:"type",kind:"enum",T:c.getEnumType(dt)},{no:2,name:"presence",kind:"message",T:Be}]),dt=c.makeEnum("yorkie.v1.PresenceChange.ChangeType",[{no:0,name:"CHANGE_TYPE_UNSPECIFIED",localName:"UNSPECIFIED"},{no:1,name:"CHANGE_TYPE_PUT",localName:"PUT"},{no:2,name:"CHANGE_TYPE_DELETE",localName:"DELETE"},{no:3,name:"CHANGE_TYPE_CLEAR",localName:"CLEAR"}]),Be=c.makeMessageType("yorkie.v1.Presence",()=>[{no:1,name:"data",kind:"map",K:9,V:{kind:"scalar",T:9}}]),re=c.makeMessageType("yorkie.v1.Checkpoint",()=>[{no:1,name:"server_seq",kind:"scalar",T:3,L:1},{no:2,name:"client_seq",kind:"scalar",T:13}]),ee=c.makeMessageType("yorkie.v1.TextNodePos",()=>[{no:1,name:"created_at",kind:"message",T:J},{no:2,name:"offset",kind:"scalar",T:5},{no:3,name:"relative_offset",kind:"scalar",T:5}]),J=c.makeMessageType("yorkie.v1.TimeTicket",()=>[{no:1,name:"lamport",kind:"scalar",T:3,L:1},{no:2,name:"delimiter",kind:"scalar",T:13},{no:3,name:"actor_id",kind:"scalar",T:12}]),_e=c.makeMessageType("yorkie.v1.DocEventBody",()=>[{no:1,name:"topic",kind:"scalar",T:9},{no:2,name:"payload",kind:"scalar",T:12}]),Pe=c.makeMessageType("yorkie.v1.DocEvent",()=>[{no:1,name:"type",kind:"enum",T:c.getEnumType(m)},{no:2,name:"publisher",kind:"scalar",T:9},{no:3,name:"body",kind:"message",T:_e}]);l.ValueType=h,l.DocEventType=m,l.Snapshot=y,l.ChangePack=O,l.Change=b,l.ChangeID=v,l.Operation=S,l.Operation_Set=k,l.Operation_Add=C,l.Operation_Move=w,l.Operation_Remove=E,l.Operation_Edit=$,l.Operation_Select=D,l.Operation_Style=R,l.Operation_Increase=B,l.Operation_TreeEdit=U,l.Operation_TreeStyle=V,l.JSONElementSimple=z,l.JSONElement=Q,l.JSONElement_JSONObject=X,l.JSONElement_JSONArray=Z,l.JSONElement_Primitive=Y,l.JSONElement_Text=q,l.JSONElement_Counter=j,l.JSONElement_Tree=le,l.RHTNode=Ee,l.RGANode=G,l.NodeAttr=ue,l.TextNode=ge,l.TextNodeID=he,l.TreeNode=Ne,l.TreeNodes=Le,l.TreeNodeID=qe,l.TreePos=rt,l.User=Me,l.Project=Qe,l.UpdatableProjectFields=ye,l.UpdatableProjectFields_AuthWebhookMethods=ze,l.DocumentSummary=$e,l.PresenceChange=He,l.PresenceChange_ChangeType=dt,l.Presence=Be,l.Checkpoint=re,l.TextNodePos=ee,l.TimeTicket=J,l.DocEventBody=_e,l.DocEvent=Pe},295:(s,l,u)=>{const{ActivateClientRequest:c,ActivateClientResponse:d,AttachDocumentRequest:p,AttachDocumentResponse:h,BroadcastRequest:m,BroadcastResponse:y,DeactivateClientRequest:O,DeactivateClientResponse:b,DetachDocumentRequest:v,DetachDocumentResponse:S,PushPullChangesRequest:k,PushPullChangesResponse:C,RemoveDocumentRequest:w,RemoveDocumentResponse:E,WatchDocumentRequest:$,WatchDocumentResponse:D}=u(176),{MethodKind:R}=u(532),B={typeName:"yorkie.v1.YorkieService",methods:{activateClient:{name:"ActivateClient",I:c,O:d,kind:R.Unary},deactivateClient:{name:"DeactivateClient",I:O,O:b,kind:R.Unary},attachDocument:{name:"AttachDocument",I:p,O:h,kind:R.Unary},detachDocument:{name:"DetachDocument",I:v,O:S,kind:R.Unary},removeDocument:{name:"RemoveDocument",I:w,O:E,kind:R.Unary},pushPullChanges:{name:"PushPullChanges",I:k,O:C,kind:R.Unary},watchDocument:{name:"WatchDocument",I:$,O:D,kind:R.ServerStreaming},broadcast:{name:"Broadcast",I:m,O:y,kind:R.Unary}}};l.V=B},176:(s,l,u)=>{Object.defineProperty(l,"__esModule",{value:!0});const{proto3:c}=u(532),{ChangePack:d,DocEvent:p}=u(646),h=c.makeMessageType("yorkie.v1.ActivateClientRequest",()=>[{no:1,name:"client_key",kind:"scalar",T:9}]),m=c.makeMessageType("yorkie.v1.ActivateClientResponse",()=>[{no:1,name:"client_id",kind:"scalar",T:9}]),y=c.makeMessageType("yorkie.v1.DeactivateClientRequest",()=>[{no:2,name:"client_key",kind:"scalar",T:9},{no:1,name:"client_id",kind:"scalar",T:9}]),O=c.makeMessageType("yorkie.v1.DeactivateClientResponse",[]),b=c.makeMessageType("yorkie.v1.AttachDocumentRequest",()=>[{no:3,name:"client_key",kind:"scalar",T:9},{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"change_pack",kind:"message",T:d}]),v=c.makeMessageType("yorkie.v1.AttachDocumentResponse",()=>[{no:1,name:"document_id",kind:"scalar",T:9},{no:2,name:"change_pack",kind:"message",T:d}]),S=c.makeMessageType("yorkie.v1.DetachDocumentRequest",()=>[{no:5,name:"client_key",kind:"scalar",T:9},{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"change_pack",kind:"message",T:d},{no:4,name:"remove_if_not_attached",kind:"scalar",T:8}]),k=c.makeMessageType("yorkie.v1.DetachDocumentResponse",()=>[{no:2,name:"change_pack",kind:"message",T:d}]),C=c.makeMessageType("yorkie.v1.WatchDocumentRequest",()=>[{no:4,name:"client_key",kind:"scalar",T:9},{no:1,name:"client_id",kind:"scalar",T:9},{no:3,name:"document_key",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9}]),w=c.makeMessageType("yorkie.v1.WatchDocumentResponse",()=>[{no:1,name:"initialization",kind:"message",T:E,oneof:"body"},{no:2,name:"event",kind:"message",T:p,oneof:"body"}]),E=c.makeMessageType("yorkie.v1.WatchDocumentResponse.Initialization",()=>[{no:1,name:"client_ids",kind:"scalar",T:9,repeated:!0}],{localName:"WatchDocumentResponse_Initialization"}),$=c.makeMessageType("yorkie.v1.RemoveDocumentRequest",()=>[{no:4,name:"client_key",kind:"scalar",T:9},{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"change_pack",kind:"message",T:d}]),D=c.makeMessageType("yorkie.v1.RemoveDocumentResponse",()=>[{no:1,name:"change_pack",kind:"message",T:d}]),R=c.makeMessageType("yorkie.v1.PushPullChangesRequest",()=>[{no:5,name:"client_key",kind:"scalar",T:9},{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"change_pack",kind:"message",T:d},{no:4,name:"push_only",kind:"scalar",T:8}]),B=c.makeMessageType("yorkie.v1.PushPullChangesResponse",()=>[{no:1,name:"change_pack",kind:"message",T:d}]),U=c.makeMessageType("yorkie.v1.BroadcastRequest",()=>[{no:6,name:"client_key",kind:"scalar",T:9},{no:1,name:"client_id",kind:"scalar",T:9},{no:5,name:"document_key",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"topic",kind:"scalar",T:9},{no:4,name:"payload",kind:"scalar",T:12}]),V=c.makeMessageType("yorkie.v1.BroadcastResponse",[]);l.ActivateClientRequest=h,l.ActivateClientResponse=m,l.DeactivateClientRequest=y,l.DeactivateClientResponse=O,l.AttachDocumentRequest=b,l.AttachDocumentResponse=v,l.DetachDocumentRequest=S,l.DetachDocumentResponse=k,l.WatchDocumentRequest=C,l.WatchDocumentResponse=w,l.WatchDocumentResponse_Initialization=E,l.RemoveDocumentRequest=$,l.RemoveDocumentResponse=D,l.PushPullChangesRequest=R,l.PushPullChangesResponse=B,l.BroadcastRequest=U,l.BroadcastResponse=V},79:(s,l,u)=>{u.d(l,{Lt:()=>m,TD:()=>h,oP:()=>y});var c=u(818),d=u(120),p=u(210),h;(function(O){O[O.Varint=0]="Varint",O[O.Bit64=1]="Bit64",O[O.LengthDelimited=2]="LengthDelimited",O[O.StartGroup=3]="StartGroup",O[O.EndGroup=4]="EndGroup",O[O.Bit32=5]="Bit32"})(h||(h={}));class m{constructor(b){this.stack=[],this.textEncoder=b??new TextEncoder,this.chunks=[],this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let b=0;for(let k=0;k>>0)}raw(b){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(b),this}uint32(b){for((0,d.fp)(b);b>127;)this.buf.push(b&127|128),b=b>>>7;return this.buf.push(b),this}int32(b){return(0,d.ug)(b),(0,c.fC)(b,this.buf),this}bool(b){return this.buf.push(b?1:0),this}bytes(b){return this.uint32(b.byteLength),this.raw(b)}string(b){let v=this.textEncoder.encode(b);return this.uint32(v.byteLength),this.raw(v)}float(b){(0,d.E_)(b);let v=new Uint8Array(4);return new DataView(v.buffer).setFloat32(0,b,!0),this.raw(v)}double(b){let v=new Uint8Array(8);return new DataView(v.buffer).setFloat64(0,b,!0),this.raw(v)}fixed32(b){(0,d.fp)(b);let v=new Uint8Array(4);return new DataView(v.buffer).setUint32(0,b,!0),this.raw(v)}sfixed32(b){(0,d.ug)(b);let v=new Uint8Array(4);return new DataView(v.buffer).setInt32(0,b,!0),this.raw(v)}sint32(b){return(0,d.ug)(b),b=(b<<1^b>>31)>>>0,(0,c.fC)(b,this.buf),this}sfixed64(b){let v=new Uint8Array(8),S=new DataView(v.buffer),k=p.q.enc(b);return S.setInt32(0,k.lo,!0),S.setInt32(4,k.hi,!0),this.raw(v)}fixed64(b){let v=new Uint8Array(8),S=new DataView(v.buffer),k=p.q.uEnc(b);return S.setInt32(0,k.lo,!0),S.setInt32(4,k.hi,!0),this.raw(v)}int64(b){let v=p.q.enc(b);return(0,c._y)(v.lo,v.hi,this.buf),this}sint64(b){let v=p.q.enc(b),S=v.hi>>31,k=v.lo<<1^S,C=(v.hi<<1|v.lo>>>31)^S;return(0,c._y)(k,C,this.buf),this}uint64(b){let v=p.q.uEnc(b);return(0,c._y)(v.lo,v.hi,this.buf),this}}class y{constructor(b,v){this.varint64=c.sg,this.uint32=c.jI,this.buf=b,this.len=b.length,this.pos=0,this.view=new DataView(b.buffer,b.byteOffset,b.byteLength),this.textDecoder=v??new TextDecoder}tag(){let b=this.uint32(),v=b>>>3,S=b&7;if(v<=0||S<0||S>5)throw new Error("illegal tag: field no "+v+" wire type "+S);return[v,S]}skip(b){let v=this.pos;switch(b){case h.Varint:for(;this.buf[this.pos++]&128;);break;case h.Bit64:this.pos+=4;case h.Bit32:this.pos+=4;break;case h.LengthDelimited:let S=this.uint32();this.pos+=S;break;case h.StartGroup:let k;for(;(k=this.tag()[1])!==h.EndGroup;)this.skip(k);break;default:throw new Error("cant skip wire type "+b)}return this.assertBounds(),this.buf.subarray(v,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let b=this.uint32();return b>>>1^-(b&1)}int64(){return p.q.dec(...this.varint64())}uint64(){return p.q.uDec(...this.varint64())}sint64(){let[b,v]=this.varint64(),S=-(b&1);return b=(b>>>1|(v&1)<<31)^S,v=v>>>1^S,p.q.dec(b,v)}bool(){let[b,v]=this.varint64();return b!==0||v!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return p.q.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return p.q.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let b=this.uint32(),v=this.pos;return this.pos+=b,this.assertBounds(),this.buf.subarray(v,v+b)}string(){return this.textDecoder.decode(this.bytes())}}},465:(s,l,u)=>{u.d(l,{p:()=>d,w:()=>c});var c;(function(p){p[p.DOUBLE=1]="DOUBLE",p[p.FLOAT=2]="FLOAT",p[p.INT64=3]="INT64",p[p.UINT64=4]="UINT64",p[p.INT32=5]="INT32",p[p.FIXED64=6]="FIXED64",p[p.FIXED32=7]="FIXED32",p[p.BOOL=8]="BOOL",p[p.STRING=9]="STRING",p[p.BYTES=12]="BYTES",p[p.UINT32=13]="UINT32",p[p.SFIXED32=15]="SFIXED32",p[p.SFIXED64=16]="SFIXED64",p[p.SINT32=17]="SINT32",p[p.SINT64=18]="SINT64"})(c||(c={}));var d;(function(p){p[p.BIGINT=0]="BIGINT",p[p.STRING=1]="STRING"})(d||(d={}))},733:(s,l,u)=>{u.d(l,{I:()=>p});var c=u(561),d=u(850);class p extends c.v{constructor(m){super(),this.typeUrl="",this.value=new Uint8Array(0),d.w.util.initPartial(m,this)}toJson(m){var y;if(this.typeUrl==="")return{};const O=this.typeUrlToName(this.typeUrl),b=(y=m==null?void 0:m.typeRegistry)===null||y===void 0?void 0:y.findMessage(O);if(!b)throw new Error(`cannot encode message google.protobuf.Any to JSON: "${this.typeUrl}" is not in the type registry`);let S=b.fromBinary(this.value).toJson(m);return(O.startsWith("google.protobuf.")||S===null||Array.isArray(S)||typeof S!="object")&&(S={value:S}),S["@type"]=this.typeUrl,S}fromJson(m,y){var O;if(m===null||Array.isArray(m)||typeof m!="object")throw new Error(`cannot decode message google.protobuf.Any from JSON: expected object but got ${m===null?"null":Array.isArray(m)?"array":typeof m}`);if(Object.keys(m).length==0)return this;const b=m["@type"];if(typeof b!="string"||b=="")throw new Error('cannot decode message google.protobuf.Any from JSON: "@type" is empty');const v=this.typeUrlToName(b),S=(O=y==null?void 0:y.typeRegistry)===null||O===void 0?void 0:O.findMessage(v);if(!S)throw new Error(`cannot decode message google.protobuf.Any from JSON: ${b} is not in the type registry`);let k;if(v.startsWith("google.protobuf.")&&Object.prototype.hasOwnProperty.call(m,"value"))k=S.fromJson(m.value,y);else{const C=Object.assign({},m);delete C["@type"],k=S.fromJson(C,y)}return this.packFrom(k),this}packFrom(m){this.value=m.toBinary(),this.typeUrl=this.typeNameToUrl(m.getType().typeName)}unpackTo(m){return this.is(m.getType())?(m.fromBinary(this.value),!0):!1}unpack(m){if(this.typeUrl==="")return;const y=m.findMessage(this.typeUrlToName(this.typeUrl));if(y)return y.fromBinary(this.value)}is(m){if(this.typeUrl==="")return!1;const y=this.typeUrlToName(this.typeUrl);let O="";return typeof m=="string"?O=m:O=m.typeName,y===O}typeNameToUrl(m){return`type.googleapis.com/${m}`}typeUrlToName(m){if(!m.length)throw new Error(`invalid type url: ${m}`);const y=m.lastIndexOf("/"),O=y>=0?m.substring(y+1):m;if(!O.length)throw new Error(`invalid type url: ${m}`);return O}static pack(m){const y=new p;return y.packFrom(m),y}static fromBinary(m,y){return new p().fromBinary(m,y)}static fromJson(m,y){return new p().fromJson(m,y)}static fromJsonString(m,y){return new p().fromJsonString(m,y)}static equals(m,y){return d.w.util.equals(p,m,y)}}p.runtime=d.w,p.typeName="google.protobuf.Any",p.fields=d.w.util.newFieldList(()=>[{no:1,name:"type_url",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:12}])},818:(s,l,u)=>{u.d(l,{Ak:()=>m,CZ:()=>h,Fd:()=>y,_y:()=>d,fC:()=>k,jI:()=>C,sg:()=>c});function c(){let w=0,E=0;for(let D=0;D<28;D+=7){let R=this.buf[this.pos++];if(w|=(R&127)<>4,!($&128))return this.assertBounds(),[w,E];for(let D=3;D<=31;D+=7){let R=this.buf[this.pos++];if(E|=(R&127)<>>B,V=!(!(U>>>7)&&E==0),z=(V?U|128:U)&255;if($.push(z),!V)return}const D=w>>>28&15|(E&7)<<4,R=!!(E>>3);if($.push((R?D|128:D)&255),!!R){for(let B=3;B<31;B=B+7){const U=E>>>B,V=!!(U>>>7),z=(V?U|128:U)&255;if($.push(z),!V)return}$.push(E>>>31&1)}}const p=4294967296;function h(w){const E=w[0]==="-";E&&(w=w.slice(1));const $=1e6;let D=0,R=0;function B(U,V){const z=Number(w.slice(U,V));R*=$,D=D*$+z,D>=p&&(R=R+(D/p|0),D=D%p)}return B(-24,-18),B(-18,-12),B(-12,-6),B(-6),E?v(D,R):b(D,R)}function m(w,E){let $=b(w,E);const D=$.hi&2147483648;D&&($=v($.lo,$.hi));const R=y($.lo,$.hi);return D?"-"+R:R}function y(w,E){if({lo:w,hi:E}=O(w,E),E<=2097151)return String(p*E+w);const $=w&16777215,D=(w>>>24|E<<8)&16777215,R=E>>16&65535;let B=$+D*6777216+R*6710656,U=D+R*8147497,V=R*2;const z=1e7;return B>=z&&(U+=Math.floor(B/z),B%=z),U>=z&&(V+=Math.floor(U/z),U%=z),V.toString()+S(U)+S(B)}function O(w,E){return{lo:w>>>0,hi:E>>>0}}function b(w,E){return{lo:w|0,hi:E|0}}function v(w,E){return E=~E,w?w=~w+1:E+=1,b(w,E)}const S=w=>{const E=String(w);return"0000000".slice(E.length)+E};function k(w,E){if(w>=0){for(;w>127;)E.push(w&127|128),w=w>>>7;E.push(w)}else{for(let $=0;$<9;$++)E.push(w&127|128),w=w>>7;E.push(1)}}function C(){let w=this.buf[this.pos++],E=w&127;if(!(w&128))return this.assertBounds(),E;if(w=this.buf[this.pos++],E|=(w&127)<<7,!(w&128))return this.assertBounds(),E;if(w=this.buf[this.pos++],E|=(w&127)<<14,!(w&128))return this.assertBounds(),E;if(w=this.buf[this.pos++],E|=(w&127)<<21,!(w&128))return this.assertBounds(),E;w=this.buf[this.pos++],E|=(w&15)<<28;for(let $=5;w&128&&$<10;$++)w=this.buf[this.pos++];if(w&128)throw new Error("invalid varint");return this.assertBounds(),E>>>0}},532:(s,l,u)=>{u.r(l),u.d(l,{Any:()=>Lp.I,Api:()=>$a,BinaryReader:()=>U.oP,BinaryWriter:()=>U.Lt,BoolValue:()=>Vo,BytesValue:()=>Kt,CodeGeneratorRequest:()=>Qo,CodeGeneratorResponse:()=>ui,CodeGeneratorResponse_Feature:()=>Wl,CodeGeneratorResponse_File:()=>To,DescriptorProto:()=>he,DescriptorProto_ExtensionRange:()=>Ne,DescriptorProto_ReservedRange:()=>Le,DoubleValue:()=>zo,Duration:()=>yr,Edition:()=>G,Empty:()=>Es,Enum:()=>Yn,EnumDescriptorProto:()=>He,EnumDescriptorProto_EnumReservedRange:()=>dt,EnumOptions:()=>pt,EnumValue:()=>Ma,EnumValueDescriptorProto:()=>Be,EnumValueOptions:()=>kt,ExtensionRangeOptions:()=>qe,ExtensionRangeOptions_Declaration:()=>Me,ExtensionRangeOptions_VerificationState:()=>rt,FeatureSet:()=>Dt,FeatureSetDefaults:()=>fe,FeatureSetDefaults_FeatureSetEditionDefault:()=>lt,FeatureSet_EnumType:()=>cn,FeatureSet_FieldPresence:()=>rn,FeatureSet_JsonFormat:()=>Ae,FeatureSet_MessageEncoding:()=>ve,FeatureSet_RepeatedFieldEncoding:()=>fn,FeatureSet_Utf8Validation:()=>zn,Field:()=>Yo,FieldDescriptorProto:()=>Qe,FieldDescriptorProto_Label:()=>ze,FieldDescriptorProto_Type:()=>ye,FieldMask:()=>Ss,FieldOptions:()=>Ie,FieldOptions_CType:()=>ie,FieldOptions_EditionDefault:()=>Se,FieldOptions_JSType:()=>de,FieldOptions_OptionRetention:()=>ce,FieldOptions_OptionTargetType:()=>Oe,Field_Cardinality:()=>Ic,Field_Kind:()=>Rc,FileDescriptorProto:()=>ge,FileDescriptorSet:()=>ue,FileOptions:()=>J,FileOptions_OptimizeMode:()=>_e,FloatValue:()=>So,GeneratedCodeInfo:()=>$t,GeneratedCodeInfo_Annotation:()=>It,GeneratedCodeInfo_Annotation_Semantic:()=>xt,Int32Value:()=>xr,Int64Value:()=>Bi,ListValue:()=>no,LongType:()=>p.p,Message:()=>le.v,MessageOptions:()=>Pe,Method:()=>ua,MethodDescriptorProto:()=>ee,MethodIdempotency:()=>Ee.w,MethodKind:()=>Ee.t,MethodOptions:()=>vt,MethodOptions_IdempotencyLevel:()=>Ye,Mixin:()=>Fa,NullValue:()=>to,OneofDescriptorProto:()=>$e,OneofOptions:()=>nt,Option:()=>ki,ScalarType:()=>p.w,ServiceDescriptorProto:()=>re,ServiceOptions:()=>Ke,SourceCodeInfo:()=>at,SourceCodeInfo_Location:()=>Mt,SourceContext:()=>sa,StringValue:()=>Ui,Struct:()=>Eo,Syntax:()=>la,Timestamp:()=>aa,Type:()=>wi,UInt32Value:()=>$r,UInt64Value:()=>mr,UninterpretedOption:()=>it,UninterpretedOption_NamePart:()=>Et,Value:()=>Mr,Version:()=>Wo,WireType:()=>U.TD,codegenInfo:()=>j,createDescriptorSet:()=>Wt,createRegistry:()=>kO,createRegistryFromDescriptors:()=>tf,proto2:()=>E,proto3:()=>c.w,protoBase64:()=>B.W,protoDelimited:()=>X,protoDouble:()=>D,protoInt64:()=>R.q,toPlainMessage:()=>$p});var c=u(850),d=u(493),p=u(465),h=u(744);function m(){return Object.assign(Object.assign({},(0,h.gY)()),{writeMessage(F,x,P){const se=F.getType();let be;try{for(be of se.fields.byNumber()){let De,je=be.repeated,ct=be.localName;if(be.oneof){const Ze=F[be.oneof.localName];if(Ze.case!==ct)continue;De=Ze.value}else if(De=F[ct],De===void 0&&!be.oneof&&!be.opt)throw new Error(`cannot encode field ${se.typeName}.${be.name} to binary: required field not set`);switch(be.kind){case"scalar":case"enum":let Ze=be.kind=="enum"?p.w.INT32:be.T;if(je)if(be.packed)(0,h.Jj)(x,Ze,be.no,De);else for(const Ot of De)(0,h.NN)(x,Ze,be.no,Ot,!0);else De!==void 0&&(0,h.NN)(x,Ze,be.no,De,!0);break;case"message":if(je)for(const Ot of De)(0,h.oQ)(x,P,be,Ot);else(0,h.oQ)(x,P,be,De);break;case"map":for(const[Ot,Pt]of Object.entries(De))(0,h.gQ)(x,P,be,Ot,Pt);break}}}catch(De){let je=be?`cannot encode field ${se.typeName}.${be==null?void 0:be.name} to binary`:`cannot encode message ${se.typeName} to binary`,ct=De instanceof Error?De.message:String(De);throw new Error(je+(ct.length>0?`: ${ct}`:""))}return P.writeUnknownFields&&this.writeUnknownFields(F,x),x}})}var y=u(433),O=u(501),b=u(215),v=u(504),S=u(432),k=u(120),C=u(814);function w(){return(0,C.b)((F,x)=>function(se,be,De){if(se.kind=="map"){const je={};switch(se.V.kind){case"scalar":for(const[Ze,Ot]of Object.entries(be)){const Pt=x(se.V.T,Ot,!0);(0,k.hu)(Pt!==void 0),je[Ze.toString()]=Pt}break;case"message":for(const[Ze,Ot]of Object.entries(be))je[Ze.toString()]=Ot.toJson(De);break;case"enum":const ct=se.V.T;for(const[Ze,Ot]of Object.entries(be)){(0,k.hu)(Ot===void 0||typeof Ot=="number");const Pt=F(ct,Ot,!0,De.enumAsInteger);(0,k.hu)(Pt!==void 0),je[Ze.toString()]=Pt}break}return De.emitDefaultValues||Object.keys(je).length>0?je:void 0}else if(se.repeated){const je=[];switch(se.kind){case"scalar":for(let ct=0;ct0?je:void 0}else{if(be===void 0){if(!se.oneof&&!se.opt)throw"required field not set";return}switch(se.kind){case"scalar":return x(se.T,be,!0);case"enum":return F(se.T,be,!0,De.enumAsInteger);case"message":return(0,S.E)(se.T,be).toJson(De)}}})}const E=(0,d.F)("proto2",w(),m(),Object.assign(Object.assign({},(0,y.f)()),{newFieldList(F){return new O.i(F,$)},initFields(F){for(const x of F.getType().fields.byMember()){const P=x.localName,se=F;if(x.repeated){se[P]=[];continue}switch(x.kind){case"oneof":se[P]={case:void 0};break;case"map":se[P]={};break}}}}));function $(F){var x,P,se,be,De;const je=[];let ct;for(const Ze of typeof F=="function"?F():F){const Ot=Ze;if(Ot.localName=(0,v.Rz)(Ze.name,Ze.oneof!==void 0),Ot.jsonName=(x=Ze.jsonName)!==null&&x!==void 0?x:(0,v.x1)(Ze.name),Ot.repeated=(P=Ze.repeated)!==null&&P!==void 0?P:!1,Ze.kind=="scalar"&&(Ot.L=(se=Ze.L)!==null&&se!==void 0?se:p.p.BIGINT),Ze.oneof!==void 0){const Pt=typeof Ze.oneof=="string"?Ze.oneof:Ze.oneof.name;(!ct||ct.name!=Pt)&&(ct=new b.o(Pt)),Ot.oneof=ct,ct.addField(Ot)}Ze.kind=="message"&&(Ot.delimited=(be=Ze.delimited)!==null&&be!==void 0?be:!1),Ot.packed=(De=Ze.packed)!==null&&De!==void 0?De:!1,je.push(Ot)}return je}const D={NaN:Number.NaN,POSITIVE_INFINITY:Number.POSITIVE_INFINITY,NEGATIVE_INFINITY:Number.NEGATIVE_INFINITY};var R=u(210),B=u(236),U=u(79),V=function(F){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var x=F[Symbol.asyncIterator],P;return x?x.call(F):(F=typeof __values=="function"?__values(F):F[Symbol.iterator](),P={},se("next"),se("throw"),se("return"),P[Symbol.asyncIterator]=function(){return this},P);function se(De){P[De]=F[De]&&function(je){return new Promise(function(ct,Ze){je=F[De](je),be(ct,Ze,je.done,je.value)})}}function be(De,je,ct,Ze){Promise.resolve(Ze).then(function(Ot){De({value:Ot,done:ct})},je)}},z=function(F){return this instanceof z?(this.v=F,this):new z(F)},Q=function(F,x,P){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var se=P.apply(F,x||[]),be,De=[];return be={},ct("next"),ct("throw"),ct("return",je),be[Symbol.asyncIterator]=function(){return this},be;function je(Sn){return function(ji){return Promise.resolve(ji).then(Sn,bn)}}function ct(Sn,ji){se[Sn]&&(be[Sn]=function(Ba){return new Promise(function(Nx,rf){De.push([Sn,Ba,Nx,rf])>1||Ze(Sn,Ba)})},ji&&(be[Sn]=ji(be[Sn])))}function Ze(Sn,ji){try{Ot(se[Sn](ji))}catch(Ba){Or(De[0][3],Ba)}}function Ot(Sn){Sn.value instanceof z?Promise.resolve(Sn.value.v).then(Pt,bn):Or(De[0][2],Sn)}function Pt(Sn){Ze("next",Sn)}function bn(Sn){Ze("throw",Sn)}function Or(Sn,ji){Sn(ji),De.shift(),De.length&&Ze(De[0][0],De[0][1])}};const X={enc(F,x){const P=(0,h.gY)().makeWriteOptions(x);return P.writerFactory().bytes(F.toBinary(P)).finish()},dec(F,x,P){const se=(0,h.gY)().makeReadOptions(P);return F.fromBinary(se.readerFactory(x).bytes(),se)},decStream(F,x){return Q(this,arguments,function*(){var se,be,De,je;function ct(Or,Sn){const ji=new Uint8Array(Or.byteLength+Sn.byteLength);return ji.set(Or),ji.set(Sn,Or.length),ji}let Ze=new Uint8Array(0);try{for(var Ot=!0,Pt=V(x),bn;bn=yield z(Pt.next()),se=bn.done,!se;Ot=!0)for(je=bn.value,Ot=!1,Ze=ct(Ze,je);;){const Sn=X.peekSize(Ze);if(Sn.eof||Sn.offset+Sn.size>Ze.byteLength)break;yield yield z(X.dec(F,Ze)),Ze=Ze.subarray(Sn.offset+Sn.size)}}catch(Or){be={error:Or}}finally{try{!Ot&&!se&&(De=Pt.return)&&(yield z(De.call(Pt)))}finally{if(be)throw be.error}}if(Ze.byteLength>0)throw new Error("incomplete data")})},peekSize(F){const x={eof:!0,size:null,offset:null};for(let P=0;P<10;P++){if(P>F.byteLength)return x;if(!(F[P]&128)){const se=new U.oP(F);let be;try{be=se.uint32()}catch(De){if(De instanceof RangeError)return x;throw De}return{eof:!1,size:be,offset:se.pos}}}throw new Error("invalid varint")}};var Z=u(781);function Y(F){switch(F.typeName){case"google.protobuf.Any":{const x=F.fields.find(se=>se.number==1&&se.fieldKind=="scalar"&&se.scalar===p.w.STRING),P=F.fields.find(se=>se.number==2&&se.fieldKind=="scalar"&&se.scalar===p.w.BYTES);if(x&&P)return{typeName:F.typeName,typeUrl:x,value:P};break}case"google.protobuf.Timestamp":{const x=F.fields.find(se=>se.number==1&&se.fieldKind=="scalar"&&se.scalar===p.w.INT64),P=F.fields.find(se=>se.number==2&&se.fieldKind=="scalar"&&se.scalar===p.w.INT32);if(x&&P)return{typeName:F.typeName,seconds:x,nanos:P};break}case"google.protobuf.Duration":{const x=F.fields.find(se=>se.number==1&&se.fieldKind=="scalar"&&se.scalar===p.w.INT64),P=F.fields.find(se=>se.number==2&&se.fieldKind=="scalar"&&se.scalar===p.w.INT32);if(x&&P)return{typeName:F.typeName,seconds:x,nanos:P};break}case"google.protobuf.Struct":{const x=F.fields.find(P=>P.number==1&&!P.repeated);if((x==null?void 0:x.fieldKind)!=="map"||x.mapValue.kind!=="message"||x.mapValue.message.typeName!=="google.protobuf.Value")break;return{typeName:F.typeName,fields:x}}case"google.protobuf.Value":{const x=F.oneofs.find(Ze=>Ze.name==="kind"),P=F.fields.find(Ze=>Ze.number==1&&Ze.oneof===x);if((P==null?void 0:P.fieldKind)!=="enum"||P.enum.typeName!=="google.protobuf.NullValue")return;const se=F.fields.find(Ze=>Ze.number==2&&Ze.fieldKind=="scalar"&&Ze.scalar===p.w.DOUBLE&&Ze.oneof===x),be=F.fields.find(Ze=>Ze.number==3&&Ze.fieldKind=="scalar"&&Ze.scalar===p.w.STRING&&Ze.oneof===x),De=F.fields.find(Ze=>Ze.number==4&&Ze.fieldKind=="scalar"&&Ze.scalar===p.w.BOOL&&Ze.oneof===x),je=F.fields.find(Ze=>Ze.number==5&&Ze.oneof===x);if((je==null?void 0:je.fieldKind)!=="message"||je.message.typeName!=="google.protobuf.Struct")return;const ct=F.fields.find(Ze=>Ze.number==6&&Ze.oneof===x);if((ct==null?void 0:ct.fieldKind)!=="message"||ct.message.typeName!=="google.protobuf.ListValue")return;if(x&&se&&be&&De)return{typeName:F.typeName,kind:x,nullValue:P,numberValue:se,stringValue:be,boolValue:De,structValue:je,listValue:ct};break}case"google.protobuf.ListValue":{const x=F.fields.find(P=>P.number==1&&P.repeated);if((x==null?void 0:x.fieldKind)!="message"||x.message.typeName!=="google.protobuf.Value")break;return{typeName:F.typeName,values:x}}case"google.protobuf.FieldMask":{const x=F.fields.find(P=>P.number==1&&P.fieldKind=="scalar"&&P.scalar===p.w.STRING&&P.repeated);if(x)return{typeName:F.typeName,paths:x};break}case"google.protobuf.DoubleValue":case"google.protobuf.FloatValue":case"google.protobuf.Int64Value":case"google.protobuf.UInt64Value":case"google.protobuf.Int32Value":case"google.protobuf.UInt32Value":case"google.protobuf.BoolValue":case"google.protobuf.StringValue":case"google.protobuf.BytesValue":{const x=F.fields.find(P=>P.number==1&&P.name=="value");if(!x||x.fieldKind!=="scalar")break;return{typeName:F.typeName,value:x}}}}const q="@bufbuild/protobuf",j={packageName:"@bufbuild/protobuf",localName:v.r1,reifyWkt:Y,getUnwrappedFieldType:S.w,scalarDefaultValue:Z.kY,safeIdentifier:v.GD,safeObjectProperty:v.ll,symbols:{proto2:{typeOnly:!1,privateImportPath:"./proto2.js",publicImportPath:q},proto3:{typeOnly:!1,privateImportPath:"./proto3.js",publicImportPath:q},Message:{typeOnly:!1,privateImportPath:"./message.js",publicImportPath:q},PartialMessage:{typeOnly:!0,privateImportPath:"./message.js",publicImportPath:q},PlainMessage:{typeOnly:!0,privateImportPath:"./message.js",publicImportPath:q},FieldList:{typeOnly:!0,privateImportPath:"./field-list.js",publicImportPath:q},MessageType:{typeOnly:!0,privateImportPath:"./message-type.js",publicImportPath:q},BinaryReadOptions:{typeOnly:!0,privateImportPath:"./binary-format.js",publicImportPath:q},BinaryWriteOptions:{typeOnly:!0,privateImportPath:"./binary-format.js",publicImportPath:q},JsonReadOptions:{typeOnly:!0,privateImportPath:"./json-format.js",publicImportPath:q},JsonWriteOptions:{typeOnly:!0,privateImportPath:"./json-format.js",publicImportPath:q},JsonValue:{typeOnly:!0,privateImportPath:"./json-format.js",publicImportPath:q},JsonObject:{typeOnly:!0,privateImportPath:"./json-format.js",publicImportPath:q},protoDouble:{typeOnly:!1,privateImportPath:"./proto-double.js",publicImportPath:q},protoInt64:{typeOnly:!1,privateImportPath:"./proto-int64.js",publicImportPath:q},ScalarType:{typeOnly:!1,privateImportPath:"./field.js",publicImportPath:q},LongType:{typeOnly:!1,privateImportPath:"./field.js",publicImportPath:q},MethodKind:{typeOnly:!1,privateImportPath:"./service-type.js",publicImportPath:q},MethodIdempotency:{typeOnly:!1,privateImportPath:"./service-type.js",publicImportPath:q},IMessageTypeRegistry:{typeOnly:!0,privateImportPath:"./type-registry.js",publicImportPath:q}},wktSourceFiles:["google/protobuf/compiler/plugin.proto","google/protobuf/any.proto","google/protobuf/api.proto","google/protobuf/descriptor.proto","google/protobuf/duration.proto","google/protobuf/empty.proto","google/protobuf/field_mask.proto","google/protobuf/source_context.proto","google/protobuf/struct.proto","google/protobuf/timestamp.proto","google/protobuf/type.proto","google/protobuf/wrappers.proto"]};var le=u(561),Ee=u(328),G;(function(F){F[F.EDITION_UNKNOWN=0]="EDITION_UNKNOWN",F[F.EDITION_PROTO2=998]="EDITION_PROTO2",F[F.EDITION_PROTO3=999]="EDITION_PROTO3",F[F.EDITION_2023=1e3]="EDITION_2023",F[F.EDITION_1_TEST_ONLY=1]="EDITION_1_TEST_ONLY",F[F.EDITION_2_TEST_ONLY=2]="EDITION_2_TEST_ONLY",F[F.EDITION_99997_TEST_ONLY=99997]="EDITION_99997_TEST_ONLY",F[F.EDITION_99998_TEST_ONLY=99998]="EDITION_99998_TEST_ONLY",F[F.EDITION_99999_TEST_ONLY=99999]="EDITION_99999_TEST_ONLY"})(G||(G={})),E.util.setEnumType(G,"google.protobuf.Edition",[{no:0,name:"EDITION_UNKNOWN"},{no:998,name:"EDITION_PROTO2"},{no:999,name:"EDITION_PROTO3"},{no:1e3,name:"EDITION_2023"},{no:1,name:"EDITION_1_TEST_ONLY"},{no:2,name:"EDITION_2_TEST_ONLY"},{no:99997,name:"EDITION_99997_TEST_ONLY"},{no:99998,name:"EDITION_99998_TEST_ONLY"},{no:99999,name:"EDITION_99999_TEST_ONLY"}]);class ue extends le.v{constructor(x){super(),this.file=[],E.util.initPartial(x,this)}static fromBinary(x,P){return new ue().fromBinary(x,P)}static fromJson(x,P){return new ue().fromJson(x,P)}static fromJsonString(x,P){return new ue().fromJsonString(x,P)}static equals(x,P){return E.util.equals(ue,x,P)}}ue.runtime=E,ue.typeName="google.protobuf.FileDescriptorSet",ue.fields=E.util.newFieldList(()=>[{no:1,name:"file",kind:"message",T:ge,repeated:!0}]);class ge extends le.v{constructor(x){super(),this.dependency=[],this.publicDependency=[],this.weakDependency=[],this.messageType=[],this.enumType=[],this.service=[],this.extension=[],E.util.initPartial(x,this)}static fromBinary(x,P){return new ge().fromBinary(x,P)}static fromJson(x,P){return new ge().fromJson(x,P)}static fromJsonString(x,P){return new ge().fromJsonString(x,P)}static equals(x,P){return E.util.equals(ge,x,P)}}ge.runtime=E,ge.typeName="google.protobuf.FileDescriptorProto",ge.fields=E.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"package",kind:"scalar",T:9,opt:!0},{no:3,name:"dependency",kind:"scalar",T:9,repeated:!0},{no:10,name:"public_dependency",kind:"scalar",T:5,repeated:!0},{no:11,name:"weak_dependency",kind:"scalar",T:5,repeated:!0},{no:4,name:"message_type",kind:"message",T:he,repeated:!0},{no:5,name:"enum_type",kind:"message",T:He,repeated:!0},{no:6,name:"service",kind:"message",T:re,repeated:!0},{no:7,name:"extension",kind:"message",T:Qe,repeated:!0},{no:8,name:"options",kind:"message",T:J,opt:!0},{no:9,name:"source_code_info",kind:"message",T:at,opt:!0},{no:12,name:"syntax",kind:"scalar",T:9,opt:!0},{no:14,name:"edition",kind:"enum",T:E.getEnumType(G),opt:!0}]);class he extends le.v{constructor(x){super(),this.field=[],this.extension=[],this.nestedType=[],this.enumType=[],this.extensionRange=[],this.oneofDecl=[],this.reservedRange=[],this.reservedName=[],E.util.initPartial(x,this)}static fromBinary(x,P){return new he().fromBinary(x,P)}static fromJson(x,P){return new he().fromJson(x,P)}static fromJsonString(x,P){return new he().fromJsonString(x,P)}static equals(x,P){return E.util.equals(he,x,P)}}he.runtime=E,he.typeName="google.protobuf.DescriptorProto",he.fields=E.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"field",kind:"message",T:Qe,repeated:!0},{no:6,name:"extension",kind:"message",T:Qe,repeated:!0},{no:3,name:"nested_type",kind:"message",T:he,repeated:!0},{no:4,name:"enum_type",kind:"message",T:He,repeated:!0},{no:5,name:"extension_range",kind:"message",T:Ne,repeated:!0},{no:8,name:"oneof_decl",kind:"message",T:$e,repeated:!0},{no:7,name:"options",kind:"message",T:Pe,opt:!0},{no:9,name:"reserved_range",kind:"message",T:Le,repeated:!0},{no:10,name:"reserved_name",kind:"scalar",T:9,repeated:!0}]);class Ne extends le.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,P){return new Ne().fromBinary(x,P)}static fromJson(x,P){return new Ne().fromJson(x,P)}static fromJsonString(x,P){return new Ne().fromJsonString(x,P)}static equals(x,P){return E.util.equals(Ne,x,P)}}Ne.runtime=E,Ne.typeName="google.protobuf.DescriptorProto.ExtensionRange",Ne.fields=E.util.newFieldList(()=>[{no:1,name:"start",kind:"scalar",T:5,opt:!0},{no:2,name:"end",kind:"scalar",T:5,opt:!0},{no:3,name:"options",kind:"message",T:qe,opt:!0}]);class Le extends le.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,P){return new Le().fromBinary(x,P)}static fromJson(x,P){return new Le().fromJson(x,P)}static fromJsonString(x,P){return new Le().fromJsonString(x,P)}static equals(x,P){return E.util.equals(Le,x,P)}}Le.runtime=E,Le.typeName="google.protobuf.DescriptorProto.ReservedRange",Le.fields=E.util.newFieldList(()=>[{no:1,name:"start",kind:"scalar",T:5,opt:!0},{no:2,name:"end",kind:"scalar",T:5,opt:!0}]);class qe extends le.v{constructor(x){super(),this.uninterpretedOption=[],this.declaration=[],E.util.initPartial(x,this)}static fromBinary(x,P){return new qe().fromBinary(x,P)}static fromJson(x,P){return new qe().fromJson(x,P)}static fromJsonString(x,P){return new qe().fromJsonString(x,P)}static equals(x,P){return E.util.equals(qe,x,P)}}qe.runtime=E,qe.typeName="google.protobuf.ExtensionRangeOptions",qe.fields=E.util.newFieldList(()=>[{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0},{no:2,name:"declaration",kind:"message",T:Me,repeated:!0},{no:50,name:"features",kind:"message",T:Dt,opt:!0},{no:3,name:"verification",kind:"enum",T:E.getEnumType(rt),opt:!0,default:rt.UNVERIFIED}]);var rt;(function(F){F[F.DECLARATION=0]="DECLARATION",F[F.UNVERIFIED=1]="UNVERIFIED"})(rt||(rt={})),E.util.setEnumType(rt,"google.protobuf.ExtensionRangeOptions.VerificationState",[{no:0,name:"DECLARATION"},{no:1,name:"UNVERIFIED"}]);class Me extends le.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,P){return new Me().fromBinary(x,P)}static fromJson(x,P){return new Me().fromJson(x,P)}static fromJsonString(x,P){return new Me().fromJsonString(x,P)}static equals(x,P){return E.util.equals(Me,x,P)}}Me.runtime=E,Me.typeName="google.protobuf.ExtensionRangeOptions.Declaration",Me.fields=E.util.newFieldList(()=>[{no:1,name:"number",kind:"scalar",T:5,opt:!0},{no:2,name:"full_name",kind:"scalar",T:9,opt:!0},{no:3,name:"type",kind:"scalar",T:9,opt:!0},{no:5,name:"reserved",kind:"scalar",T:8,opt:!0},{no:6,name:"repeated",kind:"scalar",T:8,opt:!0}]);class Qe extends le.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,P){return new Qe().fromBinary(x,P)}static fromJson(x,P){return new Qe().fromJson(x,P)}static fromJsonString(x,P){return new Qe().fromJsonString(x,P)}static equals(x,P){return E.util.equals(Qe,x,P)}}Qe.runtime=E,Qe.typeName="google.protobuf.FieldDescriptorProto",Qe.fields=E.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:3,name:"number",kind:"scalar",T:5,opt:!0},{no:4,name:"label",kind:"enum",T:E.getEnumType(ze),opt:!0},{no:5,name:"type",kind:"enum",T:E.getEnumType(ye),opt:!0},{no:6,name:"type_name",kind:"scalar",T:9,opt:!0},{no:2,name:"extendee",kind:"scalar",T:9,opt:!0},{no:7,name:"default_value",kind:"scalar",T:9,opt:!0},{no:9,name:"oneof_index",kind:"scalar",T:5,opt:!0},{no:10,name:"json_name",kind:"scalar",T:9,opt:!0},{no:8,name:"options",kind:"message",T:Ie,opt:!0},{no:17,name:"proto3_optional",kind:"scalar",T:8,opt:!0}]);var ye;(function(F){F[F.DOUBLE=1]="DOUBLE",F[F.FLOAT=2]="FLOAT",F[F.INT64=3]="INT64",F[F.UINT64=4]="UINT64",F[F.INT32=5]="INT32",F[F.FIXED64=6]="FIXED64",F[F.FIXED32=7]="FIXED32",F[F.BOOL=8]="BOOL",F[F.STRING=9]="STRING",F[F.GROUP=10]="GROUP",F[F.MESSAGE=11]="MESSAGE",F[F.BYTES=12]="BYTES",F[F.UINT32=13]="UINT32",F[F.ENUM=14]="ENUM",F[F.SFIXED32=15]="SFIXED32",F[F.SFIXED64=16]="SFIXED64",F[F.SINT32=17]="SINT32",F[F.SINT64=18]="SINT64"})(ye||(ye={})),E.util.setEnumType(ye,"google.protobuf.FieldDescriptorProto.Type",[{no:1,name:"TYPE_DOUBLE"},{no:2,name:"TYPE_FLOAT"},{no:3,name:"TYPE_INT64"},{no:4,name:"TYPE_UINT64"},{no:5,name:"TYPE_INT32"},{no:6,name:"TYPE_FIXED64"},{no:7,name:"TYPE_FIXED32"},{no:8,name:"TYPE_BOOL"},{no:9,name:"TYPE_STRING"},{no:10,name:"TYPE_GROUP"},{no:11,name:"TYPE_MESSAGE"},{no:12,name:"TYPE_BYTES"},{no:13,name:"TYPE_UINT32"},{no:14,name:"TYPE_ENUM"},{no:15,name:"TYPE_SFIXED32"},{no:16,name:"TYPE_SFIXED64"},{no:17,name:"TYPE_SINT32"},{no:18,name:"TYPE_SINT64"}]);var ze;(function(F){F[F.OPTIONAL=1]="OPTIONAL",F[F.REPEATED=3]="REPEATED",F[F.REQUIRED=2]="REQUIRED"})(ze||(ze={})),E.util.setEnumType(ze,"google.protobuf.FieldDescriptorProto.Label",[{no:1,name:"LABEL_OPTIONAL"},{no:3,name:"LABEL_REPEATED"},{no:2,name:"LABEL_REQUIRED"}]);class $e extends le.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,P){return new $e().fromBinary(x,P)}static fromJson(x,P){return new $e().fromJson(x,P)}static fromJsonString(x,P){return new $e().fromJsonString(x,P)}static equals(x,P){return E.util.equals($e,x,P)}}$e.runtime=E,$e.typeName="google.protobuf.OneofDescriptorProto",$e.fields=E.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"options",kind:"message",T:nt,opt:!0}]);class He extends le.v{constructor(x){super(),this.value=[],this.reservedRange=[],this.reservedName=[],E.util.initPartial(x,this)}static fromBinary(x,P){return new He().fromBinary(x,P)}static fromJson(x,P){return new He().fromJson(x,P)}static fromJsonString(x,P){return new He().fromJsonString(x,P)}static equals(x,P){return E.util.equals(He,x,P)}}He.runtime=E,He.typeName="google.protobuf.EnumDescriptorProto",He.fields=E.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"value",kind:"message",T:Be,repeated:!0},{no:3,name:"options",kind:"message",T:pt,opt:!0},{no:4,name:"reserved_range",kind:"message",T:dt,repeated:!0},{no:5,name:"reserved_name",kind:"scalar",T:9,repeated:!0}]);class dt extends le.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,P){return new dt().fromBinary(x,P)}static fromJson(x,P){return new dt().fromJson(x,P)}static fromJsonString(x,P){return new dt().fromJsonString(x,P)}static equals(x,P){return E.util.equals(dt,x,P)}}dt.runtime=E,dt.typeName="google.protobuf.EnumDescriptorProto.EnumReservedRange",dt.fields=E.util.newFieldList(()=>[{no:1,name:"start",kind:"scalar",T:5,opt:!0},{no:2,name:"end",kind:"scalar",T:5,opt:!0}]);class Be extends le.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,P){return new Be().fromBinary(x,P)}static fromJson(x,P){return new Be().fromJson(x,P)}static fromJsonString(x,P){return new Be().fromJsonString(x,P)}static equals(x,P){return E.util.equals(Be,x,P)}}Be.runtime=E,Be.typeName="google.protobuf.EnumValueDescriptorProto",Be.fields=E.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"number",kind:"scalar",T:5,opt:!0},{no:3,name:"options",kind:"message",T:kt,opt:!0}]);class re extends le.v{constructor(x){super(),this.method=[],E.util.initPartial(x,this)}static fromBinary(x,P){return new re().fromBinary(x,P)}static fromJson(x,P){return new re().fromJson(x,P)}static fromJsonString(x,P){return new re().fromJsonString(x,P)}static equals(x,P){return E.util.equals(re,x,P)}}re.runtime=E,re.typeName="google.protobuf.ServiceDescriptorProto",re.fields=E.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"method",kind:"message",T:ee,repeated:!0},{no:3,name:"options",kind:"message",T:Ke,opt:!0}]);class ee extends le.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,P){return new ee().fromBinary(x,P)}static fromJson(x,P){return new ee().fromJson(x,P)}static fromJsonString(x,P){return new ee().fromJsonString(x,P)}static equals(x,P){return E.util.equals(ee,x,P)}}ee.runtime=E,ee.typeName="google.protobuf.MethodDescriptorProto",ee.fields=E.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"input_type",kind:"scalar",T:9,opt:!0},{no:3,name:"output_type",kind:"scalar",T:9,opt:!0},{no:4,name:"options",kind:"message",T:vt,opt:!0},{no:5,name:"client_streaming",kind:"scalar",T:8,opt:!0,default:!1},{no:6,name:"server_streaming",kind:"scalar",T:8,opt:!0,default:!1}]);class J extends le.v{constructor(x){super(),this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,P){return new J().fromBinary(x,P)}static fromJson(x,P){return new J().fromJson(x,P)}static fromJsonString(x,P){return new J().fromJsonString(x,P)}static equals(x,P){return E.util.equals(J,x,P)}}J.runtime=E,J.typeName="google.protobuf.FileOptions",J.fields=E.util.newFieldList(()=>[{no:1,name:"java_package",kind:"scalar",T:9,opt:!0},{no:8,name:"java_outer_classname",kind:"scalar",T:9,opt:!0},{no:10,name:"java_multiple_files",kind:"scalar",T:8,opt:!0,default:!1},{no:20,name:"java_generate_equals_and_hash",kind:"scalar",T:8,opt:!0},{no:27,name:"java_string_check_utf8",kind:"scalar",T:8,opt:!0,default:!1},{no:9,name:"optimize_for",kind:"enum",T:E.getEnumType(_e),opt:!0,default:_e.SPEED},{no:11,name:"go_package",kind:"scalar",T:9,opt:!0},{no:16,name:"cc_generic_services",kind:"scalar",T:8,opt:!0,default:!1},{no:17,name:"java_generic_services",kind:"scalar",T:8,opt:!0,default:!1},{no:18,name:"py_generic_services",kind:"scalar",T:8,opt:!0,default:!1},{no:42,name:"php_generic_services",kind:"scalar",T:8,opt:!0,default:!1},{no:23,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:31,name:"cc_enable_arenas",kind:"scalar",T:8,opt:!0,default:!0},{no:36,name:"objc_class_prefix",kind:"scalar",T:9,opt:!0},{no:37,name:"csharp_namespace",kind:"scalar",T:9,opt:!0},{no:39,name:"swift_prefix",kind:"scalar",T:9,opt:!0},{no:40,name:"php_class_prefix",kind:"scalar",T:9,opt:!0},{no:41,name:"php_namespace",kind:"scalar",T:9,opt:!0},{no:44,name:"php_metadata_namespace",kind:"scalar",T:9,opt:!0},{no:45,name:"ruby_package",kind:"scalar",T:9,opt:!0},{no:50,name:"features",kind:"message",T:Dt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);var _e;(function(F){F[F.SPEED=1]="SPEED",F[F.CODE_SIZE=2]="CODE_SIZE",F[F.LITE_RUNTIME=3]="LITE_RUNTIME"})(_e||(_e={})),E.util.setEnumType(_e,"google.protobuf.FileOptions.OptimizeMode",[{no:1,name:"SPEED"},{no:2,name:"CODE_SIZE"},{no:3,name:"LITE_RUNTIME"}]);class Pe extends le.v{constructor(x){super(),this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,P){return new Pe().fromBinary(x,P)}static fromJson(x,P){return new Pe().fromJson(x,P)}static fromJsonString(x,P){return new Pe().fromJsonString(x,P)}static equals(x,P){return E.util.equals(Pe,x,P)}}Pe.runtime=E,Pe.typeName="google.protobuf.MessageOptions",Pe.fields=E.util.newFieldList(()=>[{no:1,name:"message_set_wire_format",kind:"scalar",T:8,opt:!0,default:!1},{no:2,name:"no_standard_descriptor_accessor",kind:"scalar",T:8,opt:!0,default:!1},{no:3,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:7,name:"map_entry",kind:"scalar",T:8,opt:!0},{no:11,name:"deprecated_legacy_json_field_conflicts",kind:"scalar",T:8,opt:!0},{no:12,name:"features",kind:"message",T:Dt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);class Ie extends le.v{constructor(x){super(),this.targets=[],this.editionDefaults=[],this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,P){return new Ie().fromBinary(x,P)}static fromJson(x,P){return new Ie().fromJson(x,P)}static fromJsonString(x,P){return new Ie().fromJsonString(x,P)}static equals(x,P){return E.util.equals(Ie,x,P)}}Ie.runtime=E,Ie.typeName="google.protobuf.FieldOptions",Ie.fields=E.util.newFieldList(()=>[{no:1,name:"ctype",kind:"enum",T:E.getEnumType(ie),opt:!0,default:ie.STRING},{no:2,name:"packed",kind:"scalar",T:8,opt:!0},{no:6,name:"jstype",kind:"enum",T:E.getEnumType(de),opt:!0,default:de.JS_NORMAL},{no:5,name:"lazy",kind:"scalar",T:8,opt:!0,default:!1},{no:15,name:"unverified_lazy",kind:"scalar",T:8,opt:!0,default:!1},{no:3,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:10,name:"weak",kind:"scalar",T:8,opt:!0,default:!1},{no:16,name:"debug_redact",kind:"scalar",T:8,opt:!0,default:!1},{no:17,name:"retention",kind:"enum",T:E.getEnumType(ce),opt:!0},{no:19,name:"targets",kind:"enum",T:E.getEnumType(Oe),repeated:!0},{no:20,name:"edition_defaults",kind:"message",T:Se,repeated:!0},{no:21,name:"features",kind:"message",T:Dt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);var ie;(function(F){F[F.STRING=0]="STRING",F[F.CORD=1]="CORD",F[F.STRING_PIECE=2]="STRING_PIECE"})(ie||(ie={})),E.util.setEnumType(ie,"google.protobuf.FieldOptions.CType",[{no:0,name:"STRING"},{no:1,name:"CORD"},{no:2,name:"STRING_PIECE"}]);var de;(function(F){F[F.JS_NORMAL=0]="JS_NORMAL",F[F.JS_STRING=1]="JS_STRING",F[F.JS_NUMBER=2]="JS_NUMBER"})(de||(de={})),E.util.setEnumType(de,"google.protobuf.FieldOptions.JSType",[{no:0,name:"JS_NORMAL"},{no:1,name:"JS_STRING"},{no:2,name:"JS_NUMBER"}]);var ce;(function(F){F[F.RETENTION_UNKNOWN=0]="RETENTION_UNKNOWN",F[F.RETENTION_RUNTIME=1]="RETENTION_RUNTIME",F[F.RETENTION_SOURCE=2]="RETENTION_SOURCE"})(ce||(ce={})),E.util.setEnumType(ce,"google.protobuf.FieldOptions.OptionRetention",[{no:0,name:"RETENTION_UNKNOWN"},{no:1,name:"RETENTION_RUNTIME"},{no:2,name:"RETENTION_SOURCE"}]);var Oe;(function(F){F[F.TARGET_TYPE_UNKNOWN=0]="TARGET_TYPE_UNKNOWN",F[F.TARGET_TYPE_FILE=1]="TARGET_TYPE_FILE",F[F.TARGET_TYPE_EXTENSION_RANGE=2]="TARGET_TYPE_EXTENSION_RANGE",F[F.TARGET_TYPE_MESSAGE=3]="TARGET_TYPE_MESSAGE",F[F.TARGET_TYPE_FIELD=4]="TARGET_TYPE_FIELD",F[F.TARGET_TYPE_ONEOF=5]="TARGET_TYPE_ONEOF",F[F.TARGET_TYPE_ENUM=6]="TARGET_TYPE_ENUM",F[F.TARGET_TYPE_ENUM_ENTRY=7]="TARGET_TYPE_ENUM_ENTRY",F[F.TARGET_TYPE_SERVICE=8]="TARGET_TYPE_SERVICE",F[F.TARGET_TYPE_METHOD=9]="TARGET_TYPE_METHOD"})(Oe||(Oe={})),E.util.setEnumType(Oe,"google.protobuf.FieldOptions.OptionTargetType",[{no:0,name:"TARGET_TYPE_UNKNOWN"},{no:1,name:"TARGET_TYPE_FILE"},{no:2,name:"TARGET_TYPE_EXTENSION_RANGE"},{no:3,name:"TARGET_TYPE_MESSAGE"},{no:4,name:"TARGET_TYPE_FIELD"},{no:5,name:"TARGET_TYPE_ONEOF"},{no:6,name:"TARGET_TYPE_ENUM"},{no:7,name:"TARGET_TYPE_ENUM_ENTRY"},{no:8,name:"TARGET_TYPE_SERVICE"},{no:9,name:"TARGET_TYPE_METHOD"}]);class Se extends le.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,P){return new Se().fromBinary(x,P)}static fromJson(x,P){return new Se().fromJson(x,P)}static fromJsonString(x,P){return new Se().fromJsonString(x,P)}static equals(x,P){return E.util.equals(Se,x,P)}}Se.runtime=E,Se.typeName="google.protobuf.FieldOptions.EditionDefault",Se.fields=E.util.newFieldList(()=>[{no:3,name:"edition",kind:"enum",T:E.getEnumType(G),opt:!0},{no:2,name:"value",kind:"scalar",T:9,opt:!0}]);class nt extends le.v{constructor(x){super(),this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,P){return new nt().fromBinary(x,P)}static fromJson(x,P){return new nt().fromJson(x,P)}static fromJsonString(x,P){return new nt().fromJsonString(x,P)}static equals(x,P){return E.util.equals(nt,x,P)}}nt.runtime=E,nt.typeName="google.protobuf.OneofOptions",nt.fields=E.util.newFieldList(()=>[{no:1,name:"features",kind:"message",T:Dt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);class pt extends le.v{constructor(x){super(),this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,P){return new pt().fromBinary(x,P)}static fromJson(x,P){return new pt().fromJson(x,P)}static fromJsonString(x,P){return new pt().fromJsonString(x,P)}static equals(x,P){return E.util.equals(pt,x,P)}}pt.runtime=E,pt.typeName="google.protobuf.EnumOptions",pt.fields=E.util.newFieldList(()=>[{no:2,name:"allow_alias",kind:"scalar",T:8,opt:!0},{no:3,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:6,name:"deprecated_legacy_json_field_conflicts",kind:"scalar",T:8,opt:!0},{no:7,name:"features",kind:"message",T:Dt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);class kt extends le.v{constructor(x){super(),this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,P){return new kt().fromBinary(x,P)}static fromJson(x,P){return new kt().fromJson(x,P)}static fromJsonString(x,P){return new kt().fromJsonString(x,P)}static equals(x,P){return E.util.equals(kt,x,P)}}kt.runtime=E,kt.typeName="google.protobuf.EnumValueOptions",kt.fields=E.util.newFieldList(()=>[{no:1,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:2,name:"features",kind:"message",T:Dt,opt:!0},{no:3,name:"debug_redact",kind:"scalar",T:8,opt:!0,default:!1},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);class Ke extends le.v{constructor(x){super(),this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,P){return new Ke().fromBinary(x,P)}static fromJson(x,P){return new Ke().fromJson(x,P)}static fromJsonString(x,P){return new Ke().fromJsonString(x,P)}static equals(x,P){return E.util.equals(Ke,x,P)}}Ke.runtime=E,Ke.typeName="google.protobuf.ServiceOptions",Ke.fields=E.util.newFieldList(()=>[{no:34,name:"features",kind:"message",T:Dt,opt:!0},{no:33,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);class vt extends le.v{constructor(x){super(),this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,P){return new vt().fromBinary(x,P)}static fromJson(x,P){return new vt().fromJson(x,P)}static fromJsonString(x,P){return new vt().fromJsonString(x,P)}static equals(x,P){return E.util.equals(vt,x,P)}}vt.runtime=E,vt.typeName="google.protobuf.MethodOptions",vt.fields=E.util.newFieldList(()=>[{no:33,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:34,name:"idempotency_level",kind:"enum",T:E.getEnumType(Ye),opt:!0,default:Ye.IDEMPOTENCY_UNKNOWN},{no:35,name:"features",kind:"message",T:Dt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);var Ye;(function(F){F[F.IDEMPOTENCY_UNKNOWN=0]="IDEMPOTENCY_UNKNOWN",F[F.NO_SIDE_EFFECTS=1]="NO_SIDE_EFFECTS",F[F.IDEMPOTENT=2]="IDEMPOTENT"})(Ye||(Ye={})),E.util.setEnumType(Ye,"google.protobuf.MethodOptions.IdempotencyLevel",[{no:0,name:"IDEMPOTENCY_UNKNOWN"},{no:1,name:"NO_SIDE_EFFECTS"},{no:2,name:"IDEMPOTENT"}]);class it extends le.v{constructor(x){super(),this.name=[],E.util.initPartial(x,this)}static fromBinary(x,P){return new it().fromBinary(x,P)}static fromJson(x,P){return new it().fromJson(x,P)}static fromJsonString(x,P){return new it().fromJsonString(x,P)}static equals(x,P){return E.util.equals(it,x,P)}}it.runtime=E,it.typeName="google.protobuf.UninterpretedOption",it.fields=E.util.newFieldList(()=>[{no:2,name:"name",kind:"message",T:Et,repeated:!0},{no:3,name:"identifier_value",kind:"scalar",T:9,opt:!0},{no:4,name:"positive_int_value",kind:"scalar",T:4,opt:!0},{no:5,name:"negative_int_value",kind:"scalar",T:3,opt:!0},{no:6,name:"double_value",kind:"scalar",T:1,opt:!0},{no:7,name:"string_value",kind:"scalar",T:12,opt:!0},{no:8,name:"aggregate_value",kind:"scalar",T:9,opt:!0}]);class Et extends le.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,P){return new Et().fromBinary(x,P)}static fromJson(x,P){return new Et().fromJson(x,P)}static fromJsonString(x,P){return new Et().fromJsonString(x,P)}static equals(x,P){return E.util.equals(Et,x,P)}}Et.runtime=E,Et.typeName="google.protobuf.UninterpretedOption.NamePart",Et.fields=E.util.newFieldList(()=>[{no:1,name:"name_part",kind:"scalar",T:9},{no:2,name:"is_extension",kind:"scalar",T:8}]);class Dt extends le.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,P){return new Dt().fromBinary(x,P)}static fromJson(x,P){return new Dt().fromJson(x,P)}static fromJsonString(x,P){return new Dt().fromJsonString(x,P)}static equals(x,P){return E.util.equals(Dt,x,P)}}Dt.runtime=E,Dt.typeName="google.protobuf.FeatureSet",Dt.fields=E.util.newFieldList(()=>[{no:1,name:"field_presence",kind:"enum",T:E.getEnumType(rn),opt:!0},{no:2,name:"enum_type",kind:"enum",T:E.getEnumType(cn),opt:!0},{no:3,name:"repeated_field_encoding",kind:"enum",T:E.getEnumType(fn),opt:!0},{no:4,name:"utf8_validation",kind:"enum",T:E.getEnumType(zn),opt:!0},{no:5,name:"message_encoding",kind:"enum",T:E.getEnumType(ve),opt:!0},{no:6,name:"json_format",kind:"enum",T:E.getEnumType(Ae),opt:!0}]);var rn;(function(F){F[F.FIELD_PRESENCE_UNKNOWN=0]="FIELD_PRESENCE_UNKNOWN",F[F.EXPLICIT=1]="EXPLICIT",F[F.IMPLICIT=2]="IMPLICIT",F[F.LEGACY_REQUIRED=3]="LEGACY_REQUIRED"})(rn||(rn={})),E.util.setEnumType(rn,"google.protobuf.FeatureSet.FieldPresence",[{no:0,name:"FIELD_PRESENCE_UNKNOWN"},{no:1,name:"EXPLICIT"},{no:2,name:"IMPLICIT"},{no:3,name:"LEGACY_REQUIRED"}]);var cn;(function(F){F[F.ENUM_TYPE_UNKNOWN=0]="ENUM_TYPE_UNKNOWN",F[F.OPEN=1]="OPEN",F[F.CLOSED=2]="CLOSED"})(cn||(cn={})),E.util.setEnumType(cn,"google.protobuf.FeatureSet.EnumType",[{no:0,name:"ENUM_TYPE_UNKNOWN"},{no:1,name:"OPEN"},{no:2,name:"CLOSED"}]);var fn;(function(F){F[F.REPEATED_FIELD_ENCODING_UNKNOWN=0]="REPEATED_FIELD_ENCODING_UNKNOWN",F[F.PACKED=1]="PACKED",F[F.EXPANDED=2]="EXPANDED"})(fn||(fn={})),E.util.setEnumType(fn,"google.protobuf.FeatureSet.RepeatedFieldEncoding",[{no:0,name:"REPEATED_FIELD_ENCODING_UNKNOWN"},{no:1,name:"PACKED"},{no:2,name:"EXPANDED"}]);var zn;(function(F){F[F.UTF8_VALIDATION_UNKNOWN=0]="UTF8_VALIDATION_UNKNOWN",F[F.NONE=1]="NONE",F[F.VERIFY=2]="VERIFY"})(zn||(zn={})),E.util.setEnumType(zn,"google.protobuf.FeatureSet.Utf8Validation",[{no:0,name:"UTF8_VALIDATION_UNKNOWN"},{no:1,name:"NONE"},{no:2,name:"VERIFY"}]);var ve;(function(F){F[F.MESSAGE_ENCODING_UNKNOWN=0]="MESSAGE_ENCODING_UNKNOWN",F[F.LENGTH_PREFIXED=1]="LENGTH_PREFIXED",F[F.DELIMITED=2]="DELIMITED"})(ve||(ve={})),E.util.setEnumType(ve,"google.protobuf.FeatureSet.MessageEncoding",[{no:0,name:"MESSAGE_ENCODING_UNKNOWN"},{no:1,name:"LENGTH_PREFIXED"},{no:2,name:"DELIMITED"}]);var Ae;(function(F){F[F.JSON_FORMAT_UNKNOWN=0]="JSON_FORMAT_UNKNOWN",F[F.ALLOW=1]="ALLOW",F[F.LEGACY_BEST_EFFORT=2]="LEGACY_BEST_EFFORT"})(Ae||(Ae={})),E.util.setEnumType(Ae,"google.protobuf.FeatureSet.JsonFormat",[{no:0,name:"JSON_FORMAT_UNKNOWN"},{no:1,name:"ALLOW"},{no:2,name:"LEGACY_BEST_EFFORT"}]);class fe extends le.v{constructor(x){super(),this.defaults=[],E.util.initPartial(x,this)}static fromBinary(x,P){return new fe().fromBinary(x,P)}static fromJson(x,P){return new fe().fromJson(x,P)}static fromJsonString(x,P){return new fe().fromJsonString(x,P)}static equals(x,P){return E.util.equals(fe,x,P)}}fe.runtime=E,fe.typeName="google.protobuf.FeatureSetDefaults",fe.fields=E.util.newFieldList(()=>[{no:1,name:"defaults",kind:"message",T:lt,repeated:!0},{no:4,name:"minimum_edition",kind:"enum",T:E.getEnumType(G),opt:!0},{no:5,name:"maximum_edition",kind:"enum",T:E.getEnumType(G),opt:!0}]);class lt extends le.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,P){return new lt().fromBinary(x,P)}static fromJson(x,P){return new lt().fromJson(x,P)}static fromJsonString(x,P){return new lt().fromJsonString(x,P)}static equals(x,P){return E.util.equals(lt,x,P)}}lt.runtime=E,lt.typeName="google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault",lt.fields=E.util.newFieldList(()=>[{no:3,name:"edition",kind:"enum",T:E.getEnumType(G),opt:!0},{no:2,name:"features",kind:"message",T:Dt,opt:!0}]);class at extends le.v{constructor(x){super(),this.location=[],E.util.initPartial(x,this)}static fromBinary(x,P){return new at().fromBinary(x,P)}static fromJson(x,P){return new at().fromJson(x,P)}static fromJsonString(x,P){return new at().fromJsonString(x,P)}static equals(x,P){return E.util.equals(at,x,P)}}at.runtime=E,at.typeName="google.protobuf.SourceCodeInfo",at.fields=E.util.newFieldList(()=>[{no:1,name:"location",kind:"message",T:Mt,repeated:!0}]);class Mt extends le.v{constructor(x){super(),this.path=[],this.span=[],this.leadingDetachedComments=[],E.util.initPartial(x,this)}static fromBinary(x,P){return new Mt().fromBinary(x,P)}static fromJson(x,P){return new Mt().fromJson(x,P)}static fromJsonString(x,P){return new Mt().fromJsonString(x,P)}static equals(x,P){return E.util.equals(Mt,x,P)}}Mt.runtime=E,Mt.typeName="google.protobuf.SourceCodeInfo.Location",Mt.fields=E.util.newFieldList(()=>[{no:1,name:"path",kind:"scalar",T:5,repeated:!0,packed:!0},{no:2,name:"span",kind:"scalar",T:5,repeated:!0,packed:!0},{no:3,name:"leading_comments",kind:"scalar",T:9,opt:!0},{no:4,name:"trailing_comments",kind:"scalar",T:9,opt:!0},{no:6,name:"leading_detached_comments",kind:"scalar",T:9,repeated:!0}]);class $t extends le.v{constructor(x){super(),this.annotation=[],E.util.initPartial(x,this)}static fromBinary(x,P){return new $t().fromBinary(x,P)}static fromJson(x,P){return new $t().fromJson(x,P)}static fromJsonString(x,P){return new $t().fromJsonString(x,P)}static equals(x,P){return E.util.equals($t,x,P)}}$t.runtime=E,$t.typeName="google.protobuf.GeneratedCodeInfo",$t.fields=E.util.newFieldList(()=>[{no:1,name:"annotation",kind:"message",T:It,repeated:!0}]);class It extends le.v{constructor(x){super(),this.path=[],E.util.initPartial(x,this)}static fromBinary(x,P){return new It().fromBinary(x,P)}static fromJson(x,P){return new It().fromJson(x,P)}static fromJsonString(x,P){return new It().fromJsonString(x,P)}static equals(x,P){return E.util.equals(It,x,P)}}It.runtime=E,It.typeName="google.protobuf.GeneratedCodeInfo.Annotation",It.fields=E.util.newFieldList(()=>[{no:1,name:"path",kind:"scalar",T:5,repeated:!0,packed:!0},{no:2,name:"source_file",kind:"scalar",T:9,opt:!0},{no:3,name:"begin",kind:"scalar",T:5,opt:!0},{no:4,name:"end",kind:"scalar",T:5,opt:!0},{no:5,name:"semantic",kind:"enum",T:E.getEnumType(xt),opt:!0}]);var xt;(function(F){F[F.NONE=0]="NONE",F[F.SET=1]="SET",F[F.ALIAS=2]="ALIAS"})(xt||(xt={})),E.util.setEnumType(xt,"google.protobuf.GeneratedCodeInfo.Annotation.Semantic",[{no:0,name:"NONE"},{no:1,name:"SET"},{no:2,name:"ALIAS"}]);function qt(F,x){const P=F.values.find(se=>se.name===x);return(0,k.hu)(P,`cannot parse ${F.name} default value: ${x}`),P.number}function Re(F,x){switch(F){case p.w.STRING:return x;case p.w.BYTES:{const P=Te(x);if(P===!1)throw new Error(`cannot parse ${p.w[F]} default value: ${x}`);return P}case p.w.INT64:case p.w.SFIXED64:case p.w.SINT64:return R.q.parse(x);case p.w.UINT64:case p.w.FIXED64:return R.q.uParse(x);case p.w.DOUBLE:case p.w.FLOAT:switch(x){case"inf":return Number.POSITIVE_INFINITY;case"-inf":return Number.NEGATIVE_INFINITY;case"nan":return Number.NaN;default:return parseFloat(x)}case p.w.BOOL:return x==="true";case p.w.INT32:case p.w.UINT32:case p.w.SINT32:case p.w.FIXED32:case p.w.SFIXED32:return parseInt(x,10)}}function Te(F){const x=[],P={tail:F,c:"",next(){return this.tail.length==0?!1:(this.c=this.tail[0],this.tail=this.tail.substring(1),!0)},take(se){if(this.tail.length>=se){const be=this.tail.substring(0,se);return this.tail=this.tail.substring(se),be}return!1}};for(;P.next();)switch(P.c){case"\\":if(P.next())switch(P.c){case"\\":x.push(P.c.charCodeAt(0));break;case"b":x.push(8);break;case"f":x.push(12);break;case"n":x.push(10);break;case"r":x.push(13);break;case"t":x.push(9);break;case"v":x.push(11);break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":{const se=P.c,be=P.take(2);if(be===!1)return!1;const De=parseInt(se+be,8);if(isNaN(De))return!1;x.push(De);break}case"x":{const se=P.c,be=P.take(2);if(be===!1)return!1;const De=parseInt(se+be,16);if(isNaN(De))return!1;x.push(De);break}case"u":{const se=P.c,be=P.take(4);if(be===!1)return!1;const De=parseInt(se+be,16);if(isNaN(De))return!1;const je=new Uint8Array(4);new DataView(je.buffer).setInt32(0,De,!0),x.push(je[0],je[1],je[2],je[3]);break}case"U":{const se=P.c,be=P.take(8);if(be===!1)return!1;const De=R.q.uEnc(se+be),je=new Uint8Array(8),ct=new DataView(je.buffer);ct.setInt32(0,De.lo,!0),ct.setInt32(4,De.hi,!0),x.push(je[0],je[1],je[2],je[3],je[4],je[5],je[6],je[7]);break}}break;default:x.push(P.c.charCodeAt(0))}return new Uint8Array(x)}const We=fe.fromBinary(B.W.dec("ChESDAgBEAIYAiABKAEwAhjmBwoREgwIAhABGAEgAigBMAEY5wcKERIMCAEQARgBIAIoATABGOgHIOYHKOgH"));function ot(F){const x=F.minimumEdition,P=F.maximumEdition;if(x===void 0||P===void 0||F.defaults.some(be=>be.edition===void 0))throw new Error("Invalid FeatureSetDefaults");const se=new Map;return(be,...De)=>{var je,ct;let Ze=se.get(be);if(Ze===void 0){if(bebe||Pt!==void 0&&Pt.e>Or||(Pt={e:Or,f:(ct=bn.features)!==null&&ct!==void 0?ct:new Dt})}if(Pt===void 0)throw new Error(`No valid default found for edition ${G[be]}`);Ze=Pt.f.toBinary(),se.set(be,Ze)}const Ot=Dt.fromBinary(Ze);for(const Pt of De)Pt!==void 0&&Ot.fromBinary(Pt.toBinary());if(!nn(Ot))throw new Error(`Invalid FeatureSet for edition ${G[be]}`);return Ot}}function nn(F){for(const x of Dt.fields.list()){const P=F[x.localName];if(P===void 0||x.kind=="enum"&&P===0)return!1}return!0}function Wt(F,x){var P;const se={enums:new Map,messages:new Map,services:new Map,extensions:new Map,mapEntries:new Map,resolveFeatures:ot((P=x==null?void 0:x.featureSetDefaults)!==null&&P!==void 0?P:We)},De=(F instanceof ue?F.file:F instanceof Uint8Array?ue.fromBinary(F).file:F).map(je=>hn(je,se));return Object.assign({files:De},se)}function hn(F,x){var P,se;(0,k.hu)(F.name,"invalid FileDescriptorProto: missing name");const be=Object.assign(Object.assign({kind:"file",proto:F,deprecated:(se=(P=F.options)===null||P===void 0?void 0:P.deprecated)!==null&&se!==void 0?se:!1},gn(F.syntax,F.edition)),{name:F.name.replace(/\.proto/,""),enums:[],messages:[],extensions:[],services:[],toString(){return`file ${this.proto.name}`},getSyntaxComments(){return eo(this.proto.sourceCodeInfo,[li.FileDescriptorProto_Syntax])},getPackageComments(){return eo(this.proto.sourceCodeInfo,[li.FileDescriptorProto_Package])},getFeatures(){var De;return x.resolveFeatures(this.edition,(De=this.proto.options)===null||De===void 0?void 0:De.features)}});x.mapEntries.clear();for(const De of F.enumType)xe(De,be,void 0,x);for(const De of F.messageType)mt(De,be,void 0,x);for(const De of F.service)Nt(De,be,x);tr(be,x);for(const De of x.mapEntries.values())Ue(De,x);for(const De of be.messages)Ue(De,x),tr(De,x);return x.mapEntries.clear(),be}function tr(F,x){switch(F.kind){case"file":for(const P of F.proto.extension){const se=Xt(P,F,void 0,x);F.extensions.push(se),x.extensions.set(se.typeName,se)}break;case"message":for(const P of F.proto.extension){const se=Xt(P,F.file,F,x);F.nestedExtensions.push(se),x.extensions.set(se.typeName,se)}for(const P of F.nestedMessages)tr(P,x);break}}function Ue(F,x){const P=F.proto.oneofDecl.map(be=>Mn(be,F,x)),se=new Set;for(const be of F.proto.field){const De=Wr(be,P),je=Nn(be,F.file,F,De,x);F.fields.push(je),De===void 0?F.members.push(je):(De.fields.push(je),se.has(De)||(se.add(De),F.members.push(De)))}for(const be of P.filter(De=>se.has(De)))F.oneofs.push(be);for(const be of F.nestedMessages)Ue(be,x)}function xe(F,x,P,se){var be,De,je;(0,k.hu)(F.name,"invalid EnumDescriptorProto: missing name");const ct={kind:"enum",proto:F,deprecated:(De=(be=F.options)===null||be===void 0?void 0:be.deprecated)!==null&&De!==void 0?De:!1,file:x,parent:P,name:F.name,typeName:Wn(F,P,x),values:[],sharedPrefix:(0,v.Sm)(F.name,F.value.map(Ze=>{var Ot;return(Ot=Ze.name)!==null&&Ot!==void 0?Ot:""})),toString(){return`enum ${this.typeName}`},getComments(){const Ze=this.parent?[...this.parent.getComments().sourcePath,li.DescriptorProto_EnumType,this.parent.proto.enumType.indexOf(this.proto)]:[li.FileDescriptorProto_EnumType,this.file.proto.enumType.indexOf(this.proto)];return eo(x.proto.sourceCodeInfo,Ze)},getFeatures(){var Ze,Ot,Pt;const bn=(Ot=(Ze=this.parent)===null||Ze===void 0?void 0:Ze.getFeatures())!==null&&Ot!==void 0?Ot:this.file.getFeatures();return se.resolveFeatures(this.file.edition,bn,(Pt=this.proto.options)===null||Pt===void 0?void 0:Pt.features)}};se.enums.set(ct.typeName,ct),F.value.forEach(Ze=>{var Ot,Pt;(0,k.hu)(Ze.name,"invalid EnumValueDescriptorProto: missing name"),(0,k.hu)(Ze.number!==void 0,"invalid EnumValueDescriptorProto: missing number"),ct.values.push({kind:"enum_value",proto:Ze,deprecated:(Pt=(Ot=Ze.options)===null||Ot===void 0?void 0:Ot.deprecated)!==null&&Pt!==void 0?Pt:!1,parent:ct,name:Ze.name,number:Ze.number,toString(){return`enum value ${ct.typeName}.${this.name}`},declarationString(){var bn;let Or=`${this.name} = ${this.number}`;return((bn=this.proto.options)===null||bn===void 0?void 0:bn.deprecated)===!0&&(Or+=" [deprecated = true]"),Or},getComments(){const bn=[...this.parent.getComments().sourcePath,li.EnumDescriptorProto_Value,this.parent.proto.value.indexOf(this.proto)];return eo(x.proto.sourceCodeInfo,bn)},getFeatures(){var bn;return se.resolveFeatures(this.parent.file.edition,this.parent.getFeatures(),(bn=this.proto.options)===null||bn===void 0?void 0:bn.features)}})}),((je=P==null?void 0:P.nestedEnums)!==null&&je!==void 0?je:x.enums).push(ct)}function mt(F,x,P,se){var be,De,je,ct;(0,k.hu)(F.name,"invalid DescriptorProto: missing name");const Ze={kind:"message",proto:F,deprecated:(De=(be=F.options)===null||be===void 0?void 0:be.deprecated)!==null&&De!==void 0?De:!1,file:x,parent:P,name:F.name,typeName:Wn(F,P,x),fields:[],oneofs:[],members:[],nestedEnums:[],nestedMessages:[],nestedExtensions:[],toString(){return`message ${this.typeName}`},getComments(){const Ot=this.parent?[...this.parent.getComments().sourcePath,li.DescriptorProto_NestedType,this.parent.proto.nestedType.indexOf(this.proto)]:[li.FileDescriptorProto_MessageType,this.file.proto.messageType.indexOf(this.proto)];return eo(x.proto.sourceCodeInfo,Ot)},getFeatures(){var Ot,Pt,bn;const Or=(Pt=(Ot=this.parent)===null||Ot===void 0?void 0:Ot.getFeatures())!==null&&Pt!==void 0?Pt:this.file.getFeatures();return se.resolveFeatures(this.file.edition,Or,(bn=this.proto.options)===null||bn===void 0?void 0:bn.features)}};((je=F.options)===null||je===void 0?void 0:je.mapEntry)===!0?se.mapEntries.set(Ze.typeName,Ze):(((ct=P==null?void 0:P.nestedMessages)!==null&&ct!==void 0?ct:x.messages).push(Ze),se.messages.set(Ze.typeName,Ze));for(const Ot of F.enumType)xe(Ot,x,Ze,se);for(const Ot of F.nestedType)mt(Ot,x,Ze,se)}function Nt(F,x,P){var se,be;(0,k.hu)(F.name,"invalid ServiceDescriptorProto: missing name");const De={kind:"service",proto:F,deprecated:(be=(se=F.options)===null||se===void 0?void 0:se.deprecated)!==null&&be!==void 0?be:!1,file:x,name:F.name,typeName:Wn(F,void 0,x),methods:[],toString(){return`service ${this.typeName}`},getComments(){const je=[li.FileDescriptorProto_Service,this.file.proto.service.indexOf(this.proto)];return eo(x.proto.sourceCodeInfo,je)},getFeatures(){var je;return P.resolveFeatures(this.file.edition,this.file.getFeatures(),(je=this.proto.options)===null||je===void 0?void 0:je.features)}};x.services.push(De),P.services.set(De.typeName,De);for(const je of F.method)De.methods.push(en(je,De,P))}function en(F,x,P){var se,be,De;(0,k.hu)(F.name,"invalid MethodDescriptorProto: missing name"),(0,k.hu)(F.inputType,"invalid MethodDescriptorProto: missing input_type"),(0,k.hu)(F.outputType,"invalid MethodDescriptorProto: missing output_type");let je;F.clientStreaming===!0&&F.serverStreaming===!0?je=Ee.t.BiDiStreaming:F.clientStreaming===!0?je=Ee.t.ClientStreaming:F.serverStreaming===!0?je=Ee.t.ServerStreaming:je=Ee.t.Unary;let ct;switch((se=F.options)===null||se===void 0?void 0:se.idempotencyLevel){case Ye.IDEMPOTENT:ct=Ee.w.Idempotent;break;case Ye.NO_SIDE_EFFECTS:ct=Ee.w.NoSideEffects;break;case Ye.IDEMPOTENCY_UNKNOWN:case void 0:ct=void 0;break}const Ze=P.messages.get(Qn(F.inputType)),Ot=P.messages.get(Qn(F.outputType));(0,k.hu)(Ze,`invalid MethodDescriptorProto: input_type ${F.inputType} not found`),(0,k.hu)(Ot,`invalid MethodDescriptorProto: output_type ${F.inputType} not found`);const Pt=F.name;return{kind:"rpc",proto:F,deprecated:(De=(be=F.options)===null||be===void 0?void 0:be.deprecated)!==null&&De!==void 0?De:!1,parent:x,name:Pt,methodKind:je,input:Ze,output:Ot,idempotency:ct,toString(){return`rpc ${x.typeName}.${Pt}`},getComments(){const bn=[...this.parent.getComments().sourcePath,li.ServiceDescriptorProto_Method,this.parent.proto.method.indexOf(this.proto)];return eo(x.file.proto.sourceCodeInfo,bn)},getFeatures(){var bn;return P.resolveFeatures(this.parent.file.edition,this.parent.getFeatures(),(bn=this.proto.options)===null||bn===void 0?void 0:bn.features)}}}function Mn(F,x,P){return(0,k.hu)(F.name,"invalid OneofDescriptorProto: missing name"),{kind:"oneof",proto:F,deprecated:!1,parent:x,fields:[],name:F.name,toString(){return`oneof ${x.typeName}.${this.name}`},getComments(){const se=[...this.parent.getComments().sourcePath,li.DescriptorProto_OneofDecl,this.parent.proto.oneofDecl.indexOf(this.proto)];return eo(x.file.proto.sourceCodeInfo,se)},getFeatures(){var se;return P.resolveFeatures(this.parent.file.edition,this.parent.getFeatures(),(se=this.proto.options)===null||se===void 0?void 0:se.features)}}}function Nn(F,x,P,se,be){var De,je,ct;(0,k.hu)(F.name,"invalid FieldDescriptorProto: missing name"),(0,k.hu)(F.number,"invalid FieldDescriptorProto: missing number"),(0,k.hu)(F.type,"invalid FieldDescriptorProto: missing type");const Ze={proto:F,deprecated:(je=(De=F.options)===null||De===void 0?void 0:De.deprecated)!==null&&je!==void 0?je:!1,name:F.name,number:F.number,parent:P,oneof:se,optional:En(F,x.syntax),packedByDefault:An(x,F,be.resolveFeatures),packed:oa(x,P,F,be.resolveFeatures),jsonName:F.jsonName===(0,v.x1)(F.name)?void 0:F.jsonName,scalar:void 0,longType:void 0,message:void 0,enum:void 0,mapKey:void 0,mapValue:void 0,declarationString:Pa,toString(){return`field ${this.parent.typeName}.${this.name}`},getComments(){const Pt=[...this.parent.getComments().sourcePath,li.DescriptorProto_Field,this.parent.proto.field.indexOf(this.proto)];return eo(x.proto.sourceCodeInfo,Pt)},getFeatures(){var Pt;return be.resolveFeatures(x.edition,this.parent.getFeatures(),(Pt=this.proto.options)===null||Pt===void 0?void 0:Pt.features)}},Ot=F.label===ze.REPEATED;switch(F.type){case ye.MESSAGE:case ye.GROUP:{(0,k.hu)(F.typeName,"invalid FieldDescriptorProto: missing type_name");const Pt=be.mapEntries.get(Qn(F.typeName));if(Pt!==void 0)return(0,k.hu)(Ot,"invalid FieldDescriptorProto: expected map entry to be repeated"),Object.assign(Object.assign(Object.assign({},Ze),{kind:"field",fieldKind:"map",repeated:!1}),ht(Pt));const bn=be.messages.get(Qn(F.typeName));return(0,k.hu)(bn!==void 0,`invalid FieldDescriptorProto: type_name ${F.typeName} not found`),Object.assign(Object.assign({},Ze),{kind:"field",fieldKind:"message",repeated:Ot,message:bn})}case ye.ENUM:{(0,k.hu)(F.typeName,"invalid FieldDescriptorProto: missing type_name");const Pt=be.enums.get(Qn(F.typeName));return(0,k.hu)(Pt!==void 0,`invalid FieldDescriptorProto: type_name ${F.typeName} not found`),Object.assign(Object.assign({},Ze),{kind:"field",fieldKind:"enum",getDefaultValue:Pp,repeated:Ot,enum:Pt})}default:{const Pt=Dp[F.type];return(0,k.hu)(Pt,`invalid FieldDescriptorProto: unknown type ${F.type}`),Object.assign(Object.assign({},Ze),{kind:"field",fieldKind:"scalar",getDefaultValue:Pp,repeated:Ot,scalar:Pt,longType:((ct=F.options)===null||ct===void 0?void 0:ct.jstype)==de.JS_STRING?p.p.STRING:p.p.BIGINT})}}}function Xt(F,x,P,se){(0,k.hu)(F.extendee,"invalid FieldDescriptorProto: missing extendee");const be=Nn(F,x,null,void 0,se),De=se.messages.get(Qn(F.extendee));return(0,k.hu)(De,`invalid FieldDescriptorProto: extendee ${F.extendee} not found`),Object.assign(Object.assign({},be),{kind:"extension",typeName:Wn(F,P,x),parent:P,file:x,extendee:De,toString(){return`extension ${this.typeName}`},getComments(){const je=this.parent?[...this.parent.getComments().sourcePath,li.DescriptorProto_Extension,this.parent.proto.extension.indexOf(F)]:[li.FileDescriptorProto_Extension,this.file.proto.extension.indexOf(F)];return eo(x.proto.sourceCodeInfo,je)},getFeatures(){var je,ct;return se.resolveFeatures(this.file.edition,((je=this.parent)!==null&&je!==void 0?je:this.file).getFeatures(),(ct=this.proto.options)===null||ct===void 0?void 0:ct.features)}})}function gn(F,x){let P,se;switch(F){case void 0:case"proto2":se="proto2",P=G.EDITION_PROTO2;break;case"proto3":se="proto3",P=G.EDITION_PROTO3;break;case"editions":switch(se="editions",x){case void 0:case G.EDITION_1_TEST_ONLY:case G.EDITION_2_TEST_ONLY:case G.EDITION_99997_TEST_ONLY:case G.EDITION_99998_TEST_ONLY:case G.EDITION_99999_TEST_ONLY:case G.EDITION_UNKNOWN:P=G.EDITION_UNKNOWN;break;default:P=x;break}break;default:throw new Error(`invalid FileDescriptorProto: unsupported syntax: ${F}`)}if(F==="editions"&&x===G.EDITION_UNKNOWN)throw new Error(`invalid FileDescriptorProto: syntax ${F} cannot have edition ${String(x)}`);return{syntax:se,edition:P}}function Wn(F,x,P){(0,k.hu)(F.name,`invalid ${F.getType().typeName}: missing name`);let se;return x?se=`${x.typeName}.${F.name}`:P.proto.package!==void 0?se=`${P.proto.package}.${F.name}`:se=`${F.name}`,se}function Qn(F){return F.startsWith(".")?F.substring(1):F}function ht(F){var x,P;(0,k.hu)((x=F.proto.options)===null||x===void 0?void 0:x.mapEntry,`invalid DescriptorProto: expected ${F.toString()} to be a map entry`),(0,k.hu)(F.fields.length===2,`invalid DescriptorProto: map entry ${F.toString()} has ${F.fields.length} fields`);const se=F.fields.find(je=>je.proto.number===1);(0,k.hu)(se,`invalid DescriptorProto: map entry ${F.toString()} is missing key field`);const be=se.scalar;(0,k.hu)(be!==void 0&&be!==p.w.BYTES&&be!==p.w.FLOAT&&be!==p.w.DOUBLE,`invalid DescriptorProto: map entry ${F.toString()} has unexpected key type ${(P=se.proto.type)!==null&&P!==void 0?P:-1}`);const De=F.fields.find(je=>je.proto.number===2);switch((0,k.hu)(De,`invalid DescriptorProto: map entry ${F.toString()} is missing value field`),De.fieldKind){case"scalar":return{mapKey:be,mapValue:Object.assign(Object.assign({},De),{kind:"scalar"})};case"message":return{mapKey:be,mapValue:Object.assign(Object.assign({},De),{kind:"message"})};case"enum":return{mapKey:be,mapValue:Object.assign(Object.assign({},De),{kind:"enum"})};default:throw new Error("invalid DescriptorProto: unsupported map entry value field")}}function Wr(F,x){var P;const se=F.oneofIndex;if(se===void 0)return;let be;return F.proto3Optional!==!0&&(be=x[se],(0,k.hu)(be,`invalid FieldDescriptorProto: oneof #${se} for field #${(P=F.number)!==null&&P!==void 0?P:-1} not found`)),be}function En(F,x){switch(x){case"proto2":return F.oneofIndex===void 0&&F.label===ze.OPTIONAL;case"proto3":return F.proto3Optional===!0;case"editions":return!1}}function An(F,x,P){const{repeatedFieldEncoding:se}=P(F.edition);if(se!=fn.PACKED)return!1;switch(x.type){case ye.STRING:case ye.BYTES:case ye.GROUP:case ye.MESSAGE:return!1;default:return!0}}function oa(F,x,P,se){var be,De,je,ct,Ze,Ot;switch(P.type){case ye.STRING:case ye.BYTES:case ye.GROUP:case ye.MESSAGE:return!1;default:switch(F.edition){case G.EDITION_PROTO2:return(De=(be=P.options)===null||be===void 0?void 0:be.packed)!==null&&De!==void 0?De:!1;case G.EDITION_PROTO3:return(ct=(je=P.options)===null||je===void 0?void 0:je.packed)!==null&&ct!==void 0?ct:!0;default:{const{repeatedFieldEncoding:Pt}=se(F.edition,(Ze=x==null?void 0:x.getFeatures())!==null&&Ze!==void 0?Ze:F.getFeatures(),(Ot=P.options)===null||Ot===void 0?void 0:Ot.features);return Pt==fn.PACKED}}}}const Dp={[ye.DOUBLE]:p.w.DOUBLE,[ye.FLOAT]:p.w.FLOAT,[ye.INT64]:p.w.INT64,[ye.UINT64]:p.w.UINT64,[ye.INT32]:p.w.INT32,[ye.FIXED64]:p.w.FIXED64,[ye.FIXED32]:p.w.FIXED32,[ye.BOOL]:p.w.BOOL,[ye.STRING]:p.w.STRING,[ye.GROUP]:void 0,[ye.MESSAGE]:void 0,[ye.BYTES]:p.w.BYTES,[ye.UINT32]:p.w.UINT32,[ye.ENUM]:void 0,[ye.SFIXED32]:p.w.SFIXED32,[ye.SFIXED64]:p.w.SFIXED64,[ye.SINT32]:p.w.SINT32,[ye.SINT64]:p.w.SINT64};function eo(F,x){if(!F)return{leadingDetached:[],sourcePath:x};for(const P of F.location)if(P.path.length===x.length&&!P.path.some((se,be)=>x[be]!==se))return{leadingDetached:P.leadingDetachedComments,leading:P.leadingComments,trailing:P.trailingComments,sourcePath:x};return{leadingDetached:[],sourcePath:x}}var li;(function(F){F[F.FileDescriptorProto_Package=2]="FileDescriptorProto_Package",F[F.FileDescriptorProto_MessageType=4]="FileDescriptorProto_MessageType",F[F.FileDescriptorProto_EnumType=5]="FileDescriptorProto_EnumType",F[F.FileDescriptorProto_Service=6]="FileDescriptorProto_Service",F[F.FileDescriptorProto_Extension=7]="FileDescriptorProto_Extension",F[F.FileDescriptorProto_Syntax=12]="FileDescriptorProto_Syntax",F[F.DescriptorProto_Field=2]="DescriptorProto_Field",F[F.DescriptorProto_NestedType=3]="DescriptorProto_NestedType",F[F.DescriptorProto_EnumType=4]="DescriptorProto_EnumType",F[F.DescriptorProto_Extension=6]="DescriptorProto_Extension",F[F.DescriptorProto_OneofDecl=8]="DescriptorProto_OneofDecl",F[F.EnumDescriptorProto_Value=2]="EnumDescriptorProto_Value",F[F.ServiceDescriptorProto_Method=2]="ServiceDescriptorProto_Method"})(li||(li={}));function Pa(){var F,x,P;const se=[];this.repeated&&se.push("repeated"),this.optional&&se.push("optional"),(this.kind==="extension"?this.file:this.parent.file).syntax=="proto2"&&this.proto.label===ze.REQUIRED&&se.push("required");let De;switch(this.fieldKind){case"scalar":De=p.w[this.scalar].toLowerCase();break;case"enum":De=this.enum.typeName;break;case"message":De=this.message.typeName;break;case"map":{const Ze=p.w[this.mapKey].toLowerCase();let Ot;switch(this.mapValue.kind){case"scalar":Ot=p.w[this.mapValue.scalar].toLowerCase();break;case"enum":Ot=this.mapValue.enum.typeName;break;case"message":Ot=this.mapValue.message.typeName;break}De=`map<${Ze}, ${Ot}>`;break}}se.push(`${De} ${this.name} = ${this.number}`);const je=[];((F=this.proto.options)===null||F===void 0?void 0:F.packed)!==void 0&&je.push(`packed = ${this.proto.options.packed.toString()}`);let ct=this.proto.defaultValue;return ct!==void 0&&((this.proto.type==ye.BYTES||this.proto.type==ye.STRING)&&(ct='"'+ct.replace('"','\\"')+'"'),je.push(`default = ${ct}`)),this.jsonName!==void 0&&je.push(`json_name = "${this.jsonName}"`),((x=this.proto.options)===null||x===void 0?void 0:x.jstype)!==void 0&&je.push(`jstype = ${de[this.proto.options.jstype]}`),((P=this.proto.options)===null||P===void 0?void 0:P.deprecated)===!0&&je.push("deprecated = true"),je.length>0&&se.push("["+je.join(", ")+"]"),se.join(" ")}function Pp(){const F=this.proto.defaultValue;if(F!==void 0)switch(this.fieldKind){case"enum":return qt(this.enum,F);case"scalar":return Re(this.scalar,F);default:return}}function kO(...F){const x={},P={},se={},be={add(De){if("fields"in De){if(!this.findMessage(De.typeName)){x[De.typeName]=De;for(const je of De.fields.list())je.kind=="message"?this.add(je.T):je.kind=="map"&&je.V.kind=="message"?this.add(je.V.T):je.kind=="enum"&&this.add(je.T)}}else if("methods"in De){if(!this.findService(De.typeName)){se[De.typeName]=De;for(const je of Object.values(De.methods))this.add(je.I),this.add(je.O)}}else P[De.typeName]=De},findMessage(De){return x[De]},findEnum(De){return P[De]},findService(De){return se[De]}};for(const De of F)be.add(De);return be}class aa extends le.v{constructor(x){super(),this.seconds=R.q.zero,this.nanos=0,c.w.util.initPartial(x,this)}fromJson(x,P){if(typeof x!="string")throw new Error(`cannot decode google.protobuf.Timestamp from JSON: ${c.w.json.debug(x)}`);const se=x.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!se)throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");const be=Date.parse(se[1]+"-"+se[2]+"-"+se[3]+"T"+se[4]+":"+se[5]+":"+se[6]+(se[8]?se[8]:"Z"));if(Number.isNaN(be))throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");if(beDate.parse("9999-12-31T23:59:59Z"))throw new Error("cannot decode message google.protobuf.Timestamp from JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive");return this.seconds=R.q.parse(be/1e3),this.nanos=0,se[7]&&(this.nanos=parseInt("1"+se[7]+"0".repeat(9-se[7].length))-1e9),this}toJson(x){const P=Number(this.seconds)*1e3;if(PDate.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 se="Z";if(this.nanos>0){const be=(this.nanos+1e9).toString().substring(1);be.substring(3)==="000000"?se="."+be.substring(0,3)+"Z":be.substring(6)==="000"?se="."+be.substring(0,6)+"Z":se="."+be+"Z"}return new Date(P).toISOString().replace(".000Z",se)}toDate(){return new Date(Number(this.seconds)*1e3+Math.ceil(this.nanos/1e6))}static now(){return aa.fromDate(new Date)}static fromDate(x){const P=x.getTime();return new aa({seconds:R.q.parse(Math.floor(P/1e3)),nanos:P%1e3*1e6})}static fromBinary(x,P){return new aa().fromBinary(x,P)}static fromJson(x,P){return new aa().fromJson(x,P)}static fromJsonString(x,P){return new aa().fromJsonString(x,P)}static equals(x,P){return c.w.util.equals(aa,x,P)}}aa.runtime=c.w,aa.typeName="google.protobuf.Timestamp",aa.fields=c.w.util.newFieldList(()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]);class yr extends le.v{constructor(x){super(),this.seconds=R.q.zero,this.nanos=0,c.w.util.initPartial(x,this)}fromJson(x,P){if(typeof x!="string")throw new Error(`cannot decode google.protobuf.Duration from JSON: ${c.w.json.debug(x)}`);const se=x.match(/^(-?[0-9]+)(?:\.([0-9]+))?s/);if(se===null)throw new Error(`cannot decode google.protobuf.Duration from JSON: ${c.w.json.debug(x)}`);const be=Number(se[1]);if(be>315576e6||be<-315576e6)throw new Error(`cannot decode google.protobuf.Duration from JSON: ${c.w.json.debug(x)}`);if(this.seconds=R.q.parse(be),typeof se[2]=="string"){const De=se[2]+"0".repeat(9-se[2].length);this.nanos=parseInt(De),(be<0||Object.is(be,-0))&&(this.nanos=-this.nanos)}return this}toJson(x){if(Number(this.seconds)>315576e6||Number(this.seconds)<-315576e6)throw new Error("cannot encode google.protobuf.Duration to JSON: value out of range");let P=this.seconds.toString();if(this.nanos!==0){let se=Math.abs(this.nanos).toString();se="0".repeat(9-se.length)+se,se.substring(3)==="000000"?se=se.substring(0,3):se.substring(6)==="000"&&(se=se.substring(0,6)),P+="."+se,this.nanos<0&&Number(this.seconds)==0&&(P="-"+P)}return P+"s"}static fromBinary(x,P){return new yr().fromBinary(x,P)}static fromJson(x,P){return new yr().fromJson(x,P)}static fromJsonString(x,P){return new yr().fromJsonString(x,P)}static equals(x,P){return c.w.util.equals(yr,x,P)}}yr.runtime=c.w,yr.typeName="google.protobuf.Duration",yr.fields=c.w.util.newFieldList(()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]);var Lp=u(733);class Es extends le.v{constructor(x){super(),c.w.util.initPartial(x,this)}static fromBinary(x,P){return new Es().fromBinary(x,P)}static fromJson(x,P){return new Es().fromJson(x,P)}static fromJsonString(x,P){return new Es().fromJsonString(x,P)}static equals(x,P){return c.w.util.equals(Es,x,P)}}Es.runtime=c.w,Es.typeName="google.protobuf.Empty",Es.fields=c.w.util.newFieldList(()=>[]);class Ss extends le.v{constructor(x){super(),this.paths=[],c.w.util.initPartial(x,this)}toJson(x){function P(se){let be=!1;const De=[];for(let je=0;je{if(se.match(/_[0-9]?_/g)||se.match(/[A-Z]/g))throw new Error('cannot encode google.protobuf.FieldMask to JSON: lowerCamelCase of path name "'+se+'" is irreversible');return P(se)}).join(",")}fromJson(x,P){if(typeof x!="string")throw new Error("cannot decode google.protobuf.FieldMask from JSON: "+c.w.json.debug(x));if(x==="")return this;function se(be){if(be.includes("_"))throw new Error("cannot decode google.protobuf.FieldMask from JSON: path names must be lowerCamelCase");const De=be.replace(/[A-Z]/g,je=>"_"+je.toLowerCase());return De[0]==="_"?De.substring(1):De}return this.paths=x.split(",").map(se),this}static fromBinary(x,P){return new Ss().fromBinary(x,P)}static fromJson(x,P){return new Ss().fromJson(x,P)}static fromJsonString(x,P){return new Ss().fromJsonString(x,P)}static equals(x,P){return c.w.util.equals(Ss,x,P)}}Ss.runtime=c.w,Ss.typeName="google.protobuf.FieldMask",Ss.fields=c.w.util.newFieldList(()=>[{no:1,name:"paths",kind:"scalar",T:9,repeated:!0}]);var to;(function(F){F[F.NULL_VALUE=0]="NULL_VALUE"})(to||(to={})),c.w.util.setEnumType(to,"google.protobuf.NullValue",[{no:0,name:"NULL_VALUE"}]);class Eo extends le.v{constructor(x){super(),this.fields={},c.w.util.initPartial(x,this)}toJson(x){const P={};for(const[se,be]of Object.entries(this.fields))P[se]=be.toJson(x);return P}fromJson(x,P){if(typeof x!="object"||x==null||Array.isArray(x))throw new Error("cannot decode google.protobuf.Struct from JSON "+c.w.json.debug(x));for(const[se,be]of Object.entries(x))this.fields[se]=Mr.fromJson(be);return this}static fromBinary(x,P){return new Eo().fromBinary(x,P)}static fromJson(x,P){return new Eo().fromJson(x,P)}static fromJsonString(x,P){return new Eo().fromJsonString(x,P)}static equals(x,P){return c.w.util.equals(Eo,x,P)}}Eo.runtime=c.w,Eo.typeName="google.protobuf.Struct",Eo.fields=c.w.util.newFieldList(()=>[{no:1,name:"fields",kind:"map",K:9,V:{kind:"message",T:Mr}}]);class Mr extends le.v{constructor(x){super(),this.kind={case:void 0},c.w.util.initPartial(x,this)}toJson(x){switch(this.kind.case){case"nullValue":return null;case"numberValue":if(!Number.isFinite(this.kind.value))throw new Error("google.protobuf.Value cannot be NaN or Infinity");return this.kind.value;case"boolValue":return this.kind.value;case"stringValue":return this.kind.value;case"structValue":case"listValue":return this.kind.value.toJson(Object.assign(Object.assign({},x),{emitDefaultValues:!0}))}throw new Error("google.protobuf.Value must have a value")}fromJson(x,P){switch(typeof x){case"number":this.kind={case:"numberValue",value:x};break;case"string":this.kind={case:"stringValue",value:x};break;case"boolean":this.kind={case:"boolValue",value:x};break;case"object":x===null?this.kind={case:"nullValue",value:to.NULL_VALUE}:Array.isArray(x)?this.kind={case:"listValue",value:no.fromJson(x)}:this.kind={case:"structValue",value:Eo.fromJson(x)};break;default:throw new Error("cannot decode google.protobuf.Value from JSON "+c.w.json.debug(x))}return this}static fromBinary(x,P){return new Mr().fromBinary(x,P)}static fromJson(x,P){return new Mr().fromJson(x,P)}static fromJsonString(x,P){return new Mr().fromJsonString(x,P)}static equals(x,P){return c.w.util.equals(Mr,x,P)}}Mr.runtime=c.w,Mr.typeName="google.protobuf.Value",Mr.fields=c.w.util.newFieldList(()=>[{no:1,name:"null_value",kind:"enum",T:c.w.getEnumType(to),oneof:"kind"},{no:2,name:"number_value",kind:"scalar",T:1,oneof:"kind"},{no:3,name:"string_value",kind:"scalar",T:9,oneof:"kind"},{no:4,name:"bool_value",kind:"scalar",T:8,oneof:"kind"},{no:5,name:"struct_value",kind:"message",T:Eo,oneof:"kind"},{no:6,name:"list_value",kind:"message",T:no,oneof:"kind"}]);class no extends le.v{constructor(x){super(),this.values=[],c.w.util.initPartial(x,this)}toJson(x){return this.values.map(P=>P.toJson())}fromJson(x,P){if(!Array.isArray(x))throw new Error("cannot decode google.protobuf.ListValue from JSON "+c.w.json.debug(x));for(let se of x)this.values.push(Mr.fromJson(se));return this}static fromBinary(x,P){return new no().fromBinary(x,P)}static fromJson(x,P){return new no().fromJson(x,P)}static fromJsonString(x,P){return new no().fromJsonString(x,P)}static equals(x,P){return c.w.util.equals(no,x,P)}}no.runtime=c.w,no.typeName="google.protobuf.ListValue",no.fields=c.w.util.newFieldList(()=>[{no:1,name:"values",kind:"message",T:Mr,repeated:!0}]);var zl=u(609);class zo extends le.v{constructor(x){super(),this.value=0,c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.DOUBLE,this.value,!0)}fromJson(x,P){try{this.value=c.w.json.readScalar(p.w.DOUBLE,x)}catch(se){let be='cannot decode message google.protobuf.DoubleValue from JSON"';throw se instanceof Error&&se.message.length>0&&(be+=`: ${se.message}`),new Error(be)}return this}static fromBinary(x,P){return new zo().fromBinary(x,P)}static fromJson(x,P){return new zo().fromJson(x,P)}static fromJsonString(x,P){return new zo().fromJsonString(x,P)}static equals(x,P){return c.w.util.equals(zo,x,P)}}zo.runtime=c.w,zo.typeName="google.protobuf.DoubleValue",zo.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:1}]),zo.fieldWrapper={wrapField(F){return new zo({value:F})},unwrapField(F){return F.value}};class So extends le.v{constructor(x){super(),this.value=0,c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.FLOAT,this.value,!0)}fromJson(x,P){try{this.value=c.w.json.readScalar(p.w.FLOAT,x)}catch(se){let be='cannot decode message google.protobuf.FloatValue from JSON"';throw se instanceof Error&&se.message.length>0&&(be+=`: ${se.message}`),new Error(be)}return this}static fromBinary(x,P){return new So().fromBinary(x,P)}static fromJson(x,P){return new So().fromJson(x,P)}static fromJsonString(x,P){return new So().fromJsonString(x,P)}static equals(x,P){return c.w.util.equals(So,x,P)}}So.runtime=c.w,So.typeName="google.protobuf.FloatValue",So.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:2}]),So.fieldWrapper={wrapField(F){return new So({value:F})},unwrapField(F){return F.value}};class Bi extends le.v{constructor(x){super(),this.value=R.q.zero,c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.INT64,this.value,!0)}fromJson(x,P){try{this.value=c.w.json.readScalar(p.w.INT64,x)}catch(se){let be='cannot decode message google.protobuf.Int64Value from JSON"';throw se instanceof Error&&se.message.length>0&&(be+=`: ${se.message}`),new Error(be)}return this}static fromBinary(x,P){return new Bi().fromBinary(x,P)}static fromJson(x,P){return new Bi().fromJson(x,P)}static fromJsonString(x,P){return new Bi().fromJsonString(x,P)}static equals(x,P){return c.w.util.equals(Bi,x,P)}}Bi.runtime=c.w,Bi.typeName="google.protobuf.Int64Value",Bi.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:3}]),Bi.fieldWrapper={wrapField(F){return new Bi({value:F})},unwrapField(F){return F.value}};class mr extends le.v{constructor(x){super(),this.value=R.q.zero,c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.UINT64,this.value,!0)}fromJson(x,P){try{this.value=c.w.json.readScalar(p.w.UINT64,x)}catch(se){let be='cannot decode message google.protobuf.UInt64Value from JSON"';throw se instanceof Error&&se.message.length>0&&(be+=`: ${se.message}`),new Error(be)}return this}static fromBinary(x,P){return new mr().fromBinary(x,P)}static fromJson(x,P){return new mr().fromJson(x,P)}static fromJsonString(x,P){return new mr().fromJsonString(x,P)}static equals(x,P){return c.w.util.equals(mr,x,P)}}mr.runtime=c.w,mr.typeName="google.protobuf.UInt64Value",mr.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:4}]),mr.fieldWrapper={wrapField(F){return new mr({value:F})},unwrapField(F){return F.value}};class xr extends le.v{constructor(x){super(),this.value=0,c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.INT32,this.value,!0)}fromJson(x,P){try{this.value=c.w.json.readScalar(p.w.INT32,x)}catch(se){let be='cannot decode message google.protobuf.Int32Value from JSON"';throw se instanceof Error&&se.message.length>0&&(be+=`: ${se.message}`),new Error(be)}return this}static fromBinary(x,P){return new xr().fromBinary(x,P)}static fromJson(x,P){return new xr().fromJson(x,P)}static fromJsonString(x,P){return new xr().fromJsonString(x,P)}static equals(x,P){return c.w.util.equals(xr,x,P)}}xr.runtime=c.w,xr.typeName="google.protobuf.Int32Value",xr.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:5}]),xr.fieldWrapper={wrapField(F){return new xr({value:F})},unwrapField(F){return F.value}};class $r extends le.v{constructor(x){super(),this.value=0,c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.UINT32,this.value,!0)}fromJson(x,P){try{this.value=c.w.json.readScalar(p.w.UINT32,x)}catch(se){let be='cannot decode message google.protobuf.UInt32Value from JSON"';throw se instanceof Error&&se.message.length>0&&(be+=`: ${se.message}`),new Error(be)}return this}static fromBinary(x,P){return new $r().fromBinary(x,P)}static fromJson(x,P){return new $r().fromJson(x,P)}static fromJsonString(x,P){return new $r().fromJsonString(x,P)}static equals(x,P){return c.w.util.equals($r,x,P)}}$r.runtime=c.w,$r.typeName="google.protobuf.UInt32Value",$r.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:13}]),$r.fieldWrapper={wrapField(F){return new $r({value:F})},unwrapField(F){return F.value}};class Vo extends le.v{constructor(x){super(),this.value=!1,c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.BOOL,this.value,!0)}fromJson(x,P){try{this.value=c.w.json.readScalar(p.w.BOOL,x)}catch(se){let be='cannot decode message google.protobuf.BoolValue from JSON"';throw se instanceof Error&&se.message.length>0&&(be+=`: ${se.message}`),new Error(be)}return this}static fromBinary(x,P){return new Vo().fromBinary(x,P)}static fromJson(x,P){return new Vo().fromJson(x,P)}static fromJsonString(x,P){return new Vo().fromJsonString(x,P)}static equals(x,P){return c.w.util.equals(Vo,x,P)}}Vo.runtime=c.w,Vo.typeName="google.protobuf.BoolValue",Vo.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:8}]),Vo.fieldWrapper={wrapField(F){return new Vo({value:F})},unwrapField(F){return F.value}};class Ui extends le.v{constructor(x){super(),this.value="",c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.STRING,this.value,!0)}fromJson(x,P){try{this.value=c.w.json.readScalar(p.w.STRING,x)}catch(se){let be='cannot decode message google.protobuf.StringValue from JSON"';throw se instanceof Error&&se.message.length>0&&(be+=`: ${se.message}`),new Error(be)}return this}static fromBinary(x,P){return new Ui().fromBinary(x,P)}static fromJson(x,P){return new Ui().fromJson(x,P)}static fromJsonString(x,P){return new Ui().fromJsonString(x,P)}static equals(x,P){return c.w.util.equals(Ui,x,P)}}Ui.runtime=c.w,Ui.typeName="google.protobuf.StringValue",Ui.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:9}]),Ui.fieldWrapper={wrapField(F){return new Ui({value:F})},unwrapField(F){return F.value}};class Kt extends le.v{constructor(x){super(),this.value=new Uint8Array(0),c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.BYTES,this.value,!0)}fromJson(x,P){try{this.value=c.w.json.readScalar(p.w.BYTES,x)}catch(se){let be='cannot decode message google.protobuf.BytesValue from JSON"';throw se instanceof Error&&se.message.length>0&&(be+=`: ${se.message}`),new Error(be)}return this}static fromBinary(x,P){return new Kt().fromBinary(x,P)}static fromJson(x,P){return new Kt().fromJson(x,P)}static fromJsonString(x,P){return new Kt().fromJsonString(x,P)}static equals(x,P){return c.w.util.equals(Kt,x,P)}}Kt.runtime=c.w,Kt.typeName="google.protobuf.BytesValue",Kt.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:12}]),Kt.fieldWrapper={wrapField(F){return new Kt({value:F})},unwrapField(F){return F.value}};const Cr=[Lp.I,yr,Es,Ss,Eo,Mr,no,aa,yr,zo,So,Bi,xr,$r,mr,Vo,Ui,Kt],Mp=[(0,zl.V3)(to)];function tf(F,x=!0){const P=F instanceof Uint8Array||F instanceof ue?Wt(F):F,se={},be={},De={};if(x){for(const je of Cr)be[je.typeName]=je;for(const je of Mp)se[je.typeName]=je}return{findEnum(je){const ct=se[je];if(ct)return ct;const Ze=P.enums.get(je);if(!Ze)return;const Pt=(Ze.file.syntax=="proto3"?c.w:E).makeEnumType(je,Ze.values.map(bn=>({no:bn.number,name:bn.name,localName:(0,v.r1)(bn)})),{});return se[je]=Pt,Pt},findMessage(je){const ct=be[je];if(ct)return ct;const Ze=P.messages.get(je);if(!Ze)return;const Ot=Ze.file.syntax=="proto3"?c.w:E,Pt=[],bn=Ot.makeMessageType(je,()=>Pt,{localName:(0,v.r1)(Ze)});be[je]=bn;for(const Or of Ze.fields){const Sn=Ho(Or,this);Pt.push(Sn)}return bn},findService(je){const ct=De[je];if(ct)return ct;const Ze=P.services.get(je);if(!Ze)return;const Ot={};for(const Pt of Ze.methods){const bn=this.findMessage(Pt.input.typeName),Or=this.findMessage(Pt.output.typeName);(0,k.hu)(bn,`message "${Pt.input.typeName}" for ${Pt.toString()} not found`),(0,k.hu)(Or,`output message "${Pt.output.typeName}" for ${Pt.toString()} not found`),Ot[(0,v.r1)(Pt)]={name:Pt.name,I:bn,O:Or,kind:Pt.methodKind,idempotency:Pt.idempotency}}return De[je]={typeName:Ze.typeName,methods:Ot}}}}function Ho(F,x){switch(F.fieldKind){case"map":return Vl(F,x);case"message":return nf(F,x);case"enum":{const P=Hl(F,x);return P.default=F.getDefaultValue(),P}case"scalar":{const P=ju(F);return P.default=F.getDefaultValue(),P}}}function Vl(F,x){const P={kind:"map",no:F.number,name:F.name,jsonName:F.jsonName,K:F.mapKey};if(F.mapValue.message){const se=x.findMessage(F.mapValue.message.typeName);return(0,k.hu)(se,`message "${F.mapValue.message.typeName}" for ${F.toString()} not found`),Object.assign(Object.assign({},P),{V:{kind:"message",T:se}})}if(F.mapValue.enum){const se=x.findEnum(F.mapValue.enum.typeName);return(0,k.hu)(se,`enum "${F.mapValue.enum.typeName}" for ${F.toString()} not found`),Object.assign(Object.assign({},P),{V:{kind:"enum",T:se}})}return Object.assign(Object.assign({},P),{V:{kind:"scalar",T:F.mapValue.scalar}})}function ju(F){const x=F.longType==p.p.STRING?{L:p.p.STRING}:{},P=Object.assign({kind:"scalar",no:F.number,name:F.name,jsonName:F.jsonName,T:F.scalar},x);return F.repeated?Object.assign(Object.assign({},P),{repeated:!0,packed:F.packed,oneof:void 0,T:F.scalar}):F.oneof?Object.assign(Object.assign({},P),{oneof:F.oneof.name}):F.optional?Object.assign(Object.assign({},P),{opt:!0}):P}function nf(F,x){const P=x.findMessage(F.message.typeName);(0,k.hu)(P,`message "${F.message.typeName}" for ${F.toString()} not found`);const se={kind:"message",no:F.number,name:F.name,jsonName:F.jsonName,T:P,delimited:F.proto.type==ye.GROUP};return F.repeated?Object.assign(Object.assign({},se),{repeated:!0,packed:F.packed,oneof:void 0}):F.oneof?Object.assign(Object.assign({},se),{oneof:F.oneof.name}):F.optional?Object.assign(Object.assign({},se),{opt:!0}):se}function Hl(F,x){const P=x.findEnum(F.enum.typeName);(0,k.hu)(P,`enum "${F.enum.typeName}" for ${F.toString()} not found`);const se={kind:"enum",no:F.number,name:F.name,jsonName:F.jsonName,T:P};return F.repeated?Object.assign(Object.assign({},se),{repeated:!0,packed:F.packed,oneof:void 0}):F.oneof?Object.assign(Object.assign({},se),{oneof:F.oneof.name}):F.optional?Object.assign(Object.assign({},se),{opt:!0}):se}function $p(F){if(!(F instanceof le.v))return F;const x=F.getType(),P={};for(const se of x.fields.byMember()){const be=F[se.localName];let De;if(se.repeated)De=be.map(je=>La(je));else if(se.kind=="map"){De={};for(const[je,ct]of Object.entries(be))De[je]=La(ct)}else se.kind=="oneof"?De=se.findField(be.case)?{case:be.case,value:La(be.value)}:{case:void 0}:De=La(be);P[se.localName]=De}return P}function La(F){if(F===void 0)return F;if(F instanceof le.v)return $p(F);if(F instanceof Uint8Array){const x=new Uint8Array(F.byteLength);return x.set(F),x}return F}class Wo extends le.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,P){return new Wo().fromBinary(x,P)}static fromJson(x,P){return new Wo().fromJson(x,P)}static fromJsonString(x,P){return new Wo().fromJsonString(x,P)}static equals(x,P){return E.util.equals(Wo,x,P)}}Wo.runtime=E,Wo.typeName="google.protobuf.compiler.Version",Wo.fields=E.util.newFieldList(()=>[{no:1,name:"major",kind:"scalar",T:5,opt:!0},{no:2,name:"minor",kind:"scalar",T:5,opt:!0},{no:3,name:"patch",kind:"scalar",T:5,opt:!0},{no:4,name:"suffix",kind:"scalar",T:9,opt:!0}]);class Qo extends le.v{constructor(x){super(),this.fileToGenerate=[],this.protoFile=[],this.sourceFileDescriptors=[],E.util.initPartial(x,this)}static fromBinary(x,P){return new Qo().fromBinary(x,P)}static fromJson(x,P){return new Qo().fromJson(x,P)}static fromJsonString(x,P){return new Qo().fromJsonString(x,P)}static equals(x,P){return E.util.equals(Qo,x,P)}}Qo.runtime=E,Qo.typeName="google.protobuf.compiler.CodeGeneratorRequest",Qo.fields=E.util.newFieldList(()=>[{no:1,name:"file_to_generate",kind:"scalar",T:9,repeated:!0},{no:2,name:"parameter",kind:"scalar",T:9,opt:!0},{no:15,name:"proto_file",kind:"message",T:ge,repeated:!0},{no:17,name:"source_file_descriptors",kind:"message",T:ge,repeated:!0},{no:3,name:"compiler_version",kind:"message",T:Wo,opt:!0}]);class ui extends le.v{constructor(x){super(),this.file=[],E.util.initPartial(x,this)}static fromBinary(x,P){return new ui().fromBinary(x,P)}static fromJson(x,P){return new ui().fromJson(x,P)}static fromJsonString(x,P){return new ui().fromJsonString(x,P)}static equals(x,P){return E.util.equals(ui,x,P)}}ui.runtime=E,ui.typeName="google.protobuf.compiler.CodeGeneratorResponse",ui.fields=E.util.newFieldList(()=>[{no:1,name:"error",kind:"scalar",T:9,opt:!0},{no:2,name:"supported_features",kind:"scalar",T:4,opt:!0},{no:15,name:"file",kind:"message",T:To,repeated:!0}]);var Wl;(function(F){F[F.NONE=0]="NONE",F[F.PROTO3_OPTIONAL=1]="PROTO3_OPTIONAL",F[F.SUPPORTS_EDITIONS=2]="SUPPORTS_EDITIONS"})(Wl||(Wl={})),E.util.setEnumType(Wl,"google.protobuf.compiler.CodeGeneratorResponse.Feature",[{no:0,name:"FEATURE_NONE"},{no:1,name:"FEATURE_PROTO3_OPTIONAL"},{no:2,name:"FEATURE_SUPPORTS_EDITIONS"}]);class To extends le.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,P){return new To().fromBinary(x,P)}static fromJson(x,P){return new To().fromJson(x,P)}static fromJsonString(x,P){return new To().fromJsonString(x,P)}static equals(x,P){return E.util.equals(To,x,P)}}To.runtime=E,To.typeName="google.protobuf.compiler.CodeGeneratorResponse.File",To.fields=E.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"insertion_point",kind:"scalar",T:9,opt:!0},{no:15,name:"content",kind:"scalar",T:9,opt:!0},{no:16,name:"generated_code_info",kind:"message",T:$t,opt:!0}]);class sa extends le.v{constructor(x){super(),this.fileName="",c.w.util.initPartial(x,this)}static fromBinary(x,P){return new sa().fromBinary(x,P)}static fromJson(x,P){return new sa().fromJson(x,P)}static fromJsonString(x,P){return new sa().fromJsonString(x,P)}static equals(x,P){return c.w.util.equals(sa,x,P)}}sa.runtime=c.w,sa.typeName="google.protobuf.SourceContext",sa.fields=c.w.util.newFieldList(()=>[{no:1,name:"file_name",kind:"scalar",T:9}]);var la;(function(F){F[F.PROTO2=0]="PROTO2",F[F.PROTO3=1]="PROTO3",F[F.EDITIONS=2]="EDITIONS"})(la||(la={})),c.w.util.setEnumType(la,"google.protobuf.Syntax",[{no:0,name:"SYNTAX_PROTO2"},{no:1,name:"SYNTAX_PROTO3"},{no:2,name:"SYNTAX_EDITIONS"}]);class wi extends le.v{constructor(x){super(),this.name="",this.fields=[],this.oneofs=[],this.options=[],this.syntax=la.PROTO2,this.edition="",c.w.util.initPartial(x,this)}static fromBinary(x,P){return new wi().fromBinary(x,P)}static fromJson(x,P){return new wi().fromJson(x,P)}static fromJsonString(x,P){return new wi().fromJsonString(x,P)}static equals(x,P){return c.w.util.equals(wi,x,P)}}wi.runtime=c.w,wi.typeName="google.protobuf.Type",wi.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"fields",kind:"message",T:Yo,repeated:!0},{no:3,name:"oneofs",kind:"scalar",T:9,repeated:!0},{no:4,name:"options",kind:"message",T:ki,repeated:!0},{no:5,name:"source_context",kind:"message",T:sa},{no:6,name:"syntax",kind:"enum",T:c.w.getEnumType(la)},{no:7,name:"edition",kind:"scalar",T:9}]);class Yo extends le.v{constructor(x){super(),this.kind=Rc.TYPE_UNKNOWN,this.cardinality=Ic.UNKNOWN,this.number=0,this.name="",this.typeUrl="",this.oneofIndex=0,this.packed=!1,this.options=[],this.jsonName="",this.defaultValue="",c.w.util.initPartial(x,this)}static fromBinary(x,P){return new Yo().fromBinary(x,P)}static fromJson(x,P){return new Yo().fromJson(x,P)}static fromJsonString(x,P){return new Yo().fromJsonString(x,P)}static equals(x,P){return c.w.util.equals(Yo,x,P)}}Yo.runtime=c.w,Yo.typeName="google.protobuf.Field",Yo.fields=c.w.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:c.w.getEnumType(Rc)},{no:2,name:"cardinality",kind:"enum",T:c.w.getEnumType(Ic)},{no:3,name:"number",kind:"scalar",T:5},{no:4,name:"name",kind:"scalar",T:9},{no:6,name:"type_url",kind:"scalar",T:9},{no:7,name:"oneof_index",kind:"scalar",T:5},{no:8,name:"packed",kind:"scalar",T:8},{no:9,name:"options",kind:"message",T:ki,repeated:!0},{no:10,name:"json_name",kind:"scalar",T:9},{no:11,name:"default_value",kind:"scalar",T:9}]);var Rc;(function(F){F[F.TYPE_UNKNOWN=0]="TYPE_UNKNOWN",F[F.TYPE_DOUBLE=1]="TYPE_DOUBLE",F[F.TYPE_FLOAT=2]="TYPE_FLOAT",F[F.TYPE_INT64=3]="TYPE_INT64",F[F.TYPE_UINT64=4]="TYPE_UINT64",F[F.TYPE_INT32=5]="TYPE_INT32",F[F.TYPE_FIXED64=6]="TYPE_FIXED64",F[F.TYPE_FIXED32=7]="TYPE_FIXED32",F[F.TYPE_BOOL=8]="TYPE_BOOL",F[F.TYPE_STRING=9]="TYPE_STRING",F[F.TYPE_GROUP=10]="TYPE_GROUP",F[F.TYPE_MESSAGE=11]="TYPE_MESSAGE",F[F.TYPE_BYTES=12]="TYPE_BYTES",F[F.TYPE_UINT32=13]="TYPE_UINT32",F[F.TYPE_ENUM=14]="TYPE_ENUM",F[F.TYPE_SFIXED32=15]="TYPE_SFIXED32",F[F.TYPE_SFIXED64=16]="TYPE_SFIXED64",F[F.TYPE_SINT32=17]="TYPE_SINT32",F[F.TYPE_SINT64=18]="TYPE_SINT64"})(Rc||(Rc={})),c.w.util.setEnumType(Rc,"google.protobuf.Field.Kind",[{no:0,name:"TYPE_UNKNOWN"},{no:1,name:"TYPE_DOUBLE"},{no:2,name:"TYPE_FLOAT"},{no:3,name:"TYPE_INT64"},{no:4,name:"TYPE_UINT64"},{no:5,name:"TYPE_INT32"},{no:6,name:"TYPE_FIXED64"},{no:7,name:"TYPE_FIXED32"},{no:8,name:"TYPE_BOOL"},{no:9,name:"TYPE_STRING"},{no:10,name:"TYPE_GROUP"},{no:11,name:"TYPE_MESSAGE"},{no:12,name:"TYPE_BYTES"},{no:13,name:"TYPE_UINT32"},{no:14,name:"TYPE_ENUM"},{no:15,name:"TYPE_SFIXED32"},{no:16,name:"TYPE_SFIXED64"},{no:17,name:"TYPE_SINT32"},{no:18,name:"TYPE_SINT64"}]);var Ic;(function(F){F[F.UNKNOWN=0]="UNKNOWN",F[F.OPTIONAL=1]="OPTIONAL",F[F.REQUIRED=2]="REQUIRED",F[F.REPEATED=3]="REPEATED"})(Ic||(Ic={})),c.w.util.setEnumType(Ic,"google.protobuf.Field.Cardinality",[{no:0,name:"CARDINALITY_UNKNOWN"},{no:1,name:"CARDINALITY_OPTIONAL"},{no:2,name:"CARDINALITY_REQUIRED"},{no:3,name:"CARDINALITY_REPEATED"}]);class Yn extends le.v{constructor(x){super(),this.name="",this.enumvalue=[],this.options=[],this.syntax=la.PROTO2,this.edition="",c.w.util.initPartial(x,this)}static fromBinary(x,P){return new Yn().fromBinary(x,P)}static fromJson(x,P){return new Yn().fromJson(x,P)}static fromJsonString(x,P){return new Yn().fromJsonString(x,P)}static equals(x,P){return c.w.util.equals(Yn,x,P)}}Yn.runtime=c.w,Yn.typeName="google.protobuf.Enum",Yn.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"enumvalue",kind:"message",T:Ma,repeated:!0},{no:3,name:"options",kind:"message",T:ki,repeated:!0},{no:4,name:"source_context",kind:"message",T:sa},{no:5,name:"syntax",kind:"enum",T:c.w.getEnumType(la)},{no:6,name:"edition",kind:"scalar",T:9}]);class Ma extends le.v{constructor(x){super(),this.name="",this.number=0,this.options=[],c.w.util.initPartial(x,this)}static fromBinary(x,P){return new Ma().fromBinary(x,P)}static fromJson(x,P){return new Ma().fromJson(x,P)}static fromJsonString(x,P){return new Ma().fromJsonString(x,P)}static equals(x,P){return c.w.util.equals(Ma,x,P)}}Ma.runtime=c.w,Ma.typeName="google.protobuf.EnumValue",Ma.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"number",kind:"scalar",T:5},{no:3,name:"options",kind:"message",T:ki,repeated:!0}]);class ki extends le.v{constructor(x){super(),this.name="",c.w.util.initPartial(x,this)}static fromBinary(x,P){return new ki().fromBinary(x,P)}static fromJson(x,P){return new ki().fromJson(x,P)}static fromJsonString(x,P){return new ki().fromJsonString(x,P)}static equals(x,P){return c.w.util.equals(ki,x,P)}}ki.runtime=c.w,ki.typeName="google.protobuf.Option",ki.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"value",kind:"message",T:Lp.I}]);class $a extends le.v{constructor(x){super(),this.name="",this.methods=[],this.options=[],this.version="",this.mixins=[],this.syntax=la.PROTO2,c.w.util.initPartial(x,this)}static fromBinary(x,P){return new $a().fromBinary(x,P)}static fromJson(x,P){return new $a().fromJson(x,P)}static fromJsonString(x,P){return new $a().fromJsonString(x,P)}static equals(x,P){return c.w.util.equals($a,x,P)}}$a.runtime=c.w,$a.typeName="google.protobuf.Api",$a.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"methods",kind:"message",T:ua,repeated:!0},{no:3,name:"options",kind:"message",T:ki,repeated:!0},{no:4,name:"version",kind:"scalar",T:9},{no:5,name:"source_context",kind:"message",T:sa},{no:6,name:"mixins",kind:"message",T:Fa,repeated:!0},{no:7,name:"syntax",kind:"enum",T:c.w.getEnumType(la)}]);class ua extends le.v{constructor(x){super(),this.name="",this.requestTypeUrl="",this.requestStreaming=!1,this.responseTypeUrl="",this.responseStreaming=!1,this.options=[],this.syntax=la.PROTO2,c.w.util.initPartial(x,this)}static fromBinary(x,P){return new ua().fromBinary(x,P)}static fromJson(x,P){return new ua().fromJson(x,P)}static fromJsonString(x,P){return new ua().fromJsonString(x,P)}static equals(x,P){return c.w.util.equals(ua,x,P)}}ua.runtime=c.w,ua.typeName="google.protobuf.Method",ua.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"request_type_url",kind:"scalar",T:9},{no:3,name:"request_streaming",kind:"scalar",T:8},{no:4,name:"response_type_url",kind:"scalar",T:9},{no:5,name:"response_streaming",kind:"scalar",T:8},{no:6,name:"options",kind:"message",T:ki,repeated:!0},{no:7,name:"syntax",kind:"enum",T:c.w.getEnumType(la)}]);class Fa extends le.v{constructor(x){super(),this.name="",this.root="",c.w.util.initPartial(x,this)}static fromBinary(x,P){return new Fa().fromBinary(x,P)}static fromJson(x,P){return new Fa().fromJson(x,P)}static fromJsonString(x,P){return new Fa().fromJsonString(x,P)}static equals(x,P){return c.w.util.equals(Fa,x,P)}}Fa.runtime=c.w,Fa.typeName="google.protobuf.Mixin",Fa.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"root",kind:"scalar",T:9}])},561:(s,l,u)=>{u.d(l,{v:()=>c});class c{equals(p){return this.getType().runtime.util.equals(this.getType(),this,p)}clone(){return this.getType().runtime.util.clone(this)}fromBinary(p,h){const m=this.getType(),y=m.runtime.bin,O=y.makeReadOptions(h);return y.readMessage(this,O.readerFactory(p),p.byteLength,O),this}fromJson(p,h){const m=this.getType(),y=m.runtime.json,O=y.makeReadOptions(h);return y.readMessage(m,p,O,this),this}fromJsonString(p,h){let m;try{m=JSON.parse(p)}catch(y){throw new Error(`cannot decode ${this.getType().typeName} from JSON: ${y instanceof Error?y.message:String(y)}`)}return this.fromJson(m,h)}toBinary(p){const h=this.getType(),m=h.runtime.bin,y=m.makeWriteOptions(p),O=y.writerFactory();return m.writeMessage(this,O,y),O.finish()}toJson(p){const h=this.getType(),m=h.runtime.json,y=m.makeWriteOptions(p);return m.writeMessage(this,y)}toJsonString(p){var h;const m=this.toJson(p);return JSON.stringify(m,null,(h=p==null?void 0:p.prettySpaces)!==null&&h!==void 0?h:0)}toJSON(){return this.toJson({emitDefaultValues:!0})}getType(){return Object.getPrototypeOf(this).constructor}}},120:(s,l,u)=>{u.d(l,{E_:()=>v,fp:()=>b,hu:()=>c,ug:()=>O});function c(S,k){if(!S)throw new Error(k)}const d=34028234663852886e22,p=-34028234663852886e22,h=4294967295,m=2147483647,y=-2147483648;function O(S){if(typeof S!="number")throw new Error("invalid int 32: "+typeof S);if(!Number.isInteger(S)||S>m||Sh||S<0)throw new Error("invalid uint 32: "+S)}function v(S){if(typeof S!="number")throw new Error("invalid float 32: "+typeof S);if(Number.isFinite(S)&&(S>d||S{u.d(l,{Jj:()=>V,NN:()=>U,gQ:()=>R,gY:()=>C,oQ:()=>B});var c=u(79),d=u(561),p=u(465),h=u(432),m=u(781),y=u(120);const O=Symbol("@bufbuild/protobuf/unknown-fields"),b={readUnknownFields:!0,readerFactory:z=>new c.oP(z)},v={writeUnknownFields:!0,writerFactory:()=>new c.Lt};function S(z){return z?Object.assign(Object.assign({},b),z):b}function k(z){return z?Object.assign(Object.assign({},v),z):v}function C(){return{makeReadOptions:S,makeWriteOptions:k,listUnknownFields(z){var Q;return(Q=z[O])!==null&&Q!==void 0?Q:[]},discardUnknownFields(z){delete z[O]},writeUnknownFields(z,Q){const Z=z[O];if(Z)for(const Y of Z)Q.tag(Y.no,Y.wireType).raw(Y.data)},onUnknownField(z,Q,X,Z){const Y=z;Array.isArray(Y[O])||(Y[O]=[]),Y[O].push({no:Q,wireType:X,data:Z})},readMessage(z,Q,X,Z,Y){const q=z.getType(),j=Y?Q.len:Q.pos+X;let le,Ee;for(;Q.pos0&&(Le=$),ge){let Qe=ue[he];if(Ee==c.TD.LengthDelimited&&Ne!=p.w.STRING&&Ne!=p.w.BYTES){let ye=Q.uint32()+Q.pos;for(;Q.pos{u.d(l,{V3:()=>p,be:()=>m,ut:()=>y,zg:()=>h});var c=u(120);const d=Symbol("@bufbuild/protobuf/enum-type");function p(b){const v=b[d];return(0,c.hu)(v,"missing enum type on enum object"),v}function h(b,v,S,k){b[d]=m(v,S.map(C=>({no:C.no,name:C.name,localName:b[C.no]})))}function m(b,v,S){const k=Object.create(null),C=Object.create(null),w=[];for(const E of v){const $=O(E);w.push($),k[E.name]=$,C[E.no]=$}return{typeName:b,values:w,findName(E){return k[E]},findNumber(E){return C[E]}}}function y(b,v,S){const k={};for(const C of v){const w=O(C);k[w.localName]=w.no,k[w.no]=w.localName}return h(k,b,v),k}function O(b){return"localName"in b?b:Object.assign(Object.assign({},b),{localName:b.name})}},501:(s,l,u)=>{u.d(l,{i:()=>c});class c{constructor(p,h){this._fields=p,this._normalizer=h}findJsonName(p){if(!this.jsonNames){const h={};for(const m of this.list())h[m.jsonName]=h[m.name]=m;this.jsonNames=h}return this.jsonNames[p]}find(p){if(!this.numbers){const h={};for(const m of this.list())h[m.no]=m;this.numbers=h}return this.numbers[p]}list(){return this.all||(this.all=this._normalizer(this._fields)),this.all}byNumber(){return this.numbersAsc||(this.numbersAsc=this.list().concat().sort((p,h)=>p.no-h.no)),this.numbersAsc}byMember(){if(!this.members){this.members=[];const p=this.members;let h;for(const m of this.list())m.oneof?m.oneof!==h&&(h=m.oneof,p.push(h)):p.push(m)}return this.members}}},432:(s,l,u)=>{u.d(l,{E:()=>p,w:()=>h});var c=u(561),d=u(465);function p(y,O){return O instanceof c.v||!y.fieldWrapper?O:y.fieldWrapper.wrapField(O)}function h(y){if(y.fieldKind==="message"&&!y.repeated&&y.oneof==null)return m[y.message.typeName]}const m={"google.protobuf.DoubleValue":d.w.DOUBLE,"google.protobuf.FloatValue":d.w.FLOAT,"google.protobuf.Int64Value":d.w.INT64,"google.protobuf.UInt64Value":d.w.UINT64,"google.protobuf.Int32Value":d.w.INT32,"google.protobuf.UInt32Value":d.w.UINT32,"google.protobuf.BoolValue":d.w.BOOL,"google.protobuf.StringValue":d.w.STRING,"google.protobuf.BytesValue":d.w.BYTES}},215:(s,l,u)=>{u.d(l,{o:()=>p});var c=u(504),d=u(120);class p{constructor(m){this.kind="oneof",this.repeated=!1,this.packed=!1,this.opt=!1,this.default=void 0,this.fields=[],this.name=m,this.localName=(0,c.uA)(m)}addField(m){(0,d.hu)(m.oneof===this,`field ${m.name} not one of ${this.name}`),this.fields.push(m)}findField(m){if(!this._lookup){this._lookup=Object.create(null);for(let y=0;y{u.d(l,{b:()=>S});var c=u(561),d=u(465),p=u(120),h=u(210),m=u(236);const y={ignoreUnknownFields:!1},O={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function b(D){return D?Object.assign(Object.assign({},y),D):y}function v(D){return D?Object.assign(Object.assign({},O),D):O}function S(D){const R=D(E,$);return{makeReadOptions:b,makeWriteOptions:v,readMessage(B,U,V,z){if(U==null||Array.isArray(U)||typeof U!="object")throw new Error(`cannot decode message ${B.typeName} from JSON: ${this.debug(U)}`);z=z??new B;const Q={};for(const[X,Z]of Object.entries(U)){const Y=B.fields.findJsonName(X);if(!Y){if(!V.ignoreUnknownFields)throw new Error(`cannot decode message ${B.typeName} from JSON: key "${X}" is unknown`);continue}let q=Y.localName,j=z;if(Y.oneof){if(Z===null&&Y.kind=="scalar")continue;const le=Q[Y.oneof.localName];if(le)throw new Error(`cannot decode message ${B.typeName} from JSON: multiple keys for oneof "${Y.oneof.name}" present: "${le}", "${X}"`);Q[Y.oneof.localName]=X,j=j[Y.oneof.localName]={case:q},q="value"}if(Y.repeated){if(Z===null)continue;if(!Array.isArray(Z))throw new Error(`cannot decode field ${B.typeName}.${Y.name} from JSON: ${this.debug(Z)}`);const le=j[q];for(const Ee of Z){if(Ee===null)throw new Error(`cannot decode field ${B.typeName}.${Y.name} from JSON: ${this.debug(Ee)}`);let G;switch(Y.kind){case"message":G=Y.T.fromJson(Ee,V);break;case"enum":if(G=w(Y.T,Ee,V.ignoreUnknownFields),G===void 0)continue;break;case"scalar":try{G=C(Y.T,Ee,Y.L)}catch(ue){let ge=`cannot decode field ${B.typeName}.${Y.name} from JSON: ${this.debug(Ee)}`;throw ue instanceof Error&&ue.message.length>0&&(ge+=`: ${ue.message}`),new Error(ge)}break}le.push(G)}}else if(Y.kind=="map"){if(Z===null)continue;if(Array.isArray(Z)||typeof Z!="object")throw new Error(`cannot decode field ${B.typeName}.${Y.name} from JSON: ${this.debug(Z)}`);const le=j[q];for(const[Ee,G]of Object.entries(Z)){if(G===null)throw new Error(`cannot decode field ${B.typeName}.${Y.name} from JSON: map value null`);let ue;switch(Y.V.kind){case"message":ue=Y.V.T.fromJson(G,V);break;case"enum":if(ue=w(Y.V.T,G,V.ignoreUnknownFields),ue===void 0)continue;break;case"scalar":try{ue=C(Y.V.T,G,d.p.BIGINT)}catch(ge){let he=`cannot decode map value for field ${B.typeName}.${Y.name} from JSON: ${this.debug(Z)}`;throw ge instanceof Error&&ge.message.length>0&&(he+=`: ${ge.message}`),new Error(he)}break}try{le[C(Y.K,Y.K==d.w.BOOL?Ee=="true"?!0:Ee=="false"?!1:Ee:Ee,d.p.BIGINT).toString()]=ue}catch(ge){let he=`cannot decode map key for field ${B.typeName}.${Y.name} from JSON: ${this.debug(Z)}`;throw ge instanceof Error&&ge.message.length>0&&(he+=`: ${ge.message}`),new Error(he)}}}else switch(Y.kind){case"message":const le=Y.T;if(Z===null&&le.typeName!="google.protobuf.Value"){if(Y.oneof)throw new Error(`cannot decode field ${B.typeName}.${Y.name} from JSON: null is invalid for oneof field "${X}"`);continue}j[q]instanceof c.v?j[q].fromJson(Z,V):(j[q]=le.fromJson(Z,V),le.fieldWrapper&&!Y.oneof&&(j[q]=le.fieldWrapper.unwrapField(j[q])));break;case"enum":const Ee=w(Y.T,Z,V.ignoreUnknownFields);Ee!==void 0&&(j[q]=Ee);break;case"scalar":try{j[q]=C(Y.T,Z,Y.L)}catch(G){let ue=`cannot decode field ${B.typeName}.${Y.name} from JSON: ${this.debug(Z)}`;throw G instanceof Error&&G.message.length>0&&(ue+=`: ${G.message}`),new Error(ue)}break}}return z},writeMessage(B,U){const V=B.getType(),z={};let Q;try{for(const X of V.fields.byMember()){let Z;if(X.kind=="oneof"){const Y=B[X.localName];if(Y.value===void 0)continue;if(Q=X.findField(Y.case),!Q)throw"oneof case not found: "+Y.case;Z=R(Q,Y.value,U)}else Q=X,Z=R(Q,B[Q.localName],U);Z!==void 0&&(z[U.useProtoFieldName?Q.name:Q.jsonName]=Z)}}catch(X){const Z=Q?`cannot encode field ${V.typeName}.${Q.name} to JSON`:`cannot encode message ${V.typeName} to JSON`,Y=X instanceof Error?X.message:String(X);throw new Error(Z+(Y.length>0?`: ${Y}`:""))}return z},readScalar:C,writeScalar:$,debug:k}}function k(D){if(D===null)return"null";switch(typeof D){case"object":return Array.isArray(D)?"array":"object";case"string":return D.length>100?"string":`"${D.split('"').join('\\"')}"`;default:return String(D)}}function C(D,R,B){switch(D){case d.w.DOUBLE:case d.w.FLOAT:if(R===null)return 0;if(R==="NaN")return Number.NaN;if(R==="Infinity")return Number.POSITIVE_INFINITY;if(R==="-Infinity")return Number.NEGATIVE_INFINITY;if(R===""||typeof R=="string"&&R.trim().length!==R.length||typeof R!="string"&&typeof R!="number")break;const U=Number(R);if(Number.isNaN(U)||!Number.isFinite(U))break;return D==d.w.FLOAT&&(0,p.E_)(U),U;case d.w.INT32:case d.w.FIXED32:case d.w.SFIXED32:case d.w.SINT32:case d.w.UINT32:if(R===null)return 0;let V;if(typeof R=="number"?V=R:typeof R=="string"&&R.length>0&&R.trim().length===R.length&&(V=Number(R)),V===void 0)break;return D==d.w.UINT32?(0,p.fp)(V):(0,p.ug)(V),V;case d.w.INT64:case d.w.SFIXED64:case d.w.SINT64:if(R===null)return h.q.zero;if(typeof R!="number"&&typeof R!="string")break;const z=h.q.parse(R);return B?z.toString():z;case d.w.FIXED64:case d.w.UINT64:if(R===null)return h.q.zero;if(typeof R!="number"&&typeof R!="string")break;const Q=h.q.uParse(R);return B?Q.toString():Q;case d.w.BOOL:if(R===null)return!1;if(typeof R!="boolean")break;return R;case d.w.STRING:if(R===null)return"";if(typeof R!="string")break;try{encodeURIComponent(R)}catch{throw new Error("invalid UTF8")}return R;case d.w.BYTES:if(R===null||R==="")return new Uint8Array(0);if(typeof R!="string")break;return m.W.dec(R)}throw new Error}function w(D,R,B){if(R===null)return 0;switch(typeof R){case"number":if(Number.isInteger(R))return R;break;case"string":const U=D.findName(R);if(U||B)return U==null?void 0:U.no;break}throw new Error(`cannot decode enum ${D.typeName} from JSON: ${k(R)}`)}function E(D,R,B,U){var V;if(R===void 0)return R;if(R===0&&!B)return;if(U)return R;if(D.typeName=="google.protobuf.NullValue")return null;const z=D.findNumber(R);return(V=z==null?void 0:z.name)!==null&&V!==void 0?V:R}function $(D,R,B){if(R!==void 0)switch(D){case d.w.INT32:case d.w.SFIXED32:case d.w.SINT32:case d.w.FIXED32:case d.w.UINT32:return(0,p.hu)(typeof R=="number"),R!=0||B?R:void 0;case d.w.FLOAT:case d.w.DOUBLE:return(0,p.hu)(typeof R=="number"),Number.isNaN(R)?"NaN":R===Number.POSITIVE_INFINITY?"Infinity":R===Number.NEGATIVE_INFINITY?"-Infinity":R!==0||B?R:void 0;case d.w.STRING:return(0,p.hu)(typeof R=="string"),R.length>0||B?R:void 0;case d.w.BOOL:return(0,p.hu)(typeof R=="boolean"),R||B?R:void 0;case d.w.UINT64:case d.w.FIXED64:case d.w.INT64:case d.w.SFIXED64:case d.w.SINT64:return(0,p.hu)(typeof R=="bigint"||typeof R=="string"||typeof R=="number"),B||R!=0?R.toString(10):void 0;case d.w.BYTES:return(0,p.hu)(R instanceof Uint8Array),B||R.byteLength>0?m.W.enc(R):void 0}}},504:(s,l,u)=>{u.d(l,{GD:()=>E,Rz:()=>d,Sm:()=>m,ll:()=>w,r1:()=>c,uA:()=>p,x1:()=>h});function c($){switch($.kind){case"field":return d($.name,$.oneof!==void 0);case"oneof":return p($.name);case"enum":case"message":case"service":{const D=$.file.proto.package,R=D===void 0?0:D.length+1,B=$.typeName.substring(R).replace(/\./g,"_");return w(E(B))}case"enum_value":{const D=$.parent.sharedPrefix;if(D===void 0)return $.name;const R=$.name.substring(D.length);return w(R)}case"rpc":{let D=$.name;return D.length==0?D:(D=D[0].toLowerCase()+D.substring(1),w(D))}}}function d($,D){const R=O($);return D?R:w(C(R))}function p($){return d($,!1)}const h=O;function m($,D){const R=y($)+"_";for(const B of D){if(!B.toLowerCase().startsWith(R))return;const U=B.substring(R.length);if(U.length==0||/^\d/.test(U))return}return R}function y($){return($.substring(0,1)+$.substring(1).replace(/[A-Z]/g,D=>"_"+D)).toLowerCase()}function O($){let D=!1;const R=[];for(let B=0;B<$.length;B++){let U=$.charAt(B);switch(U){case"_":D=!0;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":R.push(U),D=!1;break;default:D&&(D=!1,U=U.toUpperCase()),R.push(U);break}}return R.join("")}const b=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","false","finally","for","function","if","import","in","instanceof","new","null","return","super","switch","this","throw","true","try","typeof","var","void","while","with","yield","enum","implements","interface","let","package","private","protected","public","static","Object","bigint","number","boolean","string","object","globalThis","Uint8Array","Partial"]),v=new Set(["constructor","toString","toJSON","valueOf"]),S=new Set(["getType","clone","equals","fromBinary","fromJson","fromJsonString","toBinary","toJson","toJsonString","toObject"]),k=$=>`${$}$`,C=$=>S.has($)?k($):$,w=$=>v.has($)?k($):$,E=$=>b.has($)?k($):$},493:(s,l,u)=>{u.d(l,{F:()=>h});var c=u(609),d=u(561);function p(m,y,O,b){var v;const S=(v=b==null?void 0:b.localName)!==null&&v!==void 0?v:y.substring(y.lastIndexOf(".")+1),k={[S]:function(C){m.util.initFields(this),m.util.initPartial(C,this)}}[S];return Object.setPrototypeOf(k.prototype,new d.v),Object.assign(k,{runtime:m,typeName:y,fields:m.util.newFieldList(O),fromBinary(C,w){return new k().fromBinary(C,w)},fromJson(C,w){return new k().fromJson(C,w)},fromJsonString(C,w){return new k().fromJsonString(C,w)},equals(C,w){return m.util.equals(k,C,w)}}),k}function h(m,y,O,b){return{syntax:m,json:y,bin:O,util:b,makeMessageType(v,S,k){return p(this,v,S,k)},makeEnum:c.ut,makeEnumType:c.be,getEnumType:c.V3}}},781:(s,l,u)=>{u.d(l,{AA:()=>h,T1:()=>y,kY:()=>m});var c=u(465),d=u(79),p=u(210);function h(O,b,v){if(b===v)return!0;if(O==c.w.BYTES){if(!(b instanceof Uint8Array)||!(v instanceof Uint8Array)||b.length!==v.length)return!1;for(let S=0;S{u.d(l,{f:()=>m});var c=u(609),d=u(561),p=u(465),h=u(781);function m(){return{setEnumType:c.zg,initPartial(b,v){if(b===void 0)return;const S=v.getType();for(const k of S.fields.byMember()){const C=k.localName,w=v,E=b;if(E[C]!==void 0)switch(k.kind){case"oneof":const $=E[C].case;if($===void 0)continue;const D=k.findField($);let R=E[C].value;D&&D.kind=="message"&&!(R instanceof D.T)?R=new D.T(R):D&&D.kind==="scalar"&&D.T===p.w.BYTES&&(R=O(R)),w[C]={case:$,value:R};break;case"scalar":case"enum":let B=E[C];k.T===p.w.BYTES&&(B=k.repeated?B.map(O):O(B)),w[C]=B;break;case"map":switch(k.V.kind){case"scalar":case"enum":if(k.V.T===p.w.BYTES)for(const[z,Q]of Object.entries(E[C]))w[C][z]=O(Q);else Object.assign(w[C],E[C]);break;case"message":const V=k.V.T;for(const z of Object.keys(E[C])){let Q=E[C][z];V.fieldWrapper||(Q=new V(Q)),w[C][z]=Q}break}break;case"message":const U=k.T;if(k.repeated)w[C]=E[C].map(V=>V instanceof U?V:new U(V));else if(E[C]!==void 0){const V=E[C];U.fieldWrapper?U.typeName==="google.protobuf.BytesValue"?w[C]=O(V):w[C]=V:w[C]=V instanceof U?V:new U(V)}break}}},equals(b,v,S){return v===S?!0:!v||!S?!1:b.fields.byMember().every(k=>{const C=v[k.localName],w=S[k.localName];if(k.repeated){if(C.length!==w.length)return!1;switch(k.kind){case"message":return C.every((E,$)=>k.T.equals(E,w[$]));case"scalar":return C.every((E,$)=>(0,h.AA)(k.T,E,w[$]));case"enum":return C.every((E,$)=>(0,h.AA)(p.w.INT32,E,w[$]))}throw new Error(`repeated cannot contain ${k.kind}`)}switch(k.kind){case"message":return k.T.equals(C,w);case"enum":return(0,h.AA)(p.w.INT32,C,w);case"scalar":return(0,h.AA)(k.T,C,w);case"oneof":if(C.case!==w.case)return!1;const E=k.findField(C.case);if(E===void 0)return!0;switch(E.kind){case"message":return E.T.equals(C.value,w.value);case"enum":return(0,h.AA)(p.w.INT32,C.value,w.value);case"scalar":return(0,h.AA)(E.T,C.value,w.value)}throw new Error(`oneof cannot contain ${E.kind}`);case"map":const $=Object.keys(C).concat(Object.keys(w));switch(k.V.kind){case"message":const D=k.V.T;return $.every(B=>D.equals(C[B],w[B]));case"enum":return $.every(B=>(0,h.AA)(p.w.INT32,C[B],w[B]));case"scalar":const R=k.V.T;return $.every(B=>(0,h.AA)(R,C[B],w[B]))}break}})},clone(b){const v=b.getType(),S=new v,k=S;for(const C of v.fields.byMember()){const w=b[C.localName];let E;if(C.repeated)E=w.map(y);else if(C.kind=="map"){E=k[C.localName];for(const[$,D]of Object.entries(w))E[$]=y(D)}else C.kind=="oneof"?E=C.findField(w.case)?{case:w.case,value:y(w.value)}:{case:void 0}:E=y(w);k[C.localName]=E}return S}}}function y(b){if(b===void 0)return b;if(b instanceof d.v)return b.clone();if(b instanceof Uint8Array){const v=new Uint8Array(b.byteLength);return v.set(b),v}return b}function O(b){return b instanceof Uint8Array?b:new Uint8Array(b)}},236:(s,l,u)=>{u.d(l,{W:()=>p});let c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),d=[];for(let h=0;h>4,S=v,b=2;break;case 2:y[O++]=(S&15)<<4|(v&60)>>2,S=v,b=3;break;case 3:y[O++]=(S&3)<<6|v,b=0;break}}if(b==1)throw Error("invalid base64 string.");return y.subarray(0,O)},enc(h){let m="",y=0,O,b=0;for(let v=0;v>2],b=(O&3)<<4,y=1;break;case 1:m+=c[b|O>>4],b=(O&15)<<2,y=2;break;case 2:m+=c[b|O>>6],m+=c[O&63],y=0;break}return y&&(m+=c[b],m+="=",y==1&&(m+="=")),m}}},210:(s,l,u)=>{u.d(l,{q:()=>h});var c=u(120),d=u(818);function p(){const m=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof m.getBigInt64=="function"&&typeof m.getBigUint64=="function"&&typeof m.setBigInt64=="function"&&typeof m.setBigUint64=="function"&&(typeof process!="object"||typeof n!="object"||n.BUF_BIGINT_DISABLE!=="1")){const v=BigInt("-9223372036854775808"),S=BigInt("9223372036854775807"),k=BigInt("0"),C=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(w){const E=typeof w=="bigint"?w:BigInt(w);if(E>S||EC||E(0,c.hu)(/^-?[0-9]+$/.test(v),`int64 invalid: ${v}`),b=v=>(0,c.hu)(/^[0-9]+$/.test(v),`uint64 invalid: ${v}`);return{zero:"0",supported:!1,parse(v){return typeof v!="string"&&(v=v.toString()),O(v),v},uParse(v){return typeof v!="string"&&(v=v.toString()),b(v),v},enc(v){return typeof v!="string"&&(v=v.toString()),O(v),(0,d.CZ)(v)},uEnc(v){return typeof v!="string"&&(v=v.toString()),b(v),(0,d.CZ)(v)},dec(v,S){return(0,d.Ak)(v,S)},uDec(v,S){return(0,d.Fd)(v,S)}}}const h=p()},850:(s,l,u)=>{u.d(l,{w:()=>E});var c=u(493),d=u(465),p=u(744);function h(){return Object.assign(Object.assign({},(0,p.gY)()),{writeMessage(D,R,B){const U=D.getType();for(const V of U.fields.byNumber()){let z,Q=V.repeated,X=V.localName;if(V.oneof){const Z=D[V.oneof.localName];if(Z.case!==X)continue;z=Z.value}else z=D[X];switch(V.kind){case"scalar":case"enum":let Z=V.kind=="enum"?d.w.INT32:V.T;if(Q)if(V.packed)(0,p.Jj)(R,Z,V.no,z);else for(const Y of z)(0,p.NN)(R,Z,V.no,Y,!0);else z!==void 0&&(0,p.NN)(R,Z,V.no,z,!!V.oneof||V.opt);break;case"message":if(Q)for(const Y of z)(0,p.oQ)(R,B,V,Y);else(0,p.oQ)(R,B,V,z);break;case"map":for(const[Y,q]of Object.entries(z))(0,p.gQ)(R,B,V,Y,q);break}}return B.writeUnknownFields&&this.writeUnknownFields(D,R),R}})}var m=u(432),y=u(120),O=u(814);function b(){return(0,O.b)((D,R)=>function(U,V,z){if(U.kind=="map"){const Q={};switch(U.V.kind){case"scalar":for(const[Z,Y]of Object.entries(V)){const q=R(U.V.T,Y,!0);(0,y.hu)(q!==void 0),Q[Z.toString()]=q}break;case"message":for(const[Z,Y]of Object.entries(V))Q[Z.toString()]=Y.toJson(z);break;case"enum":const X=U.V.T;for(const[Z,Y]of Object.entries(V)){(0,y.hu)(Y===void 0||typeof Y=="number");const q=D(X,Y,!0,z.enumAsInteger);(0,y.hu)(q!==void 0),Q[Z.toString()]=q}break}return z.emitDefaultValues||Object.keys(Q).length>0?Q:void 0}else if(U.repeated){const Q=[];switch(U.kind){case"scalar":for(let X=0;X0?Q:void 0}else switch(U.kind){case"scalar":return R(U.T,V,!!U.oneof||U.opt||z.emitDefaultValues);case"enum":return D(U.T,V,!!U.oneof||U.opt||z.emitDefaultValues,z.enumAsInteger);case"message":return V!==void 0?(0,m.E)(U.T,V).toJson(z):void 0}})}var v=u(433),S=u(501),k=u(781),C=u(215),w=u(504);const E=(0,c.F)("proto3",b(),h(),Object.assign(Object.assign({},(0,v.f)()),{newFieldList(D){return new S.i(D,$)},initFields(D){for(const R of D.getType().fields.byMember()){if(R.opt)continue;const B=R.localName,U=D;if(R.repeated){U[B]=[];continue}switch(R.kind){case"oneof":U[B]={case:void 0};break;case"enum":U[B]=0;break;case"map":U[B]={};break;case"scalar":U[B]=(0,k.kY)(R.T,R.L);break}}}}));function $(D){var R,B,U,V;const z=[];let Q;for(const X of typeof D=="function"?D():D){const Z=X;if(Z.localName=(0,w.Rz)(X.name,X.oneof!==void 0),Z.jsonName=(R=X.jsonName)!==null&&R!==void 0?R:(0,w.x1)(X.name),Z.repeated=(B=X.repeated)!==null&&B!==void 0?B:!1,X.kind=="scalar"&&(Z.L=(U=X.L)!==null&&U!==void 0?U:d.p.BIGINT),X.oneof!==void 0){const Y=typeof X.oneof=="string"?X.oneof:X.oneof.name;(!Q||Q.name!=Y)&&(Q=new C.o(Y)),Z.oneof=Q,Q.addField(Z)}X.kind=="message"&&(Z.delimited=!1),Z.packed=(V=X.packed)!==null&&V!==void 0?V:X.kind=="enum"||X.kind=="scalar"&&X.T!=d.w.BYTES&&X.T!=d.w.STRING,z.push(Z)}return z}},328:(s,l,u)=>{u.d(l,{t:()=>c,w:()=>d});var c;(function(p){p[p.Unary=0]="Unary",p[p.ServerStreaming=1]="ServerStreaming",p[p.ClientStreaming=2]="ClientStreaming",p[p.BiDiStreaming=3]="BiDiStreaming"})(c||(c={}));var d;(function(p){p[p.NoSideEffects=1]="NoSideEffects",p[p.Idempotent=2]="Idempotent"})(d||(d={}))}},i={};function o(s){var l=i[s];if(l!==void 0)return l.exports;var u=i[s]={exports:{}};return r[s](u,u.exports,o),u.exports}o.d=(s,l)=>{for(var u in l)o.o(l,u)&&!o.o(s,u)&&Object.defineProperty(s,u,{enumerable:!0,get:l[u]})},o.o=(s,l)=>Object.prototype.hasOwnProperty.call(s,l),o.r=s=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})};var a={};return(()=>{o.r(a),o.d(a,{Change:()=>rf,Client:()=>PF,ClientEventType:()=>ja,ClientStatus:()=>Pc,Counter:()=>DO,DocEventType:()=>Ln,Document:()=>NF,DocumentSyncResultType:()=>Vp,EventSourceDevPanel:()=>jie,EventSourceSDK:()=>zie,Primitive:()=>Cr,StreamConnectionStatus:()=>af,SyncMode:()=>zu,Text:()=>NO,TimeTicket:()=>yr,Tree:()=>PO,converter:()=>Yl,default:()=>Wie});var s;(function(A){A[A.Trivial=0]="Trivial",A[A.Debug=1]="Debug",A[A.Info=2]="Info",A[A.Warn=3]="Warn",A[A.Error=4]="Error",A[A.Fatal=5]="Fatal"})(s||(s={}));let l=s.Info;const u={trivial:(...A)=>{l>s.Trivial||typeof console<"u"&&console.log("YORKIE T:",...A)},debug:(...A)=>{l>s.Debug||typeof console<"u"&&console.log("YORKIE D:",...A)},info:(...A)=>{l>s.Info||typeof console<"u"&&console.log("YORKIE I:",...A)},warn:(...A)=>{l>s.Warn||typeof console<"u"&&(typeof console.warn<"u"?console.warn("YORKIE W:",...A):console.log("YORKIE W:",...A))},error:(...A)=>{l>s.Error||typeof console<"u"&&(typeof console.error<"u"?console.error("YORKIE E:",...A):console.log("YORKIE E:",...A))},fatal:(A,...f)=>{throw typeof console<"u"&&(typeof console.error<"u"?console.error("YORKIE F:",...f):console.log("YORKIE F:",...f)),new Error(`YORKIE F: ${A}`)},isEnabled:A=>l<=A};function c(){return"xxxxxxxx-xxxx-4xxxy-xxxx-xxxxxxxxxxx".replace(/[xy]/g,A=>{const f=Math.random()*16|0;return(A==="x"?f:f&3|8).toString(16)})}const d=()=>{};class p{constructor(f){this.finalized=!1,this.observers=[];try{f(this)}catch(g){this.error(g)}}next(f){this.forEachObserver(g=>{g.next(f)})}error(f){this.forEachObserver(g=>{g.error(f)}),this.close(f)}complete(){this.forEachObserver(f=>{f.complete()}),this.close()}subscribe(f,g,T){let _;f||u.fatal("missing observer"),this.finalized&&u.fatal("observable is finalized due to previous error"),typeof f=="object"?_=f:_={next:f,error:g,complete:T},_.next===void 0&&(_.next=d),_.error===void 0&&(_.error=d),_.complete===void 0&&(_.complete=d);const H=c(),K=this.unsubscribeOne.bind(this,H);if(this.observers.push({subscriptionID:H,observer:_}),this.finalized)try{this.finalError?_.error(this.finalError):_.complete()}catch(oe){u.warn(oe)}return K}unsubscribeOne(f){var g;this.observers=(g=this.observers)===null||g===void 0?void 0:g.filter(T=>T.subscriptionID!==f)}forEachObserver(f){if(!this.finalized)for(let g=0;gf}}var m=o(328);function y(A,f){const g={};for(const[T,_]of Object.entries(A.methods)){const H=f(Object.assign(Object.assign({},_),{localName:T,service:A}));H!=null&&(g[T]=H)}return g}var O;(function(A){A[A.Canceled=1]="Canceled",A[A.Unknown=2]="Unknown",A[A.InvalidArgument=3]="InvalidArgument",A[A.DeadlineExceeded=4]="DeadlineExceeded",A[A.NotFound=5]="NotFound",A[A.AlreadyExists=6]="AlreadyExists",A[A.PermissionDenied=7]="PermissionDenied",A[A.ResourceExhausted=8]="ResourceExhausted",A[A.FailedPrecondition=9]="FailedPrecondition",A[A.Aborted=10]="Aborted",A[A.OutOfRange=11]="OutOfRange",A[A.Unimplemented=12]="Unimplemented",A[A.Internal=13]="Internal",A[A.Unavailable=14]="Unavailable",A[A.DataLoss=15]="DataLoss",A[A.Unauthenticated=16]="Unauthenticated"})(O||(O={}));var b=o(561);function v(A){const f=O[A];return typeof f!="string"?A.toString():f[0].toLowerCase()+f.substring(1).replace(/[A-Z]/g,g=>"_"+g.toLowerCase())}class S extends Error{constructor(f,g=O.Unknown,T,_,H){super(k(f,g)),this.name="ConnectError",Object.setPrototypeOf(this,new.target.prototype),this.rawMessage=f,this.code=g,this.metadata=new Headers(T??{}),this.details=_??[],this.cause=H}static from(f,g=O.Unknown){return f instanceof S?f:f instanceof Error?f.name=="AbortError"?new S(f.message,O.Canceled):new S(f.message,g,void 0,void 0,f):new S(String(f),g,void 0,void 0,f)}findDetails(f){const g="typeName"in f?{findMessage:_=>_===f.typeName?f:void 0}:f,T=[];for(const _ of this.details){if(_ instanceof b.v){g.findMessage(_.getType().typeName)&&T.push(_);continue}const H=g.findMessage(_.type);if(H)try{T.push(H.fromBinary(_.value))}catch{}}return T}}function k(A,f){return A.length?`[${v(f)}] ${A}`:`[${v(f)}]`}var C=function(A){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var f=A[Symbol.asyncIterator],g;return f?f.call(A):(A=typeof __values=="function"?__values(A):A[Symbol.iterator](),g={},T("next"),T("throw"),T("return"),g[Symbol.asyncIterator]=function(){return this},g);function T(H){g[H]=A[H]&&function(K){return new Promise(function(oe,Ce){K=A[H](K),_(oe,Ce,K.done,K.value)})}}function _(H,K,oe,Ce){Promise.resolve(Ce).then(function(Ve){H({value:Ve,done:oe})},K)}},w=function(A){return this instanceof w?(this.v=A,this):new w(A)},E=function(A,f,g){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var T=g.apply(A,f||[]),_,H=[];return _={},K("next"),K("throw"),K("return"),_[Symbol.asyncIterator]=function(){return this},_;function K(ft){T[ft]&&(_[ft]=function(an){return new Promise(function(In,Dn){H.push([ft,an,In,Dn])>1||oe(ft,an)})})}function oe(ft,an){try{Ce(T[ft](an))}catch(In){Ft(H[0][3],In)}}function Ce(ft){ft.value instanceof w?Promise.resolve(ft.value.v).then(Ve,yt):Ft(H[0][2],ft)}function Ve(ft){oe("next",ft)}function yt(ft){oe("throw",ft)}function Ft(ft,an){ft(an),H.shift(),H.length&&oe(H[0][0],H[0][1])}},$=function(A){var f,g;return f={},T("next"),T("throw",function(_){throw _}),T("return"),f[Symbol.iterator]=function(){return this},f;function T(_,H){f[_]=A[_]?function(K){return(g=!g)?{value:w(A[_](K)),done:!1}:H?H(K):K}:H}};function D(A){return E(this,arguments,function*(){yield w(yield*$(C(A)))})}var R=function(A){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var f=A[Symbol.asyncIterator],g;return f?f.call(A):(A=typeof __values=="function"?__values(A):A[Symbol.iterator](),g={},T("next"),T("throw"),T("return"),g[Symbol.asyncIterator]=function(){return this},g);function T(H){g[H]=A[H]&&function(K){return new Promise(function(oe,Ce){K=A[H](K),_(oe,Ce,K.done,K.value)})}}function _(H,K,oe,Ce){Promise.resolve(Ce).then(function(Ve){H({value:Ve,done:oe})},K)}},B=function(A){return this instanceof B?(this.v=A,this):new B(A)},U=function(A){var f,g;return f={},T("next"),T("throw",function(_){throw _}),T("return"),f[Symbol.iterator]=function(){return this},f;function T(_,H){f[_]=A[_]?function(K){return(g=!g)?{value:B(A[_](K)),done:!1}:H?H(K):K}:H}},V=function(A,f,g){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var T=g.apply(A,f||[]),_,H=[];return _={},K("next"),K("throw"),K("return"),_[Symbol.asyncIterator]=function(){return this},_;function K(ft){T[ft]&&(_[ft]=function(an){return new Promise(function(In,Dn){H.push([ft,an,In,Dn])>1||oe(ft,an)})})}function oe(ft,an){try{Ce(T[ft](an))}catch(In){Ft(H[0][3],In)}}function Ce(ft){ft.value instanceof B?Promise.resolve(ft.value.v).then(Ve,yt):Ft(H[0][2],ft)}function Ve(ft){oe("next",ft)}function yt(ft){oe("throw",ft)}function Ft(ft,an){ft(an),H.shift(),H.length&&oe(H[0][0],H[0][1])}};function z(A,f){return y(A,g=>{switch(g.kind){case m.t.Unary:return Q(f,A,g);case m.t.ServerStreaming:return X(f,A,g);case m.t.ClientStreaming:return Z(f,A,g);case m.t.BiDiStreaming:return Y(f,A,g);default:return null}})}function Q(A,f,g){return async function(T,_){var H,K;const oe=await A.unary(f,g,_==null?void 0:_.signal,_==null?void 0:_.timeoutMs,_==null?void 0:_.headers,T,_==null?void 0:_.contextValues);return(H=_==null?void 0:_.onHeader)===null||H===void 0||H.call(_,oe.header),(K=_==null?void 0:_.onTrailer)===null||K===void 0||K.call(_,oe.trailer),oe.message}}function X(A,f,g){return function(T,_){return q(A.stream(f,g,_==null?void 0:_.signal,_==null?void 0:_.timeoutMs,_==null?void 0:_.headers,D([T]),_==null?void 0:_.contextValues),_)}}function Z(A,f,g){return async function(T,_){var H,K,oe,Ce,Ve,yt;const Ft=await A.stream(f,g,_==null?void 0:_.signal,_==null?void 0:_.timeoutMs,_==null?void 0:_.headers,T,_==null?void 0:_.contextValues);(Ve=_==null?void 0:_.onHeader)===null||Ve===void 0||Ve.call(_,Ft.header);let ft;try{for(var an=!0,In=R(Ft.message),Dn;Dn=await In.next(),H=Dn.done,!H;an=!0)Ce=Dn.value,an=!1,ft=Ce}catch(ar){K={error:ar}}finally{try{!an&&!H&&(oe=In.return)&&await oe.call(In)}finally{if(K)throw K.error}}if(!ft)throw new S("protocol error: missing response message",O.Internal);return(yt=_==null?void 0:_.onTrailer)===null||yt===void 0||yt.call(_,Ft.trailer),ft}}function Y(A,f,g){return function(T,_){return q(A.stream(f,g,_==null?void 0:_.signal,_==null?void 0:_.timeoutMs,_==null?void 0:_.headers,T,_==null?void 0:_.contextValues),_)}}function q(A,f){const g=function(){var T,_;return V(this,arguments,function*(){const H=yield B(A);(T=f==null?void 0:f.onHeader)===null||T===void 0||T.call(f,H.header),yield B(yield*U(R(H.message))),(_=f==null?void 0:f.onTrailer)===null||_===void 0||_.call(f,H.trailer)})}()[Symbol.asyncIterator]();return{[Symbol.asyncIterator]:()=>({next:()=>g.next()})}}function j(){return{get(A){return A.id in this?this[A.id]:A.defaultValue},set(A,f){return this[A.id]=f,this},delete(A){return delete this[A.id],this}}}function le(A){var f;const g=Object.assign({},A);return(f=g.ignoreUnknownFields)!==null&&f!==void 0||(g.ignoreUnknownFields=!0),g}function Ee(A,f,g,T){const _=f?G(A.I,T):ue(A.I,g);return{parse:(f?G(A.O,T):ue(A.O,g)).parse,serialize:_.serialize}}function G(A,f){return{parse(g){try{return A.fromBinary(g,f)}catch(T){const _=T instanceof Error?T.message:String(T);throw new S(`parse binary: ${_}`,O.InvalidArgument)}},serialize(g){try{return g.toBinary(f)}catch(T){const _=T instanceof Error?T.message:String(T);throw new S(`serialize binary: ${_}`,O.Internal)}}}}function ue(A,f){var g,T;const _=(g=f==null?void 0:f.textEncoder)!==null&&g!==void 0?g:new TextEncoder,H=(T=f==null?void 0:f.textDecoder)!==null&&T!==void 0?T:new TextDecoder,K=le(f);return{parse(oe){try{const Ce=H.decode(oe);return A.fromJsonString(Ce,K)}catch(Ce){throw S.from(Ce,O.InvalidArgument)}},serialize(oe){try{const Ce=oe.toJsonString(K);return _.encode(Ce)}catch(Ce){throw S.from(Ce,O.Internal)}}}}function ge(...A){const f=new AbortController,g=A.filter(_=>_!==void 0).concat(f.signal);for(const _ of g){if(_.aborted){T.apply(_);break}_.addEventListener("abort",T)}function T(){f.signal.aborted||f.abort(Ne(this));for(const _ of g)_.removeEventListener("abort",T)}return f}function he(A){const f=new AbortController,g=()=>{f.abort(new S("the operation timed out",O.DeadlineExceeded))};let T;return A!==void 0&&(A<=0?g():T=setTimeout(g,A)),{signal:f.signal,cleanup:()=>clearTimeout(T)}}function Ne(A){if(!A.aborted)return;if(A.reason!==void 0)return A.reason;const f=new Error("This operation was aborted");return f.name="AbortError",f}function Le(A,f){return f instanceof b.v?f:new A(f)}function qe(A,f){function g(T){return T.done===!0?T:{done:T.done,value:Le(A,T.value)}}return{[Symbol.asyncIterator](){const T=f[Symbol.asyncIterator](),_={next:()=>T.next().then(g)};return T.throw!==void 0&&(_.throw=H=>T.throw(H).then(g)),T.return!==void 0&&(_.return=H=>T.return(H).then(g)),_}}}function rt(A){const f=ye(A.next,A.interceptors),[g,T,_]=Qe(A),H=Object.assign(Object.assign({},A.req),{message:Le(A.req.method.I,A.req.message),signal:g});return f(H).then(K=>(_(),K),T)}function Me(A){const f=ye(A.next,A.interceptors),[g,T,_]=Qe(A),H=Object.assign(Object.assign({},A.req),{message:qe(A.req.method.I,A.req.message),signal:g});let K=!1;return g.addEventListener("abort",function(){var oe,Ce;const Ve=A.req.message[Symbol.asyncIterator]();K||(oe=Ve.throw)===null||oe===void 0||oe.call(Ve,this.reason).catch(()=>{}),(Ce=Ve.return)===null||Ce===void 0||Ce.call(Ve).catch(()=>{})}),f(H).then(oe=>Object.assign(Object.assign({},oe),{message:{[Symbol.asyncIterator](){const Ce=oe.message[Symbol.asyncIterator]();return{next(){return Ce.next().then(Ve=>(Ve.done==!0&&(K=!0,_()),Ve),T)}}}}}),T)}function Qe(A){const{signal:f,cleanup:g}=he(A.timeoutMs),T=ge(A.signal,f);return[T.signal,function(H){const K=S.from(f.aborted?Ne(f):H);return T.abort(K),g(),Promise.reject(K)},function(){g(),T.abort()}]}function ye(A,f){var g;return(g=f==null?void 0:f.concat().reverse().reduce((T,_)=>_(T),A))!==null&&g!==void 0?g:A}function ze(A,f,g){const T=typeof f=="string"?f:f.typeName,_=typeof g=="string"?g:g.name;return A.toString().replace(/\/?$/,`/${T}/${_}`)}function $e(A){let f,g=new Uint8Array(0);function T(_){const H=new Uint8Array(g.length+_.length);H.set(g),H.set(_,g.length),g=H}return new ReadableStream({start(){f=A.getReader()},async pull(_){let H;for(;;){if(H===void 0&&g.byteLength>=5){let Ce=0;for(let Ve=1;Ve<5;Ve++)Ce=(Ce<<8)+g[Ve];H={flags:g[0],length:Ce}}if(H!==void 0&&g.byteLength>=H.length+5)break;const oe=await f.read();if(oe.done)break;T(oe.value)}if(H===void 0){if(g.byteLength==0){_.close();return}_.error(new S("premature end of stream",O.DataLoss));return}const K=g.subarray(5,5+H.length);g=g.subarray(5+H.length),_.enqueue({flags:H.flags,data:K})}})}function He(A,f){const g=new Uint8Array(f.length+5);g.set(f,5);const T=new DataView(g.buffer,g.byteOffset,g.byteLength);return T.setUint8(0,A),T.setUint32(1,f.length),g}const dt="Content-Type",Be="Grpc-Timeout",re="Grpc-Status",ee="Grpc-Message",J="Grpc-Status-Details-Bin",_e="User-Agent",Pe="X-User-Agent",Ie="X-Grpc-Web",ie="application/grpc-web+proto",de="application/grpc-web+json";function ce(A,f,g,T){const _=new Headers(g??{});return _.set(dt,A?ie:de),_.set(Ie,"1"),_.set(Pe,"connect-es/1.2.0"),T&&_.set(_e,"connect-es/1.2.0"),f!==void 0&&_.set(Be,`${f}m`),_}function Oe(A){switch(A){case 400:return O.Internal;case 401:return O.Unauthenticated;case 403:return O.PermissionDenied;case 404:return O.Unimplemented;case 429:return O.Unavailable;case 502:return O.Unavailable;case 503:return O.Unavailable;case 504:return O.Unavailable;default:return O.Unknown}}var Se=o(850),nt=o(733);class pt extends b.v{constructor(f){super(),this.code=0,this.message="",this.details=[],Se.w.util.initPartial(f,this)}static fromBinary(f,g){return new pt().fromBinary(f,g)}static fromJson(f,g){return new pt().fromJson(f,g)}static fromJsonString(f,g){return new pt().fromJsonString(f,g)}static equals(f,g){return Se.w.util.equals(pt,f,g)}}pt.runtime=Se.w,pt.typeName="google.rpc.Status",pt.fields=Se.w.util.newFieldList(()=>[{no:1,name:"code",kind:"scalar",T:5},{no:2,name:"message",kind:"scalar",T:9},{no:3,name:"details",kind:"message",T:nt.I,repeated:!0}]);var kt=o(236);function Ke(A,f,g){try{const T=kt.W.dec(A);return f?f.fromBinary(T,g):T}catch(T){throw S.from(T,O.DataLoss)}}const vt="0";function Ye(A){var f;const g=A.get(J);if(g!=null){const _=Ke(g,pt);if(_.code==0)return;const H=new S(_.message,_.code,A);return H.details=_.details.map(K=>({type:K.typeUrl.substring(K.typeUrl.lastIndexOf("/")+1),value:K.value})),H}const T=A.get(re);if(T!=null){if(T===vt)return;const _=parseInt(T,10);return _ in O?new S(decodeURIComponent((f=A.get(ee))!==null&&f!==void 0?f:""),_,A):new S(`invalid grpc-status: ${T}`,O.Internal,A)}}function it(A,f){var g;if(A>=200&&A<300){const T=Ye(f);if(T)throw T;return{foundStatus:f.has(re)}}throw new S(decodeURIComponent((g=f.get(ee))!==null&&g!==void 0?g:`HTTP ${A}`),Oe(A),f)}const Et=128;function Dt(A){const f=new Headers,g=new TextDecoder().decode(A).split(`\r -`);for(const T of g){if(T==="")continue;const _=T.indexOf(":");if(_>0){const H=T.substring(0,_).trim(),K=T.substring(_+1).trim();f.append(H,K)}}return f}function rn(A,f){const g=Ye(A);if(g)throw f.forEach((T,_)=>{g.metadata.append(_,T)}),g}function cn(){try{new Headers}catch{throw new Error("connect-web requires the fetch API. Are you running on an old version of Node.js? Node.js is not supported in Connect for Web - please stay tuned for Connect for Node.")}}var fn=function(A){return this instanceof fn?(this.v=A,this):new fn(A)},zn=function(A,f,g){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var T=g.apply(A,f||[]),_,H=[];return _={},K("next"),K("throw"),K("return"),_[Symbol.asyncIterator]=function(){return this},_;function K(ft){T[ft]&&(_[ft]=function(an){return new Promise(function(In,Dn){H.push([ft,an,In,Dn])>1||oe(ft,an)})})}function oe(ft,an){try{Ce(T[ft](an))}catch(In){Ft(H[0][3],In)}}function Ce(ft){ft.value instanceof fn?Promise.resolve(ft.value.v).then(Ve,yt):Ft(H[0][2],ft)}function Ve(ft){oe("next",ft)}function yt(ft){oe("throw",ft)}function Ft(ft,an){ft(an),H.shift(),H.length&&oe(H[0][0],H[0][1])}};function ve(A){var f;cn();const g=(f=A.useBinaryFormat)!==null&&f!==void 0?f:!0;return{async unary(T,_,H,K,oe,Ce,Ve){var yt;const{serialize:Ft,parse:ft}=Ee(_,g,A.jsonOptions,A.binaryOptions);return K=K===void 0?A.defaultTimeoutMs:K<=0?void 0:K,await rt({interceptors:A.interceptors,signal:H,timeoutMs:K,req:{stream:!1,service:T,method:_,url:ze(A.baseUrl,T,_),init:{method:"POST",credentials:(yt=A.credentials)!==null&&yt!==void 0?yt:"same-origin",redirect:"error",mode:"cors"},header:ce(g,K,oe,!1),contextValues:Ve??j(),message:Ce},next:async an=>{var In;const ar=await((In=A.fetch)!==null&&In!==void 0?In:globalThis.fetch)(an.url,Object.assign(Object.assign({},an.init),{headers:an.header,signal:an.signal,body:He(0,Ft(an.message))}));if(it(ar.status,ar.headers),!ar.body)throw"missing response body";const ro=$e(ar.body).getReader();let $n,ei;for(;;){const Qr=await ro.read();if(Qr.done)break;const{flags:yi,data:sf}=Qr.value;if(yi===Et){if($n!==void 0)throw"extra trailer";$n=Dt(sf);continue}if(ei!==void 0)throw"extra message";ei=ft(sf)}if($n===void 0)throw"missing trailer";if(rn($n,ar.headers),ei===void 0)throw"missing message";return{stream:!1,header:ar.headers,message:ei,trailer:$n}}})},async stream(T,_,H,K,oe,Ce,Ve){var yt;const{serialize:Ft,parse:ft}=Ee(_,g,A.jsonOptions,A.binaryOptions);function an(Dn,ar,ro,$n){return zn(this,arguments,function*(){const Qr=$e(Dn).getReader();if(ar){if(!(yield fn(Qr.read())).done)throw"extra data for trailers-only";return yield fn(void 0)}let yi=!1;for(;;){const sf=yield fn(Qr.read());if(sf.done)break;const{flags:Hp,data:Qg}=sf.value;if((Hp&Et)===Et){if(yi)throw"extra trailer";yi=!0;const LF=Dt(Qg);rn(LF,$n),LF.forEach((Qie,Yie)=>ro.set(Yie,Qie));continue}if(yi)throw"extra message";yield yield fn(ft(Qg))}if(!yi)throw"missing trailer"})}async function In(Dn){if(_.kind!=m.t.ServerStreaming)throw"The fetch API does not support streaming request bodies";const ar=await Dn[Symbol.asyncIterator]().next();if(ar.done==!0)throw"missing request message";return He(0,Ft(ar.value))}return K=K===void 0?A.defaultTimeoutMs:K<=0?void 0:K,Me({interceptors:A.interceptors,signal:H,timeoutMs:K,req:{stream:!0,service:T,method:_,url:ze(A.baseUrl,T,_),init:{method:"POST",credentials:(yt=A.credentials)!==null&&yt!==void 0?yt:"same-origin",redirect:"error",mode:"cors"},header:ce(g,K,oe,!1),contextValues:Ve??j(),message:Ce},next:async Dn=>{var ar;const $n=await((ar=A.fetch)!==null&&ar!==void 0?ar:globalThis.fetch)(Dn.url,Object.assign(Object.assign({},Dn.init),{headers:Dn.header,signal:Dn.signal,body:await In(Dn.message)})),{foundStatus:ei}=it($n.status,$n.headers);if(!$n.body)throw"missing response body";const Qr=new Headers;return Object.assign(Object.assign({},Dn),{header:$n.headers,trailer:Qr,message:an($n.body,ei,Qr,$n.headers)})}})}}}var Ae=o(295),fe=o(646);/** + */(function(i,o){e.exports=o()})(TS,()=>(()=>{var r={646:(s,l,u)=>{Object.defineProperty(l,"__esModule",{value:!0});const{proto3:c,StringValue:d,Timestamp:p}=u(532),h=c.makeEnum("yorkie.v1.ValueType",[{no:0,name:"VALUE_TYPE_NULL",localName:"NULL"},{no:1,name:"VALUE_TYPE_BOOLEAN",localName:"BOOLEAN"},{no:2,name:"VALUE_TYPE_INTEGER",localName:"INTEGER"},{no:3,name:"VALUE_TYPE_LONG",localName:"LONG"},{no:4,name:"VALUE_TYPE_DOUBLE",localName:"DOUBLE"},{no:5,name:"VALUE_TYPE_STRING",localName:"STRING"},{no:6,name:"VALUE_TYPE_BYTES",localName:"BYTES"},{no:7,name:"VALUE_TYPE_DATE",localName:"DATE"},{no:8,name:"VALUE_TYPE_JSON_OBJECT",localName:"JSON_OBJECT"},{no:9,name:"VALUE_TYPE_JSON_ARRAY",localName:"JSON_ARRAY"},{no:10,name:"VALUE_TYPE_TEXT",localName:"TEXT"},{no:11,name:"VALUE_TYPE_INTEGER_CNT",localName:"INTEGER_CNT"},{no:12,name:"VALUE_TYPE_LONG_CNT",localName:"LONG_CNT"},{no:13,name:"VALUE_TYPE_TREE",localName:"TREE"}]),m=c.makeEnum("yorkie.v1.DocEventType",[{no:0,name:"DOC_EVENT_TYPE_DOCUMENT_CHANGED",localName:"DOCUMENT_CHANGED"},{no:1,name:"DOC_EVENT_TYPE_DOCUMENT_WATCHED",localName:"DOCUMENT_WATCHED"},{no:2,name:"DOC_EVENT_TYPE_DOCUMENT_UNWATCHED",localName:"DOCUMENT_UNWATCHED"},{no:3,name:"DOC_EVENT_TYPE_DOCUMENT_BROADCAST",localName:"DOCUMENT_BROADCAST"}]),b=c.makeMessageType("yorkie.v1.Snapshot",()=>[{no:1,name:"root",kind:"message",T:W},{no:2,name:"presences",kind:"map",K:9,V:{kind:"message",T:Be}}]),O=c.makeMessageType("yorkie.v1.ChangePack",()=>[{no:1,name:"document_key",kind:"scalar",T:9},{no:2,name:"checkpoint",kind:"message",T:re},{no:3,name:"snapshot",kind:"scalar",T:12},{no:4,name:"changes",kind:"message",T:y,repeated:!0},{no:5,name:"min_synced_ticket",kind:"message",T:J},{no:6,name:"is_removed",kind:"scalar",T:8}]),y=c.makeMessageType("yorkie.v1.Change",()=>[{no:1,name:"id",kind:"message",T:v},{no:2,name:"message",kind:"scalar",T:9},{no:3,name:"operations",kind:"message",T:S,repeated:!0},{no:4,name:"presence_change",kind:"message",T:We}]),v=c.makeMessageType("yorkie.v1.ChangeID",()=>[{no:1,name:"client_seq",kind:"scalar",T:13},{no:2,name:"server_seq",kind:"scalar",T:3,L:1},{no:3,name:"lamport",kind:"scalar",T:3,L:1},{no:4,name:"actor_id",kind:"scalar",T:12}]),S=c.makeMessageType("yorkie.v1.Operation",()=>[{no:1,name:"set",kind:"message",T:k,oneof:"body"},{no:2,name:"add",kind:"message",T:C,oneof:"body"},{no:3,name:"move",kind:"message",T:w,oneof:"body"},{no:4,name:"remove",kind:"message",T:E,oneof:"body"},{no:5,name:"edit",kind:"message",T:$,oneof:"body"},{no:6,name:"select",kind:"message",T:N,oneof:"body"},{no:7,name:"style",kind:"message",T:R,oneof:"body"},{no:8,name:"increase",kind:"message",T:B,oneof:"body"},{no:9,name:"tree_edit",kind:"message",T:U,oneof:"body"},{no:10,name:"tree_style",kind:"message",T:V,oneof:"body"}]),k=c.makeMessageType("yorkie.v1.Operation.Set",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"value",kind:"message",T:z},{no:4,name:"executed_at",kind:"message",T:J}],{localName:"Operation_Set"}),C=c.makeMessageType("yorkie.v1.Operation.Add",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"prev_created_at",kind:"message",T:J},{no:3,name:"value",kind:"message",T:z},{no:4,name:"executed_at",kind:"message",T:J}],{localName:"Operation_Add"}),w=c.makeMessageType("yorkie.v1.Operation.Move",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"prev_created_at",kind:"message",T:J},{no:3,name:"created_at",kind:"message",T:J},{no:4,name:"executed_at",kind:"message",T:J}],{localName:"Operation_Move"}),E=c.makeMessageType("yorkie.v1.Operation.Remove",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"created_at",kind:"message",T:J},{no:3,name:"executed_at",kind:"message",T:J}],{localName:"Operation_Remove"}),$=c.makeMessageType("yorkie.v1.Operation.Edit",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"from",kind:"message",T:ee},{no:3,name:"to",kind:"message",T:ee},{no:4,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:J}},{no:5,name:"content",kind:"scalar",T:9},{no:6,name:"executed_at",kind:"message",T:J},{no:7,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}}],{localName:"Operation_Edit"}),N=c.makeMessageType("yorkie.v1.Operation.Select",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"from",kind:"message",T:ee},{no:3,name:"to",kind:"message",T:ee},{no:4,name:"executed_at",kind:"message",T:J}],{localName:"Operation_Select"}),R=c.makeMessageType("yorkie.v1.Operation.Style",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"from",kind:"message",T:ee},{no:3,name:"to",kind:"message",T:ee},{no:4,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:5,name:"executed_at",kind:"message",T:J},{no:6,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:J}}],{localName:"Operation_Style"}),B=c.makeMessageType("yorkie.v1.Operation.Increase",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"value",kind:"message",T:z},{no:3,name:"executed_at",kind:"message",T:J}],{localName:"Operation_Increase"}),U=c.makeMessageType("yorkie.v1.Operation.TreeEdit",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"from",kind:"message",T:Ke},{no:3,name:"to",kind:"message",T:Ke},{no:4,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:J}},{no:5,name:"contents",kind:"message",T:Ne,repeated:!0},{no:7,name:"split_level",kind:"scalar",T:5},{no:6,name:"executed_at",kind:"message",T:J}],{localName:"Operation_TreeEdit"}),V=c.makeMessageType("yorkie.v1.Operation.TreeStyle",()=>[{no:1,name:"parent_created_at",kind:"message",T:J},{no:2,name:"from",kind:"message",T:Ke},{no:3,name:"to",kind:"message",T:Ke},{no:4,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:5,name:"executed_at",kind:"message",T:J}],{localName:"Operation_TreeStyle"}),z=c.makeMessageType("yorkie.v1.JSONElementSimple",()=>[{no:1,name:"created_at",kind:"message",T:J},{no:2,name:"moved_at",kind:"message",T:J},{no:3,name:"removed_at",kind:"message",T:J},{no:4,name:"type",kind:"enum",T:c.getEnumType(h)},{no:5,name:"value",kind:"scalar",T:12}]),W=c.makeMessageType("yorkie.v1.JSONElement",()=>[{no:1,name:"json_object",kind:"message",T:X,oneof:"body"},{no:2,name:"json_array",kind:"message",T:q,oneof:"body"},{no:3,name:"primitive",kind:"message",T:Y,oneof:"body"},{no:5,name:"text",kind:"message",T:Z,oneof:"body"},{no:6,name:"counter",kind:"message",T:j,oneof:"body"},{no:7,name:"tree",kind:"message",T:se,oneof:"body"}]),X=c.makeMessageType("yorkie.v1.JSONElement.JSONObject",()=>[{no:1,name:"nodes",kind:"message",T:ve,repeated:!0},{no:2,name:"created_at",kind:"message",T:J},{no:3,name:"moved_at",kind:"message",T:J},{no:4,name:"removed_at",kind:"message",T:J}],{localName:"JSONElement_JSONObject"}),q=c.makeMessageType("yorkie.v1.JSONElement.JSONArray",()=>[{no:1,name:"nodes",kind:"message",T:G,repeated:!0},{no:2,name:"created_at",kind:"message",T:J},{no:3,name:"moved_at",kind:"message",T:J},{no:4,name:"removed_at",kind:"message",T:J}],{localName:"JSONElement_JSONArray"}),Y=c.makeMessageType("yorkie.v1.JSONElement.Primitive",()=>[{no:1,name:"type",kind:"enum",T:c.getEnumType(h)},{no:2,name:"value",kind:"scalar",T:12},{no:3,name:"created_at",kind:"message",T:J},{no:4,name:"moved_at",kind:"message",T:J},{no:5,name:"removed_at",kind:"message",T:J}],{localName:"JSONElement_Primitive"}),Z=c.makeMessageType("yorkie.v1.JSONElement.Text",()=>[{no:1,name:"nodes",kind:"message",T:ge,repeated:!0},{no:2,name:"created_at",kind:"message",T:J},{no:3,name:"moved_at",kind:"message",T:J},{no:4,name:"removed_at",kind:"message",T:J}],{localName:"JSONElement_Text"}),j=c.makeMessageType("yorkie.v1.JSONElement.Counter",()=>[{no:1,name:"type",kind:"enum",T:c.getEnumType(h)},{no:2,name:"value",kind:"scalar",T:12},{no:3,name:"created_at",kind:"message",T:J},{no:4,name:"moved_at",kind:"message",T:J},{no:5,name:"removed_at",kind:"message",T:J}],{localName:"JSONElement_Counter"}),se=c.makeMessageType("yorkie.v1.JSONElement.Tree",()=>[{no:1,name:"nodes",kind:"message",T:xe,repeated:!0},{no:2,name:"created_at",kind:"message",T:J},{no:3,name:"moved_at",kind:"message",T:J},{no:4,name:"removed_at",kind:"message",T:J}],{localName:"JSONElement_Tree"}),ve=c.makeMessageType("yorkie.v1.RHTNode",()=>[{no:1,name:"key",kind:"scalar",T:9},{no:2,name:"element",kind:"message",T:W}]),G=c.makeMessageType("yorkie.v1.RGANode",()=>[{no:1,name:"next",kind:"message",T:G},{no:2,name:"element",kind:"message",T:W}]),ce=c.makeMessageType("yorkie.v1.NodeAttr",()=>[{no:1,name:"value",kind:"scalar",T:9},{no:2,name:"updated_at",kind:"message",T:J}]),ge=c.makeMessageType("yorkie.v1.TextNode",()=>[{no:1,name:"id",kind:"message",T:ue},{no:2,name:"value",kind:"scalar",T:9},{no:3,name:"removed_at",kind:"message",T:J},{no:4,name:"ins_prev_id",kind:"message",T:ue},{no:5,name:"attributes",kind:"map",K:9,V:{kind:"message",T:ce}}]),ue=c.makeMessageType("yorkie.v1.TextNodeID",()=>[{no:1,name:"created_at",kind:"message",T:J},{no:2,name:"offset",kind:"scalar",T:5}]),xe=c.makeMessageType("yorkie.v1.TreeNode",()=>[{no:1,name:"id",kind:"message",T:Ve},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"value",kind:"scalar",T:9},{no:4,name:"removed_at",kind:"message",T:J},{no:5,name:"ins_prev_id",kind:"message",T:Ve},{no:6,name:"ins_next_id",kind:"message",T:Ve},{no:7,name:"depth",kind:"scalar",T:5},{no:8,name:"attributes",kind:"map",K:9,V:{kind:"message",T:ce}}]),Ne=c.makeMessageType("yorkie.v1.TreeNodes",()=>[{no:1,name:"content",kind:"message",T:xe,repeated:!0}]),Ve=c.makeMessageType("yorkie.v1.TreeNodeID",()=>[{no:1,name:"created_at",kind:"message",T:J},{no:2,name:"offset",kind:"scalar",T:5}]),Ke=c.makeMessageType("yorkie.v1.TreePos",()=>[{no:1,name:"parent_id",kind:"message",T:Ve},{no:2,name:"left_sibling_id",kind:"message",T:Ve}]),Me=c.makeMessageType("yorkie.v1.User",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"username",kind:"scalar",T:9},{no:3,name:"created_at",kind:"message",T:p}]),Ye=c.makeMessageType("yorkie.v1.Project",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"public_key",kind:"scalar",T:9},{no:4,name:"secret_key",kind:"scalar",T:9},{no:5,name:"auth_webhook_url",kind:"scalar",T:9},{no:6,name:"auth_webhook_methods",kind:"scalar",T:9,repeated:!0},{no:7,name:"client_deactivate_threshold",kind:"scalar",T:9},{no:8,name:"created_at",kind:"message",T:p},{no:9,name:"updated_at",kind:"message",T:p}]),ye=c.makeMessageType("yorkie.v1.UpdatableProjectFields",()=>[{no:1,name:"name",kind:"message",T:d},{no:2,name:"auth_webhook_url",kind:"message",T:d},{no:3,name:"auth_webhook_methods",kind:"message",T:ze},{no:4,name:"client_deactivate_threshold",kind:"message",T:d}]),ze=c.makeMessageType("yorkie.v1.UpdatableProjectFields.AuthWebhookMethods",()=>[{no:1,name:"methods",kind:"scalar",T:9,repeated:!0}],{localName:"UpdatableProjectFields_AuthWebhookMethods"}),$e=c.makeMessageType("yorkie.v1.DocumentSummary",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"snapshot",kind:"scalar",T:9},{no:4,name:"created_at",kind:"message",T:p},{no:5,name:"accessed_at",kind:"message",T:p},{no:6,name:"updated_at",kind:"message",T:p}]),We=c.makeMessageType("yorkie.v1.PresenceChange",()=>[{no:1,name:"type",kind:"enum",T:c.getEnumType(dt)},{no:2,name:"presence",kind:"message",T:Be}]),dt=c.makeEnum("yorkie.v1.PresenceChange.ChangeType",[{no:0,name:"CHANGE_TYPE_UNSPECIFIED",localName:"UNSPECIFIED"},{no:1,name:"CHANGE_TYPE_PUT",localName:"PUT"},{no:2,name:"CHANGE_TYPE_DELETE",localName:"DELETE"},{no:3,name:"CHANGE_TYPE_CLEAR",localName:"CLEAR"}]),Be=c.makeMessageType("yorkie.v1.Presence",()=>[{no:1,name:"data",kind:"map",K:9,V:{kind:"scalar",T:9}}]),re=c.makeMessageType("yorkie.v1.Checkpoint",()=>[{no:1,name:"server_seq",kind:"scalar",T:3,L:1},{no:2,name:"client_seq",kind:"scalar",T:13}]),ee=c.makeMessageType("yorkie.v1.TextNodePos",()=>[{no:1,name:"created_at",kind:"message",T:J},{no:2,name:"offset",kind:"scalar",T:5},{no:3,name:"relative_offset",kind:"scalar",T:5}]),J=c.makeMessageType("yorkie.v1.TimeTicket",()=>[{no:1,name:"lamport",kind:"scalar",T:3,L:1},{no:2,name:"delimiter",kind:"scalar",T:13},{no:3,name:"actor_id",kind:"scalar",T:12}]),Re=c.makeMessageType("yorkie.v1.DocEventBody",()=>[{no:1,name:"topic",kind:"scalar",T:9},{no:2,name:"payload",kind:"scalar",T:12}]),Le=c.makeMessageType("yorkie.v1.DocEvent",()=>[{no:1,name:"type",kind:"enum",T:c.getEnumType(m)},{no:2,name:"publisher",kind:"scalar",T:9},{no:3,name:"body",kind:"message",T:Re}]);l.ValueType=h,l.DocEventType=m,l.Snapshot=b,l.ChangePack=O,l.Change=y,l.ChangeID=v,l.Operation=S,l.Operation_Set=k,l.Operation_Add=C,l.Operation_Move=w,l.Operation_Remove=E,l.Operation_Edit=$,l.Operation_Select=N,l.Operation_Style=R,l.Operation_Increase=B,l.Operation_TreeEdit=U,l.Operation_TreeStyle=V,l.JSONElementSimple=z,l.JSONElement=W,l.JSONElement_JSONObject=X,l.JSONElement_JSONArray=q,l.JSONElement_Primitive=Y,l.JSONElement_Text=Z,l.JSONElement_Counter=j,l.JSONElement_Tree=se,l.RHTNode=ve,l.RGANode=G,l.NodeAttr=ce,l.TextNode=ge,l.TextNodeID=ue,l.TreeNode=xe,l.TreeNodes=Ne,l.TreeNodeID=Ve,l.TreePos=Ke,l.User=Me,l.Project=Ye,l.UpdatableProjectFields=ye,l.UpdatableProjectFields_AuthWebhookMethods=ze,l.DocumentSummary=$e,l.PresenceChange=We,l.PresenceChange_ChangeType=dt,l.Presence=Be,l.Checkpoint=re,l.TextNodePos=ee,l.TimeTicket=J,l.DocEventBody=Re,l.DocEvent=Le},295:(s,l,u)=>{const{ActivateClientRequest:c,ActivateClientResponse:d,AttachDocumentRequest:p,AttachDocumentResponse:h,BroadcastRequest:m,BroadcastResponse:b,DeactivateClientRequest:O,DeactivateClientResponse:y,DetachDocumentRequest:v,DetachDocumentResponse:S,PushPullChangesRequest:k,PushPullChangesResponse:C,RemoveDocumentRequest:w,RemoveDocumentResponse:E,WatchDocumentRequest:$,WatchDocumentResponse:N}=u(176),{MethodKind:R}=u(532),B={typeName:"yorkie.v1.YorkieService",methods:{activateClient:{name:"ActivateClient",I:c,O:d,kind:R.Unary},deactivateClient:{name:"DeactivateClient",I:O,O:y,kind:R.Unary},attachDocument:{name:"AttachDocument",I:p,O:h,kind:R.Unary},detachDocument:{name:"DetachDocument",I:v,O:S,kind:R.Unary},removeDocument:{name:"RemoveDocument",I:w,O:E,kind:R.Unary},pushPullChanges:{name:"PushPullChanges",I:k,O:C,kind:R.Unary},watchDocument:{name:"WatchDocument",I:$,O:N,kind:R.ServerStreaming},broadcast:{name:"Broadcast",I:m,O:b,kind:R.Unary}}};l.V=B},176:(s,l,u)=>{Object.defineProperty(l,"__esModule",{value:!0});const{proto3:c}=u(532),{ChangePack:d,DocEvent:p}=u(646),h=c.makeMessageType("yorkie.v1.ActivateClientRequest",()=>[{no:1,name:"client_key",kind:"scalar",T:9}]),m=c.makeMessageType("yorkie.v1.ActivateClientResponse",()=>[{no:1,name:"client_id",kind:"scalar",T:9}]),b=c.makeMessageType("yorkie.v1.DeactivateClientRequest",()=>[{no:2,name:"client_key",kind:"scalar",T:9},{no:1,name:"client_id",kind:"scalar",T:9}]),O=c.makeMessageType("yorkie.v1.DeactivateClientResponse",[]),y=c.makeMessageType("yorkie.v1.AttachDocumentRequest",()=>[{no:3,name:"client_key",kind:"scalar",T:9},{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"change_pack",kind:"message",T:d}]),v=c.makeMessageType("yorkie.v1.AttachDocumentResponse",()=>[{no:1,name:"document_id",kind:"scalar",T:9},{no:2,name:"change_pack",kind:"message",T:d}]),S=c.makeMessageType("yorkie.v1.DetachDocumentRequest",()=>[{no:5,name:"client_key",kind:"scalar",T:9},{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"change_pack",kind:"message",T:d},{no:4,name:"remove_if_not_attached",kind:"scalar",T:8}]),k=c.makeMessageType("yorkie.v1.DetachDocumentResponse",()=>[{no:2,name:"change_pack",kind:"message",T:d}]),C=c.makeMessageType("yorkie.v1.WatchDocumentRequest",()=>[{no:4,name:"client_key",kind:"scalar",T:9},{no:1,name:"client_id",kind:"scalar",T:9},{no:3,name:"document_key",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9}]),w=c.makeMessageType("yorkie.v1.WatchDocumentResponse",()=>[{no:1,name:"initialization",kind:"message",T:E,oneof:"body"},{no:2,name:"event",kind:"message",T:p,oneof:"body"}]),E=c.makeMessageType("yorkie.v1.WatchDocumentResponse.Initialization",()=>[{no:1,name:"client_ids",kind:"scalar",T:9,repeated:!0}],{localName:"WatchDocumentResponse_Initialization"}),$=c.makeMessageType("yorkie.v1.RemoveDocumentRequest",()=>[{no:4,name:"client_key",kind:"scalar",T:9},{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"change_pack",kind:"message",T:d}]),N=c.makeMessageType("yorkie.v1.RemoveDocumentResponse",()=>[{no:1,name:"change_pack",kind:"message",T:d}]),R=c.makeMessageType("yorkie.v1.PushPullChangesRequest",()=>[{no:5,name:"client_key",kind:"scalar",T:9},{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"change_pack",kind:"message",T:d},{no:4,name:"push_only",kind:"scalar",T:8}]),B=c.makeMessageType("yorkie.v1.PushPullChangesResponse",()=>[{no:1,name:"change_pack",kind:"message",T:d}]),U=c.makeMessageType("yorkie.v1.BroadcastRequest",()=>[{no:6,name:"client_key",kind:"scalar",T:9},{no:1,name:"client_id",kind:"scalar",T:9},{no:5,name:"document_key",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"topic",kind:"scalar",T:9},{no:4,name:"payload",kind:"scalar",T:12}]),V=c.makeMessageType("yorkie.v1.BroadcastResponse",[]);l.ActivateClientRequest=h,l.ActivateClientResponse=m,l.DeactivateClientRequest=b,l.DeactivateClientResponse=O,l.AttachDocumentRequest=y,l.AttachDocumentResponse=v,l.DetachDocumentRequest=S,l.DetachDocumentResponse=k,l.WatchDocumentRequest=C,l.WatchDocumentResponse=w,l.WatchDocumentResponse_Initialization=E,l.RemoveDocumentRequest=$,l.RemoveDocumentResponse=N,l.PushPullChangesRequest=R,l.PushPullChangesResponse=B,l.BroadcastRequest=U,l.BroadcastResponse=V},79:(s,l,u)=>{u.d(l,{Lt:()=>m,TD:()=>h,oP:()=>b});var c=u(818),d=u(120),p=u(210),h;(function(O){O[O.Varint=0]="Varint",O[O.Bit64=1]="Bit64",O[O.LengthDelimited=2]="LengthDelimited",O[O.StartGroup=3]="StartGroup",O[O.EndGroup=4]="EndGroup",O[O.Bit32=5]="Bit32"})(h||(h={}));class m{constructor(y){this.stack=[],this.textEncoder=y??new TextEncoder,this.chunks=[],this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let y=0;for(let k=0;k>>0)}raw(y){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(y),this}uint32(y){for((0,d.fp)(y);y>127;)this.buf.push(y&127|128),y=y>>>7;return this.buf.push(y),this}int32(y){return(0,d.ug)(y),(0,c.fC)(y,this.buf),this}bool(y){return this.buf.push(y?1:0),this}bytes(y){return this.uint32(y.byteLength),this.raw(y)}string(y){let v=this.textEncoder.encode(y);return this.uint32(v.byteLength),this.raw(v)}float(y){(0,d.E_)(y);let v=new Uint8Array(4);return new DataView(v.buffer).setFloat32(0,y,!0),this.raw(v)}double(y){let v=new Uint8Array(8);return new DataView(v.buffer).setFloat64(0,y,!0),this.raw(v)}fixed32(y){(0,d.fp)(y);let v=new Uint8Array(4);return new DataView(v.buffer).setUint32(0,y,!0),this.raw(v)}sfixed32(y){(0,d.ug)(y);let v=new Uint8Array(4);return new DataView(v.buffer).setInt32(0,y,!0),this.raw(v)}sint32(y){return(0,d.ug)(y),y=(y<<1^y>>31)>>>0,(0,c.fC)(y,this.buf),this}sfixed64(y){let v=new Uint8Array(8),S=new DataView(v.buffer),k=p.q.enc(y);return S.setInt32(0,k.lo,!0),S.setInt32(4,k.hi,!0),this.raw(v)}fixed64(y){let v=new Uint8Array(8),S=new DataView(v.buffer),k=p.q.uEnc(y);return S.setInt32(0,k.lo,!0),S.setInt32(4,k.hi,!0),this.raw(v)}int64(y){let v=p.q.enc(y);return(0,c._y)(v.lo,v.hi,this.buf),this}sint64(y){let v=p.q.enc(y),S=v.hi>>31,k=v.lo<<1^S,C=(v.hi<<1|v.lo>>>31)^S;return(0,c._y)(k,C,this.buf),this}uint64(y){let v=p.q.uEnc(y);return(0,c._y)(v.lo,v.hi,this.buf),this}}class b{constructor(y,v){this.varint64=c.sg,this.uint32=c.jI,this.buf=y,this.len=y.length,this.pos=0,this.view=new DataView(y.buffer,y.byteOffset,y.byteLength),this.textDecoder=v??new TextDecoder}tag(){let y=this.uint32(),v=y>>>3,S=y&7;if(v<=0||S<0||S>5)throw new Error("illegal tag: field no "+v+" wire type "+S);return[v,S]}skip(y){let v=this.pos;switch(y){case h.Varint:for(;this.buf[this.pos++]&128;);break;case h.Bit64:this.pos+=4;case h.Bit32:this.pos+=4;break;case h.LengthDelimited:let S=this.uint32();this.pos+=S;break;case h.StartGroup:let k;for(;(k=this.tag()[1])!==h.EndGroup;)this.skip(k);break;default:throw new Error("cant skip wire type "+y)}return this.assertBounds(),this.buf.subarray(v,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let y=this.uint32();return y>>>1^-(y&1)}int64(){return p.q.dec(...this.varint64())}uint64(){return p.q.uDec(...this.varint64())}sint64(){let[y,v]=this.varint64(),S=-(y&1);return y=(y>>>1|(v&1)<<31)^S,v=v>>>1^S,p.q.dec(y,v)}bool(){let[y,v]=this.varint64();return y!==0||v!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return p.q.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return p.q.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let y=this.uint32(),v=this.pos;return this.pos+=y,this.assertBounds(),this.buf.subarray(v,v+y)}string(){return this.textDecoder.decode(this.bytes())}}},465:(s,l,u)=>{u.d(l,{p:()=>d,w:()=>c});var c;(function(p){p[p.DOUBLE=1]="DOUBLE",p[p.FLOAT=2]="FLOAT",p[p.INT64=3]="INT64",p[p.UINT64=4]="UINT64",p[p.INT32=5]="INT32",p[p.FIXED64=6]="FIXED64",p[p.FIXED32=7]="FIXED32",p[p.BOOL=8]="BOOL",p[p.STRING=9]="STRING",p[p.BYTES=12]="BYTES",p[p.UINT32=13]="UINT32",p[p.SFIXED32=15]="SFIXED32",p[p.SFIXED64=16]="SFIXED64",p[p.SINT32=17]="SINT32",p[p.SINT64=18]="SINT64"})(c||(c={}));var d;(function(p){p[p.BIGINT=0]="BIGINT",p[p.STRING=1]="STRING"})(d||(d={}))},733:(s,l,u)=>{u.d(l,{I:()=>p});var c=u(561),d=u(850);class p extends c.v{constructor(m){super(),this.typeUrl="",this.value=new Uint8Array(0),d.w.util.initPartial(m,this)}toJson(m){var b;if(this.typeUrl==="")return{};const O=this.typeUrlToName(this.typeUrl),y=(b=m==null?void 0:m.typeRegistry)===null||b===void 0?void 0:b.findMessage(O);if(!y)throw new Error(`cannot encode message google.protobuf.Any to JSON: "${this.typeUrl}" is not in the type registry`);let S=y.fromBinary(this.value).toJson(m);return(O.startsWith("google.protobuf.")||S===null||Array.isArray(S)||typeof S!="object")&&(S={value:S}),S["@type"]=this.typeUrl,S}fromJson(m,b){var O;if(m===null||Array.isArray(m)||typeof m!="object")throw new Error(`cannot decode message google.protobuf.Any from JSON: expected object but got ${m===null?"null":Array.isArray(m)?"array":typeof m}`);if(Object.keys(m).length==0)return this;const y=m["@type"];if(typeof y!="string"||y=="")throw new Error('cannot decode message google.protobuf.Any from JSON: "@type" is empty');const v=this.typeUrlToName(y),S=(O=b==null?void 0:b.typeRegistry)===null||O===void 0?void 0:O.findMessage(v);if(!S)throw new Error(`cannot decode message google.protobuf.Any from JSON: ${y} is not in the type registry`);let k;if(v.startsWith("google.protobuf.")&&Object.prototype.hasOwnProperty.call(m,"value"))k=S.fromJson(m.value,b);else{const C=Object.assign({},m);delete C["@type"],k=S.fromJson(C,b)}return this.packFrom(k),this}packFrom(m){this.value=m.toBinary(),this.typeUrl=this.typeNameToUrl(m.getType().typeName)}unpackTo(m){return this.is(m.getType())?(m.fromBinary(this.value),!0):!1}unpack(m){if(this.typeUrl==="")return;const b=m.findMessage(this.typeUrlToName(this.typeUrl));if(b)return b.fromBinary(this.value)}is(m){if(this.typeUrl==="")return!1;const b=this.typeUrlToName(this.typeUrl);let O="";return typeof m=="string"?O=m:O=m.typeName,b===O}typeNameToUrl(m){return`type.googleapis.com/${m}`}typeUrlToName(m){if(!m.length)throw new Error(`invalid type url: ${m}`);const b=m.lastIndexOf("/"),O=b>=0?m.substring(b+1):m;if(!O.length)throw new Error(`invalid type url: ${m}`);return O}static pack(m){const b=new p;return b.packFrom(m),b}static fromBinary(m,b){return new p().fromBinary(m,b)}static fromJson(m,b){return new p().fromJson(m,b)}static fromJsonString(m,b){return new p().fromJsonString(m,b)}static equals(m,b){return d.w.util.equals(p,m,b)}}p.runtime=d.w,p.typeName="google.protobuf.Any",p.fields=d.w.util.newFieldList(()=>[{no:1,name:"type_url",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:12}])},818:(s,l,u)=>{u.d(l,{Ak:()=>m,CZ:()=>h,Fd:()=>b,_y:()=>d,fC:()=>k,jI:()=>C,sg:()=>c});function c(){let w=0,E=0;for(let N=0;N<28;N+=7){let R=this.buf[this.pos++];if(w|=(R&127)<>4,!($&128))return this.assertBounds(),[w,E];for(let N=3;N<=31;N+=7){let R=this.buf[this.pos++];if(E|=(R&127)<>>B,V=!(!(U>>>7)&&E==0),z=(V?U|128:U)&255;if($.push(z),!V)return}const N=w>>>28&15|(E&7)<<4,R=!!(E>>3);if($.push((R?N|128:N)&255),!!R){for(let B=3;B<31;B=B+7){const U=E>>>B,V=!!(U>>>7),z=(V?U|128:U)&255;if($.push(z),!V)return}$.push(E>>>31&1)}}const p=4294967296;function h(w){const E=w[0]==="-";E&&(w=w.slice(1));const $=1e6;let N=0,R=0;function B(U,V){const z=Number(w.slice(U,V));R*=$,N=N*$+z,N>=p&&(R=R+(N/p|0),N=N%p)}return B(-24,-18),B(-18,-12),B(-12,-6),B(-6),E?v(N,R):y(N,R)}function m(w,E){let $=y(w,E);const N=$.hi&2147483648;N&&($=v($.lo,$.hi));const R=b($.lo,$.hi);return N?"-"+R:R}function b(w,E){if({lo:w,hi:E}=O(w,E),E<=2097151)return String(p*E+w);const $=w&16777215,N=(w>>>24|E<<8)&16777215,R=E>>16&65535;let B=$+N*6777216+R*6710656,U=N+R*8147497,V=R*2;const z=1e7;return B>=z&&(U+=Math.floor(B/z),B%=z),U>=z&&(V+=Math.floor(U/z),U%=z),V.toString()+S(U)+S(B)}function O(w,E){return{lo:w>>>0,hi:E>>>0}}function y(w,E){return{lo:w|0,hi:E|0}}function v(w,E){return E=~E,w?w=~w+1:E+=1,y(w,E)}const S=w=>{const E=String(w);return"0000000".slice(E.length)+E};function k(w,E){if(w>=0){for(;w>127;)E.push(w&127|128),w=w>>>7;E.push(w)}else{for(let $=0;$<9;$++)E.push(w&127|128),w=w>>7;E.push(1)}}function C(){let w=this.buf[this.pos++],E=w&127;if(!(w&128))return this.assertBounds(),E;if(w=this.buf[this.pos++],E|=(w&127)<<7,!(w&128))return this.assertBounds(),E;if(w=this.buf[this.pos++],E|=(w&127)<<14,!(w&128))return this.assertBounds(),E;if(w=this.buf[this.pos++],E|=(w&127)<<21,!(w&128))return this.assertBounds(),E;w=this.buf[this.pos++],E|=(w&15)<<28;for(let $=5;w&128&&$<10;$++)w=this.buf[this.pos++];if(w&128)throw new Error("invalid varint");return this.assertBounds(),E>>>0}},532:(s,l,u)=>{u.r(l),u.d(l,{Any:()=>Qp.I,Api:()=>Ba,BinaryReader:()=>U.oP,BinaryWriter:()=>U.Lt,BoolValue:()=>Ho,BytesValue:()=>Jt,CodeGeneratorRequest:()=>Yo,CodeGeneratorResponse:()=>di,CodeGeneratorResponse_Feature:()=>Gl,CodeGeneratorResponse_File:()=>wo,DescriptorProto:()=>ue,DescriptorProto_ExtensionRange:()=>xe,DescriptorProto_ReservedRange:()=>Ne,DoubleValue:()=>Vo,Duration:()=>Or,Edition:()=>G,Empty:()=>Ts,Enum:()=>Yn,EnumDescriptorProto:()=>We,EnumDescriptorProto_EnumReservedRange:()=>dt,EnumOptions:()=>pt,EnumValue:()=>Fa,EnumValueDescriptorProto:()=>Be,EnumValueOptions:()=>xt,ExtensionRangeOptions:()=>Ve,ExtensionRangeOptions_Declaration:()=>Me,ExtensionRangeOptions_VerificationState:()=>Ke,FeatureSet:()=>Nt,FeatureSetDefaults:()=>pe,FeatureSetDefaults_FeatureSetEditionDefault:()=>lt,FeatureSet_EnumType:()=>dn,FeatureSet_FieldPresence:()=>on,FeatureSet_JsonFormat:()=>_e,FeatureSet_MessageEncoding:()=>Ee,FeatureSet_RepeatedFieldEncoding:()=>pn,FeatureSet_Utf8Validation:()=>zn,Field:()=>Go,FieldDescriptorProto:()=>Ye,FieldDescriptorProto_Label:()=>ze,FieldDescriptorProto_Type:()=>ye,FieldMask:()=>ws,FieldOptions:()=>De,FieldOptions_CType:()=>ie,FieldOptions_EditionDefault:()=>Te,FieldOptions_JSType:()=>fe,FieldOptions_OptionRetention:()=>de,FieldOptions_OptionTargetType:()=>Oe,Field_Cardinality:()=>Mc,Field_Kind:()=>Lc,FileDescriptorProto:()=>ge,FileDescriptorSet:()=>ce,FileOptions:()=>J,FileOptions_OptimizeMode:()=>Re,FloatValue:()=>To,GeneratedCodeInfo:()=>$t,GeneratedCodeInfo_Annotation:()=>It,GeneratedCodeInfo_Annotation_Semantic:()=>Ct,Int32Value:()=>Cr,Int64Value:()=>ji,ListValue:()=>io,LongType:()=>p.p,Message:()=>se.v,MessageOptions:()=>Le,Method:()=>da,MethodDescriptorProto:()=>ee,MethodIdempotency:()=>ve.w,MethodKind:()=>ve.t,MethodOptions:()=>vt,MethodOptions_IdempotencyLevel:()=>qe,Mixin:()=>Ua,NullValue:()=>ro,OneofDescriptorProto:()=>$e,OneofOptions:()=>rt,Option:()=>xi,ScalarType:()=>p.w,ServiceDescriptorProto:()=>re,ServiceOptions:()=>et,SourceCodeInfo:()=>at,SourceCodeInfo_Location:()=>Mt,SourceContext:()=>ua,StringValue:()=>zi,Struct:()=>So,Syntax:()=>ca,Timestamp:()=>la,Type:()=>ki,UInt32Value:()=>Ur,UInt64Value:()=>mr,UninterpretedOption:()=>it,UninterpretedOption_NamePart:()=>Et,Value:()=>Br,Version:()=>Qo,WireType:()=>U.TD,codegenInfo:()=>j,createDescriptorSet:()=>Wt,createRegistry:()=>BO,createRegistryFromDescriptors:()=>df,proto2:()=>E,proto3:()=>c.w,protoBase64:()=>B.W,protoDelimited:()=>X,protoDouble:()=>N,protoInt64:()=>R.q,toPlainMessage:()=>Gp});var c=u(850),d=u(493),p=u(465),h=u(744);function m(){return Object.assign(Object.assign({},(0,h.gY)()),{writeMessage(F,x,L){const le=F.getType();let be;try{for(be of le.fields.byNumber()){let Pe,je=be.repeated,ct=be.localName;if(be.oneof){const Ze=F[be.oneof.localName];if(Ze.case!==ct)continue;Pe=Ze.value}else if(Pe=F[ct],Pe===void 0&&!be.oneof&&!be.opt)throw new Error(`cannot encode field ${le.typeName}.${be.name} to binary: required field not set`);switch(be.kind){case"scalar":case"enum":let Ze=be.kind=="enum"?p.w.INT32:be.T;if(je)if(be.packed)(0,h.Jj)(x,Ze,be.no,Pe);else for(const Ot of Pe)(0,h.NN)(x,Ze,be.no,Ot,!0);else Pe!==void 0&&(0,h.NN)(x,Ze,be.no,Pe,!0);break;case"message":if(je)for(const Ot of Pe)(0,h.oQ)(x,L,be,Ot);else(0,h.oQ)(x,L,be,Pe);break;case"map":for(const[Ot,Pt]of Object.entries(Pe))(0,h.gQ)(x,L,be,Ot,Pt);break}}}catch(Pe){let je=be?`cannot encode field ${le.typeName}.${be==null?void 0:be.name} to binary`:`cannot encode message ${le.typeName} to binary`,ct=Pe instanceof Error?Pe.message:String(Pe);throw new Error(je+(ct.length>0?`: ${ct}`:""))}return L.writeUnknownFields&&this.writeUnknownFields(F,x),x}})}var b=u(433),O=u(501),y=u(215),v=u(504),S=u(432),k=u(120),C=u(814);function w(){return(0,C.b)((F,x)=>function(le,be,Pe){if(le.kind=="map"){const je={};switch(le.V.kind){case"scalar":for(const[Ze,Ot]of Object.entries(be)){const Pt=x(le.V.T,Ot,!0);(0,k.hu)(Pt!==void 0),je[Ze.toString()]=Pt}break;case"message":for(const[Ze,Ot]of Object.entries(be))je[Ze.toString()]=Ot.toJson(Pe);break;case"enum":const ct=le.V.T;for(const[Ze,Ot]of Object.entries(be)){(0,k.hu)(Ot===void 0||typeof Ot=="number");const Pt=F(ct,Ot,!0,Pe.enumAsInteger);(0,k.hu)(Pt!==void 0),je[Ze.toString()]=Pt}break}return Pe.emitDefaultValues||Object.keys(je).length>0?je:void 0}else if(le.repeated){const je=[];switch(le.kind){case"scalar":for(let ct=0;ct0?je:void 0}else{if(be===void 0){if(!le.oneof&&!le.opt)throw"required field not set";return}switch(le.kind){case"scalar":return x(le.T,be,!0);case"enum":return F(le.T,be,!0,Pe.enumAsInteger);case"message":return(0,S.E)(le.T,be).toJson(Pe)}}})}const E=(0,d.F)("proto2",w(),m(),Object.assign(Object.assign({},(0,b.f)()),{newFieldList(F){return new O.i(F,$)},initFields(F){for(const x of F.getType().fields.byMember()){const L=x.localName,le=F;if(x.repeated){le[L]=[];continue}switch(x.kind){case"oneof":le[L]={case:void 0};break;case"map":le[L]={};break}}}}));function $(F){var x,L,le,be,Pe;const je=[];let ct;for(const Ze of typeof F=="function"?F():F){const Ot=Ze;if(Ot.localName=(0,v.Rz)(Ze.name,Ze.oneof!==void 0),Ot.jsonName=(x=Ze.jsonName)!==null&&x!==void 0?x:(0,v.x1)(Ze.name),Ot.repeated=(L=Ze.repeated)!==null&&L!==void 0?L:!1,Ze.kind=="scalar"&&(Ot.L=(le=Ze.L)!==null&&le!==void 0?le:p.p.BIGINT),Ze.oneof!==void 0){const Pt=typeof Ze.oneof=="string"?Ze.oneof:Ze.oneof.name;(!ct||ct.name!=Pt)&&(ct=new y.o(Pt)),Ot.oneof=ct,ct.addField(Ot)}Ze.kind=="message"&&(Ot.delimited=(be=Ze.delimited)!==null&&be!==void 0?be:!1),Ot.packed=(Pe=Ze.packed)!==null&&Pe!==void 0?Pe:!1,je.push(Ot)}return je}const N={NaN:Number.NaN,POSITIVE_INFINITY:Number.POSITIVE_INFINITY,NEGATIVE_INFINITY:Number.NEGATIVE_INFINITY};var R=u(210),B=u(236),U=u(79),V=function(F){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var x=F[Symbol.asyncIterator],L;return x?x.call(F):(F=typeof __values=="function"?__values(F):F[Symbol.iterator](),L={},le("next"),le("throw"),le("return"),L[Symbol.asyncIterator]=function(){return this},L);function le(Pe){L[Pe]=F[Pe]&&function(je){return new Promise(function(ct,Ze){je=F[Pe](je),be(ct,Ze,je.done,je.value)})}}function be(Pe,je,ct,Ze){Promise.resolve(Ze).then(function(Ot){Pe({value:Ot,done:ct})},je)}},z=function(F){return this instanceof z?(this.v=F,this):new z(F)},W=function(F,x,L){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var le=L.apply(F,x||[]),be,Pe=[];return be={},ct("next"),ct("throw"),ct("return",je),be[Symbol.asyncIterator]=function(){return this},be;function je(Sn){return function(Vi){return Promise.resolve(Vi).then(Sn,On)}}function ct(Sn,Vi){le[Sn]&&(be[Sn]=function(ja){return new Promise(function(qx,pf){Pe.push([Sn,ja,qx,pf])>1||Ze(Sn,ja)})},Vi&&(be[Sn]=Vi(be[Sn])))}function Ze(Sn,Vi){try{Ot(le[Sn](Vi))}catch(ja){vr(Pe[0][3],ja)}}function Ot(Sn){Sn.value instanceof z?Promise.resolve(Sn.value.v).then(Pt,On):vr(Pe[0][2],Sn)}function Pt(Sn){Ze("next",Sn)}function On(Sn){Ze("throw",Sn)}function vr(Sn,Vi){Sn(Vi),Pe.shift(),Pe.length&&Ze(Pe[0][0],Pe[0][1])}};const X={enc(F,x){const L=(0,h.gY)().makeWriteOptions(x);return L.writerFactory().bytes(F.toBinary(L)).finish()},dec(F,x,L){const le=(0,h.gY)().makeReadOptions(L);return F.fromBinary(le.readerFactory(x).bytes(),le)},decStream(F,x){return W(this,arguments,function*(){var le,be,Pe,je;function ct(vr,Sn){const Vi=new Uint8Array(vr.byteLength+Sn.byteLength);return Vi.set(vr),Vi.set(Sn,vr.length),Vi}let Ze=new Uint8Array(0);try{for(var Ot=!0,Pt=V(x),On;On=yield z(Pt.next()),le=On.done,!le;Ot=!0)for(je=On.value,Ot=!1,Ze=ct(Ze,je);;){const Sn=X.peekSize(Ze);if(Sn.eof||Sn.offset+Sn.size>Ze.byteLength)break;yield yield z(X.dec(F,Ze)),Ze=Ze.subarray(Sn.offset+Sn.size)}}catch(vr){be={error:vr}}finally{try{!Ot&&!le&&(Pe=Pt.return)&&(yield z(Pe.call(Pt)))}finally{if(be)throw be.error}}if(Ze.byteLength>0)throw new Error("incomplete data")})},peekSize(F){const x={eof:!0,size:null,offset:null};for(let L=0;L<10;L++){if(L>F.byteLength)return x;if(!(F[L]&128)){const le=new U.oP(F);let be;try{be=le.uint32()}catch(Pe){if(Pe instanceof RangeError)return x;throw Pe}return{eof:!1,size:be,offset:le.pos}}}throw new Error("invalid varint")}};var q=u(781);function Y(F){switch(F.typeName){case"google.protobuf.Any":{const x=F.fields.find(le=>le.number==1&&le.fieldKind=="scalar"&&le.scalar===p.w.STRING),L=F.fields.find(le=>le.number==2&&le.fieldKind=="scalar"&&le.scalar===p.w.BYTES);if(x&&L)return{typeName:F.typeName,typeUrl:x,value:L};break}case"google.protobuf.Timestamp":{const x=F.fields.find(le=>le.number==1&&le.fieldKind=="scalar"&&le.scalar===p.w.INT64),L=F.fields.find(le=>le.number==2&&le.fieldKind=="scalar"&&le.scalar===p.w.INT32);if(x&&L)return{typeName:F.typeName,seconds:x,nanos:L};break}case"google.protobuf.Duration":{const x=F.fields.find(le=>le.number==1&&le.fieldKind=="scalar"&&le.scalar===p.w.INT64),L=F.fields.find(le=>le.number==2&&le.fieldKind=="scalar"&&le.scalar===p.w.INT32);if(x&&L)return{typeName:F.typeName,seconds:x,nanos:L};break}case"google.protobuf.Struct":{const x=F.fields.find(L=>L.number==1&&!L.repeated);if((x==null?void 0:x.fieldKind)!=="map"||x.mapValue.kind!=="message"||x.mapValue.message.typeName!=="google.protobuf.Value")break;return{typeName:F.typeName,fields:x}}case"google.protobuf.Value":{const x=F.oneofs.find(Ze=>Ze.name==="kind"),L=F.fields.find(Ze=>Ze.number==1&&Ze.oneof===x);if((L==null?void 0:L.fieldKind)!=="enum"||L.enum.typeName!=="google.protobuf.NullValue")return;const le=F.fields.find(Ze=>Ze.number==2&&Ze.fieldKind=="scalar"&&Ze.scalar===p.w.DOUBLE&&Ze.oneof===x),be=F.fields.find(Ze=>Ze.number==3&&Ze.fieldKind=="scalar"&&Ze.scalar===p.w.STRING&&Ze.oneof===x),Pe=F.fields.find(Ze=>Ze.number==4&&Ze.fieldKind=="scalar"&&Ze.scalar===p.w.BOOL&&Ze.oneof===x),je=F.fields.find(Ze=>Ze.number==5&&Ze.oneof===x);if((je==null?void 0:je.fieldKind)!=="message"||je.message.typeName!=="google.protobuf.Struct")return;const ct=F.fields.find(Ze=>Ze.number==6&&Ze.oneof===x);if((ct==null?void 0:ct.fieldKind)!=="message"||ct.message.typeName!=="google.protobuf.ListValue")return;if(x&&le&&be&&Pe)return{typeName:F.typeName,kind:x,nullValue:L,numberValue:le,stringValue:be,boolValue:Pe,structValue:je,listValue:ct};break}case"google.protobuf.ListValue":{const x=F.fields.find(L=>L.number==1&&L.repeated);if((x==null?void 0:x.fieldKind)!="message"||x.message.typeName!=="google.protobuf.Value")break;return{typeName:F.typeName,values:x}}case"google.protobuf.FieldMask":{const x=F.fields.find(L=>L.number==1&&L.fieldKind=="scalar"&&L.scalar===p.w.STRING&&L.repeated);if(x)return{typeName:F.typeName,paths:x};break}case"google.protobuf.DoubleValue":case"google.protobuf.FloatValue":case"google.protobuf.Int64Value":case"google.protobuf.UInt64Value":case"google.protobuf.Int32Value":case"google.protobuf.UInt32Value":case"google.protobuf.BoolValue":case"google.protobuf.StringValue":case"google.protobuf.BytesValue":{const x=F.fields.find(L=>L.number==1&&L.name=="value");if(!x||x.fieldKind!=="scalar")break;return{typeName:F.typeName,value:x}}}}const Z="@bufbuild/protobuf",j={packageName:"@bufbuild/protobuf",localName:v.r1,reifyWkt:Y,getUnwrappedFieldType:S.w,scalarDefaultValue:q.kY,safeIdentifier:v.GD,safeObjectProperty:v.ll,symbols:{proto2:{typeOnly:!1,privateImportPath:"./proto2.js",publicImportPath:Z},proto3:{typeOnly:!1,privateImportPath:"./proto3.js",publicImportPath:Z},Message:{typeOnly:!1,privateImportPath:"./message.js",publicImportPath:Z},PartialMessage:{typeOnly:!0,privateImportPath:"./message.js",publicImportPath:Z},PlainMessage:{typeOnly:!0,privateImportPath:"./message.js",publicImportPath:Z},FieldList:{typeOnly:!0,privateImportPath:"./field-list.js",publicImportPath:Z},MessageType:{typeOnly:!0,privateImportPath:"./message-type.js",publicImportPath:Z},BinaryReadOptions:{typeOnly:!0,privateImportPath:"./binary-format.js",publicImportPath:Z},BinaryWriteOptions:{typeOnly:!0,privateImportPath:"./binary-format.js",publicImportPath:Z},JsonReadOptions:{typeOnly:!0,privateImportPath:"./json-format.js",publicImportPath:Z},JsonWriteOptions:{typeOnly:!0,privateImportPath:"./json-format.js",publicImportPath:Z},JsonValue:{typeOnly:!0,privateImportPath:"./json-format.js",publicImportPath:Z},JsonObject:{typeOnly:!0,privateImportPath:"./json-format.js",publicImportPath:Z},protoDouble:{typeOnly:!1,privateImportPath:"./proto-double.js",publicImportPath:Z},protoInt64:{typeOnly:!1,privateImportPath:"./proto-int64.js",publicImportPath:Z},ScalarType:{typeOnly:!1,privateImportPath:"./field.js",publicImportPath:Z},LongType:{typeOnly:!1,privateImportPath:"./field.js",publicImportPath:Z},MethodKind:{typeOnly:!1,privateImportPath:"./service-type.js",publicImportPath:Z},MethodIdempotency:{typeOnly:!1,privateImportPath:"./service-type.js",publicImportPath:Z},IMessageTypeRegistry:{typeOnly:!0,privateImportPath:"./type-registry.js",publicImportPath:Z}},wktSourceFiles:["google/protobuf/compiler/plugin.proto","google/protobuf/any.proto","google/protobuf/api.proto","google/protobuf/descriptor.proto","google/protobuf/duration.proto","google/protobuf/empty.proto","google/protobuf/field_mask.proto","google/protobuf/source_context.proto","google/protobuf/struct.proto","google/protobuf/timestamp.proto","google/protobuf/type.proto","google/protobuf/wrappers.proto"]};var se=u(561),ve=u(328),G;(function(F){F[F.EDITION_UNKNOWN=0]="EDITION_UNKNOWN",F[F.EDITION_PROTO2=998]="EDITION_PROTO2",F[F.EDITION_PROTO3=999]="EDITION_PROTO3",F[F.EDITION_2023=1e3]="EDITION_2023",F[F.EDITION_1_TEST_ONLY=1]="EDITION_1_TEST_ONLY",F[F.EDITION_2_TEST_ONLY=2]="EDITION_2_TEST_ONLY",F[F.EDITION_99997_TEST_ONLY=99997]="EDITION_99997_TEST_ONLY",F[F.EDITION_99998_TEST_ONLY=99998]="EDITION_99998_TEST_ONLY",F[F.EDITION_99999_TEST_ONLY=99999]="EDITION_99999_TEST_ONLY"})(G||(G={})),E.util.setEnumType(G,"google.protobuf.Edition",[{no:0,name:"EDITION_UNKNOWN"},{no:998,name:"EDITION_PROTO2"},{no:999,name:"EDITION_PROTO3"},{no:1e3,name:"EDITION_2023"},{no:1,name:"EDITION_1_TEST_ONLY"},{no:2,name:"EDITION_2_TEST_ONLY"},{no:99997,name:"EDITION_99997_TEST_ONLY"},{no:99998,name:"EDITION_99998_TEST_ONLY"},{no:99999,name:"EDITION_99999_TEST_ONLY"}]);class ce extends se.v{constructor(x){super(),this.file=[],E.util.initPartial(x,this)}static fromBinary(x,L){return new ce().fromBinary(x,L)}static fromJson(x,L){return new ce().fromJson(x,L)}static fromJsonString(x,L){return new ce().fromJsonString(x,L)}static equals(x,L){return E.util.equals(ce,x,L)}}ce.runtime=E,ce.typeName="google.protobuf.FileDescriptorSet",ce.fields=E.util.newFieldList(()=>[{no:1,name:"file",kind:"message",T:ge,repeated:!0}]);class ge extends se.v{constructor(x){super(),this.dependency=[],this.publicDependency=[],this.weakDependency=[],this.messageType=[],this.enumType=[],this.service=[],this.extension=[],E.util.initPartial(x,this)}static fromBinary(x,L){return new ge().fromBinary(x,L)}static fromJson(x,L){return new ge().fromJson(x,L)}static fromJsonString(x,L){return new ge().fromJsonString(x,L)}static equals(x,L){return E.util.equals(ge,x,L)}}ge.runtime=E,ge.typeName="google.protobuf.FileDescriptorProto",ge.fields=E.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"package",kind:"scalar",T:9,opt:!0},{no:3,name:"dependency",kind:"scalar",T:9,repeated:!0},{no:10,name:"public_dependency",kind:"scalar",T:5,repeated:!0},{no:11,name:"weak_dependency",kind:"scalar",T:5,repeated:!0},{no:4,name:"message_type",kind:"message",T:ue,repeated:!0},{no:5,name:"enum_type",kind:"message",T:We,repeated:!0},{no:6,name:"service",kind:"message",T:re,repeated:!0},{no:7,name:"extension",kind:"message",T:Ye,repeated:!0},{no:8,name:"options",kind:"message",T:J,opt:!0},{no:9,name:"source_code_info",kind:"message",T:at,opt:!0},{no:12,name:"syntax",kind:"scalar",T:9,opt:!0},{no:14,name:"edition",kind:"enum",T:E.getEnumType(G),opt:!0}]);class ue extends se.v{constructor(x){super(),this.field=[],this.extension=[],this.nestedType=[],this.enumType=[],this.extensionRange=[],this.oneofDecl=[],this.reservedRange=[],this.reservedName=[],E.util.initPartial(x,this)}static fromBinary(x,L){return new ue().fromBinary(x,L)}static fromJson(x,L){return new ue().fromJson(x,L)}static fromJsonString(x,L){return new ue().fromJsonString(x,L)}static equals(x,L){return E.util.equals(ue,x,L)}}ue.runtime=E,ue.typeName="google.protobuf.DescriptorProto",ue.fields=E.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"field",kind:"message",T:Ye,repeated:!0},{no:6,name:"extension",kind:"message",T:Ye,repeated:!0},{no:3,name:"nested_type",kind:"message",T:ue,repeated:!0},{no:4,name:"enum_type",kind:"message",T:We,repeated:!0},{no:5,name:"extension_range",kind:"message",T:xe,repeated:!0},{no:8,name:"oneof_decl",kind:"message",T:$e,repeated:!0},{no:7,name:"options",kind:"message",T:Le,opt:!0},{no:9,name:"reserved_range",kind:"message",T:Ne,repeated:!0},{no:10,name:"reserved_name",kind:"scalar",T:9,repeated:!0}]);class xe extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,L){return new xe().fromBinary(x,L)}static fromJson(x,L){return new xe().fromJson(x,L)}static fromJsonString(x,L){return new xe().fromJsonString(x,L)}static equals(x,L){return E.util.equals(xe,x,L)}}xe.runtime=E,xe.typeName="google.protobuf.DescriptorProto.ExtensionRange",xe.fields=E.util.newFieldList(()=>[{no:1,name:"start",kind:"scalar",T:5,opt:!0},{no:2,name:"end",kind:"scalar",T:5,opt:!0},{no:3,name:"options",kind:"message",T:Ve,opt:!0}]);class Ne extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,L){return new Ne().fromBinary(x,L)}static fromJson(x,L){return new Ne().fromJson(x,L)}static fromJsonString(x,L){return new Ne().fromJsonString(x,L)}static equals(x,L){return E.util.equals(Ne,x,L)}}Ne.runtime=E,Ne.typeName="google.protobuf.DescriptorProto.ReservedRange",Ne.fields=E.util.newFieldList(()=>[{no:1,name:"start",kind:"scalar",T:5,opt:!0},{no:2,name:"end",kind:"scalar",T:5,opt:!0}]);class Ve extends se.v{constructor(x){super(),this.uninterpretedOption=[],this.declaration=[],E.util.initPartial(x,this)}static fromBinary(x,L){return new Ve().fromBinary(x,L)}static fromJson(x,L){return new Ve().fromJson(x,L)}static fromJsonString(x,L){return new Ve().fromJsonString(x,L)}static equals(x,L){return E.util.equals(Ve,x,L)}}Ve.runtime=E,Ve.typeName="google.protobuf.ExtensionRangeOptions",Ve.fields=E.util.newFieldList(()=>[{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0},{no:2,name:"declaration",kind:"message",T:Me,repeated:!0},{no:50,name:"features",kind:"message",T:Nt,opt:!0},{no:3,name:"verification",kind:"enum",T:E.getEnumType(Ke),opt:!0,default:Ke.UNVERIFIED}]);var Ke;(function(F){F[F.DECLARATION=0]="DECLARATION",F[F.UNVERIFIED=1]="UNVERIFIED"})(Ke||(Ke={})),E.util.setEnumType(Ke,"google.protobuf.ExtensionRangeOptions.VerificationState",[{no:0,name:"DECLARATION"},{no:1,name:"UNVERIFIED"}]);class Me extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,L){return new Me().fromBinary(x,L)}static fromJson(x,L){return new Me().fromJson(x,L)}static fromJsonString(x,L){return new Me().fromJsonString(x,L)}static equals(x,L){return E.util.equals(Me,x,L)}}Me.runtime=E,Me.typeName="google.protobuf.ExtensionRangeOptions.Declaration",Me.fields=E.util.newFieldList(()=>[{no:1,name:"number",kind:"scalar",T:5,opt:!0},{no:2,name:"full_name",kind:"scalar",T:9,opt:!0},{no:3,name:"type",kind:"scalar",T:9,opt:!0},{no:5,name:"reserved",kind:"scalar",T:8,opt:!0},{no:6,name:"repeated",kind:"scalar",T:8,opt:!0}]);class Ye extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,L){return new Ye().fromBinary(x,L)}static fromJson(x,L){return new Ye().fromJson(x,L)}static fromJsonString(x,L){return new Ye().fromJsonString(x,L)}static equals(x,L){return E.util.equals(Ye,x,L)}}Ye.runtime=E,Ye.typeName="google.protobuf.FieldDescriptorProto",Ye.fields=E.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:3,name:"number",kind:"scalar",T:5,opt:!0},{no:4,name:"label",kind:"enum",T:E.getEnumType(ze),opt:!0},{no:5,name:"type",kind:"enum",T:E.getEnumType(ye),opt:!0},{no:6,name:"type_name",kind:"scalar",T:9,opt:!0},{no:2,name:"extendee",kind:"scalar",T:9,opt:!0},{no:7,name:"default_value",kind:"scalar",T:9,opt:!0},{no:9,name:"oneof_index",kind:"scalar",T:5,opt:!0},{no:10,name:"json_name",kind:"scalar",T:9,opt:!0},{no:8,name:"options",kind:"message",T:De,opt:!0},{no:17,name:"proto3_optional",kind:"scalar",T:8,opt:!0}]);var ye;(function(F){F[F.DOUBLE=1]="DOUBLE",F[F.FLOAT=2]="FLOAT",F[F.INT64=3]="INT64",F[F.UINT64=4]="UINT64",F[F.INT32=5]="INT32",F[F.FIXED64=6]="FIXED64",F[F.FIXED32=7]="FIXED32",F[F.BOOL=8]="BOOL",F[F.STRING=9]="STRING",F[F.GROUP=10]="GROUP",F[F.MESSAGE=11]="MESSAGE",F[F.BYTES=12]="BYTES",F[F.UINT32=13]="UINT32",F[F.ENUM=14]="ENUM",F[F.SFIXED32=15]="SFIXED32",F[F.SFIXED64=16]="SFIXED64",F[F.SINT32=17]="SINT32",F[F.SINT64=18]="SINT64"})(ye||(ye={})),E.util.setEnumType(ye,"google.protobuf.FieldDescriptorProto.Type",[{no:1,name:"TYPE_DOUBLE"},{no:2,name:"TYPE_FLOAT"},{no:3,name:"TYPE_INT64"},{no:4,name:"TYPE_UINT64"},{no:5,name:"TYPE_INT32"},{no:6,name:"TYPE_FIXED64"},{no:7,name:"TYPE_FIXED32"},{no:8,name:"TYPE_BOOL"},{no:9,name:"TYPE_STRING"},{no:10,name:"TYPE_GROUP"},{no:11,name:"TYPE_MESSAGE"},{no:12,name:"TYPE_BYTES"},{no:13,name:"TYPE_UINT32"},{no:14,name:"TYPE_ENUM"},{no:15,name:"TYPE_SFIXED32"},{no:16,name:"TYPE_SFIXED64"},{no:17,name:"TYPE_SINT32"},{no:18,name:"TYPE_SINT64"}]);var ze;(function(F){F[F.OPTIONAL=1]="OPTIONAL",F[F.REPEATED=3]="REPEATED",F[F.REQUIRED=2]="REQUIRED"})(ze||(ze={})),E.util.setEnumType(ze,"google.protobuf.FieldDescriptorProto.Label",[{no:1,name:"LABEL_OPTIONAL"},{no:3,name:"LABEL_REPEATED"},{no:2,name:"LABEL_REQUIRED"}]);class $e extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,L){return new $e().fromBinary(x,L)}static fromJson(x,L){return new $e().fromJson(x,L)}static fromJsonString(x,L){return new $e().fromJsonString(x,L)}static equals(x,L){return E.util.equals($e,x,L)}}$e.runtime=E,$e.typeName="google.protobuf.OneofDescriptorProto",$e.fields=E.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"options",kind:"message",T:rt,opt:!0}]);class We extends se.v{constructor(x){super(),this.value=[],this.reservedRange=[],this.reservedName=[],E.util.initPartial(x,this)}static fromBinary(x,L){return new We().fromBinary(x,L)}static fromJson(x,L){return new We().fromJson(x,L)}static fromJsonString(x,L){return new We().fromJsonString(x,L)}static equals(x,L){return E.util.equals(We,x,L)}}We.runtime=E,We.typeName="google.protobuf.EnumDescriptorProto",We.fields=E.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"value",kind:"message",T:Be,repeated:!0},{no:3,name:"options",kind:"message",T:pt,opt:!0},{no:4,name:"reserved_range",kind:"message",T:dt,repeated:!0},{no:5,name:"reserved_name",kind:"scalar",T:9,repeated:!0}]);class dt extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,L){return new dt().fromBinary(x,L)}static fromJson(x,L){return new dt().fromJson(x,L)}static fromJsonString(x,L){return new dt().fromJsonString(x,L)}static equals(x,L){return E.util.equals(dt,x,L)}}dt.runtime=E,dt.typeName="google.protobuf.EnumDescriptorProto.EnumReservedRange",dt.fields=E.util.newFieldList(()=>[{no:1,name:"start",kind:"scalar",T:5,opt:!0},{no:2,name:"end",kind:"scalar",T:5,opt:!0}]);class Be extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,L){return new Be().fromBinary(x,L)}static fromJson(x,L){return new Be().fromJson(x,L)}static fromJsonString(x,L){return new Be().fromJsonString(x,L)}static equals(x,L){return E.util.equals(Be,x,L)}}Be.runtime=E,Be.typeName="google.protobuf.EnumValueDescriptorProto",Be.fields=E.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"number",kind:"scalar",T:5,opt:!0},{no:3,name:"options",kind:"message",T:xt,opt:!0}]);class re extends se.v{constructor(x){super(),this.method=[],E.util.initPartial(x,this)}static fromBinary(x,L){return new re().fromBinary(x,L)}static fromJson(x,L){return new re().fromJson(x,L)}static fromJsonString(x,L){return new re().fromJsonString(x,L)}static equals(x,L){return E.util.equals(re,x,L)}}re.runtime=E,re.typeName="google.protobuf.ServiceDescriptorProto",re.fields=E.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"method",kind:"message",T:ee,repeated:!0},{no:3,name:"options",kind:"message",T:et,opt:!0}]);class ee extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,L){return new ee().fromBinary(x,L)}static fromJson(x,L){return new ee().fromJson(x,L)}static fromJsonString(x,L){return new ee().fromJsonString(x,L)}static equals(x,L){return E.util.equals(ee,x,L)}}ee.runtime=E,ee.typeName="google.protobuf.MethodDescriptorProto",ee.fields=E.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"input_type",kind:"scalar",T:9,opt:!0},{no:3,name:"output_type",kind:"scalar",T:9,opt:!0},{no:4,name:"options",kind:"message",T:vt,opt:!0},{no:5,name:"client_streaming",kind:"scalar",T:8,opt:!0,default:!1},{no:6,name:"server_streaming",kind:"scalar",T:8,opt:!0,default:!1}]);class J extends se.v{constructor(x){super(),this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,L){return new J().fromBinary(x,L)}static fromJson(x,L){return new J().fromJson(x,L)}static fromJsonString(x,L){return new J().fromJsonString(x,L)}static equals(x,L){return E.util.equals(J,x,L)}}J.runtime=E,J.typeName="google.protobuf.FileOptions",J.fields=E.util.newFieldList(()=>[{no:1,name:"java_package",kind:"scalar",T:9,opt:!0},{no:8,name:"java_outer_classname",kind:"scalar",T:9,opt:!0},{no:10,name:"java_multiple_files",kind:"scalar",T:8,opt:!0,default:!1},{no:20,name:"java_generate_equals_and_hash",kind:"scalar",T:8,opt:!0},{no:27,name:"java_string_check_utf8",kind:"scalar",T:8,opt:!0,default:!1},{no:9,name:"optimize_for",kind:"enum",T:E.getEnumType(Re),opt:!0,default:Re.SPEED},{no:11,name:"go_package",kind:"scalar",T:9,opt:!0},{no:16,name:"cc_generic_services",kind:"scalar",T:8,opt:!0,default:!1},{no:17,name:"java_generic_services",kind:"scalar",T:8,opt:!0,default:!1},{no:18,name:"py_generic_services",kind:"scalar",T:8,opt:!0,default:!1},{no:42,name:"php_generic_services",kind:"scalar",T:8,opt:!0,default:!1},{no:23,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:31,name:"cc_enable_arenas",kind:"scalar",T:8,opt:!0,default:!0},{no:36,name:"objc_class_prefix",kind:"scalar",T:9,opt:!0},{no:37,name:"csharp_namespace",kind:"scalar",T:9,opt:!0},{no:39,name:"swift_prefix",kind:"scalar",T:9,opt:!0},{no:40,name:"php_class_prefix",kind:"scalar",T:9,opt:!0},{no:41,name:"php_namespace",kind:"scalar",T:9,opt:!0},{no:44,name:"php_metadata_namespace",kind:"scalar",T:9,opt:!0},{no:45,name:"ruby_package",kind:"scalar",T:9,opt:!0},{no:50,name:"features",kind:"message",T:Nt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);var Re;(function(F){F[F.SPEED=1]="SPEED",F[F.CODE_SIZE=2]="CODE_SIZE",F[F.LITE_RUNTIME=3]="LITE_RUNTIME"})(Re||(Re={})),E.util.setEnumType(Re,"google.protobuf.FileOptions.OptimizeMode",[{no:1,name:"SPEED"},{no:2,name:"CODE_SIZE"},{no:3,name:"LITE_RUNTIME"}]);class Le extends se.v{constructor(x){super(),this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,L){return new Le().fromBinary(x,L)}static fromJson(x,L){return new Le().fromJson(x,L)}static fromJsonString(x,L){return new Le().fromJsonString(x,L)}static equals(x,L){return E.util.equals(Le,x,L)}}Le.runtime=E,Le.typeName="google.protobuf.MessageOptions",Le.fields=E.util.newFieldList(()=>[{no:1,name:"message_set_wire_format",kind:"scalar",T:8,opt:!0,default:!1},{no:2,name:"no_standard_descriptor_accessor",kind:"scalar",T:8,opt:!0,default:!1},{no:3,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:7,name:"map_entry",kind:"scalar",T:8,opt:!0},{no:11,name:"deprecated_legacy_json_field_conflicts",kind:"scalar",T:8,opt:!0},{no:12,name:"features",kind:"message",T:Nt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);class De extends se.v{constructor(x){super(),this.targets=[],this.editionDefaults=[],this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,L){return new De().fromBinary(x,L)}static fromJson(x,L){return new De().fromJson(x,L)}static fromJsonString(x,L){return new De().fromJsonString(x,L)}static equals(x,L){return E.util.equals(De,x,L)}}De.runtime=E,De.typeName="google.protobuf.FieldOptions",De.fields=E.util.newFieldList(()=>[{no:1,name:"ctype",kind:"enum",T:E.getEnumType(ie),opt:!0,default:ie.STRING},{no:2,name:"packed",kind:"scalar",T:8,opt:!0},{no:6,name:"jstype",kind:"enum",T:E.getEnumType(fe),opt:!0,default:fe.JS_NORMAL},{no:5,name:"lazy",kind:"scalar",T:8,opt:!0,default:!1},{no:15,name:"unverified_lazy",kind:"scalar",T:8,opt:!0,default:!1},{no:3,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:10,name:"weak",kind:"scalar",T:8,opt:!0,default:!1},{no:16,name:"debug_redact",kind:"scalar",T:8,opt:!0,default:!1},{no:17,name:"retention",kind:"enum",T:E.getEnumType(de),opt:!0},{no:19,name:"targets",kind:"enum",T:E.getEnumType(Oe),repeated:!0},{no:20,name:"edition_defaults",kind:"message",T:Te,repeated:!0},{no:21,name:"features",kind:"message",T:Nt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);var ie;(function(F){F[F.STRING=0]="STRING",F[F.CORD=1]="CORD",F[F.STRING_PIECE=2]="STRING_PIECE"})(ie||(ie={})),E.util.setEnumType(ie,"google.protobuf.FieldOptions.CType",[{no:0,name:"STRING"},{no:1,name:"CORD"},{no:2,name:"STRING_PIECE"}]);var fe;(function(F){F[F.JS_NORMAL=0]="JS_NORMAL",F[F.JS_STRING=1]="JS_STRING",F[F.JS_NUMBER=2]="JS_NUMBER"})(fe||(fe={})),E.util.setEnumType(fe,"google.protobuf.FieldOptions.JSType",[{no:0,name:"JS_NORMAL"},{no:1,name:"JS_STRING"},{no:2,name:"JS_NUMBER"}]);var de;(function(F){F[F.RETENTION_UNKNOWN=0]="RETENTION_UNKNOWN",F[F.RETENTION_RUNTIME=1]="RETENTION_RUNTIME",F[F.RETENTION_SOURCE=2]="RETENTION_SOURCE"})(de||(de={})),E.util.setEnumType(de,"google.protobuf.FieldOptions.OptionRetention",[{no:0,name:"RETENTION_UNKNOWN"},{no:1,name:"RETENTION_RUNTIME"},{no:2,name:"RETENTION_SOURCE"}]);var Oe;(function(F){F[F.TARGET_TYPE_UNKNOWN=0]="TARGET_TYPE_UNKNOWN",F[F.TARGET_TYPE_FILE=1]="TARGET_TYPE_FILE",F[F.TARGET_TYPE_EXTENSION_RANGE=2]="TARGET_TYPE_EXTENSION_RANGE",F[F.TARGET_TYPE_MESSAGE=3]="TARGET_TYPE_MESSAGE",F[F.TARGET_TYPE_FIELD=4]="TARGET_TYPE_FIELD",F[F.TARGET_TYPE_ONEOF=5]="TARGET_TYPE_ONEOF",F[F.TARGET_TYPE_ENUM=6]="TARGET_TYPE_ENUM",F[F.TARGET_TYPE_ENUM_ENTRY=7]="TARGET_TYPE_ENUM_ENTRY",F[F.TARGET_TYPE_SERVICE=8]="TARGET_TYPE_SERVICE",F[F.TARGET_TYPE_METHOD=9]="TARGET_TYPE_METHOD"})(Oe||(Oe={})),E.util.setEnumType(Oe,"google.protobuf.FieldOptions.OptionTargetType",[{no:0,name:"TARGET_TYPE_UNKNOWN"},{no:1,name:"TARGET_TYPE_FILE"},{no:2,name:"TARGET_TYPE_EXTENSION_RANGE"},{no:3,name:"TARGET_TYPE_MESSAGE"},{no:4,name:"TARGET_TYPE_FIELD"},{no:5,name:"TARGET_TYPE_ONEOF"},{no:6,name:"TARGET_TYPE_ENUM"},{no:7,name:"TARGET_TYPE_ENUM_ENTRY"},{no:8,name:"TARGET_TYPE_SERVICE"},{no:9,name:"TARGET_TYPE_METHOD"}]);class Te extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,L){return new Te().fromBinary(x,L)}static fromJson(x,L){return new Te().fromJson(x,L)}static fromJsonString(x,L){return new Te().fromJsonString(x,L)}static equals(x,L){return E.util.equals(Te,x,L)}}Te.runtime=E,Te.typeName="google.protobuf.FieldOptions.EditionDefault",Te.fields=E.util.newFieldList(()=>[{no:3,name:"edition",kind:"enum",T:E.getEnumType(G),opt:!0},{no:2,name:"value",kind:"scalar",T:9,opt:!0}]);class rt extends se.v{constructor(x){super(),this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,L){return new rt().fromBinary(x,L)}static fromJson(x,L){return new rt().fromJson(x,L)}static fromJsonString(x,L){return new rt().fromJsonString(x,L)}static equals(x,L){return E.util.equals(rt,x,L)}}rt.runtime=E,rt.typeName="google.protobuf.OneofOptions",rt.fields=E.util.newFieldList(()=>[{no:1,name:"features",kind:"message",T:Nt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);class pt extends se.v{constructor(x){super(),this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,L){return new pt().fromBinary(x,L)}static fromJson(x,L){return new pt().fromJson(x,L)}static fromJsonString(x,L){return new pt().fromJsonString(x,L)}static equals(x,L){return E.util.equals(pt,x,L)}}pt.runtime=E,pt.typeName="google.protobuf.EnumOptions",pt.fields=E.util.newFieldList(()=>[{no:2,name:"allow_alias",kind:"scalar",T:8,opt:!0},{no:3,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:6,name:"deprecated_legacy_json_field_conflicts",kind:"scalar",T:8,opt:!0},{no:7,name:"features",kind:"message",T:Nt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);class xt extends se.v{constructor(x){super(),this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,L){return new xt().fromBinary(x,L)}static fromJson(x,L){return new xt().fromJson(x,L)}static fromJsonString(x,L){return new xt().fromJsonString(x,L)}static equals(x,L){return E.util.equals(xt,x,L)}}xt.runtime=E,xt.typeName="google.protobuf.EnumValueOptions",xt.fields=E.util.newFieldList(()=>[{no:1,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:2,name:"features",kind:"message",T:Nt,opt:!0},{no:3,name:"debug_redact",kind:"scalar",T:8,opt:!0,default:!1},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);class et extends se.v{constructor(x){super(),this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,L){return new et().fromBinary(x,L)}static fromJson(x,L){return new et().fromJson(x,L)}static fromJsonString(x,L){return new et().fromJsonString(x,L)}static equals(x,L){return E.util.equals(et,x,L)}}et.runtime=E,et.typeName="google.protobuf.ServiceOptions",et.fields=E.util.newFieldList(()=>[{no:34,name:"features",kind:"message",T:Nt,opt:!0},{no:33,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);class vt extends se.v{constructor(x){super(),this.uninterpretedOption=[],E.util.initPartial(x,this)}static fromBinary(x,L){return new vt().fromBinary(x,L)}static fromJson(x,L){return new vt().fromJson(x,L)}static fromJsonString(x,L){return new vt().fromJsonString(x,L)}static equals(x,L){return E.util.equals(vt,x,L)}}vt.runtime=E,vt.typeName="google.protobuf.MethodOptions",vt.fields=E.util.newFieldList(()=>[{no:33,name:"deprecated",kind:"scalar",T:8,opt:!0,default:!1},{no:34,name:"idempotency_level",kind:"enum",T:E.getEnumType(qe),opt:!0,default:qe.IDEMPOTENCY_UNKNOWN},{no:35,name:"features",kind:"message",T:Nt,opt:!0},{no:999,name:"uninterpreted_option",kind:"message",T:it,repeated:!0}]);var qe;(function(F){F[F.IDEMPOTENCY_UNKNOWN=0]="IDEMPOTENCY_UNKNOWN",F[F.NO_SIDE_EFFECTS=1]="NO_SIDE_EFFECTS",F[F.IDEMPOTENT=2]="IDEMPOTENT"})(qe||(qe={})),E.util.setEnumType(qe,"google.protobuf.MethodOptions.IdempotencyLevel",[{no:0,name:"IDEMPOTENCY_UNKNOWN"},{no:1,name:"NO_SIDE_EFFECTS"},{no:2,name:"IDEMPOTENT"}]);class it extends se.v{constructor(x){super(),this.name=[],E.util.initPartial(x,this)}static fromBinary(x,L){return new it().fromBinary(x,L)}static fromJson(x,L){return new it().fromJson(x,L)}static fromJsonString(x,L){return new it().fromJsonString(x,L)}static equals(x,L){return E.util.equals(it,x,L)}}it.runtime=E,it.typeName="google.protobuf.UninterpretedOption",it.fields=E.util.newFieldList(()=>[{no:2,name:"name",kind:"message",T:Et,repeated:!0},{no:3,name:"identifier_value",kind:"scalar",T:9,opt:!0},{no:4,name:"positive_int_value",kind:"scalar",T:4,opt:!0},{no:5,name:"negative_int_value",kind:"scalar",T:3,opt:!0},{no:6,name:"double_value",kind:"scalar",T:1,opt:!0},{no:7,name:"string_value",kind:"scalar",T:12,opt:!0},{no:8,name:"aggregate_value",kind:"scalar",T:9,opt:!0}]);class Et extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,L){return new Et().fromBinary(x,L)}static fromJson(x,L){return new Et().fromJson(x,L)}static fromJsonString(x,L){return new Et().fromJsonString(x,L)}static equals(x,L){return E.util.equals(Et,x,L)}}Et.runtime=E,Et.typeName="google.protobuf.UninterpretedOption.NamePart",Et.fields=E.util.newFieldList(()=>[{no:1,name:"name_part",kind:"scalar",T:9},{no:2,name:"is_extension",kind:"scalar",T:8}]);class Nt extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,L){return new Nt().fromBinary(x,L)}static fromJson(x,L){return new Nt().fromJson(x,L)}static fromJsonString(x,L){return new Nt().fromJsonString(x,L)}static equals(x,L){return E.util.equals(Nt,x,L)}}Nt.runtime=E,Nt.typeName="google.protobuf.FeatureSet",Nt.fields=E.util.newFieldList(()=>[{no:1,name:"field_presence",kind:"enum",T:E.getEnumType(on),opt:!0},{no:2,name:"enum_type",kind:"enum",T:E.getEnumType(dn),opt:!0},{no:3,name:"repeated_field_encoding",kind:"enum",T:E.getEnumType(pn),opt:!0},{no:4,name:"utf8_validation",kind:"enum",T:E.getEnumType(zn),opt:!0},{no:5,name:"message_encoding",kind:"enum",T:E.getEnumType(Ee),opt:!0},{no:6,name:"json_format",kind:"enum",T:E.getEnumType(_e),opt:!0}]);var on;(function(F){F[F.FIELD_PRESENCE_UNKNOWN=0]="FIELD_PRESENCE_UNKNOWN",F[F.EXPLICIT=1]="EXPLICIT",F[F.IMPLICIT=2]="IMPLICIT",F[F.LEGACY_REQUIRED=3]="LEGACY_REQUIRED"})(on||(on={})),E.util.setEnumType(on,"google.protobuf.FeatureSet.FieldPresence",[{no:0,name:"FIELD_PRESENCE_UNKNOWN"},{no:1,name:"EXPLICIT"},{no:2,name:"IMPLICIT"},{no:3,name:"LEGACY_REQUIRED"}]);var dn;(function(F){F[F.ENUM_TYPE_UNKNOWN=0]="ENUM_TYPE_UNKNOWN",F[F.OPEN=1]="OPEN",F[F.CLOSED=2]="CLOSED"})(dn||(dn={})),E.util.setEnumType(dn,"google.protobuf.FeatureSet.EnumType",[{no:0,name:"ENUM_TYPE_UNKNOWN"},{no:1,name:"OPEN"},{no:2,name:"CLOSED"}]);var pn;(function(F){F[F.REPEATED_FIELD_ENCODING_UNKNOWN=0]="REPEATED_FIELD_ENCODING_UNKNOWN",F[F.PACKED=1]="PACKED",F[F.EXPANDED=2]="EXPANDED"})(pn||(pn={})),E.util.setEnumType(pn,"google.protobuf.FeatureSet.RepeatedFieldEncoding",[{no:0,name:"REPEATED_FIELD_ENCODING_UNKNOWN"},{no:1,name:"PACKED"},{no:2,name:"EXPANDED"}]);var zn;(function(F){F[F.UTF8_VALIDATION_UNKNOWN=0]="UTF8_VALIDATION_UNKNOWN",F[F.NONE=1]="NONE",F[F.VERIFY=2]="VERIFY"})(zn||(zn={})),E.util.setEnumType(zn,"google.protobuf.FeatureSet.Utf8Validation",[{no:0,name:"UTF8_VALIDATION_UNKNOWN"},{no:1,name:"NONE"},{no:2,name:"VERIFY"}]);var Ee;(function(F){F[F.MESSAGE_ENCODING_UNKNOWN=0]="MESSAGE_ENCODING_UNKNOWN",F[F.LENGTH_PREFIXED=1]="LENGTH_PREFIXED",F[F.DELIMITED=2]="DELIMITED"})(Ee||(Ee={})),E.util.setEnumType(Ee,"google.protobuf.FeatureSet.MessageEncoding",[{no:0,name:"MESSAGE_ENCODING_UNKNOWN"},{no:1,name:"LENGTH_PREFIXED"},{no:2,name:"DELIMITED"}]);var _e;(function(F){F[F.JSON_FORMAT_UNKNOWN=0]="JSON_FORMAT_UNKNOWN",F[F.ALLOW=1]="ALLOW",F[F.LEGACY_BEST_EFFORT=2]="LEGACY_BEST_EFFORT"})(_e||(_e={})),E.util.setEnumType(_e,"google.protobuf.FeatureSet.JsonFormat",[{no:0,name:"JSON_FORMAT_UNKNOWN"},{no:1,name:"ALLOW"},{no:2,name:"LEGACY_BEST_EFFORT"}]);class pe extends se.v{constructor(x){super(),this.defaults=[],E.util.initPartial(x,this)}static fromBinary(x,L){return new pe().fromBinary(x,L)}static fromJson(x,L){return new pe().fromJson(x,L)}static fromJsonString(x,L){return new pe().fromJsonString(x,L)}static equals(x,L){return E.util.equals(pe,x,L)}}pe.runtime=E,pe.typeName="google.protobuf.FeatureSetDefaults",pe.fields=E.util.newFieldList(()=>[{no:1,name:"defaults",kind:"message",T:lt,repeated:!0},{no:4,name:"minimum_edition",kind:"enum",T:E.getEnumType(G),opt:!0},{no:5,name:"maximum_edition",kind:"enum",T:E.getEnumType(G),opt:!0}]);class lt extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,L){return new lt().fromBinary(x,L)}static fromJson(x,L){return new lt().fromJson(x,L)}static fromJsonString(x,L){return new lt().fromJsonString(x,L)}static equals(x,L){return E.util.equals(lt,x,L)}}lt.runtime=E,lt.typeName="google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault",lt.fields=E.util.newFieldList(()=>[{no:3,name:"edition",kind:"enum",T:E.getEnumType(G),opt:!0},{no:2,name:"features",kind:"message",T:Nt,opt:!0}]);class at extends se.v{constructor(x){super(),this.location=[],E.util.initPartial(x,this)}static fromBinary(x,L){return new at().fromBinary(x,L)}static fromJson(x,L){return new at().fromJson(x,L)}static fromJsonString(x,L){return new at().fromJsonString(x,L)}static equals(x,L){return E.util.equals(at,x,L)}}at.runtime=E,at.typeName="google.protobuf.SourceCodeInfo",at.fields=E.util.newFieldList(()=>[{no:1,name:"location",kind:"message",T:Mt,repeated:!0}]);class Mt extends se.v{constructor(x){super(),this.path=[],this.span=[],this.leadingDetachedComments=[],E.util.initPartial(x,this)}static fromBinary(x,L){return new Mt().fromBinary(x,L)}static fromJson(x,L){return new Mt().fromJson(x,L)}static fromJsonString(x,L){return new Mt().fromJsonString(x,L)}static equals(x,L){return E.util.equals(Mt,x,L)}}Mt.runtime=E,Mt.typeName="google.protobuf.SourceCodeInfo.Location",Mt.fields=E.util.newFieldList(()=>[{no:1,name:"path",kind:"scalar",T:5,repeated:!0,packed:!0},{no:2,name:"span",kind:"scalar",T:5,repeated:!0,packed:!0},{no:3,name:"leading_comments",kind:"scalar",T:9,opt:!0},{no:4,name:"trailing_comments",kind:"scalar",T:9,opt:!0},{no:6,name:"leading_detached_comments",kind:"scalar",T:9,repeated:!0}]);class $t extends se.v{constructor(x){super(),this.annotation=[],E.util.initPartial(x,this)}static fromBinary(x,L){return new $t().fromBinary(x,L)}static fromJson(x,L){return new $t().fromJson(x,L)}static fromJsonString(x,L){return new $t().fromJsonString(x,L)}static equals(x,L){return E.util.equals($t,x,L)}}$t.runtime=E,$t.typeName="google.protobuf.GeneratedCodeInfo",$t.fields=E.util.newFieldList(()=>[{no:1,name:"annotation",kind:"message",T:It,repeated:!0}]);class It extends se.v{constructor(x){super(),this.path=[],E.util.initPartial(x,this)}static fromBinary(x,L){return new It().fromBinary(x,L)}static fromJson(x,L){return new It().fromJson(x,L)}static fromJsonString(x,L){return new It().fromJsonString(x,L)}static equals(x,L){return E.util.equals(It,x,L)}}It.runtime=E,It.typeName="google.protobuf.GeneratedCodeInfo.Annotation",It.fields=E.util.newFieldList(()=>[{no:1,name:"path",kind:"scalar",T:5,repeated:!0,packed:!0},{no:2,name:"source_file",kind:"scalar",T:9,opt:!0},{no:3,name:"begin",kind:"scalar",T:5,opt:!0},{no:4,name:"end",kind:"scalar",T:5,opt:!0},{no:5,name:"semantic",kind:"enum",T:E.getEnumType(Ct),opt:!0}]);var Ct;(function(F){F[F.NONE=0]="NONE",F[F.SET=1]="SET",F[F.ALIAS=2]="ALIAS"})(Ct||(Ct={})),E.util.setEnumType(Ct,"google.protobuf.GeneratedCodeInfo.Annotation.Semantic",[{no:0,name:"NONE"},{no:1,name:"SET"},{no:2,name:"ALIAS"}]);function Zt(F,x){const L=F.values.find(le=>le.name===x);return(0,k.hu)(L,`cannot parse ${F.name} default value: ${x}`),L.number}function Ie(F,x){switch(F){case p.w.STRING:return x;case p.w.BYTES:{const L=we(x);if(L===!1)throw new Error(`cannot parse ${p.w[F]} default value: ${x}`);return L}case p.w.INT64:case p.w.SFIXED64:case p.w.SINT64:return R.q.parse(x);case p.w.UINT64:case p.w.FIXED64:return R.q.uParse(x);case p.w.DOUBLE:case p.w.FLOAT:switch(x){case"inf":return Number.POSITIVE_INFINITY;case"-inf":return Number.NEGATIVE_INFINITY;case"nan":return Number.NaN;default:return parseFloat(x)}case p.w.BOOL:return x==="true";case p.w.INT32:case p.w.UINT32:case p.w.SINT32:case p.w.FIXED32:case p.w.SFIXED32:return parseInt(x,10)}}function we(F){const x=[],L={tail:F,c:"",next(){return this.tail.length==0?!1:(this.c=this.tail[0],this.tail=this.tail.substring(1),!0)},take(le){if(this.tail.length>=le){const be=this.tail.substring(0,le);return this.tail=this.tail.substring(le),be}return!1}};for(;L.next();)switch(L.c){case"\\":if(L.next())switch(L.c){case"\\":x.push(L.c.charCodeAt(0));break;case"b":x.push(8);break;case"f":x.push(12);break;case"n":x.push(10);break;case"r":x.push(13);break;case"t":x.push(9);break;case"v":x.push(11);break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":{const le=L.c,be=L.take(2);if(be===!1)return!1;const Pe=parseInt(le+be,8);if(isNaN(Pe))return!1;x.push(Pe);break}case"x":{const le=L.c,be=L.take(2);if(be===!1)return!1;const Pe=parseInt(le+be,16);if(isNaN(Pe))return!1;x.push(Pe);break}case"u":{const le=L.c,be=L.take(4);if(be===!1)return!1;const Pe=parseInt(le+be,16);if(isNaN(Pe))return!1;const je=new Uint8Array(4);new DataView(je.buffer).setInt32(0,Pe,!0),x.push(je[0],je[1],je[2],je[3]);break}case"U":{const le=L.c,be=L.take(8);if(be===!1)return!1;const Pe=R.q.uEnc(le+be),je=new Uint8Array(8),ct=new DataView(je.buffer);ct.setInt32(0,Pe.lo,!0),ct.setInt32(4,Pe.hi,!0),x.push(je[0],je[1],je[2],je[3],je[4],je[5],je[6],je[7]);break}}break;default:x.push(L.c.charCodeAt(0))}return new Uint8Array(x)}const Qe=pe.fromBinary(B.W.dec("ChESDAgBEAIYAiABKAEwAhjmBwoREgwIAhABGAEgAigBMAEY5wcKERIMCAEQARgBIAIoATABGOgHIOYHKOgH"));function ot(F){const x=F.minimumEdition,L=F.maximumEdition;if(x===void 0||L===void 0||F.defaults.some(be=>be.edition===void 0))throw new Error("Invalid FeatureSetDefaults");const le=new Map;return(be,...Pe)=>{var je,ct;let Ze=le.get(be);if(Ze===void 0){if(bebe||Pt!==void 0&&Pt.e>vr||(Pt={e:vr,f:(ct=On.features)!==null&&ct!==void 0?ct:new Nt})}if(Pt===void 0)throw new Error(`No valid default found for edition ${G[be]}`);Ze=Pt.f.toBinary(),le.set(be,Ze)}const Ot=Nt.fromBinary(Ze);for(const Pt of Pe)Pt!==void 0&&Ot.fromBinary(Pt.toBinary());if(!rn(Ot))throw new Error(`Invalid FeatureSet for edition ${G[be]}`);return Ot}}function rn(F){for(const x of Nt.fields.list()){const L=F[x.localName];if(L===void 0||x.kind=="enum"&&L===0)return!1}return!0}function Wt(F,x){var L;const le={enums:new Map,messages:new Map,services:new Map,extensions:new Map,mapEntries:new Map,resolveFeatures:ot((L=x==null?void 0:x.featureSetDefaults)!==null&&L!==void 0?L:Qe)},Pe=(F instanceof ce?F.file:F instanceof Uint8Array?ce.fromBinary(F).file:F).map(je=>mn(je,le));return Object.assign({files:Pe},le)}function mn(F,x){var L,le;(0,k.hu)(F.name,"invalid FileDescriptorProto: missing name");const be=Object.assign(Object.assign({kind:"file",proto:F,deprecated:(le=(L=F.options)===null||L===void 0?void 0:L.deprecated)!==null&&le!==void 0?le:!1},bn(F.syntax,F.edition)),{name:F.name.replace(/\.proto/,""),enums:[],messages:[],extensions:[],services:[],toString(){return`file ${this.proto.name}`},getSyntaxComments(){return no(this.proto.sourceCodeInfo,[ci.FileDescriptorProto_Syntax])},getPackageComments(){return no(this.proto.sourceCodeInfo,[ci.FileDescriptorProto_Package])},getFeatures(){var Pe;return x.resolveFeatures(this.edition,(Pe=this.proto.options)===null||Pe===void 0?void 0:Pe.features)}});x.mapEntries.clear();for(const Pe of F.enumType)Ce(Pe,be,void 0,x);for(const Pe of F.messageType)mt(Pe,be,void 0,x);for(const Pe of F.service)Dt(Pe,be,x);tr(be,x);for(const Pe of x.mapEntries.values())Ue(Pe,x);for(const Pe of be.messages)Ue(Pe,x),tr(Pe,x);return x.mapEntries.clear(),be}function tr(F,x){switch(F.kind){case"file":for(const L of F.proto.extension){const le=Kt(L,F,void 0,x);F.extensions.push(le),x.extensions.set(le.typeName,le)}break;case"message":for(const L of F.proto.extension){const le=Kt(L,F.file,F,x);F.nestedExtensions.push(le),x.extensions.set(le.typeName,le)}for(const L of F.nestedMessages)tr(L,x);break}}function Ue(F,x){const L=F.proto.oneofDecl.map(be=>Mn(be,F,x)),le=new Set;for(const be of F.proto.field){const Pe=Yr(be,L),je=Dn(be,F.file,F,Pe,x);F.fields.push(je),Pe===void 0?F.members.push(je):(Pe.fields.push(je),le.has(Pe)||(le.add(Pe),F.members.push(Pe)))}for(const be of L.filter(Pe=>le.has(Pe)))F.oneofs.push(be);for(const be of F.nestedMessages)Ue(be,x)}function Ce(F,x,L,le){var be,Pe,je;(0,k.hu)(F.name,"invalid EnumDescriptorProto: missing name");const ct={kind:"enum",proto:F,deprecated:(Pe=(be=F.options)===null||be===void 0?void 0:be.deprecated)!==null&&Pe!==void 0?Pe:!1,file:x,parent:L,name:F.name,typeName:Wn(F,L,x),values:[],sharedPrefix:(0,v.Sm)(F.name,F.value.map(Ze=>{var Ot;return(Ot=Ze.name)!==null&&Ot!==void 0?Ot:""})),toString(){return`enum ${this.typeName}`},getComments(){const Ze=this.parent?[...this.parent.getComments().sourcePath,ci.DescriptorProto_EnumType,this.parent.proto.enumType.indexOf(this.proto)]:[ci.FileDescriptorProto_EnumType,this.file.proto.enumType.indexOf(this.proto)];return no(x.proto.sourceCodeInfo,Ze)},getFeatures(){var Ze,Ot,Pt;const On=(Ot=(Ze=this.parent)===null||Ze===void 0?void 0:Ze.getFeatures())!==null&&Ot!==void 0?Ot:this.file.getFeatures();return le.resolveFeatures(this.file.edition,On,(Pt=this.proto.options)===null||Pt===void 0?void 0:Pt.features)}};le.enums.set(ct.typeName,ct),F.value.forEach(Ze=>{var Ot,Pt;(0,k.hu)(Ze.name,"invalid EnumValueDescriptorProto: missing name"),(0,k.hu)(Ze.number!==void 0,"invalid EnumValueDescriptorProto: missing number"),ct.values.push({kind:"enum_value",proto:Ze,deprecated:(Pt=(Ot=Ze.options)===null||Ot===void 0?void 0:Ot.deprecated)!==null&&Pt!==void 0?Pt:!1,parent:ct,name:Ze.name,number:Ze.number,toString(){return`enum value ${ct.typeName}.${this.name}`},declarationString(){var On;let vr=`${this.name} = ${this.number}`;return((On=this.proto.options)===null||On===void 0?void 0:On.deprecated)===!0&&(vr+=" [deprecated = true]"),vr},getComments(){const On=[...this.parent.getComments().sourcePath,ci.EnumDescriptorProto_Value,this.parent.proto.value.indexOf(this.proto)];return no(x.proto.sourceCodeInfo,On)},getFeatures(){var On;return le.resolveFeatures(this.parent.file.edition,this.parent.getFeatures(),(On=this.proto.options)===null||On===void 0?void 0:On.features)}})}),((je=L==null?void 0:L.nestedEnums)!==null&&je!==void 0?je:x.enums).push(ct)}function mt(F,x,L,le){var be,Pe,je,ct;(0,k.hu)(F.name,"invalid DescriptorProto: missing name");const Ze={kind:"message",proto:F,deprecated:(Pe=(be=F.options)===null||be===void 0?void 0:be.deprecated)!==null&&Pe!==void 0?Pe:!1,file:x,parent:L,name:F.name,typeName:Wn(F,L,x),fields:[],oneofs:[],members:[],nestedEnums:[],nestedMessages:[],nestedExtensions:[],toString(){return`message ${this.typeName}`},getComments(){const Ot=this.parent?[...this.parent.getComments().sourcePath,ci.DescriptorProto_NestedType,this.parent.proto.nestedType.indexOf(this.proto)]:[ci.FileDescriptorProto_MessageType,this.file.proto.messageType.indexOf(this.proto)];return no(x.proto.sourceCodeInfo,Ot)},getFeatures(){var Ot,Pt,On;const vr=(Pt=(Ot=this.parent)===null||Ot===void 0?void 0:Ot.getFeatures())!==null&&Pt!==void 0?Pt:this.file.getFeatures();return le.resolveFeatures(this.file.edition,vr,(On=this.proto.options)===null||On===void 0?void 0:On.features)}};((je=F.options)===null||je===void 0?void 0:je.mapEntry)===!0?le.mapEntries.set(Ze.typeName,Ze):(((ct=L==null?void 0:L.nestedMessages)!==null&&ct!==void 0?ct:x.messages).push(Ze),le.messages.set(Ze.typeName,Ze));for(const Ot of F.enumType)Ce(Ot,x,Ze,le);for(const Ot of F.nestedType)mt(Ot,x,Ze,le)}function Dt(F,x,L){var le,be;(0,k.hu)(F.name,"invalid ServiceDescriptorProto: missing name");const Pe={kind:"service",proto:F,deprecated:(be=(le=F.options)===null||le===void 0?void 0:le.deprecated)!==null&&be!==void 0?be:!1,file:x,name:F.name,typeName:Wn(F,void 0,x),methods:[],toString(){return`service ${this.typeName}`},getComments(){const je=[ci.FileDescriptorProto_Service,this.file.proto.service.indexOf(this.proto)];return no(x.proto.sourceCodeInfo,je)},getFeatures(){var je;return L.resolveFeatures(this.file.edition,this.file.getFeatures(),(je=this.proto.options)===null||je===void 0?void 0:je.features)}};x.services.push(Pe),L.services.set(Pe.typeName,Pe);for(const je of F.method)Pe.methods.push(tn(je,Pe,L))}function tn(F,x,L){var le,be,Pe;(0,k.hu)(F.name,"invalid MethodDescriptorProto: missing name"),(0,k.hu)(F.inputType,"invalid MethodDescriptorProto: missing input_type"),(0,k.hu)(F.outputType,"invalid MethodDescriptorProto: missing output_type");let je;F.clientStreaming===!0&&F.serverStreaming===!0?je=ve.t.BiDiStreaming:F.clientStreaming===!0?je=ve.t.ClientStreaming:F.serverStreaming===!0?je=ve.t.ServerStreaming:je=ve.t.Unary;let ct;switch((le=F.options)===null||le===void 0?void 0:le.idempotencyLevel){case qe.IDEMPOTENT:ct=ve.w.Idempotent;break;case qe.NO_SIDE_EFFECTS:ct=ve.w.NoSideEffects;break;case qe.IDEMPOTENCY_UNKNOWN:case void 0:ct=void 0;break}const Ze=L.messages.get(Qn(F.inputType)),Ot=L.messages.get(Qn(F.outputType));(0,k.hu)(Ze,`invalid MethodDescriptorProto: input_type ${F.inputType} not found`),(0,k.hu)(Ot,`invalid MethodDescriptorProto: output_type ${F.inputType} not found`);const Pt=F.name;return{kind:"rpc",proto:F,deprecated:(Pe=(be=F.options)===null||be===void 0?void 0:be.deprecated)!==null&&Pe!==void 0?Pe:!1,parent:x,name:Pt,methodKind:je,input:Ze,output:Ot,idempotency:ct,toString(){return`rpc ${x.typeName}.${Pt}`},getComments(){const On=[...this.parent.getComments().sourcePath,ci.ServiceDescriptorProto_Method,this.parent.proto.method.indexOf(this.proto)];return no(x.file.proto.sourceCodeInfo,On)},getFeatures(){var On;return L.resolveFeatures(this.parent.file.edition,this.parent.getFeatures(),(On=this.proto.options)===null||On===void 0?void 0:On.features)}}}function Mn(F,x,L){return(0,k.hu)(F.name,"invalid OneofDescriptorProto: missing name"),{kind:"oneof",proto:F,deprecated:!1,parent:x,fields:[],name:F.name,toString(){return`oneof ${x.typeName}.${this.name}`},getComments(){const le=[...this.parent.getComments().sourcePath,ci.DescriptorProto_OneofDecl,this.parent.proto.oneofDecl.indexOf(this.proto)];return no(x.file.proto.sourceCodeInfo,le)},getFeatures(){var le;return L.resolveFeatures(this.parent.file.edition,this.parent.getFeatures(),(le=this.proto.options)===null||le===void 0?void 0:le.features)}}}function Dn(F,x,L,le,be){var Pe,je,ct;(0,k.hu)(F.name,"invalid FieldDescriptorProto: missing name"),(0,k.hu)(F.number,"invalid FieldDescriptorProto: missing number"),(0,k.hu)(F.type,"invalid FieldDescriptorProto: missing type");const Ze={proto:F,deprecated:(je=(Pe=F.options)===null||Pe===void 0?void 0:Pe.deprecated)!==null&&je!==void 0?je:!1,name:F.name,number:F.number,parent:L,oneof:le,optional:En(F,x.syntax),packedByDefault:An(x,F,be.resolveFeatures),packed:sa(x,L,F,be.resolveFeatures),jsonName:F.jsonName===(0,v.x1)(F.name)?void 0:F.jsonName,scalar:void 0,longType:void 0,message:void 0,enum:void 0,mapKey:void 0,mapValue:void 0,declarationString:Ma,toString(){return`field ${this.parent.typeName}.${this.name}`},getComments(){const Pt=[...this.parent.getComments().sourcePath,ci.DescriptorProto_Field,this.parent.proto.field.indexOf(this.proto)];return no(x.proto.sourceCodeInfo,Pt)},getFeatures(){var Pt;return be.resolveFeatures(x.edition,this.parent.getFeatures(),(Pt=this.proto.options)===null||Pt===void 0?void 0:Pt.features)}},Ot=F.label===ze.REPEATED;switch(F.type){case ye.MESSAGE:case ye.GROUP:{(0,k.hu)(F.typeName,"invalid FieldDescriptorProto: missing type_name");const Pt=be.mapEntries.get(Qn(F.typeName));if(Pt!==void 0)return(0,k.hu)(Ot,"invalid FieldDescriptorProto: expected map entry to be repeated"),Object.assign(Object.assign(Object.assign({},Ze),{kind:"field",fieldKind:"map",repeated:!1}),ht(Pt));const On=be.messages.get(Qn(F.typeName));return(0,k.hu)(On!==void 0,`invalid FieldDescriptorProto: type_name ${F.typeName} not found`),Object.assign(Object.assign({},Ze),{kind:"field",fieldKind:"message",repeated:Ot,message:On})}case ye.ENUM:{(0,k.hu)(F.typeName,"invalid FieldDescriptorProto: missing type_name");const Pt=be.enums.get(Qn(F.typeName));return(0,k.hu)(Pt!==void 0,`invalid FieldDescriptorProto: type_name ${F.typeName} not found`),Object.assign(Object.assign({},Ze),{kind:"field",fieldKind:"enum",getDefaultValue:Wp,repeated:Ot,enum:Pt})}default:{const Pt=Hp[F.type];return(0,k.hu)(Pt,`invalid FieldDescriptorProto: unknown type ${F.type}`),Object.assign(Object.assign({},Ze),{kind:"field",fieldKind:"scalar",getDefaultValue:Wp,repeated:Ot,scalar:Pt,longType:((ct=F.options)===null||ct===void 0?void 0:ct.jstype)==fe.JS_STRING?p.p.STRING:p.p.BIGINT})}}}function Kt(F,x,L,le){(0,k.hu)(F.extendee,"invalid FieldDescriptorProto: missing extendee");const be=Dn(F,x,null,void 0,le),Pe=le.messages.get(Qn(F.extendee));return(0,k.hu)(Pe,`invalid FieldDescriptorProto: extendee ${F.extendee} not found`),Object.assign(Object.assign({},be),{kind:"extension",typeName:Wn(F,L,x),parent:L,file:x,extendee:Pe,toString(){return`extension ${this.typeName}`},getComments(){const je=this.parent?[...this.parent.getComments().sourcePath,ci.DescriptorProto_Extension,this.parent.proto.extension.indexOf(F)]:[ci.FileDescriptorProto_Extension,this.file.proto.extension.indexOf(F)];return no(x.proto.sourceCodeInfo,je)},getFeatures(){var je,ct;return le.resolveFeatures(this.file.edition,((je=this.parent)!==null&&je!==void 0?je:this.file).getFeatures(),(ct=this.proto.options)===null||ct===void 0?void 0:ct.features)}})}function bn(F,x){let L,le;switch(F){case void 0:case"proto2":le="proto2",L=G.EDITION_PROTO2;break;case"proto3":le="proto3",L=G.EDITION_PROTO3;break;case"editions":switch(le="editions",x){case void 0:case G.EDITION_1_TEST_ONLY:case G.EDITION_2_TEST_ONLY:case G.EDITION_99997_TEST_ONLY:case G.EDITION_99998_TEST_ONLY:case G.EDITION_99999_TEST_ONLY:case G.EDITION_UNKNOWN:L=G.EDITION_UNKNOWN;break;default:L=x;break}break;default:throw new Error(`invalid FileDescriptorProto: unsupported syntax: ${F}`)}if(F==="editions"&&x===G.EDITION_UNKNOWN)throw new Error(`invalid FileDescriptorProto: syntax ${F} cannot have edition ${String(x)}`);return{syntax:le,edition:L}}function Wn(F,x,L){(0,k.hu)(F.name,`invalid ${F.getType().typeName}: missing name`);let le;return x?le=`${x.typeName}.${F.name}`:L.proto.package!==void 0?le=`${L.proto.package}.${F.name}`:le=`${F.name}`,le}function Qn(F){return F.startsWith(".")?F.substring(1):F}function ht(F){var x,L;(0,k.hu)((x=F.proto.options)===null||x===void 0?void 0:x.mapEntry,`invalid DescriptorProto: expected ${F.toString()} to be a map entry`),(0,k.hu)(F.fields.length===2,`invalid DescriptorProto: map entry ${F.toString()} has ${F.fields.length} fields`);const le=F.fields.find(je=>je.proto.number===1);(0,k.hu)(le,`invalid DescriptorProto: map entry ${F.toString()} is missing key field`);const be=le.scalar;(0,k.hu)(be!==void 0&&be!==p.w.BYTES&&be!==p.w.FLOAT&&be!==p.w.DOUBLE,`invalid DescriptorProto: map entry ${F.toString()} has unexpected key type ${(L=le.proto.type)!==null&&L!==void 0?L:-1}`);const Pe=F.fields.find(je=>je.proto.number===2);switch((0,k.hu)(Pe,`invalid DescriptorProto: map entry ${F.toString()} is missing value field`),Pe.fieldKind){case"scalar":return{mapKey:be,mapValue:Object.assign(Object.assign({},Pe),{kind:"scalar"})};case"message":return{mapKey:be,mapValue:Object.assign(Object.assign({},Pe),{kind:"message"})};case"enum":return{mapKey:be,mapValue:Object.assign(Object.assign({},Pe),{kind:"enum"})};default:throw new Error("invalid DescriptorProto: unsupported map entry value field")}}function Yr(F,x){var L;const le=F.oneofIndex;if(le===void 0)return;let be;return F.proto3Optional!==!0&&(be=x[le],(0,k.hu)(be,`invalid FieldDescriptorProto: oneof #${le} for field #${(L=F.number)!==null&&L!==void 0?L:-1} not found`)),be}function En(F,x){switch(x){case"proto2":return F.oneofIndex===void 0&&F.label===ze.OPTIONAL;case"proto3":return F.proto3Optional===!0;case"editions":return!1}}function An(F,x,L){const{repeatedFieldEncoding:le}=L(F.edition);if(le!=pn.PACKED)return!1;switch(x.type){case ye.STRING:case ye.BYTES:case ye.GROUP:case ye.MESSAGE:return!1;default:return!0}}function sa(F,x,L,le){var be,Pe,je,ct,Ze,Ot;switch(L.type){case ye.STRING:case ye.BYTES:case ye.GROUP:case ye.MESSAGE:return!1;default:switch(F.edition){case G.EDITION_PROTO2:return(Pe=(be=L.options)===null||be===void 0?void 0:be.packed)!==null&&Pe!==void 0?Pe:!1;case G.EDITION_PROTO3:return(ct=(je=L.options)===null||je===void 0?void 0:je.packed)!==null&&ct!==void 0?ct:!0;default:{const{repeatedFieldEncoding:Pt}=le(F.edition,(Ze=x==null?void 0:x.getFeatures())!==null&&Ze!==void 0?Ze:F.getFeatures(),(Ot=L.options)===null||Ot===void 0?void 0:Ot.features);return Pt==pn.PACKED}}}}const Hp={[ye.DOUBLE]:p.w.DOUBLE,[ye.FLOAT]:p.w.FLOAT,[ye.INT64]:p.w.INT64,[ye.UINT64]:p.w.UINT64,[ye.INT32]:p.w.INT32,[ye.FIXED64]:p.w.FIXED64,[ye.FIXED32]:p.w.FIXED32,[ye.BOOL]:p.w.BOOL,[ye.STRING]:p.w.STRING,[ye.GROUP]:void 0,[ye.MESSAGE]:void 0,[ye.BYTES]:p.w.BYTES,[ye.UINT32]:p.w.UINT32,[ye.ENUM]:void 0,[ye.SFIXED32]:p.w.SFIXED32,[ye.SFIXED64]:p.w.SFIXED64,[ye.SINT32]:p.w.SINT32,[ye.SINT64]:p.w.SINT64};function no(F,x){if(!F)return{leadingDetached:[],sourcePath:x};for(const L of F.location)if(L.path.length===x.length&&!L.path.some((le,be)=>x[be]!==le))return{leadingDetached:L.leadingDetachedComments,leading:L.leadingComments,trailing:L.trailingComments,sourcePath:x};return{leadingDetached:[],sourcePath:x}}var ci;(function(F){F[F.FileDescriptorProto_Package=2]="FileDescriptorProto_Package",F[F.FileDescriptorProto_MessageType=4]="FileDescriptorProto_MessageType",F[F.FileDescriptorProto_EnumType=5]="FileDescriptorProto_EnumType",F[F.FileDescriptorProto_Service=6]="FileDescriptorProto_Service",F[F.FileDescriptorProto_Extension=7]="FileDescriptorProto_Extension",F[F.FileDescriptorProto_Syntax=12]="FileDescriptorProto_Syntax",F[F.DescriptorProto_Field=2]="DescriptorProto_Field",F[F.DescriptorProto_NestedType=3]="DescriptorProto_NestedType",F[F.DescriptorProto_EnumType=4]="DescriptorProto_EnumType",F[F.DescriptorProto_Extension=6]="DescriptorProto_Extension",F[F.DescriptorProto_OneofDecl=8]="DescriptorProto_OneofDecl",F[F.EnumDescriptorProto_Value=2]="EnumDescriptorProto_Value",F[F.ServiceDescriptorProto_Method=2]="ServiceDescriptorProto_Method"})(ci||(ci={}));function Ma(){var F,x,L;const le=[];this.repeated&&le.push("repeated"),this.optional&&le.push("optional"),(this.kind==="extension"?this.file:this.parent.file).syntax=="proto2"&&this.proto.label===ze.REQUIRED&&le.push("required");let Pe;switch(this.fieldKind){case"scalar":Pe=p.w[this.scalar].toLowerCase();break;case"enum":Pe=this.enum.typeName;break;case"message":Pe=this.message.typeName;break;case"map":{const Ze=p.w[this.mapKey].toLowerCase();let Ot;switch(this.mapValue.kind){case"scalar":Ot=p.w[this.mapValue.scalar].toLowerCase();break;case"enum":Ot=this.mapValue.enum.typeName;break;case"message":Ot=this.mapValue.message.typeName;break}Pe=`map<${Ze}, ${Ot}>`;break}}le.push(`${Pe} ${this.name} = ${this.number}`);const je=[];((F=this.proto.options)===null||F===void 0?void 0:F.packed)!==void 0&&je.push(`packed = ${this.proto.options.packed.toString()}`);let ct=this.proto.defaultValue;return ct!==void 0&&((this.proto.type==ye.BYTES||this.proto.type==ye.STRING)&&(ct='"'+ct.replace('"','\\"')+'"'),je.push(`default = ${ct}`)),this.jsonName!==void 0&&je.push(`json_name = "${this.jsonName}"`),((x=this.proto.options)===null||x===void 0?void 0:x.jstype)!==void 0&&je.push(`jstype = ${fe[this.proto.options.jstype]}`),((L=this.proto.options)===null||L===void 0?void 0:L.deprecated)===!0&&je.push("deprecated = true"),je.length>0&&le.push("["+je.join(", ")+"]"),le.join(" ")}function Wp(){const F=this.proto.defaultValue;if(F!==void 0)switch(this.fieldKind){case"enum":return Zt(this.enum,F);case"scalar":return Ie(this.scalar,F);default:return}}function BO(...F){const x={},L={},le={},be={add(Pe){if("fields"in Pe){if(!this.findMessage(Pe.typeName)){x[Pe.typeName]=Pe;for(const je of Pe.fields.list())je.kind=="message"?this.add(je.T):je.kind=="map"&&je.V.kind=="message"?this.add(je.V.T):je.kind=="enum"&&this.add(je.T)}}else if("methods"in Pe){if(!this.findService(Pe.typeName)){le[Pe.typeName]=Pe;for(const je of Object.values(Pe.methods))this.add(je.I),this.add(je.O)}}else L[Pe.typeName]=Pe},findMessage(Pe){return x[Pe]},findEnum(Pe){return L[Pe]},findService(Pe){return le[Pe]}};for(const Pe of F)be.add(Pe);return be}class la extends se.v{constructor(x){super(),this.seconds=R.q.zero,this.nanos=0,c.w.util.initPartial(x,this)}fromJson(x,L){if(typeof x!="string")throw new Error(`cannot decode google.protobuf.Timestamp from JSON: ${c.w.json.debug(x)}`);const le=x.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!le)throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");const be=Date.parse(le[1]+"-"+le[2]+"-"+le[3]+"T"+le[4]+":"+le[5]+":"+le[6]+(le[8]?le[8]:"Z"));if(Number.isNaN(be))throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");if(beDate.parse("9999-12-31T23:59:59Z"))throw new Error("cannot decode message google.protobuf.Timestamp from JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive");return this.seconds=R.q.parse(be/1e3),this.nanos=0,le[7]&&(this.nanos=parseInt("1"+le[7]+"0".repeat(9-le[7].length))-1e9),this}toJson(x){const L=Number(this.seconds)*1e3;if(LDate.parse("9999-12-31T23:59:59Z"))throw new Error("cannot encode google.protobuf.Timestamp to JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive");if(this.nanos<0)throw new Error("cannot encode google.protobuf.Timestamp to JSON: nanos must not be negative");let le="Z";if(this.nanos>0){const be=(this.nanos+1e9).toString().substring(1);be.substring(3)==="000000"?le="."+be.substring(0,3)+"Z":be.substring(6)==="000"?le="."+be.substring(0,6)+"Z":le="."+be+"Z"}return new Date(L).toISOString().replace(".000Z",le)}toDate(){return new Date(Number(this.seconds)*1e3+Math.ceil(this.nanos/1e6))}static now(){return la.fromDate(new Date)}static fromDate(x){const L=x.getTime();return new la({seconds:R.q.parse(Math.floor(L/1e3)),nanos:L%1e3*1e6})}static fromBinary(x,L){return new la().fromBinary(x,L)}static fromJson(x,L){return new la().fromJson(x,L)}static fromJsonString(x,L){return new la().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(la,x,L)}}la.runtime=c.w,la.typeName="google.protobuf.Timestamp",la.fields=c.w.util.newFieldList(()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]);class Or extends se.v{constructor(x){super(),this.seconds=R.q.zero,this.nanos=0,c.w.util.initPartial(x,this)}fromJson(x,L){if(typeof x!="string")throw new Error(`cannot decode google.protobuf.Duration from JSON: ${c.w.json.debug(x)}`);const le=x.match(/^(-?[0-9]+)(?:\.([0-9]+))?s/);if(le===null)throw new Error(`cannot decode google.protobuf.Duration from JSON: ${c.w.json.debug(x)}`);const be=Number(le[1]);if(be>315576e6||be<-315576e6)throw new Error(`cannot decode google.protobuf.Duration from JSON: ${c.w.json.debug(x)}`);if(this.seconds=R.q.parse(be),typeof le[2]=="string"){const Pe=le[2]+"0".repeat(9-le[2].length);this.nanos=parseInt(Pe),(be<0||Object.is(be,-0))&&(this.nanos=-this.nanos)}return this}toJson(x){if(Number(this.seconds)>315576e6||Number(this.seconds)<-315576e6)throw new Error("cannot encode google.protobuf.Duration to JSON: value out of range");let L=this.seconds.toString();if(this.nanos!==0){let le=Math.abs(this.nanos).toString();le="0".repeat(9-le.length)+le,le.substring(3)==="000000"?le=le.substring(0,3):le.substring(6)==="000"&&(le=le.substring(0,6)),L+="."+le,this.nanos<0&&Number(this.seconds)==0&&(L="-"+L)}return L+"s"}static fromBinary(x,L){return new Or().fromBinary(x,L)}static fromJson(x,L){return new Or().fromJson(x,L)}static fromJsonString(x,L){return new Or().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(Or,x,L)}}Or.runtime=c.w,Or.typeName="google.protobuf.Duration",Or.fields=c.w.util.newFieldList(()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]);var Qp=u(733);class Ts extends se.v{constructor(x){super(),c.w.util.initPartial(x,this)}static fromBinary(x,L){return new Ts().fromBinary(x,L)}static fromJson(x,L){return new Ts().fromJson(x,L)}static fromJsonString(x,L){return new Ts().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(Ts,x,L)}}Ts.runtime=c.w,Ts.typeName="google.protobuf.Empty",Ts.fields=c.w.util.newFieldList(()=>[]);class ws extends se.v{constructor(x){super(),this.paths=[],c.w.util.initPartial(x,this)}toJson(x){function L(le){let be=!1;const Pe=[];for(let je=0;je{if(le.match(/_[0-9]?_/g)||le.match(/[A-Z]/g))throw new Error('cannot encode google.protobuf.FieldMask to JSON: lowerCamelCase of path name "'+le+'" is irreversible');return L(le)}).join(",")}fromJson(x,L){if(typeof x!="string")throw new Error("cannot decode google.protobuf.FieldMask from JSON: "+c.w.json.debug(x));if(x==="")return this;function le(be){if(be.includes("_"))throw new Error("cannot decode google.protobuf.FieldMask from JSON: path names must be lowerCamelCase");const Pe=be.replace(/[A-Z]/g,je=>"_"+je.toLowerCase());return Pe[0]==="_"?Pe.substring(1):Pe}return this.paths=x.split(",").map(le),this}static fromBinary(x,L){return new ws().fromBinary(x,L)}static fromJson(x,L){return new ws().fromJson(x,L)}static fromJsonString(x,L){return new ws().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(ws,x,L)}}ws.runtime=c.w,ws.typeName="google.protobuf.FieldMask",ws.fields=c.w.util.newFieldList(()=>[{no:1,name:"paths",kind:"scalar",T:9,repeated:!0}]);var ro;(function(F){F[F.NULL_VALUE=0]="NULL_VALUE"})(ro||(ro={})),c.w.util.setEnumType(ro,"google.protobuf.NullValue",[{no:0,name:"NULL_VALUE"}]);class So extends se.v{constructor(x){super(),this.fields={},c.w.util.initPartial(x,this)}toJson(x){const L={};for(const[le,be]of Object.entries(this.fields))L[le]=be.toJson(x);return L}fromJson(x,L){if(typeof x!="object"||x==null||Array.isArray(x))throw new Error("cannot decode google.protobuf.Struct from JSON "+c.w.json.debug(x));for(const[le,be]of Object.entries(x))this.fields[le]=Br.fromJson(be);return this}static fromBinary(x,L){return new So().fromBinary(x,L)}static fromJson(x,L){return new So().fromJson(x,L)}static fromJsonString(x,L){return new So().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(So,x,L)}}So.runtime=c.w,So.typeName="google.protobuf.Struct",So.fields=c.w.util.newFieldList(()=>[{no:1,name:"fields",kind:"map",K:9,V:{kind:"message",T:Br}}]);class Br extends se.v{constructor(x){super(),this.kind={case:void 0},c.w.util.initPartial(x,this)}toJson(x){switch(this.kind.case){case"nullValue":return null;case"numberValue":if(!Number.isFinite(this.kind.value))throw new Error("google.protobuf.Value cannot be NaN or Infinity");return this.kind.value;case"boolValue":return this.kind.value;case"stringValue":return this.kind.value;case"structValue":case"listValue":return this.kind.value.toJson(Object.assign(Object.assign({},x),{emitDefaultValues:!0}))}throw new Error("google.protobuf.Value must have a value")}fromJson(x,L){switch(typeof x){case"number":this.kind={case:"numberValue",value:x};break;case"string":this.kind={case:"stringValue",value:x};break;case"boolean":this.kind={case:"boolValue",value:x};break;case"object":x===null?this.kind={case:"nullValue",value:ro.NULL_VALUE}:Array.isArray(x)?this.kind={case:"listValue",value:io.fromJson(x)}:this.kind={case:"structValue",value:So.fromJson(x)};break;default:throw new Error("cannot decode google.protobuf.Value from JSON "+c.w.json.debug(x))}return this}static fromBinary(x,L){return new Br().fromBinary(x,L)}static fromJson(x,L){return new Br().fromJson(x,L)}static fromJsonString(x,L){return new Br().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(Br,x,L)}}Br.runtime=c.w,Br.typeName="google.protobuf.Value",Br.fields=c.w.util.newFieldList(()=>[{no:1,name:"null_value",kind:"enum",T:c.w.getEnumType(ro),oneof:"kind"},{no:2,name:"number_value",kind:"scalar",T:1,oneof:"kind"},{no:3,name:"string_value",kind:"scalar",T:9,oneof:"kind"},{no:4,name:"bool_value",kind:"scalar",T:8,oneof:"kind"},{no:5,name:"struct_value",kind:"message",T:So,oneof:"kind"},{no:6,name:"list_value",kind:"message",T:io,oneof:"kind"}]);class io extends se.v{constructor(x){super(),this.values=[],c.w.util.initPartial(x,this)}toJson(x){return this.values.map(L=>L.toJson())}fromJson(x,L){if(!Array.isArray(x))throw new Error("cannot decode google.protobuf.ListValue from JSON "+c.w.json.debug(x));for(let le of x)this.values.push(Br.fromJson(le));return this}static fromBinary(x,L){return new io().fromBinary(x,L)}static fromJson(x,L){return new io().fromJson(x,L)}static fromJsonString(x,L){return new io().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(io,x,L)}}io.runtime=c.w,io.typeName="google.protobuf.ListValue",io.fields=c.w.util.newFieldList(()=>[{no:1,name:"values",kind:"message",T:Br,repeated:!0}]);var Wl=u(609);class Vo extends se.v{constructor(x){super(),this.value=0,c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.DOUBLE,this.value,!0)}fromJson(x,L){try{this.value=c.w.json.readScalar(p.w.DOUBLE,x)}catch(le){let be='cannot decode message google.protobuf.DoubleValue from JSON"';throw le instanceof Error&&le.message.length>0&&(be+=`: ${le.message}`),new Error(be)}return this}static fromBinary(x,L){return new Vo().fromBinary(x,L)}static fromJson(x,L){return new Vo().fromJson(x,L)}static fromJsonString(x,L){return new Vo().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(Vo,x,L)}}Vo.runtime=c.w,Vo.typeName="google.protobuf.DoubleValue",Vo.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:1}]),Vo.fieldWrapper={wrapField(F){return new Vo({value:F})},unwrapField(F){return F.value}};class To extends se.v{constructor(x){super(),this.value=0,c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.FLOAT,this.value,!0)}fromJson(x,L){try{this.value=c.w.json.readScalar(p.w.FLOAT,x)}catch(le){let be='cannot decode message google.protobuf.FloatValue from JSON"';throw le instanceof Error&&le.message.length>0&&(be+=`: ${le.message}`),new Error(be)}return this}static fromBinary(x,L){return new To().fromBinary(x,L)}static fromJson(x,L){return new To().fromJson(x,L)}static fromJsonString(x,L){return new To().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(To,x,L)}}To.runtime=c.w,To.typeName="google.protobuf.FloatValue",To.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:2}]),To.fieldWrapper={wrapField(F){return new To({value:F})},unwrapField(F){return F.value}};class ji extends se.v{constructor(x){super(),this.value=R.q.zero,c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.INT64,this.value,!0)}fromJson(x,L){try{this.value=c.w.json.readScalar(p.w.INT64,x)}catch(le){let be='cannot decode message google.protobuf.Int64Value from JSON"';throw le instanceof Error&&le.message.length>0&&(be+=`: ${le.message}`),new Error(be)}return this}static fromBinary(x,L){return new ji().fromBinary(x,L)}static fromJson(x,L){return new ji().fromJson(x,L)}static fromJsonString(x,L){return new ji().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(ji,x,L)}}ji.runtime=c.w,ji.typeName="google.protobuf.Int64Value",ji.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:3}]),ji.fieldWrapper={wrapField(F){return new ji({value:F})},unwrapField(F){return F.value}};class mr extends se.v{constructor(x){super(),this.value=R.q.zero,c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.UINT64,this.value,!0)}fromJson(x,L){try{this.value=c.w.json.readScalar(p.w.UINT64,x)}catch(le){let be='cannot decode message google.protobuf.UInt64Value from JSON"';throw le instanceof Error&&le.message.length>0&&(be+=`: ${le.message}`),new Error(be)}return this}static fromBinary(x,L){return new mr().fromBinary(x,L)}static fromJson(x,L){return new mr().fromJson(x,L)}static fromJsonString(x,L){return new mr().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(mr,x,L)}}mr.runtime=c.w,mr.typeName="google.protobuf.UInt64Value",mr.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:4}]),mr.fieldWrapper={wrapField(F){return new mr({value:F})},unwrapField(F){return F.value}};class Cr extends se.v{constructor(x){super(),this.value=0,c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.INT32,this.value,!0)}fromJson(x,L){try{this.value=c.w.json.readScalar(p.w.INT32,x)}catch(le){let be='cannot decode message google.protobuf.Int32Value from JSON"';throw le instanceof Error&&le.message.length>0&&(be+=`: ${le.message}`),new Error(be)}return this}static fromBinary(x,L){return new Cr().fromBinary(x,L)}static fromJson(x,L){return new Cr().fromJson(x,L)}static fromJsonString(x,L){return new Cr().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(Cr,x,L)}}Cr.runtime=c.w,Cr.typeName="google.protobuf.Int32Value",Cr.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:5}]),Cr.fieldWrapper={wrapField(F){return new Cr({value:F})},unwrapField(F){return F.value}};class Ur extends se.v{constructor(x){super(),this.value=0,c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.UINT32,this.value,!0)}fromJson(x,L){try{this.value=c.w.json.readScalar(p.w.UINT32,x)}catch(le){let be='cannot decode message google.protobuf.UInt32Value from JSON"';throw le instanceof Error&&le.message.length>0&&(be+=`: ${le.message}`),new Error(be)}return this}static fromBinary(x,L){return new Ur().fromBinary(x,L)}static fromJson(x,L){return new Ur().fromJson(x,L)}static fromJsonString(x,L){return new Ur().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(Ur,x,L)}}Ur.runtime=c.w,Ur.typeName="google.protobuf.UInt32Value",Ur.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:13}]),Ur.fieldWrapper={wrapField(F){return new Ur({value:F})},unwrapField(F){return F.value}};class Ho extends se.v{constructor(x){super(),this.value=!1,c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.BOOL,this.value,!0)}fromJson(x,L){try{this.value=c.w.json.readScalar(p.w.BOOL,x)}catch(le){let be='cannot decode message google.protobuf.BoolValue from JSON"';throw le instanceof Error&&le.message.length>0&&(be+=`: ${le.message}`),new Error(be)}return this}static fromBinary(x,L){return new Ho().fromBinary(x,L)}static fromJson(x,L){return new Ho().fromJson(x,L)}static fromJsonString(x,L){return new Ho().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(Ho,x,L)}}Ho.runtime=c.w,Ho.typeName="google.protobuf.BoolValue",Ho.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:8}]),Ho.fieldWrapper={wrapField(F){return new Ho({value:F})},unwrapField(F){return F.value}};class zi extends se.v{constructor(x){super(),this.value="",c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.STRING,this.value,!0)}fromJson(x,L){try{this.value=c.w.json.readScalar(p.w.STRING,x)}catch(le){let be='cannot decode message google.protobuf.StringValue from JSON"';throw le instanceof Error&&le.message.length>0&&(be+=`: ${le.message}`),new Error(be)}return this}static fromBinary(x,L){return new zi().fromBinary(x,L)}static fromJson(x,L){return new zi().fromJson(x,L)}static fromJsonString(x,L){return new zi().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(zi,x,L)}}zi.runtime=c.w,zi.typeName="google.protobuf.StringValue",zi.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:9}]),zi.fieldWrapper={wrapField(F){return new zi({value:F})},unwrapField(F){return F.value}};class Jt extends se.v{constructor(x){super(),this.value=new Uint8Array(0),c.w.util.initPartial(x,this)}toJson(x){return c.w.json.writeScalar(p.w.BYTES,this.value,!0)}fromJson(x,L){try{this.value=c.w.json.readScalar(p.w.BYTES,x)}catch(le){let be='cannot decode message google.protobuf.BytesValue from JSON"';throw le instanceof Error&&le.message.length>0&&(be+=`: ${le.message}`),new Error(be)}return this}static fromBinary(x,L){return new Jt().fromBinary(x,L)}static fromJson(x,L){return new Jt().fromJson(x,L)}static fromJsonString(x,L){return new Jt().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(Jt,x,L)}}Jt.runtime=c.w,Jt.typeName="google.protobuf.BytesValue",Jt.fields=c.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:12}]),Jt.fieldWrapper={wrapField(F){return new Jt({value:F})},unwrapField(F){return F.value}};const Ar=[Qp.I,Or,Ts,ws,So,Br,io,la,Or,Vo,To,ji,Cr,Ur,mr,Ho,zi,Jt],Yp=[(0,Wl.V3)(ro)];function df(F,x=!0){const L=F instanceof Uint8Array||F instanceof ce?Wt(F):F,le={},be={},Pe={};if(x){for(const je of Ar)be[je.typeName]=je;for(const je of Yp)le[je.typeName]=je}return{findEnum(je){const ct=le[je];if(ct)return ct;const Ze=L.enums.get(je);if(!Ze)return;const Pt=(Ze.file.syntax=="proto3"?c.w:E).makeEnumType(je,Ze.values.map(On=>({no:On.number,name:On.name,localName:(0,v.r1)(On)})),{});return le[je]=Pt,Pt},findMessage(je){const ct=be[je];if(ct)return ct;const Ze=L.messages.get(je);if(!Ze)return;const Ot=Ze.file.syntax=="proto3"?c.w:E,Pt=[],On=Ot.makeMessageType(je,()=>Pt,{localName:(0,v.r1)(Ze)});be[je]=On;for(const vr of Ze.fields){const Sn=Wo(vr,this);Pt.push(Sn)}return On},findService(je){const ct=Pe[je];if(ct)return ct;const Ze=L.services.get(je);if(!Ze)return;const Ot={};for(const Pt of Ze.methods){const On=this.findMessage(Pt.input.typeName),vr=this.findMessage(Pt.output.typeName);(0,k.hu)(On,`message "${Pt.input.typeName}" for ${Pt.toString()} not found`),(0,k.hu)(vr,`output message "${Pt.output.typeName}" for ${Pt.toString()} not found`),Ot[(0,v.r1)(Pt)]={name:Pt.name,I:On,O:vr,kind:Pt.methodKind,idempotency:Pt.idempotency}}return Pe[je]={typeName:Ze.typeName,methods:Ot}}}}function Wo(F,x){switch(F.fieldKind){case"map":return Ql(F,x);case"message":return ff(F,x);case"enum":{const L=Yl(F,x);return L.default=F.getDefaultValue(),L}case"scalar":{const L=Hu(F);return L.default=F.getDefaultValue(),L}}}function Ql(F,x){const L={kind:"map",no:F.number,name:F.name,jsonName:F.jsonName,K:F.mapKey};if(F.mapValue.message){const le=x.findMessage(F.mapValue.message.typeName);return(0,k.hu)(le,`message "${F.mapValue.message.typeName}" for ${F.toString()} not found`),Object.assign(Object.assign({},L),{V:{kind:"message",T:le}})}if(F.mapValue.enum){const le=x.findEnum(F.mapValue.enum.typeName);return(0,k.hu)(le,`enum "${F.mapValue.enum.typeName}" for ${F.toString()} not found`),Object.assign(Object.assign({},L),{V:{kind:"enum",T:le}})}return Object.assign(Object.assign({},L),{V:{kind:"scalar",T:F.mapValue.scalar}})}function Hu(F){const x=F.longType==p.p.STRING?{L:p.p.STRING}:{},L=Object.assign({kind:"scalar",no:F.number,name:F.name,jsonName:F.jsonName,T:F.scalar},x);return F.repeated?Object.assign(Object.assign({},L),{repeated:!0,packed:F.packed,oneof:void 0,T:F.scalar}):F.oneof?Object.assign(Object.assign({},L),{oneof:F.oneof.name}):F.optional?Object.assign(Object.assign({},L),{opt:!0}):L}function ff(F,x){const L=x.findMessage(F.message.typeName);(0,k.hu)(L,`message "${F.message.typeName}" for ${F.toString()} not found`);const le={kind:"message",no:F.number,name:F.name,jsonName:F.jsonName,T:L,delimited:F.proto.type==ye.GROUP};return F.repeated?Object.assign(Object.assign({},le),{repeated:!0,packed:F.packed,oneof:void 0}):F.oneof?Object.assign(Object.assign({},le),{oneof:F.oneof.name}):F.optional?Object.assign(Object.assign({},le),{opt:!0}):le}function Yl(F,x){const L=x.findEnum(F.enum.typeName);(0,k.hu)(L,`enum "${F.enum.typeName}" for ${F.toString()} not found`);const le={kind:"enum",no:F.number,name:F.name,jsonName:F.jsonName,T:L};return F.repeated?Object.assign(Object.assign({},le),{repeated:!0,packed:F.packed,oneof:void 0}):F.oneof?Object.assign(Object.assign({},le),{oneof:F.oneof.name}):F.optional?Object.assign(Object.assign({},le),{opt:!0}):le}function Gp(F){if(!(F instanceof se.v))return F;const x=F.getType(),L={};for(const le of x.fields.byMember()){const be=F[le.localName];let Pe;if(le.repeated)Pe=be.map(je=>$a(je));else if(le.kind=="map"){Pe={};for(const[je,ct]of Object.entries(be))Pe[je]=$a(ct)}else le.kind=="oneof"?Pe=le.findField(be.case)?{case:be.case,value:$a(be.value)}:{case:void 0}:Pe=$a(be);L[le.localName]=Pe}return L}function $a(F){if(F===void 0)return F;if(F instanceof se.v)return Gp(F);if(F instanceof Uint8Array){const x=new Uint8Array(F.byteLength);return x.set(F),x}return F}class Qo extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,L){return new Qo().fromBinary(x,L)}static fromJson(x,L){return new Qo().fromJson(x,L)}static fromJsonString(x,L){return new Qo().fromJsonString(x,L)}static equals(x,L){return E.util.equals(Qo,x,L)}}Qo.runtime=E,Qo.typeName="google.protobuf.compiler.Version",Qo.fields=E.util.newFieldList(()=>[{no:1,name:"major",kind:"scalar",T:5,opt:!0},{no:2,name:"minor",kind:"scalar",T:5,opt:!0},{no:3,name:"patch",kind:"scalar",T:5,opt:!0},{no:4,name:"suffix",kind:"scalar",T:9,opt:!0}]);class Yo extends se.v{constructor(x){super(),this.fileToGenerate=[],this.protoFile=[],this.sourceFileDescriptors=[],E.util.initPartial(x,this)}static fromBinary(x,L){return new Yo().fromBinary(x,L)}static fromJson(x,L){return new Yo().fromJson(x,L)}static fromJsonString(x,L){return new Yo().fromJsonString(x,L)}static equals(x,L){return E.util.equals(Yo,x,L)}}Yo.runtime=E,Yo.typeName="google.protobuf.compiler.CodeGeneratorRequest",Yo.fields=E.util.newFieldList(()=>[{no:1,name:"file_to_generate",kind:"scalar",T:9,repeated:!0},{no:2,name:"parameter",kind:"scalar",T:9,opt:!0},{no:15,name:"proto_file",kind:"message",T:ge,repeated:!0},{no:17,name:"source_file_descriptors",kind:"message",T:ge,repeated:!0},{no:3,name:"compiler_version",kind:"message",T:Qo,opt:!0}]);class di extends se.v{constructor(x){super(),this.file=[],E.util.initPartial(x,this)}static fromBinary(x,L){return new di().fromBinary(x,L)}static fromJson(x,L){return new di().fromJson(x,L)}static fromJsonString(x,L){return new di().fromJsonString(x,L)}static equals(x,L){return E.util.equals(di,x,L)}}di.runtime=E,di.typeName="google.protobuf.compiler.CodeGeneratorResponse",di.fields=E.util.newFieldList(()=>[{no:1,name:"error",kind:"scalar",T:9,opt:!0},{no:2,name:"supported_features",kind:"scalar",T:4,opt:!0},{no:15,name:"file",kind:"message",T:wo,repeated:!0}]);var Gl;(function(F){F[F.NONE=0]="NONE",F[F.PROTO3_OPTIONAL=1]="PROTO3_OPTIONAL",F[F.SUPPORTS_EDITIONS=2]="SUPPORTS_EDITIONS"})(Gl||(Gl={})),E.util.setEnumType(Gl,"google.protobuf.compiler.CodeGeneratorResponse.Feature",[{no:0,name:"FEATURE_NONE"},{no:1,name:"FEATURE_PROTO3_OPTIONAL"},{no:2,name:"FEATURE_SUPPORTS_EDITIONS"}]);class wo extends se.v{constructor(x){super(),E.util.initPartial(x,this)}static fromBinary(x,L){return new wo().fromBinary(x,L)}static fromJson(x,L){return new wo().fromJson(x,L)}static fromJsonString(x,L){return new wo().fromJsonString(x,L)}static equals(x,L){return E.util.equals(wo,x,L)}}wo.runtime=E,wo.typeName="google.protobuf.compiler.CodeGeneratorResponse.File",wo.fields=E.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"insertion_point",kind:"scalar",T:9,opt:!0},{no:15,name:"content",kind:"scalar",T:9,opt:!0},{no:16,name:"generated_code_info",kind:"message",T:$t,opt:!0}]);class ua extends se.v{constructor(x){super(),this.fileName="",c.w.util.initPartial(x,this)}static fromBinary(x,L){return new ua().fromBinary(x,L)}static fromJson(x,L){return new ua().fromJson(x,L)}static fromJsonString(x,L){return new ua().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(ua,x,L)}}ua.runtime=c.w,ua.typeName="google.protobuf.SourceContext",ua.fields=c.w.util.newFieldList(()=>[{no:1,name:"file_name",kind:"scalar",T:9}]);var ca;(function(F){F[F.PROTO2=0]="PROTO2",F[F.PROTO3=1]="PROTO3",F[F.EDITIONS=2]="EDITIONS"})(ca||(ca={})),c.w.util.setEnumType(ca,"google.protobuf.Syntax",[{no:0,name:"SYNTAX_PROTO2"},{no:1,name:"SYNTAX_PROTO3"},{no:2,name:"SYNTAX_EDITIONS"}]);class ki extends se.v{constructor(x){super(),this.name="",this.fields=[],this.oneofs=[],this.options=[],this.syntax=ca.PROTO2,this.edition="",c.w.util.initPartial(x,this)}static fromBinary(x,L){return new ki().fromBinary(x,L)}static fromJson(x,L){return new ki().fromJson(x,L)}static fromJsonString(x,L){return new ki().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(ki,x,L)}}ki.runtime=c.w,ki.typeName="google.protobuf.Type",ki.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"fields",kind:"message",T:Go,repeated:!0},{no:3,name:"oneofs",kind:"scalar",T:9,repeated:!0},{no:4,name:"options",kind:"message",T:xi,repeated:!0},{no:5,name:"source_context",kind:"message",T:ua},{no:6,name:"syntax",kind:"enum",T:c.w.getEnumType(ca)},{no:7,name:"edition",kind:"scalar",T:9}]);class Go extends se.v{constructor(x){super(),this.kind=Lc.TYPE_UNKNOWN,this.cardinality=Mc.UNKNOWN,this.number=0,this.name="",this.typeUrl="",this.oneofIndex=0,this.packed=!1,this.options=[],this.jsonName="",this.defaultValue="",c.w.util.initPartial(x,this)}static fromBinary(x,L){return new Go().fromBinary(x,L)}static fromJson(x,L){return new Go().fromJson(x,L)}static fromJsonString(x,L){return new Go().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(Go,x,L)}}Go.runtime=c.w,Go.typeName="google.protobuf.Field",Go.fields=c.w.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:c.w.getEnumType(Lc)},{no:2,name:"cardinality",kind:"enum",T:c.w.getEnumType(Mc)},{no:3,name:"number",kind:"scalar",T:5},{no:4,name:"name",kind:"scalar",T:9},{no:6,name:"type_url",kind:"scalar",T:9},{no:7,name:"oneof_index",kind:"scalar",T:5},{no:8,name:"packed",kind:"scalar",T:8},{no:9,name:"options",kind:"message",T:xi,repeated:!0},{no:10,name:"json_name",kind:"scalar",T:9},{no:11,name:"default_value",kind:"scalar",T:9}]);var Lc;(function(F){F[F.TYPE_UNKNOWN=0]="TYPE_UNKNOWN",F[F.TYPE_DOUBLE=1]="TYPE_DOUBLE",F[F.TYPE_FLOAT=2]="TYPE_FLOAT",F[F.TYPE_INT64=3]="TYPE_INT64",F[F.TYPE_UINT64=4]="TYPE_UINT64",F[F.TYPE_INT32=5]="TYPE_INT32",F[F.TYPE_FIXED64=6]="TYPE_FIXED64",F[F.TYPE_FIXED32=7]="TYPE_FIXED32",F[F.TYPE_BOOL=8]="TYPE_BOOL",F[F.TYPE_STRING=9]="TYPE_STRING",F[F.TYPE_GROUP=10]="TYPE_GROUP",F[F.TYPE_MESSAGE=11]="TYPE_MESSAGE",F[F.TYPE_BYTES=12]="TYPE_BYTES",F[F.TYPE_UINT32=13]="TYPE_UINT32",F[F.TYPE_ENUM=14]="TYPE_ENUM",F[F.TYPE_SFIXED32=15]="TYPE_SFIXED32",F[F.TYPE_SFIXED64=16]="TYPE_SFIXED64",F[F.TYPE_SINT32=17]="TYPE_SINT32",F[F.TYPE_SINT64=18]="TYPE_SINT64"})(Lc||(Lc={})),c.w.util.setEnumType(Lc,"google.protobuf.Field.Kind",[{no:0,name:"TYPE_UNKNOWN"},{no:1,name:"TYPE_DOUBLE"},{no:2,name:"TYPE_FLOAT"},{no:3,name:"TYPE_INT64"},{no:4,name:"TYPE_UINT64"},{no:5,name:"TYPE_INT32"},{no:6,name:"TYPE_FIXED64"},{no:7,name:"TYPE_FIXED32"},{no:8,name:"TYPE_BOOL"},{no:9,name:"TYPE_STRING"},{no:10,name:"TYPE_GROUP"},{no:11,name:"TYPE_MESSAGE"},{no:12,name:"TYPE_BYTES"},{no:13,name:"TYPE_UINT32"},{no:14,name:"TYPE_ENUM"},{no:15,name:"TYPE_SFIXED32"},{no:16,name:"TYPE_SFIXED64"},{no:17,name:"TYPE_SINT32"},{no:18,name:"TYPE_SINT64"}]);var Mc;(function(F){F[F.UNKNOWN=0]="UNKNOWN",F[F.OPTIONAL=1]="OPTIONAL",F[F.REQUIRED=2]="REQUIRED",F[F.REPEATED=3]="REPEATED"})(Mc||(Mc={})),c.w.util.setEnumType(Mc,"google.protobuf.Field.Cardinality",[{no:0,name:"CARDINALITY_UNKNOWN"},{no:1,name:"CARDINALITY_OPTIONAL"},{no:2,name:"CARDINALITY_REQUIRED"},{no:3,name:"CARDINALITY_REPEATED"}]);class Yn extends se.v{constructor(x){super(),this.name="",this.enumvalue=[],this.options=[],this.syntax=ca.PROTO2,this.edition="",c.w.util.initPartial(x,this)}static fromBinary(x,L){return new Yn().fromBinary(x,L)}static fromJson(x,L){return new Yn().fromJson(x,L)}static fromJsonString(x,L){return new Yn().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(Yn,x,L)}}Yn.runtime=c.w,Yn.typeName="google.protobuf.Enum",Yn.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"enumvalue",kind:"message",T:Fa,repeated:!0},{no:3,name:"options",kind:"message",T:xi,repeated:!0},{no:4,name:"source_context",kind:"message",T:ua},{no:5,name:"syntax",kind:"enum",T:c.w.getEnumType(ca)},{no:6,name:"edition",kind:"scalar",T:9}]);class Fa extends se.v{constructor(x){super(),this.name="",this.number=0,this.options=[],c.w.util.initPartial(x,this)}static fromBinary(x,L){return new Fa().fromBinary(x,L)}static fromJson(x,L){return new Fa().fromJson(x,L)}static fromJsonString(x,L){return new Fa().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(Fa,x,L)}}Fa.runtime=c.w,Fa.typeName="google.protobuf.EnumValue",Fa.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"number",kind:"scalar",T:5},{no:3,name:"options",kind:"message",T:xi,repeated:!0}]);class xi extends se.v{constructor(x){super(),this.name="",c.w.util.initPartial(x,this)}static fromBinary(x,L){return new xi().fromBinary(x,L)}static fromJson(x,L){return new xi().fromJson(x,L)}static fromJsonString(x,L){return new xi().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(xi,x,L)}}xi.runtime=c.w,xi.typeName="google.protobuf.Option",xi.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"value",kind:"message",T:Qp.I}]);class Ba extends se.v{constructor(x){super(),this.name="",this.methods=[],this.options=[],this.version="",this.mixins=[],this.syntax=ca.PROTO2,c.w.util.initPartial(x,this)}static fromBinary(x,L){return new Ba().fromBinary(x,L)}static fromJson(x,L){return new Ba().fromJson(x,L)}static fromJsonString(x,L){return new Ba().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(Ba,x,L)}}Ba.runtime=c.w,Ba.typeName="google.protobuf.Api",Ba.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"methods",kind:"message",T:da,repeated:!0},{no:3,name:"options",kind:"message",T:xi,repeated:!0},{no:4,name:"version",kind:"scalar",T:9},{no:5,name:"source_context",kind:"message",T:ua},{no:6,name:"mixins",kind:"message",T:Ua,repeated:!0},{no:7,name:"syntax",kind:"enum",T:c.w.getEnumType(ca)}]);class da extends se.v{constructor(x){super(),this.name="",this.requestTypeUrl="",this.requestStreaming=!1,this.responseTypeUrl="",this.responseStreaming=!1,this.options=[],this.syntax=ca.PROTO2,c.w.util.initPartial(x,this)}static fromBinary(x,L){return new da().fromBinary(x,L)}static fromJson(x,L){return new da().fromJson(x,L)}static fromJsonString(x,L){return new da().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(da,x,L)}}da.runtime=c.w,da.typeName="google.protobuf.Method",da.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"request_type_url",kind:"scalar",T:9},{no:3,name:"request_streaming",kind:"scalar",T:8},{no:4,name:"response_type_url",kind:"scalar",T:9},{no:5,name:"response_streaming",kind:"scalar",T:8},{no:6,name:"options",kind:"message",T:xi,repeated:!0},{no:7,name:"syntax",kind:"enum",T:c.w.getEnumType(ca)}]);class Ua extends se.v{constructor(x){super(),this.name="",this.root="",c.w.util.initPartial(x,this)}static fromBinary(x,L){return new Ua().fromBinary(x,L)}static fromJson(x,L){return new Ua().fromJson(x,L)}static fromJsonString(x,L){return new Ua().fromJsonString(x,L)}static equals(x,L){return c.w.util.equals(Ua,x,L)}}Ua.runtime=c.w,Ua.typeName="google.protobuf.Mixin",Ua.fields=c.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"root",kind:"scalar",T:9}])},561:(s,l,u)=>{u.d(l,{v:()=>c});class c{equals(p){return this.getType().runtime.util.equals(this.getType(),this,p)}clone(){return this.getType().runtime.util.clone(this)}fromBinary(p,h){const m=this.getType(),b=m.runtime.bin,O=b.makeReadOptions(h);return b.readMessage(this,O.readerFactory(p),p.byteLength,O),this}fromJson(p,h){const m=this.getType(),b=m.runtime.json,O=b.makeReadOptions(h);return b.readMessage(m,p,O,this),this}fromJsonString(p,h){let m;try{m=JSON.parse(p)}catch(b){throw new Error(`cannot decode ${this.getType().typeName} from JSON: ${b instanceof Error?b.message:String(b)}`)}return this.fromJson(m,h)}toBinary(p){const h=this.getType(),m=h.runtime.bin,b=m.makeWriteOptions(p),O=b.writerFactory();return m.writeMessage(this,O,b),O.finish()}toJson(p){const h=this.getType(),m=h.runtime.json,b=m.makeWriteOptions(p);return m.writeMessage(this,b)}toJsonString(p){var h;const m=this.toJson(p);return JSON.stringify(m,null,(h=p==null?void 0:p.prettySpaces)!==null&&h!==void 0?h:0)}toJSON(){return this.toJson({emitDefaultValues:!0})}getType(){return Object.getPrototypeOf(this).constructor}}},120:(s,l,u)=>{u.d(l,{E_:()=>v,fp:()=>y,hu:()=>c,ug:()=>O});function c(S,k){if(!S)throw new Error(k)}const d=34028234663852886e22,p=-34028234663852886e22,h=4294967295,m=2147483647,b=-2147483648;function O(S){if(typeof S!="number")throw new Error("invalid int 32: "+typeof S);if(!Number.isInteger(S)||S>m||Sh||S<0)throw new Error("invalid uint 32: "+S)}function v(S){if(typeof S!="number")throw new Error("invalid float 32: "+typeof S);if(Number.isFinite(S)&&(S>d||S{u.d(l,{Jj:()=>V,NN:()=>U,gQ:()=>R,gY:()=>C,oQ:()=>B});var c=u(79),d=u(561),p=u(465),h=u(432),m=u(781),b=u(120);const O=Symbol("@bufbuild/protobuf/unknown-fields"),y={readUnknownFields:!0,readerFactory:z=>new c.oP(z)},v={writeUnknownFields:!0,writerFactory:()=>new c.Lt};function S(z){return z?Object.assign(Object.assign({},y),z):y}function k(z){return z?Object.assign(Object.assign({},v),z):v}function C(){return{makeReadOptions:S,makeWriteOptions:k,listUnknownFields(z){var W;return(W=z[O])!==null&&W!==void 0?W:[]},discardUnknownFields(z){delete z[O]},writeUnknownFields(z,W){const q=z[O];if(q)for(const Y of q)W.tag(Y.no,Y.wireType).raw(Y.data)},onUnknownField(z,W,X,q){const Y=z;Array.isArray(Y[O])||(Y[O]=[]),Y[O].push({no:W,wireType:X,data:q})},readMessage(z,W,X,q,Y){const Z=z.getType(),j=Y?W.len:W.pos+X;let se,ve;for(;W.pos0&&(Ne=$),ge){let Ye=ce[ue];if(ve==c.TD.LengthDelimited&&xe!=p.w.STRING&&xe!=p.w.BYTES){let ye=W.uint32()+W.pos;for(;W.pos{u.d(l,{V3:()=>p,be:()=>m,ut:()=>b,zg:()=>h});var c=u(120);const d=Symbol("@bufbuild/protobuf/enum-type");function p(y){const v=y[d];return(0,c.hu)(v,"missing enum type on enum object"),v}function h(y,v,S,k){y[d]=m(v,S.map(C=>({no:C.no,name:C.name,localName:y[C.no]})))}function m(y,v,S){const k=Object.create(null),C=Object.create(null),w=[];for(const E of v){const $=O(E);w.push($),k[E.name]=$,C[E.no]=$}return{typeName:y,values:w,findName(E){return k[E]},findNumber(E){return C[E]}}}function b(y,v,S){const k={};for(const C of v){const w=O(C);k[w.localName]=w.no,k[w.no]=w.localName}return h(k,y,v),k}function O(y){return"localName"in y?y:Object.assign(Object.assign({},y),{localName:y.name})}},501:(s,l,u)=>{u.d(l,{i:()=>c});class c{constructor(p,h){this._fields=p,this._normalizer=h}findJsonName(p){if(!this.jsonNames){const h={};for(const m of this.list())h[m.jsonName]=h[m.name]=m;this.jsonNames=h}return this.jsonNames[p]}find(p){if(!this.numbers){const h={};for(const m of this.list())h[m.no]=m;this.numbers=h}return this.numbers[p]}list(){return this.all||(this.all=this._normalizer(this._fields)),this.all}byNumber(){return this.numbersAsc||(this.numbersAsc=this.list().concat().sort((p,h)=>p.no-h.no)),this.numbersAsc}byMember(){if(!this.members){this.members=[];const p=this.members;let h;for(const m of this.list())m.oneof?m.oneof!==h&&(h=m.oneof,p.push(h)):p.push(m)}return this.members}}},432:(s,l,u)=>{u.d(l,{E:()=>p,w:()=>h});var c=u(561),d=u(465);function p(b,O){return O instanceof c.v||!b.fieldWrapper?O:b.fieldWrapper.wrapField(O)}function h(b){if(b.fieldKind==="message"&&!b.repeated&&b.oneof==null)return m[b.message.typeName]}const m={"google.protobuf.DoubleValue":d.w.DOUBLE,"google.protobuf.FloatValue":d.w.FLOAT,"google.protobuf.Int64Value":d.w.INT64,"google.protobuf.UInt64Value":d.w.UINT64,"google.protobuf.Int32Value":d.w.INT32,"google.protobuf.UInt32Value":d.w.UINT32,"google.protobuf.BoolValue":d.w.BOOL,"google.protobuf.StringValue":d.w.STRING,"google.protobuf.BytesValue":d.w.BYTES}},215:(s,l,u)=>{u.d(l,{o:()=>p});var c=u(504),d=u(120);class p{constructor(m){this.kind="oneof",this.repeated=!1,this.packed=!1,this.opt=!1,this.default=void 0,this.fields=[],this.name=m,this.localName=(0,c.uA)(m)}addField(m){(0,d.hu)(m.oneof===this,`field ${m.name} not one of ${this.name}`),this.fields.push(m)}findField(m){if(!this._lookup){this._lookup=Object.create(null);for(let b=0;b{u.d(l,{b:()=>S});var c=u(561),d=u(465),p=u(120),h=u(210),m=u(236);const b={ignoreUnknownFields:!1},O={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function y(N){return N?Object.assign(Object.assign({},b),N):b}function v(N){return N?Object.assign(Object.assign({},O),N):O}function S(N){const R=N(E,$);return{makeReadOptions:y,makeWriteOptions:v,readMessage(B,U,V,z){if(U==null||Array.isArray(U)||typeof U!="object")throw new Error(`cannot decode message ${B.typeName} from JSON: ${this.debug(U)}`);z=z??new B;const W={};for(const[X,q]of Object.entries(U)){const Y=B.fields.findJsonName(X);if(!Y){if(!V.ignoreUnknownFields)throw new Error(`cannot decode message ${B.typeName} from JSON: key "${X}" is unknown`);continue}let Z=Y.localName,j=z;if(Y.oneof){if(q===null&&Y.kind=="scalar")continue;const se=W[Y.oneof.localName];if(se)throw new Error(`cannot decode message ${B.typeName} from JSON: multiple keys for oneof "${Y.oneof.name}" present: "${se}", "${X}"`);W[Y.oneof.localName]=X,j=j[Y.oneof.localName]={case:Z},Z="value"}if(Y.repeated){if(q===null)continue;if(!Array.isArray(q))throw new Error(`cannot decode field ${B.typeName}.${Y.name} from JSON: ${this.debug(q)}`);const se=j[Z];for(const ve of q){if(ve===null)throw new Error(`cannot decode field ${B.typeName}.${Y.name} from JSON: ${this.debug(ve)}`);let G;switch(Y.kind){case"message":G=Y.T.fromJson(ve,V);break;case"enum":if(G=w(Y.T,ve,V.ignoreUnknownFields),G===void 0)continue;break;case"scalar":try{G=C(Y.T,ve,Y.L)}catch(ce){let ge=`cannot decode field ${B.typeName}.${Y.name} from JSON: ${this.debug(ve)}`;throw ce instanceof Error&&ce.message.length>0&&(ge+=`: ${ce.message}`),new Error(ge)}break}se.push(G)}}else if(Y.kind=="map"){if(q===null)continue;if(Array.isArray(q)||typeof q!="object")throw new Error(`cannot decode field ${B.typeName}.${Y.name} from JSON: ${this.debug(q)}`);const se=j[Z];for(const[ve,G]of Object.entries(q)){if(G===null)throw new Error(`cannot decode field ${B.typeName}.${Y.name} from JSON: map value null`);let ce;switch(Y.V.kind){case"message":ce=Y.V.T.fromJson(G,V);break;case"enum":if(ce=w(Y.V.T,G,V.ignoreUnknownFields),ce===void 0)continue;break;case"scalar":try{ce=C(Y.V.T,G,d.p.BIGINT)}catch(ge){let ue=`cannot decode map value for field ${B.typeName}.${Y.name} from JSON: ${this.debug(q)}`;throw ge instanceof Error&&ge.message.length>0&&(ue+=`: ${ge.message}`),new Error(ue)}break}try{se[C(Y.K,Y.K==d.w.BOOL?ve=="true"?!0:ve=="false"?!1:ve:ve,d.p.BIGINT).toString()]=ce}catch(ge){let ue=`cannot decode map key for field ${B.typeName}.${Y.name} from JSON: ${this.debug(q)}`;throw ge instanceof Error&&ge.message.length>0&&(ue+=`: ${ge.message}`),new Error(ue)}}}else switch(Y.kind){case"message":const se=Y.T;if(q===null&&se.typeName!="google.protobuf.Value"){if(Y.oneof)throw new Error(`cannot decode field ${B.typeName}.${Y.name} from JSON: null is invalid for oneof field "${X}"`);continue}j[Z]instanceof c.v?j[Z].fromJson(q,V):(j[Z]=se.fromJson(q,V),se.fieldWrapper&&!Y.oneof&&(j[Z]=se.fieldWrapper.unwrapField(j[Z])));break;case"enum":const ve=w(Y.T,q,V.ignoreUnknownFields);ve!==void 0&&(j[Z]=ve);break;case"scalar":try{j[Z]=C(Y.T,q,Y.L)}catch(G){let ce=`cannot decode field ${B.typeName}.${Y.name} from JSON: ${this.debug(q)}`;throw G instanceof Error&&G.message.length>0&&(ce+=`: ${G.message}`),new Error(ce)}break}}return z},writeMessage(B,U){const V=B.getType(),z={};let W;try{for(const X of V.fields.byMember()){let q;if(X.kind=="oneof"){const Y=B[X.localName];if(Y.value===void 0)continue;if(W=X.findField(Y.case),!W)throw"oneof case not found: "+Y.case;q=R(W,Y.value,U)}else W=X,q=R(W,B[W.localName],U);q!==void 0&&(z[U.useProtoFieldName?W.name:W.jsonName]=q)}}catch(X){const q=W?`cannot encode field ${V.typeName}.${W.name} to JSON`:`cannot encode message ${V.typeName} to JSON`,Y=X instanceof Error?X.message:String(X);throw new Error(q+(Y.length>0?`: ${Y}`:""))}return z},readScalar:C,writeScalar:$,debug:k}}function k(N){if(N===null)return"null";switch(typeof N){case"object":return Array.isArray(N)?"array":"object";case"string":return N.length>100?"string":`"${N.split('"').join('\\"')}"`;default:return String(N)}}function C(N,R,B){switch(N){case d.w.DOUBLE:case d.w.FLOAT:if(R===null)return 0;if(R==="NaN")return Number.NaN;if(R==="Infinity")return Number.POSITIVE_INFINITY;if(R==="-Infinity")return Number.NEGATIVE_INFINITY;if(R===""||typeof R=="string"&&R.trim().length!==R.length||typeof R!="string"&&typeof R!="number")break;const U=Number(R);if(Number.isNaN(U)||!Number.isFinite(U))break;return N==d.w.FLOAT&&(0,p.E_)(U),U;case d.w.INT32:case d.w.FIXED32:case d.w.SFIXED32:case d.w.SINT32:case d.w.UINT32:if(R===null)return 0;let V;if(typeof R=="number"?V=R:typeof R=="string"&&R.length>0&&R.trim().length===R.length&&(V=Number(R)),V===void 0)break;return N==d.w.UINT32?(0,p.fp)(V):(0,p.ug)(V),V;case d.w.INT64:case d.w.SFIXED64:case d.w.SINT64:if(R===null)return h.q.zero;if(typeof R!="number"&&typeof R!="string")break;const z=h.q.parse(R);return B?z.toString():z;case d.w.FIXED64:case d.w.UINT64:if(R===null)return h.q.zero;if(typeof R!="number"&&typeof R!="string")break;const W=h.q.uParse(R);return B?W.toString():W;case d.w.BOOL:if(R===null)return!1;if(typeof R!="boolean")break;return R;case d.w.STRING:if(R===null)return"";if(typeof R!="string")break;try{encodeURIComponent(R)}catch{throw new Error("invalid UTF8")}return R;case d.w.BYTES:if(R===null||R==="")return new Uint8Array(0);if(typeof R!="string")break;return m.W.dec(R)}throw new Error}function w(N,R,B){if(R===null)return 0;switch(typeof R){case"number":if(Number.isInteger(R))return R;break;case"string":const U=N.findName(R);if(U||B)return U==null?void 0:U.no;break}throw new Error(`cannot decode enum ${N.typeName} from JSON: ${k(R)}`)}function E(N,R,B,U){var V;if(R===void 0)return R;if(R===0&&!B)return;if(U)return R;if(N.typeName=="google.protobuf.NullValue")return null;const z=N.findNumber(R);return(V=z==null?void 0:z.name)!==null&&V!==void 0?V:R}function $(N,R,B){if(R!==void 0)switch(N){case d.w.INT32:case d.w.SFIXED32:case d.w.SINT32:case d.w.FIXED32:case d.w.UINT32:return(0,p.hu)(typeof R=="number"),R!=0||B?R:void 0;case d.w.FLOAT:case d.w.DOUBLE:return(0,p.hu)(typeof R=="number"),Number.isNaN(R)?"NaN":R===Number.POSITIVE_INFINITY?"Infinity":R===Number.NEGATIVE_INFINITY?"-Infinity":R!==0||B?R:void 0;case d.w.STRING:return(0,p.hu)(typeof R=="string"),R.length>0||B?R:void 0;case d.w.BOOL:return(0,p.hu)(typeof R=="boolean"),R||B?R:void 0;case d.w.UINT64:case d.w.FIXED64:case d.w.INT64:case d.w.SFIXED64:case d.w.SINT64:return(0,p.hu)(typeof R=="bigint"||typeof R=="string"||typeof R=="number"),B||R!=0?R.toString(10):void 0;case d.w.BYTES:return(0,p.hu)(R instanceof Uint8Array),B||R.byteLength>0?m.W.enc(R):void 0}}},504:(s,l,u)=>{u.d(l,{GD:()=>E,Rz:()=>d,Sm:()=>m,ll:()=>w,r1:()=>c,uA:()=>p,x1:()=>h});function c($){switch($.kind){case"field":return d($.name,$.oneof!==void 0);case"oneof":return p($.name);case"enum":case"message":case"service":{const N=$.file.proto.package,R=N===void 0?0:N.length+1,B=$.typeName.substring(R).replace(/\./g,"_");return w(E(B))}case"enum_value":{const N=$.parent.sharedPrefix;if(N===void 0)return $.name;const R=$.name.substring(N.length);return w(R)}case"rpc":{let N=$.name;return N.length==0?N:(N=N[0].toLowerCase()+N.substring(1),w(N))}}}function d($,N){const R=O($);return N?R:w(C(R))}function p($){return d($,!1)}const h=O;function m($,N){const R=b($)+"_";for(const B of N){if(!B.toLowerCase().startsWith(R))return;const U=B.substring(R.length);if(U.length==0||/^\d/.test(U))return}return R}function b($){return($.substring(0,1)+$.substring(1).replace(/[A-Z]/g,N=>"_"+N)).toLowerCase()}function O($){let N=!1;const R=[];for(let B=0;B<$.length;B++){let U=$.charAt(B);switch(U){case"_":N=!0;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":R.push(U),N=!1;break;default:N&&(N=!1,U=U.toUpperCase()),R.push(U);break}}return R.join("")}const y=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","false","finally","for","function","if","import","in","instanceof","new","null","return","super","switch","this","throw","true","try","typeof","var","void","while","with","yield","enum","implements","interface","let","package","private","protected","public","static","Object","bigint","number","boolean","string","object","globalThis","Uint8Array","Partial"]),v=new Set(["constructor","toString","toJSON","valueOf"]),S=new Set(["getType","clone","equals","fromBinary","fromJson","fromJsonString","toBinary","toJson","toJsonString","toObject"]),k=$=>`${$}$`,C=$=>S.has($)?k($):$,w=$=>v.has($)?k($):$,E=$=>y.has($)?k($):$},493:(s,l,u)=>{u.d(l,{F:()=>h});var c=u(609),d=u(561);function p(m,b,O,y){var v;const S=(v=y==null?void 0:y.localName)!==null&&v!==void 0?v:b.substring(b.lastIndexOf(".")+1),k={[S]:function(C){m.util.initFields(this),m.util.initPartial(C,this)}}[S];return Object.setPrototypeOf(k.prototype,new d.v),Object.assign(k,{runtime:m,typeName:b,fields:m.util.newFieldList(O),fromBinary(C,w){return new k().fromBinary(C,w)},fromJson(C,w){return new k().fromJson(C,w)},fromJsonString(C,w){return new k().fromJsonString(C,w)},equals(C,w){return m.util.equals(k,C,w)}}),k}function h(m,b,O,y){return{syntax:m,json:b,bin:O,util:y,makeMessageType(v,S,k){return p(this,v,S,k)},makeEnum:c.ut,makeEnumType:c.be,getEnumType:c.V3}}},781:(s,l,u)=>{u.d(l,{AA:()=>h,T1:()=>b,kY:()=>m});var c=u(465),d=u(79),p=u(210);function h(O,y,v){if(y===v)return!0;if(O==c.w.BYTES){if(!(y instanceof Uint8Array)||!(v instanceof Uint8Array)||y.length!==v.length)return!1;for(let S=0;S{u.d(l,{f:()=>m});var c=u(609),d=u(561),p=u(465),h=u(781);function m(){return{setEnumType:c.zg,initPartial(y,v){if(y===void 0)return;const S=v.getType();for(const k of S.fields.byMember()){const C=k.localName,w=v,E=y;if(E[C]!==void 0)switch(k.kind){case"oneof":const $=E[C].case;if($===void 0)continue;const N=k.findField($);let R=E[C].value;N&&N.kind=="message"&&!(R instanceof N.T)?R=new N.T(R):N&&N.kind==="scalar"&&N.T===p.w.BYTES&&(R=O(R)),w[C]={case:$,value:R};break;case"scalar":case"enum":let B=E[C];k.T===p.w.BYTES&&(B=k.repeated?B.map(O):O(B)),w[C]=B;break;case"map":switch(k.V.kind){case"scalar":case"enum":if(k.V.T===p.w.BYTES)for(const[z,W]of Object.entries(E[C]))w[C][z]=O(W);else Object.assign(w[C],E[C]);break;case"message":const V=k.V.T;for(const z of Object.keys(E[C])){let W=E[C][z];V.fieldWrapper||(W=new V(W)),w[C][z]=W}break}break;case"message":const U=k.T;if(k.repeated)w[C]=E[C].map(V=>V instanceof U?V:new U(V));else if(E[C]!==void 0){const V=E[C];U.fieldWrapper?U.typeName==="google.protobuf.BytesValue"?w[C]=O(V):w[C]=V:w[C]=V instanceof U?V:new U(V)}break}}},equals(y,v,S){return v===S?!0:!v||!S?!1:y.fields.byMember().every(k=>{const C=v[k.localName],w=S[k.localName];if(k.repeated){if(C.length!==w.length)return!1;switch(k.kind){case"message":return C.every((E,$)=>k.T.equals(E,w[$]));case"scalar":return C.every((E,$)=>(0,h.AA)(k.T,E,w[$]));case"enum":return C.every((E,$)=>(0,h.AA)(p.w.INT32,E,w[$]))}throw new Error(`repeated cannot contain ${k.kind}`)}switch(k.kind){case"message":return k.T.equals(C,w);case"enum":return(0,h.AA)(p.w.INT32,C,w);case"scalar":return(0,h.AA)(k.T,C,w);case"oneof":if(C.case!==w.case)return!1;const E=k.findField(C.case);if(E===void 0)return!0;switch(E.kind){case"message":return E.T.equals(C.value,w.value);case"enum":return(0,h.AA)(p.w.INT32,C.value,w.value);case"scalar":return(0,h.AA)(E.T,C.value,w.value)}throw new Error(`oneof cannot contain ${E.kind}`);case"map":const $=Object.keys(C).concat(Object.keys(w));switch(k.V.kind){case"message":const N=k.V.T;return $.every(B=>N.equals(C[B],w[B]));case"enum":return $.every(B=>(0,h.AA)(p.w.INT32,C[B],w[B]));case"scalar":const R=k.V.T;return $.every(B=>(0,h.AA)(R,C[B],w[B]))}break}})},clone(y){const v=y.getType(),S=new v,k=S;for(const C of v.fields.byMember()){const w=y[C.localName];let E;if(C.repeated)E=w.map(b);else if(C.kind=="map"){E=k[C.localName];for(const[$,N]of Object.entries(w))E[$]=b(N)}else C.kind=="oneof"?E=C.findField(w.case)?{case:w.case,value:b(w.value)}:{case:void 0}:E=b(w);k[C.localName]=E}return S}}}function b(y){if(y===void 0)return y;if(y instanceof d.v)return y.clone();if(y instanceof Uint8Array){const v=new Uint8Array(y.byteLength);return v.set(y),v}return y}function O(y){return y instanceof Uint8Array?y:new Uint8Array(y)}},236:(s,l,u)=>{u.d(l,{W:()=>p});let c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),d=[];for(let h=0;h>4,S=v,y=2;break;case 2:b[O++]=(S&15)<<4|(v&60)>>2,S=v,y=3;break;case 3:b[O++]=(S&3)<<6|v,y=0;break}}if(y==1)throw Error("invalid base64 string.");return b.subarray(0,O)},enc(h){let m="",b=0,O,y=0;for(let v=0;v>2],y=(O&3)<<4,b=1;break;case 1:m+=c[y|O>>4],y=(O&15)<<2,b=2;break;case 2:m+=c[y|O>>6],m+=c[O&63],b=0;break}return b&&(m+=c[y],m+="=",b==1&&(m+="=")),m}}},210:(s,l,u)=>{u.d(l,{q:()=>h});var c=u(120),d=u(818);function p(){const m=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof m.getBigInt64=="function"&&typeof m.getBigUint64=="function"&&typeof m.setBigInt64=="function"&&typeof m.setBigUint64=="function"&&(typeof process!="object"||typeof n!="object"||n.BUF_BIGINT_DISABLE!=="1")){const v=BigInt("-9223372036854775808"),S=BigInt("9223372036854775807"),k=BigInt("0"),C=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(w){const E=typeof w=="bigint"?w:BigInt(w);if(E>S||EC||E(0,c.hu)(/^-?[0-9]+$/.test(v),`int64 invalid: ${v}`),y=v=>(0,c.hu)(/^[0-9]+$/.test(v),`uint64 invalid: ${v}`);return{zero:"0",supported:!1,parse(v){return typeof v!="string"&&(v=v.toString()),O(v),v},uParse(v){return typeof v!="string"&&(v=v.toString()),y(v),v},enc(v){return typeof v!="string"&&(v=v.toString()),O(v),(0,d.CZ)(v)},uEnc(v){return typeof v!="string"&&(v=v.toString()),y(v),(0,d.CZ)(v)},dec(v,S){return(0,d.Ak)(v,S)},uDec(v,S){return(0,d.Fd)(v,S)}}}const h=p()},850:(s,l,u)=>{u.d(l,{w:()=>E});var c=u(493),d=u(465),p=u(744);function h(){return Object.assign(Object.assign({},(0,p.gY)()),{writeMessage(N,R,B){const U=N.getType();for(const V of U.fields.byNumber()){let z,W=V.repeated,X=V.localName;if(V.oneof){const q=N[V.oneof.localName];if(q.case!==X)continue;z=q.value}else z=N[X];switch(V.kind){case"scalar":case"enum":let q=V.kind=="enum"?d.w.INT32:V.T;if(W)if(V.packed)(0,p.Jj)(R,q,V.no,z);else for(const Y of z)(0,p.NN)(R,q,V.no,Y,!0);else z!==void 0&&(0,p.NN)(R,q,V.no,z,!!V.oneof||V.opt);break;case"message":if(W)for(const Y of z)(0,p.oQ)(R,B,V,Y);else(0,p.oQ)(R,B,V,z);break;case"map":for(const[Y,Z]of Object.entries(z))(0,p.gQ)(R,B,V,Y,Z);break}}return B.writeUnknownFields&&this.writeUnknownFields(N,R),R}})}var m=u(432),b=u(120),O=u(814);function y(){return(0,O.b)((N,R)=>function(U,V,z){if(U.kind=="map"){const W={};switch(U.V.kind){case"scalar":for(const[q,Y]of Object.entries(V)){const Z=R(U.V.T,Y,!0);(0,b.hu)(Z!==void 0),W[q.toString()]=Z}break;case"message":for(const[q,Y]of Object.entries(V))W[q.toString()]=Y.toJson(z);break;case"enum":const X=U.V.T;for(const[q,Y]of Object.entries(V)){(0,b.hu)(Y===void 0||typeof Y=="number");const Z=N(X,Y,!0,z.enumAsInteger);(0,b.hu)(Z!==void 0),W[q.toString()]=Z}break}return z.emitDefaultValues||Object.keys(W).length>0?W:void 0}else if(U.repeated){const W=[];switch(U.kind){case"scalar":for(let X=0;X0?W:void 0}else switch(U.kind){case"scalar":return R(U.T,V,!!U.oneof||U.opt||z.emitDefaultValues);case"enum":return N(U.T,V,!!U.oneof||U.opt||z.emitDefaultValues,z.enumAsInteger);case"message":return V!==void 0?(0,m.E)(U.T,V).toJson(z):void 0}})}var v=u(433),S=u(501),k=u(781),C=u(215),w=u(504);const E=(0,c.F)("proto3",y(),h(),Object.assign(Object.assign({},(0,v.f)()),{newFieldList(N){return new S.i(N,$)},initFields(N){for(const R of N.getType().fields.byMember()){if(R.opt)continue;const B=R.localName,U=N;if(R.repeated){U[B]=[];continue}switch(R.kind){case"oneof":U[B]={case:void 0};break;case"enum":U[B]=0;break;case"map":U[B]={};break;case"scalar":U[B]=(0,k.kY)(R.T,R.L);break}}}}));function $(N){var R,B,U,V;const z=[];let W;for(const X of typeof N=="function"?N():N){const q=X;if(q.localName=(0,w.Rz)(X.name,X.oneof!==void 0),q.jsonName=(R=X.jsonName)!==null&&R!==void 0?R:(0,w.x1)(X.name),q.repeated=(B=X.repeated)!==null&&B!==void 0?B:!1,X.kind=="scalar"&&(q.L=(U=X.L)!==null&&U!==void 0?U:d.p.BIGINT),X.oneof!==void 0){const Y=typeof X.oneof=="string"?X.oneof:X.oneof.name;(!W||W.name!=Y)&&(W=new C.o(Y)),q.oneof=W,W.addField(q)}X.kind=="message"&&(q.delimited=!1),q.packed=(V=X.packed)!==null&&V!==void 0?V:X.kind=="enum"||X.kind=="scalar"&&X.T!=d.w.BYTES&&X.T!=d.w.STRING,z.push(q)}return z}},328:(s,l,u)=>{u.d(l,{t:()=>c,w:()=>d});var c;(function(p){p[p.Unary=0]="Unary",p[p.ServerStreaming=1]="ServerStreaming",p[p.ClientStreaming=2]="ClientStreaming",p[p.BiDiStreaming=3]="BiDiStreaming"})(c||(c={}));var d;(function(p){p[p.NoSideEffects=1]="NoSideEffects",p[p.Idempotent=2]="Idempotent"})(d||(d={}))}},i={};function o(s){var l=i[s];if(l!==void 0)return l.exports;var u=i[s]={exports:{}};return r[s](u,u.exports,o),u.exports}o.d=(s,l)=>{for(var u in l)o.o(l,u)&&!o.o(s,u)&&Object.defineProperty(s,u,{enumerable:!0,get:l[u]})},o.o=(s,l)=>Object.prototype.hasOwnProperty.call(s,l),o.r=s=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})};var a={};return(()=>{o.r(a),o.d(a,{Change:()=>pf,Client:()=>e6,ClientEventType:()=>Va,ClientStatus:()=>Bc,Counter:()=>YO,DocEventType:()=>Ln,Document:()=>KF,DocumentSyncResultType:()=>eh,EventSourceDevPanel:()=>Ooe,EventSourceSDK:()=>voe,Primitive:()=>Ar,StreamConnectionStatus:()=>mf,SyncMode:()=>Wu,Text:()=>QO,TimeTicket:()=>Or,Tree:()=>GO,converter:()=>Zl,default:()=>Toe});var s;(function(A){A[A.Trivial=0]="Trivial",A[A.Debug=1]="Debug",A[A.Info=2]="Info",A[A.Warn=3]="Warn",A[A.Error=4]="Error",A[A.Fatal=5]="Fatal"})(s||(s={}));let l=s.Info;const u={trivial:(...A)=>{l>s.Trivial||typeof console<"u"&&console.log("YORKIE T:",...A)},debug:(...A)=>{l>s.Debug||typeof console<"u"&&console.log("YORKIE D:",...A)},info:(...A)=>{l>s.Info||typeof console<"u"&&console.log("YORKIE I:",...A)},warn:(...A)=>{l>s.Warn||typeof console<"u"&&(typeof console.warn<"u"?console.warn("YORKIE W:",...A):console.log("YORKIE W:",...A))},error:(...A)=>{l>s.Error||typeof console<"u"&&(typeof console.error<"u"?console.error("YORKIE E:",...A):console.log("YORKIE E:",...A))},fatal:(A,...f)=>{throw typeof console<"u"&&(typeof console.error<"u"?console.error("YORKIE F:",...f):console.log("YORKIE F:",...f)),new Error(`YORKIE F: ${A}`)},isEnabled:A=>l<=A};function c(){return"xxxxxxxx-xxxx-4xxxy-xxxx-xxxxxxxxxxx".replace(/[xy]/g,A=>{const f=Math.random()*16|0;return(A==="x"?f:f&3|8).toString(16)})}const d=()=>{};class p{constructor(f){this.finalized=!1,this.observers=[];try{f(this)}catch(g){this.error(g)}}next(f){this.forEachObserver(g=>{g.next(f)})}error(f){this.forEachObserver(g=>{g.error(f)}),this.close(f)}complete(){this.forEachObserver(f=>{f.complete()}),this.close()}subscribe(f,g,T){let _;f||u.fatal("missing observer"),this.finalized&&u.fatal("observable is finalized due to previous error"),typeof f=="object"?_=f:_={next:f,error:g,complete:T},_.next===void 0&&(_.next=d),_.error===void 0&&(_.error=d),_.complete===void 0&&(_.complete=d);const H=c(),K=this.unsubscribeOne.bind(this,H);if(this.observers.push({subscriptionID:H,observer:_}),this.finalized)try{this.finalError?_.error(this.finalError):_.complete()}catch(oe){u.warn(oe)}return K}unsubscribeOne(f){var g;this.observers=(g=this.observers)===null||g===void 0?void 0:g.filter(T=>T.subscriptionID!==f)}forEachObserver(f){if(!this.finalized)for(let g=0;gf}}var m=o(328);function b(A,f){const g={};for(const[T,_]of Object.entries(A.methods)){const H=f(Object.assign(Object.assign({},_),{localName:T,service:A}));H!=null&&(g[T]=H)}return g}var O;(function(A){A[A.Canceled=1]="Canceled",A[A.Unknown=2]="Unknown",A[A.InvalidArgument=3]="InvalidArgument",A[A.DeadlineExceeded=4]="DeadlineExceeded",A[A.NotFound=5]="NotFound",A[A.AlreadyExists=6]="AlreadyExists",A[A.PermissionDenied=7]="PermissionDenied",A[A.ResourceExhausted=8]="ResourceExhausted",A[A.FailedPrecondition=9]="FailedPrecondition",A[A.Aborted=10]="Aborted",A[A.OutOfRange=11]="OutOfRange",A[A.Unimplemented=12]="Unimplemented",A[A.Internal=13]="Internal",A[A.Unavailable=14]="Unavailable",A[A.DataLoss=15]="DataLoss",A[A.Unauthenticated=16]="Unauthenticated"})(O||(O={}));var y=o(561);function v(A){const f=O[A];return typeof f!="string"?A.toString():f[0].toLowerCase()+f.substring(1).replace(/[A-Z]/g,g=>"_"+g.toLowerCase())}class S extends Error{constructor(f,g=O.Unknown,T,_,H){super(k(f,g)),this.name="ConnectError",Object.setPrototypeOf(this,new.target.prototype),this.rawMessage=f,this.code=g,this.metadata=new Headers(T??{}),this.details=_??[],this.cause=H}static from(f,g=O.Unknown){return f instanceof S?f:f instanceof Error?f.name=="AbortError"?new S(f.message,O.Canceled):new S(f.message,g,void 0,void 0,f):new S(String(f),g,void 0,void 0,f)}findDetails(f){const g="typeName"in f?{findMessage:_=>_===f.typeName?f:void 0}:f,T=[];for(const _ of this.details){if(_ instanceof y.v){g.findMessage(_.getType().typeName)&&T.push(_);continue}const H=g.findMessage(_.type);if(H)try{T.push(H.fromBinary(_.value))}catch{}}return T}}function k(A,f){return A.length?`[${v(f)}] ${A}`:`[${v(f)}]`}var C=function(A){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var f=A[Symbol.asyncIterator],g;return f?f.call(A):(A=typeof __values=="function"?__values(A):A[Symbol.iterator](),g={},T("next"),T("throw"),T("return"),g[Symbol.asyncIterator]=function(){return this},g);function T(H){g[H]=A[H]&&function(K){return new Promise(function(oe,Ae){K=A[H](K),_(oe,Ae,K.done,K.value)})}}function _(H,K,oe,Ae){Promise.resolve(Ae).then(function(He){H({value:He,done:oe})},K)}},w=function(A){return this instanceof w?(this.v=A,this):new w(A)},E=function(A,f,g){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var T=g.apply(A,f||[]),_,H=[];return _={},K("next"),K("throw"),K("return"),_[Symbol.asyncIterator]=function(){return this},_;function K(ft){T[ft]&&(_[ft]=function(sn){return new Promise(function(In,Nn){H.push([ft,sn,In,Nn])>1||oe(ft,sn)})})}function oe(ft,sn){try{Ae(T[ft](sn))}catch(In){Ft(H[0][3],In)}}function Ae(ft){ft.value instanceof w?Promise.resolve(ft.value.v).then(He,yt):Ft(H[0][2],ft)}function He(ft){oe("next",ft)}function yt(ft){oe("throw",ft)}function Ft(ft,sn){ft(sn),H.shift(),H.length&&oe(H[0][0],H[0][1])}},$=function(A){var f,g;return f={},T("next"),T("throw",function(_){throw _}),T("return"),f[Symbol.iterator]=function(){return this},f;function T(_,H){f[_]=A[_]?function(K){return(g=!g)?{value:w(A[_](K)),done:!1}:H?H(K):K}:H}};function N(A){return E(this,arguments,function*(){yield w(yield*$(C(A)))})}var R=function(A){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var f=A[Symbol.asyncIterator],g;return f?f.call(A):(A=typeof __values=="function"?__values(A):A[Symbol.iterator](),g={},T("next"),T("throw"),T("return"),g[Symbol.asyncIterator]=function(){return this},g);function T(H){g[H]=A[H]&&function(K){return new Promise(function(oe,Ae){K=A[H](K),_(oe,Ae,K.done,K.value)})}}function _(H,K,oe,Ae){Promise.resolve(Ae).then(function(He){H({value:He,done:oe})},K)}},B=function(A){return this instanceof B?(this.v=A,this):new B(A)},U=function(A){var f,g;return f={},T("next"),T("throw",function(_){throw _}),T("return"),f[Symbol.iterator]=function(){return this},f;function T(_,H){f[_]=A[_]?function(K){return(g=!g)?{value:B(A[_](K)),done:!1}:H?H(K):K}:H}},V=function(A,f,g){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var T=g.apply(A,f||[]),_,H=[];return _={},K("next"),K("throw"),K("return"),_[Symbol.asyncIterator]=function(){return this},_;function K(ft){T[ft]&&(_[ft]=function(sn){return new Promise(function(In,Nn){H.push([ft,sn,In,Nn])>1||oe(ft,sn)})})}function oe(ft,sn){try{Ae(T[ft](sn))}catch(In){Ft(H[0][3],In)}}function Ae(ft){ft.value instanceof B?Promise.resolve(ft.value.v).then(He,yt):Ft(H[0][2],ft)}function He(ft){oe("next",ft)}function yt(ft){oe("throw",ft)}function Ft(ft,sn){ft(sn),H.shift(),H.length&&oe(H[0][0],H[0][1])}};function z(A,f){return b(A,g=>{switch(g.kind){case m.t.Unary:return W(f,A,g);case m.t.ServerStreaming:return X(f,A,g);case m.t.ClientStreaming:return q(f,A,g);case m.t.BiDiStreaming:return Y(f,A,g);default:return null}})}function W(A,f,g){return async function(T,_){var H,K;const oe=await A.unary(f,g,_==null?void 0:_.signal,_==null?void 0:_.timeoutMs,_==null?void 0:_.headers,T,_==null?void 0:_.contextValues);return(H=_==null?void 0:_.onHeader)===null||H===void 0||H.call(_,oe.header),(K=_==null?void 0:_.onTrailer)===null||K===void 0||K.call(_,oe.trailer),oe.message}}function X(A,f,g){return function(T,_){return Z(A.stream(f,g,_==null?void 0:_.signal,_==null?void 0:_.timeoutMs,_==null?void 0:_.headers,N([T]),_==null?void 0:_.contextValues),_)}}function q(A,f,g){return async function(T,_){var H,K,oe,Ae,He,yt;const Ft=await A.stream(f,g,_==null?void 0:_.signal,_==null?void 0:_.timeoutMs,_==null?void 0:_.headers,T,_==null?void 0:_.contextValues);(He=_==null?void 0:_.onHeader)===null||He===void 0||He.call(_,Ft.header);let ft;try{for(var sn=!0,In=R(Ft.message),Nn;Nn=await In.next(),H=Nn.done,!H;sn=!0)Ae=Nn.value,sn=!1,ft=Ae}catch(ar){K={error:ar}}finally{try{!sn&&!H&&(oe=In.return)&&await oe.call(In)}finally{if(K)throw K.error}}if(!ft)throw new S("protocol error: missing response message",O.Internal);return(yt=_==null?void 0:_.onTrailer)===null||yt===void 0||yt.call(_,Ft.trailer),ft}}function Y(A,f,g){return function(T,_){return Z(A.stream(f,g,_==null?void 0:_.signal,_==null?void 0:_.timeoutMs,_==null?void 0:_.headers,T,_==null?void 0:_.contextValues),_)}}function Z(A,f){const g=function(){var T,_;return V(this,arguments,function*(){const H=yield B(A);(T=f==null?void 0:f.onHeader)===null||T===void 0||T.call(f,H.header),yield B(yield*U(R(H.message))),(_=f==null?void 0:f.onTrailer)===null||_===void 0||_.call(f,H.trailer)})}()[Symbol.asyncIterator]();return{[Symbol.asyncIterator]:()=>({next:()=>g.next()})}}function j(){return{get(A){return A.id in this?this[A.id]:A.defaultValue},set(A,f){return this[A.id]=f,this},delete(A){return delete this[A.id],this}}}function se(A){var f;const g=Object.assign({},A);return(f=g.ignoreUnknownFields)!==null&&f!==void 0||(g.ignoreUnknownFields=!0),g}function ve(A,f,g,T){const _=f?G(A.I,T):ce(A.I,g);return{parse:(f?G(A.O,T):ce(A.O,g)).parse,serialize:_.serialize}}function G(A,f){return{parse(g){try{return A.fromBinary(g,f)}catch(T){const _=T instanceof Error?T.message:String(T);throw new S(`parse binary: ${_}`,O.InvalidArgument)}},serialize(g){try{return g.toBinary(f)}catch(T){const _=T instanceof Error?T.message:String(T);throw new S(`serialize binary: ${_}`,O.Internal)}}}}function ce(A,f){var g,T;const _=(g=f==null?void 0:f.textEncoder)!==null&&g!==void 0?g:new TextEncoder,H=(T=f==null?void 0:f.textDecoder)!==null&&T!==void 0?T:new TextDecoder,K=se(f);return{parse(oe){try{const Ae=H.decode(oe);return A.fromJsonString(Ae,K)}catch(Ae){throw S.from(Ae,O.InvalidArgument)}},serialize(oe){try{const Ae=oe.toJsonString(K);return _.encode(Ae)}catch(Ae){throw S.from(Ae,O.Internal)}}}}function ge(...A){const f=new AbortController,g=A.filter(_=>_!==void 0).concat(f.signal);for(const _ of g){if(_.aborted){T.apply(_);break}_.addEventListener("abort",T)}function T(){f.signal.aborted||f.abort(xe(this));for(const _ of g)_.removeEventListener("abort",T)}return f}function ue(A){const f=new AbortController,g=()=>{f.abort(new S("the operation timed out",O.DeadlineExceeded))};let T;return A!==void 0&&(A<=0?g():T=setTimeout(g,A)),{signal:f.signal,cleanup:()=>clearTimeout(T)}}function xe(A){if(!A.aborted)return;if(A.reason!==void 0)return A.reason;const f=new Error("This operation was aborted");return f.name="AbortError",f}function Ne(A,f){return f instanceof y.v?f:new A(f)}function Ve(A,f){function g(T){return T.done===!0?T:{done:T.done,value:Ne(A,T.value)}}return{[Symbol.asyncIterator](){const T=f[Symbol.asyncIterator](),_={next:()=>T.next().then(g)};return T.throw!==void 0&&(_.throw=H=>T.throw(H).then(g)),T.return!==void 0&&(_.return=H=>T.return(H).then(g)),_}}}function Ke(A){const f=ye(A.next,A.interceptors),[g,T,_]=Ye(A),H=Object.assign(Object.assign({},A.req),{message:Ne(A.req.method.I,A.req.message),signal:g});return f(H).then(K=>(_(),K),T)}function Me(A){const f=ye(A.next,A.interceptors),[g,T,_]=Ye(A),H=Object.assign(Object.assign({},A.req),{message:Ve(A.req.method.I,A.req.message),signal:g});let K=!1;return g.addEventListener("abort",function(){var oe,Ae;const He=A.req.message[Symbol.asyncIterator]();K||(oe=He.throw)===null||oe===void 0||oe.call(He,this.reason).catch(()=>{}),(Ae=He.return)===null||Ae===void 0||Ae.call(He).catch(()=>{})}),f(H).then(oe=>Object.assign(Object.assign({},oe),{message:{[Symbol.asyncIterator](){const Ae=oe.message[Symbol.asyncIterator]();return{next(){return Ae.next().then(He=>(He.done==!0&&(K=!0,_()),He),T)}}}}}),T)}function Ye(A){const{signal:f,cleanup:g}=ue(A.timeoutMs),T=ge(A.signal,f);return[T.signal,function(H){const K=S.from(f.aborted?xe(f):H);return T.abort(K),g(),Promise.reject(K)},function(){g(),T.abort()}]}function ye(A,f){var g;return(g=f==null?void 0:f.concat().reverse().reduce((T,_)=>_(T),A))!==null&&g!==void 0?g:A}function ze(A,f,g){const T=typeof f=="string"?f:f.typeName,_=typeof g=="string"?g:g.name;return A.toString().replace(/\/?$/,`/${T}/${_}`)}function $e(A){let f,g=new Uint8Array(0);function T(_){const H=new Uint8Array(g.length+_.length);H.set(g),H.set(_,g.length),g=H}return new ReadableStream({start(){f=A.getReader()},async pull(_){let H;for(;;){if(H===void 0&&g.byteLength>=5){let Ae=0;for(let He=1;He<5;He++)Ae=(Ae<<8)+g[He];H={flags:g[0],length:Ae}}if(H!==void 0&&g.byteLength>=H.length+5)break;const oe=await f.read();if(oe.done)break;T(oe.value)}if(H===void 0){if(g.byteLength==0){_.close();return}_.error(new S("premature end of stream",O.DataLoss));return}const K=g.subarray(5,5+H.length);g=g.subarray(5+H.length),_.enqueue({flags:H.flags,data:K})}})}function We(A,f){const g=new Uint8Array(f.length+5);g.set(f,5);const T=new DataView(g.buffer,g.byteOffset,g.byteLength);return T.setUint8(0,A),T.setUint32(1,f.length),g}const dt="Content-Type",Be="Grpc-Timeout",re="Grpc-Status",ee="Grpc-Message",J="Grpc-Status-Details-Bin",Re="User-Agent",Le="X-User-Agent",De="X-Grpc-Web",ie="application/grpc-web+proto",fe="application/grpc-web+json";function de(A,f,g,T){const _=new Headers(g??{});return _.set(dt,A?ie:fe),_.set(De,"1"),_.set(Le,"connect-es/1.2.0"),T&&_.set(Re,"connect-es/1.2.0"),f!==void 0&&_.set(Be,`${f}m`),_}function Oe(A){switch(A){case 400:return O.Internal;case 401:return O.Unauthenticated;case 403:return O.PermissionDenied;case 404:return O.Unimplemented;case 429:return O.Unavailable;case 502:return O.Unavailable;case 503:return O.Unavailable;case 504:return O.Unavailable;default:return O.Unknown}}var Te=o(850),rt=o(733);class pt extends y.v{constructor(f){super(),this.code=0,this.message="",this.details=[],Te.w.util.initPartial(f,this)}static fromBinary(f,g){return new pt().fromBinary(f,g)}static fromJson(f,g){return new pt().fromJson(f,g)}static fromJsonString(f,g){return new pt().fromJsonString(f,g)}static equals(f,g){return Te.w.util.equals(pt,f,g)}}pt.runtime=Te.w,pt.typeName="google.rpc.Status",pt.fields=Te.w.util.newFieldList(()=>[{no:1,name:"code",kind:"scalar",T:5},{no:2,name:"message",kind:"scalar",T:9},{no:3,name:"details",kind:"message",T:rt.I,repeated:!0}]);var xt=o(236);function et(A,f,g){try{const T=xt.W.dec(A);return f?f.fromBinary(T,g):T}catch(T){throw S.from(T,O.DataLoss)}}const vt="0";function qe(A){var f;const g=A.get(J);if(g!=null){const _=et(g,pt);if(_.code==0)return;const H=new S(_.message,_.code,A);return H.details=_.details.map(K=>({type:K.typeUrl.substring(K.typeUrl.lastIndexOf("/")+1),value:K.value})),H}const T=A.get(re);if(T!=null){if(T===vt)return;const _=parseInt(T,10);return _ in O?new S(decodeURIComponent((f=A.get(ee))!==null&&f!==void 0?f:""),_,A):new S(`invalid grpc-status: ${T}`,O.Internal,A)}}function it(A,f){var g;if(A>=200&&A<300){const T=qe(f);if(T)throw T;return{foundStatus:f.has(re)}}throw new S(decodeURIComponent((g=f.get(ee))!==null&&g!==void 0?g:`HTTP ${A}`),Oe(A),f)}const Et=128;function Nt(A){const f=new Headers,g=new TextDecoder().decode(A).split(`\r +`);for(const T of g){if(T==="")continue;const _=T.indexOf(":");if(_>0){const H=T.substring(0,_).trim(),K=T.substring(_+1).trim();f.append(H,K)}}return f}function on(A,f){const g=qe(A);if(g)throw f.forEach((T,_)=>{g.metadata.append(_,T)}),g}function dn(){try{new Headers}catch{throw new Error("connect-web requires the fetch API. Are you running on an old version of Node.js? Node.js is not supported in Connect for Web - please stay tuned for Connect for Node.")}}var pn=function(A){return this instanceof pn?(this.v=A,this):new pn(A)},zn=function(A,f,g){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var T=g.apply(A,f||[]),_,H=[];return _={},K("next"),K("throw"),K("return"),_[Symbol.asyncIterator]=function(){return this},_;function K(ft){T[ft]&&(_[ft]=function(sn){return new Promise(function(In,Nn){H.push([ft,sn,In,Nn])>1||oe(ft,sn)})})}function oe(ft,sn){try{Ae(T[ft](sn))}catch(In){Ft(H[0][3],In)}}function Ae(ft){ft.value instanceof pn?Promise.resolve(ft.value.v).then(He,yt):Ft(H[0][2],ft)}function He(ft){oe("next",ft)}function yt(ft){oe("throw",ft)}function Ft(ft,sn){ft(sn),H.shift(),H.length&&oe(H[0][0],H[0][1])}};function Ee(A){var f;dn();const g=(f=A.useBinaryFormat)!==null&&f!==void 0?f:!0;return{async unary(T,_,H,K,oe,Ae,He){var yt;const{serialize:Ft,parse:ft}=ve(_,g,A.jsonOptions,A.binaryOptions);return K=K===void 0?A.defaultTimeoutMs:K<=0?void 0:K,await Ke({interceptors:A.interceptors,signal:H,timeoutMs:K,req:{stream:!1,service:T,method:_,url:ze(A.baseUrl,T,_),init:{method:"POST",credentials:(yt=A.credentials)!==null&&yt!==void 0?yt:"same-origin",redirect:"error",mode:"cors"},header:de(g,K,oe,!1),contextValues:He??j(),message:Ae},next:async sn=>{var In;const ar=await((In=A.fetch)!==null&&In!==void 0?In:globalThis.fetch)(sn.url,Object.assign(Object.assign({},sn.init),{headers:sn.header,signal:sn.signal,body:We(0,Ft(sn.message))}));if(it(ar.status,ar.headers),!ar.body)throw"missing response body";const oo=$e(ar.body).getReader();let $n,ti;for(;;){const Gr=await oo.read();if(Gr.done)break;const{flags:Oi,data:gf}=Gr.value;if(Oi===Et){if($n!==void 0)throw"extra trailer";$n=Nt(gf);continue}if(ti!==void 0)throw"extra message";ti=ft(gf)}if($n===void 0)throw"missing trailer";if(on($n,ar.headers),ti===void 0)throw"missing message";return{stream:!1,header:ar.headers,message:ti,trailer:$n}}})},async stream(T,_,H,K,oe,Ae,He){var yt;const{serialize:Ft,parse:ft}=ve(_,g,A.jsonOptions,A.binaryOptions);function sn(Nn,ar,oo,$n){return zn(this,arguments,function*(){const Gr=$e(Nn).getReader();if(ar){if(!(yield pn(Gr.read())).done)throw"extra data for trailers-only";return yield pn(void 0)}let Oi=!1;for(;;){const gf=yield pn(Gr.read());if(gf.done)break;const{flags:th,data:r0}=gf.value;if((th&Et)===Et){if(Oi)throw"extra trailer";Oi=!0;const t6=Nt(r0);on(t6,$n),t6.forEach((woe,koe)=>oo.set(koe,woe));continue}if(Oi)throw"extra message";yield yield pn(ft(r0))}if(!Oi)throw"missing trailer"})}async function In(Nn){if(_.kind!=m.t.ServerStreaming)throw"The fetch API does not support streaming request bodies";const ar=await Nn[Symbol.asyncIterator]().next();if(ar.done==!0)throw"missing request message";return We(0,Ft(ar.value))}return K=K===void 0?A.defaultTimeoutMs:K<=0?void 0:K,Me({interceptors:A.interceptors,signal:H,timeoutMs:K,req:{stream:!0,service:T,method:_,url:ze(A.baseUrl,T,_),init:{method:"POST",credentials:(yt=A.credentials)!==null&&yt!==void 0?yt:"same-origin",redirect:"error",mode:"cors"},header:de(g,K,oe,!1),contextValues:He??j(),message:Ae},next:async Nn=>{var ar;const $n=await((ar=A.fetch)!==null&&ar!==void 0?ar:globalThis.fetch)(Nn.url,Object.assign(Object.assign({},Nn.init),{headers:Nn.header,signal:Nn.signal,body:await In(Nn.message)})),{foundStatus:ti}=it($n.status,$n.headers);if(!$n.body)throw"missing response body";const Gr=new Headers;return Object.assign(Object.assign({},Nn),{header:$n.headers,trailer:Gr,message:sn($n.body,ti,Gr,$n.headers)})}})}}}var _e=o(295),pe=o(646);/** * @license * Copyright 2009 The Closure Library Authors * Copyright 2020 Daniel Wirtz / The long.js Authors. @@ -261,58 +261,62 @@ Error generating stack: `+o.message+` * limitations under the License. * * SPDX-License-Identifier: Apache-2.0 - */var lt=null;try{lt=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}function at(A,f,g){this.low=A|0,this.high=f|0,this.unsigned=!!g}at.prototype.__isLong__,Object.defineProperty(at.prototype,"__isLong__",{value:!0});function Mt(A){return(A&&A.__isLong__)===!0}function $t(A){var f=Math.clz32(A&-A);return A?31-f:f}at.isLong=Mt;var It={},xt={};function qt(A,f){var g,T,_;return f?(A>>>=0,(_=0<=A&&A<256)&&(T=xt[A],T)?T:(g=Te(A,0,!0),_&&(xt[A]=g),g)):(A|=0,(_=-128<=A&&A<128)&&(T=It[A],T)?T:(g=Te(A,A<0?-1:0,!1),_&&(It[A]=g),g))}at.fromInt=qt;function Re(A,f){if(isNaN(A))return f?en:Nt;if(f){if(A<0)return en;if(A>=Ue)return Wn}else{if(A<=-xe)return Qn;if(A+1>=xe)return gn}return A<0?Re(-A,f).neg():Te(A%tr|0,A/tr|0,f)}at.fromNumber=Re;function Te(A,f,g){return new at(A,f,g)}at.fromBits=Te;var We=Math.pow;function ot(A,f,g){if(A.length===0)throw Error("empty string");if(typeof f=="number"?(g=f,f=!1):f=!!f,A==="NaN"||A==="Infinity"||A==="+Infinity"||A==="-Infinity")return f?en:Nt;if(g=g||10,g<2||360)throw Error("interior hyphen");if(T===0)return ot(A.substring(1),f,g).neg();for(var _=Re(We(g,8)),H=Nt,K=0;K>>0:this.low},ht.toNumber=function(){return this.unsigned?(this.high>>>0)*tr+(this.low>>>0):this.high*tr+(this.low>>>0)},ht.toString=function(f){if(f=f||10,f<2||36>>0,yt=Ve.toString(f);if(K=Ce,K.isZero())return yt+oe;for(;yt.length<6;)yt="0"+yt;oe=""+yt+oe}},ht.getHighBits=function(){return this.high},ht.getHighBitsUnsigned=function(){return this.high>>>0},ht.getLowBits=function(){return this.low},ht.getLowBitsUnsigned=function(){return this.low>>>0},ht.getNumBitsAbs=function(){if(this.isNegative())return this.eq(Qn)?64:this.neg().getNumBitsAbs();for(var f=this.high!=0?this.high:this.low,g=31;g>0&&!(f&1<=0},ht.isOdd=function(){return(this.low&1)===1},ht.isEven=function(){return(this.low&1)===0},ht.equals=function(f){return Mt(f)||(f=nn(f)),this.unsigned!==f.unsigned&&this.high>>>31===1&&f.high>>>31===1?!1:this.high===f.high&&this.low===f.low},ht.eq=ht.equals,ht.notEquals=function(f){return!this.eq(f)},ht.neq=ht.notEquals,ht.ne=ht.notEquals,ht.lessThan=function(f){return this.comp(f)<0},ht.lt=ht.lessThan,ht.lessThanOrEqual=function(f){return this.comp(f)<=0},ht.lte=ht.lessThanOrEqual,ht.le=ht.lessThanOrEqual,ht.greaterThan=function(f){return this.comp(f)>0},ht.gt=ht.greaterThan,ht.greaterThanOrEqual=function(f){return this.comp(f)>=0},ht.gte=ht.greaterThanOrEqual,ht.ge=ht.greaterThanOrEqual,ht.compare=function(f){if(Mt(f)||(f=nn(f)),this.eq(f))return 0;var g=this.isNegative(),T=f.isNegative();return g&&!T?-1:!g&&T?1:this.unsigned?f.high>>>0>this.high>>>0||f.high===this.high&&f.low>>>0>this.low>>>0?-1:1:this.sub(f).isNegative()?-1:1},ht.comp=ht.compare,ht.negate=function(){return!this.unsigned&&this.eq(Qn)?Qn:this.not().add(Mn)},ht.neg=ht.negate,ht.add=function(f){Mt(f)||(f=nn(f));var g=this.high>>>16,T=this.high&65535,_=this.low>>>16,H=this.low&65535,K=f.high>>>16,oe=f.high&65535,Ce=f.low>>>16,Ve=f.low&65535,yt=0,Ft=0,ft=0,an=0;return an+=H+Ve,ft+=an>>>16,an&=65535,ft+=_+Ce,Ft+=ft>>>16,ft&=65535,Ft+=T+oe,yt+=Ft>>>16,Ft&=65535,yt+=g+K,yt&=65535,Te(ft<<16|an,yt<<16|Ft,this.unsigned)},ht.subtract=function(f){return Mt(f)||(f=nn(f)),this.add(f.neg())},ht.sub=ht.subtract,ht.multiply=function(f){if(this.isZero())return this;if(Mt(f)||(f=nn(f)),lt){var g=lt.mul(this.low,this.high,f.low,f.high);return Te(g,lt.get_high(),this.unsigned)}if(f.isZero())return this.unsigned?en:Nt;if(this.eq(Qn))return f.isOdd()?Qn:Nt;if(f.eq(Qn))return this.isOdd()?Qn:Nt;if(this.isNegative())return f.isNegative()?this.neg().mul(f.neg()):this.neg().mul(f).neg();if(f.isNegative())return this.mul(f.neg()).neg();if(this.lt(mt)&&f.lt(mt))return Re(this.toNumber()*f.toNumber(),this.unsigned);var T=this.high>>>16,_=this.high&65535,H=this.low>>>16,K=this.low&65535,oe=f.high>>>16,Ce=f.high&65535,Ve=f.low>>>16,yt=f.low&65535,Ft=0,ft=0,an=0,In=0;return In+=K*yt,an+=In>>>16,In&=65535,an+=H*yt,ft+=an>>>16,an&=65535,an+=K*Ve,ft+=an>>>16,an&=65535,ft+=_*yt,Ft+=ft>>>16,ft&=65535,ft+=H*Ve,Ft+=ft>>>16,ft&=65535,ft+=K*Ce,Ft+=ft>>>16,ft&=65535,Ft+=T*yt+_*Ve+H*Ce+K*oe,Ft&=65535,Te(an<<16|In,Ft<<16|ft,this.unsigned)},ht.mul=ht.multiply,ht.divide=function(f){if(Mt(f)||(f=nn(f)),f.isZero())throw Error("division by zero");if(lt){if(!this.unsigned&&this.high===-2147483648&&f.low===-1&&f.high===-1)return this;var g=(this.unsigned?lt.div_u:lt.div_s)(this.low,this.high,f.low,f.high);return Te(g,lt.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?en:Nt;var T,_,H;if(this.unsigned){if(f.unsigned||(f=f.toUnsigned()),f.gt(this))return en;if(f.gt(this.shru(1)))return Nn;H=en}else{if(this.eq(Qn)){if(f.eq(Mn)||f.eq(Xt))return Qn;if(f.eq(Qn))return Mn;var K=this.shr(1);return T=K.div(f).shl(1),T.eq(Nt)?f.isNegative()?Mn:Xt:(_=this.sub(f.mul(T)),H=T.add(_.div(f)),H)}else if(f.eq(Qn))return this.unsigned?en:Nt;if(this.isNegative())return f.isNegative()?this.neg().div(f.neg()):this.neg().div(f).neg();if(f.isNegative())return this.div(f.neg()).neg();H=Nt}for(_=this;_.gte(f);){T=Math.max(1,Math.floor(_.toNumber()/f.toNumber()));for(var oe=Math.ceil(Math.log(T)/Math.LN2),Ce=oe<=48?1:We(2,oe-48),Ve=Re(T),yt=Ve.mul(f);yt.isNegative()||yt.gt(_);)T-=Ce,Ve=Re(T,this.unsigned),yt=Ve.mul(f);Ve.isZero()&&(Ve=Mn),H=H.add(Ve),_=_.sub(yt)}return H},ht.div=ht.divide,ht.modulo=function(f){if(Mt(f)||(f=nn(f)),lt){var g=(this.unsigned?lt.rem_u:lt.rem_s)(this.low,this.high,f.low,f.high);return Te(g,lt.get_high(),this.unsigned)}return this.sub(this.div(f).mul(f))},ht.mod=ht.modulo,ht.rem=ht.modulo,ht.not=function(){return Te(~this.low,~this.high,this.unsigned)},ht.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},ht.clz=ht.countLeadingZeros,ht.countTrailingZeros=function(){return this.low?$t(this.low):$t(this.high)+32},ht.ctz=ht.countTrailingZeros,ht.and=function(f){return Mt(f)||(f=nn(f)),Te(this.low&f.low,this.high&f.high,this.unsigned)},ht.or=function(f){return Mt(f)||(f=nn(f)),Te(this.low|f.low,this.high|f.high,this.unsigned)},ht.xor=function(f){return Mt(f)||(f=nn(f)),Te(this.low^f.low,this.high^f.high,this.unsigned)},ht.shiftLeft=function(f){return Mt(f)&&(f=f.toInt()),(f&=63)===0?this:f<32?Te(this.low<>>32-f,this.unsigned):Te(0,this.low<>>f|this.high<<32-f,this.high>>f,this.unsigned):Te(this.high>>f-32,this.high>=0?0:-1,this.unsigned)},ht.shr=ht.shiftRight,ht.shiftRightUnsigned=function(f){return Mt(f)&&(f=f.toInt()),(f&=63)===0?this:f<32?Te(this.low>>>f|this.high<<32-f,this.high>>>f,this.unsigned):f===32?Te(this.high,0,this.unsigned):Te(this.high>>>f-32,0,this.unsigned)},ht.shru=ht.shiftRightUnsigned,ht.shr_u=ht.shiftRightUnsigned,ht.rotateLeft=function(f){var g;return Mt(f)&&(f=f.toInt()),(f&=63)===0?this:f===32?Te(this.high,this.low,this.unsigned):f<32?(g=32-f,Te(this.low<>>g,this.high<>>g,this.unsigned)):(f-=32,g=32-f,Te(this.high<>>g,this.low<>>g,this.unsigned))},ht.rotl=ht.rotateLeft,ht.rotateRight=function(f){var g;return Mt(f)&&(f=f.toInt()),(f&=63)===0?this:f===32?Te(this.high,this.low,this.unsigned):f<32?(g=32-f,Te(this.high<>>f,this.low<>>f,this.unsigned)):(f-=32,g=32-f,Te(this.low<>>f,this.high<>>f,this.unsigned))},ht.rotr=ht.rotateRight,ht.toSigned=function(){return this.unsigned?Te(this.low,this.high,!1):this},ht.toUnsigned=function(){return this.unsigned?this:Te(this.low,this.high,!0)},ht.toBytes=function(f){return f?this.toBytesLE():this.toBytesBE()},ht.toBytesLE=function(){var f=this.high,g=this.low;return[g&255,g>>>8&255,g>>>16&255,g>>>24,f&255,f>>>8&255,f>>>16&255,f>>>24]},ht.toBytesBE=function(){var f=this.high,g=this.low;return[f>>>24,f>>>16&255,f>>>8&255,f&255,g>>>24,g>>>16&255,g>>>8&255,g&255]},at.fromBytes=function(f,g,T){return T?at.fromBytesLE(f,g):at.fromBytesBE(f,g)},at.fromBytesLE=function(f,g){return new at(f[0]|f[1]<<8|f[2]<<16|f[3]<<24,f[4]|f[5]<<8|f[6]<<16|f[7]<<24,g)},at.fromBytesBE=function(f,g){return new at(f[4]<<24|f[5]<<16|f[6]<<8|f[7],f[0]<<24|f[1]<<16|f[2]<<8|f[3],g)};const Wr=at;var En;(function(A){A.Ok="ok",A.ClientNotActive="client-not-active",A.Unimplemented="unimplemented",A.Unsupported="unsupported",A.DocumentNotAttached="document-not-attached",A.DocumentNotDetached="document-not-detached",A.DocumentRemoved="document-removed",A.InvalidObjectKey="invalid-object-key",A.InvalidArgument="invalid-argument"})(En||(En={}));class An extends Error{constructor(f,g){super(g),this.code=f,this.message=g,this.name="YorkieError",this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}function oa(A){if(A instanceof Map){const f=Array.from(A);return new Map(JSON.parse(JSON.stringify(f)))}return JSON.parse(JSON.stringify(A))}const Dp=A=>A?Object.entries(A).length===0:!0,eo=A=>{const f={};for(const[g,T]of Object.entries(A))f[g]=JSON.stringify(T);return f},li=A=>{const f={};for(const[g,T]of Object.entries(A))f[g]=JSON.parse(T);return f};var Pa;(function(A){A.Put="put",A.Clear="clear"})(Pa||(Pa={}));class Pp{constructor(f,g){this.context=f,this.presence=g}set(f,g){for(const T of Object.keys(f))this.presence[T]=f[T];this.context.setPresenceChange({type:Pa.Put,presence:oa(this.presence)}),this.context.setReversePresence(f,g)}get(f){return this.presence[f]}clear(){this.presence={},this.context.setPresenceChange({type:Pa.Clear})}}const kO="000000000000000000000000",aa="FFFFFFFFFFFFFFFFFFFFFFFF";class yr{constructor(f,g,T){this.lamport=f,this.delimiter=g,this.actorID=T}static of(f,g,T){return new yr(f,g,T)}static fromStruct(f){return yr.of(Wr.fromString(f.lamport,!0),f.delimiter,f.actorID)}toIDString(){return this.actorID?`${this.lamport.toString()}:${this.actorID}:${this.delimiter}`:`${this.lamport.toString()}:nil:${this.delimiter}`}toStruct(){return{lamport:this.getLamportAsString(),delimiter:this.getDelimiter(),actorID:this.getActorID()}}toTestString(){return this.actorID?`${this.lamport.toString()}:${this.actorID.slice(-2)}:${this.delimiter}`:`${this.lamport.toString()}:nil:${this.delimiter}`}setActor(f){return new yr(this.lamport,this.delimiter,f)}getLamportAsString(){return this.lamport.toString()}getLamport(){return this.lamport}getDelimiter(){return this.delimiter}getActorID(){return this.actorID}after(f){return this.compare(f)>0}equals(f){return this.compare(f)===0}compare(f){if(this.lamport.greaterThan(f.lamport))return 1;if(f.lamport.greaterThan(this.lamport))return-1;const g=this.actorID.localeCompare(f.actorID);return g!==0?g:this.delimiter>f.delimiter?1:f.delimiter>this.delimiter?-1:0}}const Lp=0,Es=4294967295,Ss=Wr.MAX_VALUE,to=new yr(Wr.fromNumber(0),Lp,kO),Eo=new yr(Ss,Es,aa);function Mr(A){return A.replace(/["'\\\n\r\f\b\t\u2028\u2029]/g,function(f){switch(f){case'"':case"\\":return"\\"+f;case` -`:return"\\n";case"\r":return"\\r";case"\f":return"\\f";case"\b":return"\\b";case" ":return"\\t";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return f}})}class no{constructor(f){this.createdAt=f}getCreatedAt(){return this.createdAt}getID(){return this.createdAt}getMovedAt(){return this.movedAt}getRemovedAt(){return this.removedAt}getPositionedAt(){return this.movedAt?this.movedAt:this.createdAt}setMovedAt(f){return!this.movedAt||f&&f.after(this.movedAt)?(this.movedAt=f,!0):!1}setRemovedAt(f){this.removedAt=f}remove(f){return f&&f.after(this.getPositionedAt())&&(!this.removedAt||f.after(this.removedAt))?(this.removedAt=f,!0):!1}isRemoved(){return!!this.removedAt}}class zl extends no{constructor(f){super(f)}}class zo extends no{}class So{constructor(f,g){this.strKey=f,this.value=g}static of(f,g){return new So(f,g)}isRemoved(){return this.value.isRemoved()}getStrKey(){return this.strKey}getValue(){return this.value}remove(f){return this.value.remove(f)}}class Bi{constructor(){this.nodeMapByKey=new Map,this.nodeMapByCreatedAt=new Map}static create(){return new Bi}set(f,g,T){let _;const H=this.nodeMapByKey.get(f);H!=null&&!H.isRemoved()&&H.remove(T)&&(_=H.getValue());const K=So.of(f,g);return this.nodeMapByCreatedAt.set(g.getCreatedAt().toIDString(),K),(H==null||T.after(H.getValue().getPositionedAt()))&&(this.nodeMapByKey.set(f,K),g.setMovedAt(T)),_}delete(f,g){this.nodeMapByCreatedAt.has(f.toIDString())||u.fatal(`fail to find ${f.toIDString()}`);const T=this.nodeMapByCreatedAt.get(f.toIDString());return T.remove(g),T.getValue()}subPathOf(f){const g=this.nodeMapByCreatedAt.get(f.toIDString());if(g)return g.getStrKey()}purge(f){const g=this.nodeMapByCreatedAt.get(f.getCreatedAt().toIDString());if(!g){u.fatal(`fail to find ${f.getCreatedAt().toIDString()}`);return}const T=this.nodeMapByKey.get(g.getStrKey());g===T&&this.nodeMapByKey.delete(T.getStrKey()),this.nodeMapByCreatedAt.delete(g.getValue().getCreatedAt().toIDString())}deleteByKey(f,g){const T=this.nodeMapByKey.get(f);if(T!=null&&T.remove(g))return T.getValue()}has(f){const g=this.nodeMapByKey.get(f);return g==null?!1:!g.isRemoved()}getByID(f){return this.nodeMapByCreatedAt.get(f.toIDString())}get(f){const g=this.nodeMapByKey.get(f);if(!(!g||g.isRemoved()))return g}*[Symbol.iterator](){for(const[,f]of this.nodeMapByKey)yield f}}class mr extends zl{constructor(f,g){super(f),this.memberNodes=g}static create(f,g){if(!g)return new mr(f,Bi.create());const T=Bi.create();for(const[_,H]of Object.entries(g))T.set(_,H.deepcopy(),H.getCreatedAt());return new mr(f,T)}subPathOf(f){return this.memberNodes.subPathOf(f)}purge(f){this.memberNodes.purge(f)}set(f,g,T){return this.memberNodes.set(f,g,T)}delete(f,g){return this.memberNodes.delete(f,g)}deleteByKey(f,g){return this.memberNodes.deleteByKey(f,g)}get(f){const g=this.memberNodes.get(f);return g==null?void 0:g.getValue()}getByID(f){const g=this.memberNodes.getByID(f);return g==null?void 0:g.getValue()}has(f){return this.memberNodes.has(f)}toJSON(){const f=[];for(const[g,T]of this)f.push(`"${Mr(g)}":${T.toJSON()}`);return`{${f.join(",")}}`}toJS(){return JSON.parse(this.toJSON())}toJSForTest(){const f={};for(const[g,T]of this){const{createdAt:_,value:H,type:K}=T.toJSForTest();f[g]={key:g,createdAt:_,value:H,type:K}}return{createdAt:this.getCreatedAt().toTestString(),value:f,type:"YORKIE_OBJECT"}}getKeys(){const f=Array();for(const[g]of this)f.push(g);return f}toSortedJSON(){var f;const g=Array();for(const[_]of this)g.push(_);const T=[];for(const _ of g.sort()){const H=(f=this.memberNodes.get(_))===null||f===void 0?void 0:f.getValue();T.push(`"${Mr(_)}":${H.toSortedJSON()}`)}return`{${T.join(",")}}`}getRHT(){return this.memberNodes}deepcopy(){const f=mr.create(this.getCreatedAt());for(const g of this.memberNodes)f.memberNodes.set(g.getStrKey(),g.getValue().deepcopy(),this.getPositionedAt());return f.remove(this.getRemovedAt()),f}getDescendants(f){for(const g of this.memberNodes){const T=g.getValue();if(f(T,this))return;T instanceof zl&&T.getDescendants(f)}}*[Symbol.iterator](){const f=new Set;for(const g of this.memberNodes)f.has(g.getStrKey())||(f.add(g.getStrKey()),g.isRemoved()||(yield[g.getStrKey(),g.getValue()]))}}var xr;(function(A){A.Local="local",A.Remote="remote",A.UndoRedo="undoredo"})(xr||(xr={}));class $r{constructor(f,g){this.parentCreatedAt=f,this.executedAt=g}getParentCreatedAt(){return this.parentCreatedAt}getExecutedAt(){if(!this.executedAt)throw new Error("executedAt has not been set yet");return this.executedAt}setActor(f){this.executedAt&&(this.executedAt=this.executedAt.setActor(f))}setExecutedAt(f){this.executedAt=f}}class Vo{constructor(f){this.value=f,this.initWeight()}getNodeString(){return`${this.weight}${this.value}`}getValue(){return this.value}getLeftWeight(){return this.hasLeft()?this.left.getWeight():0}getRightWeight(){return this.hasRight()?this.right.getWeight():0}getWeight(){return this.weight}getLeft(){return this.left}getRight(){return this.right}getParent(){return this.parent}hasLeft(){return!!this.left}hasRight(){return!!this.right}hasParent(){return!!this.parent}setLeft(f){this.left=f}setRight(f){this.right=f}setParent(f){this.parent=f}unlink(){this.parent=void 0,this.right=void 0,this.left=void 0}hasLinks(){return this.hasParent()||this.hasLeft()||this.hasRight()}increaseWeight(f){this.weight+=f}initWeight(){this.weight=this.getLength()}}class Ui{constructor(f){this.root=f}get length(){return this.root?this.root.getWeight():0}find(f){if(!this.root||f<0)return[void 0,0];let g=this.root;for(;;)if(g.hasLeft()&&f<=g.getLeftWeight())g=g.getLeft();else if(g.hasRight()&&g.getLeftWeight()+g.getLength()g.getLength()&&u.fatal(`out of index range: pos: ${f} > node.length: ${g.getLength()}`),[g,f]}indexOf(f){if(!f||f!==this.root&&!f.hasLinks())return-1;let g=0,T=f,_;for(;T;)(!_||_===T.getRight())&&(g+=T.getLength()+(T.hasLeft()?T.getLeftWeight():0)),_=T,T=T.getParent();return g-f.getLength()}getRoot(){return this.root}insert(f){return this.insertAfter(this.root,f)}insertAfter(f,g){return f?(this.splayNode(f),this.root=g,g.setRight(f.getRight()),f.hasRight()&&f.getRight().setParent(g),g.setLeft(f),f.setParent(g),f.setRight(),this.updateWeight(f),this.updateWeight(g),g):(this.root=g,g)}updateWeight(f){f.initWeight(),f.hasLeft()&&f.increaseWeight(f.getLeftWeight()),f.hasRight()&&f.increaseWeight(f.getRightWeight())}updateTreeWeight(f){for(;f;)this.updateWeight(f),f=f.getParent()}splayNode(f){if(f)for(;;)if(this.isLeftChild(f.getParent())&&this.isRightChild(f))this.rotateLeft(f),this.rotateRight(f);else if(this.isRightChild(f.getParent())&&this.isLeftChild(f))this.rotateRight(f),this.rotateLeft(f);else if(this.isLeftChild(f.getParent())&&this.isLeftChild(f))this.rotateRight(f.getParent()),this.rotateRight(f);else if(this.isRightChild(f.getParent())&&this.isRightChild(f))this.rotateLeft(f.getParent()),this.rotateLeft(f);else{this.isLeftChild(f)?this.rotateRight(f):this.isRightChild(f)&&this.rotateLeft(f),this.updateWeight(f);return}}delete(f){this.splayNode(f);const g=new Ui(f.getLeft());g.root&&g.root.setParent();const T=new Ui(f.getRight());if(T.root&&T.root.setParent(),g.root){const _=g.getRightmost();g.splayNode(_),g.root.setRight(T.root),T.root&&T.root.setParent(g.root),this.root=g.root}else this.root=T.root;f.unlink(),this.root&&this.updateWeight(this.root)}deleteRange(f,g){if(!g){this.splayNode(f),this.cutOffRight(f);return}this.splayNode(f),this.splayNode(g),g.getLeft()!=f&&this.rotateRight(f),this.cutOffRight(f)}cutOffRight(f){const g=[];this.traversePostorder(f.getRight(),g);for(const T of g)T.initWeight();this.updateTreeWeight(f)}toTestString(){const f=[];return this.traverseInorder(this.root,f),f.map(g=>`[${g.getWeight()},${g.getLength()}]${g.getValue()||""}`).join("")}checkWeight(){const f=[];this.traverseInorder(this.root,f);for(const g of f)if(g.getWeight()!=g.getLength()+g.getLeftWeight()+g.getRightWeight())return!1;return!0}getRightmost(){let f=this.root;for(;f.hasRight();)f=f.getRight();return f}traverseInorder(f,g){f&&(this.traverseInorder(f.getLeft(),g),g.push(f),this.traverseInorder(f.getRight(),g))}traversePostorder(f,g){f&&(this.traversePostorder(f.getLeft(),g),this.traversePostorder(f.getRight(),g),g.push(f))}rotateLeft(f){const g=f.getParent();g.hasParent()?g===g.getParent().getLeft()?g.getParent().setLeft(f):g.getParent().setRight(f):this.root=f,f.setParent(g.getParent()),g.setRight(f.getLeft()),g.hasRight()&&g.getRight().setParent(g),f.setLeft(g),f.getLeft().setParent(f),this.updateWeight(g),this.updateWeight(f)}rotateRight(f){const g=f.getParent();g.hasParent()?g===g.getParent().getLeft()?g.getParent().setLeft(f):g.getParent().setRight(f):this.root=f,f.setParent(g.getParent()),g.setLeft(f.getRight()),g.hasLeft()&&g.getLeft().setParent(g),f.setRight(g),f.getRight().setParent(f),this.updateWeight(g),this.updateWeight(f)}isLeftChild(f){return f&&f.hasParent()?f.getParent().getLeft()===f:!1}isRightChild(f){return f&&f.hasParent()?f.getParent().getRight()===f:!1}}var Kt;(function(A){A[A.Null=0]="Null",A[A.Boolean=1]="Boolean",A[A.Integer=2]="Integer",A[A.Long=3]="Long",A[A.Double=4]="Double",A[A.String=5]="String",A[A.Bytes=6]="Bytes",A[A.Date=7]="Date"})(Kt||(Kt={}));class Cr extends no{constructor(f,g){super(g),this.valueType=Cr.getPrimitiveType(f),this.value=f===void 0?null:f}static of(f,g){return new Cr(f,g)}static valueFromBytes(f,g){switch(f){case Kt.Null:return null;case Kt.Boolean:return!!g[0];case Kt.Integer:return g[0]|g[1]<<8|g[2]<<16|g[3]<<24;case Kt.Double:{const T=new DataView(g.buffer);return g.forEach(function(_,H){T.setUint8(H,_)}),T.getFloat64(0,!0)}case Kt.String:return new TextDecoder("utf-8").decode(g);case Kt.Long:return Wr.fromBytesLE(Array.from(g));case Kt.Bytes:return g;case Kt.Date:return new Date(Wr.fromBytesLE(Array.from(g),!0).toNumber());default:throw new An(En.Unimplemented,`unimplemented type: ${f}`)}}toJSON(){return this.valueType===Kt.String?`"${Mr(this.value)}"`:`${this.value}`}toSortedJSON(){return this.toJSON()}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:this.value,type:"YORKIE_PRIMITIVE"}}deepcopy(){const f=Cr.of(this.value,this.getCreatedAt());return f.setMovedAt(this.getMovedAt()),f.setRemovedAt(this.getRemovedAt()),f}getType(){return this.valueType}static getPrimitiveType(f){switch(typeof f){case"undefined":return Kt.Null;case"boolean":return Kt.Boolean;case"number":return this.isInteger(f)?Kt.Integer:Kt.Double;case"string":return Kt.String;case"object":if(f===null)return Kt.Null;if(f instanceof Wr)return Kt.Long;if(f instanceof Uint8Array)return Kt.Bytes;if(f instanceof Date)return Kt.Date}}static isSupport(f){return Cr.getPrimitiveType(f)!==void 0}static isInteger(f){return f%1===0}isNumericType(){const f=this.valueType;return f===Kt.Integer||f===Kt.Long||f===Kt.Double}getValue(){return this.value}toBytes(){switch(this.valueType){case Kt.Null:return new Uint8Array;case Kt.Boolean:return this.value?new Uint8Array([1]):new Uint8Array([0]);case Kt.Integer:{const f=this.value;return new Uint8Array([f&255,f>>8&255,f>>16&255,f>>24&255])}case Kt.Double:{const f=this.value,g=new Uint8Array(8);return new DataView(g.buffer).setFloat64(0,f,!0),g}case Kt.String:return new TextEncoder().encode(this.value);case Kt.Long:{const g=this.value.toBytesLE();return Uint8Array.from(g)}case Kt.Bytes:return this.value;case Kt.Date:{const f=this.value,g=Wr.fromNumber(f.getTime(),!0).toBytesLE();return Uint8Array.from(g)}default:throw new An(En.Unimplemented,`unimplemented type: ${this.valueType}`)}}}class Mp extends Vo{constructor(f){super(f),this.value=f}static createAfter(f,g){const T=new Mp(g),_=f.next;return f.next=T,T.prev=f,T.next=_,_&&(_.prev=T),T}remove(f){return this.value.remove(f)}getCreatedAt(){return this.value.getCreatedAt()}getPositionedAt(){return this.value.getPositionedAt()}release(){this.prev&&(this.prev.next=this.next),this.next&&(this.next.prev=this.prev),this.prev=void 0,this.next=void 0}getLength(){return this.value.isRemoved()?0:1}getPrev(){return this.prev}getNext(){return this.next}getValue(){return this.value}isRemoved(){return this.value.isRemoved()}}class tf{constructor(){const f=Cr.of(0,to);f.setRemovedAt(to),this.dummyHead=new Mp(f),this.last=this.dummyHead,this.nodeMapByIndex=new Ui,this.nodeMapByCreatedAt=new Map,this.nodeMapByIndex.insert(this.dummyHead),this.nodeMapByCreatedAt.set(this.dummyHead.getCreatedAt().toIDString(),this.dummyHead)}static create(){return new tf}get length(){return this.nodeMapByIndex.length}findNextBeforeExecutedAt(f,g){let T=this.nodeMapByCreatedAt.get(f.toIDString());for(T||u.fatal(`cant find the given node: ${f.toIDString()}`);T.getNext()&&T.getNext().getPositionedAt().after(g);)T=T.getNext();return T}release(f){this.last===f&&(this.last=f.getPrev()),f.release(),this.nodeMapByIndex.delete(f),this.nodeMapByCreatedAt.delete(f.getValue().getCreatedAt().toIDString())}insertAfter(f,g,T=g.getCreatedAt()){const _=this.findNextBeforeExecutedAt(f,T),H=Mp.createAfter(_,g);_===this.last&&(this.last=H),this.nodeMapByIndex.insertAfter(_,H),this.nodeMapByCreatedAt.set(H.getCreatedAt().toIDString(),H)}moveAfter(f,g,T){const _=this.nodeMapByCreatedAt.get(f.toIDString());_||u.fatal(`cant find the given node: ${f.toIDString()}`);const H=this.nodeMapByCreatedAt.get(g.toIDString());H||u.fatal(`cant find the given node: ${g.toIDString()}`),_!==H&&(!H.getValue().getMovedAt()||T.after(H.getValue().getMovedAt()))&&(this.release(H),this.insertAfter(_.getCreatedAt(),H.getValue(),T),H.getValue().setMovedAt(T))}insert(f){this.insertAfter(this.last.getCreatedAt(),f)}getByID(f){return this.nodeMapByCreatedAt.get(f.toIDString())}subPathOf(f){const g=this.nodeMapByCreatedAt.get(f.toIDString());if(g)return String(this.nodeMapByIndex.indexOf(g))}purge(f){const g=this.nodeMapByCreatedAt.get(f.getCreatedAt().toIDString());g||u.fatal(`fail to find the given createdAt: ${f.getCreatedAt().toIDString()}`),this.release(g)}getByIndex(f){if(f>=this.length)return;const[g,T]=this.nodeMapByIndex.find(f);let _=g;if(f===0&&g===this.dummyHead||T>0)do _&&(_=_.getNext());while(_&&_.isRemoved());return _}getPrevCreatedAt(f){let g=this.nodeMapByCreatedAt.get(f.toIDString());do g=g.getPrev();while(this.dummyHead!==g&&g.isRemoved());return g.getValue().getCreatedAt()}delete(f,g){const T=this.nodeMapByCreatedAt.get(f.toIDString()),_=T.isRemoved();return T.remove(g)&&!_&&this.nodeMapByIndex.splayNode(T),T.getValue()}deleteByIndex(f,g){const T=this.getByIndex(f);if(T)return T.remove(g)&&this.nodeMapByIndex.splayNode(T),T.getValue()}getHead(){return this.dummyHead.getValue()}getLast(){return this.last.getValue()}getLastCreatedAt(){return this.last.getCreatedAt()}toTestString(){const f=[];for(const g of this){const T=`${g.getCreatedAt().toIDString()}:${g.getValue().toJSON()}`;g.isRemoved()?f.push(`{${T}}`):f.push(`[${T}]`)}return f.join("")}*[Symbol.iterator](){let f=this.dummyHead.getNext();for(;f;)yield f,f=f.getNext()}}class Ho extends zl{constructor(f,g){super(f),this.elements=g}static create(f,g){if(!g)return new Ho(f,tf.create());const T=tf.create();for(const _ of g)T.insertAfter(T.getLastCreatedAt(),_.deepcopy());return new Ho(f,T)}subPathOf(f){return this.elements.subPathOf(f)}purge(f){this.elements.purge(f)}insertAfter(f,g){this.elements.insertAfter(f,g)}moveAfter(f,g,T){this.elements.moveAfter(f,g,T)}get(f){const g=this.elements.getByIndex(f);return g==null?void 0:g.getValue()}getByID(f){const g=this.elements.getByID(f);return g==null?void 0:g.getValue()}getHead(){return this.elements.getHead()}getLast(){return this.elements.getLast()}getPrevCreatedAt(f){return this.elements.getPrevCreatedAt(f)}delete(f,g){return this.elements.delete(f,g)}deleteByIndex(f,g){return this.elements.deleteByIndex(f,g)}getLastCreatedAt(){return this.elements.getLastCreatedAt()}get length(){return this.elements.length}*[Symbol.iterator](){for(const f of this.elements)f.isRemoved()||(yield f.getValue())}toTestString(){return this.elements.toTestString()}getDescendants(f){for(const g of this.elements){const T=g.getValue();if(f(T,this))return;T instanceof zl&&T.getDescendants(f)}}toJSON(){const f=[];for(const g of this)f.push(g.toJSON());return`[${f.join(",")}]`}toJS(){return JSON.parse(this.toJSON())}toJSForTest(){const f={};for(let g=0;g`${f}="${JSON.parse(g.getValue())}"`).join(" ")}`:""}size(){return this.nodeMapByKey.size}toObject(){const f={};for(const[g,T]of this.nodeMapByKey)f[g]=T.getValue();return f}*[Symbol.iterator](){for(const[,f]of this.nodeMapByKey)yield f}}var Wo;(function(A){A.Content="content",A.Style="style"})(Wo||(Wo={}));class Qo{constructor(f){this.attributes=La.create(),this.content=f}static create(f){return new Qo(f)}get length(){return this.content.length}substring(f,g){const T=new Qo(this.content.substring(f,g));return T.attributes=this.attributes.deepcopy(),T}setAttr(f,g,T){this.attributes.set(f,g,T)}getAttrs(){return this.attributes}toString(){return this.content}toJSON(){const f=Mr(this.content),g=this.attributes.toObject(),T=[];for(const[_,H]of Object.entries(g)){const K=JSON.parse(H),oe=typeof K=="string"?`"${Mr(_)}":"${Mr(K)}"`:`"${Mr(_)}":${String(K)}`;T.push(oe)}return T.sort(),T.length===0?`{"val":"${f}"}`:`{"attrs":{${T.join(",")}},"val":"${f}"}`}getAttributes(){return this.attributes.toObject()}getContent(){return this.content}}class ui extends zo{constructor(f,g){super(g),this.rgaTreeSplit=f}static create(f,g){return new ui(f,g)}edit(f,g,T,_,H){const K=g?Qo.create(g):void 0;if(K&&_)for(const[Ft,ft]of Object.entries(_))K.setAttr(Ft,ft,T);const[oe,Ce,Ve]=this.rgaTreeSplit.edit(f,T,K,H),yt=Ve.map(Ft=>({...Ft,value:Ft.value?{attributes:li(Ft.value.getAttributes()),content:Ft.value.getContent()}:{attributes:void 0,content:""},type:Wo.Content}));return[Ce,yt,[oe,oe]]}setStyle(f,g,T,_){const[,H]=this.rgaTreeSplit.findNodeWithSplit(f[1],T),[,K]=this.rgaTreeSplit.findNodeWithSplit(f[0],T),oe=[],Ce=this.rgaTreeSplit.findBetween(K,H),Ve=new Map,yt=[];for(const Ft of Ce){const ft=Ft.getCreatedAt().getActorID(),an=_!=null&&_.size?_.has(ft)?_.get(ft):to:Eo;if(Ft.canStyle(T,an)){const In=Ve.get(ft),Dn=Ft.getCreatedAt();(!In||Dn.after(In))&&Ve.set(ft,Dn),yt.push(Ft)}}for(const Ft of yt){if(Ft.isRemoved())continue;const[ft,an]=this.rgaTreeSplit.findIndexesFromRange(Ft.createPosRange());oe.push({type:Wo.Style,actor:T.getActorID(),from:ft,to:an,value:{attributes:li(g)}});for(const[In,Dn]of Object.entries(g))Ft.getValue().setAttr(In,Dn,T)}return[Ve,oe]}indexRangeToPosRange(f,g){const T=this.rgaTreeSplit.indexToPos(f);return f===g?[T,T]:[T,this.rgaTreeSplit.indexToPos(g)]}get length(){return this.rgaTreeSplit.length}checkWeight(){return this.rgaTreeSplit.checkWeight()}toJSON(){const f=[];for(const g of this.rgaTreeSplit)g.isRemoved()||f.push(g.getValue().toJSON());return`[${f.join(",")}]`}toSortedJSON(){return this.toJSON()}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:JSON.parse(this.toJSON()),type:"YORKIE_TEXT"}}toString(){return this.rgaTreeSplit.toString()}values(){const f=[];for(const g of this.rgaTreeSplit)if(!g.isRemoved()){const T=g.getValue();f.push({attributes:li(T.getAttributes()),content:T.getContent()})}return f}getRGATreeSplit(){return this.rgaTreeSplit}toTestString(){return this.rgaTreeSplit.toTestString()}getRemovedNodesLen(){return this.rgaTreeSplit.getRemovedNodesLen()}purgeRemovedNodesBefore(f){return this.rgaTreeSplit.purgeRemovedNodesBefore(f)}deepcopy(){const f=new ui(this.rgaTreeSplit.deepcopy(),this.getCreatedAt());return f.remove(this.getRemovedAt()),f}findIndexesFromRange(f){return this.rgaTreeSplit.findIndexesFromRange(f)}}class Wl extends $r{constructor(f,g,T,_,H,K,oe){super(f,oe),this.fromPos=g,this.toPos=T,this.maxCreatedAtMapByActor=_,this.content=H,this.attributes=K}static create(f,g,T,_,H,K,oe){return new Wl(f,g,T,_,H,K,oe)}execute(f){const g=f.findByCreatedAt(this.getParentCreatedAt());g||u.fatal(`fail to find ${this.getParentCreatedAt()}`),g instanceof ui||u.fatal("fail to execute, only Text can execute edit");const T=g,[,_]=T.edit([this.fromPos,this.toPos],this.content,this.getExecutedAt(),Object.fromEntries(this.attributes),this.maxCreatedAtMapByActor);return this.fromPos.equals(this.toPos)||f.registerElementHasRemovedNodes(T),{opInfos:_.map(({from:H,to:K,value:oe})=>({type:"edit",from:H,to:K,value:oe,path:f.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const f=this.getParentCreatedAt().toTestString(),g=this.fromPos.toTestString(),T=this.toPos.toTestString(),_=this.content;return`${f}.EDIT(${g},${T},${_})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getContent(){return this.content}getAttributes(){return this.attributes||new Map}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}class To extends $r{constructor(f,g,T,_,H,K){super(f,K),this.fromPos=g,this.toPos=T,this.maxCreatedAtMapByActor=_,this.attributes=H}static create(f,g,T,_,H,K){return new To(f,g,T,_,H,K)}execute(f){const g=f.findByCreatedAt(this.getParentCreatedAt());g||u.fatal(`fail to find ${this.getParentCreatedAt()}`),g instanceof ui||u.fatal("fail to execute, only Text can execute edit");const T=g,[,_]=T.setStyle([this.fromPos,this.toPos],this.attributes?Object.fromEntries(this.attributes):{},this.getExecutedAt(),this.maxCreatedAtMapByActor);return{opInfos:_.map(({from:H,to:K,value:oe})=>({type:"style",from:H,to:K,value:oe,path:f.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const f=this.getParentCreatedAt().toTestString(),g=this.fromPos.toTestString(),T=this.toPos.toTestString(),_=this.attributes;return`${f}.STYL(${g},${T},${JSON.stringify(_)})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getAttributes(){return this.attributes}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}const sa=2,la="root",wi="text";function Yo(A,f){let g=0;const T=A.children;for(let _=0;_0)throw new Error(`Text node cannot have children: ${this.type}`)}updateAncestorsSize(){let f=this.parent;const g=this.isRemoved?-1:1;for(;f;)f.size+=this.paddedSize*g,f=f.parent}get isText(){return this.type===wi}get paddedSize(){return this.size+(this.isText?0:sa)}isAncestorOf(f){return Ic(this,f)}get nextSibling(){const f=this.parent.findOffset(this),g=this.parent.children[f+1];if(g)return g}splitText(f,g){if(f===0||f===this.size)return;const T=this.value.slice(0,f),_=this.value.slice(f);if(!_.length)return;this.value=T;const H=this.cloneText(f+g);return H.value=_,this.parent.insertAfterInternal(H,this),H}get children(){return this._children.filter(f=>!f.isRemoved)}get allChildren(){return[...this._children]}hasTextChild(){return this.children.some(f=>f.isText)}append(...f){if(this.isText)throw new Error("Text node cannot have children");this._children.push(...f);for(const g of f)g.parent=this,g.updateAncestorsSize()}prepend(...f){if(this.isText)throw new Error("Text node cannot have children");this._children.unshift(...f);for(const g of f)g.parent=this,g.isRemoved||g.updateAncestorsSize()}insertBefore(f,g){if(this.isText)throw new Error("Text node cannot have children");const T=this._children.indexOf(g);if(T===-1)throw new Error("child not found");this.insertAtInternal(f,T),f.updateAncestorsSize()}insertAfter(f,g){if(this.isText)throw new Error("Text node cannot have children");const T=this._children.indexOf(g);if(T===-1)throw new Error("child not found");this.insertAtInternal(f,T+1),f.updateAncestorsSize()}insertAt(f,g){if(this.isText)throw new Error("Text node cannot have children");this.insertAtInternal(f,g),f.updateAncestorsSize()}removeChild(f){if(this.isText)throw new Error("Text node cannot have children");const g=this._children.indexOf(f);if(g===-1)throw new Error("child not found");this._children.splice(g,1),f.parent=void 0}splitElement(f,g){const T=this.cloneElement(g);this.parent.insertAfterInternal(T,this),T.updateAncestorsSize();const _=this.children.slice(0,f),H=this.children.slice(f);this._children=_,T._children=H,this.size=this._children.reduce((K,oe)=>K+oe.paddedSize,0),T.size=T._children.reduce((K,oe)=>K+oe.paddedSize,0);for(const K of T._children)K.parent=T;return T}insertAfterInternal(f,g){if(this.isText)throw new Error("Text node cannot have children");const T=this._children.indexOf(g);if(T===-1)throw new Error("child not found");this.insertAtInternal(f,T+1)}insertAtInternal(f,g){if(this.isText)throw new Error("Text node cannot have children");this._children.splice(g,0,f),f.parent=this}findOffset(f){if(this.isText)throw new Error("Text node cannot have children");if(f.isRemoved){const g=this._children.indexOf(f);return this.allChildren.splice(0,g).filter(_=>!_.isRemoved).length}return this.children.indexOf(f)}findBranchOffset(f){if(this.isText)throw new Error("Text node cannot have children");let g=f;for(;g;){const T=this._children.indexOf(g);if(T!==-1)return T;g=g.parent}return-1}}function Ic(A,f){if(A===f)return!1;for(;f.parent;){if(f.parent===A)return!0;f=f.parent}return!1}var Yn;(function(A){A.Start="Start",A.End="End",A.Text="Text"})(Yn||(Yn={}));function Ma(A,f,g,T){if(f>g)throw new Error(`from is greater than to: ${f} > ${g}`);if(f>A.size)throw new Error(`from is out of range: ${f} > ${A.size}`);if(g>A.size)throw new Error(`to is out of range: ${g} > ${A.size}`);if(f===g)return;let _=0;for(const H of A.children){if(f-H.paddedSize<_&&_H.size;(H.isText||Ce)&&T([H,H.isText?Yn.Text:Yn.Start],Ve),Ma(H,Math.max(0,K),Math.min(oe,H.size),T),Ve&&T([H,Yn.End],Ve)}_+=H.paddedSize}}function ki(A,f,g=0){for(const T of A.children)ki(T,f,g+1);f(A,g)}function $a(A,f,g=0){for(const T of A._children)$a(T,f,g+1);f(A,g)}function ua(A,f,g=!0){if(f>A.size)throw new Error(`index is out of range: ${f} > ${A.size}`);if(A.isText)return{node:A,offset:f};let T=0,_=0;for(const H of A.children){if(g&&H.isText&&H.size>=f-_)return ua(H,f-_,g);if(f===_)return{node:A,offset:T};if(!g&&H.paddedSize===f-_)return{node:A,offset:T+1};if(H.paddedSize>f-_)return ua(H,f-_-1,g);_+=H.paddedSize,T+=1}return{node:A,offset:T}}function Fa(A){return A.isText||A.children.length===0?A:Fa(A.children[0])}function F(A,f){if(A.sizeA===f?0:A0)if(g.right)g.right.parent=g,g=g.right;else return g;else if(T<0)if(g.left)g.left.parent=g,g=g.left;else{let _=g.parent,H=g;for(;_&&H===_.left;)H=_,_=_.parent;return _}else return g}}lastEntry(){if(!this.root)return this.root;let f=this.root;for(;f.right;)f=f.right;return f}size(){return this.counter}isEmpty(){return this.counter===0}getInternal(f,g){for(;g;){const T=this.comparator(f,g.key);if(T===0)return g;T<0?g=g.left:T>0&&(g=g.right)}}putInternal(f,g,T){if(!T)return this.counter+=1,new se(f,g,!0);const _=this.comparator(f,T.key);return _<0?T.left=this.putInternal(f,g,T.left):_>0?T.right=this.putInternal(f,g,T.right):T.value=g,this.isRed(T.right)&&!this.isRed(T.left)&&(T=this.rotateLeft(T)),this.isRed(T.left)&&this.isRed(T.left.left)&&(T=this.rotateRight(T)),this.isRed(T.left)&&this.isRed(T.right)&&this.flipColors(T),T}removeInternal(f,g){if(this.comparator(g,f.key)<0)!this.isRed(f.left)&&!this.isRed(f.left.left)&&(f=this.moveRedLeft(f)),f.left=this.removeInternal(f.left,g);else{if(this.isRed(f.left)&&(f=this.rotateRight(f)),this.comparator(g,f.key)===0&&!f.right){this.counter-=1;return}if(!this.isRed(f.right)&&!this.isRed(f.right.left)&&(f=this.moveRedRight(f)),this.comparator(g,f.key)===0){this.counter-=1;const T=this.min(f.right);f.value=T.value,f.key=T.key,f.right=this.removeMin(f.right)}else f.right=this.removeInternal(f.right,g)}return this.fixUp(f)}min(f){return f.left?this.min(f.left):f}removeMin(f){if(f.left)return!this.isRed(f.left)&&!this.isRed(f.left.left)&&(f=this.moveRedLeft(f)),f.left=this.removeMin(f.left),this.fixUp(f)}fixUp(f){return this.isRed(f.right)&&(f=this.rotateLeft(f)),this.isRed(f.left)&&this.isRed(f.left.left)&&(f=this.rotateRight(f)),this.isRed(f.left)&&this.isRed(f.right)&&this.flipColors(f),f}moveRedLeft(f){return this.flipColors(f),this.isRed(f.right.left)&&(f.right=this.rotateRight(f.right),f=this.rotateLeft(f),this.flipColors(f)),f}moveRedRight(f){return this.flipColors(f),this.isRed(f.left.left)&&(f=this.rotateRight(f),this.flipColors(f)),f}isRed(f){return f&&f.isRed}rotateLeft(f){const g=f.right;return f.right=g.left,g.left=f,g.isRed=g.left.isRed,g.left.isRed=!0,g}rotateRight(f){const g=f.left;return f.left=g.right,g.right=f,g.isRed=g.right.isRed,g.right.isRed=!0,g}flipColors(f){f.isRed=!f.isRed,f.left.isRed=!f.left.isRed,f.right.isRed=!f.right.isRed}}var je;(function(A){A.Content="content",A.Style="style"})(je||(je={}));class ct{constructor(f,g){this.parentID=f,this.leftSiblingID=g}static of(f,g){return new ct(f,g)}static fromTreePos(f){const{offset:g}=f;let{node:T}=f,_;return T.isText?(T.parent.children[0]===T&&g===0?_=T.parent:_=T,T=T.parent):g===0?_=T:_=T.children[g-1],ct.of(T.id,Ze.of(_.getCreatedAt(),_.getOffset()+g))}getParentID(){return this.parentID}static fromStruct(f){return ct.of(Ze.of(yr.fromStruct(f.parentID.createdAt),f.parentID.offset),Ze.of(yr.fromStruct(f.leftSiblingID.createdAt),f.leftSiblingID.offset))}toStruct(){return{parentID:{createdAt:this.getParentID().getCreatedAt().toStruct(),offset:this.getParentID().getOffset()},leftSiblingID:{createdAt:this.getLeftSiblingID().getCreatedAt().toStruct(),offset:this.getLeftSiblingID().getOffset()}}}toTreeNodes(f){const g=this.getParentID(),T=this.getLeftSiblingID(),_=f.findFloorNode(g);let H=f.findFloorNode(T);if(!_||!H)throw new Error(`cannot find node at ${this}`);return!T.equals(g)&&T.getOffset()>0&&T.getOffset()===H.id.getOffset()&&H.insPrevID&&(H=f.findFloorNode(H.insPrevID)),[_,H]}getLeftSiblingID(){return this.leftSiblingID}equals(f){return this.getParentID().getCreatedAt().equals(f.getParentID().getCreatedAt())&&this.getParentID().getOffset()===f.getParentID().getOffset()&&this.getLeftSiblingID().getCreatedAt().equals(f.getLeftSiblingID().getCreatedAt())&&this.getLeftSiblingID().getOffset()===f.getLeftSiblingID().getOffset()}}class Ze{constructor(f,g){this.createdAt=f,this.offset=g}static of(f,g){return new Ze(f,g)}static fromStruct(f){return Ze.of(yr.fromStruct(f.createdAt),f.offset)}static createComparator(){return(f,g)=>{const T=f.getCreatedAt().compare(g.getCreatedAt());return T!==0?T:f.getOffset()>g.getOffset()?1:f.getOffset(){const _=T.deepcopy();return _.parent=g,_}),g}get value(){if(!this.isText)throw new Error(`cannot get value of element node: ${this.type}`);return this._value}set value(f){if(!this.isText)throw new Error(`cannot set value of element node: ${this.type}`);this._value=f,this.size=f.length}get isRemoved(){return!!this.removedAt}remove(f){const g=!this.removedAt;(!this.removedAt||this.removedAt.compare(f)>0)&&(this.removedAt=f),g&&(this.parent.removedAt?this.parent.size-=this.paddedSize:this.updateAncestorsSize())}cloneText(f){return new Ot(Ze.of(this.id.getCreatedAt(),f),this.type,void 0,void 0,this.removedAt)}cloneElement(f){return new Ot(Ze.of(f(),0),this.type,void 0,void 0,this.removedAt)}split(f,g,T){const _=this.isText?this.splitText(g,this.id.getOffset()):this.splitElement(g,T);if(_){if(_.insPrevID=this.id,this.insNextID){const H=f.findFloorNode(this.insNextID);H.insPrevID=_.id,_.insNextID=this.insNextID}this.insNextID=_.id,f.registerNode(_)}return _}getCreatedAt(){return this.id.getCreatedAt()}getOffset(){return this.id.getOffset()}canDelete(f,g){return!this.getCreatedAt().after(g)&&(!this.removedAt||f.after(this.removedAt))}}function Pt(A){var f;if(A.isText){const g=A;return{type:g.type,value:g.value}}return{type:A.type,children:A.children.map(Pt),attributes:A.attrs?li((f=A.attrs)===null||f===void 0?void 0:f.toObject()):void 0}}function bn(A){var f;return A.isText?A.value:`<${A.type}${((f=A.attrs)===null||f===void 0?void 0:f.toXML())||""}>${A.children.map(g=>bn(g)).join("")}`}function Or(A){if(A.isText){const f=A;return{type:f.type,value:f.value,size:f.size,isRemoved:f.isRemoved}}return{type:A.type,children:A.children.map(Or),size:A.size,isRemoved:A.isRemoved}}class Sn extends zo{constructor(f,g){super(g),this.indexTree=new x(f),this.nodeMapByID=new De(Ze.createComparator()),this.removedNodeMap=new Map,this.indexTree.traverse(T=>{this.nodeMapByID.put(T.id,T)})}static create(f,g){return new Sn(f,g)}findFloorNode(f){const g=this.nodeMapByID.floorEntry(f);if(!(!g||!g.key.getCreatedAt().equals(f.getCreatedAt())))return g.value}registerNode(f){this.nodeMapByID.put(f.id,f)}findNodesAndSplitText(f,g){const[T,_]=f.toTreeNodes(this);let H=_;const K=T===H,oe=H.parent&&!K?H.parent:T;H.isText&&H.split(this,f.getLeftSiblingID().getOffset()-H.id.getOffset());const Ce=oe.allChildren,Ve=K?0:Ce.indexOf(H)+1;for(let yt=Ve;yt{if(!Ve.isRemoved&&!Ve.isText&&g){Ve.attrs||(Ve.attrs=new La);for(const[yt,Ft]of Object.entries(g))Ve.attrs.set(yt,Ft,T)}}),Ce}edit(f,g,T,_,H,K){const[oe,Ce]=this.findNodesAndSplitText(f[0],_),[Ve,yt]=this.findNodesAndSplitText(f[1],_),Ft=this.toIndex(oe,Ce),ft=this.toPath(oe,Ce),an=[],In=[],Dn=[],ar=new Map;this.traverseInPosRange(oe,Ce,Ve,yt,([$n,ei],Qr)=>{if(ei===Yn.Start&&!Qr)for(const Hp of $n.children)Dn.push(Hp);const yi=$n.getCreatedAt().getActorID(),sf=K?K.has(yi)?K.get(yi):to:Eo;if($n.canDelete(_,sf)||an.includes($n.parent)){const Hp=ar.get(yi),Qg=$n.getCreatedAt();(!Hp||Qg.after(Hp))&&ar.set(yi,Qg),(ei===Yn.Text||ei===Yn.Start)&&an.push($n),In.push([$n,ei])}});const ro=this.makeDeletionChanges(In,_);for(const $n of an)$n.remove(_),$n.isRemoved&&this.removedNodeMap.set($n.id.toIDString(),$n);for(const $n of Dn)$n.removedAt||oe.append($n);if(T>0){let $n=0,ei=oe,Qr=Ce;for(;$n{oe.isRemoved&&(yi.remove(_),this.removedNodeMap.set(yi.id.toIDString(),yi)),this.nodeMapByID.put(yi.id,yi)}),Qr.isRemoved||$n.push(Qr);if($n.length){const Qr=$n.map(yi=>Pt(yi));ro.length&&ro[ro.length-1].from===Ft?ro[ro.length-1].value=Qr:ro.push({type:je.Content,from:Ft,to:Ft,fromPath:ft,toPath:ft,actor:_.getActorID(),value:Qr})}}return[ro,ar]}editT(f,g,T,_,H){const K=this.findPos(f[0]),oe=this.findPos(f[1]);this.edit([K,oe],g,T,_,H)}move(f,g,T){throw new Error(`not implemented: ${f}, ${g}, ${T}`)}purgeRemovedNodesBefore(f){var g;const T=new Set;let _=0;for(const[,H]of this.removedNodeMap)H.removedAt&&f.compare(H.removedAt)>=0&&(T.add(H),_++);for(const H of T)(g=H.parent)===null||g===void 0||g.removeChild(H),this.nodeMapByID.remove(H.id),this.purge(H),this.removedNodeMap.delete(H.id.toIDString());return _}purge(f){const g=f.insPrevID,T=f.insNextID;if(g){const _=this.findFloorNode(g);_.insNextID=T}if(T){const _=this.findFloorNode(T);_.insPrevID=g}f.insPrevID=void 0,f.insNextID=void 0}findPos(f,g=!0){const T=this.indexTree.findTreePos(f,g);return ct.fromTreePos(T)}getRemovedNodesLen(){return this.removedNodeMap.size}pathToPosRange(f){const g=this.pathToIndex(f);return[this.findPos(g),this.findPos(g+1)]}pathToPos(f){const g=this.indexTree.pathToIndex(f);return this.findPos(g)}getRoot(){return this.indexTree.getRoot()}getSize(){return this.indexTree.size}getIndexTree(){return this.indexTree}toXML(){return bn(this.indexTree.getRoot())}toJSON(){return JSON.stringify(this.getRootTreeNode())}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:JSON.parse(this.toJSON()),type:"YORKIE_TREE"}}toJSInfoForTest(){const f=this.indexTree.getRoot(),g=(T,_=void 0,H=0)=>{var K,oe,Ce;const Ve={type:T.type,parent:_,size:T.size,id:T.id.toTestString(),removedAt:(K=T.removedAt)===null||K===void 0?void 0:K.toTestString(),insPrev:(oe=T.insPrevID)===null||oe===void 0?void 0:oe.toTestString(),insNext:(Ce=T.insNextID)===null||Ce===void 0?void 0:Ce.toTestString(),value:T.isText?T.value:void 0,isRemoved:T.isRemoved,children:[],depth:H};for(const yt of T.children)Ve.children.push(g(yt,Ve.id,H+1));return Ve};return g(f)}getRootTreeNode(){return Pt(this.indexTree.getRoot())}toTestTreeNode(){return Or(this.indexTree.getRoot())}toSortedJSON(){return this.toJSON()}deepcopy(){const f=this.getRoot();return new Sn(f.deepcopy(),this.getCreatedAt())}toPath(f,g){const T=this.toTreePos(f,g);return T?this.indexTree.treePosToPath(T):[]}toIndex(f,g){const T=this.toTreePos(f,g);return T?this.indexTree.indexOf(T):-1}indexToPath(f){return this.indexTree.indexToPath(f)}pathToIndex(f){return this.indexTree.pathToIndex(f)}indexRangeToPosRange(f){const g=this.findPos(f[0]);return f[0]===f[1]?[g,g]:[g,this.findPos(f[1])]}indexRangeToPosStructRange(f){const[g,T]=f,_=this.findPos(g);return g===T?[_.toStruct(),_.toStruct()]:[_.toStruct(),this.findPos(T).toStruct()]}posRangeToPathRange(f,g){const[T,_]=this.findNodesAndSplitText(f[0],g),[H,K]=this.findNodesAndSplitText(f[1],g);return[this.toPath(T,_),this.toPath(H,K)]}posRangeToIndexRange(f,g){const[T,_]=this.findNodesAndSplitText(f[0],g),[H,K]=this.findNodesAndSplitText(f[1],g);return[this.toIndex(T,_),this.toIndex(H,K)]}traverseInPosRange(f,g,T,_,H){const K=this.toIndex(f,g),oe=this.toIndex(T,_);return this.indexTree.tokensBetween(K,oe,H)}toTreePos(f,g){if(!f||!g)return;if(f.isRemoved){let _;for(;f.isRemoved;)_=f,f=_.parent;const H=f.findOffset(_);return{node:f,offset:H}}if(f===g)return{node:f,offset:0};let T=f.findOffset(g);if(!g.isRemoved){if(g.isText)return{node:g,offset:g.paddedSize};T++}return{node:f,offset:T}}makeDeletionChanges(f,g){const T=[],_=[];let H=null,K=null;for(let oe=0;oe0&&ar===T[T.length-1].to?(T[T.length-1].to=ro,T[T.length-1].toPath=this.toPath(Dn,ft)):T.push({type:je.Content,from:ar,to:ro,fromPath:this.toPath(In,yt),toPath:this.toPath(Dn,ft),actor:g.getActorID()}))}return T}findRightToken([f,g]){if(g===Yn.Start){const oe=f.allChildren;return oe.length>0?[oe[0],oe[0].isText?Yn.Text:Yn.Start]:[f,Yn.End]}const T=f.parent,_=T.allChildren,H=_.indexOf(f);if(T&&H===_.length-1)return[T,Yn.End];const K=_[H+1];return[K,K.isText?Yn.Text:Yn.Start]}findLeftToken([f,g]){if(g===Yn.End){const oe=f.allChildren;if(oe.length>0){const Ce=oe[oe.length-1];return[Ce,Ce.isText?Yn.Text:Yn.End]}return[f,Yn.Start]}const T=f.parent,_=T.allChildren,H=_.indexOf(f);if(T&&H===0)return[T,Yn.Start];const K=_[H-1];return[K,K.isText?Yn.Text:Yn.End]}}class ji extends $r{constructor(f,g,T,_,H,K,oe){super(f,oe),this.fromPos=g,this.toPos=T,this.contents=_,this.splitLevel=H,this.maxCreatedAtMapByActor=K}static create(f,g,T,_,H,K,oe){return new ji(f,g,T,_,H,K,oe)}execute(f){var g;const T=f.findByCreatedAt(this.getParentCreatedAt());T||u.fatal(`fail to find ${this.getParentCreatedAt()}`),T instanceof Sn||u.fatal("fail to execute, only Tree can execute edit");const _=this.getExecutedAt(),H=T,[K]=H.edit([this.fromPos,this.toPos],(g=this.contents)===null||g===void 0?void 0:g.map(oe=>oe.deepcopy()),this.splitLevel,_,(()=>{let oe=_.getDelimiter();return this.contents!==void 0&&(oe+=this.contents.length),()=>yr.of(_.getLamport(),++oe,_.getActorID())})(),this.maxCreatedAtMapByActor);return this.fromPos.equals(this.toPos)||f.registerElementHasRemovedNodes(H),{opInfos:K.map(({from:oe,to:Ce,value:Ve,splitLevel:yt,fromPath:Ft,toPath:ft})=>({type:"tree-edit",path:f.createPath(this.getParentCreatedAt()),from:oe,to:Ce,value:Ve,splitLevel:yt,fromPath:Ft,toPath:ft}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const f=this.getParentCreatedAt().toTestString(),g=`${this.fromPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.fromPos.getLeftSiblingID().getOffset()}`,T=`${this.toPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.toPos.getLeftSiblingID().getOffset()}`,_=this.contents;return`${f}.EDIT(${g},${T},${_==null?void 0:_.join("")})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getContents(){return this.contents}getSplitLevel(){return this.splitLevel}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}class Ba{constructor(f,g,T){this.clientSeq=f,this.lamport=g,this.actor=T}static of(f,g,T){return new Ba(f,g,T)}next(){return new Ba(this.clientSeq+1,this.lamport.add(1),this.actor)}syncLamport(f){return f.greaterThan(this.lamport)?new Ba(this.clientSeq,f,this.actor):new Ba(this.clientSeq,this.lamport.add(1),this.actor)}createTimeTicket(f){return yr.of(this.lamport,f,this.actor)}setActor(f){return new Ba(this.clientSeq,this.lamport,f)}getClientSeq(){return this.clientSeq}getLamport(){return this.lamport}getLamportAsString(){return this.lamport.toString()}getActorID(){return this.actor}toTestString(){return this.actor?`${this.lamport.toString()}:${this.actor.substring(22,24)}:${this.clientSeq}`:`${this.lamport.toString()}:nil:${this.clientSeq}`}}const Nx=new Ba(0,Wr.fromInt(0,!0),kO);class rf{constructor({id:f,operations:g,presenceChange:T,message:_}){this.id=f,this.operations=g||[],this.presenceChange=T,this.message=_}static create({id:f,operations:g,presenceChange:T,message:_}){return new rf({id:f,operations:g,presenceChange:T,message:_})}getID(){return this.id}getMessage(){return this.message}hasOperations(){return this.operations.length>0}getOperations(){return this.operations}setActor(f){for(const g of this.operations)g.setActor(f);this.id=this.id.setActor(f)}hasPresenceChange(){return this.presenceChange!==void 0}getPresenceChange(){return this.presenceChange}execute(f,g,T){const _=[],H=[];for(const K of this.operations){const oe=K.execute(f,T);if(!oe)continue;const{opInfos:Ce,reverseOp:Ve}=oe;_.push(...Ce),Ve&&H.unshift(Ve)}return this.presenceChange&&(this.presenceChange.type===Pa.Put?g.set(this.id.getActorID(),oa(this.presenceChange.presence)):g.delete(this.id.getActorID())),{opInfos:_,reverseOps:H}}toTestString(){return`${this.operations.map(f=>f.toTestString()).join(",")}`}}class xO{constructor(f,g,T,_,H,K){this.documentKey=f,this.checkpoint=g,this.isRemoved=T,this.changes=_,this.snapshot=H,this.minSyncedTicket=K}static create(f,g,T,_,H,K){return new xO(f,g,T,_,H,K)}getDocumentKey(){return this.documentKey}getCheckpoint(){return this.checkpoint}getIsRemoved(){return this.isRemoved}getChanges(){return this.changes}hasChanges(){return this.changes.length>0}getChangeSize(){return this.changes.length}hasSnapshot(){return!!this.snapshot&&!!this.snapshot.length}getSnapshot(){return this.snapshot}getMinSyncedTicket(){return this.minSyncedTicket}}class Fp{constructor(f,g){this.serverSeq=f,this.clientSeq=g}static of(f,g){return new Fp(f,g)}increaseClientSeq(f){return f===0?this:new Fp(this.serverSeq,this.clientSeq+f)}forward(f){if(this.equals(f))return this;const g=this.serverSeq.greaterThan(f.serverSeq)?this.serverSeq:f.serverSeq,T=Math.max(this.clientSeq,f.clientSeq);return Fp.of(g,T)}getServerSeqAsString(){return this.serverSeq.toString()}getClientSeq(){return this.clientSeq}getServerSeq(){return this.serverSeq}equals(f){return this.clientSeq===f.clientSeq&&this.serverSeq.equals(f.serverSeq)}toTestString(){return`serverSeq=${this.serverSeq}, clientSeq=${this.clientSeq}`}}const Zre=new Fp(Wr.fromInt(0,!0),0);class Ql{constructor(f,g){this.createdAt=f,this.offset=g}static of(f,g){return new Ql(f,g)}static fromStruct(f){return Ql.of(yr.fromStruct(f.createdAt),f.offset)}getCreatedAt(){return this.createdAt}getOffset(){return this.offset}equals(f){return this.createdAt.compare(f.createdAt)===0&&this.offset===f.offset}hasSameCreatedAt(f){return this.createdAt.compare(f.createdAt)===0}split(f){return new Ql(this.createdAt,this.offset+f)}toStruct(){return{createdAt:this.createdAt.toStruct(),offset:this.offset}}toTestString(){return`${this.createdAt.toTestString()}:${this.offset}`}toIDString(){return`${this.createdAt.toIDString()}:${this.offset}`}}const Xre=Ql.of(to,0);class sl{constructor(f,g){this.id=f,this.relativeOffset=g}static of(f,g){return new sl(f,g)}static fromStruct(f){const g=Ql.fromStruct(f.id);return sl.of(g,f.relativeOffset)}getID(){return this.id}getRelativeOffset(){return this.relativeOffset}getAbsoluteID(){return Ql.of(this.id.getCreatedAt(),this.id.getOffset()+this.relativeOffset)}toTestString(){return`${this.id.toTestString()}:${this.relativeOffset}`}toStruct(){return{id:this.id.toStruct(),relativeOffset:this.relativeOffset}}equals(f){return this.id.equals(f.id)?this.relativeOffset===f.relativeOffset:!1}}class Nc extends Vo{constructor(f,g,T){super(g),this.id=f,this.removedAt=T}static create(f,g){return new Nc(f,g)}static createComparator(){return(f,g)=>{const T=f.getCreatedAt().compare(g.getCreatedAt());return T!==0?T:f.getOffset()>g.getOffset()?1:f.getOffset()0&&g.getID().getOffset()==f.getOffset()){if(!g.hasInsPrev())return g;g=g.getInsPrev()}return g}findFloorNode(f){const g=this.treeByID.floorEntry(f);if(g&&!(!g.key.equals(f)&&!g.key.hasSameCreatedAt(f)))return g.value}findBetween(f,g){const T=[];let _=f;for(;_&&_!==g;)T.push(_),_=_.getNext();return T}splitNode(f,g){if(g>f.getContentLength()&&u.fatal("offset should be less than or equal to length"),g===0)return f;if(g===f.getContentLength())return f.getNext();const T=f.split(g);this.treeByIndex.updateWeight(T),this.insertAfter(f,T);const _=f.getInsNext();return _&&_.setInsPrev(T),T.setInsPrev(f),T}deleteNodes(f,g,T){if(!f.length)return[[],new Map,new Map];const[_,H]=this.filterNodes(f,g,T),K=new Map,oe=new Map,Ce=this.makeChanges(H,g);for(const Ve of _){const yt=Ve.getCreatedAt().getActorID();(!K.has(yt)||Ve.getID().getCreatedAt().after(K.get(yt)))&&K.set(yt,Ve.getID().getCreatedAt()),oe.set(Ve.getID().toIDString(),Ve),Ve.remove(g)}return this.deleteIndexNodes(H),[Ce,K,oe]}filterNodes(f,g,T){const _=!!T,H=[],K=[],[oe,Ce]=this.findEdgesOfCandidates(f);K.push(oe);for(const Ve of f){const yt=Ve.getCreatedAt().getActorID(),Ft=_?T.has(yt)?T.get(yt):to:Eo;Ve.canDelete(g,Ft)?H.push(Ve):K.push(Ve)}return K.push(Ce),[H,K]}findEdgesOfCandidates(f){return[f[0].getPrev(),f[f.length-1].getNext()]}makeChanges(f,g){const T=[];let _,H;for(let K=0;K=0&&(this.treeByIndex.delete(T),this.purge(T),this.treeByID.remove(T.getID()),this.removedNodeMap.delete(T.getID().toIDString()),g++);return g}purge(f){const g=f.getPrev(),T=f.getNext(),_=f.getInsPrev(),H=f.getInsNext();g&&g.setNext(T),T&&T.setPrev(g),f.setPrev(void 0),f.setNext(void 0),_&&_.setInsNext(H),H&&H.setInsPrev(_),f.setInsPrev(void 0),f.setInsNext(void 0)}}const fF=A=>A<0?Math.ceil(A):Math.floor(A);var ci;(function(A){A[A.IntegerCnt=0]="IntegerCnt",A[A.LongCnt=1]="LongCnt"})(ci||(ci={}));class Ua extends no{constructor(f,g,T){switch(super(T),this.valueType=f,f){case ci.IntegerCnt:typeof g=="number"?g>Math.pow(2,31)-1||g<-Math.pow(2,31)?this.value=Wr.fromNumber(g).toInt():this.value=fF(g):this.value=g.toInt();break;case ci.LongCnt:typeof g=="number"?this.value=Wr.fromNumber(g):this.value=g;break;default:throw new An(En.Unimplemented,`unimplemented type: ${f}`)}}static create(f,g,T){return new Ua(f,g,T)}static valueFromBytes(f,g){switch(f){case ci.IntegerCnt:return g[0]|g[1]<<8|g[2]<<16|g[3]<<24;case ci.LongCnt:return Wr.fromBytesLE(Array.from(g));default:throw new An(En.Unimplemented,`unimplemented type: ${f}`)}}toJSON(){return`${this.value}`}toSortedJSON(){return this.toJSON()}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:this.value,type:"YORKIE_COUNTER"}}deepcopy(){const f=Ua.create(this.valueType,this.value,this.getCreatedAt());return f.setMovedAt(this.getMovedAt()),f}getType(){return this.valueType}static getCounterType(f){switch(typeof f){case"object":return f instanceof Wr?ci.LongCnt:void 0;case"number":return f>Math.pow(2,31)-1||f<-Math.pow(2,31)?ci.LongCnt:ci.IntegerCnt;default:return}}static isSupport(f){return!!Ua.getCounterType(f)}static isInteger(f){return f%1===0}isNumericType(){const f=this.valueType;return f===ci.IntegerCnt||f===ci.LongCnt}getValueType(){return this.valueType}getValue(){return this.value}toBytes(){switch(this.valueType){case ci.IntegerCnt:{const f=this.value;return new Uint8Array([f&255,f>>8&255,f>>16&255,f>>24&255])}case ci.LongCnt:{const g=this.value.toBytesLE();return Uint8Array.from(g)}default:throw new An(En.Unimplemented,`unimplemented type: ${this.valueType}`)}}increase(f){function g(T){if(!T.isNumericType())throw new TypeError(`Unsupported type of value: ${typeof T.getValue()}`)}return g(this),g(f),this.valueType===ci.LongCnt?this.value=this.value.add(f.getValue()):f.getType()===Kt.Long?this.value=this.value+f.getValue().toInt():this.value=Wr.fromNumber(this.value+fF(f.getValue())).toInt(),this}}class Up extends $r{constructor(f,g,T){super(f,T),this.value=g}static create(f,g,T){return new Up(f,g,T)}execute(f){const g=f.findByCreatedAt(this.getParentCreatedAt());g||u.fatal(`fail to find ${this.getParentCreatedAt()}`),g instanceof Ua||u.fatal("fail to execute, only Counter can execute increase");const T=g,_=this.value.deepcopy();return T.increase(_),{opInfos:[{type:"increase",path:f.createPath(this.getParentCreatedAt()),value:_.getValue()}],reverseOp:this.toReverseOperation()}}toReverseOperation(){const f=this.value.deepcopy(),T=f.getType()===Kt.Long?f.getValue().multiply(-1):f.getValue()*-1;return Up.create(this.getParentCreatedAt(),Cr.of(T,f.getCreatedAt()))}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){return`${this.getParentCreatedAt().toTestString()}.INCREASE.${this.value.toJSON()}`}getValue(){return this.value}}class jp extends $r{constructor(f,g,T,_,H){super(f,H),this.fromPos=g,this.toPos=T,this.attributes=_}static create(f,g,T,_,H){return new jp(f,g,T,_,H)}execute(f){const g=f.findByCreatedAt(this.getParentCreatedAt());g||u.fatal(`fail to find ${this.getParentCreatedAt()}`),g instanceof Sn||u.fatal("fail to execute, only Tree can execute edit");const T={};return[...this.attributes].forEach(([K,oe])=>T[K]=oe),{opInfos:g.style([this.fromPos,this.toPos],T,this.getExecutedAt()).map(({from:K,to:oe,value:Ce,fromPath:Ve})=>({type:"tree-style",from:K,to:oe,value:Ce,fromPath:Ve,path:f.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const f=this.getParentCreatedAt().toTestString(),g=`${this.fromPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.fromPos.getLeftSiblingID().getOffset()}`,T=`${this.toPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.toPos.getLeftSiblingID().getOffset()}`;return`${f}.STYLE(${g},${T},${Object.entries(this.attributes||{}).map(([_,H])=>`${_}:"${H}"`).join(" ")})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getAttributes(){return this.attributes}}function Kre(A){const f=new fe.Presence,g=f.data;for(const[T,_]of Object.entries(A))g[T]=JSON.stringify(_);return f}function Jre(A){if(A.type===Pa.Put)return new fe.PresenceChange({type:fe.PresenceChange_ChangeType.PUT,presence:Kre(A.presence)});if(A.type===Pa.Clear)return new fe.PresenceChange({type:fe.PresenceChange_ChangeType.CLEAR});throw new An(En.Unimplemented,"unimplemented type")}function eie(A){return new fe.Checkpoint({serverSeq:A.getServerSeqAsString(),clientSeq:A.getClientSeq()})}function tie(A){return new fe.ChangeID({clientSeq:A.getClientSeq(),lamport:A.getLamportAsString(),actorId:Bx(A.getActorID())})}function ln(A){if(A)return new fe.TimeTicket({lamport:A.getLamportAsString(),delimiter:A.getDelimiter(),actorId:Bx(A.getActorID())})}function pF(A){switch(A){case Kt.Null:return fe.ValueType.NULL;case Kt.Boolean:return fe.ValueType.BOOLEAN;case Kt.Integer:return fe.ValueType.INTEGER;case Kt.Long:return fe.ValueType.LONG;case Kt.Double:return fe.ValueType.DOUBLE;case Kt.String:return fe.ValueType.STRING;case Kt.Bytes:return fe.ValueType.BYTES;case Kt.Date:return fe.ValueType.DATE;default:throw new An(En.Unsupported,`unsupported type: ${A}`)}}function hF(A){switch(A){case ci.IntegerCnt:return fe.ValueType.INTEGER_CNT;case ci.LongCnt:return fe.ValueType.LONG_CNT;default:throw new An(En.Unsupported,`unsupported type: ${A}`)}}function Dx(A){if(A instanceof mr)return new fe.JSONElementSimple({type:fe.ValueType.JSON_OBJECT,createdAt:ln(A.getCreatedAt()),value:xF(A)});if(A instanceof Ho)return new fe.JSONElementSimple({type:fe.ValueType.JSON_ARRAY,createdAt:ln(A.getCreatedAt()),value:Rie(A)});if(A instanceof ui)return new fe.JSONElementSimple({type:fe.ValueType.TEXT,createdAt:ln(A.getCreatedAt())});if(A instanceof Cr)return new fe.JSONElementSimple({type:pF(A.getType()),createdAt:ln(A.getCreatedAt()),value:A.toBytes()});if(A instanceof Ua)return new fe.JSONElementSimple({type:hF(A.getType()),createdAt:ln(A.getCreatedAt()),value:A.toBytes()});if(A instanceof Sn)return new fe.JSONElementSimple({type:fe.ValueType.TREE,createdAt:ln(A.getCreatedAt()),value:Nie(A)});throw new An(En.Unimplemented,"unimplemented element")}function nie(A){return new fe.TextNodeID({createdAt:ln(A.getCreatedAt()),offset:A.getOffset()})}function CO(A){return new fe.TextNodePos({createdAt:ln(A.getID().getCreatedAt()),offset:A.getID().getOffset(),relativeOffset:A.getRelativeOffset()})}function AO(A){return new fe.TreePos({parentId:zg(A.getParentID()),leftSiblingId:zg(A.getLeftSiblingID())})}function zg(A){return new fe.TreeNodeID({createdAt:ln(A.getCreatedAt()),offset:A.getOffset()})}function rie(A){const f=new fe.Operation;if(A instanceof ju){const g=A,T=new fe.Operation_Set;T.parentCreatedAt=ln(g.getParentCreatedAt()),T.key=g.getKey(),T.value=Dx(g.getValue()),T.executedAt=ln(g.getExecutedAt()),f.body.case="set",f.body.value=T}else if(A instanceof nf){const g=A,T=new fe.Operation_Add;T.parentCreatedAt=ln(g.getParentCreatedAt()),T.prevCreatedAt=ln(g.getPrevCreatedAt()),T.value=Dx(g.getValue()),T.executedAt=ln(g.getExecutedAt()),f.body.case="add",f.body.value=T}else if(A instanceof Hl){const g=A,T=new fe.Operation_Move;T.parentCreatedAt=ln(g.getParentCreatedAt()),T.prevCreatedAt=ln(g.getPrevCreatedAt()),T.createdAt=ln(g.getCreatedAt()),T.executedAt=ln(g.getExecutedAt()),f.body.case="move",f.body.value=T}else if(A instanceof Vl){const g=A,T=new fe.Operation_Remove;T.parentCreatedAt=ln(g.getParentCreatedAt()),T.createdAt=ln(g.getCreatedAt()),T.executedAt=ln(g.getExecutedAt()),f.body.case="remove",f.body.value=T}else if(A instanceof Wl){const g=A,T=new fe.Operation_Edit;T.parentCreatedAt=ln(g.getParentCreatedAt()),T.from=CO(g.getFromPos()),T.to=CO(g.getToPos());const _=T.createdAtMapByActor;for(const[K,oe]of g.getMaxCreatedAtMapByActor())_[K]=ln(oe);T.content=g.getContent();const H=T.attributes;for(const[K,oe]of g.getAttributes())H[K]=oe;T.executedAt=ln(g.getExecutedAt()),f.body.case="edit",f.body.value=T}else if(A instanceof To){const g=A,T=new fe.Operation_Style;T.parentCreatedAt=ln(g.getParentCreatedAt()),T.from=CO(g.getFromPos()),T.to=CO(g.getToPos());const _=T.createdAtMapByActor;for(const[K,oe]of g.getMaxCreatedAtMapByActor())_[K]=ln(oe);const H=T.attributes;for(const[K,oe]of g.getAttributes())H[K]=oe;T.executedAt=ln(g.getExecutedAt()),f.body.case="style",f.body.value=T}else if(A instanceof Up){const g=A,T=new fe.Operation_Increase;T.parentCreatedAt=ln(g.getParentCreatedAt()),T.value=Dx(g.getValue()),T.executedAt=ln(g.getExecutedAt()),f.body.case="increase",f.body.value=T}else if(A instanceof ji){const g=A,T=new fe.Operation_TreeEdit,_=T.createdAtMapByActor;for(const[H,K]of g.getMaxCreatedAtMapByActor())_[H]=ln(K);T.parentCreatedAt=ln(g.getParentCreatedAt()),T.from=AO(g.getFromPos()),T.to=AO(g.getToPos()),T.contents=cie(g.getContents()),T.splitLevel=g.getSplitLevel(),T.executedAt=ln(g.getExecutedAt()),f.body.case="treeEdit",f.body.value=T}else if(A instanceof jp){const g=A,T=new fe.Operation_TreeStyle;T.parentCreatedAt=ln(g.getParentCreatedAt()),T.from=AO(g.getFromPos()),T.to=AO(g.getToPos());const _=T.attributes;for(const[H,K]of g.getAttributes())_[H]=K;T.executedAt=ln(g.getExecutedAt()),f.body.case="treeStyle",f.body.value=T}else throw new An(En.Unimplemented,"unimplemented operation");return f}function iie(A){const f=[];for(const g of A)f.push(rie(g));return f}function oie(A){const f=new fe.Change({id:tie(A.getID()),message:A.getMessage()});return A.hasOperations()&&(f.operations=iie(A.getOperations())),A.hasPresenceChange()&&(f.presenceChange=Jre(A.getPresenceChange())),f}function aie(A){const f=[];for(const g of A)f.push(oie(g));return f}function sie(A){const f=[];for(const g of A)f.push(new fe.RHTNode({key:g.getStrKey(),element:Px(g.getValue())}));return f}function lie(A){const f=[];for(const g of A)f.push(new fe.RGANode({element:Px(g.getValue())}));return f}function uie(A){const f=[];for(const g of A){const T=new fe.TextNode;T.id=nie(g.getID()),T.value=g.getValue().getContent(),T.removedAt=ln(g.getRemovedAt());const _=T.attributes,H=g.getValue().getAttrs();for(const K of H){const oe=new fe.NodeAttr;oe.value=K.getValue(),oe.updatedAt=ln(K.getUpdatedAt()),_[K.getKey()]=oe}f.push(T)}return f}function cie(A){const f=[];if(!A||!A.length)return f;for(const g of A)f.push(new fe.TreeNodes({content:mF(g)}));return f}function mF(A){if(!A)return[];const f=[];return ki(A,(g,T)=>{const _=new fe.TreeNode({id:zg(g.id),type:g.type,removedAt:ln(g.removedAt),depth:T});if(g.isText&&(_.value=g.value),g.insPrevID&&(_.insPrevId=zg(g.insPrevID)),g.insNextID&&(_.insNextId=zg(g.insNextID)),g.attrs)for(const H of g.attrs)_.attributes[H.getKey()]=new fe.NodeAttr({value:H.getValue(),updatedAt:ln(H.getUpdatedAt())});f.push(_)}),f}function die(A){const f=new fe.JSONElement;return f.body.case="jsonObject",f.body.value=new fe.JSONElement_JSONObject({nodes:sie(A.getRHT()),createdAt:ln(A.getCreatedAt()),movedAt:ln(A.getMovedAt()),removedAt:ln(A.getRemovedAt())}),f}function gF(A){const f=new fe.JSONElement;return f.body.case="jsonArray",f.body.value=new fe.JSONElement_JSONArray({nodes:lie(A.getElements()),createdAt:ln(A.getCreatedAt()),movedAt:ln(A.getMovedAt()),removedAt:ln(A.getRemovedAt())}),f}function fie(A){const f=new fe.JSONElement;return f.body.case="primitive",f.body.value=new fe.JSONElement_Primitive({type:pF(A.getType()),value:A.toBytes(),createdAt:ln(A.getCreatedAt()),movedAt:ln(A.getMovedAt()),removedAt:ln(A.getRemovedAt())}),f}function pie(A){const f=new fe.JSONElement;return f.body.case="text",f.body.value=new fe.JSONElement_Text({nodes:uie(A.getRGATreeSplit()),createdAt:ln(A.getCreatedAt()),movedAt:ln(A.getMovedAt()),removedAt:ln(A.getRemovedAt())}),f}function hie(A){const f=new fe.JSONElement;return f.body.case="counter",f.body.value=new fe.JSONElement_Counter({type:hF(A.getType()),value:A.toBytes(),createdAt:ln(A.getCreatedAt()),movedAt:ln(A.getMovedAt()),removedAt:ln(A.getRemovedAt())}),f}function bF(A){const f=new fe.JSONElement;return f.body.case="tree",f.body.value=new fe.JSONElement_Tree({nodes:mF(A.getRoot()),createdAt:ln(A.getCreatedAt()),movedAt:ln(A.getMovedAt()),removedAt:ln(A.getRemovedAt())}),f}function Px(A){if(A instanceof mr)return die(A);if(A instanceof Ho)return gF(A);if(A instanceof Cr)return fie(A);if(A instanceof ui)return pie(A);if(A instanceof Ua)return hie(A);if(A instanceof Sn)return bF(A);throw new An(En.Unimplemented,"unimplemented element")}function mie(A){return new fe.ChangePack({documentKey:A.getDocumentKey(),checkpoint:eie(A.getCheckpoint()),isRemoved:A.getIsRemoved(),changes:aie(A.getChanges()),snapshot:A.getSnapshot(),minSyncedTicket:ln(A.getMinSyncedTicket())})}function gie(A){return Ba.of(A.clientSeq,Wr.fromString(A.lamport,!0),Fx(A.actorId))}function pn(A){if(A)return yr.of(Wr.fromString(A.lamport,!0),A.delimiter,Fx(A.actorId))}function Lx(A){const f={};return Object.entries(A.data).forEach(([g,T])=>{f[g]=JSON.parse(T)}),f}function bie(A){const f=A.type;if(f===fe.PresenceChange_ChangeType.PUT){const g=Lx(A.presence);return{type:Pa.Put,presence:g}}if(f===fe.PresenceChange_ChangeType.CLEAR)return{type:Pa.Clear};throw new An(En.Unsupported,`unsupported type: ${f}`)}function yie(A){const f=new Map;return Object.entries(A).forEach(([g,T])=>{f.set(g,Lx(T))}),f}function yF(A){switch(A){case fe.ValueType.NULL:return Kt.Null;case fe.ValueType.BOOLEAN:return Kt.Boolean;case fe.ValueType.INTEGER:return Kt.Integer;case fe.ValueType.LONG:return Kt.Long;case fe.ValueType.DOUBLE:return Kt.Double;case fe.ValueType.STRING:return Kt.String;case fe.ValueType.BYTES:return Kt.Bytes;case fe.ValueType.DATE:return Kt.Date}throw new An(En.Unimplemented,`unimplemented value type: ${A}`)}function _O(A){switch(A){case fe.ValueType.INTEGER_CNT:return ci.IntegerCnt;case fe.ValueType.LONG_CNT:return ci.LongCnt}throw new An(En.Unimplemented,`unimplemented value type: ${A}`)}function Mx(A){switch(A.type){case fe.ValueType.JSON_OBJECT:return A.value?kF(A.value):mr.create(pn(A.createdAt));case fe.ValueType.JSON_ARRAY:return A.value?_ie(A.value):Ho.create(pn(A.createdAt));case fe.ValueType.TEXT:return ui.create(Bp.create(),pn(A.createdAt));case fe.ValueType.TREE:return Iie(A.value);case fe.ValueType.NULL:case fe.ValueType.BOOLEAN:case fe.ValueType.INTEGER:case fe.ValueType.LONG:case fe.ValueType.DOUBLE:case fe.ValueType.STRING:case fe.ValueType.BYTES:case fe.ValueType.DATE:return Cr.of(Cr.valueFromBytes(yF(A.type),A.value),pn(A.createdAt));case fe.ValueType.INTEGER_CNT:case fe.ValueType.LONG_CNT:return Ua.create(_O(A.type),Ua.valueFromBytes(_O(A.type),A.value),pn(A.createdAt))}}function RO(A){return sl.of(Ql.of(pn(A.createdAt),A.offset),A.relativeOffset)}function OF(A){return Ql.of(pn(A.createdAt),A.offset)}function Oie(A){const f=Qo.create(A.value);Object.entries(A.attributes).forEach(([T,_])=>{f.setAttr(T,_.value,pn(_.updatedAt))});const g=Nc.create(OF(A.id),f);return g.remove(pn(A.removedAt)),g}function IO(A){return ct.of(Vg(A.parentId),Vg(A.leftSiblingId))}function Vg(A){return Ze.of(pn(A.createdAt),A.offset)}function vie(A){if(!A.length)return;const f=[];return A.forEach(g=>{const T=vF(g.content);f.push(T)}),f}function vF(A){if(A.length===0)return;const f=[];for(const T of A)f.push(Eie(T));const g=f[f.length-1];for(let T=f.length-2;T>=0;T--){let _;for(let H=T+1;H{T.set(_,H.value,pn(H.updatedAt))}),g.attrs=T}return A.insPrevId&&(g.insPrevID=Vg(A.insPrevId)),A.insNextId&&(g.insNextID=Vg(A.insNextId)),g.removedAt=pn(A.removedAt),g}function Sie(A){const f=[];for(const g of A){let T;if(g.body.case==="set"){const _=g.body.value;T=ju.create(_.key,Mx(_.value),pn(_.parentCreatedAt),pn(_.executedAt))}else if(g.body.case==="add"){const _=g.body.value;T=nf.create(pn(_.parentCreatedAt),pn(_.prevCreatedAt),Mx(_.value),pn(_.executedAt))}else if(g.body.case==="move"){const _=g.body.value;T=Hl.create(pn(_.parentCreatedAt),pn(_.prevCreatedAt),pn(_.createdAt),pn(_.executedAt))}else if(g.body.case==="remove"){const _=g.body.value;T=Vl.create(pn(_.parentCreatedAt),pn(_.createdAt),pn(_.executedAt))}else if(g.body.case==="edit"){const _=g.body.value,H=new Map;Object.entries(_.createdAtMapByActor).forEach(([oe,Ce])=>{H.set(oe,pn(Ce))});const K=new Map;Object.entries(_.attributes).forEach(([oe,Ce])=>{K.set(oe,Ce)}),T=Wl.create(pn(_.parentCreatedAt),RO(_.from),RO(_.to),H,_.content,K,pn(_.executedAt))}else if(g.body.case==="style"){const _=g.body.value,H=new Map;Object.entries(_.createdAtMapByActor).forEach(([oe,Ce])=>{H.set(oe,pn(Ce))});const K=new Map;Object.entries(_.attributes).forEach(([oe,Ce])=>{K.set(oe,Ce)}),T=To.create(pn(_.parentCreatedAt),RO(_.from),RO(_.to),H,K,pn(_.executedAt))}else{if(g.body.case==="select")continue;if(g.body.case==="increase"){const _=g.body.value;T=Up.create(pn(_.parentCreatedAt),Mx(_.value),pn(_.executedAt))}else if(g.body.case==="treeEdit"){const _=g.body.value,H=new Map;Object.entries(_.createdAtMapByActor).forEach(([K,oe])=>{H.set(K,pn(oe))}),T=ji.create(pn(_.parentCreatedAt),IO(_.from),IO(_.to),vie(_.contents),_.splitLevel,H,pn(_.executedAt))}else if(g.body.case==="treeStyle"){const _=g.body.value,H=new Map;Object.entries(_.attributes).forEach(([K,oe])=>{H.set(K,oe)}),T=jp.create(pn(_.parentCreatedAt),IO(_.from),IO(_.to),H,pn(_.executedAt))}else throw new An(En.Unimplemented,"unimplemented operation")}f.push(T)}return f}function EF(A){const f=[];for(const g of A)f.push(rf.create({id:gie(g.id),operations:Sie(g.operations),presenceChange:g.presenceChange?bie(g.presenceChange):void 0,message:g.message}));return f}function Tie(A){return Fp.of(Wr.fromString(A.serverSeq,!0),A.clientSeq)}function wie(A){return xO.create(A.documentKey,Tie(A.checkpoint),A.isRemoved,EF(A.changes),A.snapshot,pn(A.minSyncedTicket))}function SF(A){const f=new Bi;for(const T of A.nodes){const _=$x(T.element);f.set(T.key,_,_.getPositionedAt())}const g=new mr(pn(A.createdAt),f);return g.setMovedAt(pn(A.movedAt)),g.setRemovedAt(pn(A.removedAt)),g}function TF(A){const f=new tf;for(const T of A.nodes)f.insert($x(T.element));const g=new Ho(pn(A.createdAt),f);return g.setMovedAt(pn(A.movedAt)),g.setRemovedAt(pn(A.removedAt)),g}function kie(A){const f=Cr.of(Cr.valueFromBytes(yF(A.type),A.value),pn(A.createdAt));return f.setMovedAt(pn(A.movedAt)),f.setRemovedAt(pn(A.removedAt)),f}function xie(A){const f=new Bp;let g=f.getHead();for(const _ of A.nodes){const H=f.insertAfter(g,Oie(_));_.insPrevId&&H.setInsPrev(f.findNode(OF(_.insPrevId))),g=H}const T=new ui(f,pn(A.createdAt));return T.setMovedAt(pn(A.movedAt)),T.setRemovedAt(pn(A.removedAt)),T}function Cie(A){const f=Ua.create(_O(A.type),Ua.valueFromBytes(_O(A.type),A.value),pn(A.createdAt));return f.setMovedAt(pn(A.movedAt)),f.setRemovedAt(pn(A.removedAt)),f}function wF(A){const f=vF(A.nodes);return Sn.create(f,pn(A.createdAt))}function $x(A){if(A.body.case==="jsonObject")return SF(A.body.value);if(A.body.case==="jsonArray")return TF(A.body.value);if(A.body.case==="primitive")return kie(A.body.value);if(A.body.case==="text")return xie(A.body.value);if(A.body.case==="counter")return Cie(A.body.value);if(A.body.case==="tree")return wF(A.body.value);throw new An(En.Unimplemented,"unimplemented element")}function Aie(A){if(!A)return{root:mr.create(to),presences:new Map};const f=fe.Snapshot.fromBinary(A);return{root:$x(f.root),presences:yie(f.presences)}}function kF(A){if(!A)throw new Error("bytes is empty");const f=fe.JSONElement.fromBinary(A);return SF(f.body.value)}function xF(A){return Px(A).toBinary()}function _ie(A){if(!A)throw new Error("bytes is empty");const f=fe.JSONElement.fromBinary(A);return TF(f.body.value)}function Rie(A){return gF(A).toBinary()}function Iie(A){if(!A)throw new Error("bytes is empty");const f=fe.JSONElement.fromBinary(A);return wF(f.body.value)}function Nie(A){return bF(A).toBinary()}function Die(A){return A?Array.from(A).map(f=>f.toString(16).padStart(2,"0")).join(""):""}function Fx(A){return Die(A)}function Pie(A){return new Uint8Array(A.match(/.{1,2}/g).map(f=>parseInt(f,16)))}function Bx(A){return Pie(A)}const Yl={fromPresence:Lx,toChangePack:mie,fromChangePack:wie,fromChanges:EF,objectToBytes:xF,bytesToObject:kF,bytesToSnapshot:Aie,toHexString:Fx,toUint8Array:Bx};class Lie{constructor(f,g,T,_){this.reconnectStreamDelay=f,this.doc=g,this.docID=T,this.isRealtimeSync=_,this.syncMode=zu.PushPull,this.remoteChangeEventReceived=!1}changeRealtimeSync(f){return this.isRealtimeSync===f?!1:f?(this.isRealtimeSync=!0,!0):(this.cancelWatchStream(),this.isRealtimeSync=!1,!0)}changeSyncMode(f){this.syncMode=f}needRealtimeSync(){return this.isRealtimeSync&&(this.doc.hasLocalChanges()||this.remoteChangeEventReceived)}async runWatchLoop(f){const g=async()=>{if(this.watchStream)return Promise.resolve();this.watchLoopTimerID&&(clearTimeout(this.watchLoopTimerID),this.watchLoopTimerID=void 0);try{[this.watchStream,this.watchAbortController]=await f(()=>{this.watchStream=void 0,this.watchAbortController=void 0,this.watchLoopTimerID=setTimeout(g,this.reconnectStreamDelay)})}catch{}};await g()}cancelWatchStream(){this.watchStream&&this.watchAbortController&&(this.watchAbortController.abort(),this.watchStream=void 0,this.watchAbortController=void 0),clearTimeout(this.watchLoopTimerID),this.watchLoopTimerID=void 0}}class zp{constructor(f,g,T,_){this.id=f,this.delimiter=Lp,this.root=g,this.operations=[],this.previousPresence=oa(T),this.presenceChange=void 0,this.reversePresenceKeys=new Set,this.message=_}static create(f,g,T,_){return new zp(f,g,T,_)}push(f){this.operations.push(f)}registerElement(f,g){this.root.registerElement(f,g)}registerRemovedElement(f){this.root.registerRemovedElement(f)}registerElementHasRemovedNodes(f){this.root.registerElementHasRemovedNodes(f)}getChange(){return rf.create({id:this.id,operations:this.operations,presenceChange:this.presenceChange,message:this.message})}hasChange(){return this.operations.length>0||this.presenceChange!==void 0}setPresenceChange(f){this.presenceChange=f}setReversePresence(f,g){for(const T of Object.keys(f))g!=null&&g.addToHistory?this.reversePresenceKeys.add(T):this.reversePresenceKeys.delete(T)}getReversePresence(){if(this.reversePresenceKeys.size===0)return;const f={};for(const g of this.reversePresenceKeys)f[g]=this.previousPresence[g];return f}issueTimeTicket(){return this.delimiter+=1,this.id.createTimeTicket(this.delimiter)}getLastTimeTicket(){return this.id.createTimeTicket(this.delimiter)}}class Hg{constructor(f){this.rootObject=f,this.elementPairMapByCreatedAt=new Map,this.removedElementSetByCreatedAt=new Set,this.elementHasRemovedNodesSetByCreatedAt=new Set,this.opsForTest=[],this.registerElement(f,void 0)}static create(){return new Hg(mr.create(to))}findByCreatedAt(f){const g=this.elementPairMapByCreatedAt.get(f.toIDString());if(g)return g.element}findElementPairByCreatedAt(f){return this.elementPairMapByCreatedAt.get(f.toIDString())}createSubPaths(f){let g=this.elementPairMapByCreatedAt.get(f.toIDString());if(!g)return[];const T=[];for(;g.parent;){const _=g.element.getCreatedAt(),H=g.parent.subPathOf(_);H===void 0&&u.fatal(`cant find the given element: ${_.toIDString()}`),T.unshift(H),g=this.elementPairMapByCreatedAt.get(g.parent.getCreatedAt().toIDString())}return T.unshift("$"),T}createPath(f){return this.createSubPaths(f).join(".")}registerElement(f,g){this.elementPairMapByCreatedAt.set(f.getCreatedAt().toIDString(),{parent:g,element:f}),f instanceof zl&&f.getDescendants((T,_)=>(this.registerElement(T,_),!1))}deregisterElement(f){let g=0;const T=_=>{const H=_.getCreatedAt().toIDString();this.elementPairMapByCreatedAt.delete(H),this.removedElementSetByCreatedAt.delete(H),g++};return T(f),f instanceof zl&&f.getDescendants(_=>(T(_),!1)),g}registerRemovedElement(f){this.removedElementSetByCreatedAt.add(f.getCreatedAt().toIDString())}registerElementHasRemovedNodes(f){this.elementHasRemovedNodesSetByCreatedAt.add(f.getCreatedAt().toIDString())}getElementMapSize(){return this.elementPairMapByCreatedAt.size}getRemovedElementSetSize(){return this.removedElementSetByCreatedAt.size}getObject(){return this.rootObject}getGarbageLen(){let f=0;const g=new Set;for(const T of this.removedElementSetByCreatedAt){g.add(T);const _=this.elementPairMapByCreatedAt.get(T);_.element instanceof zl&&_.element.getDescendants(H=>(g.add(H.getCreatedAt().toIDString()),!1))}f+=g.size;for(const T of this.elementHasRemovedNodesSetByCreatedAt){const H=this.elementPairMapByCreatedAt.get(T).element;f+=H.getRemovedNodesLen()}return f}deepcopy(){return new Hg(this.rootObject.deepcopy())}garbageCollect(f){let g=0;for(const T of this.removedElementSetByCreatedAt){const _=this.elementPairMapByCreatedAt.get(T);_.element.getRemovedAt()&&f.compare(_.element.getRemovedAt())>=0&&(_.parent.purge(_.element),g+=this.deregisterElement(_.element))}for(const T of this.elementHasRemovedNodesSetByCreatedAt){const H=this.elementPairMapByCreatedAt.get(T).element,K=H.purgeRemovedNodesBefore(f);K>0&&this.elementHasRemovedNodesSetByCreatedAt.delete(H.getCreatedAt().toIDString()),g+=K}return g}toJSON(){return this.rootObject.toJSON()}toSortedJSON(){return this.rootObject.toSortedJSON()}}function CF(A,f){const g=new Wg(A);return new Proxy(f,g.getHandlers())}class Wg{constructor(f){this.context=f,this.handlers={set:(g,T,_)=>(u.isEnabled(s.Trivial)&&u.trivial(`obj[${T}]=${JSON.stringify(_)}`),Wg.setInternal(f,g,T,_),!0),get:(g,T)=>(u.isEnabled(s.Trivial)&&u.trivial(`obj[${T}]`),T==="getID"?()=>g.getCreatedAt():T==="toJSON"||T==="toString"?()=>g.toJSON():T==="toJS"?()=>g.toJS():T==="toJSForTest"?()=>g.toJSForTest():of(f,g.get(T))),ownKeys:g=>g.getKeys(),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),deleteProperty:(g,T)=>(u.isEnabled(s.Trivial)&&u.trivial(`obj[${T}]`),Wg.deleteInternal(f,g,T),!0)}}static setInternal(f,g,T,_){if(T.includes("."))throw new An(En.InvalidObjectKey,"key must not contain the '.'.");const H=f.issueTimeTicket(),K=LO(f,_,H),oe=g.set(T,K,H);f.registerElement(K,g),oe&&f.registerRemovedElement(oe),f.push(ju.create(T,K.deepcopy(),g.getCreatedAt(),H))}static buildObjectMembers(f,g){const T={};for(const[_,H]of Object.entries(g)){if(_.includes("."))throw new An(En.InvalidObjectKey,"key must not contain the '.'.");const K=f.issueTimeTicket(),oe=LO(f,H,K);T[_]=oe}return T}static deleteInternal(f,g,T){const _=f.issueTimeTicket(),H=g.deleteByKey(T,_);H&&(f.push(Vl.create(g.getCreatedAt(),H.getCreatedAt(),_)),f.registerRemovedElement(H))}getHandlers(){return this.handlers}}function Mie(A,f){const g=new Jr(A,f);return new Proxy(f,g.getHandlers())}function $ie(A){return typeof A=="string"||A instanceof String?!isNaN(A):!1}function Fie(A){return["concat","entries","every","filter","find","findIndex","forEach","join","keys","map","reduce","reduceRight","slice","some","toLocaleString","toString","values"].includes(A)}class Jr{constructor(f,g){this.context=f,this.array=g,this.handlers={get:(T,_,H)=>_==="getID"?()=>T.getCreatedAt():_==="getElementByID"?K=>{const oe=T.getByID(K);if(!(!oe||oe.isRemoved()))return Dc(f,oe)}:_==="getElementByIndex"?K=>{const oe=T.get(K);return Dc(f,oe)}:_==="getLast"?()=>Dc(f,T.getLast()):_==="deleteByID"?K=>{const oe=Jr.deleteInternalByID(f,T,K);return Dc(f,oe)}:_==="insertAfter"?(K,oe)=>{const Ce=Jr.insertAfterInternal(f,T,K,oe);return Dc(f,Ce)}:_==="insertBefore"?(K,oe)=>{const Ce=Jr.insertBeforeInternal(f,T,K,oe);return Dc(f,Ce)}:_==="moveBefore"?(K,oe)=>{Jr.moveBeforeInternal(f,T,K,oe)}:_==="moveAfter"?(K,oe)=>{Jr.moveAfterInternal(f,T,K,oe)}:_==="moveFront"?K=>{Jr.moveFrontInternal(f,T,K)}:_==="moveLast"?K=>{Jr.moveLastInternal(f,T,K)}:$ie(_)?of(f,T.get(Number(_))):_==="push"?K=>Jr.pushInternal(f,T,K):_==="splice"?(K,oe,...Ce)=>Jr.splice(f,T,K,oe,...Ce):_==="length"?T.length:typeof _=="symbol"&&_===Symbol.iterator?Jr.iteratorInternal.bind(this,f,T):_==="includes"?(K,oe)=>Jr.includes(f,T,K,oe):_==="indexOf"?(K,oe)=>Jr.indexOf(f,T,K,oe):_==="lastIndexOf"?(K,oe)=>Jr.lastIndexOf(f,T,K,oe):_==="toTestString"?()=>Jr.toTestString(T):typeof _=="string"&&Fie(_)?(...K)=>{const oe=Array.from(T).map(Ce=>of(f,Ce));return Array.prototype[_].apply(oe,K)}:Reflect.get(T,_,H),deleteProperty:(T,_)=>(u.isEnabled(s.Trivial)&&u.trivial(`array[${_}]`),Jr.deleteInternalByIndex(f,T,Number.parseInt(_)),!0)}}static*iteratorInternal(f,g){for(const T of g)yield Dc(f,T)}static buildArrayElements(f,g){const T=[];for(const _ of g){const H=f.issueTimeTicket(),K=LO(f,_,H);T.push(K)}return T}static pushInternal(f,g,T){return Jr.insertAfterInternal(f,g,g.getLastCreatedAt(),T),g.length}static moveBeforeInternal(f,g,T,_){const H=f.issueTimeTicket(),K=g.getPrevCreatedAt(T);g.moveAfter(K,_,H),f.push(Hl.create(g.getCreatedAt(),K,_,H))}static moveAfterInternal(f,g,T,_){const H=f.issueTimeTicket();g.moveAfter(T,_,H),f.push(Hl.create(g.getCreatedAt(),T,_,H))}static moveFrontInternal(f,g,T){const _=f.issueTimeTicket(),H=g.getHead();g.moveAfter(H.getCreatedAt(),T,_),f.push(Hl.create(g.getCreatedAt(),H.getCreatedAt(),T,_))}static moveLastInternal(f,g,T){const _=f.issueTimeTicket(),H=g.getLastCreatedAt();g.moveAfter(H,T,_),f.push(Hl.create(g.getCreatedAt(),H,T,_))}static insertAfterInternal(f,g,T,_){const H=f.issueTimeTicket(),K=LO(f,_,H);return g.insertAfter(T,K),f.registerElement(K,g),f.push(nf.create(g.getCreatedAt(),T,K.deepcopy(),H)),K}static insertBeforeInternal(f,g,T,_){return Jr.insertAfterInternal(f,g,g.getPrevCreatedAt(T),_)}static deleteInternalByIndex(f,g,T){const _=f.issueTimeTicket(),H=g.deleteByIndex(T,_);if(H)return f.push(Vl.create(g.getCreatedAt(),H.getCreatedAt(),_)),f.registerRemovedElement(H),H}static deleteInternalByID(f,g,T){const _=f.issueTimeTicket(),H=g.delete(T,_);return f.push(Vl.create(g.getCreatedAt(),H.getCreatedAt(),_)),f.registerRemovedElement(H),H}static splice(f,g,T,_,...H){const K=g.length,oe=T>=0?Math.min(T,K):Math.max(K+T,0),Ce=_===void 0?K:_<0?oe:Math.min(oe+_,K),Ve=[];for(let yt=oe;yt=K)return!1;if(Cr.isSupport(T))return Array.from(g).map(Ve=>of(f,Ve)).includes(T,oe);for(let Ce=oe;Ce=K)return-1;if(Cr.isSupport(T))return Array.from(g).map(Ve=>of(f,Ve)).indexOf(T,oe);for(let Ce=oe;Ce=K?K-1:_<0?_+K:_;if(oe<0)return-1;if(Cr.isSupport(T))return Array.from(g).map(Ve=>of(f,Ve)).lastIndexOf(T,oe);for(let Ce=oe;Ce>0;Ce--)if(((H=g.get(Ce))===null||H===void 0?void 0:H.getID())===T.getID())return Ce;return-1}static toTestString(f){return f.toTestString()}getHandlers(){return this.handlers}}class NO{constructor(f,g){this.context=f,this.text=g}initialize(f,g){this.context=f,this.text=g}getID(){return this.text.getID()}edit(f,g,T,_){if(!this.context||!this.text){u.fatal("it is not initialized yet");return}if(f>g){u.fatal("from should be less than or equal to to");return}const H=this.text.indexRangeToPosRange(f,g);u.isEnabled(s.Debug)&&u.debug(`EDIT: f:${f}->${H[0].toTestString()}, t:${g}->${H[1].toTestString()} c:${T}`);const K=_?eo(_):void 0,oe=this.context.issueTimeTicket(),[Ce,,Ve]=this.text.edit(H,T,oe,K);return this.context.push(new Wl(this.text.getCreatedAt(),H[0],H[1],Ce,T,K?new Map(Object.entries(K)):new Map,oe)),H[0].equals(H[1])||this.context.registerElementHasRemovedNodes(this.text),this.text.findIndexesFromRange(Ve)}delete(f,g){return this.edit(f,g,"")}empty(){return this.edit(0,this.length,"")}setStyle(f,g,T){if(!this.context||!this.text)return u.fatal("it is not initialized yet"),!1;if(f>g)return u.fatal("from should be less than or equal to to"),!1;const _=this.text.indexRangeToPosRange(f,g);u.isEnabled(s.Debug)&&u.debug(`STYL: f:${f}->${_[0].toTestString()}, t:${g}->${_[1].toTestString()} a:${JSON.stringify(T)}`);const H=eo(T),K=this.context.issueTimeTicket(),[oe]=this.text.setStyle(_,H,K);return this.context.push(new To(this.text.getCreatedAt(),_[0],_[1],oe,new Map(Object.entries(H)),K)),!0}indexRangeToPosRange(f){if(!this.context||!this.text){u.fatal("it is not initialized yet");return}const g=this.text.indexRangeToPosRange(f[0],f[1]);return[g[0].toStruct(),g[1].toStruct()]}posRangeToIndexRange(f){if(!this.context||!this.text){u.fatal("it is not initialized yet");return}const g=this.text.findIndexesFromRange([sl.fromStruct(f[0]),sl.fromStruct(f[1])]);return[g[0],g[1]]}toTestString(){if(!this.context||!this.text){u.fatal("it is not initialized yet");return}return this.text.toTestString()}values(){if(!this.context||!this.text){u.fatal("it is not initialized yet");return}return this.text.values()}get length(){return this.text.length}checkWeight(){return this.text.checkWeight()}toString(){return!this.context||!this.text?(u.fatal("it is not initialized yet"),""):this.text.toString()}createRangeForTest(f,g){if(!this.context||!this.text){u.fatal("it is not initialized yet");return}return this.text.indexRangeToPosRange(f,g)}}class DO{constructor(f,g){this.valueType=f,this.value=g}initialize(f,g){this.valueType=g.getValueType(),this.context=f,this.counter=g,this.value=g.getValue()}getID(){return this.counter.getID()}getValue(){return this.value}getValueType(){return this.valueType}increase(f){if(!this.context||!this.counter){u.fatal("it is not initialized yet");return}const g=this.context.issueTimeTicket(),T=Cr.of(f,g);if(!T.isNumericType())throw new TypeError(`Unsupported type of value: ${typeof T.getValue()}`);return this.counter.increase(T),this.context.push(Up.create(this.counter.getCreatedAt(),T,g)),this}}function Ux(A,f,g){const{type:T}=A,_=g.issueTimeTicket();if(T===wi){AF(A);const{value:H}=A,K=Ot.create(Ze.of(_,0),T,H);f.append(K)}else{const{children:H=[]}=A;let{attributes:K}=A,oe;if(typeof K=="object"&&!Dp(K)){K=eo(K),oe=new La;for(const[Ve,yt]of Object.entries(K))oe.set(Ve,yt,_)}const Ce=Ot.create(Ze.of(_,0),T,void 0,oe);f.append(Ce);for(const Ve of H)Ux(Ve,Ce,g)}}function Bie(A,f){const{type:g}=f,T=A.issueTimeTicket();let _;if(f.type===wi){const{value:H}=f;_=Ot.create(Ze.of(T,0),g,H)}else if(f){const{children:H=[]}=f;let{attributes:K}=f,oe;if(typeof K=="object"&&!Dp(K)){K=eo(K),oe=new La;for(const[Ce,Ve]of Object.entries(K))oe.set(Ce,Ve,T)}_=Ot.create(Ze.of(A.issueTimeTicket(),0),g,void 0,oe);for(const Ce of H)Ux(Ce,_,A)}return _}function AF(A){if(!A.value.length)throw new Error("text node cannot have empty value");return!0}function _F(A){if(!A.length)return!0;if(A[0].type===wi)for(const g of A){const{type:T}=g;if(T!==wi)throw new Error("element node and text node cannot be passed together");AF(g)}else for(const g of A){const{type:T}=g;if(T===wi)throw new Error("element node and text node cannot be passed together")}return!0}class PO{constructor(f){this.initialRoot=f}initialize(f,g){this.context=f,this.tree=g}getID(){return this.tree.getID()}buildRoot(f){if(!this.initialRoot)return Ot.create(Ze.of(f.issueTimeTicket(),0),la);const g=Ot.create(Ze.of(f.issueTimeTicket(),0),this.initialRoot.type);for(const T of this.initialRoot.children)Ux(T,g,f);return g}getSize(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.getSize()}getIndexTree(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.getIndexTree()}styleByPath(f,g){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(!f.length)throw new Error("path should not be empty");const[T,_]=this.tree.pathToPosRange(f),H=this.context.issueTimeTicket(),K=g?eo(g):void 0;this.tree.style([T,_],K,H),this.context.push(jp.create(this.tree.getCreatedAt(),T,_,K?new Map(Object.entries(K)):new Map,H))}style(f,g,T){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(f>g)throw new Error("from should be less than or equal to to");const _=this.tree.findPos(f),H=this.tree.findPos(g),K=this.context.issueTimeTicket(),oe=T?eo(T):void 0;this.tree.style([_,H],oe,K),this.context.push(jp.create(this.tree.getCreatedAt(),_,H,oe?new Map(Object.entries(oe)):new Map,K))}editInternal(f,g,T,_=0){var H;if(T.length!==0&&T[0]&&(_F(T),T[0].type!==wi))for(const Ve of T){const{children:yt=[]}=Ve;_F(yt)}const K=this.context.getLastTimeTicket();let oe=new Array;if(((H=T[0])===null||H===void 0?void 0:H.type)===wi){let Ve="";for(const yt of T){const{value:Ft}=yt;Ve+=Ft}oe.push(Ot.create(Ze.of(this.context.issueTimeTicket(),0),wi,Ve))}else oe=T.map(Ve=>Ve&&Bie(this.context,Ve)).filter(Ve=>Ve);const[,Ce]=this.tree.edit([f,g],oe.length?oe.map(Ve=>Ve==null?void 0:Ve.deepcopy()):void 0,_,K,()=>this.context.issueTimeTicket());return this.context.push(ji.create(this.tree.getCreatedAt(),f,g,oe.length?oe:void 0,_,Ce,K)),f.equals(g)||this.context.registerElementHasRemovedNodes(this.tree),!0}editByPath(f,g,T,_=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(f.length!==g.length)throw new Error("path length should be equal");if(!f.length||!g.length)throw new Error("path should not be empty");const H=this.tree.pathToPos(f),K=this.tree.pathToPos(g);return this.editInternal(H,K,T?[T]:[],_)}editBulkByPath(f,g,T,_=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(f.length!==g.length)throw new Error("path length should be equal");if(!f.length||!g.length)throw new Error("path should not be empty");const H=this.tree.pathToPos(f),K=this.tree.pathToPos(g);return this.editInternal(H,K,T,_)}edit(f,g,T,_=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(f>g)throw new Error("from should be less than or equal to to");const H=this.tree.findPos(f),K=this.tree.findPos(g);return this.editInternal(H,K,T?[T]:[],_)}editBulk(f,g,T,_=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(f>g)throw new Error("from should be less than or equal to to");const H=this.tree.findPos(f),K=this.tree.findPos(g);return this.editInternal(H,K,T,_)}toXML(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.toXML()}toJSON(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.toJSON()}toJSInfoForTest(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.toJSInfoForTest()}getRootTreeNode(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.getRootTreeNode()}indexToPath(f){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.indexToPath(f)}pathToIndex(f){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.pathToIndex(f)}pathRangeToPosRange(f){if(!this.context||!this.tree){u.fatal("it is not initialized yet");return}const g=[this.tree.pathToIndex(f[0]),this.tree.pathToIndex(f[1])],T=this.tree.indexRangeToPosRange(g);return[T[0].toStruct(),T[1].toStruct()]}indexRangeToPosRange(f){if(!this.context||!this.tree){u.fatal("it is not initialized yet");return}return this.tree.indexRangeToPosStructRange(f)}posRangeToIndexRange(f){if(!this.context||!this.tree){u.fatal("it is not initialized yet");return}const g=[ct.fromStruct(f[0]),ct.fromStruct(f[1])];return this.tree.posRangeToIndexRange(g,this.context.getLastTimeTicket())}posRangeToPathRange(f){if(!this.context||!this.tree){u.fatal("it is not initialized yet");return}const g=[ct.fromStruct(f[0]),ct.fromStruct(f[1])];return this.tree.posRangeToPathRange(g,this.context.getLastTimeTicket())}}function RF(A,f){return CF(A,f)}function Dc(A,f){if(f){if(f instanceof Cr)return f;if(f instanceof mr)return CF(A,f);if(f instanceof Ho)return Mie(A,f);if(f instanceof ui)return new NO(A,f);if(f instanceof Ua){const g=new DO(ci.IntegerCnt,0);return g.initialize(A,f),g}else if(f instanceof Sn){const g=new PO;return g.initialize(A,f),g}}else return;throw new TypeError(`Unsupported type of element: ${typeof f}`)}function of(A,f){const g=Dc(A,f);return g instanceof Cr?g.getValue():g}function LO(A,f,g){let T;if(Cr.isSupport(f))T=Cr.of(f,g);else if(Array.isArray(f))T=Ho.create(g,Jr.buildArrayElements(A,f));else if(typeof f=="object")f instanceof NO?(T=ui.create(Bp.create(),g),f.initialize(A,T)):f instanceof DO?(T=Ua.create(f.getValueType(),f.getValue(),g),f.initialize(A,T)):f instanceof PO?(T=Sn.create(f.buildRoot(A),g),f.initialize(A,T)):T=mr.create(g,Wg.buildObjectMembers(A,f));else throw new TypeError(`Unsupported type of value: ${typeof f}`);return T}const IF=50;class Uie{constructor(){this.undoStack=[],this.redoStack=[]}hasUndo(){return this.undoStack.length>0}hasRedo(){return this.redoStack.length>0}pushUndo(f){this.undoStack.length>=IF&&this.undoStack.shift(),this.undoStack.push(f)}popUndo(){return this.undoStack.pop()}pushRedo(f){this.redoStack.length>=IF&&this.redoStack.shift(),this.redoStack.push(f)}popRedo(){return this.redoStack.pop()}clearRedo(){this.redoStack=[]}getUndoStackForTest(){return this.undoStack}getRedoStackForTest(){return this.redoStack}}const jie="yorkie-devtools-panel",zie="yorkie-devtools-sdk";var Ts;(function(A){A.Detached="detached",A.Attached="attached",A.Removed="removed"})(Ts||(Ts={}));var Ln;(function(A){A.Snapshot="snapshot",A.LocalChange="local-change",A.RemoteChange="remote-change",A.Initialized="initialized",A.Watched="watched",A.Unwatched="unwatched",A.PresenceChanged="presence-changed"})(Ln||(Ln={}));class NF{constructor(f,g){this.opts=g||{},this.key=f,this.status=Ts.Detached,this.root=Hg.create(),this.changeID=Nx,this.checkpoint=Zre,this.localChanges=[],this.eventStream=h(T=>{this.eventStreamObserver=T}),this.onlineClients=new Set,this.presences=new Map,this.isUpdating=!1,this.internalHistory=new Uie,this.history={canUndo:this.canUndo.bind(this),canRedo:this.canRedo.bind(this),undo:this.undo.bind(this),redo:this.redo.bind(this)}}update(f,g){if(this.getStatus()===Ts.Removed)throw new An(En.DocumentRemoved,`${this.key} is removed`);this.ensureClone();const T=this.changeID.getActorID(),_=zp.create(this.changeID.next(),this.clone.root,this.clone.presences.get(T)||{},g);try{const H=RF(_,this.clone.root.getObject());this.presences.has(T)||this.clone.presences.set(T,{}),this.isUpdating=!0,f(H,new Pp(_,this.clone.presences.get(T)))}catch(H){throw this.clone=void 0,u.error(H),H}finally{this.isUpdating=!1}if(_.hasChange()){u.isEnabled(s.Trivial)&&u.trivial(`trying to update a local change: ${this.toJSON()}`);const H=_.getChange(),{opInfos:K,reverseOps:oe}=H.execute(this.root,this.presences,xr.Local),Ce=_.getReversePresence();Ce&&oe.push({type:"presence",value:Ce}),this.localChanges.push(H),oe.length>0&&this.internalHistory.pushUndo(oe),K.length>0&&this.internalHistory.clearRedo(),this.changeID=H.getID(),K.length>0&&this.publish({type:Ln.LocalChange,value:{message:H.getMessage()||"",operations:K,actor:T}}),H.hasPresenceChange()&&this.publish({type:Ln.PresenceChanged,value:{clientID:T,presence:this.getPresence(T)}}),u.isEnabled(s.Trivial)&&u.trivial(`after update a local change: ${this.toJSON()}`)}}subscribe(f,g,T,_){if(typeof f=="string"){if(typeof g!="function")throw new Error("Second argument must be a callback function");if(f==="presence"){const oe=g;return this.eventStream.subscribe(Ce=>{Ce.type!==Ln.Initialized&&Ce.type!==Ln.Watched&&Ce.type!==Ln.Unwatched&&Ce.type!==Ln.PresenceChanged||oe(Ce)},T,_)}if(f==="my-presence"){const oe=g;return this.eventStream.subscribe(Ce=>{Ce.type!==Ln.Initialized&&Ce.type!==Ln.Watched&&Ce.type!==Ln.Unwatched&&Ce.type!==Ln.PresenceChanged||Ce.type!==Ln.Initialized&&Ce.value.clientID!==this.changeID.getActorID()||oe(Ce)},T,_)}if(f==="others"){const oe=g;return this.eventStream.subscribe(Ce=>{Ce.type!==Ln.Watched&&Ce.type!==Ln.Unwatched&&Ce.type!==Ln.PresenceChanged||Ce.value.clientID!==this.changeID.getActorID()&&oe(Ce)},T,_)}const H=f,K=g;return this.eventStream.subscribe(oe=>{if(oe.type===Ln.Initialized||oe.type===Ln.Watched||oe.type===Ln.Unwatched||oe.type===Ln.PresenceChanged)return;if(oe.type===Ln.Snapshot){H==="$"&&K(oe);return}const{message:Ce,operations:Ve,actor:yt}=oe.value,Ft=[];for(const ft of Ve)this.isSameElementOrChildOf(ft.path,H)&&Ft.push(ft);Ft.length&&K({type:oe.type,value:{message:Ce,operations:Ft,actor:yt}})},T,_)}if(typeof f=="function"){const H=f,K=g,oe=T;return this.eventStream.subscribe(Ce=>{Ce.type===Ln.Initialized||Ce.type===Ln.Watched||Ce.type===Ln.Unwatched||Ce.type===Ln.PresenceChanged||H(Ce)},K,oe)}throw new Error(`"${f}" is not a valid`)}publish(f){this.eventStreamObserver&&this.eventStreamObserver.next(f)}isSameElementOrChildOf(f,g){if(g===f)return!0;const T=f.split(".");return g.split(".").every((H,K)=>H===T[K])}applyChangePack(f){for(f.hasSnapshot()?this.applySnapshot(f.getCheckpoint().getServerSeq(),f.getSnapshot()):f.hasChanges()&&this.applyChanges(f.getChanges());this.localChanges.length&&!(this.localChanges[0].getID().getClientSeq()>f.getCheckpoint().getClientSeq());)this.localChanges.shift();this.checkpoint=this.checkpoint.forward(f.getCheckpoint()),this.garbageCollect(f.getMinSyncedTicket()),f.getIsRemoved()&&this.setStatus(Ts.Removed),u.isEnabled(s.Trivial)&&u.trivial(`${this.root.toJSON()}`)}getCheckpoint(){return this.checkpoint}getChangeID(){return this.changeID}hasLocalChanges(){return this.localChanges.length>0}ensureClone(){this.clone||(this.clone={root:this.root.deepcopy(),presences:oa(this.presences)})}createChangePack(){const f=Array.from(this.localChanges),g=this.checkpoint.increaseClientSeq(f.length);return xO.create(this.key,g,!1,f)}setActor(f){for(const g of this.localChanges)g.setActor(f);this.changeID=this.changeID.setActor(f)}getKey(){return this.key}setStatus(f){this.status=f}getStatus(){return this.status}getCloneRoot(){if(this.clone)return this.clone.root.getObject()}getRoot(){this.ensureClone();const f=zp.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});return RF(f,this.clone.root.getObject())}getOpsForTest(){return this.root.opsForTest}garbageCollect(f){return this.opts.disableGC?0:(this.clone&&this.clone.root.garbageCollect(f),this.root.garbageCollect(f))}getRootObject(){return this.root.getObject()}getGarbageLen(){return this.root.getGarbageLen()}getGarbageLenFromClone(){return this.clone.root.getGarbageLen()}toJSON(){return this.root.toJSON()}toSortedJSON(){return this.root.toSortedJSON()}toJSForTest(){return{...this.getRoot().toJSForTest(),key:"root"}}applySnapshot(f,g){const{root:T,presences:_}=Yl.bytesToSnapshot(g);this.root=new Hg(T),this.presences=_,this.changeID=this.changeID.syncLamport(f),this.clone=void 0,this.publish({type:Ln.Snapshot,value:g})}applyChanges(f){u.isEnabled(s.Debug)&&u.debug(`trying to apply ${f.length} remote changes.elements:${this.root.getElementMapSize()}, removeds:${this.root.getRemovedElementSetSize()}`),u.isEnabled(s.Trivial)&&u.trivial(f.map(g=>`${g.getID().toTestString()} ${g.toTestString()}`).join(` -`)),this.ensureClone();for(const g of f){g.execute(this.clone.root,this.clone.presences,xr.Remote);let T;const _=g.getID().getActorID();if(g.hasPresenceChange()&&this.onlineClients.has(_)){const K=g.getPresenceChange();switch(K.type){case Pa.Put:T={type:this.presences.has(_)?Ln.PresenceChanged:Ln.Watched,value:{clientID:_,presence:K.presence}};break;case Pa.Clear:T={type:Ln.Unwatched,value:{clientID:_,presence:this.getPresence(_)}},this.removeOnlineClient(_);break}}const{opInfos:H}=g.execute(this.root,this.presences,xr.Remote);H.length>0&&this.publish({type:Ln.RemoteChange,value:{actor:_,message:g.getMessage()||"",operations:H}}),T&&this.publish(T),this.changeID=this.changeID.syncLamport(g.getID().getLamport())}u.isEnabled(s.Debug)&&u.debug(`after appling ${f.length} remote changes.elements:${this.root.getElementMapSize()}, removeds:${this.root.getRemovedElementSetSize()}`)}getValueByPath(f){if(!f.startsWith("$"))throw new An(En.InvalidArgument,'path must start with "$"');const g=f.split(".");g.shift();let T=this.getRoot();for(const _ of g)if(T=T[_],T===void 0)return;return T}setOnlineClients(f){this.onlineClients=f}addOnlineClient(f){this.onlineClients.add(f)}removeOnlineClient(f){this.onlineClients.delete(f)}hasPresence(f){return this.presences.has(f)}getMyPresence(){if(this.status!==Ts.Attached)return{};const f=this.presences.get(this.changeID.getActorID());return oa(f)}getPresence(f){if(!this.onlineClients.has(f))return;const g=this.presences.get(f);return g?oa(g):void 0}getPresenceForTest(f){const g=this.presences.get(f);return g?oa(g):void 0}getPresences(){const f=[];for(const g of this.onlineClients)this.presences.has(g)&&f.push({clientID:g,presence:oa(this.presences.get(g))});return f}getSelfForTest(){return{clientID:this.getChangeID().getActorID(),presence:this.getMyPresence()}}getOthersForTest(){const f=this.getChangeID().getActorID();return this.getPresences().filter(g=>g.clientID!==f).sort((g,T)=>g.clientID>T.clientID?1:-1)}canUndo(){return this.internalHistory.hasUndo()&&!this.isUpdating}canRedo(){return this.internalHistory.hasRedo()&&!this.isUpdating}undo(){if(this.isUpdating)throw new Error("Undo is not allowed during an update");const f=this.internalHistory.popUndo();if(f===void 0)throw new Error("There is no operation to be undone");this.ensureClone();const g=zp.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});for(const Ce of f){if(!(Ce instanceof $r)){new Pp(g,oa(this.clone.presences.get(this.changeID.getActorID()))).set(Ce.value,{addToHistory:!0});continue}const Ve=g.issueTimeTicket();Ce.setExecutedAt(Ve),g.push(Ce)}const T=g.getChange();T.execute(this.clone.root,this.clone.presences,xr.UndoRedo);const{opInfos:_,reverseOps:H}=T.execute(this.root,this.presences,xr.UndoRedo),K=g.getReversePresence();if(K&&H.push({type:"presence",value:K}),H.length>0&&this.internalHistory.pushRedo(H),!T.hasPresenceChange()&&_.length===0)return;this.localChanges.push(T),this.changeID=T.getID();const oe=this.changeID.getActorID();_.length>0&&this.publish({type:Ln.LocalChange,value:{message:T.getMessage()||"",operations:_,actor:oe}}),T.hasPresenceChange()&&this.publish({type:Ln.PresenceChanged,value:{clientID:oe,presence:this.getPresence(oe)}})}redo(){if(this.isUpdating)throw new Error("Redo is not allowed during an update");const f=this.internalHistory.popRedo();if(f===void 0)throw new Error("There is no operation to be redone");this.ensureClone();const g=zp.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});for(const Ce of f){if(!(Ce instanceof $r)){new Pp(g,oa(this.clone.presences.get(this.changeID.getActorID()))).set(Ce.value,{addToHistory:!0});continue}const Ve=g.issueTimeTicket();Ce.setExecutedAt(Ve),g.push(Ce)}const T=g.getChange();T.execute(this.clone.root,this.clone.presences,xr.UndoRedo);const{opInfos:_,reverseOps:H}=T.execute(this.root,this.presences,xr.UndoRedo),K=g.getReversePresence();if(K&&H.push({type:"presence",value:K}),H.length>0&&this.internalHistory.pushUndo(H),!T.hasPresenceChange()&&_.length===0)return;this.localChanges.push(T),this.changeID=T.getID();const oe=this.changeID.getActorID();_.length>0&&this.publish({type:Ln.LocalChange,value:{message:T.getMessage()||"",operations:_,actor:oe}}),T.hasPresenceChange()&&this.publish({type:Ln.PresenceChanged,value:{clientID:oe,presence:this.getPresence(oe)}})}getUndoStackForTest(){return this.internalHistory.getUndoStackForTest()}getRedoStackForTest(){return this.internalHistory.getRedoStackForTest()}}function Vie(A,f){return g=>async T=>(A&&T.header.set("x-api-key",A),f&&T.header.set("authorization",f),await g(T))}const DF=JSON.parse('{"u2":"yorkie-js-sdk","i8":"0.4.13"}');function Hie(){return A=>async f=>(f.header.set("x-yorkie-user-agent",DF.u2+"/"+DF.i8),await A(f))}var zu;(function(A){A.PushPull="pushpull",A.PushOnly="pushonly"})(zu||(zu={}));var Pc;(function(A){A.Deactivated="deactivated",A.Activated="activated"})(Pc||(Pc={}));var af;(function(A){A.Connected="connected",A.Disconnected="disconnected"})(af||(af={}));var Vp;(function(A){A.Synced="synced",A.SyncFailed="sync-failed"})(Vp||(Vp={}));var ja;(function(A){A.StatusChanged="status-changed",A.DocumentChanged="document-changed",A.StreamConnectionStatusChanged="stream-connection-status-changed",A.DocumentSynced="document-synced"})(ja||(ja={}));const MO={syncLoopDuration:50,retrySyncLoopDelay:1e3,reconnectStreamDelay:1e3};class PF{constructor(f,g){g=g||MO,this.key=g.key?g.key:c(),this.status=Pc.Deactivated,this.attachmentMap=new Map,this.apiKey=g.apiKey||"",this.syncLoopDuration=g.syncLoopDuration||MO.syncLoopDuration,this.reconnectStreamDelay=g.reconnectStreamDelay||MO.reconnectStreamDelay,this.retrySyncLoopDelay=g.retrySyncLoopDelay||MO.retrySyncLoopDelay,this.rpcClient=z(Ae.V,ve({baseUrl:f,interceptors:[Vie(g.apiKey,g.token),Hie()]})),this.eventStream=h(T=>{this.eventStreamObserver=T})}activate(){return this.isActive()?Promise.resolve():this.rpcClient.activateClient({clientKey:this.key},{headers:{"x-shard-key":this.apiKey}}).then(f=>{this.id=f.clientId,this.status=Pc.Activated,this.runSyncLoop(),this.eventStreamObserver.next({type:ja.StatusChanged,value:this.status}),u.info(`[AC] c:"${this.getKey()}" activated, id:"${this.id}"`)}).catch(f=>{throw u.error(`[AC] c:"${this.getKey()}" err :`,f),f})}deactivate(){if(this.status===Pc.Deactivated)return Promise.resolve();for(const[f]of this.attachmentMap)this.detachInternal(f);return this.rpcClient.deactivateClient({clientKey:this.key,clientId:this.id},{headers:{"x-shard-key":this.apiKey}}).then(()=>{this.status=Pc.Deactivated,this.eventStreamObserver.next({type:ja.StatusChanged,value:this.status}),u.info(`[DC] c"${this.getKey()}" deactivated`)}).catch(f=>{throw u.error(`[DC] c:"${this.getKey()}" err :`,f),f})}attach(f,g={}){var T;if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);if(f.getStatus()!==Ts.Detached)throw new An(En.DocumentNotDetached,`${f.getKey()} is not detached`);f.setActor(this.id),f.update((H,K)=>K.set(g.initialPresence||{}));const _=(T=g.isRealtimeSync)!==null&&T!==void 0?T:!0;return this.rpcClient.attachDocument({clientKey:this.key,clientId:this.id,changePack:Yl.toChangePack(f.createChangePack())},{headers:{"x-shard-key":`${this.apiKey}/${f.getKey()}`}}).then(async H=>{const K=Yl.fromChangePack(H.changePack);return f.applyChangePack(K),f.getStatus()===Ts.Removed||(f.setStatus(Ts.Attached),this.attachmentMap.set(f.getKey(),new Lie(this.reconnectStreamDelay,f,H.documentId,_)),_&&await this.runWatchLoop(f.getKey()),u.info(`[AD] c:"${this.getKey()}" attaches d:"${f.getKey()}"`)),f}).catch(H=>{throw u.error(`[AD] c:"${this.getKey()}" err :`,H),H})}detach(f,g={}){var T;if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);const _=this.attachmentMap.get(f.getKey());if(!_)throw new An(En.DocumentNotAttached,`${f.getKey()} is not attached`);return f.update((H,K)=>K.clear()),this.rpcClient.detachDocument({clientKey:this.key,clientId:this.id,documentId:_.docID,changePack:Yl.toChangePack(f.createChangePack()),removeIfNotAttached:(T=g.removeIfNotAttached)!==null&&T!==void 0?T:!1},{headers:{"x-shard-key":`${this.apiKey}/${f.getKey()}`}}).then(H=>{const K=Yl.fromChangePack(H.changePack);return f.applyChangePack(K),f.getStatus()!==Ts.Removed&&f.setStatus(Ts.Detached),this.detachInternal(f.getKey()),u.info(`[DD] c:"${this.getKey()}" detaches d:"${f.getKey()}"`),f}).catch(H=>{throw u.error(`[DD] c:"${this.getKey()}" err :`,H),H})}pause(f){if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);return this.changeRealtimeSync(f,!1)}resume(f){if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);return this.changeRealtimeSync(f,!0)}pauseRemoteChanges(f){if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);const g=this.attachmentMap.get(f.getKey());if(!g)throw new An(En.DocumentNotAttached,`${f.getKey()} is not attached`);g.changeSyncMode(zu.PushOnly)}resumeRemoteChanges(f){if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);const g=this.attachmentMap.get(f.getKey());if(!g)throw new An(En.DocumentNotAttached,`${f.getKey()} is not attached`);g.changeSyncMode(zu.PushPull),g.remoteChangeEventReceived=!0}async changeRealtimeSync(f,g){const T=this.attachmentMap.get(f.getKey());if(!T)throw new An(En.DocumentNotAttached,`${f.getKey()} is not attached`);return T.changeRealtimeSync(g)?g?(T.remoteChangeEventReceived=!0,await this.runWatchLoop(f.getKey()),f):(this.eventStreamObserver.next({type:ja.StreamConnectionStatusChanged,value:af.Disconnected}),u.debug(`[WD] c:"${this.getKey()}" unwatches`),f):f}sync(f,g=zu.PushPull){if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);const T=[];if(f){const _=this.attachmentMap.get(f.getKey());if(!_)throw new An(En.DocumentNotAttached,`${f.getKey()} is not attached`);T.push(this.syncInternal(_,g))}else this.attachmentMap.forEach(_=>{T.push(this.syncInternal(_,_.syncMode))});return Promise.all(T).catch(_=>{throw this.eventStreamObserver.next({type:ja.DocumentSynced,value:Vp.SyncFailed}),_})}remove(f){if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);const g=this.attachmentMap.get(f.getKey());if(!g)throw new An(En.DocumentNotAttached,`${f.getKey()} is not attached`);f.setActor(this.id);const T=Yl.toChangePack(f.createChangePack());return T.isRemoved=!0,this.rpcClient.removeDocument({clientKey:this.key,clientId:this.id,documentId:g.docID,changePack:T},{headers:{"x-shard-key":`${this.apiKey}/${f.getKey()}`}}).then(_=>{const H=Yl.fromChangePack(_.changePack);f.applyChangePack(H),this.detachInternal(f.getKey()),u.info(`[RD] c:"${this.getKey()}" removes d:"${f.getKey()}"`)}).catch(_=>{throw u.error(`[RD] c:"${this.getKey()}" err :`,_),_})}subscribe(f,g,T){return this.eventStream.subscribe(f,g,T)}getID(){return this.id}getKey(){return this.key}isActive(){return this.status===Pc.Activated}getStatus(){return this.status}runSyncLoop(){const f=()=>{if(!this.isActive()){u.debug(`[SL] c:"${this.getKey()}" exit sync loop`);return}const g=[];for(const[,T]of this.attachmentMap)T.needRealtimeSync()&&(T.remoteChangeEventReceived=!1,g.push(this.syncInternal(T,T.syncMode)));Promise.all(g).then(()=>setTimeout(f,this.syncLoopDuration)).catch(T=>{u.error(`[SL] c:"${this.getKey()}" sync failed:`,T),this.eventStreamObserver.next({type:ja.DocumentSynced,value:Vp.SyncFailed}),setTimeout(f,this.retrySyncLoopDelay)})};u.debug(`[SL] c:"${this.getKey()}" run sync loop`),f()}async runWatchLoop(f){const g=this.attachmentMap.get(f);if(!g)throw new An(En.DocumentNotAttached,`${f} is not attached`);return g.runWatchLoop(T=>{if(!this.isActive())return Promise.reject(new An(En.ClientNotActive,`${this.key} is not active`));const _=new AbortController,H=this.rpcClient.watchDocument({clientKey:this.key,clientId:this.id,documentKey:f,documentId:g.docID},{headers:{"x-shard-key":`${this.apiKey}/${f}`},signal:_.signal});return this.eventStreamObserver.next({type:ja.StreamConnectionStatusChanged,value:af.Connected}),u.info(`[WD] c:"${this.getKey()}" watches d:"${f}"`),new Promise((K,oe)=>{(async()=>{try{for await(const Ve of H)this.handleWatchDocumentsResponse(g,Ve),Ve.body.case==="initialization"&&K([H,_])}catch(Ve){this.eventStreamObserver.next({type:ja.StreamConnectionStatusChanged,value:af.Disconnected}),u.debug(`[WD] c:"${this.getKey()}" unwatches`),T(),oe(Ve)}})()})})}handleWatchDocumentsResponse(f,g){const T=f.doc.getKey();if(g.body.case==="initialization"){const _=g.body.value.clientIds,H=new Set;for(const K of _)H.add(K);f.doc.setOnlineClients(H),f.doc.publish({type:Ln.Initialized,value:f.doc.getPresences()});return}else if(g.body.case==="event"){const _=g.body.value,H=_.type,K=_.publisher;switch(H){case fe.DocEventType.DOCUMENT_CHANGED:f.remoteChangeEventReceived=!0,this.eventStreamObserver.next({type:ja.DocumentChanged,value:[T]});break;case fe.DocEventType.DOCUMENT_WATCHED:f.doc.addOnlineClient(K),f.doc.hasPresence(K)&&f.doc.publish({type:Ln.Watched,value:{clientID:K,presence:f.doc.getPresence(K)}});break;case fe.DocEventType.DOCUMENT_UNWATCHED:{const oe=f.doc.getPresence(K);f.doc.removeOnlineClient(K),oe&&f.doc.publish({type:Ln.Unwatched,value:{clientID:K,presence:oe}});break}}}}detachInternal(f){const g=this.attachmentMap.get(f);g&&(g.cancelWatchStream(),u.debug(`[WD] c:"${this.getKey()}" unwatches`),this.eventStreamObserver.next({type:ja.StreamConnectionStatusChanged,value:af.Disconnected}),this.attachmentMap.delete(f))}syncInternal(f,g){const{doc:T,docID:_}=f,H=T.createChangePack();return this.rpcClient.pushPullChanges({clientKey:this.key,clientId:this.id,documentId:_,changePack:Yl.toChangePack(H),pushOnly:g===zu.PushOnly},{headers:{"x-shard-key":`${this.apiKey}/${T.getKey()}`}}).then(K=>{const oe=Yl.fromChangePack(K.changePack);if(oe.hasChanges()&&g===zu.PushOnly)return T;T.applyChangePack(oe),this.eventStreamObserver.next({type:ja.DocumentSynced,value:Vp.Synced}),T.getStatus()===Ts.Removed&&this.detachInternal(T.getKey());const Ce=T.getKey(),Ve=oe.getChangeSize();return u.info(`[PP] c:"${this.getKey()}" sync d:"${Ce}", push:${H.getChangeSize()} pull:${Ve} cp:${oe.getCheckpoint().toTestString()}`),T}).catch(K=>{throw u.error(`[PP] c:"${this.getKey()}" err :`,K),K})}}const Wie={Client:PF,Document:NF,Primitive:Cr,Text:NO,Counter:DO,Tree:PO,IntType:ci.IntegerCnt,LongType:ci.LongCnt}})(),a})())})(DK);var MR=DK.exports;class hPe{constructor(t,n){Go(this,"doc");Go(this,"client");this.doc=t,this.client=n}}const jP=Gt.define({combine(e){return e[e.length-1]}}),z9=Ll.define();class mPe{constructor(t){Go(this,"view");Go(this,"conf");Go(this,"_doc");Go(this,"_observer");Go(this,"_unsubscribe");this.view=t,this.conf=t.state.facet(jP),this._observer=n=>{if(n.type!=="remote-change")return;const{operations:r}=n.value;r.forEach(i=>{if(i.type==="edit"){const o=[{from:Math.max(0,i.from),to:Math.max(0,i.to),insert:i.value.content}];t.dispatch({changes:o,annotations:[z9.of(this.conf)]})}})},this._doc=this.conf.doc,this._unsubscribe=this._doc.subscribe("$.content",this._observer)}update(t){!t.docChanged||t.transactions.length>0&&t.transactions[0].annotation(z9)===this.conf||this._doc.update((n,r)=>{t.changes.iterChanges((i,o,a,s,l)=>{n.content||(n.content=new MR.Text);const u=l.sliceString(0,l.length,` -`),c=n.content.edit(i,o,u);c&&r.set({selection:n.content.indexRangeToPosRange(c)})})})}destroy(){this._unsubscribe()}}const gPe=Kr.fromClass(mPe);class bPe{constructor(t,n){this.left=t,this.right=n}}const zv=(e,t)=>new bPe(e,t),yPe=(e,t)=>e.forEach(n=>t(n.left,n.right)),Pu=typeof document<"u"?document:{},OPe=e=>Pu.createElement(e),vPe=()=>Pu.createDocumentFragment(),EPe=e=>Pu.createTextNode(e);typeof DOMParser<"u"&&new DOMParser;const SPe=(e,t)=>(yPe(t,(n,r)=>{r===!1?e.removeAttribute(n):r===!0?e.setAttribute(n,""):e.setAttribute(n,r)}),e),TPe=e=>{const t=vPe();for(let n=0;n(PK(e,TPe(t)),e),SA=(e,t=[],n=[])=>wPe(SPe(OPe(e),t),n),Vv=EPe,PK=(e,t)=>e.appendChild(t);Pu.ELEMENT_NODE;Pu.TEXT_NODE;Pu.CDATA_SECTION_NODE;Pu.COMMENT_NODE;Pu.DOCUMENT_NODE;Pu.DOCUMENT_TYPE_NODE;Pu.DOCUMENT_FRAGMENT_NODE;const kPe=Vt.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"}}),xPe=Ll.define();class CPe extends Nu{constructor(n,r){super();Go(this,"color");Go(this,"name");this.color=n,this.name=r}toDOM(){return SA("span",[zv("class","cm-ySelectionCaret"),zv("style",`background-color: ${this.color}; border-color: ${this.color}`)],[Vv("⁠"),SA("div",[zv("class","cm-ySelectionCaretDot")]),Vv("⁠"),SA("div",[zv("class","cm-ySelectionInfo")],[Vv(this.name)]),Vv("⁠")])}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 APe{constructor(t){Go(this,"conf");Go(this,"decorations");Go(this,"unsubscribe");this.conf=t.state.facet(jP),this.unsubscribe=this.conf.doc.subscribe("others",n=>{const r=[];n.type==="presence-changed"&&(this.conf.doc.getPresences().forEach(i=>{if(i.clientID===this.conf.client.getID()||i.presence.selection==null)return;const o=this.conf.doc.getRoot().content.posRangeToIndexRange(i.presence.selection),a=i.presence.color,s=i.presence.name,l=Math.min(o[0],o[1]),u=Math.max(o[0],o[1]),c=t.state.doc.lineAt(l),d=t.state.doc.lineAt(u);if(c.number===d.number)r.push({from:l,to:u,value:sn.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})});else{r.push({from:l,to:c.from+c.length,value:sn.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})}),r.push({from:d.from,to:u,value:sn.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})});for(let p=c.number+1;p0?-1:1,block:!1,widget:new CPe(a,s)})})}),this.decorations=sn.set(r,!0),r.length>0&&t.dispatch({annotations:[xPe.of([])]}))}),this.decorations=Xn.of([])}destroy(){this.unsubscribe()}update(t){this.conf.doc.update((n,r)=>{const o=t.view.hasFocus&&t.view.dom.ownerDocument.hasFocus()?t.state.selection.main:null;if(o&&n.content){const a=n.content.indexRangeToPosRange([o.anchor,o.head]);r.set({selection:a})}})}}const _Pe=Kr.fromClass(APe,{decorations:e=>e.decorations});function RPe(e,t){const n=new hPe(e,t),r=[jP.of(n),gPe];return t&&r.push(kPe,_Pe),r}function Hv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const IPe=e=>{const t=window.document.createElement("span");return t.classList.add(`codemirror-toolbar__${e.type}`),t},NPe=e=>{const t=window.document.createElement("button");return t.classList.add("codemirror-toolbar__item"),t.dataset.item=e.key,t.title=e.label,t.innerHTML=`${e.icon||""}`,t},DPe=e=>{const t=window.document.createElement("div");t.classList.add("codemirror-toolbar");const n=window.document.createDocumentFragment();return n.append(...e.items.map(r=>"type"in r?IPe(r):NPe(r))),t.appendChild(n),t};class PPe{handleClick(t){const n=t.target;if(n&&n.tagName==="BUTTON"){const r=n.dataset.item;if(r){const i=this.handlers[r];if(i){t.preventDefault(),t.stopPropagation(),i(this.view);return}}}this.view.focus()}destroy(){this.element.remove()}constructor(t,n){Hv(this,"view",void 0),Hv(this,"element",void 0),Hv(this,"config",void 0),Hv(this,"handlers",void 0),this.view=t,this.handlers={},this.config={...n,items:n.items.map((i,o)=>{var s;if("type"in i)return{...i};const a=i.key||i.command.displayName||((s=i.command)==null?void 0:s.name)||`cmd_${o}`;return this.handlers[a]=i.command,{...i,key:a}})};const r=this.element=DPe(this.config);r.addEventListener("click",this.handleClick.bind(this)),this.view.dom.prepend(r)}}const LPe=e=>Kr.define(t=>new PPe(t,e)),MPe=Vt.baseTheme({".codemirror-toolbar":{display:"flex",padding:"4px 5px",backgroundColor:"rgb(245, 245, 245)",borderBottom:"1px solid rgb(221, 221, 221)"},".codemirror-toolbar__icon":{display:"inline-block",height:"1em",width:"1em",overflow:"visible"},".codemirror-toolbar__icon svg":{overflow:"visible",boxSizing:"content-box",height:"1em",width:"1em",verticalAlign:"-.125em"},".codemirror-toolbar__item":{display:"inline-flex",alignItems:"center",justifyContent:"center",background:"transparent",border:"none",outline:"none",cursor:"pointer",borderRadius:"2px",height:"20px",width:"20px",transition:"all .3s"},".codemirror-toolbar__item:hover":{color:"#1EA7FD",backgroundColor:"rgba(30,167,253,0.12)"},".codemirror-toolbar__item > *":{pointerEvents:"none"},".codemirror-toolbar__split":{display:"inline-block",width:"1px",height:"20px",margin:"0 6px",backgroundColor:"rgb(221, 221, 221)"},".codemirror-toolbar__space":{display:"inline-block",flex:1}}),$Pe=e=>{const t=e.state.selection.main;if(t.from>=2){const n=e.state.sliceDoc(t.from-2,t.from),r=e.state.sliceDoc(t.to,t.to+2);if(n==="**"&&r==="**")return e.focus(),!1}return e.dispatch(e.state.changeByRange(n=>({changes:[{from:n.from,insert:"**"},{from:n.to,insert:"**"}],range:Je.range(n.from+2,n.to+2)}))),e.focus(),!0},FPe=e=>{const t=e.state.selection.main;if(t.from>=1){const n=e.state.sliceDoc(t.from-1,t.from),r=e.state.sliceDoc(t.to,t.to+1);if(n==="*"&&r==="*"&&(t.from<2||e.state.sliceDoc(t.from-1,t.from)!=="*"||e.state.sliceDoc(t.to,t.to+1)!=="*"||t.from>=3&&e.state.sliceDoc(t.from-3,t.from)==="***"&&e.state.sliceDoc(t.to,t.to+3)==="***"))return e.focus(),!1}return e.dispatch(e.state.changeByRange(n=>({changes:[{from:n.from,insert:"*"},{from:n.to,insert:"*"}],range:Je.range(n.from+1,n.to+1)}))),e.focus(),!0},BPe=e=>{const t=e.state.selection.main;if(t.from>=2){const n=e.state.sliceDoc(t.from-2,t.from),r=e.state.sliceDoc(t.to,t.to+2);if(n==="~~"&&r==="~~")return e.focus(),!1}return e.dispatch(e.state.changeByRange(n=>({changes:[{from:n.from,insert:"~~"},{from:n.to,insert:"~~"}],range:Je.range(n.from+2,n.to+2)}))),e.focus(),!0},UPe=e=>{const t=e.state.selection.main;if(t.from>=3){const n=e.state.sliceDoc(t.from-3,t.from),r=e.state.sliceDoc(t.to,t.to+4);if(n===""&&r==="")return e.focus(),!1}return e.dispatch(e.state.changeByRange(n=>({changes:[{from:n.from,insert:""},{from:n.to,insert:""}],range:Je.range(n.from+3,n.to+3)}))),e.focus(),!0},jPe=e=>{const{state:t}=e,{doc:n}=t;return e.dispatch(e.state.changeByRange(r=>{const i=n.lineAt(r.from),a=n.slice(r.from,r.to).lines,s=[];let l=r.from,u=r.to-r.from;return new Array(a).fill(0).forEach((c,d)=>{const p=n.line(i.number+d);p.text.startsWith("> ")||(s.push({from:p.from,insert:"> "}),d===0?l=l+2:u+=2)}),{changes:s,range:Je.range(l,l+u)}})),e.focus(),!0},zPe=e=>{const{state:t}=e,{doc:n}=t;return e.dispatch(t.changeByRange(r=>{const{from:i,to:o}=r,a=n.sliceString(i,o),s=`[${a}]()`,l=i+(a.length?3+a.length:1);return{changes:[{from:i,to:o,insert:s}],range:Je.range(l,l)}})),e.focus(),!0},VPe=e=>{const{state:t}=e,{doc:n}=t;return e.dispatch(t.changeByRange(r=>{const{from:i,to:o}=r,a=n.sliceString(i,o),s=`![${a}]()`,l=i+(a.length?3+a.length:2);return{changes:[{from:i,to:o,insert:s}],range:Je.range(l,l)}})),e.focus(),!0},wg=e=>t=>{const n=t.state,r="#".repeat(e)+" ";return t.dispatch(n.changeByRange(i=>{const o=n.doc.lineAt(i.from),a=o.text.replace(/^((#+) )?/,r),s=a.length-o.length;return{changes:{from:o.from,to:o.to,insert:a},range:Je.range(i.anchor+s,i.head+s)}})),t.focus(),!0},HPe=e=>{if(e=e&&e.trimStart(),!e)return;if(e.startsWith("- "))return e.startsWith("- [ ] ")||e.startsWith("- [x] ")?["todo"]:["ul"];const t=e.match(/^(\d+)\. /);if(t)return["ol",Number.parseInt(t[1],10)]},zP=e=>t=>{const{state:n}=t,{doc:r}=n;let i=1;return t.dispatch(t.state.changeByRange(o=>{const a=r.lineAt(o.from),l=r.slice(o.from,o.to).lines,u=[];let c=o.from,d=o.to-o.from;return new Array(l).fill(0).forEach((p,h)=>{const m=r.line(a.number+h),y=HPe(m.text);if(y&&y[0]===e){y[0]==="ol"&&y[1]&&(i=y[1]);return}const O=m.text.replace(RegExp("^((? *)(-( \\[[x ]])?|\\d+\\.) )?"),(...v)=>{const S=v[v.length-1],{space:k=""}=S;let C="- ";return e==="ol"?(C=`${i}. `,i++):e==="todo"&&(C="- [ ] "),k+C}),b=O.length-m.length;u.push({from:m.from,to:m.to,insert:O}),h===0?c=c+b:d=d+b}),{changes:u,range:Je.range(c,c+d)}})),t.focus(),!0},WPe=wg(1),QPe=wg(2),YPe=wg(3),GPe=wg(4),qPe=wg(5),ZPe=wg(6),XPe=zP("ul"),KPe=zP("ol"),JPe=zP("todo"),e3e={label:"Bold",icon:'',command:$Pe},t3e={label:"Italic",icon:'',command:FPe},n3e={label:"Strike",icon:'',command:BPe},r3e={label:"Underline",icon:'',command:UPe},i3e={label:"H1",icon:'',command:WPe},o3e={label:"H2",icon:'',command:QPe},a3e={label:"H3",icon:'',command:YPe},s3e={label:"H4",icon:'',command:GPe},l3e={label:"H5",icon:'',command:qPe},u3e={label:"H6",icon:'',command:ZPe},c3e={label:"Block Quote",icon:'',command:jPe},d3e={label:"Unordered List",icon:'',command:XPe},f3e={label:"Ordered List",icon:'',command:KPe},p3e={label:"Todo List",icon:'',command:JPe},h3e={label:"Link",icon:'',command:zPe},m3e={label:"Image",icon:'',command:VPe},TA={type:"split"},g3e={type:"space"},b3e={label:"Full Screen",key:"fullScreen",icon:'',command:e=>(e.dom.ownerDocument.fullscreenElement?e.dom.ownerDocument.exitFullscreen():e.dom.requestFullscreen(),!0)},y3e=[e3e,t3e,n3e,r3e,TA,i3e,o3e,a3e,s3e,l3e,u3e,TA,c3e,d3e,f3e,p3e,TA,h3e,m3e,g3e,b3e],O3e=e=>[LPe(e),MPe];var LK=e=>{var{theme:t,settings:n={},styles:r=[]}=e,i={".cm-gutters":{}},o={};n.background&&(o.backgroundColor=n.background),n.backgroundImage&&(o.backgroundImage=n.backgroundImage),n.foreground&&(o.color=n.foreground),(n.background||n.foreground)&&(i["&"]=o),n.fontFamily&&(i["&.cm-editor .cm-scroller"]={fontFamily:n.fontFamily}),n.gutterBackground&&(i[".cm-gutters"].backgroundColor=n.gutterBackground),n.gutterForeground&&(i[".cm-gutters"].color=n.gutterForeground),n.gutterBorder&&(i[".cm-gutters"].borderRightColor=n.gutterBorder),n.caret&&(i[".cm-content"]={caretColor:n.caret},i[".cm-cursor, .cm-dropCursor"]={borderLeftColor:n.caret});var a={};n.gutterActiveForeground&&(a.color=n.gutterActiveForeground),n.lineHighlight&&(i[".cm-activeLine"]={backgroundColor:n.lineHighlight},a.backgroundColor=n.lineHighlight),i[".cm-activeLineGutter"]=a,n.selection&&(i["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:n.selection+" !important"}),n.selectionMatch&&(i["& .cm-selectionMatch"]={backgroundColor:n.selectionMatch});var s=Vt.theme(i,{dark:t==="dark"}),l=G1.define(r),u=[s,pZ(l)];return u},v3e={background:"#fff",foreground:"#3D3D3D",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#AFAFAF",lineHighlight:"#d5e6ff69"};function E3e(e){var{theme:t="light",settings:n={},styles:r=[]}=e||{};return LK({theme:t,settings:L({},v3e,n),styles:[{tag:[pe.comment,pe.quote],color:"#707F8D"},{tag:[pe.typeName,pe.typeOperator],color:"#aa0d91"},{tag:[pe.keyword],color:"#aa0d91",fontWeight:"bold"},{tag:[pe.string,pe.meta],color:"#D23423"},{tag:[pe.name],color:"#032f62"},{tag:[pe.typeName],color:"#522BB2"},{tag:[pe.variableName],color:"#23575C"},{tag:[pe.definition(pe.variableName)],color:"#327A9E"},{tag:[pe.regexp,pe.link],color:"#0e0eff"},...r]})}var S3e=E3e(),T3e={background:"#292A30",foreground:"#CECFD0",caret:"#fff",selection:"#727377",selectionMatch:"#727377",lineHighlight:"#ffffff0f"},w3e=e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return LK({theme:t,settings:L({},T3e,n),styles:[{tag:[pe.comment,pe.quote],color:"#7F8C98"},{tag:[pe.keyword],color:"#FF7AB2",fontWeight:"bold"},{tag:[pe.string,pe.meta],color:"#FF8170"},{tag:[pe.typeName],color:"#DABAFF"},{tag:[pe.definition(pe.variableName)],color:"#6BDFFF"},{tag:[pe.name],color:"#6BAA9F"},{tag:[pe.variableName],color:"#ACF2E4"},{tag:[pe.regexp,pe.link],color:"#FF8170"},...r]})},k3e=w3e();function V9(){const e=XD(),[t,n]=N.useState(),r=wc(wk),i=N.useCallback(o=>{o&&n(o)},[]);return N.useEffect(()=>{var s;let o;if(!t||!r.doc||!r.client)return;const a=qn.create({doc:((s=r.doc.getRoot().content)==null?void 0:s.toString())??"",extensions:[bIe,dPe(),RPe(r.doc,r.client),O3e({items:y3e}),e=="light"?S3e:k3e,Vt.theme({"&":{width:"100%"}}),Vt.lineWrapping,yg.of([$_e])]});return o=new Vt({state:a,parent:t}),()=>{o==null||o.destroy()}},[r.client,r.doc,t,e]),M.jsx("div",{ref:i,style:{display:"flex",alignItems:"stretch",height:"100%"}})}var $R={exports:{}};(function(e,t){(function(n,r){{var i=r();e&&e.exports&&(t=e.exports=i),t.randomColor=i}})(aS,function(){var n=null,r={};b();var i=[],o=function(E){if(E=E||{},E.seed!==void 0&&E.seed!==null&&E.seed===parseInt(E.seed,10))n=E.seed;else if(typeof E.seed=="string")n=C(E.seed);else{if(E.seed!==void 0&&E.seed!==null)throw new TypeError("The seed value must be an integer or string");n=null}var $,D,R;if(E.count!==null&&E.count!==void 0){for(var B=E.count,U=[],V=0;VU.length;){var z=o(E);n!==null&&(E.seed=n),U.push(z)}return E.count=B,U}return $=a(E),D=s($,E),R=l($,D,E),u([$,D,R],E)};function a(E){if(i.length>0){var $=w(E.hue),D=m($),R=($[1]-$[0])/i.length,B=parseInt((D-$[0])/R);i[B]===!0?B=(B+2)%i.length:i[B]=!0;var U=($[0]+B*R)%359,V=($[0]+(B+1)*R)%359;return $=[U,V],D=m($),D<0&&(D=360+D),D}else{var $=d(E.hue);return D=m($),D<0&&(D=360+D),D}}function s(E,$){if($.hue==="monochrome")return 0;if($.luminosity==="random")return m([0,100]);var D=p(E),R=D[0],B=D[1];switch($.luminosity){case"bright":R=55;break;case"dark":R=B-10;break;case"light":B=55;break}return m([R,B])}function l(E,$,D){var R=c(E,$),B=100;switch(D.luminosity){case"dark":B=R+20;break;case"light":R=(B+R)/2;break;case"random":R=0,B=100;break}return m([R,B])}function u(E,$){switch($.format){case"hsvArray":return E;case"hslArray":return k(E);case"hsl":var D=k(E);return"hsl("+D[0]+", "+D[1]+"%, "+D[2]+"%)";case"hsla":var R=k(E),V=$.alpha||Math.random();return"hsla("+R[0]+", "+R[1]+"%, "+R[2]+"%, "+V+")";case"rgbArray":return v(E);case"rgb":var B=v(E);return"rgb("+B.join(", ")+")";case"rgba":var U=v(E),V=$.alpha||Math.random();return"rgba("+U.join(", ")+", "+V+")";default:return y(E)}}function c(E,$){for(var D=h(E).lowerBounds,R=0;R=B&&$<=V){var Q=(z-U)/(V-B),X=U-Q*B;return Q*$+X}}return 0}function d(E){if(typeof parseInt(E)=="number"){var $=parseInt(E);if($<360&&$>0)return[$,$]}if(typeof E=="string"){if(r[E]){var D=r[E];if(D.hueRange)return D.hueRange}else if(E.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)){var R=S(E)[0];return[R,R]}}return[0,360]}function p(E){return h(E).saturationRange}function h(E){E>=334&&E<=360&&(E-=360);for(var $ in r){var D=r[$];if(D.hueRange&&E>=D.hueRange[0]&&E<=D.hueRange[1])return r[$]}return"Color not found"}function m(E){if(n===null){var $=.618033988749895,D=Math.random();return D+=$,D%=1,Math.floor(E[0]+D*(E[1]+1-E[0]))}else{var R=E[1]||1,B=E[0]||0;n=(n*9301+49297)%233280;var U=n/233280;return Math.floor(B+U*(R-B))}}function y(E){var $=v(E);function D(B){var U=B.toString(16);return U.length==1?"0"+U:U}var R="#"+D($[0])+D($[1])+D($[2]);return R}function O(E,$,D){var R=D[0][0],B=D[D.length-1][0],U=D[D.length-1][1],V=D[0][1];r[E]={hueRange:$,lowerBounds:D,saturationRange:[R,B],brightnessRange:[U,V]}}function b(){O("monochrome",null,[[0,0],[100,0]]),O("red",[-26,18],[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]),O("orange",[18,46],[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]),O("yellow",[46,62],[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]),O("green",[62,178],[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]),O("blue",[178,257],[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]),O("purple",[257,282],[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]),O("pink",[282,334],[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]])}function v(E){var $=E[0];$===0&&($=1),$===360&&($=359),$=$/360;var D=E[1]/100,R=E[2]/100,B=Math.floor($*6),U=$*6-B,V=R*(1-D),z=R*(1-U*D),Q=R*(1-(1-U)*D),X=256,Z=256,Y=256;switch(B){case 0:X=R,Z=Q,Y=V;break;case 1:X=z,Z=R,Y=V;break;case 2:X=V,Z=R,Y=Q;break;case 3:X=V,Z=z,Y=R;break;case 4:X=Q,Z=V,Y=R;break;case 5:X=R,Z=V,Y=z;break}var q=[Math.floor(X*255),Math.floor(Z*255),Math.floor(Y*255)];return q}function S(E){E=E.replace(/^#/,""),E=E.length===3?E.replace(/(.)/g,"$1$1"):E;var $=parseInt(E.substr(0,2),16)/255,D=parseInt(E.substr(2,2),16)/255,R=parseInt(E.substr(4,2),16)/255,B=Math.max($,D,R),U=B-Math.min($,D,R),V=B?U/B:0;switch(B){case $:return[60*((D-R)/U%6)||0,V,B];case D:return[60*((R-$)/U+2)||0,V,B];case R:return[60*(($-D)/U+4)||0,V,B]}}function k(E){var $=E[0],D=E[1]/100,R=E[2]/100,B=(2-D)*R;return[$,Math.round(D*R/(B<1?B:2-B)*1e4)/100,B/2*100]}function C(E){for(var $=0,D=0;D!==E.length&&!($>=Number.MAX_SAFE_INTEGER);D++)$+=E.charCodeAt(D);return $}function w(E){if(isNaN(E)){if(typeof E=="string"){if(r[E]){var D=r[E];if(D.hueRange)return D.hueRange}else if(E.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)){var R=S(E)[0];return h(R).hueRange}}}else{var $=parseInt(E);if($<360&&$>0)return h(E).hueRange}return[0,360]}return o})})($R,$R.exports);var x3e=$R.exports;const C3e=Vd(x3e);var MK={exports:{}},A3e={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]},$K={exports:{}},_3e=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")},R3e=_3e,I3e=Array.prototype.concat,N3e=Array.prototype.slice,H9=$K.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+")"};ss.to.keyword=function(e){return BK[e.slice(0,3)]};function Ad(e,t,n){return Math.min(Math.max(t,e),n)}function Wv(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var P3e=MK.exports,L3e={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 zy=L3e,UK={};for(const e of Object.keys(zy))UK[zy[e]]=e;const tn={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 jK=tn;for(const e of Object.keys(tn)){if(!("channels"in tn[e]))throw new Error("missing channels property: "+e);if(!("labels"in tn[e]))throw new Error("missing channel labels property: "+e);if(tn[e].labels.length!==tn[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=tn[e];delete tn[e].channels,delete tn[e].labels,Object.defineProperty(tn[e],"channels",{value:t}),Object.defineProperty(tn[e],"labels",{value:n})}tn.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=o-i;let s,l;o===i?s=0:t===o?s=(n-r)/a:n===o?s=2+(r-t)/a:r===o&&(s=4+(t-n)/a),s=Math.min(s*60,360),s<0&&(s+=360);const u=(i+o)/2;return o===i?l=0:u<=.5?l=a/(o+i):l=a/(2-o-i),[s,l*100,u*100]};tn.rgb.hsv=function(e){let t,n,r,i,o;const a=e[0]/255,s=e[1]/255,l=e[2]/255,u=Math.max(a,s,l),c=u-Math.min(a,s,l),d=function(p){return(u-p)/6/c+1/2};return c===0?(i=0,o=0):(o=c/u,t=d(a),n=d(s),r=d(l),a===u?i=r-n:s===u?i=1/3+t-r:l===u&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[i*360,o*100,u*100]};tn.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const i=tn.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[i,o*100,r*100]};tn.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(1-t,1-n,1-r),o=(1-t-i)/(1-i)||0,a=(1-n-i)/(1-i)||0,s=(1-r-i)/(1-i)||0;return[o*100,a*100,s*100,i*100]};function M3e(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}tn.rgb.keyword=function(e){const t=UK[e];if(t)return t;let n=1/0,r;for(const i of Object.keys(zy)){const o=zy[i],a=M3e(e,o);a.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const i=t*.4124+n*.3576+r*.1805,o=t*.2126+n*.7152+r*.0722,a=t*.0193+n*.1192+r*.9505;return[i*100,o*100,a*100]};tn.rgb.lab=function(e){const t=tn.rgb.xyz(e);let n=t[0],r=t[1],i=t[2];n/=95.047,r/=100,i/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;const o=116*r-16,a=500*(n-r),s=200*(r-i);return[o,a,s]};tn.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let i,o,a;if(n===0)return a=r*255,[a,a,a];r<.5?i=r*(1+n):i=r+n-r*n;const s=2*r-i,l=[0,0,0];for(let u=0;u<3;u++)o=t+1/3*-(u-1),o<0&&o++,o>1&&o--,6*o<1?a=s+(i-s)*6*o:2*o<1?a=i:3*o<2?a=s+(i-s)*(2/3-o)*6:a=s,l[u]=a*255;return l};tn.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,i=n;const o=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,i*=o<=1?o:2-o;const a=(r+n)/2,s=r===0?2*i/(o+i):2*n/(r+n);return[t,s*100,a*100]};tn.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const i=Math.floor(t)%6,o=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*o),l=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,l,a];case 1:return[s,r,a];case 2:return[a,r,l];case 3:return[a,s,r];case 4:return[l,a,r];case 5:return[r,a,s]}};tn.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01);let o,a;a=(2-n)*r;const s=(2-n)*i;return o=n*i,o/=s<=1?s:2-s,o=o||0,a/=2,[t,o*100,a*100]};tn.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const i=n+r;let o;i>1&&(n/=i,r/=i);const a=Math.floor(6*t),s=1-r;o=6*t-a,a&1&&(o=1-o);const l=n+o*(s-n);let u,c,d;switch(a){default:case 6:case 0:u=s,c=l,d=n;break;case 1:u=l,c=s,d=n;break;case 2:u=n,c=s,d=l;break;case 3:u=n,c=l,d=s;break;case 4:u=l,c=n,d=s;break;case 5:u=s,c=n,d=l;break}return[u*255,c*255,d*255]};tn.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100,o=1-Math.min(1,t*(1-i)+i),a=1-Math.min(1,n*(1-i)+i),s=1-Math.min(1,r*(1-i)+i);return[o*255,a*255,s*255]};tn.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let i,o,a;return i=t*3.2406+n*-1.5372+r*-.4986,o=t*-.9689+n*1.8758+r*.0415,a=t*.0557+n*-.204+r*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),[i*255,o*255,a*255]};tn.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const i=116*n-16,o=500*(t-n),a=200*(n-r);return[i,o,a]};tn.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let i,o,a;o=(t+16)/116,i=n/500+o,a=o-r/200;const s=o**3,l=i**3,u=a**3;return o=s>.008856?s:(o-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,a=u>.008856?u:(a-16/116)/7.787,i*=95.047,o*=100,a*=108.883,[i,o,a]};tn.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let i;i=Math.atan2(r,n)*360/2/Math.PI,i<0&&(i+=360);const a=Math.sqrt(n*n+r*r);return[t,a,i]};tn.lch.lab=function(e){const t=e[0],n=e[1],i=e[2]/360*2*Math.PI,o=n*Math.cos(i),a=n*Math.sin(i);return[t,o,a]};tn.rgb.ansi16=function(e,t=null){const[n,r,i]=e;let o=t===null?tn.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),o===0)return 30;let a=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return o===2&&(a+=60),a};tn.hsv.ansi16=function(e){return tn.rgb.ansi16(tn.hsv.rgb(e),e[2])};tn.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)};tn.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,i=(t>>1&1)*n*255,o=(t>>2&1)*n*255;return[r,i,o]};tn.ansi256.rgb=function(e){if(e>=232){const o=(e-232)*10+8;return[o,o,o]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[n,r,i]};tn.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};tn.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(s=>s+s).join(""));const r=parseInt(n,16),i=r>>16&255,o=r>>8&255,a=r&255;return[i,o,a]};tn.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(Math.max(t,n),r),o=Math.min(Math.min(t,n),r),a=i-o;let s,l;return a<1?s=o/(1-a):s=0,a<=0?l=0:i===t?l=(n-r)/a%6:i===n?l=2+(r-t)/a:l=4+(t-n)/a,l/=6,l%=1,[l*360,a*100,s*100]};tn.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]};tn.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]};tn.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const i=[0,0,0],o=t%1*6,a=o%1,s=1-a;let l=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return l=(1-n)*r,[(n*i[0]+l)*255,(n*i[1]+l)*255,(n*i[2]+l)*255]};tn.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]};tn.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]};tn.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]};tn.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,i=r-t;let o=0;return i<1&&(o=(r-i)/(1-i)),[e[0],i*100,o*100]};tn.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};tn.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};tn.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};tn.gray.hsl=function(e){return[0,0,e[0]]};tn.gray.hsv=tn.gray.hsl;tn.gray.hwb=function(e){return[0,100,e[0]]};tn.gray.cmyk=function(e){return[0,0,0,e[0]]};tn.gray.lab=function(e){return[e[0],0,0]};tn.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};tn.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const xT=jK;function $3e(){const e={},t=Object.keys(xT);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function W3e(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const i=e(n);if(typeof i=="object")for(let o=i.length,a=0;a{ph[e]={},Object.defineProperty(ph[e],"channels",{value:FR[e].channels}),Object.defineProperty(ph[e],"labels",{value:FR[e].labels});const t=z3e(e);Object.keys(t).forEach(r=>{const i=t[r];ph[e][r]=W3e(i),ph[e][r].raw=H3e(i)})});var Q3e=ph;const hh=P3e,rs=Q3e,zK=["keyword","gray","hex"],BR={};for(const e of Object.keys(rs))BR[[...rs[e].labels].sort().join("")]=e;const CT={};function Qi(e,t){if(!(this instanceof Qi))return new Qi(e,t);if(t&&t in zK&&(t=null),t&&!(t in rs))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 Qi)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const i=hh.get(e);if(i===null)throw new Error("Unable to parse color from string: "+e);this.model=i.model,r=rs[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=rs[this.model].channels;const i=Array.prototype.slice.call(e,0,r);this.color=UR(i,r),this.valpha=typeof e[r]=="number"?e[r]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;const i=Object.keys(e);"alpha"in e&&(i.splice(i.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);const o=i.sort().join("");if(!(o in BR))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=BR[o];const{labels:a}=rs[this.model],s=[];for(n=0;n(e%360+360)%360),saturationl:ti("hsl",1,xi(100)),lightness:ti("hsl",2,xi(100)),saturationv:ti("hsv",1,xi(100)),value:ti("hsv",2,xi(100)),chroma:ti("hcg",1,xi(100)),gray:ti("hcg",2,xi(100)),white:ti("hwb",1,xi(100)),wblack:ti("hwb",2,xi(100)),cyan:ti("cmyk",0,xi(100)),magenta:ti("cmyk",1,xi(100)),yellow:ti("cmyk",2,xi(100)),black:ti("cmyk",3,xi(100)),x:ti("xyz",0,xi(95.047)),y:ti("xyz",1,xi(100)),z:ti("xyz",2,xi(108.833)),l:ti("lab",0,xi(100)),a:ti("lab",1),b:ti("lab",2),keyword(e){return e!==void 0?new Qi(e):rs[this.model].keyword(this.color)},hex(e){return e!==void 0?new Qi(e):hh.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new Qi(e);const t=this.rgb().round().color;let n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),hh.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 Qi.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),r=this.rgb(),i=t===void 0?.5:t,o=2*i-1,a=n.alpha()-r.alpha(),s=((o*a===-1?o:(o+a)/(1+o*a))+1)/2,l=1-s;return Qi.rgb(s*n.red()+l*r.red(),s*n.green()+l*r.green(),s*n.blue()+l*r.blue(),n.alpha()*i+r.alpha()*(1-i))}};for(const e of Object.keys(rs)){if(zK.includes(e))continue;const{channels:t}=rs[e];Qi.prototype[e]=function(...n){return this.model===e?new Qi(this):n.length>0?new Qi(n,e):new Qi([...q3e(rs[this.model][e].raw(this.color)),this.valpha],e)},Qi[e]=function(...n){let r=n[0];return typeof r=="number"&&(r=UR(n,t)),new Qi(r,e)}}function Y3e(e,t){return Number(e.toFixed(t))}function G3e(e){return function(t){return Y3e(t,e)}}function ti(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(CT[r]||(CT[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 xi(e){return function(t){return Math.max(0,Math.min(e,t))}}function q3e(e){return Array.isArray(e)?e:[e]}function UR(e,t){for(let n=0;nu?(D(u),R.current=u):(D(ue),R.current=ue),O&&O({position:R.current})}}},[r,t,y,m,p,c,$,s,u,O,o]),q=N.useCallback(function(){r||(D(o),R.current=o)},[r,o]);return{position:$,endPosition:U,isDragging:C,separatorProps:AT({},z,{onPointerDown:Z,onKeyDown:Y,onDoubleClick:q}),setPosition:D,splitterProps:AT({},z,{onPointerDown:Z,onKeyDown:Y,onDoubleClick:q})}},nLe=function(e){var t=e.disabled,n=e.initial,r=e.min,i=e.max;return(0,e.children)(tLe({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 rLe=e=>{const t=N.useRef(e);return N.useEffect(()=>{t.current=e}),t},iLe=(e,t=100,n=!1)=>{const r=rLe(e),i=N.useRef(),o=[t,n,r];function a(){i.current&&clearTimeout(i.current),i.current=void 0}N.useEffect(()=>a,o);function s(){i.current=void 0}return N.useCallback(function(){const l=arguments,{current:u}=i;if(u===void 0&&n)return i.current=setTimeout(s,t),r.current.apply(null,l);u&&clearTimeout(u),i.current=setTimeout(()=>{i.current=void 0,r.current.apply(null,l)},t)},o)},oLe=(e,t,n)=>{const r=N.useState(e);return[r[0],iLe(r[1],t,n)]};function kA(e,t,n,r){const i=N.useRef(n),o=N.useRef(r);N.useEffect(()=>{i.current=n,o.current=r}),N.useEffect(()=>{const a=e&&"current"in e?e.current:e;if(!a)return;let s=0;function l(...c){s||i.current.apply(this,c)}a.addEventListener(t,l);const u=o.current;return()=>{s=1,a.removeEventListener(t,l),u&&u()}},[e,t])}const aLe={},xb=typeof window>"u"?null:window,sLe=xb&&typeof xb.visualViewport<"u"?xb.visualViewport:null,W9=()=>[document.documentElement.clientWidth,document.documentElement.clientHeight],lLe=function(e){e===void 0&&(e=aLe);const{wait:t,leading:n,initialWidth:r=0,initialHeight:i=0}=e,[o,a]=oLe(typeof document>"u"?[r,i]:W9,t,n),s=()=>a(W9);return kA(xb,"resize",s),kA(sLe,"resize",s),kA(xb,"orientationchange",s),o},uLe=e=>lLe(e)[0];function Vy(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,o=!1;for(;!o;){r===-1&&(r=n.length,o=!0);const a=n.slice(i,r).trim();(a||!o)&&t.push(a),i=r+1,r=n.indexOf(",",i)}return t}function VP(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const cLe=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,dLe=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,fLe={};function Q9(e,t){return((t||fLe).jsx?dLe:cLe).test(e)}const pLe=/[ \t\n\f\r]/g;function WK(e){return typeof e=="object"?e.type==="text"?Y9(e.value):!1:Y9(e)}function Y9(e){return e.replace(pLe,"")===""}class J1{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}J1.prototype.property={};J1.prototype.normal={};J1.prototype.space=null;function QK(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&yLe.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(q9,ELe);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!q9.test(o)){let a=o.replace(OLe,vLe);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=HP}return new i(r,t)}function vLe(e){return"-"+e.toLowerCase()}function ELe(e){return e.charAt(1).toUpperCase()}const SLe={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"},Tp=QK([qK,GK,KK,JK,gLe],"html"),Lu=QK([qK,GK,KK,JK,bLe],"svg");function Hy(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function WP(e){return e.join(" ").trim()}var eJ={},Z9=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,TLe=/\n/g,wLe=/^\s*/,kLe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,xLe=/^:\s*/,CLe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,ALe=/^[;\s]*/,_Le=/^\s+|\s+$/g,RLe=` -`,X9="/",K9="*",Sf="",ILe="comment",NLe="declaration",DLe=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(m){var y=m.match(TLe);y&&(n+=y.length);var O=m.lastIndexOf(RLe);r=~O?m.length-O:r+m.length}function o(){var m={line:n,column:r};return function(y){return y.position=new a(m),u(),y}}function a(m){this.start=m,this.end={line:n,column:r},this.source=t.source}a.prototype.content=e;function s(m){var y=new Error(t.source+":"+n+":"+r+": "+m);if(y.reason=m,y.filename=t.source,y.line=n,y.column=r,y.source=e,!t.silent)throw y}function l(m){var y=m.exec(e);if(y){var O=y[0];return i(O),e=e.slice(O.length),y}}function u(){l(wLe)}function c(m){var y;for(m=m||[];y=d();)y!==!1&&m.push(y);return m}function d(){var m=o();if(!(X9!=e.charAt(0)||K9!=e.charAt(1))){for(var y=2;Sf!=e.charAt(y)&&(K9!=e.charAt(y)||X9!=e.charAt(y+1));)++y;if(y+=2,Sf===e.charAt(y-1))return s("End of comment missing");var O=e.slice(2,y-2);return r+=2,i(O),e=e.slice(y),r+=2,m({type:ILe,comment:O})}}function p(){var m=o(),y=l(kLe);if(y){if(d(),!l(xLe))return s("property missing ':'");var O=l(CLe),b=m({type:NLe,property:J9(y[0].replace(Z9,Sf)),value:O?J9(O[0].replace(Z9,Sf)):Sf});return l(ALe),b}}function h(){var m=[];c(m);for(var y;y=p();)y!==!1&&(m.push(y),c(m));return m}return u(),h()};function J9(e){return e?e.replace(_Le,Sf):Sf}var PLe=aS&&aS.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(eJ,"__esModule",{value:!0});var LLe=PLe(DLe);function MLe(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,LLe.default)(e),i=typeof t=="function";return r.forEach(function(o){if(o.type==="declaration"){var a=o.property,s=o.value;i?t(a,s,o):s&&(n=n||{},n[a]=s)}}),n}var ej=eJ.default=MLe;const $Le=ej.default||ej,Fk=tJ("end"),Mu=tJ("start");function tJ(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 FLe(e){const t=Mu(e),n=Fk(e);if(t&&n)return{start:t,end:n}}function Cb(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?tj(e.position):"start"in e||"end"in e?tj(e):"line"in e||"column"in e?zR(e):""}function zR(e){return nj(e&&e.line)+":"+nj(e&&e.column)}function tj(e){return zR(e&&e.start)+"-"+zR(e&&e.end)}function nj(e){return e&&typeof e=="number"?e:1}class Uo extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},a=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(a=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?o.ruleId=r:(o.source=r.slice(0,l),o.ruleId=r.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){const l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}const s=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=s?s.line:void 0,this.name=Cb(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=a&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}Uo.prototype.file="";Uo.prototype.name="";Uo.prototype.reason="";Uo.prototype.message="";Uo.prototype.stack="";Uo.prototype.column=void 0;Uo.prototype.line=void 0;Uo.prototype.ancestors=void 0;Uo.prototype.cause=void 0;Uo.prototype.fatal=void 0;Uo.prototype.place=void 0;Uo.prototype.ruleId=void 0;Uo.prototype.source=void 0;const QP={}.hasOwnProperty,BLe=new Map,ULe=/[A-Z]/g,jLe=/-([a-z])/g,zLe=new Set(["table","tbody","thead","tfoot","tr"]),VLe=new Set(["td","th"]),nJ="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function HLe(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=KLe(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=XLe(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"?Lu:Tp,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=rJ(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function rJ(e,t,n){if(t.type==="element")return WLe(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return QLe(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return GLe(e,t,n);if(t.type==="mdxjsEsm")return YLe(e,t);if(t.type==="root")return qLe(e,t,n);if(t.type==="text")return ZLe(e,t)}function WLe(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Lu,e.schema=i),e.ancestors.push(t);const o=oJ(e,t.tagName,!1),a=JLe(e,t);let s=GP(e,t);return zLe.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!WK(l):!0})),iJ(e,a,o,t),YP(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function QLe(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)}Wy(e,t.position)}function YLe(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Wy(e,t.position)}function GLe(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Lu,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:oJ(e,t.name,!0),a=eMe(e,t),s=GP(e,t);return iJ(e,a,o,t),YP(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function qLe(e,t,n){const r={};return YP(r,GP(e,t)),e.create(t,e.Fragment,r,n)}function ZLe(e,t){return t.value}function iJ(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function YP(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function XLe(e,t,n){return r;function r(i,o,a,s){const u=Array.isArray(a.children)?n:t;return s?u(o,a,s):u(o,a)}}function KLe(e,t){return n;function n(r,i,o,a){const s=Array.isArray(o.children),l=Mu(r);return t(i,o,a,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function JLe(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&QP.call(t.properties,i)){const o=tMe(e,i,t.properties[i]);if(o){const[a,s]=o;e.tableCellAlignToStyle&&a==="align"&&typeof s=="string"&&VLe.has(t.tagName)?r=s:n[a]=s}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function eMe(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const a=o.expression;a.type;const s=a.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else Wy(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,o=e.evaluater.evaluateExpression(s.expression)}else Wy(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function GP(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:BLe;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);o0?(cs(e,e.length,0,t),e):t}const oj={}.hasOwnProperty;function sJ(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 Cl(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const dMe=Kd(new RegExp("\\p{P}","u")),Jo=Kd(/[A-Za-z]/),Io=Kd(/[\dA-Za-z]/),fMe=Kd(/[#-'*+\--9=?A-Z^-~]/);function _T(e){return e!==null&&(e<32||e===127)}const VR=Kd(/\d/),pMe=Kd(/[\dA-Fa-f]/),uJ=Kd(/[!-/:-@[-`{-~]/);function mn(e){return e!==null&&e<-2}function br(e){return e!==null&&(e<0||e===32)}function Un(e){return e===-2||e===-1||e===32}function Bk(e){return uJ(e)||dMe(e)}const hp=Kd(/\s/);function Kd(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Cg(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&o<57344){const s=e.charCodeAt(n+1);o<56320&&s>56319&&s<57344?(a=String.fromCharCode(o,s),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Kn(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(l){return Un(l)?(e.enter(n),s(l)):t(l)}function s(l){return Un(l)&&o++a))return;const E=t.events.length;let $=E,D,R;for(;$--;)if(t.events[$][0]==="exit"&&t.events[$][1].type==="chunkFlow"){if(D){R=t.events[$][1].end;break}D=!0}for(b(r),w=E;wS;){const C=n[k];t.containerState=C[1],C[0].exit.call(t,e)}n.length=S}function v(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function yMe(e,t,n){return Kn(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function RT(e){if(e===null||br(e)||hp(e))return 1;if(Bk(e))return 2}function Uk(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d=Object.assign({},e[r][1].end),p=Object.assign({},e[n][1].start);sj(d,-l),sj(p,l),a={type:l>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[r][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:p},o={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},a.start),e[n][1].start=Object.assign({},s.end),u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=Ls(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=Ls(u,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",o,t]]),u=Ls(u,Uk(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=Ls(u,[["exit",o,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=Ls(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,cs(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n0&&Un(w)?Kn(e,v,"linePrefix",o+1)(w):v(w)}function v(w){return w===null||mn(w)?e.check(lj,y,k)(w):(e.enter("codeFlowValue"),S(w))}function S(w){return w===null||mn(w)?(e.exit("codeFlowValue"),v(w)):(e.consume(w),S)}function k(w){return e.exit("codeFenced"),t(w)}function C(w,E,$){let D=0;return R;function R(Q){return w.enter("lineEnding"),w.consume(Q),w.exit("lineEnding"),B}function B(Q){return w.enter("codeFencedFence"),Un(Q)?Kn(w,U,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Q):U(Q)}function U(Q){return Q===s?(w.enter("codeFencedFenceSequence"),V(Q)):$(Q)}function V(Q){return Q===s?(D++,w.consume(Q),V):D>=a?(w.exit("codeFencedFenceSequence"),Un(Q)?Kn(w,z,"whitespace")(Q):z(Q)):$(Q)}function z(Q){return Q===null||mn(Q)?(w.exit("codeFencedFence"),E(Q)):$(Q)}}}function RMe(e,t,n){const r=this;return i;function i(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}const AA={name:"codeIndented",tokenize:NMe},IMe={tokenize:DMe,partial:!0};function NMe(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),Kn(e,o,"linePrefix",5)(u)}function o(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?a(u):n(u)}function a(u){return u===null?l(u):mn(u)?e.attempt(IMe,a,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||mn(u)?(e.exit("codeFlowValue"),a(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function DMe(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):mn(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):Kn(e,o,"linePrefix",5)(a)}function o(a){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):mn(a)?i(a):n(a)}}const PMe={name:"codeText",tokenize:$Me,resolve:LMe,previous:MMe};function LMe(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function hJ(e,t,n,r,i,o,a,s,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return d;function d(b){return b===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(b),e.exit(o),p):b===null||b===32||b===41||_T(b)?n(b):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),y(b))}function p(b){return b===62?(e.enter(o),e.consume(b),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(b))}function h(b){return b===62?(e.exit("chunkString"),e.exit(s),p(b)):b===null||b===60||mn(b)?n(b):(e.consume(b),b===92?m:h)}function m(b){return b===60||b===62||b===92?(e.consume(b),h):h(b)}function y(b){return!c&&(b===null||b===41||br(b))?(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(b)):c999||h===null||h===91||h===93&&!l||h===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):mn(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===null||h===91||h===93||mn(h)||s++>999?(e.exit("chunkString"),c(h)):(e.consume(h),l||(l=!Un(h)),h===92?p:d)}function p(h){return h===91||h===92||h===93?(e.consume(h),s++,d):d(h)}}function gJ(e,t,n,r,i,o){let a;return s;function s(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),a=p===40?41:p,l):n(p)}function l(p){return p===a?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(o),u(p))}function u(p){return p===a?(e.exit(o),l(a)):p===null?n(p):mn(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Kn(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===a||p===null||mn(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?d:c)}function d(p){return p===a||p===92?(e.consume(p),c):c(p)}}function Ab(e,t){let n;return r;function r(i){return mn(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Un(i)?Kn(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const HMe={name:"definition",tokenize:QMe},WMe={tokenize:YMe,partial:!0};function QMe(e,t,n){const r=this;let i;return o;function o(h){return e.enter("definition"),a(h)}function a(h){return mJ.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return i=Cl(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):n(h)}function l(h){return br(h)?Ab(e,u)(h):u(h)}function u(h){return hJ(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(WMe,d,d)(h)}function d(h){return Un(h)?Kn(e,p,"whitespace")(h):p(h)}function p(h){return h===null||mn(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function YMe(e,t,n){return r;function r(s){return br(s)?Ab(e,i)(s):n(s)}function i(s){return gJ(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function o(s){return Un(s)?Kn(e,a,"whitespace")(s):a(s)}function a(s){return s===null||mn(s)?t(s):n(s)}}const GMe={name:"hardBreakEscape",tokenize:qMe};function qMe(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return mn(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const ZMe={name:"headingAtx",tokenize:KMe,resolve:XMe};function XMe(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},cs(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function KMe(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),o(c)}function o(c){return e.enter("atxHeadingSequence"),a(c)}function a(c){return c===35&&r++<6?(e.consume(c),a):c===null||br(c)?(e.exit("atxHeadingSequence"),s(c)):n(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||mn(c)?(e.exit("atxHeading"),t(c)):Un(c)?Kn(e,s,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),s(c))}function u(c){return c===null||c===35||br(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const JMe=["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"],cj=["pre","script","style","textarea"],e4e={name:"htmlFlow",tokenize:i4e,resolveTo:r4e,concrete:!0},t4e={tokenize:a4e,partial:!0},n4e={tokenize:o4e,partial:!0};function r4e(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 i4e(e,t,n){const r=this;let i,o,a,s,l;return u;function u(G){return c(G)}function c(G){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(G),d}function d(G){return G===33?(e.consume(G),p):G===47?(e.consume(G),o=!0,y):G===63?(e.consume(G),i=3,r.interrupt?t:j):Jo(G)?(e.consume(G),a=String.fromCharCode(G),O):n(G)}function p(G){return G===45?(e.consume(G),i=2,h):G===91?(e.consume(G),i=5,s=0,m):Jo(G)?(e.consume(G),i=4,r.interrupt?t:j):n(G)}function h(G){return G===45?(e.consume(G),r.interrupt?t:j):n(G)}function m(G){const ue="CDATA[";return G===ue.charCodeAt(s++)?(e.consume(G),s===ue.length?r.interrupt?t:U:m):n(G)}function y(G){return Jo(G)?(e.consume(G),a=String.fromCharCode(G),O):n(G)}function O(G){if(G===null||G===47||G===62||br(G)){const ue=G===47,ge=a.toLowerCase();return!ue&&!o&&cj.includes(ge)?(i=1,r.interrupt?t(G):U(G)):JMe.includes(a.toLowerCase())?(i=6,ue?(e.consume(G),b):r.interrupt?t(G):U(G)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(G):o?v(G):S(G))}return G===45||Io(G)?(e.consume(G),a+=String.fromCharCode(G),O):n(G)}function b(G){return G===62?(e.consume(G),r.interrupt?t:U):n(G)}function v(G){return Un(G)?(e.consume(G),v):R(G)}function S(G){return G===47?(e.consume(G),R):G===58||G===95||Jo(G)?(e.consume(G),k):Un(G)?(e.consume(G),S):R(G)}function k(G){return G===45||G===46||G===58||G===95||Io(G)?(e.consume(G),k):C(G)}function C(G){return G===61?(e.consume(G),w):Un(G)?(e.consume(G),C):S(G)}function w(G){return G===null||G===60||G===61||G===62||G===96?n(G):G===34||G===39?(e.consume(G),l=G,E):Un(G)?(e.consume(G),w):$(G)}function E(G){return G===l?(e.consume(G),l=null,D):G===null||mn(G)?n(G):(e.consume(G),E)}function $(G){return G===null||G===34||G===39||G===47||G===60||G===61||G===62||G===96||br(G)?C(G):(e.consume(G),$)}function D(G){return G===47||G===62||Un(G)?S(G):n(G)}function R(G){return G===62?(e.consume(G),B):n(G)}function B(G){return G===null||mn(G)?U(G):Un(G)?(e.consume(G),B):n(G)}function U(G){return G===45&&i===2?(e.consume(G),X):G===60&&i===1?(e.consume(G),Z):G===62&&i===4?(e.consume(G),le):G===63&&i===3?(e.consume(G),j):G===93&&i===5?(e.consume(G),q):mn(G)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(t4e,Ee,V)(G)):G===null||mn(G)?(e.exit("htmlFlowData"),V(G)):(e.consume(G),U)}function V(G){return e.check(n4e,z,Ee)(G)}function z(G){return e.enter("lineEnding"),e.consume(G),e.exit("lineEnding"),Q}function Q(G){return G===null||mn(G)?V(G):(e.enter("htmlFlowData"),U(G))}function X(G){return G===45?(e.consume(G),j):U(G)}function Z(G){return G===47?(e.consume(G),a="",Y):U(G)}function Y(G){if(G===62){const ue=a.toLowerCase();return cj.includes(ue)?(e.consume(G),le):U(G)}return Jo(G)&&a.length<8?(e.consume(G),a+=String.fromCharCode(G),Y):U(G)}function q(G){return G===93?(e.consume(G),j):U(G)}function j(G){return G===62?(e.consume(G),le):G===45&&i===2?(e.consume(G),j):U(G)}function le(G){return G===null||mn(G)?(e.exit("htmlFlowData"),Ee(G)):(e.consume(G),le)}function Ee(G){return e.exit("htmlFlow"),t(G)}}function o4e(e,t,n){const r=this;return i;function i(a){return mn(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):n(a)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}function a4e(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(eO,t,n)}}const s4e={name:"htmlText",tokenize:l4e};function l4e(e,t,n){const r=this;let i,o,a;return s;function s(j){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(j),l}function l(j){return j===33?(e.consume(j),u):j===47?(e.consume(j),C):j===63?(e.consume(j),S):Jo(j)?(e.consume(j),$):n(j)}function u(j){return j===45?(e.consume(j),c):j===91?(e.consume(j),o=0,m):Jo(j)?(e.consume(j),v):n(j)}function c(j){return j===45?(e.consume(j),h):n(j)}function d(j){return j===null?n(j):j===45?(e.consume(j),p):mn(j)?(a=d,Z(j)):(e.consume(j),d)}function p(j){return j===45?(e.consume(j),h):d(j)}function h(j){return j===62?X(j):j===45?p(j):d(j)}function m(j){const le="CDATA[";return j===le.charCodeAt(o++)?(e.consume(j),o===le.length?y:m):n(j)}function y(j){return j===null?n(j):j===93?(e.consume(j),O):mn(j)?(a=y,Z(j)):(e.consume(j),y)}function O(j){return j===93?(e.consume(j),b):y(j)}function b(j){return j===62?X(j):j===93?(e.consume(j),b):y(j)}function v(j){return j===null||j===62?X(j):mn(j)?(a=v,Z(j)):(e.consume(j),v)}function S(j){return j===null?n(j):j===63?(e.consume(j),k):mn(j)?(a=S,Z(j)):(e.consume(j),S)}function k(j){return j===62?X(j):S(j)}function C(j){return Jo(j)?(e.consume(j),w):n(j)}function w(j){return j===45||Io(j)?(e.consume(j),w):E(j)}function E(j){return mn(j)?(a=E,Z(j)):Un(j)?(e.consume(j),E):X(j)}function $(j){return j===45||Io(j)?(e.consume(j),$):j===47||j===62||br(j)?D(j):n(j)}function D(j){return j===47?(e.consume(j),X):j===58||j===95||Jo(j)?(e.consume(j),R):mn(j)?(a=D,Z(j)):Un(j)?(e.consume(j),D):X(j)}function R(j){return j===45||j===46||j===58||j===95||Io(j)?(e.consume(j),R):B(j)}function B(j){return j===61?(e.consume(j),U):mn(j)?(a=B,Z(j)):Un(j)?(e.consume(j),B):D(j)}function U(j){return j===null||j===60||j===61||j===62||j===96?n(j):j===34||j===39?(e.consume(j),i=j,V):mn(j)?(a=U,Z(j)):Un(j)?(e.consume(j),U):(e.consume(j),z)}function V(j){return j===i?(e.consume(j),i=void 0,Q):j===null?n(j):mn(j)?(a=V,Z(j)):(e.consume(j),V)}function z(j){return j===null||j===34||j===39||j===60||j===61||j===96?n(j):j===47||j===62||br(j)?D(j):(e.consume(j),z)}function Q(j){return j===47||j===62||br(j)?D(j):n(j)}function X(j){return j===62?(e.consume(j),e.exit("htmlTextData"),e.exit("htmlText"),t):n(j)}function Z(j){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),Y}function Y(j){return Un(j)?Kn(e,q,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):q(j)}function q(j){return e.enter("htmlTextData"),a(j)}}const ZP={name:"labelEnd",tokenize:h4e,resolveTo:p4e,resolveAll:f4e},u4e={tokenize:m4e},c4e={tokenize:g4e},d4e={tokenize:b4e};function f4e(e){let t=-1;for(;++t=3&&(u===null||mn(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),Un(u)?Kn(e,s,"whitespace")(u):s(u))}}const da={name:"list",tokenize:x4e,continuation:{tokenize:C4e},exit:_4e},w4e={tokenize:R4e,partial:!0},k4e={tokenize:A4e,partial:!0};function x4e(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return s;function s(h){const m=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:VR(h)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(UE,n,u)(h):u(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return n(h)}function l(h){return VR(h)&&++a<10?(e.consume(h),l):(!r.interrupt||a<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):n(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(eO,r.interrupt?n:c,e.attempt(w4e,p,d))}function c(h){return r.containerState.initialBlankLine=!0,o++,p(h)}function d(h){return Un(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):n(h)}function p(h){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function C4e(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(eO,i,o);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Kn(e,t,"listItemIndent",r.containerState.size+1)(s)}function o(s){return r.containerState.furtherBlankLines||!Un(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(k4e,t,a)(s))}function a(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Kn(e,e.attempt(da,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function A4e(e,t,n){const r=this;return Kn(e,i,"listItemIndent",r.containerState.size+1);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(o):n(o)}}function _4e(e){e.exit(this.containerState.type)}function R4e(e,t,n){const r=this;return Kn(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const a=r.events[r.events.length-1];return!Un(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const dj={name:"setextUnderline",tokenize:N4e,resolveTo:I4e};function I4e(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const a={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",a,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[o][1].end)):e[r][1]=a,e.push(["exit",a,t]),e}function N4e(e,t,n){const r=this;let i;return o;function o(u){let c=r.events.length,d;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){d=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=u,a(u)):n(u)}function a(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),Un(u)?Kn(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||mn(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const D4e={tokenize:P4e};function P4e(e){const t=this,n=e.attempt(eO,r,e.attempt(this.parser.constructs.flowInitial,i,Kn(e,e.attempt(this.parser.constructs.flow,i,e.attempt(BMe,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const L4e={resolveAll:yJ()},M4e=bJ("string"),$4e=bJ("text");function bJ(e){return{tokenize:t,resolveAll:yJ(e==="text"?F4e:void 0)};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,a,s);return a;function a(c){return u(c)?o(c):s(c)}function s(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),l}function l(c){return u(c)?(n.exit("data"),o(c)):(n.consume(c),l)}function u(c){if(c===null)return!0;const d=i[c];let p=-1;if(d)for(;++p-1){const s=a[0];typeof s=="string"?a[0]=s.slice(r):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}function j4e(e,t){let n=-1;const r=[];let i;for(;++n>>=0,(_=0<=A&&A<256)&&(T=Ct[A],T)?T:(g=we(A,0,!0),_&&(Ct[A]=g),g)):(A|=0,(_=-128<=A&&A<128)&&(T=It[A],T)?T:(g=we(A,A<0?-1:0,!1),_&&(It[A]=g),g))}at.fromInt=Zt;function Ie(A,f){if(isNaN(A))return f?tn:Dt;if(f){if(A<0)return tn;if(A>=Ue)return Wn}else{if(A<=-Ce)return Qn;if(A+1>=Ce)return bn}return A<0?Ie(-A,f).neg():we(A%tr|0,A/tr|0,f)}at.fromNumber=Ie;function we(A,f,g){return new at(A,f,g)}at.fromBits=we;var Qe=Math.pow;function ot(A,f,g){if(A.length===0)throw Error("empty string");if(typeof f=="number"?(g=f,f=!1):f=!!f,A==="NaN"||A==="Infinity"||A==="+Infinity"||A==="-Infinity")return f?tn:Dt;if(g=g||10,g<2||360)throw Error("interior hyphen");if(T===0)return ot(A.substring(1),f,g).neg();for(var _=Ie(Qe(g,8)),H=Dt,K=0;K>>0:this.low},ht.toNumber=function(){return this.unsigned?(this.high>>>0)*tr+(this.low>>>0):this.high*tr+(this.low>>>0)},ht.toString=function(f){if(f=f||10,f<2||36>>0,yt=He.toString(f);if(K=Ae,K.isZero())return yt+oe;for(;yt.length<6;)yt="0"+yt;oe=""+yt+oe}},ht.getHighBits=function(){return this.high},ht.getHighBitsUnsigned=function(){return this.high>>>0},ht.getLowBits=function(){return this.low},ht.getLowBitsUnsigned=function(){return this.low>>>0},ht.getNumBitsAbs=function(){if(this.isNegative())return this.eq(Qn)?64:this.neg().getNumBitsAbs();for(var f=this.high!=0?this.high:this.low,g=31;g>0&&!(f&1<=0},ht.isOdd=function(){return(this.low&1)===1},ht.isEven=function(){return(this.low&1)===0},ht.equals=function(f){return Mt(f)||(f=rn(f)),this.unsigned!==f.unsigned&&this.high>>>31===1&&f.high>>>31===1?!1:this.high===f.high&&this.low===f.low},ht.eq=ht.equals,ht.notEquals=function(f){return!this.eq(f)},ht.neq=ht.notEquals,ht.ne=ht.notEquals,ht.lessThan=function(f){return this.comp(f)<0},ht.lt=ht.lessThan,ht.lessThanOrEqual=function(f){return this.comp(f)<=0},ht.lte=ht.lessThanOrEqual,ht.le=ht.lessThanOrEqual,ht.greaterThan=function(f){return this.comp(f)>0},ht.gt=ht.greaterThan,ht.greaterThanOrEqual=function(f){return this.comp(f)>=0},ht.gte=ht.greaterThanOrEqual,ht.ge=ht.greaterThanOrEqual,ht.compare=function(f){if(Mt(f)||(f=rn(f)),this.eq(f))return 0;var g=this.isNegative(),T=f.isNegative();return g&&!T?-1:!g&&T?1:this.unsigned?f.high>>>0>this.high>>>0||f.high===this.high&&f.low>>>0>this.low>>>0?-1:1:this.sub(f).isNegative()?-1:1},ht.comp=ht.compare,ht.negate=function(){return!this.unsigned&&this.eq(Qn)?Qn:this.not().add(Mn)},ht.neg=ht.negate,ht.add=function(f){Mt(f)||(f=rn(f));var g=this.high>>>16,T=this.high&65535,_=this.low>>>16,H=this.low&65535,K=f.high>>>16,oe=f.high&65535,Ae=f.low>>>16,He=f.low&65535,yt=0,Ft=0,ft=0,sn=0;return sn+=H+He,ft+=sn>>>16,sn&=65535,ft+=_+Ae,Ft+=ft>>>16,ft&=65535,Ft+=T+oe,yt+=Ft>>>16,Ft&=65535,yt+=g+K,yt&=65535,we(ft<<16|sn,yt<<16|Ft,this.unsigned)},ht.subtract=function(f){return Mt(f)||(f=rn(f)),this.add(f.neg())},ht.sub=ht.subtract,ht.multiply=function(f){if(this.isZero())return this;if(Mt(f)||(f=rn(f)),lt){var g=lt.mul(this.low,this.high,f.low,f.high);return we(g,lt.get_high(),this.unsigned)}if(f.isZero())return this.unsigned?tn:Dt;if(this.eq(Qn))return f.isOdd()?Qn:Dt;if(f.eq(Qn))return this.isOdd()?Qn:Dt;if(this.isNegative())return f.isNegative()?this.neg().mul(f.neg()):this.neg().mul(f).neg();if(f.isNegative())return this.mul(f.neg()).neg();if(this.lt(mt)&&f.lt(mt))return Ie(this.toNumber()*f.toNumber(),this.unsigned);var T=this.high>>>16,_=this.high&65535,H=this.low>>>16,K=this.low&65535,oe=f.high>>>16,Ae=f.high&65535,He=f.low>>>16,yt=f.low&65535,Ft=0,ft=0,sn=0,In=0;return In+=K*yt,sn+=In>>>16,In&=65535,sn+=H*yt,ft+=sn>>>16,sn&=65535,sn+=K*He,ft+=sn>>>16,sn&=65535,ft+=_*yt,Ft+=ft>>>16,ft&=65535,ft+=H*He,Ft+=ft>>>16,ft&=65535,ft+=K*Ae,Ft+=ft>>>16,ft&=65535,Ft+=T*yt+_*He+H*Ae+K*oe,Ft&=65535,we(sn<<16|In,Ft<<16|ft,this.unsigned)},ht.mul=ht.multiply,ht.divide=function(f){if(Mt(f)||(f=rn(f)),f.isZero())throw Error("division by zero");if(lt){if(!this.unsigned&&this.high===-2147483648&&f.low===-1&&f.high===-1)return this;var g=(this.unsigned?lt.div_u:lt.div_s)(this.low,this.high,f.low,f.high);return we(g,lt.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?tn:Dt;var T,_,H;if(this.unsigned){if(f.unsigned||(f=f.toUnsigned()),f.gt(this))return tn;if(f.gt(this.shru(1)))return Dn;H=tn}else{if(this.eq(Qn)){if(f.eq(Mn)||f.eq(Kt))return Qn;if(f.eq(Qn))return Mn;var K=this.shr(1);return T=K.div(f).shl(1),T.eq(Dt)?f.isNegative()?Mn:Kt:(_=this.sub(f.mul(T)),H=T.add(_.div(f)),H)}else if(f.eq(Qn))return this.unsigned?tn:Dt;if(this.isNegative())return f.isNegative()?this.neg().div(f.neg()):this.neg().div(f).neg();if(f.isNegative())return this.div(f.neg()).neg();H=Dt}for(_=this;_.gte(f);){T=Math.max(1,Math.floor(_.toNumber()/f.toNumber()));for(var oe=Math.ceil(Math.log(T)/Math.LN2),Ae=oe<=48?1:Qe(2,oe-48),He=Ie(T),yt=He.mul(f);yt.isNegative()||yt.gt(_);)T-=Ae,He=Ie(T,this.unsigned),yt=He.mul(f);He.isZero()&&(He=Mn),H=H.add(He),_=_.sub(yt)}return H},ht.div=ht.divide,ht.modulo=function(f){if(Mt(f)||(f=rn(f)),lt){var g=(this.unsigned?lt.rem_u:lt.rem_s)(this.low,this.high,f.low,f.high);return we(g,lt.get_high(),this.unsigned)}return this.sub(this.div(f).mul(f))},ht.mod=ht.modulo,ht.rem=ht.modulo,ht.not=function(){return we(~this.low,~this.high,this.unsigned)},ht.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},ht.clz=ht.countLeadingZeros,ht.countTrailingZeros=function(){return this.low?$t(this.low):$t(this.high)+32},ht.ctz=ht.countTrailingZeros,ht.and=function(f){return Mt(f)||(f=rn(f)),we(this.low&f.low,this.high&f.high,this.unsigned)},ht.or=function(f){return Mt(f)||(f=rn(f)),we(this.low|f.low,this.high|f.high,this.unsigned)},ht.xor=function(f){return Mt(f)||(f=rn(f)),we(this.low^f.low,this.high^f.high,this.unsigned)},ht.shiftLeft=function(f){return Mt(f)&&(f=f.toInt()),(f&=63)===0?this:f<32?we(this.low<>>32-f,this.unsigned):we(0,this.low<>>f|this.high<<32-f,this.high>>f,this.unsigned):we(this.high>>f-32,this.high>=0?0:-1,this.unsigned)},ht.shr=ht.shiftRight,ht.shiftRightUnsigned=function(f){return Mt(f)&&(f=f.toInt()),(f&=63)===0?this:f<32?we(this.low>>>f|this.high<<32-f,this.high>>>f,this.unsigned):f===32?we(this.high,0,this.unsigned):we(this.high>>>f-32,0,this.unsigned)},ht.shru=ht.shiftRightUnsigned,ht.shr_u=ht.shiftRightUnsigned,ht.rotateLeft=function(f){var g;return Mt(f)&&(f=f.toInt()),(f&=63)===0?this:f===32?we(this.high,this.low,this.unsigned):f<32?(g=32-f,we(this.low<>>g,this.high<>>g,this.unsigned)):(f-=32,g=32-f,we(this.high<>>g,this.low<>>g,this.unsigned))},ht.rotl=ht.rotateLeft,ht.rotateRight=function(f){var g;return Mt(f)&&(f=f.toInt()),(f&=63)===0?this:f===32?we(this.high,this.low,this.unsigned):f<32?(g=32-f,we(this.high<>>f,this.low<>>f,this.unsigned)):(f-=32,g=32-f,we(this.low<>>f,this.high<>>f,this.unsigned))},ht.rotr=ht.rotateRight,ht.toSigned=function(){return this.unsigned?we(this.low,this.high,!1):this},ht.toUnsigned=function(){return this.unsigned?this:we(this.low,this.high,!0)},ht.toBytes=function(f){return f?this.toBytesLE():this.toBytesBE()},ht.toBytesLE=function(){var f=this.high,g=this.low;return[g&255,g>>>8&255,g>>>16&255,g>>>24,f&255,f>>>8&255,f>>>16&255,f>>>24]},ht.toBytesBE=function(){var f=this.high,g=this.low;return[f>>>24,f>>>16&255,f>>>8&255,f&255,g>>>24,g>>>16&255,g>>>8&255,g&255]},at.fromBytes=function(f,g,T){return T?at.fromBytesLE(f,g):at.fromBytesBE(f,g)},at.fromBytesLE=function(f,g){return new at(f[0]|f[1]<<8|f[2]<<16|f[3]<<24,f[4]|f[5]<<8|f[6]<<16|f[7]<<24,g)},at.fromBytesBE=function(f,g){return new at(f[4]<<24|f[5]<<16|f[6]<<8|f[7],f[0]<<24|f[1]<<16|f[2]<<8|f[3],g)};const Yr=at;var En;(function(A){A.Ok="ok",A.ClientNotActive="client-not-active",A.Unimplemented="unimplemented",A.Unsupported="unsupported",A.DocumentNotAttached="document-not-attached",A.DocumentNotDetached="document-not-detached",A.DocumentRemoved="document-removed",A.InvalidObjectKey="invalid-object-key",A.InvalidArgument="invalid-argument"})(En||(En={}));class An extends Error{constructor(f,g){super(g),this.code=f,this.message=g,this.name="YorkieError",this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}function sa(A){if(A instanceof Map){const f=Array.from(A);return new Map(JSON.parse(JSON.stringify(f)))}return JSON.parse(JSON.stringify(A))}const Hp=A=>A?Object.entries(A).length===0:!0,no=A=>{const f={};for(const[g,T]of Object.entries(A))f[g]=JSON.stringify(T);return f},ci=A=>{const f={};for(const[g,T]of Object.entries(A))f[g]=JSON.parse(T);return f};var Ma;(function(A){A.Put="put",A.Clear="clear"})(Ma||(Ma={}));class Wp{constructor(f,g){this.context=f,this.presence=g}set(f,g){for(const T of Object.keys(f))this.presence[T]=f[T];this.context.setPresenceChange({type:Ma.Put,presence:sa(this.presence)}),this.context.setReversePresence(f,g)}get(f){return this.presence[f]}clear(){this.presence={},this.context.setPresenceChange({type:Ma.Clear})}}const BO="000000000000000000000000",la="FFFFFFFFFFFFFFFFFFFFFFFF";class Or{constructor(f,g,T){this.lamport=f,this.delimiter=g,this.actorID=T}static of(f,g,T){return new Or(f,g,T)}static fromStruct(f){return Or.of(Yr.fromString(f.lamport,!0),f.delimiter,f.actorID)}toIDString(){return this.actorID?`${this.lamport.toString()}:${this.actorID}:${this.delimiter}`:`${this.lamport.toString()}:nil:${this.delimiter}`}toStruct(){return{lamport:this.getLamportAsString(),delimiter:this.getDelimiter(),actorID:this.getActorID()}}toTestString(){return this.actorID?`${this.lamport.toString()}:${this.actorID.slice(-2)}:${this.delimiter}`:`${this.lamport.toString()}:nil:${this.delimiter}`}setActor(f){return new Or(this.lamport,this.delimiter,f)}getLamportAsString(){return this.lamport.toString()}getLamport(){return this.lamport}getDelimiter(){return this.delimiter}getActorID(){return this.actorID}after(f){return this.compare(f)>0}equals(f){return this.compare(f)===0}compare(f){if(this.lamport.greaterThan(f.lamport))return 1;if(f.lamport.greaterThan(this.lamport))return-1;const g=this.actorID.localeCompare(f.actorID);return g!==0?g:this.delimiter>f.delimiter?1:f.delimiter>this.delimiter?-1:0}}const Qp=0,Ts=4294967295,ws=Yr.MAX_VALUE,ro=new Or(Yr.fromNumber(0),Qp,BO),So=new Or(ws,Ts,la);function Br(A){return A.replace(/["'\\\n\r\f\b\t\u2028\u2029]/g,function(f){switch(f){case'"':case"\\":return"\\"+f;case` +`:return"\\n";case"\r":return"\\r";case"\f":return"\\f";case"\b":return"\\b";case" ":return"\\t";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return f}})}class io{constructor(f){this.createdAt=f}getCreatedAt(){return this.createdAt}getID(){return this.createdAt}getMovedAt(){return this.movedAt}getRemovedAt(){return this.removedAt}getPositionedAt(){return this.movedAt?this.movedAt:this.createdAt}setMovedAt(f){return!this.movedAt||f&&f.after(this.movedAt)?(this.movedAt=f,!0):!1}setRemovedAt(f){this.removedAt=f}remove(f){return f&&f.after(this.getPositionedAt())&&(!this.removedAt||f.after(this.removedAt))?(this.removedAt=f,!0):!1}isRemoved(){return!!this.removedAt}}class Wl extends io{constructor(f){super(f)}}class Vo extends io{}class To{constructor(f,g){this.strKey=f,this.value=g}static of(f,g){return new To(f,g)}isRemoved(){return this.value.isRemoved()}getStrKey(){return this.strKey}getValue(){return this.value}remove(f){return this.value.remove(f)}}class ji{constructor(){this.nodeMapByKey=new Map,this.nodeMapByCreatedAt=new Map}static create(){return new ji}set(f,g,T){let _;const H=this.nodeMapByKey.get(f);H!=null&&!H.isRemoved()&&H.remove(T)&&(_=H.getValue());const K=To.of(f,g);return this.nodeMapByCreatedAt.set(g.getCreatedAt().toIDString(),K),(H==null||T.after(H.getValue().getPositionedAt()))&&(this.nodeMapByKey.set(f,K),g.setMovedAt(T)),_}delete(f,g){this.nodeMapByCreatedAt.has(f.toIDString())||u.fatal(`fail to find ${f.toIDString()}`);const T=this.nodeMapByCreatedAt.get(f.toIDString());return T.remove(g),T.getValue()}subPathOf(f){const g=this.nodeMapByCreatedAt.get(f.toIDString());if(g)return g.getStrKey()}purge(f){const g=this.nodeMapByCreatedAt.get(f.getCreatedAt().toIDString());if(!g){u.fatal(`fail to find ${f.getCreatedAt().toIDString()}`);return}const T=this.nodeMapByKey.get(g.getStrKey());g===T&&this.nodeMapByKey.delete(T.getStrKey()),this.nodeMapByCreatedAt.delete(g.getValue().getCreatedAt().toIDString())}deleteByKey(f,g){const T=this.nodeMapByKey.get(f);if(T!=null&&T.remove(g))return T.getValue()}has(f){const g=this.nodeMapByKey.get(f);return g==null?!1:!g.isRemoved()}getByID(f){return this.nodeMapByCreatedAt.get(f.toIDString())}get(f){const g=this.nodeMapByKey.get(f);if(!(!g||g.isRemoved()))return g}*[Symbol.iterator](){for(const[,f]of this.nodeMapByKey)yield f}}class mr extends Wl{constructor(f,g){super(f),this.memberNodes=g}static create(f,g){if(!g)return new mr(f,ji.create());const T=ji.create();for(const[_,H]of Object.entries(g))T.set(_,H.deepcopy(),H.getCreatedAt());return new mr(f,T)}subPathOf(f){return this.memberNodes.subPathOf(f)}purge(f){this.memberNodes.purge(f)}set(f,g,T){return this.memberNodes.set(f,g,T)}delete(f,g){return this.memberNodes.delete(f,g)}deleteByKey(f,g){return this.memberNodes.deleteByKey(f,g)}get(f){const g=this.memberNodes.get(f);return g==null?void 0:g.getValue()}getByID(f){const g=this.memberNodes.getByID(f);return g==null?void 0:g.getValue()}has(f){return this.memberNodes.has(f)}toJSON(){const f=[];for(const[g,T]of this)f.push(`"${Br(g)}":${T.toJSON()}`);return`{${f.join(",")}}`}toJS(){return JSON.parse(this.toJSON())}toJSForTest(){const f={};for(const[g,T]of this){const{createdAt:_,value:H,type:K}=T.toJSForTest();f[g]={key:g,createdAt:_,value:H,type:K}}return{createdAt:this.getCreatedAt().toTestString(),value:f,type:"YORKIE_OBJECT"}}getKeys(){const f=Array();for(const[g]of this)f.push(g);return f}toSortedJSON(){var f;const g=Array();for(const[_]of this)g.push(_);const T=[];for(const _ of g.sort()){const H=(f=this.memberNodes.get(_))===null||f===void 0?void 0:f.getValue();T.push(`"${Br(_)}":${H.toSortedJSON()}`)}return`{${T.join(",")}}`}getRHT(){return this.memberNodes}deepcopy(){const f=mr.create(this.getCreatedAt());for(const g of this.memberNodes)f.memberNodes.set(g.getStrKey(),g.getValue().deepcopy(),this.getPositionedAt());return f.remove(this.getRemovedAt()),f}getDescendants(f){for(const g of this.memberNodes){const T=g.getValue();if(f(T,this))return;T instanceof Wl&&T.getDescendants(f)}}*[Symbol.iterator](){const f=new Set;for(const g of this.memberNodes)f.has(g.getStrKey())||(f.add(g.getStrKey()),g.isRemoved()||(yield[g.getStrKey(),g.getValue()]))}}var Cr;(function(A){A.Local="local",A.Remote="remote",A.UndoRedo="undoredo"})(Cr||(Cr={}));class Ur{constructor(f,g){this.parentCreatedAt=f,this.executedAt=g}getParentCreatedAt(){return this.parentCreatedAt}getExecutedAt(){if(!this.executedAt)throw new Error("executedAt has not been set yet");return this.executedAt}setActor(f){this.executedAt&&(this.executedAt=this.executedAt.setActor(f))}setExecutedAt(f){this.executedAt=f}}class Ho{constructor(f){this.value=f,this.initWeight()}getNodeString(){return`${this.weight}${this.value}`}getValue(){return this.value}getLeftWeight(){return this.hasLeft()?this.left.getWeight():0}getRightWeight(){return this.hasRight()?this.right.getWeight():0}getWeight(){return this.weight}getLeft(){return this.left}getRight(){return this.right}getParent(){return this.parent}hasLeft(){return!!this.left}hasRight(){return!!this.right}hasParent(){return!!this.parent}setLeft(f){this.left=f}setRight(f){this.right=f}setParent(f){this.parent=f}unlink(){this.parent=void 0,this.right=void 0,this.left=void 0}hasLinks(){return this.hasParent()||this.hasLeft()||this.hasRight()}increaseWeight(f){this.weight+=f}initWeight(){this.weight=this.getLength()}}class zi{constructor(f){this.root=f}get length(){return this.root?this.root.getWeight():0}find(f){if(!this.root||f<0)return[void 0,0];let g=this.root;for(;;)if(g.hasLeft()&&f<=g.getLeftWeight())g=g.getLeft();else if(g.hasRight()&&g.getLeftWeight()+g.getLength()g.getLength()&&u.fatal(`out of index range: pos: ${f} > node.length: ${g.getLength()}`),[g,f]}indexOf(f){if(!f||f!==this.root&&!f.hasLinks())return-1;let g=0,T=f,_;for(;T;)(!_||_===T.getRight())&&(g+=T.getLength()+(T.hasLeft()?T.getLeftWeight():0)),_=T,T=T.getParent();return g-f.getLength()}getRoot(){return this.root}insert(f){return this.insertAfter(this.root,f)}insertAfter(f,g){return f?(this.splayNode(f),this.root=g,g.setRight(f.getRight()),f.hasRight()&&f.getRight().setParent(g),g.setLeft(f),f.setParent(g),f.setRight(),this.updateWeight(f),this.updateWeight(g),g):(this.root=g,g)}updateWeight(f){f.initWeight(),f.hasLeft()&&f.increaseWeight(f.getLeftWeight()),f.hasRight()&&f.increaseWeight(f.getRightWeight())}updateTreeWeight(f){for(;f;)this.updateWeight(f),f=f.getParent()}splayNode(f){if(f)for(;;)if(this.isLeftChild(f.getParent())&&this.isRightChild(f))this.rotateLeft(f),this.rotateRight(f);else if(this.isRightChild(f.getParent())&&this.isLeftChild(f))this.rotateRight(f),this.rotateLeft(f);else if(this.isLeftChild(f.getParent())&&this.isLeftChild(f))this.rotateRight(f.getParent()),this.rotateRight(f);else if(this.isRightChild(f.getParent())&&this.isRightChild(f))this.rotateLeft(f.getParent()),this.rotateLeft(f);else{this.isLeftChild(f)?this.rotateRight(f):this.isRightChild(f)&&this.rotateLeft(f),this.updateWeight(f);return}}delete(f){this.splayNode(f);const g=new zi(f.getLeft());g.root&&g.root.setParent();const T=new zi(f.getRight());if(T.root&&T.root.setParent(),g.root){const _=g.getRightmost();g.splayNode(_),g.root.setRight(T.root),T.root&&T.root.setParent(g.root),this.root=g.root}else this.root=T.root;f.unlink(),this.root&&this.updateWeight(this.root)}deleteRange(f,g){if(!g){this.splayNode(f),this.cutOffRight(f);return}this.splayNode(f),this.splayNode(g),g.getLeft()!=f&&this.rotateRight(f),this.cutOffRight(f)}cutOffRight(f){const g=[];this.traversePostorder(f.getRight(),g);for(const T of g)T.initWeight();this.updateTreeWeight(f)}toTestString(){const f=[];return this.traverseInorder(this.root,f),f.map(g=>`[${g.getWeight()},${g.getLength()}]${g.getValue()||""}`).join("")}checkWeight(){const f=[];this.traverseInorder(this.root,f);for(const g of f)if(g.getWeight()!=g.getLength()+g.getLeftWeight()+g.getRightWeight())return!1;return!0}getRightmost(){let f=this.root;for(;f.hasRight();)f=f.getRight();return f}traverseInorder(f,g){f&&(this.traverseInorder(f.getLeft(),g),g.push(f),this.traverseInorder(f.getRight(),g))}traversePostorder(f,g){f&&(this.traversePostorder(f.getLeft(),g),this.traversePostorder(f.getRight(),g),g.push(f))}rotateLeft(f){const g=f.getParent();g.hasParent()?g===g.getParent().getLeft()?g.getParent().setLeft(f):g.getParent().setRight(f):this.root=f,f.setParent(g.getParent()),g.setRight(f.getLeft()),g.hasRight()&&g.getRight().setParent(g),f.setLeft(g),f.getLeft().setParent(f),this.updateWeight(g),this.updateWeight(f)}rotateRight(f){const g=f.getParent();g.hasParent()?g===g.getParent().getLeft()?g.getParent().setLeft(f):g.getParent().setRight(f):this.root=f,f.setParent(g.getParent()),g.setLeft(f.getRight()),g.hasLeft()&&g.getLeft().setParent(g),f.setRight(g),f.getRight().setParent(f),this.updateWeight(g),this.updateWeight(f)}isLeftChild(f){return f&&f.hasParent()?f.getParent().getLeft()===f:!1}isRightChild(f){return f&&f.hasParent()?f.getParent().getRight()===f:!1}}var Jt;(function(A){A[A.Null=0]="Null",A[A.Boolean=1]="Boolean",A[A.Integer=2]="Integer",A[A.Long=3]="Long",A[A.Double=4]="Double",A[A.String=5]="String",A[A.Bytes=6]="Bytes",A[A.Date=7]="Date"})(Jt||(Jt={}));class Ar extends io{constructor(f,g){super(g),this.valueType=Ar.getPrimitiveType(f),this.value=f===void 0?null:f}static of(f,g){return new Ar(f,g)}static valueFromBytes(f,g){switch(f){case Jt.Null:return null;case Jt.Boolean:return!!g[0];case Jt.Integer:return g[0]|g[1]<<8|g[2]<<16|g[3]<<24;case Jt.Double:{const T=new DataView(g.buffer);return g.forEach(function(_,H){T.setUint8(H,_)}),T.getFloat64(0,!0)}case Jt.String:return new TextDecoder("utf-8").decode(g);case Jt.Long:return Yr.fromBytesLE(Array.from(g));case Jt.Bytes:return g;case Jt.Date:return new Date(Yr.fromBytesLE(Array.from(g),!0).toNumber());default:throw new An(En.Unimplemented,`unimplemented type: ${f}`)}}toJSON(){return this.valueType===Jt.String?`"${Br(this.value)}"`:`${this.value}`}toSortedJSON(){return this.toJSON()}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:this.value,type:"YORKIE_PRIMITIVE"}}deepcopy(){const f=Ar.of(this.value,this.getCreatedAt());return f.setMovedAt(this.getMovedAt()),f.setRemovedAt(this.getRemovedAt()),f}getType(){return this.valueType}static getPrimitiveType(f){switch(typeof f){case"undefined":return Jt.Null;case"boolean":return Jt.Boolean;case"number":return this.isInteger(f)?Jt.Integer:Jt.Double;case"string":return Jt.String;case"object":if(f===null)return Jt.Null;if(f instanceof Yr)return Jt.Long;if(f instanceof Uint8Array)return Jt.Bytes;if(f instanceof Date)return Jt.Date}}static isSupport(f){return Ar.getPrimitiveType(f)!==void 0}static isInteger(f){return f%1===0}isNumericType(){const f=this.valueType;return f===Jt.Integer||f===Jt.Long||f===Jt.Double}getValue(){return this.value}toBytes(){switch(this.valueType){case Jt.Null:return new Uint8Array;case Jt.Boolean:return this.value?new Uint8Array([1]):new Uint8Array([0]);case Jt.Integer:{const f=this.value;return new Uint8Array([f&255,f>>8&255,f>>16&255,f>>24&255])}case Jt.Double:{const f=this.value,g=new Uint8Array(8);return new DataView(g.buffer).setFloat64(0,f,!0),g}case Jt.String:return new TextEncoder().encode(this.value);case Jt.Long:{const g=this.value.toBytesLE();return Uint8Array.from(g)}case Jt.Bytes:return this.value;case Jt.Date:{const f=this.value,g=Yr.fromNumber(f.getTime(),!0).toBytesLE();return Uint8Array.from(g)}default:throw new An(En.Unimplemented,`unimplemented type: ${this.valueType}`)}}}class Yp extends Ho{constructor(f){super(f),this.value=f}static createAfter(f,g){const T=new Yp(g),_=f.next;return f.next=T,T.prev=f,T.next=_,_&&(_.prev=T),T}remove(f){return this.value.remove(f)}getCreatedAt(){return this.value.getCreatedAt()}getPositionedAt(){return this.value.getPositionedAt()}release(){this.prev&&(this.prev.next=this.next),this.next&&(this.next.prev=this.prev),this.prev=void 0,this.next=void 0}getLength(){return this.value.isRemoved()?0:1}getPrev(){return this.prev}getNext(){return this.next}getValue(){return this.value}isRemoved(){return this.value.isRemoved()}}class df{constructor(){const f=Ar.of(0,ro);f.setRemovedAt(ro),this.dummyHead=new Yp(f),this.last=this.dummyHead,this.nodeMapByIndex=new zi,this.nodeMapByCreatedAt=new Map,this.nodeMapByIndex.insert(this.dummyHead),this.nodeMapByCreatedAt.set(this.dummyHead.getCreatedAt().toIDString(),this.dummyHead)}static create(){return new df}get length(){return this.nodeMapByIndex.length}findNextBeforeExecutedAt(f,g){let T=this.nodeMapByCreatedAt.get(f.toIDString());for(T||u.fatal(`cant find the given node: ${f.toIDString()}`);T.getNext()&&T.getNext().getPositionedAt().after(g);)T=T.getNext();return T}release(f){this.last===f&&(this.last=f.getPrev()),f.release(),this.nodeMapByIndex.delete(f),this.nodeMapByCreatedAt.delete(f.getValue().getCreatedAt().toIDString())}insertAfter(f,g,T=g.getCreatedAt()){const _=this.findNextBeforeExecutedAt(f,T),H=Yp.createAfter(_,g);_===this.last&&(this.last=H),this.nodeMapByIndex.insertAfter(_,H),this.nodeMapByCreatedAt.set(H.getCreatedAt().toIDString(),H)}moveAfter(f,g,T){const _=this.nodeMapByCreatedAt.get(f.toIDString());_||u.fatal(`cant find the given node: ${f.toIDString()}`);const H=this.nodeMapByCreatedAt.get(g.toIDString());H||u.fatal(`cant find the given node: ${g.toIDString()}`),_!==H&&(!H.getValue().getMovedAt()||T.after(H.getValue().getMovedAt()))&&(this.release(H),this.insertAfter(_.getCreatedAt(),H.getValue(),T),H.getValue().setMovedAt(T))}insert(f){this.insertAfter(this.last.getCreatedAt(),f)}getByID(f){return this.nodeMapByCreatedAt.get(f.toIDString())}subPathOf(f){const g=this.nodeMapByCreatedAt.get(f.toIDString());if(g)return String(this.nodeMapByIndex.indexOf(g))}purge(f){const g=this.nodeMapByCreatedAt.get(f.getCreatedAt().toIDString());g||u.fatal(`fail to find the given createdAt: ${f.getCreatedAt().toIDString()}`),this.release(g)}getByIndex(f){if(f>=this.length)return;const[g,T]=this.nodeMapByIndex.find(f);let _=g;if(f===0&&g===this.dummyHead||T>0)do _&&(_=_.getNext());while(_&&_.isRemoved());return _}getPrevCreatedAt(f){let g=this.nodeMapByCreatedAt.get(f.toIDString());do g=g.getPrev();while(this.dummyHead!==g&&g.isRemoved());return g.getValue().getCreatedAt()}delete(f,g){const T=this.nodeMapByCreatedAt.get(f.toIDString()),_=T.isRemoved();return T.remove(g)&&!_&&this.nodeMapByIndex.splayNode(T),T.getValue()}deleteByIndex(f,g){const T=this.getByIndex(f);if(T)return T.remove(g)&&this.nodeMapByIndex.splayNode(T),T.getValue()}getHead(){return this.dummyHead.getValue()}getLast(){return this.last.getValue()}getLastCreatedAt(){return this.last.getCreatedAt()}toTestString(){const f=[];for(const g of this){const T=`${g.getCreatedAt().toIDString()}:${g.getValue().toJSON()}`;g.isRemoved()?f.push(`{${T}}`):f.push(`[${T}]`)}return f.join("")}*[Symbol.iterator](){let f=this.dummyHead.getNext();for(;f;)yield f,f=f.getNext()}}class Wo extends Wl{constructor(f,g){super(f),this.elements=g}static create(f,g){if(!g)return new Wo(f,df.create());const T=df.create();for(const _ of g)T.insertAfter(T.getLastCreatedAt(),_.deepcopy());return new Wo(f,T)}subPathOf(f){return this.elements.subPathOf(f)}purge(f){this.elements.purge(f)}insertAfter(f,g){this.elements.insertAfter(f,g)}moveAfter(f,g,T){this.elements.moveAfter(f,g,T)}get(f){const g=this.elements.getByIndex(f);return g==null?void 0:g.getValue()}getByID(f){const g=this.elements.getByID(f);return g==null?void 0:g.getValue()}getHead(){return this.elements.getHead()}getLast(){return this.elements.getLast()}getPrevCreatedAt(f){return this.elements.getPrevCreatedAt(f)}delete(f,g){return this.elements.delete(f,g)}deleteByIndex(f,g){return this.elements.deleteByIndex(f,g)}getLastCreatedAt(){return this.elements.getLastCreatedAt()}get length(){return this.elements.length}*[Symbol.iterator](){for(const f of this.elements)f.isRemoved()||(yield f.getValue())}toTestString(){return this.elements.toTestString()}getDescendants(f){for(const g of this.elements){const T=g.getValue();if(f(T,this))return;T instanceof Wl&&T.getDescendants(f)}}toJSON(){const f=[];for(const g of this)f.push(g.toJSON());return`[${f.join(",")}]`}toJS(){return JSON.parse(this.toJSON())}toJSForTest(){const f={};for(let g=0;g`${f}="${JSON.parse(g.getValue())}"`).join(" ")}`:""}size(){return this.nodeMapByKey.size}toObject(){const f={};for(const[g,T]of this.nodeMapByKey)f[g]=T.getValue();return f}*[Symbol.iterator](){for(const[,f]of this.nodeMapByKey)yield f}}var Qo;(function(A){A.Content="content",A.Style="style"})(Qo||(Qo={}));class Yo{constructor(f){this.attributes=$a.create(),this.content=f}static create(f){return new Yo(f)}get length(){return this.content.length}substring(f,g){const T=new Yo(this.content.substring(f,g));return T.attributes=this.attributes.deepcopy(),T}setAttr(f,g,T){this.attributes.set(f,g,T)}getAttrs(){return this.attributes}toString(){return this.content}toJSON(){const f=Br(this.content),g=this.attributes.toObject(),T=[];for(const[_,H]of Object.entries(g)){const K=JSON.parse(H),oe=typeof K=="string"?`"${Br(_)}":"${Br(K)}"`:`"${Br(_)}":${String(K)}`;T.push(oe)}return T.sort(),T.length===0?`{"val":"${f}"}`:`{"attrs":{${T.join(",")}},"val":"${f}"}`}getAttributes(){return this.attributes.toObject()}getContent(){return this.content}}class di extends Vo{constructor(f,g){super(g),this.rgaTreeSplit=f}static create(f,g){return new di(f,g)}edit(f,g,T,_,H){const K=g?Yo.create(g):void 0;if(K&&_)for(const[Ft,ft]of Object.entries(_))K.setAttr(Ft,ft,T);const[oe,Ae,He]=this.rgaTreeSplit.edit(f,T,K,H),yt=He.map(Ft=>({...Ft,value:Ft.value?{attributes:ci(Ft.value.getAttributes()),content:Ft.value.getContent()}:{attributes:void 0,content:""},type:Qo.Content}));return[Ae,yt,[oe,oe]]}setStyle(f,g,T,_){const[,H]=this.rgaTreeSplit.findNodeWithSplit(f[1],T),[,K]=this.rgaTreeSplit.findNodeWithSplit(f[0],T),oe=[],Ae=this.rgaTreeSplit.findBetween(K,H),He=new Map,yt=[];for(const Ft of Ae){const ft=Ft.getCreatedAt().getActorID(),sn=_!=null&&_.size?_.has(ft)?_.get(ft):ro:So;if(Ft.canStyle(T,sn)){const In=He.get(ft),Nn=Ft.getCreatedAt();(!In||Nn.after(In))&&He.set(ft,Nn),yt.push(Ft)}}for(const Ft of yt){if(Ft.isRemoved())continue;const[ft,sn]=this.rgaTreeSplit.findIndexesFromRange(Ft.createPosRange());oe.push({type:Qo.Style,actor:T.getActorID(),from:ft,to:sn,value:{attributes:ci(g)}});for(const[In,Nn]of Object.entries(g))Ft.getValue().setAttr(In,Nn,T)}return[He,oe]}indexRangeToPosRange(f,g){const T=this.rgaTreeSplit.indexToPos(f);return f===g?[T,T]:[T,this.rgaTreeSplit.indexToPos(g)]}get length(){return this.rgaTreeSplit.length}checkWeight(){return this.rgaTreeSplit.checkWeight()}toJSON(){const f=[];for(const g of this.rgaTreeSplit)g.isRemoved()||f.push(g.getValue().toJSON());return`[${f.join(",")}]`}toSortedJSON(){return this.toJSON()}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:JSON.parse(this.toJSON()),type:"YORKIE_TEXT"}}toString(){return this.rgaTreeSplit.toString()}values(){const f=[];for(const g of this.rgaTreeSplit)if(!g.isRemoved()){const T=g.getValue();f.push({attributes:ci(T.getAttributes()),content:T.getContent()})}return f}getRGATreeSplit(){return this.rgaTreeSplit}toTestString(){return this.rgaTreeSplit.toTestString()}getRemovedNodesLen(){return this.rgaTreeSplit.getRemovedNodesLen()}purgeRemovedNodesBefore(f){return this.rgaTreeSplit.purgeRemovedNodesBefore(f)}deepcopy(){const f=new di(this.rgaTreeSplit.deepcopy(),this.getCreatedAt());return f.remove(this.getRemovedAt()),f}findIndexesFromRange(f){return this.rgaTreeSplit.findIndexesFromRange(f)}}class Gl extends Ur{constructor(f,g,T,_,H,K,oe){super(f,oe),this.fromPos=g,this.toPos=T,this.maxCreatedAtMapByActor=_,this.content=H,this.attributes=K}static create(f,g,T,_,H,K,oe){return new Gl(f,g,T,_,H,K,oe)}execute(f){const g=f.findByCreatedAt(this.getParentCreatedAt());g||u.fatal(`fail to find ${this.getParentCreatedAt()}`),g instanceof di||u.fatal("fail to execute, only Text can execute edit");const T=g,[,_]=T.edit([this.fromPos,this.toPos],this.content,this.getExecutedAt(),Object.fromEntries(this.attributes),this.maxCreatedAtMapByActor);return this.fromPos.equals(this.toPos)||f.registerElementHasRemovedNodes(T),{opInfos:_.map(({from:H,to:K,value:oe})=>({type:"edit",from:H,to:K,value:oe,path:f.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const f=this.getParentCreatedAt().toTestString(),g=this.fromPos.toTestString(),T=this.toPos.toTestString(),_=this.content;return`${f}.EDIT(${g},${T},${_})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getContent(){return this.content}getAttributes(){return this.attributes||new Map}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}class wo extends Ur{constructor(f,g,T,_,H,K){super(f,K),this.fromPos=g,this.toPos=T,this.maxCreatedAtMapByActor=_,this.attributes=H}static create(f,g,T,_,H,K){return new wo(f,g,T,_,H,K)}execute(f){const g=f.findByCreatedAt(this.getParentCreatedAt());g||u.fatal(`fail to find ${this.getParentCreatedAt()}`),g instanceof di||u.fatal("fail to execute, only Text can execute edit");const T=g,[,_]=T.setStyle([this.fromPos,this.toPos],this.attributes?Object.fromEntries(this.attributes):{},this.getExecutedAt(),this.maxCreatedAtMapByActor);return{opInfos:_.map(({from:H,to:K,value:oe})=>({type:"style",from:H,to:K,value:oe,path:f.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const f=this.getParentCreatedAt().toTestString(),g=this.fromPos.toTestString(),T=this.toPos.toTestString(),_=this.attributes;return`${f}.STYL(${g},${T},${JSON.stringify(_)})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getAttributes(){return this.attributes}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}const ua=2,ca="root",ki="text";function Go(A,f){let g=0;const T=A.children;for(let _=0;_0)throw new Error(`Text node cannot have children: ${this.type}`)}updateAncestorsSize(){let f=this.parent;const g=this.isRemoved?-1:1;for(;f;)f.size+=this.paddedSize*g,f=f.parent}get isText(){return this.type===ki}get paddedSize(){return this.size+(this.isText?0:ua)}isAncestorOf(f){return Mc(this,f)}get nextSibling(){const f=this.parent.findOffset(this),g=this.parent.children[f+1];if(g)return g}splitText(f,g){if(f===0||f===this.size)return;const T=this.value.slice(0,f),_=this.value.slice(f);if(!_.length)return;this.value=T;const H=this.cloneText(f+g);return H.value=_,this.parent.insertAfterInternal(H,this),H}get children(){return this._children.filter(f=>!f.isRemoved)}get allChildren(){return[...this._children]}hasTextChild(){return this.children.some(f=>f.isText)}append(...f){if(this.isText)throw new Error("Text node cannot have children");this._children.push(...f);for(const g of f)g.parent=this,g.updateAncestorsSize()}prepend(...f){if(this.isText)throw new Error("Text node cannot have children");this._children.unshift(...f);for(const g of f)g.parent=this,g.isRemoved||g.updateAncestorsSize()}insertBefore(f,g){if(this.isText)throw new Error("Text node cannot have children");const T=this._children.indexOf(g);if(T===-1)throw new Error("child not found");this.insertAtInternal(f,T),f.updateAncestorsSize()}insertAfter(f,g){if(this.isText)throw new Error("Text node cannot have children");const T=this._children.indexOf(g);if(T===-1)throw new Error("child not found");this.insertAtInternal(f,T+1),f.updateAncestorsSize()}insertAt(f,g){if(this.isText)throw new Error("Text node cannot have children");this.insertAtInternal(f,g),f.updateAncestorsSize()}removeChild(f){if(this.isText)throw new Error("Text node cannot have children");const g=this._children.indexOf(f);if(g===-1)throw new Error("child not found");this._children.splice(g,1),f.parent=void 0}splitElement(f,g){const T=this.cloneElement(g);this.parent.insertAfterInternal(T,this),T.updateAncestorsSize();const _=this.children.slice(0,f),H=this.children.slice(f);this._children=_,T._children=H,this.size=this._children.reduce((K,oe)=>K+oe.paddedSize,0),T.size=T._children.reduce((K,oe)=>K+oe.paddedSize,0);for(const K of T._children)K.parent=T;return T}insertAfterInternal(f,g){if(this.isText)throw new Error("Text node cannot have children");const T=this._children.indexOf(g);if(T===-1)throw new Error("child not found");this.insertAtInternal(f,T+1)}insertAtInternal(f,g){if(this.isText)throw new Error("Text node cannot have children");this._children.splice(g,0,f),f.parent=this}findOffset(f){if(this.isText)throw new Error("Text node cannot have children");if(f.isRemoved){const g=this._children.indexOf(f);return this.allChildren.splice(0,g).filter(_=>!_.isRemoved).length}return this.children.indexOf(f)}findBranchOffset(f){if(this.isText)throw new Error("Text node cannot have children");let g=f;for(;g;){const T=this._children.indexOf(g);if(T!==-1)return T;g=g.parent}return-1}}function Mc(A,f){if(A===f)return!1;for(;f.parent;){if(f.parent===A)return!0;f=f.parent}return!1}var Yn;(function(A){A.Start="Start",A.End="End",A.Text="Text"})(Yn||(Yn={}));function Fa(A,f,g,T){if(f>g)throw new Error(`from is greater than to: ${f} > ${g}`);if(f>A.size)throw new Error(`from is out of range: ${f} > ${A.size}`);if(g>A.size)throw new Error(`to is out of range: ${g} > ${A.size}`);if(f===g)return;let _=0;for(const H of A.children){if(f-H.paddedSize<_&&_H.size;(H.isText||Ae)&&T([H,H.isText?Yn.Text:Yn.Start],He),Fa(H,Math.max(0,K),Math.min(oe,H.size),T),He&&T([H,Yn.End],He)}_+=H.paddedSize}}function xi(A,f,g=0){for(const T of A.children)xi(T,f,g+1);f(A,g)}function Ba(A,f,g=0){for(const T of A._children)Ba(T,f,g+1);f(A,g)}function da(A,f,g=!0){if(f>A.size)throw new Error(`index is out of range: ${f} > ${A.size}`);if(A.isText)return{node:A,offset:f};let T=0,_=0;for(const H of A.children){if(g&&H.isText&&H.size>=f-_)return da(H,f-_,g);if(f===_)return{node:A,offset:T};if(!g&&H.paddedSize===f-_)return{node:A,offset:T+1};if(H.paddedSize>f-_)return da(H,f-_-1,g);_+=H.paddedSize,T+=1}return{node:A,offset:T}}function Ua(A){return A.isText||A.children.length===0?A:Ua(A.children[0])}function F(A,f){if(A.sizeA===f?0:A0)if(g.right)g.right.parent=g,g=g.right;else return g;else if(T<0)if(g.left)g.left.parent=g,g=g.left;else{let _=g.parent,H=g;for(;_&&H===_.left;)H=_,_=_.parent;return _}else return g}}lastEntry(){if(!this.root)return this.root;let f=this.root;for(;f.right;)f=f.right;return f}size(){return this.counter}isEmpty(){return this.counter===0}getInternal(f,g){for(;g;){const T=this.comparator(f,g.key);if(T===0)return g;T<0?g=g.left:T>0&&(g=g.right)}}putInternal(f,g,T){if(!T)return this.counter+=1,new le(f,g,!0);const _=this.comparator(f,T.key);return _<0?T.left=this.putInternal(f,g,T.left):_>0?T.right=this.putInternal(f,g,T.right):T.value=g,this.isRed(T.right)&&!this.isRed(T.left)&&(T=this.rotateLeft(T)),this.isRed(T.left)&&this.isRed(T.left.left)&&(T=this.rotateRight(T)),this.isRed(T.left)&&this.isRed(T.right)&&this.flipColors(T),T}removeInternal(f,g){if(this.comparator(g,f.key)<0)!this.isRed(f.left)&&!this.isRed(f.left.left)&&(f=this.moveRedLeft(f)),f.left=this.removeInternal(f.left,g);else{if(this.isRed(f.left)&&(f=this.rotateRight(f)),this.comparator(g,f.key)===0&&!f.right){this.counter-=1;return}if(!this.isRed(f.right)&&!this.isRed(f.right.left)&&(f=this.moveRedRight(f)),this.comparator(g,f.key)===0){this.counter-=1;const T=this.min(f.right);f.value=T.value,f.key=T.key,f.right=this.removeMin(f.right)}else f.right=this.removeInternal(f.right,g)}return this.fixUp(f)}min(f){return f.left?this.min(f.left):f}removeMin(f){if(f.left)return!this.isRed(f.left)&&!this.isRed(f.left.left)&&(f=this.moveRedLeft(f)),f.left=this.removeMin(f.left),this.fixUp(f)}fixUp(f){return this.isRed(f.right)&&(f=this.rotateLeft(f)),this.isRed(f.left)&&this.isRed(f.left.left)&&(f=this.rotateRight(f)),this.isRed(f.left)&&this.isRed(f.right)&&this.flipColors(f),f}moveRedLeft(f){return this.flipColors(f),this.isRed(f.right.left)&&(f.right=this.rotateRight(f.right),f=this.rotateLeft(f),this.flipColors(f)),f}moveRedRight(f){return this.flipColors(f),this.isRed(f.left.left)&&(f=this.rotateRight(f),this.flipColors(f)),f}isRed(f){return f&&f.isRed}rotateLeft(f){const g=f.right;return f.right=g.left,g.left=f,g.isRed=g.left.isRed,g.left.isRed=!0,g}rotateRight(f){const g=f.left;return f.left=g.right,g.right=f,g.isRed=g.right.isRed,g.right.isRed=!0,g}flipColors(f){f.isRed=!f.isRed,f.left.isRed=!f.left.isRed,f.right.isRed=!f.right.isRed}}var je;(function(A){A.Content="content",A.Style="style"})(je||(je={}));class ct{constructor(f,g){this.parentID=f,this.leftSiblingID=g}static of(f,g){return new ct(f,g)}static fromTreePos(f){const{offset:g}=f;let{node:T}=f,_;return T.isText?(T.parent.children[0]===T&&g===0?_=T.parent:_=T,T=T.parent):g===0?_=T:_=T.children[g-1],ct.of(T.id,Ze.of(_.getCreatedAt(),_.getOffset()+g))}getParentID(){return this.parentID}static fromStruct(f){return ct.of(Ze.of(Or.fromStruct(f.parentID.createdAt),f.parentID.offset),Ze.of(Or.fromStruct(f.leftSiblingID.createdAt),f.leftSiblingID.offset))}toStruct(){return{parentID:{createdAt:this.getParentID().getCreatedAt().toStruct(),offset:this.getParentID().getOffset()},leftSiblingID:{createdAt:this.getLeftSiblingID().getCreatedAt().toStruct(),offset:this.getLeftSiblingID().getOffset()}}}toTreeNodes(f){const g=this.getParentID(),T=this.getLeftSiblingID(),_=f.findFloorNode(g);let H=f.findFloorNode(T);if(!_||!H)throw new Error(`cannot find node at ${this}`);return!T.equals(g)&&T.getOffset()>0&&T.getOffset()===H.id.getOffset()&&H.insPrevID&&(H=f.findFloorNode(H.insPrevID)),[_,H]}getLeftSiblingID(){return this.leftSiblingID}equals(f){return this.getParentID().getCreatedAt().equals(f.getParentID().getCreatedAt())&&this.getParentID().getOffset()===f.getParentID().getOffset()&&this.getLeftSiblingID().getCreatedAt().equals(f.getLeftSiblingID().getCreatedAt())&&this.getLeftSiblingID().getOffset()===f.getLeftSiblingID().getOffset()}}class Ze{constructor(f,g){this.createdAt=f,this.offset=g}static of(f,g){return new Ze(f,g)}static fromStruct(f){return Ze.of(Or.fromStruct(f.createdAt),f.offset)}static createComparator(){return(f,g)=>{const T=f.getCreatedAt().compare(g.getCreatedAt());return T!==0?T:f.getOffset()>g.getOffset()?1:f.getOffset(){const _=T.deepcopy();return _.parent=g,_}),g}get value(){if(!this.isText)throw new Error(`cannot get value of element node: ${this.type}`);return this._value}set value(f){if(!this.isText)throw new Error(`cannot set value of element node: ${this.type}`);this._value=f,this.size=f.length}get isRemoved(){return!!this.removedAt}remove(f){const g=!this.removedAt;(!this.removedAt||this.removedAt.compare(f)>0)&&(this.removedAt=f),g&&(this.parent.removedAt?this.parent.size-=this.paddedSize:this.updateAncestorsSize())}cloneText(f){return new Ot(Ze.of(this.id.getCreatedAt(),f),this.type,void 0,void 0,this.removedAt)}cloneElement(f){return new Ot(Ze.of(f(),0),this.type,void 0,void 0,this.removedAt)}split(f,g,T){const _=this.isText?this.splitText(g,this.id.getOffset()):this.splitElement(g,T);if(_){if(_.insPrevID=this.id,this.insNextID){const H=f.findFloorNode(this.insNextID);H.insPrevID=_.id,_.insNextID=this.insNextID}this.insNextID=_.id,f.registerNode(_)}return _}getCreatedAt(){return this.id.getCreatedAt()}getOffset(){return this.id.getOffset()}canDelete(f,g){return!this.getCreatedAt().after(g)&&(!this.removedAt||f.after(this.removedAt))}}function Pt(A){var f;if(A.isText){const g=A;return{type:g.type,value:g.value}}return{type:A.type,children:A.children.map(Pt),attributes:A.attrs?ci((f=A.attrs)===null||f===void 0?void 0:f.toObject()):void 0}}function On(A){var f;return A.isText?A.value:`<${A.type}${((f=A.attrs)===null||f===void 0?void 0:f.toXML())||""}>${A.children.map(g=>On(g)).join("")}`}function vr(A){if(A.isText){const f=A;return{type:f.type,value:f.value,size:f.size,isRemoved:f.isRemoved}}return{type:A.type,children:A.children.map(vr),size:A.size,isRemoved:A.isRemoved}}class Sn extends Vo{constructor(f,g){super(g),this.indexTree=new x(f),this.nodeMapByID=new Pe(Ze.createComparator()),this.removedNodeMap=new Map,this.indexTree.traverse(T=>{this.nodeMapByID.put(T.id,T)})}static create(f,g){return new Sn(f,g)}findFloorNode(f){const g=this.nodeMapByID.floorEntry(f);if(!(!g||!g.key.getCreatedAt().equals(f.getCreatedAt())))return g.value}registerNode(f){this.nodeMapByID.put(f.id,f)}findNodesAndSplitText(f,g){const[T,_]=f.toTreeNodes(this);let H=_;const K=T===H,oe=H.parent&&!K?H.parent:T;H.isText&&H.split(this,f.getLeftSiblingID().getOffset()-H.id.getOffset());const Ae=oe.allChildren,He=K?0:Ae.indexOf(H)+1;for(let yt=He;yt{if(!He.isRemoved&&!He.isText&&g){He.attrs||(He.attrs=new $a);for(const[yt,Ft]of Object.entries(g))He.attrs.set(yt,Ft,T)}}),Ae}edit(f,g,T,_,H,K){const[oe,Ae]=this.findNodesAndSplitText(f[0],_),[He,yt]=this.findNodesAndSplitText(f[1],_),Ft=this.toIndex(oe,Ae),ft=this.toPath(oe,Ae),sn=[],In=[],Nn=[],ar=new Map;this.traverseInPosRange(oe,Ae,He,yt,([$n,ti],Gr)=>{if(ti===Yn.Start&&!Gr)for(const th of $n.children)Nn.push(th);const Oi=$n.getCreatedAt().getActorID(),gf=K?K.has(Oi)?K.get(Oi):ro:So;if($n.canDelete(_,gf)||sn.includes($n.parent)){const th=ar.get(Oi),r0=$n.getCreatedAt();(!th||r0.after(th))&&ar.set(Oi,r0),(ti===Yn.Text||ti===Yn.Start)&&sn.push($n),In.push([$n,ti])}});const oo=this.makeDeletionChanges(In,_);for(const $n of sn)$n.remove(_),$n.isRemoved&&this.removedNodeMap.set($n.id.toIDString(),$n);for(const $n of Nn)$n.removedAt||oe.append($n);if(T>0){let $n=0,ti=oe,Gr=Ae;for(;$n{oe.isRemoved&&(Oi.remove(_),this.removedNodeMap.set(Oi.id.toIDString(),Oi)),this.nodeMapByID.put(Oi.id,Oi)}),Gr.isRemoved||$n.push(Gr);if($n.length){const Gr=$n.map(Oi=>Pt(Oi));oo.length&&oo[oo.length-1].from===Ft?oo[oo.length-1].value=Gr:oo.push({type:je.Content,from:Ft,to:Ft,fromPath:ft,toPath:ft,actor:_.getActorID(),value:Gr})}}return[oo,ar]}editT(f,g,T,_,H){const K=this.findPos(f[0]),oe=this.findPos(f[1]);this.edit([K,oe],g,T,_,H)}move(f,g,T){throw new Error(`not implemented: ${f}, ${g}, ${T}`)}purgeRemovedNodesBefore(f){var g;const T=new Set;let _=0;for(const[,H]of this.removedNodeMap)H.removedAt&&f.compare(H.removedAt)>=0&&(T.add(H),_++);for(const H of T)(g=H.parent)===null||g===void 0||g.removeChild(H),this.nodeMapByID.remove(H.id),this.purge(H),this.removedNodeMap.delete(H.id.toIDString());return _}purge(f){const g=f.insPrevID,T=f.insNextID;if(g){const _=this.findFloorNode(g);_.insNextID=T}if(T){const _=this.findFloorNode(T);_.insPrevID=g}f.insPrevID=void 0,f.insNextID=void 0}findPos(f,g=!0){const T=this.indexTree.findTreePos(f,g);return ct.fromTreePos(T)}getRemovedNodesLen(){return this.removedNodeMap.size}pathToPosRange(f){const g=this.pathToIndex(f);return[this.findPos(g),this.findPos(g+1)]}pathToPos(f){const g=this.indexTree.pathToIndex(f);return this.findPos(g)}getRoot(){return this.indexTree.getRoot()}getSize(){return this.indexTree.size}getIndexTree(){return this.indexTree}toXML(){return On(this.indexTree.getRoot())}toJSON(){return JSON.stringify(this.getRootTreeNode())}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:JSON.parse(this.toJSON()),type:"YORKIE_TREE"}}toJSInfoForTest(){const f=this.indexTree.getRoot(),g=(T,_=void 0,H=0)=>{var K,oe,Ae;const He={type:T.type,parent:_,size:T.size,id:T.id.toTestString(),removedAt:(K=T.removedAt)===null||K===void 0?void 0:K.toTestString(),insPrev:(oe=T.insPrevID)===null||oe===void 0?void 0:oe.toTestString(),insNext:(Ae=T.insNextID)===null||Ae===void 0?void 0:Ae.toTestString(),value:T.isText?T.value:void 0,isRemoved:T.isRemoved,children:[],depth:H};for(const yt of T.children)He.children.push(g(yt,He.id,H+1));return He};return g(f)}getRootTreeNode(){return Pt(this.indexTree.getRoot())}toTestTreeNode(){return vr(this.indexTree.getRoot())}toSortedJSON(){return this.toJSON()}deepcopy(){const f=this.getRoot();return new Sn(f.deepcopy(),this.getCreatedAt())}toPath(f,g){const T=this.toTreePos(f,g);return T?this.indexTree.treePosToPath(T):[]}toIndex(f,g){const T=this.toTreePos(f,g);return T?this.indexTree.indexOf(T):-1}indexToPath(f){return this.indexTree.indexToPath(f)}pathToIndex(f){return this.indexTree.pathToIndex(f)}indexRangeToPosRange(f){const g=this.findPos(f[0]);return f[0]===f[1]?[g,g]:[g,this.findPos(f[1])]}indexRangeToPosStructRange(f){const[g,T]=f,_=this.findPos(g);return g===T?[_.toStruct(),_.toStruct()]:[_.toStruct(),this.findPos(T).toStruct()]}posRangeToPathRange(f,g){const[T,_]=this.findNodesAndSplitText(f[0],g),[H,K]=this.findNodesAndSplitText(f[1],g);return[this.toPath(T,_),this.toPath(H,K)]}posRangeToIndexRange(f,g){const[T,_]=this.findNodesAndSplitText(f[0],g),[H,K]=this.findNodesAndSplitText(f[1],g);return[this.toIndex(T,_),this.toIndex(H,K)]}traverseInPosRange(f,g,T,_,H){const K=this.toIndex(f,g),oe=this.toIndex(T,_);return this.indexTree.tokensBetween(K,oe,H)}toTreePos(f,g){if(!f||!g)return;if(f.isRemoved){let _;for(;f.isRemoved;)_=f,f=_.parent;const H=f.findOffset(_);return{node:f,offset:H}}if(f===g)return{node:f,offset:0};let T=f.findOffset(g);if(!g.isRemoved){if(g.isText)return{node:g,offset:g.paddedSize};T++}return{node:f,offset:T}}makeDeletionChanges(f,g){const T=[],_=[];let H=null,K=null;for(let oe=0;oe0&&ar===T[T.length-1].to?(T[T.length-1].to=oo,T[T.length-1].toPath=this.toPath(Nn,ft)):T.push({type:je.Content,from:ar,to:oo,fromPath:this.toPath(In,yt),toPath:this.toPath(Nn,ft),actor:g.getActorID()}))}return T}findRightToken([f,g]){if(g===Yn.Start){const oe=f.allChildren;return oe.length>0?[oe[0],oe[0].isText?Yn.Text:Yn.Start]:[f,Yn.End]}const T=f.parent,_=T.allChildren,H=_.indexOf(f);if(T&&H===_.length-1)return[T,Yn.End];const K=_[H+1];return[K,K.isText?Yn.Text:Yn.Start]}findLeftToken([f,g]){if(g===Yn.End){const oe=f.allChildren;if(oe.length>0){const Ae=oe[oe.length-1];return[Ae,Ae.isText?Yn.Text:Yn.End]}return[f,Yn.Start]}const T=f.parent,_=T.allChildren,H=_.indexOf(f);if(T&&H===0)return[T,Yn.Start];const K=_[H-1];return[K,K.isText?Yn.Text:Yn.End]}}class Vi extends Ur{constructor(f,g,T,_,H,K,oe){super(f,oe),this.fromPos=g,this.toPos=T,this.contents=_,this.splitLevel=H,this.maxCreatedAtMapByActor=K}static create(f,g,T,_,H,K,oe){return new Vi(f,g,T,_,H,K,oe)}execute(f){var g;const T=f.findByCreatedAt(this.getParentCreatedAt());T||u.fatal(`fail to find ${this.getParentCreatedAt()}`),T instanceof Sn||u.fatal("fail to execute, only Tree can execute edit");const _=this.getExecutedAt(),H=T,[K]=H.edit([this.fromPos,this.toPos],(g=this.contents)===null||g===void 0?void 0:g.map(oe=>oe.deepcopy()),this.splitLevel,_,(()=>{let oe=_.getDelimiter();return this.contents!==void 0&&(oe+=this.contents.length),()=>Or.of(_.getLamport(),++oe,_.getActorID())})(),this.maxCreatedAtMapByActor);return this.fromPos.equals(this.toPos)||f.registerElementHasRemovedNodes(H),{opInfos:K.map(({from:oe,to:Ae,value:He,splitLevel:yt,fromPath:Ft,toPath:ft})=>({type:"tree-edit",path:f.createPath(this.getParentCreatedAt()),from:oe,to:Ae,value:He,splitLevel:yt,fromPath:Ft,toPath:ft}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const f=this.getParentCreatedAt().toTestString(),g=`${this.fromPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.fromPos.getLeftSiblingID().getOffset()}`,T=`${this.toPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.toPos.getLeftSiblingID().getOffset()}`,_=this.contents;return`${f}.EDIT(${g},${T},${_==null?void 0:_.join("")})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getContents(){return this.contents}getSplitLevel(){return this.splitLevel}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}class ja{constructor(f,g,T){this.clientSeq=f,this.lamport=g,this.actor=T}static of(f,g,T){return new ja(f,g,T)}next(){return new ja(this.clientSeq+1,this.lamport.add(1),this.actor)}syncLamport(f){return f.greaterThan(this.lamport)?new ja(this.clientSeq,f,this.actor):new ja(this.clientSeq,this.lamport.add(1),this.actor)}createTimeTicket(f){return Or.of(this.lamport,f,this.actor)}setActor(f){return new ja(this.clientSeq,this.lamport,f)}getClientSeq(){return this.clientSeq}getLamport(){return this.lamport}getLamportAsString(){return this.lamport.toString()}getActorID(){return this.actor}toTestString(){return this.actor?`${this.lamport.toString()}:${this.actor.substring(22,24)}:${this.clientSeq}`:`${this.lamport.toString()}:nil:${this.clientSeq}`}}const qx=new ja(0,Yr.fromInt(0,!0),BO);class pf{constructor({id:f,operations:g,presenceChange:T,message:_}){this.id=f,this.operations=g||[],this.presenceChange=T,this.message=_}static create({id:f,operations:g,presenceChange:T,message:_}){return new pf({id:f,operations:g,presenceChange:T,message:_})}getID(){return this.id}getMessage(){return this.message}hasOperations(){return this.operations.length>0}getOperations(){return this.operations}setActor(f){for(const g of this.operations)g.setActor(f);this.id=this.id.setActor(f)}hasPresenceChange(){return this.presenceChange!==void 0}getPresenceChange(){return this.presenceChange}execute(f,g,T){const _=[],H=[];for(const K of this.operations){const oe=K.execute(f,T);if(!oe)continue;const{opInfos:Ae,reverseOp:He}=oe;_.push(...Ae),He&&H.unshift(He)}return this.presenceChange&&(this.presenceChange.type===Ma.Put?g.set(this.id.getActorID(),sa(this.presenceChange.presence)):g.delete(this.id.getActorID())),{opInfos:_,reverseOps:H}}toTestString(){return`${this.operations.map(f=>f.toTestString()).join(",")}`}}class UO{constructor(f,g,T,_,H,K){this.documentKey=f,this.checkpoint=g,this.isRemoved=T,this.changes=_,this.snapshot=H,this.minSyncedTicket=K}static create(f,g,T,_,H,K){return new UO(f,g,T,_,H,K)}getDocumentKey(){return this.documentKey}getCheckpoint(){return this.checkpoint}getIsRemoved(){return this.isRemoved}getChanges(){return this.changes}hasChanges(){return this.changes.length>0}getChangeSize(){return this.changes.length}hasSnapshot(){return!!this.snapshot&&!!this.snapshot.length}getSnapshot(){return this.snapshot}getMinSyncedTicket(){return this.minSyncedTicket}}class qp{constructor(f,g){this.serverSeq=f,this.clientSeq=g}static of(f,g){return new qp(f,g)}increaseClientSeq(f){return f===0?this:new qp(this.serverSeq,this.clientSeq+f)}forward(f){if(this.equals(f))return this;const g=this.serverSeq.greaterThan(f.serverSeq)?this.serverSeq:f.serverSeq,T=Math.max(this.clientSeq,f.clientSeq);return qp.of(g,T)}getServerSeqAsString(){return this.serverSeq.toString()}getClientSeq(){return this.clientSeq}getServerSeq(){return this.serverSeq}equals(f){return this.clientSeq===f.clientSeq&&this.serverSeq.equals(f.serverSeq)}toTestString(){return`serverSeq=${this.serverSeq}, clientSeq=${this.clientSeq}`}}const Aie=new qp(Yr.fromInt(0,!0),0);class ql{constructor(f,g){this.createdAt=f,this.offset=g}static of(f,g){return new ql(f,g)}static fromStruct(f){return ql.of(Or.fromStruct(f.createdAt),f.offset)}getCreatedAt(){return this.createdAt}getOffset(){return this.offset}equals(f){return this.createdAt.compare(f.createdAt)===0&&this.offset===f.offset}hasSameCreatedAt(f){return this.createdAt.compare(f.createdAt)===0}split(f){return new ql(this.createdAt,this.offset+f)}toStruct(){return{createdAt:this.createdAt.toStruct(),offset:this.offset}}toTestString(){return`${this.createdAt.toTestString()}:${this.offset}`}toIDString(){return`${this.createdAt.toIDString()}:${this.offset}`}}const _ie=ql.of(ro,0);class ul{constructor(f,g){this.id=f,this.relativeOffset=g}static of(f,g){return new ul(f,g)}static fromStruct(f){const g=ql.fromStruct(f.id);return ul.of(g,f.relativeOffset)}getID(){return this.id}getRelativeOffset(){return this.relativeOffset}getAbsoluteID(){return ql.of(this.id.getCreatedAt(),this.id.getOffset()+this.relativeOffset)}toTestString(){return`${this.id.toTestString()}:${this.relativeOffset}`}toStruct(){return{id:this.id.toStruct(),relativeOffset:this.relativeOffset}}equals(f){return this.id.equals(f.id)?this.relativeOffset===f.relativeOffset:!1}}class $c extends Ho{constructor(f,g,T){super(g),this.id=f,this.removedAt=T}static create(f,g){return new $c(f,g)}static createComparator(){return(f,g)=>{const T=f.getCreatedAt().compare(g.getCreatedAt());return T!==0?T:f.getOffset()>g.getOffset()?1:f.getOffset()0&&g.getID().getOffset()==f.getOffset()){if(!g.hasInsPrev())return g;g=g.getInsPrev()}return g}findFloorNode(f){const g=this.treeByID.floorEntry(f);if(g&&!(!g.key.equals(f)&&!g.key.hasSameCreatedAt(f)))return g.value}findBetween(f,g){const T=[];let _=f;for(;_&&_!==g;)T.push(_),_=_.getNext();return T}splitNode(f,g){if(g>f.getContentLength()&&u.fatal("offset should be less than or equal to length"),g===0)return f;if(g===f.getContentLength())return f.getNext();const T=f.split(g);this.treeByIndex.updateWeight(T),this.insertAfter(f,T);const _=f.getInsNext();return _&&_.setInsPrev(T),T.setInsPrev(f),T}deleteNodes(f,g,T){if(!f.length)return[[],new Map,new Map];const[_,H]=this.filterNodes(f,g,T),K=new Map,oe=new Map,Ae=this.makeChanges(H,g);for(const He of _){const yt=He.getCreatedAt().getActorID();(!K.has(yt)||He.getID().getCreatedAt().after(K.get(yt)))&&K.set(yt,He.getID().getCreatedAt()),oe.set(He.getID().toIDString(),He),He.remove(g)}return this.deleteIndexNodes(H),[Ae,K,oe]}filterNodes(f,g,T){const _=!!T,H=[],K=[],[oe,Ae]=this.findEdgesOfCandidates(f);K.push(oe);for(const He of f){const yt=He.getCreatedAt().getActorID(),Ft=_?T.has(yt)?T.get(yt):ro:So;He.canDelete(g,Ft)?H.push(He):K.push(He)}return K.push(Ae),[H,K]}findEdgesOfCandidates(f){return[f[0].getPrev(),f[f.length-1].getNext()]}makeChanges(f,g){const T=[];let _,H;for(let K=0;K=0&&(this.treeByIndex.delete(T),this.purge(T),this.treeByID.remove(T.getID()),this.removedNodeMap.delete(T.getID().toIDString()),g++);return g}purge(f){const g=f.getPrev(),T=f.getNext(),_=f.getInsPrev(),H=f.getInsNext();g&&g.setNext(T),T&&T.setPrev(g),f.setPrev(void 0),f.setNext(void 0),_&&_.setInsNext(H),H&&H.setInsPrev(_),f.setInsPrev(void 0),f.setInsNext(void 0)}}const DF=A=>A<0?Math.ceil(A):Math.floor(A);var fi;(function(A){A[A.IntegerCnt=0]="IntegerCnt",A[A.LongCnt=1]="LongCnt"})(fi||(fi={}));class za extends io{constructor(f,g,T){switch(super(T),this.valueType=f,f){case fi.IntegerCnt:typeof g=="number"?g>Math.pow(2,31)-1||g<-Math.pow(2,31)?this.value=Yr.fromNumber(g).toInt():this.value=DF(g):this.value=g.toInt();break;case fi.LongCnt:typeof g=="number"?this.value=Yr.fromNumber(g):this.value=g;break;default:throw new An(En.Unimplemented,`unimplemented type: ${f}`)}}static create(f,g,T){return new za(f,g,T)}static valueFromBytes(f,g){switch(f){case fi.IntegerCnt:return g[0]|g[1]<<8|g[2]<<16|g[3]<<24;case fi.LongCnt:return Yr.fromBytesLE(Array.from(g));default:throw new An(En.Unimplemented,`unimplemented type: ${f}`)}}toJSON(){return`${this.value}`}toSortedJSON(){return this.toJSON()}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:this.value,type:"YORKIE_COUNTER"}}deepcopy(){const f=za.create(this.valueType,this.value,this.getCreatedAt());return f.setMovedAt(this.getMovedAt()),f}getType(){return this.valueType}static getCounterType(f){switch(typeof f){case"object":return f instanceof Yr?fi.LongCnt:void 0;case"number":return f>Math.pow(2,31)-1||f<-Math.pow(2,31)?fi.LongCnt:fi.IntegerCnt;default:return}}static isSupport(f){return!!za.getCounterType(f)}static isInteger(f){return f%1===0}isNumericType(){const f=this.valueType;return f===fi.IntegerCnt||f===fi.LongCnt}getValueType(){return this.valueType}getValue(){return this.value}toBytes(){switch(this.valueType){case fi.IntegerCnt:{const f=this.value;return new Uint8Array([f&255,f>>8&255,f>>16&255,f>>24&255])}case fi.LongCnt:{const g=this.value.toBytesLE();return Uint8Array.from(g)}default:throw new An(En.Unimplemented,`unimplemented type: ${this.valueType}`)}}increase(f){function g(T){if(!T.isNumericType())throw new TypeError(`Unsupported type of value: ${typeof T.getValue()}`)}return g(this),g(f),this.valueType===fi.LongCnt?this.value=this.value.add(f.getValue()):f.getType()===Jt.Long?this.value=this.value+f.getValue().toInt():this.value=Yr.fromNumber(this.value+DF(f.getValue())).toInt(),this}}class Xp extends Ur{constructor(f,g,T){super(f,T),this.value=g}static create(f,g,T){return new Xp(f,g,T)}execute(f){const g=f.findByCreatedAt(this.getParentCreatedAt());g||u.fatal(`fail to find ${this.getParentCreatedAt()}`),g instanceof za||u.fatal("fail to execute, only Counter can execute increase");const T=g,_=this.value.deepcopy();return T.increase(_),{opInfos:[{type:"increase",path:f.createPath(this.getParentCreatedAt()),value:_.getValue()}],reverseOp:this.toReverseOperation()}}toReverseOperation(){const f=this.value.deepcopy(),T=f.getType()===Jt.Long?f.getValue().multiply(-1):f.getValue()*-1;return Xp.create(this.getParentCreatedAt(),Ar.of(T,f.getCreatedAt()))}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){return`${this.getParentCreatedAt().toTestString()}.INCREASE.${this.value.toJSON()}`}getValue(){return this.value}}class Kp extends Ur{constructor(f,g,T,_,H){super(f,H),this.fromPos=g,this.toPos=T,this.attributes=_}static create(f,g,T,_,H){return new Kp(f,g,T,_,H)}execute(f){const g=f.findByCreatedAt(this.getParentCreatedAt());g||u.fatal(`fail to find ${this.getParentCreatedAt()}`),g instanceof Sn||u.fatal("fail to execute, only Tree can execute edit");const T={};return[...this.attributes].forEach(([K,oe])=>T[K]=oe),{opInfos:g.style([this.fromPos,this.toPos],T,this.getExecutedAt()).map(({from:K,to:oe,value:Ae,fromPath:He})=>({type:"tree-style",from:K,to:oe,value:Ae,fromPath:He,path:f.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const f=this.getParentCreatedAt().toTestString(),g=`${this.fromPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.fromPos.getLeftSiblingID().getOffset()}`,T=`${this.toPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.toPos.getLeftSiblingID().getOffset()}`;return`${f}.STYLE(${g},${T},${Object.entries(this.attributes||{}).map(([_,H])=>`${_}:"${H}"`).join(" ")})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getAttributes(){return this.attributes}}function Rie(A){const f=new pe.Presence,g=f.data;for(const[T,_]of Object.entries(A))g[T]=JSON.stringify(_);return f}function Iie(A){if(A.type===Ma.Put)return new pe.PresenceChange({type:pe.PresenceChange_ChangeType.PUT,presence:Rie(A.presence)});if(A.type===Ma.Clear)return new pe.PresenceChange({type:pe.PresenceChange_ChangeType.CLEAR});throw new An(En.Unimplemented,"unimplemented type")}function Die(A){return new pe.Checkpoint({serverSeq:A.getServerSeqAsString(),clientSeq:A.getClientSeq()})}function Nie(A){return new pe.ChangeID({clientSeq:A.getClientSeq(),lamport:A.getLamportAsString(),actorId:nC(A.getActorID())})}function un(A){if(A)return new pe.TimeTicket({lamport:A.getLamportAsString(),delimiter:A.getDelimiter(),actorId:nC(A.getActorID())})}function NF(A){switch(A){case Jt.Null:return pe.ValueType.NULL;case Jt.Boolean:return pe.ValueType.BOOLEAN;case Jt.Integer:return pe.ValueType.INTEGER;case Jt.Long:return pe.ValueType.LONG;case Jt.Double:return pe.ValueType.DOUBLE;case Jt.String:return pe.ValueType.STRING;case Jt.Bytes:return pe.ValueType.BYTES;case Jt.Date:return pe.ValueType.DATE;default:throw new An(En.Unsupported,`unsupported type: ${A}`)}}function PF(A){switch(A){case fi.IntegerCnt:return pe.ValueType.INTEGER_CNT;case fi.LongCnt:return pe.ValueType.LONG_CNT;default:throw new An(En.Unsupported,`unsupported type: ${A}`)}}function Zx(A){if(A instanceof mr)return new pe.JSONElementSimple({type:pe.ValueType.JSON_OBJECT,createdAt:un(A.getCreatedAt()),value:QF(A)});if(A instanceof Wo)return new pe.JSONElementSimple({type:pe.ValueType.JSON_ARRAY,createdAt:un(A.getCreatedAt()),value:loe(A)});if(A instanceof di)return new pe.JSONElementSimple({type:pe.ValueType.TEXT,createdAt:un(A.getCreatedAt())});if(A instanceof Ar)return new pe.JSONElementSimple({type:NF(A.getType()),createdAt:un(A.getCreatedAt()),value:A.toBytes()});if(A instanceof za)return new pe.JSONElementSimple({type:PF(A.getType()),createdAt:un(A.getCreatedAt()),value:A.toBytes()});if(A instanceof Sn)return new pe.JSONElementSimple({type:pe.ValueType.TREE,createdAt:un(A.getCreatedAt()),value:coe(A)});throw new An(En.Unimplemented,"unimplemented element")}function Pie(A){return new pe.TextNodeID({createdAt:un(A.getCreatedAt()),offset:A.getOffset()})}function jO(A){return new pe.TextNodePos({createdAt:un(A.getID().getCreatedAt()),offset:A.getID().getOffset(),relativeOffset:A.getRelativeOffset()})}function zO(A){return new pe.TreePos({parentId:Jg(A.getParentID()),leftSiblingId:Jg(A.getLeftSiblingID())})}function Jg(A){return new pe.TreeNodeID({createdAt:un(A.getCreatedAt()),offset:A.getOffset()})}function Lie(A){const f=new pe.Operation;if(A instanceof Hu){const g=A,T=new pe.Operation_Set;T.parentCreatedAt=un(g.getParentCreatedAt()),T.key=g.getKey(),T.value=Zx(g.getValue()),T.executedAt=un(g.getExecutedAt()),f.body.case="set",f.body.value=T}else if(A instanceof ff){const g=A,T=new pe.Operation_Add;T.parentCreatedAt=un(g.getParentCreatedAt()),T.prevCreatedAt=un(g.getPrevCreatedAt()),T.value=Zx(g.getValue()),T.executedAt=un(g.getExecutedAt()),f.body.case="add",f.body.value=T}else if(A instanceof Yl){const g=A,T=new pe.Operation_Move;T.parentCreatedAt=un(g.getParentCreatedAt()),T.prevCreatedAt=un(g.getPrevCreatedAt()),T.createdAt=un(g.getCreatedAt()),T.executedAt=un(g.getExecutedAt()),f.body.case="move",f.body.value=T}else if(A instanceof Ql){const g=A,T=new pe.Operation_Remove;T.parentCreatedAt=un(g.getParentCreatedAt()),T.createdAt=un(g.getCreatedAt()),T.executedAt=un(g.getExecutedAt()),f.body.case="remove",f.body.value=T}else if(A instanceof Gl){const g=A,T=new pe.Operation_Edit;T.parentCreatedAt=un(g.getParentCreatedAt()),T.from=jO(g.getFromPos()),T.to=jO(g.getToPos());const _=T.createdAtMapByActor;for(const[K,oe]of g.getMaxCreatedAtMapByActor())_[K]=un(oe);T.content=g.getContent();const H=T.attributes;for(const[K,oe]of g.getAttributes())H[K]=oe;T.executedAt=un(g.getExecutedAt()),f.body.case="edit",f.body.value=T}else if(A instanceof wo){const g=A,T=new pe.Operation_Style;T.parentCreatedAt=un(g.getParentCreatedAt()),T.from=jO(g.getFromPos()),T.to=jO(g.getToPos());const _=T.createdAtMapByActor;for(const[K,oe]of g.getMaxCreatedAtMapByActor())_[K]=un(oe);const H=T.attributes;for(const[K,oe]of g.getAttributes())H[K]=oe;T.executedAt=un(g.getExecutedAt()),f.body.case="style",f.body.value=T}else if(A instanceof Xp){const g=A,T=new pe.Operation_Increase;T.parentCreatedAt=un(g.getParentCreatedAt()),T.value=Zx(g.getValue()),T.executedAt=un(g.getExecutedAt()),f.body.case="increase",f.body.value=T}else if(A instanceof Vi){const g=A,T=new pe.Operation_TreeEdit,_=T.createdAtMapByActor;for(const[H,K]of g.getMaxCreatedAtMapByActor())_[H]=un(K);T.parentCreatedAt=un(g.getParentCreatedAt()),T.from=zO(g.getFromPos()),T.to=zO(g.getToPos()),T.contents=zie(g.getContents()),T.splitLevel=g.getSplitLevel(),T.executedAt=un(g.getExecutedAt()),f.body.case="treeEdit",f.body.value=T}else if(A instanceof Kp){const g=A,T=new pe.Operation_TreeStyle;T.parentCreatedAt=un(g.getParentCreatedAt()),T.from=zO(g.getFromPos()),T.to=zO(g.getToPos());const _=T.attributes;for(const[H,K]of g.getAttributes())_[H]=K;T.executedAt=un(g.getExecutedAt()),f.body.case="treeStyle",f.body.value=T}else throw new An(En.Unimplemented,"unimplemented operation");return f}function Mie(A){const f=[];for(const g of A)f.push(Lie(g));return f}function $ie(A){const f=new pe.Change({id:Nie(A.getID()),message:A.getMessage()});return A.hasOperations()&&(f.operations=Mie(A.getOperations())),A.hasPresenceChange()&&(f.presenceChange=Iie(A.getPresenceChange())),f}function Fie(A){const f=[];for(const g of A)f.push($ie(g));return f}function Bie(A){const f=[];for(const g of A)f.push(new pe.RHTNode({key:g.getStrKey(),element:Xx(g.getValue())}));return f}function Uie(A){const f=[];for(const g of A)f.push(new pe.RGANode({element:Xx(g.getValue())}));return f}function jie(A){const f=[];for(const g of A){const T=new pe.TextNode;T.id=Pie(g.getID()),T.value=g.getValue().getContent(),T.removedAt=un(g.getRemovedAt());const _=T.attributes,H=g.getValue().getAttrs();for(const K of H){const oe=new pe.NodeAttr;oe.value=K.getValue(),oe.updatedAt=un(K.getUpdatedAt()),_[K.getKey()]=oe}f.push(T)}return f}function zie(A){const f=[];if(!A||!A.length)return f;for(const g of A)f.push(new pe.TreeNodes({content:LF(g)}));return f}function LF(A){if(!A)return[];const f=[];return xi(A,(g,T)=>{const _=new pe.TreeNode({id:Jg(g.id),type:g.type,removedAt:un(g.removedAt),depth:T});if(g.isText&&(_.value=g.value),g.insPrevID&&(_.insPrevId=Jg(g.insPrevID)),g.insNextID&&(_.insNextId=Jg(g.insNextID)),g.attrs)for(const H of g.attrs)_.attributes[H.getKey()]=new pe.NodeAttr({value:H.getValue(),updatedAt:un(H.getUpdatedAt())});f.push(_)}),f}function Vie(A){const f=new pe.JSONElement;return f.body.case="jsonObject",f.body.value=new pe.JSONElement_JSONObject({nodes:Bie(A.getRHT()),createdAt:un(A.getCreatedAt()),movedAt:un(A.getMovedAt()),removedAt:un(A.getRemovedAt())}),f}function MF(A){const f=new pe.JSONElement;return f.body.case="jsonArray",f.body.value=new pe.JSONElement_JSONArray({nodes:Uie(A.getElements()),createdAt:un(A.getCreatedAt()),movedAt:un(A.getMovedAt()),removedAt:un(A.getRemovedAt())}),f}function Hie(A){const f=new pe.JSONElement;return f.body.case="primitive",f.body.value=new pe.JSONElement_Primitive({type:NF(A.getType()),value:A.toBytes(),createdAt:un(A.getCreatedAt()),movedAt:un(A.getMovedAt()),removedAt:un(A.getRemovedAt())}),f}function Wie(A){const f=new pe.JSONElement;return f.body.case="text",f.body.value=new pe.JSONElement_Text({nodes:jie(A.getRGATreeSplit()),createdAt:un(A.getCreatedAt()),movedAt:un(A.getMovedAt()),removedAt:un(A.getRemovedAt())}),f}function Qie(A){const f=new pe.JSONElement;return f.body.case="counter",f.body.value=new pe.JSONElement_Counter({type:PF(A.getType()),value:A.toBytes(),createdAt:un(A.getCreatedAt()),movedAt:un(A.getMovedAt()),removedAt:un(A.getRemovedAt())}),f}function $F(A){const f=new pe.JSONElement;return f.body.case="tree",f.body.value=new pe.JSONElement_Tree({nodes:LF(A.getRoot()),createdAt:un(A.getCreatedAt()),movedAt:un(A.getMovedAt()),removedAt:un(A.getRemovedAt())}),f}function Xx(A){if(A instanceof mr)return Vie(A);if(A instanceof Wo)return MF(A);if(A instanceof Ar)return Hie(A);if(A instanceof di)return Wie(A);if(A instanceof za)return Qie(A);if(A instanceof Sn)return $F(A);throw new An(En.Unimplemented,"unimplemented element")}function Yie(A){return new pe.ChangePack({documentKey:A.getDocumentKey(),checkpoint:Die(A.getCheckpoint()),isRemoved:A.getIsRemoved(),changes:Fie(A.getChanges()),snapshot:A.getSnapshot(),minSyncedTicket:un(A.getMinSyncedTicket())})}function Gie(A){return ja.of(A.clientSeq,Yr.fromString(A.lamport,!0),tC(A.actorId))}function hn(A){if(A)return Or.of(Yr.fromString(A.lamport,!0),A.delimiter,tC(A.actorId))}function Kx(A){const f={};return Object.entries(A.data).forEach(([g,T])=>{f[g]=JSON.parse(T)}),f}function qie(A){const f=A.type;if(f===pe.PresenceChange_ChangeType.PUT){const g=Kx(A.presence);return{type:Ma.Put,presence:g}}if(f===pe.PresenceChange_ChangeType.CLEAR)return{type:Ma.Clear};throw new An(En.Unsupported,`unsupported type: ${f}`)}function Zie(A){const f=new Map;return Object.entries(A).forEach(([g,T])=>{f.set(g,Kx(T))}),f}function FF(A){switch(A){case pe.ValueType.NULL:return Jt.Null;case pe.ValueType.BOOLEAN:return Jt.Boolean;case pe.ValueType.INTEGER:return Jt.Integer;case pe.ValueType.LONG:return Jt.Long;case pe.ValueType.DOUBLE:return Jt.Double;case pe.ValueType.STRING:return Jt.String;case pe.ValueType.BYTES:return Jt.Bytes;case pe.ValueType.DATE:return Jt.Date}throw new An(En.Unimplemented,`unimplemented value type: ${A}`)}function VO(A){switch(A){case pe.ValueType.INTEGER_CNT:return fi.IntegerCnt;case pe.ValueType.LONG_CNT:return fi.LongCnt}throw new An(En.Unimplemented,`unimplemented value type: ${A}`)}function Jx(A){switch(A.type){case pe.ValueType.JSON_OBJECT:return A.value?WF(A.value):mr.create(hn(A.createdAt));case pe.ValueType.JSON_ARRAY:return A.value?soe(A.value):Wo.create(hn(A.createdAt));case pe.ValueType.TEXT:return di.create(Zp.create(),hn(A.createdAt));case pe.ValueType.TREE:return uoe(A.value);case pe.ValueType.NULL:case pe.ValueType.BOOLEAN:case pe.ValueType.INTEGER:case pe.ValueType.LONG:case pe.ValueType.DOUBLE:case pe.ValueType.STRING:case pe.ValueType.BYTES:case pe.ValueType.DATE:return Ar.of(Ar.valueFromBytes(FF(A.type),A.value),hn(A.createdAt));case pe.ValueType.INTEGER_CNT:case pe.ValueType.LONG_CNT:return za.create(VO(A.type),za.valueFromBytes(VO(A.type),A.value),hn(A.createdAt))}}function HO(A){return ul.of(ql.of(hn(A.createdAt),A.offset),A.relativeOffset)}function BF(A){return ql.of(hn(A.createdAt),A.offset)}function Xie(A){const f=Yo.create(A.value);Object.entries(A.attributes).forEach(([T,_])=>{f.setAttr(T,_.value,hn(_.updatedAt))});const g=$c.create(BF(A.id),f);return g.remove(hn(A.removedAt)),g}function WO(A){return ct.of(e0(A.parentId),e0(A.leftSiblingId))}function e0(A){return Ze.of(hn(A.createdAt),A.offset)}function Kie(A){if(!A.length)return;const f=[];return A.forEach(g=>{const T=UF(g.content);f.push(T)}),f}function UF(A){if(A.length===0)return;const f=[];for(const T of A)f.push(Jie(T));const g=f[f.length-1];for(let T=f.length-2;T>=0;T--){let _;for(let H=T+1;H{T.set(_,H.value,hn(H.updatedAt))}),g.attrs=T}return A.insPrevId&&(g.insPrevID=e0(A.insPrevId)),A.insNextId&&(g.insNextID=e0(A.insNextId)),g.removedAt=hn(A.removedAt),g}function eoe(A){const f=[];for(const g of A){let T;if(g.body.case==="set"){const _=g.body.value;T=Hu.create(_.key,Jx(_.value),hn(_.parentCreatedAt),hn(_.executedAt))}else if(g.body.case==="add"){const _=g.body.value;T=ff.create(hn(_.parentCreatedAt),hn(_.prevCreatedAt),Jx(_.value),hn(_.executedAt))}else if(g.body.case==="move"){const _=g.body.value;T=Yl.create(hn(_.parentCreatedAt),hn(_.prevCreatedAt),hn(_.createdAt),hn(_.executedAt))}else if(g.body.case==="remove"){const _=g.body.value;T=Ql.create(hn(_.parentCreatedAt),hn(_.createdAt),hn(_.executedAt))}else if(g.body.case==="edit"){const _=g.body.value,H=new Map;Object.entries(_.createdAtMapByActor).forEach(([oe,Ae])=>{H.set(oe,hn(Ae))});const K=new Map;Object.entries(_.attributes).forEach(([oe,Ae])=>{K.set(oe,Ae)}),T=Gl.create(hn(_.parentCreatedAt),HO(_.from),HO(_.to),H,_.content,K,hn(_.executedAt))}else if(g.body.case==="style"){const _=g.body.value,H=new Map;Object.entries(_.createdAtMapByActor).forEach(([oe,Ae])=>{H.set(oe,hn(Ae))});const K=new Map;Object.entries(_.attributes).forEach(([oe,Ae])=>{K.set(oe,Ae)}),T=wo.create(hn(_.parentCreatedAt),HO(_.from),HO(_.to),H,K,hn(_.executedAt))}else{if(g.body.case==="select")continue;if(g.body.case==="increase"){const _=g.body.value;T=Xp.create(hn(_.parentCreatedAt),Jx(_.value),hn(_.executedAt))}else if(g.body.case==="treeEdit"){const _=g.body.value,H=new Map;Object.entries(_.createdAtMapByActor).forEach(([K,oe])=>{H.set(K,hn(oe))}),T=Vi.create(hn(_.parentCreatedAt),WO(_.from),WO(_.to),Kie(_.contents),_.splitLevel,H,hn(_.executedAt))}else if(g.body.case==="treeStyle"){const _=g.body.value,H=new Map;Object.entries(_.attributes).forEach(([K,oe])=>{H.set(K,oe)}),T=Kp.create(hn(_.parentCreatedAt),WO(_.from),WO(_.to),H,hn(_.executedAt))}else throw new An(En.Unimplemented,"unimplemented operation")}f.push(T)}return f}function jF(A){const f=[];for(const g of A)f.push(pf.create({id:Gie(g.id),operations:eoe(g.operations),presenceChange:g.presenceChange?qie(g.presenceChange):void 0,message:g.message}));return f}function toe(A){return qp.of(Yr.fromString(A.serverSeq,!0),A.clientSeq)}function noe(A){return UO.create(A.documentKey,toe(A.checkpoint),A.isRemoved,jF(A.changes),A.snapshot,hn(A.minSyncedTicket))}function zF(A){const f=new ji;for(const T of A.nodes){const _=eC(T.element);f.set(T.key,_,_.getPositionedAt())}const g=new mr(hn(A.createdAt),f);return g.setMovedAt(hn(A.movedAt)),g.setRemovedAt(hn(A.removedAt)),g}function VF(A){const f=new df;for(const T of A.nodes)f.insert(eC(T.element));const g=new Wo(hn(A.createdAt),f);return g.setMovedAt(hn(A.movedAt)),g.setRemovedAt(hn(A.removedAt)),g}function roe(A){const f=Ar.of(Ar.valueFromBytes(FF(A.type),A.value),hn(A.createdAt));return f.setMovedAt(hn(A.movedAt)),f.setRemovedAt(hn(A.removedAt)),f}function ioe(A){const f=new Zp;let g=f.getHead();for(const _ of A.nodes){const H=f.insertAfter(g,Xie(_));_.insPrevId&&H.setInsPrev(f.findNode(BF(_.insPrevId))),g=H}const T=new di(f,hn(A.createdAt));return T.setMovedAt(hn(A.movedAt)),T.setRemovedAt(hn(A.removedAt)),T}function ooe(A){const f=za.create(VO(A.type),za.valueFromBytes(VO(A.type),A.value),hn(A.createdAt));return f.setMovedAt(hn(A.movedAt)),f.setRemovedAt(hn(A.removedAt)),f}function HF(A){const f=UF(A.nodes);return Sn.create(f,hn(A.createdAt))}function eC(A){if(A.body.case==="jsonObject")return zF(A.body.value);if(A.body.case==="jsonArray")return VF(A.body.value);if(A.body.case==="primitive")return roe(A.body.value);if(A.body.case==="text")return ioe(A.body.value);if(A.body.case==="counter")return ooe(A.body.value);if(A.body.case==="tree")return HF(A.body.value);throw new An(En.Unimplemented,"unimplemented element")}function aoe(A){if(!A)return{root:mr.create(ro),presences:new Map};const f=pe.Snapshot.fromBinary(A);return{root:eC(f.root),presences:Zie(f.presences)}}function WF(A){if(!A)throw new Error("bytes is empty");const f=pe.JSONElement.fromBinary(A);return zF(f.body.value)}function QF(A){return Xx(A).toBinary()}function soe(A){if(!A)throw new Error("bytes is empty");const f=pe.JSONElement.fromBinary(A);return VF(f.body.value)}function loe(A){return MF(A).toBinary()}function uoe(A){if(!A)throw new Error("bytes is empty");const f=pe.JSONElement.fromBinary(A);return HF(f.body.value)}function coe(A){return $F(A).toBinary()}function doe(A){return A?Array.from(A).map(f=>f.toString(16).padStart(2,"0")).join(""):""}function tC(A){return doe(A)}function foe(A){return new Uint8Array(A.match(/.{1,2}/g).map(f=>parseInt(f,16)))}function nC(A){return foe(A)}const Zl={fromPresence:Kx,toChangePack:Yie,fromChangePack:noe,fromChanges:jF,objectToBytes:QF,bytesToObject:WF,bytesToSnapshot:aoe,toHexString:tC,toUint8Array:nC};class poe{constructor(f,g,T,_){this.reconnectStreamDelay=f,this.doc=g,this.docID=T,this.isRealtimeSync=_,this.syncMode=Wu.PushPull,this.remoteChangeEventReceived=!1}changeRealtimeSync(f){return this.isRealtimeSync===f?!1:f?(this.isRealtimeSync=!0,!0):(this.cancelWatchStream(),this.isRealtimeSync=!1,!0)}changeSyncMode(f){this.syncMode=f}needRealtimeSync(){return this.isRealtimeSync&&(this.doc.hasLocalChanges()||this.remoteChangeEventReceived)}async runWatchLoop(f){const g=async()=>{if(this.watchStream)return Promise.resolve();this.watchLoopTimerID&&(clearTimeout(this.watchLoopTimerID),this.watchLoopTimerID=void 0);try{[this.watchStream,this.watchAbortController]=await f(()=>{this.watchStream=void 0,this.watchAbortController=void 0,this.watchLoopTimerID=setTimeout(g,this.reconnectStreamDelay)})}catch{}};await g()}cancelWatchStream(){this.watchStream&&this.watchAbortController&&(this.watchAbortController.abort(),this.watchStream=void 0,this.watchAbortController=void 0),clearTimeout(this.watchLoopTimerID),this.watchLoopTimerID=void 0}}class Jp{constructor(f,g,T,_){this.id=f,this.delimiter=Qp,this.root=g,this.operations=[],this.previousPresence=sa(T),this.presenceChange=void 0,this.reversePresenceKeys=new Set,this.message=_}static create(f,g,T,_){return new Jp(f,g,T,_)}push(f){this.operations.push(f)}registerElement(f,g){this.root.registerElement(f,g)}registerRemovedElement(f){this.root.registerRemovedElement(f)}registerElementHasRemovedNodes(f){this.root.registerElementHasRemovedNodes(f)}getChange(){return pf.create({id:this.id,operations:this.operations,presenceChange:this.presenceChange,message:this.message})}hasChange(){return this.operations.length>0||this.presenceChange!==void 0}setPresenceChange(f){this.presenceChange=f}setReversePresence(f,g){for(const T of Object.keys(f))g!=null&&g.addToHistory?this.reversePresenceKeys.add(T):this.reversePresenceKeys.delete(T)}getReversePresence(){if(this.reversePresenceKeys.size===0)return;const f={};for(const g of this.reversePresenceKeys)f[g]=this.previousPresence[g];return f}issueTimeTicket(){return this.delimiter+=1,this.id.createTimeTicket(this.delimiter)}getLastTimeTicket(){return this.id.createTimeTicket(this.delimiter)}}class t0{constructor(f){this.rootObject=f,this.elementPairMapByCreatedAt=new Map,this.removedElementSetByCreatedAt=new Set,this.elementHasRemovedNodesSetByCreatedAt=new Set,this.opsForTest=[],this.registerElement(f,void 0)}static create(){return new t0(mr.create(ro))}findByCreatedAt(f){const g=this.elementPairMapByCreatedAt.get(f.toIDString());if(g)return g.element}findElementPairByCreatedAt(f){return this.elementPairMapByCreatedAt.get(f.toIDString())}createSubPaths(f){let g=this.elementPairMapByCreatedAt.get(f.toIDString());if(!g)return[];const T=[];for(;g.parent;){const _=g.element.getCreatedAt(),H=g.parent.subPathOf(_);H===void 0&&u.fatal(`cant find the given element: ${_.toIDString()}`),T.unshift(H),g=this.elementPairMapByCreatedAt.get(g.parent.getCreatedAt().toIDString())}return T.unshift("$"),T}createPath(f){return this.createSubPaths(f).join(".")}registerElement(f,g){this.elementPairMapByCreatedAt.set(f.getCreatedAt().toIDString(),{parent:g,element:f}),f instanceof Wl&&f.getDescendants((T,_)=>(this.registerElement(T,_),!1))}deregisterElement(f){let g=0;const T=_=>{const H=_.getCreatedAt().toIDString();this.elementPairMapByCreatedAt.delete(H),this.removedElementSetByCreatedAt.delete(H),g++};return T(f),f instanceof Wl&&f.getDescendants(_=>(T(_),!1)),g}registerRemovedElement(f){this.removedElementSetByCreatedAt.add(f.getCreatedAt().toIDString())}registerElementHasRemovedNodes(f){this.elementHasRemovedNodesSetByCreatedAt.add(f.getCreatedAt().toIDString())}getElementMapSize(){return this.elementPairMapByCreatedAt.size}getRemovedElementSetSize(){return this.removedElementSetByCreatedAt.size}getObject(){return this.rootObject}getGarbageLen(){let f=0;const g=new Set;for(const T of this.removedElementSetByCreatedAt){g.add(T);const _=this.elementPairMapByCreatedAt.get(T);_.element instanceof Wl&&_.element.getDescendants(H=>(g.add(H.getCreatedAt().toIDString()),!1))}f+=g.size;for(const T of this.elementHasRemovedNodesSetByCreatedAt){const H=this.elementPairMapByCreatedAt.get(T).element;f+=H.getRemovedNodesLen()}return f}deepcopy(){return new t0(this.rootObject.deepcopy())}garbageCollect(f){let g=0;for(const T of this.removedElementSetByCreatedAt){const _=this.elementPairMapByCreatedAt.get(T);_.element.getRemovedAt()&&f.compare(_.element.getRemovedAt())>=0&&(_.parent.purge(_.element),g+=this.deregisterElement(_.element))}for(const T of this.elementHasRemovedNodesSetByCreatedAt){const H=this.elementPairMapByCreatedAt.get(T).element,K=H.purgeRemovedNodesBefore(f);K>0&&this.elementHasRemovedNodesSetByCreatedAt.delete(H.getCreatedAt().toIDString()),g+=K}return g}toJSON(){return this.rootObject.toJSON()}toSortedJSON(){return this.rootObject.toSortedJSON()}}function YF(A,f){const g=new n0(A);return new Proxy(f,g.getHandlers())}class n0{constructor(f){this.context=f,this.handlers={set:(g,T,_)=>(u.isEnabled(s.Trivial)&&u.trivial(`obj[${T}]=${JSON.stringify(_)}`),n0.setInternal(f,g,T,_),!0),get:(g,T)=>(u.isEnabled(s.Trivial)&&u.trivial(`obj[${T}]`),T==="getID"?()=>g.getCreatedAt():T==="toJSON"||T==="toString"?()=>g.toJSON():T==="toJS"?()=>g.toJS():T==="toJSForTest"?()=>g.toJSForTest():hf(f,g.get(T))),ownKeys:g=>g.getKeys(),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),deleteProperty:(g,T)=>(u.isEnabled(s.Trivial)&&u.trivial(`obj[${T}]`),n0.deleteInternal(f,g,T),!0)}}static setInternal(f,g,T,_){if(T.includes("."))throw new An(En.InvalidObjectKey,"key must not contain the '.'.");const H=f.issueTimeTicket(),K=qO(f,_,H),oe=g.set(T,K,H);f.registerElement(K,g),oe&&f.registerRemovedElement(oe),f.push(Hu.create(T,K.deepcopy(),g.getCreatedAt(),H))}static buildObjectMembers(f,g){const T={};for(const[_,H]of Object.entries(g)){if(_.includes("."))throw new An(En.InvalidObjectKey,"key must not contain the '.'.");const K=f.issueTimeTicket(),oe=qO(f,H,K);T[_]=oe}return T}static deleteInternal(f,g,T){const _=f.issueTimeTicket(),H=g.deleteByKey(T,_);H&&(f.push(Ql.create(g.getCreatedAt(),H.getCreatedAt(),_)),f.registerRemovedElement(H))}getHandlers(){return this.handlers}}function hoe(A,f){const g=new ei(A,f);return new Proxy(f,g.getHandlers())}function moe(A){return typeof A=="string"||A instanceof String?!isNaN(A):!1}function goe(A){return["concat","entries","every","filter","find","findIndex","forEach","join","keys","map","reduce","reduceRight","slice","some","toLocaleString","toString","values"].includes(A)}class ei{constructor(f,g){this.context=f,this.array=g,this.handlers={get:(T,_,H)=>_==="getID"?()=>T.getCreatedAt():_==="getElementByID"?K=>{const oe=T.getByID(K);if(!(!oe||oe.isRemoved()))return Fc(f,oe)}:_==="getElementByIndex"?K=>{const oe=T.get(K);return Fc(f,oe)}:_==="getLast"?()=>Fc(f,T.getLast()):_==="deleteByID"?K=>{const oe=ei.deleteInternalByID(f,T,K);return Fc(f,oe)}:_==="insertAfter"?(K,oe)=>{const Ae=ei.insertAfterInternal(f,T,K,oe);return Fc(f,Ae)}:_==="insertBefore"?(K,oe)=>{const Ae=ei.insertBeforeInternal(f,T,K,oe);return Fc(f,Ae)}:_==="moveBefore"?(K,oe)=>{ei.moveBeforeInternal(f,T,K,oe)}:_==="moveAfter"?(K,oe)=>{ei.moveAfterInternal(f,T,K,oe)}:_==="moveFront"?K=>{ei.moveFrontInternal(f,T,K)}:_==="moveLast"?K=>{ei.moveLastInternal(f,T,K)}:moe(_)?hf(f,T.get(Number(_))):_==="push"?K=>ei.pushInternal(f,T,K):_==="splice"?(K,oe,...Ae)=>ei.splice(f,T,K,oe,...Ae):_==="length"?T.length:typeof _=="symbol"&&_===Symbol.iterator?ei.iteratorInternal.bind(this,f,T):_==="includes"?(K,oe)=>ei.includes(f,T,K,oe):_==="indexOf"?(K,oe)=>ei.indexOf(f,T,K,oe):_==="lastIndexOf"?(K,oe)=>ei.lastIndexOf(f,T,K,oe):_==="toTestString"?()=>ei.toTestString(T):typeof _=="string"&&goe(_)?(...K)=>{const oe=Array.from(T).map(Ae=>hf(f,Ae));return Array.prototype[_].apply(oe,K)}:Reflect.get(T,_,H),deleteProperty:(T,_)=>(u.isEnabled(s.Trivial)&&u.trivial(`array[${_}]`),ei.deleteInternalByIndex(f,T,Number.parseInt(_)),!0)}}static*iteratorInternal(f,g){for(const T of g)yield Fc(f,T)}static buildArrayElements(f,g){const T=[];for(const _ of g){const H=f.issueTimeTicket(),K=qO(f,_,H);T.push(K)}return T}static pushInternal(f,g,T){return ei.insertAfterInternal(f,g,g.getLastCreatedAt(),T),g.length}static moveBeforeInternal(f,g,T,_){const H=f.issueTimeTicket(),K=g.getPrevCreatedAt(T);g.moveAfter(K,_,H),f.push(Yl.create(g.getCreatedAt(),K,_,H))}static moveAfterInternal(f,g,T,_){const H=f.issueTimeTicket();g.moveAfter(T,_,H),f.push(Yl.create(g.getCreatedAt(),T,_,H))}static moveFrontInternal(f,g,T){const _=f.issueTimeTicket(),H=g.getHead();g.moveAfter(H.getCreatedAt(),T,_),f.push(Yl.create(g.getCreatedAt(),H.getCreatedAt(),T,_))}static moveLastInternal(f,g,T){const _=f.issueTimeTicket(),H=g.getLastCreatedAt();g.moveAfter(H,T,_),f.push(Yl.create(g.getCreatedAt(),H,T,_))}static insertAfterInternal(f,g,T,_){const H=f.issueTimeTicket(),K=qO(f,_,H);return g.insertAfter(T,K),f.registerElement(K,g),f.push(ff.create(g.getCreatedAt(),T,K.deepcopy(),H)),K}static insertBeforeInternal(f,g,T,_){return ei.insertAfterInternal(f,g,g.getPrevCreatedAt(T),_)}static deleteInternalByIndex(f,g,T){const _=f.issueTimeTicket(),H=g.deleteByIndex(T,_);if(H)return f.push(Ql.create(g.getCreatedAt(),H.getCreatedAt(),_)),f.registerRemovedElement(H),H}static deleteInternalByID(f,g,T){const _=f.issueTimeTicket(),H=g.delete(T,_);return f.push(Ql.create(g.getCreatedAt(),H.getCreatedAt(),_)),f.registerRemovedElement(H),H}static splice(f,g,T,_,...H){const K=g.length,oe=T>=0?Math.min(T,K):Math.max(K+T,0),Ae=_===void 0?K:_<0?oe:Math.min(oe+_,K),He=[];for(let yt=oe;yt=K)return!1;if(Ar.isSupport(T))return Array.from(g).map(He=>hf(f,He)).includes(T,oe);for(let Ae=oe;Ae=K)return-1;if(Ar.isSupport(T))return Array.from(g).map(He=>hf(f,He)).indexOf(T,oe);for(let Ae=oe;Ae=K?K-1:_<0?_+K:_;if(oe<0)return-1;if(Ar.isSupport(T))return Array.from(g).map(He=>hf(f,He)).lastIndexOf(T,oe);for(let Ae=oe;Ae>0;Ae--)if(((H=g.get(Ae))===null||H===void 0?void 0:H.getID())===T.getID())return Ae;return-1}static toTestString(f){return f.toTestString()}getHandlers(){return this.handlers}}class QO{constructor(f,g){this.context=f,this.text=g}initialize(f,g){this.context=f,this.text=g}getID(){return this.text.getID()}edit(f,g,T,_){if(!this.context||!this.text){u.fatal("it is not initialized yet");return}if(f>g){u.fatal("from should be less than or equal to to");return}const H=this.text.indexRangeToPosRange(f,g);u.isEnabled(s.Debug)&&u.debug(`EDIT: f:${f}->${H[0].toTestString()}, t:${g}->${H[1].toTestString()} c:${T}`);const K=_?no(_):void 0,oe=this.context.issueTimeTicket(),[Ae,,He]=this.text.edit(H,T,oe,K);return this.context.push(new Gl(this.text.getCreatedAt(),H[0],H[1],Ae,T,K?new Map(Object.entries(K)):new Map,oe)),H[0].equals(H[1])||this.context.registerElementHasRemovedNodes(this.text),this.text.findIndexesFromRange(He)}delete(f,g){return this.edit(f,g,"")}empty(){return this.edit(0,this.length,"")}setStyle(f,g,T){if(!this.context||!this.text)return u.fatal("it is not initialized yet"),!1;if(f>g)return u.fatal("from should be less than or equal to to"),!1;const _=this.text.indexRangeToPosRange(f,g);u.isEnabled(s.Debug)&&u.debug(`STYL: f:${f}->${_[0].toTestString()}, t:${g}->${_[1].toTestString()} a:${JSON.stringify(T)}`);const H=no(T),K=this.context.issueTimeTicket(),[oe]=this.text.setStyle(_,H,K);return this.context.push(new wo(this.text.getCreatedAt(),_[0],_[1],oe,new Map(Object.entries(H)),K)),!0}indexRangeToPosRange(f){if(!this.context||!this.text){u.fatal("it is not initialized yet");return}const g=this.text.indexRangeToPosRange(f[0],f[1]);return[g[0].toStruct(),g[1].toStruct()]}posRangeToIndexRange(f){if(!this.context||!this.text){u.fatal("it is not initialized yet");return}const g=this.text.findIndexesFromRange([ul.fromStruct(f[0]),ul.fromStruct(f[1])]);return[g[0],g[1]]}toTestString(){if(!this.context||!this.text){u.fatal("it is not initialized yet");return}return this.text.toTestString()}values(){if(!this.context||!this.text){u.fatal("it is not initialized yet");return}return this.text.values()}get length(){return this.text.length}checkWeight(){return this.text.checkWeight()}toString(){return!this.context||!this.text?(u.fatal("it is not initialized yet"),""):this.text.toString()}createRangeForTest(f,g){if(!this.context||!this.text){u.fatal("it is not initialized yet");return}return this.text.indexRangeToPosRange(f,g)}}class YO{constructor(f,g){this.valueType=f,this.value=g}initialize(f,g){this.valueType=g.getValueType(),this.context=f,this.counter=g,this.value=g.getValue()}getID(){return this.counter.getID()}getValue(){return this.value}getValueType(){return this.valueType}increase(f){if(!this.context||!this.counter){u.fatal("it is not initialized yet");return}const g=this.context.issueTimeTicket(),T=Ar.of(f,g);if(!T.isNumericType())throw new TypeError(`Unsupported type of value: ${typeof T.getValue()}`);return this.counter.increase(T),this.context.push(Xp.create(this.counter.getCreatedAt(),T,g)),this}}function rC(A,f,g){const{type:T}=A,_=g.issueTimeTicket();if(T===ki){GF(A);const{value:H}=A,K=Ot.create(Ze.of(_,0),T,H);f.append(K)}else{const{children:H=[]}=A;let{attributes:K}=A,oe;if(typeof K=="object"&&!Hp(K)){K=no(K),oe=new $a;for(const[He,yt]of Object.entries(K))oe.set(He,yt,_)}const Ae=Ot.create(Ze.of(_,0),T,void 0,oe);f.append(Ae);for(const He of H)rC(He,Ae,g)}}function boe(A,f){const{type:g}=f,T=A.issueTimeTicket();let _;if(f.type===ki){const{value:H}=f;_=Ot.create(Ze.of(T,0),g,H)}else if(f){const{children:H=[]}=f;let{attributes:K}=f,oe;if(typeof K=="object"&&!Hp(K)){K=no(K),oe=new $a;for(const[Ae,He]of Object.entries(K))oe.set(Ae,He,T)}_=Ot.create(Ze.of(A.issueTimeTicket(),0),g,void 0,oe);for(const Ae of H)rC(Ae,_,A)}return _}function GF(A){if(!A.value.length)throw new Error("text node cannot have empty value");return!0}function qF(A){if(!A.length)return!0;if(A[0].type===ki)for(const g of A){const{type:T}=g;if(T!==ki)throw new Error("element node and text node cannot be passed together");GF(g)}else for(const g of A){const{type:T}=g;if(T===ki)throw new Error("element node and text node cannot be passed together")}return!0}class GO{constructor(f){this.initialRoot=f}initialize(f,g){this.context=f,this.tree=g}getID(){return this.tree.getID()}buildRoot(f){if(!this.initialRoot)return Ot.create(Ze.of(f.issueTimeTicket(),0),ca);const g=Ot.create(Ze.of(f.issueTimeTicket(),0),this.initialRoot.type);for(const T of this.initialRoot.children)rC(T,g,f);return g}getSize(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.getSize()}getIndexTree(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.getIndexTree()}styleByPath(f,g){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(!f.length)throw new Error("path should not be empty");const[T,_]=this.tree.pathToPosRange(f),H=this.context.issueTimeTicket(),K=g?no(g):void 0;this.tree.style([T,_],K,H),this.context.push(Kp.create(this.tree.getCreatedAt(),T,_,K?new Map(Object.entries(K)):new Map,H))}style(f,g,T){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(f>g)throw new Error("from should be less than or equal to to");const _=this.tree.findPos(f),H=this.tree.findPos(g),K=this.context.issueTimeTicket(),oe=T?no(T):void 0;this.tree.style([_,H],oe,K),this.context.push(Kp.create(this.tree.getCreatedAt(),_,H,oe?new Map(Object.entries(oe)):new Map,K))}editInternal(f,g,T,_=0){var H;if(T.length!==0&&T[0]&&(qF(T),T[0].type!==ki))for(const He of T){const{children:yt=[]}=He;qF(yt)}const K=this.context.getLastTimeTicket();let oe=new Array;if(((H=T[0])===null||H===void 0?void 0:H.type)===ki){let He="";for(const yt of T){const{value:Ft}=yt;He+=Ft}oe.push(Ot.create(Ze.of(this.context.issueTimeTicket(),0),ki,He))}else oe=T.map(He=>He&&boe(this.context,He)).filter(He=>He);const[,Ae]=this.tree.edit([f,g],oe.length?oe.map(He=>He==null?void 0:He.deepcopy()):void 0,_,K,()=>this.context.issueTimeTicket());return this.context.push(Vi.create(this.tree.getCreatedAt(),f,g,oe.length?oe:void 0,_,Ae,K)),f.equals(g)||this.context.registerElementHasRemovedNodes(this.tree),!0}editByPath(f,g,T,_=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(f.length!==g.length)throw new Error("path length should be equal");if(!f.length||!g.length)throw new Error("path should not be empty");const H=this.tree.pathToPos(f),K=this.tree.pathToPos(g);return this.editInternal(H,K,T?[T]:[],_)}editBulkByPath(f,g,T,_=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(f.length!==g.length)throw new Error("path length should be equal");if(!f.length||!g.length)throw new Error("path should not be empty");const H=this.tree.pathToPos(f),K=this.tree.pathToPos(g);return this.editInternal(H,K,T,_)}edit(f,g,T,_=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(f>g)throw new Error("from should be less than or equal to to");const H=this.tree.findPos(f),K=this.tree.findPos(g);return this.editInternal(H,K,T?[T]:[],_)}editBulk(f,g,T,_=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(f>g)throw new Error("from should be less than or equal to to");const H=this.tree.findPos(f),K=this.tree.findPos(g);return this.editInternal(H,K,T,_)}toXML(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.toXML()}toJSON(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.toJSON()}toJSInfoForTest(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.toJSInfoForTest()}getRootTreeNode(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.getRootTreeNode()}indexToPath(f){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.indexToPath(f)}pathToIndex(f){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.pathToIndex(f)}pathRangeToPosRange(f){if(!this.context||!this.tree){u.fatal("it is not initialized yet");return}const g=[this.tree.pathToIndex(f[0]),this.tree.pathToIndex(f[1])],T=this.tree.indexRangeToPosRange(g);return[T[0].toStruct(),T[1].toStruct()]}indexRangeToPosRange(f){if(!this.context||!this.tree){u.fatal("it is not initialized yet");return}return this.tree.indexRangeToPosStructRange(f)}posRangeToIndexRange(f){if(!this.context||!this.tree){u.fatal("it is not initialized yet");return}const g=[ct.fromStruct(f[0]),ct.fromStruct(f[1])];return this.tree.posRangeToIndexRange(g,this.context.getLastTimeTicket())}posRangeToPathRange(f){if(!this.context||!this.tree){u.fatal("it is not initialized yet");return}const g=[ct.fromStruct(f[0]),ct.fromStruct(f[1])];return this.tree.posRangeToPathRange(g,this.context.getLastTimeTicket())}}function ZF(A,f){return YF(A,f)}function Fc(A,f){if(f){if(f instanceof Ar)return f;if(f instanceof mr)return YF(A,f);if(f instanceof Wo)return hoe(A,f);if(f instanceof di)return new QO(A,f);if(f instanceof za){const g=new YO(fi.IntegerCnt,0);return g.initialize(A,f),g}else if(f instanceof Sn){const g=new GO;return g.initialize(A,f),g}}else return;throw new TypeError(`Unsupported type of element: ${typeof f}`)}function hf(A,f){const g=Fc(A,f);return g instanceof Ar?g.getValue():g}function qO(A,f,g){let T;if(Ar.isSupport(f))T=Ar.of(f,g);else if(Array.isArray(f))T=Wo.create(g,ei.buildArrayElements(A,f));else if(typeof f=="object")f instanceof QO?(T=di.create(Zp.create(),g),f.initialize(A,T)):f instanceof YO?(T=za.create(f.getValueType(),f.getValue(),g),f.initialize(A,T)):f instanceof GO?(T=Sn.create(f.buildRoot(A),g),f.initialize(A,T)):T=mr.create(g,n0.buildObjectMembers(A,f));else throw new TypeError(`Unsupported type of value: ${typeof f}`);return T}const XF=50;class yoe{constructor(){this.undoStack=[],this.redoStack=[]}hasUndo(){return this.undoStack.length>0}hasRedo(){return this.redoStack.length>0}pushUndo(f){this.undoStack.length>=XF&&this.undoStack.shift(),this.undoStack.push(f)}popUndo(){return this.undoStack.pop()}pushRedo(f){this.redoStack.length>=XF&&this.redoStack.shift(),this.redoStack.push(f)}popRedo(){return this.redoStack.pop()}clearRedo(){this.redoStack=[]}getUndoStackForTest(){return this.undoStack}getRedoStackForTest(){return this.redoStack}}const Ooe="yorkie-devtools-panel",voe="yorkie-devtools-sdk";var ks;(function(A){A.Detached="detached",A.Attached="attached",A.Removed="removed"})(ks||(ks={}));var Ln;(function(A){A.Snapshot="snapshot",A.LocalChange="local-change",A.RemoteChange="remote-change",A.Initialized="initialized",A.Watched="watched",A.Unwatched="unwatched",A.PresenceChanged="presence-changed"})(Ln||(Ln={}));class KF{constructor(f,g){this.opts=g||{},this.key=f,this.status=ks.Detached,this.root=t0.create(),this.changeID=qx,this.checkpoint=Aie,this.localChanges=[],this.eventStream=h(T=>{this.eventStreamObserver=T}),this.onlineClients=new Set,this.presences=new Map,this.isUpdating=!1,this.internalHistory=new yoe,this.history={canUndo:this.canUndo.bind(this),canRedo:this.canRedo.bind(this),undo:this.undo.bind(this),redo:this.redo.bind(this)}}update(f,g){if(this.getStatus()===ks.Removed)throw new An(En.DocumentRemoved,`${this.key} is removed`);this.ensureClone();const T=this.changeID.getActorID(),_=Jp.create(this.changeID.next(),this.clone.root,this.clone.presences.get(T)||{},g);try{const H=ZF(_,this.clone.root.getObject());this.presences.has(T)||this.clone.presences.set(T,{}),this.isUpdating=!0,f(H,new Wp(_,this.clone.presences.get(T)))}catch(H){throw this.clone=void 0,u.error(H),H}finally{this.isUpdating=!1}if(_.hasChange()){u.isEnabled(s.Trivial)&&u.trivial(`trying to update a local change: ${this.toJSON()}`);const H=_.getChange(),{opInfos:K,reverseOps:oe}=H.execute(this.root,this.presences,Cr.Local),Ae=_.getReversePresence();Ae&&oe.push({type:"presence",value:Ae}),this.localChanges.push(H),oe.length>0&&this.internalHistory.pushUndo(oe),K.length>0&&this.internalHistory.clearRedo(),this.changeID=H.getID(),K.length>0&&this.publish({type:Ln.LocalChange,value:{message:H.getMessage()||"",operations:K,actor:T}}),H.hasPresenceChange()&&this.publish({type:Ln.PresenceChanged,value:{clientID:T,presence:this.getPresence(T)}}),u.isEnabled(s.Trivial)&&u.trivial(`after update a local change: ${this.toJSON()}`)}}subscribe(f,g,T,_){if(typeof f=="string"){if(typeof g!="function")throw new Error("Second argument must be a callback function");if(f==="presence"){const oe=g;return this.eventStream.subscribe(Ae=>{Ae.type!==Ln.Initialized&&Ae.type!==Ln.Watched&&Ae.type!==Ln.Unwatched&&Ae.type!==Ln.PresenceChanged||oe(Ae)},T,_)}if(f==="my-presence"){const oe=g;return this.eventStream.subscribe(Ae=>{Ae.type!==Ln.Initialized&&Ae.type!==Ln.Watched&&Ae.type!==Ln.Unwatched&&Ae.type!==Ln.PresenceChanged||Ae.type!==Ln.Initialized&&Ae.value.clientID!==this.changeID.getActorID()||oe(Ae)},T,_)}if(f==="others"){const oe=g;return this.eventStream.subscribe(Ae=>{Ae.type!==Ln.Watched&&Ae.type!==Ln.Unwatched&&Ae.type!==Ln.PresenceChanged||Ae.value.clientID!==this.changeID.getActorID()&&oe(Ae)},T,_)}const H=f,K=g;return this.eventStream.subscribe(oe=>{if(oe.type===Ln.Initialized||oe.type===Ln.Watched||oe.type===Ln.Unwatched||oe.type===Ln.PresenceChanged)return;if(oe.type===Ln.Snapshot){H==="$"&&K(oe);return}const{message:Ae,operations:He,actor:yt}=oe.value,Ft=[];for(const ft of He)this.isSameElementOrChildOf(ft.path,H)&&Ft.push(ft);Ft.length&&K({type:oe.type,value:{message:Ae,operations:Ft,actor:yt}})},T,_)}if(typeof f=="function"){const H=f,K=g,oe=T;return this.eventStream.subscribe(Ae=>{Ae.type===Ln.Initialized||Ae.type===Ln.Watched||Ae.type===Ln.Unwatched||Ae.type===Ln.PresenceChanged||H(Ae)},K,oe)}throw new Error(`"${f}" is not a valid`)}publish(f){this.eventStreamObserver&&this.eventStreamObserver.next(f)}isSameElementOrChildOf(f,g){if(g===f)return!0;const T=f.split(".");return g.split(".").every((H,K)=>H===T[K])}applyChangePack(f){for(f.hasSnapshot()?this.applySnapshot(f.getCheckpoint().getServerSeq(),f.getSnapshot()):f.hasChanges()&&this.applyChanges(f.getChanges());this.localChanges.length&&!(this.localChanges[0].getID().getClientSeq()>f.getCheckpoint().getClientSeq());)this.localChanges.shift();this.checkpoint=this.checkpoint.forward(f.getCheckpoint()),this.garbageCollect(f.getMinSyncedTicket()),f.getIsRemoved()&&this.setStatus(ks.Removed),u.isEnabled(s.Trivial)&&u.trivial(`${this.root.toJSON()}`)}getCheckpoint(){return this.checkpoint}getChangeID(){return this.changeID}hasLocalChanges(){return this.localChanges.length>0}ensureClone(){this.clone||(this.clone={root:this.root.deepcopy(),presences:sa(this.presences)})}createChangePack(){const f=Array.from(this.localChanges),g=this.checkpoint.increaseClientSeq(f.length);return UO.create(this.key,g,!1,f)}setActor(f){for(const g of this.localChanges)g.setActor(f);this.changeID=this.changeID.setActor(f)}getKey(){return this.key}setStatus(f){this.status=f}getStatus(){return this.status}getCloneRoot(){if(this.clone)return this.clone.root.getObject()}getRoot(){this.ensureClone();const f=Jp.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});return ZF(f,this.clone.root.getObject())}getOpsForTest(){return this.root.opsForTest}garbageCollect(f){return this.opts.disableGC?0:(this.clone&&this.clone.root.garbageCollect(f),this.root.garbageCollect(f))}getRootObject(){return this.root.getObject()}getGarbageLen(){return this.root.getGarbageLen()}getGarbageLenFromClone(){return this.clone.root.getGarbageLen()}toJSON(){return this.root.toJSON()}toSortedJSON(){return this.root.toSortedJSON()}toJSForTest(){return{...this.getRoot().toJSForTest(),key:"root"}}applySnapshot(f,g){const{root:T,presences:_}=Zl.bytesToSnapshot(g);this.root=new t0(T),this.presences=_,this.changeID=this.changeID.syncLamport(f),this.clone=void 0,this.publish({type:Ln.Snapshot,value:g})}applyChanges(f){u.isEnabled(s.Debug)&&u.debug(`trying to apply ${f.length} remote changes.elements:${this.root.getElementMapSize()}, removeds:${this.root.getRemovedElementSetSize()}`),u.isEnabled(s.Trivial)&&u.trivial(f.map(g=>`${g.getID().toTestString()} ${g.toTestString()}`).join(` +`)),this.ensureClone();for(const g of f){g.execute(this.clone.root,this.clone.presences,Cr.Remote);let T;const _=g.getID().getActorID();if(g.hasPresenceChange()&&this.onlineClients.has(_)){const K=g.getPresenceChange();switch(K.type){case Ma.Put:T={type:this.presences.has(_)?Ln.PresenceChanged:Ln.Watched,value:{clientID:_,presence:K.presence}};break;case Ma.Clear:T={type:Ln.Unwatched,value:{clientID:_,presence:this.getPresence(_)}},this.removeOnlineClient(_);break}}const{opInfos:H}=g.execute(this.root,this.presences,Cr.Remote);H.length>0&&this.publish({type:Ln.RemoteChange,value:{actor:_,message:g.getMessage()||"",operations:H}}),T&&this.publish(T),this.changeID=this.changeID.syncLamport(g.getID().getLamport())}u.isEnabled(s.Debug)&&u.debug(`after appling ${f.length} remote changes.elements:${this.root.getElementMapSize()}, removeds:${this.root.getRemovedElementSetSize()}`)}getValueByPath(f){if(!f.startsWith("$"))throw new An(En.InvalidArgument,'path must start with "$"');const g=f.split(".");g.shift();let T=this.getRoot();for(const _ of g)if(T=T[_],T===void 0)return;return T}setOnlineClients(f){this.onlineClients=f}addOnlineClient(f){this.onlineClients.add(f)}removeOnlineClient(f){this.onlineClients.delete(f)}hasPresence(f){return this.presences.has(f)}getMyPresence(){if(this.status!==ks.Attached)return{};const f=this.presences.get(this.changeID.getActorID());return sa(f)}getPresence(f){if(!this.onlineClients.has(f))return;const g=this.presences.get(f);return g?sa(g):void 0}getPresenceForTest(f){const g=this.presences.get(f);return g?sa(g):void 0}getPresences(){const f=[];for(const g of this.onlineClients)this.presences.has(g)&&f.push({clientID:g,presence:sa(this.presences.get(g))});return f}getSelfForTest(){return{clientID:this.getChangeID().getActorID(),presence:this.getMyPresence()}}getOthersForTest(){const f=this.getChangeID().getActorID();return this.getPresences().filter(g=>g.clientID!==f).sort((g,T)=>g.clientID>T.clientID?1:-1)}canUndo(){return this.internalHistory.hasUndo()&&!this.isUpdating}canRedo(){return this.internalHistory.hasRedo()&&!this.isUpdating}undo(){if(this.isUpdating)throw new Error("Undo is not allowed during an update");const f=this.internalHistory.popUndo();if(f===void 0)throw new Error("There is no operation to be undone");this.ensureClone();const g=Jp.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});for(const Ae of f){if(!(Ae instanceof Ur)){new Wp(g,sa(this.clone.presences.get(this.changeID.getActorID()))).set(Ae.value,{addToHistory:!0});continue}const He=g.issueTimeTicket();Ae.setExecutedAt(He),g.push(Ae)}const T=g.getChange();T.execute(this.clone.root,this.clone.presences,Cr.UndoRedo);const{opInfos:_,reverseOps:H}=T.execute(this.root,this.presences,Cr.UndoRedo),K=g.getReversePresence();if(K&&H.push({type:"presence",value:K}),H.length>0&&this.internalHistory.pushRedo(H),!T.hasPresenceChange()&&_.length===0)return;this.localChanges.push(T),this.changeID=T.getID();const oe=this.changeID.getActorID();_.length>0&&this.publish({type:Ln.LocalChange,value:{message:T.getMessage()||"",operations:_,actor:oe}}),T.hasPresenceChange()&&this.publish({type:Ln.PresenceChanged,value:{clientID:oe,presence:this.getPresence(oe)}})}redo(){if(this.isUpdating)throw new Error("Redo is not allowed during an update");const f=this.internalHistory.popRedo();if(f===void 0)throw new Error("There is no operation to be redone");this.ensureClone();const g=Jp.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});for(const Ae of f){if(!(Ae instanceof Ur)){new Wp(g,sa(this.clone.presences.get(this.changeID.getActorID()))).set(Ae.value,{addToHistory:!0});continue}const He=g.issueTimeTicket();Ae.setExecutedAt(He),g.push(Ae)}const T=g.getChange();T.execute(this.clone.root,this.clone.presences,Cr.UndoRedo);const{opInfos:_,reverseOps:H}=T.execute(this.root,this.presences,Cr.UndoRedo),K=g.getReversePresence();if(K&&H.push({type:"presence",value:K}),H.length>0&&this.internalHistory.pushUndo(H),!T.hasPresenceChange()&&_.length===0)return;this.localChanges.push(T),this.changeID=T.getID();const oe=this.changeID.getActorID();_.length>0&&this.publish({type:Ln.LocalChange,value:{message:T.getMessage()||"",operations:_,actor:oe}}),T.hasPresenceChange()&&this.publish({type:Ln.PresenceChanged,value:{clientID:oe,presence:this.getPresence(oe)}})}getUndoStackForTest(){return this.internalHistory.getUndoStackForTest()}getRedoStackForTest(){return this.internalHistory.getRedoStackForTest()}}function Eoe(A,f){return g=>async T=>(A&&T.header.set("x-api-key",A),f&&T.header.set("authorization",f),await g(T))}const JF=JSON.parse('{"u2":"yorkie-js-sdk","i8":"0.4.13"}');function Soe(){return A=>async f=>(f.header.set("x-yorkie-user-agent",JF.u2+"/"+JF.i8),await A(f))}var Wu;(function(A){A.PushPull="pushpull",A.PushOnly="pushonly"})(Wu||(Wu={}));var Bc;(function(A){A.Deactivated="deactivated",A.Activated="activated"})(Bc||(Bc={}));var mf;(function(A){A.Connected="connected",A.Disconnected="disconnected"})(mf||(mf={}));var eh;(function(A){A.Synced="synced",A.SyncFailed="sync-failed"})(eh||(eh={}));var Va;(function(A){A.StatusChanged="status-changed",A.DocumentChanged="document-changed",A.StreamConnectionStatusChanged="stream-connection-status-changed",A.DocumentSynced="document-synced"})(Va||(Va={}));const ZO={syncLoopDuration:50,retrySyncLoopDelay:1e3,reconnectStreamDelay:1e3};class e6{constructor(f,g){g=g||ZO,this.key=g.key?g.key:c(),this.status=Bc.Deactivated,this.attachmentMap=new Map,this.apiKey=g.apiKey||"",this.syncLoopDuration=g.syncLoopDuration||ZO.syncLoopDuration,this.reconnectStreamDelay=g.reconnectStreamDelay||ZO.reconnectStreamDelay,this.retrySyncLoopDelay=g.retrySyncLoopDelay||ZO.retrySyncLoopDelay,this.rpcClient=z(_e.V,Ee({baseUrl:f,interceptors:[Eoe(g.apiKey,g.token),Soe()]})),this.eventStream=h(T=>{this.eventStreamObserver=T})}activate(){return this.isActive()?Promise.resolve():this.rpcClient.activateClient({clientKey:this.key},{headers:{"x-shard-key":this.apiKey}}).then(f=>{this.id=f.clientId,this.status=Bc.Activated,this.runSyncLoop(),this.eventStreamObserver.next({type:Va.StatusChanged,value:this.status}),u.info(`[AC] c:"${this.getKey()}" activated, id:"${this.id}"`)}).catch(f=>{throw u.error(`[AC] c:"${this.getKey()}" err :`,f),f})}deactivate(){if(this.status===Bc.Deactivated)return Promise.resolve();for(const[f]of this.attachmentMap)this.detachInternal(f);return this.rpcClient.deactivateClient({clientKey:this.key,clientId:this.id},{headers:{"x-shard-key":this.apiKey}}).then(()=>{this.status=Bc.Deactivated,this.eventStreamObserver.next({type:Va.StatusChanged,value:this.status}),u.info(`[DC] c"${this.getKey()}" deactivated`)}).catch(f=>{throw u.error(`[DC] c:"${this.getKey()}" err :`,f),f})}attach(f,g={}){var T;if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);if(f.getStatus()!==ks.Detached)throw new An(En.DocumentNotDetached,`${f.getKey()} is not detached`);f.setActor(this.id),f.update((H,K)=>K.set(g.initialPresence||{}));const _=(T=g.isRealtimeSync)!==null&&T!==void 0?T:!0;return this.rpcClient.attachDocument({clientKey:this.key,clientId:this.id,changePack:Zl.toChangePack(f.createChangePack())},{headers:{"x-shard-key":`${this.apiKey}/${f.getKey()}`}}).then(async H=>{const K=Zl.fromChangePack(H.changePack);return f.applyChangePack(K),f.getStatus()===ks.Removed||(f.setStatus(ks.Attached),this.attachmentMap.set(f.getKey(),new poe(this.reconnectStreamDelay,f,H.documentId,_)),_&&await this.runWatchLoop(f.getKey()),u.info(`[AD] c:"${this.getKey()}" attaches d:"${f.getKey()}"`)),f}).catch(H=>{throw u.error(`[AD] c:"${this.getKey()}" err :`,H),H})}detach(f,g={}){var T;if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);const _=this.attachmentMap.get(f.getKey());if(!_)throw new An(En.DocumentNotAttached,`${f.getKey()} is not attached`);return f.update((H,K)=>K.clear()),this.rpcClient.detachDocument({clientKey:this.key,clientId:this.id,documentId:_.docID,changePack:Zl.toChangePack(f.createChangePack()),removeIfNotAttached:(T=g.removeIfNotAttached)!==null&&T!==void 0?T:!1},{headers:{"x-shard-key":`${this.apiKey}/${f.getKey()}`}}).then(H=>{const K=Zl.fromChangePack(H.changePack);return f.applyChangePack(K),f.getStatus()!==ks.Removed&&f.setStatus(ks.Detached),this.detachInternal(f.getKey()),u.info(`[DD] c:"${this.getKey()}" detaches d:"${f.getKey()}"`),f}).catch(H=>{throw u.error(`[DD] c:"${this.getKey()}" err :`,H),H})}pause(f){if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);return this.changeRealtimeSync(f,!1)}resume(f){if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);return this.changeRealtimeSync(f,!0)}pauseRemoteChanges(f){if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);const g=this.attachmentMap.get(f.getKey());if(!g)throw new An(En.DocumentNotAttached,`${f.getKey()} is not attached`);g.changeSyncMode(Wu.PushOnly)}resumeRemoteChanges(f){if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);const g=this.attachmentMap.get(f.getKey());if(!g)throw new An(En.DocumentNotAttached,`${f.getKey()} is not attached`);g.changeSyncMode(Wu.PushPull),g.remoteChangeEventReceived=!0}async changeRealtimeSync(f,g){const T=this.attachmentMap.get(f.getKey());if(!T)throw new An(En.DocumentNotAttached,`${f.getKey()} is not attached`);return T.changeRealtimeSync(g)?g?(T.remoteChangeEventReceived=!0,await this.runWatchLoop(f.getKey()),f):(this.eventStreamObserver.next({type:Va.StreamConnectionStatusChanged,value:mf.Disconnected}),u.debug(`[WD] c:"${this.getKey()}" unwatches`),f):f}sync(f,g=Wu.PushPull){if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);const T=[];if(f){const _=this.attachmentMap.get(f.getKey());if(!_)throw new An(En.DocumentNotAttached,`${f.getKey()} is not attached`);T.push(this.syncInternal(_,g))}else this.attachmentMap.forEach(_=>{T.push(this.syncInternal(_,_.syncMode))});return Promise.all(T).catch(_=>{throw this.eventStreamObserver.next({type:Va.DocumentSynced,value:eh.SyncFailed}),_})}remove(f){if(!this.isActive())throw new An(En.ClientNotActive,`${this.key} is not active`);const g=this.attachmentMap.get(f.getKey());if(!g)throw new An(En.DocumentNotAttached,`${f.getKey()} is not attached`);f.setActor(this.id);const T=Zl.toChangePack(f.createChangePack());return T.isRemoved=!0,this.rpcClient.removeDocument({clientKey:this.key,clientId:this.id,documentId:g.docID,changePack:T},{headers:{"x-shard-key":`${this.apiKey}/${f.getKey()}`}}).then(_=>{const H=Zl.fromChangePack(_.changePack);f.applyChangePack(H),this.detachInternal(f.getKey()),u.info(`[RD] c:"${this.getKey()}" removes d:"${f.getKey()}"`)}).catch(_=>{throw u.error(`[RD] c:"${this.getKey()}" err :`,_),_})}subscribe(f,g,T){return this.eventStream.subscribe(f,g,T)}getID(){return this.id}getKey(){return this.key}isActive(){return this.status===Bc.Activated}getStatus(){return this.status}runSyncLoop(){const f=()=>{if(!this.isActive()){u.debug(`[SL] c:"${this.getKey()}" exit sync loop`);return}const g=[];for(const[,T]of this.attachmentMap)T.needRealtimeSync()&&(T.remoteChangeEventReceived=!1,g.push(this.syncInternal(T,T.syncMode)));Promise.all(g).then(()=>setTimeout(f,this.syncLoopDuration)).catch(T=>{u.error(`[SL] c:"${this.getKey()}" sync failed:`,T),this.eventStreamObserver.next({type:Va.DocumentSynced,value:eh.SyncFailed}),setTimeout(f,this.retrySyncLoopDelay)})};u.debug(`[SL] c:"${this.getKey()}" run sync loop`),f()}async runWatchLoop(f){const g=this.attachmentMap.get(f);if(!g)throw new An(En.DocumentNotAttached,`${f} is not attached`);return g.runWatchLoop(T=>{if(!this.isActive())return Promise.reject(new An(En.ClientNotActive,`${this.key} is not active`));const _=new AbortController,H=this.rpcClient.watchDocument({clientKey:this.key,clientId:this.id,documentKey:f,documentId:g.docID},{headers:{"x-shard-key":`${this.apiKey}/${f}`},signal:_.signal});return this.eventStreamObserver.next({type:Va.StreamConnectionStatusChanged,value:mf.Connected}),u.info(`[WD] c:"${this.getKey()}" watches d:"${f}"`),new Promise((K,oe)=>{(async()=>{try{for await(const He of H)this.handleWatchDocumentsResponse(g,He),He.body.case==="initialization"&&K([H,_])}catch(He){this.eventStreamObserver.next({type:Va.StreamConnectionStatusChanged,value:mf.Disconnected}),u.debug(`[WD] c:"${this.getKey()}" unwatches`),T(),oe(He)}})()})})}handleWatchDocumentsResponse(f,g){const T=f.doc.getKey();if(g.body.case==="initialization"){const _=g.body.value.clientIds,H=new Set;for(const K of _)H.add(K);f.doc.setOnlineClients(H),f.doc.publish({type:Ln.Initialized,value:f.doc.getPresences()});return}else if(g.body.case==="event"){const _=g.body.value,H=_.type,K=_.publisher;switch(H){case pe.DocEventType.DOCUMENT_CHANGED:f.remoteChangeEventReceived=!0,this.eventStreamObserver.next({type:Va.DocumentChanged,value:[T]});break;case pe.DocEventType.DOCUMENT_WATCHED:f.doc.addOnlineClient(K),f.doc.hasPresence(K)&&f.doc.publish({type:Ln.Watched,value:{clientID:K,presence:f.doc.getPresence(K)}});break;case pe.DocEventType.DOCUMENT_UNWATCHED:{const oe=f.doc.getPresence(K);f.doc.removeOnlineClient(K),oe&&f.doc.publish({type:Ln.Unwatched,value:{clientID:K,presence:oe}});break}}}}detachInternal(f){const g=this.attachmentMap.get(f);g&&(g.cancelWatchStream(),u.debug(`[WD] c:"${this.getKey()}" unwatches`),this.eventStreamObserver.next({type:Va.StreamConnectionStatusChanged,value:mf.Disconnected}),this.attachmentMap.delete(f))}syncInternal(f,g){const{doc:T,docID:_}=f,H=T.createChangePack();return this.rpcClient.pushPullChanges({clientKey:this.key,clientId:this.id,documentId:_,changePack:Zl.toChangePack(H),pushOnly:g===Wu.PushOnly},{headers:{"x-shard-key":`${this.apiKey}/${T.getKey()}`}}).then(K=>{const oe=Zl.fromChangePack(K.changePack);if(oe.hasChanges()&&g===Wu.PushOnly)return T;T.applyChangePack(oe),this.eventStreamObserver.next({type:Va.DocumentSynced,value:eh.Synced}),T.getStatus()===ks.Removed&&this.detachInternal(T.getKey());const Ae=T.getKey(),He=oe.getChangeSize();return u.info(`[PP] c:"${this.getKey()}" sync d:"${Ae}", push:${H.getChangeSize()} pull:${He} cp:${oe.getCheckpoint().toTestString()}`),T}).catch(K=>{throw u.error(`[PP] c:"${this.getKey()}" err :`,K),K})}}const Toe={Client:e6,Document:KF,Primitive:Ar,Text:QO,Counter:YO,Tree:GO,IntType:fi.IntegerCnt,LongType:fi.LongCnt}})(),a})())})(sJ);var rI=sJ.exports;class JPe{constructor(t,n){qo(this,"doc");qo(this,"client");this.doc=t,this.client=n}}const s3=qt.define({combine(e){return e[e.length-1]}}),lj=Fl.define();class e3e{constructor(t){qo(this,"view");qo(this,"conf");qo(this,"_doc");qo(this,"_observer");qo(this,"_unsubscribe");this.view=t,this.conf=t.state.facet(s3),this._observer=n=>{if(n.type!=="remote-change")return;const{operations:r}=n.value;r.forEach(i=>{if(i.type==="edit"){const o=[{from:Math.max(0,i.from),to:Math.max(0,i.to),insert:i.value.content}];t.dispatch({changes:o,annotations:[lj.of(this.conf)]})}})},this._doc=this.conf.doc,this._unsubscribe=this._doc.subscribe("$.content",this._observer)}update(t){!t.docChanged||t.transactions.length>0&&t.transactions[0].annotation(lj)===this.conf||this._doc.update((n,r)=>{t.changes.iterChanges((i,o,a,s,l)=>{n.content||(n.content=new rI.Text);const u=l.sliceString(0,l.length,` +`),c=n.content.edit(i,o,u);c&&r.set({selection:n.content.indexRangeToPosRange(c)})})})}destroy(){this._unsubscribe()}}const t3e=Jr.fromClass(e3e);class n3e{constructor(t,n){this.left=t,this.right=n}}const nE=(e,t)=>new n3e(e,t),r3e=(e,t)=>e.forEach(n=>t(n.left,n.right)),$u=typeof document<"u"?document:{},i3e=e=>$u.createElement(e),o3e=()=>$u.createDocumentFragment(),a3e=e=>$u.createTextNode(e);typeof DOMParser<"u"&&new DOMParser;const s3e=(e,t)=>(r3e(t,(n,r)=>{r===!1?e.removeAttribute(n):r===!0?e.setAttribute(n,""):e.setAttribute(n,r)}),e),l3e=e=>{const t=o3e();for(let n=0;n(lJ(e,l3e(t)),e),BA=(e,t=[],n=[])=>u3e(s3e(i3e(e),t),n),rE=a3e,lJ=(e,t)=>e.appendChild(t);$u.ELEMENT_NODE;$u.TEXT_NODE;$u.CDATA_SECTION_NODE;$u.COMMENT_NODE;$u.DOCUMENT_NODE;$u.DOCUMENT_TYPE_NODE;$u.DOCUMENT_FRAGMENT_NODE;const c3e=Vt.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"}}),d3e=Fl.define();class f3e extends Lu{constructor(n,r){super();qo(this,"color");qo(this,"name");this.color=n,this.name=r}toDOM(){return BA("span",[nE("class","cm-ySelectionCaret"),nE("style",`background-color: ${this.color}; border-color: ${this.color}`)],[rE("⁠"),BA("div",[nE("class","cm-ySelectionCaretDot")]),rE("⁠"),BA("div",[nE("class","cm-ySelectionInfo")],[rE(this.name)]),rE("⁠")])}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 p3e{constructor(t){qo(this,"conf");qo(this,"decorations");qo(this,"unsubscribe");this.conf=t.state.facet(s3),this.unsubscribe=this.conf.doc.subscribe("others",n=>{const r=[];n.type==="presence-changed"&&(this.conf.doc.getPresences().forEach(i=>{if(i.clientID===this.conf.client.getID()||i.presence.selection==null)return;const o=this.conf.doc.getRoot().content.posRangeToIndexRange(i.presence.selection),a=i.presence.color,s=i.presence.name,l=Math.min(o[0],o[1]),u=Math.max(o[0],o[1]),c=t.state.doc.lineAt(l),d=t.state.doc.lineAt(u);if(c.number===d.number)r.push({from:l,to:u,value:ln.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})});else{r.push({from:l,to:c.from+c.length,value:ln.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})}),r.push({from:d.from,to:u,value:ln.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})});for(let p=c.number+1;p0?-1:1,block:!1,widget:new f3e(a,s)})})}),this.decorations=ln.set(r,!0),r.length>0&&t.dispatch({annotations:[d3e.of([])]}))}),this.decorations=Xn.of([])}destroy(){this.unsubscribe()}update(t){this.conf.doc.update((n,r)=>{const o=t.view.hasFocus&&t.view.dom.ownerDocument.hasFocus()?t.state.selection.main:null;if(o&&n.content){const a=n.content.indexRangeToPosRange([o.anchor,o.head]);r.set({selection:a})}})}}const h3e=Jr.fromClass(p3e,{decorations:e=>e.decorations});function m3e(e,t){const n=new JPe(e,t),r=[s3.of(n),t3e];return t&&r.push(c3e,h3e),r}function iE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const g3e=e=>{const t=window.document.createElement("span");return t.classList.add(`codemirror-toolbar__${e.type}`),t},b3e=e=>{const t=window.document.createElement("button");return t.classList.add("codemirror-toolbar__item"),t.dataset.item=e.key,t.title=e.label,t.innerHTML=`${e.icon||""}`,t},y3e=e=>{const t=window.document.createElement("div");t.classList.add("codemirror-toolbar");const n=window.document.createDocumentFragment();return n.append(...e.items.map(r=>"type"in r?g3e(r):b3e(r))),t.appendChild(n),t};class O3e{handleClick(t){const n=t.target;if(n&&n.tagName==="BUTTON"){const r=n.dataset.item;if(r){const i=this.handlers[r];if(i){t.preventDefault(),t.stopPropagation(),i(this.view);return}}}this.view.focus()}destroy(){this.element.remove()}constructor(t,n){iE(this,"view",void 0),iE(this,"element",void 0),iE(this,"config",void 0),iE(this,"handlers",void 0),this.view=t,this.handlers={},this.config={...n,items:n.items.map((i,o)=>{var s;if("type"in i)return{...i};const a=i.key||i.command.displayName||((s=i.command)==null?void 0:s.name)||`cmd_${o}`;return this.handlers[a]=i.command,{...i,key:a}})};const r=this.element=y3e(this.config);r.addEventListener("click",this.handleClick.bind(this)),this.view.dom.prepend(r)}}const v3e=e=>Jr.define(t=>new O3e(t,e)),E3e=Vt.baseTheme({".codemirror-toolbar":{display:"flex",padding:"4px 5px",backgroundColor:"rgb(245, 245, 245)",borderBottom:"1px solid rgb(221, 221, 221)"},".codemirror-toolbar__icon":{display:"inline-block",height:"1em",width:"1em",overflow:"visible"},".codemirror-toolbar__icon svg":{overflow:"visible",boxSizing:"content-box",height:"1em",width:"1em",verticalAlign:"-.125em"},".codemirror-toolbar__item":{display:"inline-flex",alignItems:"center",justifyContent:"center",background:"transparent",border:"none",outline:"none",cursor:"pointer",borderRadius:"2px",height:"20px",width:"20px",transition:"all .3s"},".codemirror-toolbar__item:hover":{color:"#1EA7FD",backgroundColor:"rgba(30,167,253,0.12)"},".codemirror-toolbar__item > *":{pointerEvents:"none"},".codemirror-toolbar__split":{display:"inline-block",width:"1px",height:"20px",margin:"0 6px",backgroundColor:"rgb(221, 221, 221)"},".codemirror-toolbar__space":{display:"inline-block",flex:1}}),S3e=e=>{const t=e.state.selection.main;if(t.from>=2){const n=e.state.sliceDoc(t.from-2,t.from),r=e.state.sliceDoc(t.to,t.to+2);if(n==="**"&&r==="**")return e.focus(),!1}return e.dispatch(e.state.changeByRange(n=>({changes:[{from:n.from,insert:"**"},{from:n.to,insert:"**"}],range:tt.range(n.from+2,n.to+2)}))),e.focus(),!0},T3e=e=>{const t=e.state.selection.main;if(t.from>=1){const n=e.state.sliceDoc(t.from-1,t.from),r=e.state.sliceDoc(t.to,t.to+1);if(n==="*"&&r==="*"&&(t.from<2||e.state.sliceDoc(t.from-1,t.from)!=="*"||e.state.sliceDoc(t.to,t.to+1)!=="*"||t.from>=3&&e.state.sliceDoc(t.from-3,t.from)==="***"&&e.state.sliceDoc(t.to,t.to+3)==="***"))return e.focus(),!1}return e.dispatch(e.state.changeByRange(n=>({changes:[{from:n.from,insert:"*"},{from:n.to,insert:"*"}],range:tt.range(n.from+1,n.to+1)}))),e.focus(),!0},w3e=e=>{const t=e.state.selection.main;if(t.from>=2){const n=e.state.sliceDoc(t.from-2,t.from),r=e.state.sliceDoc(t.to,t.to+2);if(n==="~~"&&r==="~~")return e.focus(),!1}return e.dispatch(e.state.changeByRange(n=>({changes:[{from:n.from,insert:"~~"},{from:n.to,insert:"~~"}],range:tt.range(n.from+2,n.to+2)}))),e.focus(),!0},k3e=e=>{const t=e.state.selection.main;if(t.from>=3){const n=e.state.sliceDoc(t.from-3,t.from),r=e.state.sliceDoc(t.to,t.to+4);if(n===""&&r==="")return e.focus(),!1}return e.dispatch(e.state.changeByRange(n=>({changes:[{from:n.from,insert:""},{from:n.to,insert:""}],range:tt.range(n.from+3,n.to+3)}))),e.focus(),!0},x3e=e=>{const{state:t}=e,{doc:n}=t;return e.dispatch(e.state.changeByRange(r=>{const i=n.lineAt(r.from),a=n.slice(r.from,r.to).lines,s=[];let l=r.from,u=r.to-r.from;return new Array(a).fill(0).forEach((c,d)=>{const p=n.line(i.number+d);p.text.startsWith("> ")||(s.push({from:p.from,insert:"> "}),d===0?l=l+2:u+=2)}),{changes:s,range:tt.range(l,l+u)}})),e.focus(),!0},C3e=e=>{const{state:t}=e,{doc:n}=t;return e.dispatch(t.changeByRange(r=>{const{from:i,to:o}=r,a=n.sliceString(i,o),s=`[${a}]()`,l=i+(a.length?3+a.length:1);return{changes:[{from:i,to:o,insert:s}],range:tt.range(l,l)}})),e.focus(),!0},A3e=e=>{const{state:t}=e,{doc:n}=t;return e.dispatch(t.changeByRange(r=>{const{from:i,to:o}=r,a=n.sliceString(i,o),s=`![${a}]()`,l=i+(a.length?3+a.length:2);return{changes:[{from:i,to:o,insert:s}],range:tt.range(l,l)}})),e.focus(),!0},Lg=e=>t=>{const n=t.state,r="#".repeat(e)+" ";return t.dispatch(n.changeByRange(i=>{const o=n.doc.lineAt(i.from),a=o.text.replace(/^((#+) )?/,r),s=a.length-o.length;return{changes:{from:o.from,to:o.to,insert:a},range:tt.range(i.anchor+s,i.head+s)}})),t.focus(),!0},_3e=e=>{if(e=e&&e.trimStart(),!e)return;if(e.startsWith("- "))return e.startsWith("- [ ] ")||e.startsWith("- [x] ")?["todo"]:["ul"];const t=e.match(/^(\d+)\. /);if(t)return["ol",Number.parseInt(t[1],10)]},l3=e=>t=>{const{state:n}=t,{doc:r}=n;let i=1;return t.dispatch(t.state.changeByRange(o=>{const a=r.lineAt(o.from),l=r.slice(o.from,o.to).lines,u=[];let c=o.from,d=o.to-o.from;return new Array(l).fill(0).forEach((p,h)=>{const m=r.line(a.number+h),b=_3e(m.text);if(b&&b[0]===e){b[0]==="ol"&&b[1]&&(i=b[1]);return}const O=m.text.replace(RegExp("^((? *)(-( \\[[x ]])?|\\d+\\.) )?"),(...v)=>{const S=v[v.length-1],{space:k=""}=S;let C="- ";return e==="ol"?(C=`${i}. `,i++):e==="todo"&&(C="- [ ] "),k+C}),y=O.length-m.length;u.push({from:m.from,to:m.to,insert:O}),h===0?c=c+y:d=d+y}),{changes:u,range:tt.range(c,c+d)}})),t.focus(),!0},R3e=Lg(1),I3e=Lg(2),D3e=Lg(3),N3e=Lg(4),P3e=Lg(5),L3e=Lg(6),M3e=l3("ul"),$3e=l3("ol"),F3e=l3("todo"),B3e={label:"Bold",icon:'',command:S3e},U3e={label:"Italic",icon:'',command:T3e},j3e={label:"Strike",icon:'',command:w3e},z3e={label:"Underline",icon:'',command:k3e},V3e={label:"H1",icon:'',command:R3e},H3e={label:"H2",icon:'',command:I3e},W3e={label:"H3",icon:'',command:D3e},Q3e={label:"H4",icon:'',command:N3e},Y3e={label:"H5",icon:'',command:P3e},G3e={label:"H6",icon:'',command:L3e},q3e={label:"Block Quote",icon:'',command:x3e},Z3e={label:"Unordered List",icon:'',command:M3e},X3e={label:"Ordered List",icon:'',command:$3e},K3e={label:"Todo List",icon:'',command:F3e},J3e={label:"Link",icon:'',command:C3e},eLe={label:"Image",icon:'',command:A3e},UA={type:"split"},tLe={type:"space"},nLe={label:"Full Screen",key:"fullScreen",icon:'',command:e=>(e.dom.ownerDocument.fullscreenElement?e.dom.ownerDocument.exitFullscreen():e.dom.requestFullscreen(),!0)},rLe=[B3e,U3e,j3e,z3e,UA,V3e,H3e,W3e,Q3e,Y3e,G3e,UA,q3e,Z3e,X3e,K3e,UA,J3e,eLe,tLe,nLe],iLe=e=>[v3e(e),E3e];var uJ=e=>{var{theme:t,settings:n={},styles:r=[]}=e,i={".cm-gutters":{}},o={};n.background&&(o.backgroundColor=n.background),n.backgroundImage&&(o.backgroundImage=n.backgroundImage),n.foreground&&(o.color=n.foreground),(n.background||n.foreground)&&(i["&"]=o),n.fontFamily&&(i["&.cm-editor .cm-scroller"]={fontFamily:n.fontFamily}),n.gutterBackground&&(i[".cm-gutters"].backgroundColor=n.gutterBackground),n.gutterForeground&&(i[".cm-gutters"].color=n.gutterForeground),n.gutterBorder&&(i[".cm-gutters"].borderRightColor=n.gutterBorder),n.caret&&(i[".cm-content"]={caretColor:n.caret},i[".cm-cursor, .cm-dropCursor"]={borderLeftColor:n.caret});var a={};n.gutterActiveForeground&&(a.color=n.gutterActiveForeground),n.lineHighlight&&(i[".cm-activeLine"]={backgroundColor:n.lineHighlight},a.backgroundColor=n.lineHighlight),i[".cm-activeLineGutter"]=a,n.selection&&(i["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:n.selection+" !important"}),n.selectionMatch&&(i["& .cm-selectionMatch"]={backgroundColor:n.selectionMatch});var s=Vt.theme(i,{dark:t==="dark"}),l=lO.define(r),u=[s,jZ(l)];return u},oLe={background:"#fff",foreground:"#3D3D3D",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#AFAFAF",lineHighlight:"#d5e6ff69"};function aLe(e){var{theme:t="light",settings:n={},styles:r=[]}=e||{};return uJ({theme:t,settings:P({},oLe,n),styles:[{tag:[he.comment,he.quote],color:"#707F8D"},{tag:[he.typeName,he.typeOperator],color:"#aa0d91"},{tag:[he.keyword],color:"#aa0d91",fontWeight:"bold"},{tag:[he.string,he.meta],color:"#D23423"},{tag:[he.name],color:"#032f62"},{tag:[he.typeName],color:"#522BB2"},{tag:[he.variableName],color:"#23575C"},{tag:[he.definition(he.variableName)],color:"#327A9E"},{tag:[he.regexp,he.link],color:"#0e0eff"},...r]})}var sLe=aLe(),lLe={background:"#292A30",foreground:"#CECFD0",caret:"#fff",selection:"#727377",selectionMatch:"#727377",lineHighlight:"#ffffff0f"},uLe=e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return uJ({theme:t,settings:P({},lLe,n),styles:[{tag:[he.comment,he.quote],color:"#7F8C98"},{tag:[he.keyword],color:"#FF7AB2",fontWeight:"bold"},{tag:[he.string,he.meta],color:"#FF8170"},{tag:[he.typeName],color:"#DABAFF"},{tag:[he.definition(he.variableName)],color:"#6BDFFF"},{tag:[he.name],color:"#6BAA9F"},{tag:[he.variableName],color:"#ACF2E4"},{tag:[he.regexp,he.link],color:"#FF8170"},...r]})},cLe=uLe();function uj(){const e=bP(),[t,n]=I.useState(),r=_c(jk),i=I.useCallback(o=>{o&&n(o)},[]);return I.useEffect(()=>{var s;let o;if(!t||!r.doc||!r.client)return;const a=qn.create({doc:((s=r.doc.getRoot().content)==null?void 0:s.toString())??"",extensions:[nDe,ZPe(),m3e(r.doc,r.client),iLe({items:rLe}),e=="light"?sLe:cLe,Vt.theme({"&":{width:"100%"}}),Vt.lineWrapping,_g.of([SRe])]});return o=new Vt({state:a,parent:t}),()=>{o==null||o.destroy()}},[r.client,r.doc,t,e]),M.jsx("div",{ref:i,style:{display:"flex",alignItems:"stretch",height:"100%"}})}var iI={exports:{}};(function(e,t){(function(n,r){{var i=r();e&&e.exports&&(t=e.exports=i),t.randomColor=i}})(TS,function(){var n=null,r={};y();var i=[],o=function(E){if(E=E||{},E.seed!==void 0&&E.seed!==null&&E.seed===parseInt(E.seed,10))n=E.seed;else if(typeof E.seed=="string")n=C(E.seed);else{if(E.seed!==void 0&&E.seed!==null)throw new TypeError("The seed value must be an integer or string");n=null}var $,N,R;if(E.count!==null&&E.count!==void 0){for(var B=E.count,U=[],V=0;VU.length;){var z=o(E);n!==null&&(E.seed=n),U.push(z)}return E.count=B,U}return $=a(E),N=s($,E),R=l($,N,E),u([$,N,R],E)};function a(E){if(i.length>0){var $=w(E.hue),N=m($),R=($[1]-$[0])/i.length,B=parseInt((N-$[0])/R);i[B]===!0?B=(B+2)%i.length:i[B]=!0;var U=($[0]+B*R)%359,V=($[0]+(B+1)*R)%359;return $=[U,V],N=m($),N<0&&(N=360+N),N}else{var $=d(E.hue);return N=m($),N<0&&(N=360+N),N}}function s(E,$){if($.hue==="monochrome")return 0;if($.luminosity==="random")return m([0,100]);var N=p(E),R=N[0],B=N[1];switch($.luminosity){case"bright":R=55;break;case"dark":R=B-10;break;case"light":B=55;break}return m([R,B])}function l(E,$,N){var R=c(E,$),B=100;switch(N.luminosity){case"dark":B=R+20;break;case"light":R=(B+R)/2;break;case"random":R=0,B=100;break}return m([R,B])}function u(E,$){switch($.format){case"hsvArray":return E;case"hslArray":return k(E);case"hsl":var N=k(E);return"hsl("+N[0]+", "+N[1]+"%, "+N[2]+"%)";case"hsla":var R=k(E),V=$.alpha||Math.random();return"hsla("+R[0]+", "+R[1]+"%, "+R[2]+"%, "+V+")";case"rgbArray":return v(E);case"rgb":var B=v(E);return"rgb("+B.join(", ")+")";case"rgba":var U=v(E),V=$.alpha||Math.random();return"rgba("+U.join(", ")+", "+V+")";default:return b(E)}}function c(E,$){for(var N=h(E).lowerBounds,R=0;R=B&&$<=V){var W=(z-U)/(V-B),X=U-W*B;return W*$+X}}return 0}function d(E){if(typeof parseInt(E)=="number"){var $=parseInt(E);if($<360&&$>0)return[$,$]}if(typeof E=="string"){if(r[E]){var N=r[E];if(N.hueRange)return N.hueRange}else if(E.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)){var R=S(E)[0];return[R,R]}}return[0,360]}function p(E){return h(E).saturationRange}function h(E){E>=334&&E<=360&&(E-=360);for(var $ in r){var N=r[$];if(N.hueRange&&E>=N.hueRange[0]&&E<=N.hueRange[1])return r[$]}return"Color not found"}function m(E){if(n===null){var $=.618033988749895,N=Math.random();return N+=$,N%=1,Math.floor(E[0]+N*(E[1]+1-E[0]))}else{var R=E[1]||1,B=E[0]||0;n=(n*9301+49297)%233280;var U=n/233280;return Math.floor(B+U*(R-B))}}function b(E){var $=v(E);function N(B){var U=B.toString(16);return U.length==1?"0"+U:U}var R="#"+N($[0])+N($[1])+N($[2]);return R}function O(E,$,N){var R=N[0][0],B=N[N.length-1][0],U=N[N.length-1][1],V=N[0][1];r[E]={hueRange:$,lowerBounds:N,saturationRange:[R,B],brightnessRange:[U,V]}}function y(){O("monochrome",null,[[0,0],[100,0]]),O("red",[-26,18],[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]),O("orange",[18,46],[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]),O("yellow",[46,62],[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]),O("green",[62,178],[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]),O("blue",[178,257],[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]),O("purple",[257,282],[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]),O("pink",[282,334],[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]])}function v(E){var $=E[0];$===0&&($=1),$===360&&($=359),$=$/360;var N=E[1]/100,R=E[2]/100,B=Math.floor($*6),U=$*6-B,V=R*(1-N),z=R*(1-U*N),W=R*(1-(1-U)*N),X=256,q=256,Y=256;switch(B){case 0:X=R,q=W,Y=V;break;case 1:X=z,q=R,Y=V;break;case 2:X=V,q=R,Y=W;break;case 3:X=V,q=z,Y=R;break;case 4:X=W,q=V,Y=R;break;case 5:X=R,q=V,Y=z;break}var Z=[Math.floor(X*255),Math.floor(q*255),Math.floor(Y*255)];return Z}function S(E){E=E.replace(/^#/,""),E=E.length===3?E.replace(/(.)/g,"$1$1"):E;var $=parseInt(E.substr(0,2),16)/255,N=parseInt(E.substr(2,2),16)/255,R=parseInt(E.substr(4,2),16)/255,B=Math.max($,N,R),U=B-Math.min($,N,R),V=B?U/B:0;switch(B){case $:return[60*((N-R)/U%6)||0,V,B];case N:return[60*((R-$)/U+2)||0,V,B];case R:return[60*(($-N)/U+4)||0,V,B]}}function k(E){var $=E[0],N=E[1]/100,R=E[2]/100,B=(2-N)*R;return[$,Math.round(N*R/(B<1?B:2-B)*1e4)/100,B/2*100]}function C(E){for(var $=0,N=0;N!==E.length&&!($>=Number.MAX_SAFE_INTEGER);N++)$+=E.charCodeAt(N);return $}function w(E){if(isNaN(E)){if(typeof E=="string"){if(r[E]){var N=r[E];if(N.hueRange)return N.hueRange}else if(E.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)){var R=S(E)[0];return h(R).hueRange}}}else{var $=parseInt(E);if($<360&&$>0)return h(E).hueRange}return[0,360]}return o})})(iI,iI.exports);var dLe=iI.exports;const fLe=Kd(dLe);var cJ={exports:{}},pLe={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]},dJ={exports:{}},hLe=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")},mLe=hLe,gLe=Array.prototype.concat,bLe=Array.prototype.slice,cj=dJ.exports=function(t){for(var n=[],r=0,i=t.length;r=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"};us.to.keyword=function(e){return pJ[e.slice(0,3)]};function Pd(e,t,n){return Math.min(Math.max(t,e),n)}function oE(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var OLe=cJ.exports,vLe={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 t1=vLe,hJ={};for(const e of Object.keys(t1))hJ[t1[e]]=e;const nn={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var mJ=nn;for(const e of Object.keys(nn)){if(!("channels"in nn[e]))throw new Error("missing channels property: "+e);if(!("labels"in nn[e]))throw new Error("missing channel labels property: "+e);if(nn[e].labels.length!==nn[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=nn[e];delete nn[e].channels,delete nn[e].labels,Object.defineProperty(nn[e],"channels",{value:t}),Object.defineProperty(nn[e],"labels",{value:n})}nn.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=o-i;let s,l;o===i?s=0:t===o?s=(n-r)/a:n===o?s=2+(r-t)/a:r===o&&(s=4+(t-n)/a),s=Math.min(s*60,360),s<0&&(s+=360);const u=(i+o)/2;return o===i?l=0:u<=.5?l=a/(o+i):l=a/(2-o-i),[s,l*100,u*100]};nn.rgb.hsv=function(e){let t,n,r,i,o;const a=e[0]/255,s=e[1]/255,l=e[2]/255,u=Math.max(a,s,l),c=u-Math.min(a,s,l),d=function(p){return(u-p)/6/c+1/2};return c===0?(i=0,o=0):(o=c/u,t=d(a),n=d(s),r=d(l),a===u?i=r-n:s===u?i=1/3+t-r:l===u&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[i*360,o*100,u*100]};nn.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const i=nn.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[i,o*100,r*100]};nn.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(1-t,1-n,1-r),o=(1-t-i)/(1-i)||0,a=(1-n-i)/(1-i)||0,s=(1-r-i)/(1-i)||0;return[o*100,a*100,s*100,i*100]};function ELe(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}nn.rgb.keyword=function(e){const t=hJ[e];if(t)return t;let n=1/0,r;for(const i of Object.keys(t1)){const o=t1[i],a=ELe(e,o);a.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const i=t*.4124+n*.3576+r*.1805,o=t*.2126+n*.7152+r*.0722,a=t*.0193+n*.1192+r*.9505;return[i*100,o*100,a*100]};nn.rgb.lab=function(e){const t=nn.rgb.xyz(e);let n=t[0],r=t[1],i=t[2];n/=95.047,r/=100,i/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;const o=116*r-16,a=500*(n-r),s=200*(r-i);return[o,a,s]};nn.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let i,o,a;if(n===0)return a=r*255,[a,a,a];r<.5?i=r*(1+n):i=r+n-r*n;const s=2*r-i,l=[0,0,0];for(let u=0;u<3;u++)o=t+1/3*-(u-1),o<0&&o++,o>1&&o--,6*o<1?a=s+(i-s)*6*o:2*o<1?a=i:3*o<2?a=s+(i-s)*(2/3-o)*6:a=s,l[u]=a*255;return l};nn.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,i=n;const o=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,i*=o<=1?o:2-o;const a=(r+n)/2,s=r===0?2*i/(o+i):2*n/(r+n);return[t,s*100,a*100]};nn.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const i=Math.floor(t)%6,o=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*o),l=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,l,a];case 1:return[s,r,a];case 2:return[a,r,l];case 3:return[a,s,r];case 4:return[l,a,r];case 5:return[r,a,s]}};nn.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01);let o,a;a=(2-n)*r;const s=(2-n)*i;return o=n*i,o/=s<=1?s:2-s,o=o||0,a/=2,[t,o*100,a*100]};nn.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const i=n+r;let o;i>1&&(n/=i,r/=i);const a=Math.floor(6*t),s=1-r;o=6*t-a,a&1&&(o=1-o);const l=n+o*(s-n);let u,c,d;switch(a){default:case 6:case 0:u=s,c=l,d=n;break;case 1:u=l,c=s,d=n;break;case 2:u=n,c=s,d=l;break;case 3:u=n,c=l,d=s;break;case 4:u=l,c=n,d=s;break;case 5:u=s,c=n,d=l;break}return[u*255,c*255,d*255]};nn.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100,o=1-Math.min(1,t*(1-i)+i),a=1-Math.min(1,n*(1-i)+i),s=1-Math.min(1,r*(1-i)+i);return[o*255,a*255,s*255]};nn.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let i,o,a;return i=t*3.2406+n*-1.5372+r*-.4986,o=t*-.9689+n*1.8758+r*.0415,a=t*.0557+n*-.204+r*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),[i*255,o*255,a*255]};nn.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const i=116*n-16,o=500*(t-n),a=200*(n-r);return[i,o,a]};nn.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let i,o,a;o=(t+16)/116,i=n/500+o,a=o-r/200;const s=o**3,l=i**3,u=a**3;return o=s>.008856?s:(o-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,a=u>.008856?u:(a-16/116)/7.787,i*=95.047,o*=100,a*=108.883,[i,o,a]};nn.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let i;i=Math.atan2(r,n)*360/2/Math.PI,i<0&&(i+=360);const a=Math.sqrt(n*n+r*r);return[t,a,i]};nn.lch.lab=function(e){const t=e[0],n=e[1],i=e[2]/360*2*Math.PI,o=n*Math.cos(i),a=n*Math.sin(i);return[t,o,a]};nn.rgb.ansi16=function(e,t=null){const[n,r,i]=e;let o=t===null?nn.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),o===0)return 30;let a=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return o===2&&(a+=60),a};nn.hsv.ansi16=function(e){return nn.rgb.ansi16(nn.hsv.rgb(e),e[2])};nn.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};nn.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,i=(t>>1&1)*n*255,o=(t>>2&1)*n*255;return[r,i,o]};nn.ansi256.rgb=function(e){if(e>=232){const o=(e-232)*10+8;return[o,o,o]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[n,r,i]};nn.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};nn.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(s=>s+s).join(""));const r=parseInt(n,16),i=r>>16&255,o=r>>8&255,a=r&255;return[i,o,a]};nn.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(Math.max(t,n),r),o=Math.min(Math.min(t,n),r),a=i-o;let s,l;return a<1?s=o/(1-a):s=0,a<=0?l=0:i===t?l=(n-r)/a%6:i===n?l=2+(r-t)/a:l=4+(t-n)/a,l/=6,l%=1,[l*360,a*100,s*100]};nn.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let i=0;return r<1&&(i=(n-.5*r)/(1-r)),[e[0],r*100,i*100]};nn.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],r*100,i*100]};nn.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const i=[0,0,0],o=t%1*6,a=o%1,s=1-a;let l=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return l=(1-n)*r,[(n*i[0]+l)*255,(n*i[1]+l)*255,(n*i[2]+l)*255]};nn.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let i=0;return r>0&&(i=t/r),[e[0],i*100,r*100]};nn.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let i=0;return r>0&&r<.5?i=t/(2*r):r>=.5&&r<1&&(i=t/(2*(1-r))),[e[0],i*100,r*100]};nn.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};nn.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,i=r-t;let o=0;return i<1&&(o=(r-i)/(1-i)),[e[0],i*100,o*100]};nn.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};nn.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};nn.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};nn.gray.hsl=function(e){return[0,0,e[0]]};nn.gray.hsv=nn.gray.hsl;nn.gray.hwb=function(e){return[0,100,e[0]]};nn.gray.cmyk=function(e){return[0,0,0,e[0]]};nn.gray.lab=function(e){return[e[0],0,0]};nn.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r};nn.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const zT=mJ;function SLe(){const e={},t=Object.keys(zT);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function RLe(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const i=e(n);if(typeof i=="object")for(let o=i.length,a=0;a{wh[e]={},Object.defineProperty(wh[e],"channels",{value:oI[e].channels}),Object.defineProperty(wh[e],"labels",{value:oI[e].labels});const t=CLe(e);Object.keys(t).forEach(r=>{const i=t[r];wh[e][r]=RLe(i),wh[e][r].raw=_Le(i)})});var ILe=wh;const kh=OLe,os=ILe,gJ=["keyword","gray","hex"],aI={};for(const e of Object.keys(os))aI[[...os[e].labels].sort().join("")]=e;const VT={};function Gi(e,t){if(!(this instanceof Gi))return new Gi(e,t);if(t&&t in gJ&&(t=null),t&&!(t in os))throw new Error("Unknown model: "+t);let n,r;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof Gi)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const i=kh.get(e);if(i===null)throw new Error("Unable to parse color from string: "+e);this.model=i.model,r=os[this.model].channels,this.color=i.value.slice(0,r),this.valpha=typeof i.value[r]=="number"?i.value[r]:1}else if(e.length>0){this.model=t||"rgb",r=os[this.model].channels;const i=Array.prototype.slice.call(e,0,r);this.color=sI(i,r),this.valpha=typeof e[r]=="number"?e[r]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;const i=Object.keys(e);"alpha"in e&&(i.splice(i.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);const o=i.sort().join("");if(!(o in aI))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=aI[o];const{labels:a}=os[this.model],s=[];for(n=0;n(e%360+360)%360),saturationl:ni("hsl",1,Ci(100)),lightness:ni("hsl",2,Ci(100)),saturationv:ni("hsv",1,Ci(100)),value:ni("hsv",2,Ci(100)),chroma:ni("hcg",1,Ci(100)),gray:ni("hcg",2,Ci(100)),white:ni("hwb",1,Ci(100)),wblack:ni("hwb",2,Ci(100)),cyan:ni("cmyk",0,Ci(100)),magenta:ni("cmyk",1,Ci(100)),yellow:ni("cmyk",2,Ci(100)),black:ni("cmyk",3,Ci(100)),x:ni("xyz",0,Ci(95.047)),y:ni("xyz",1,Ci(100)),z:ni("xyz",2,Ci(108.833)),l:ni("lab",0,Ci(100)),a:ni("lab",1),b:ni("lab",2),keyword(e){return e!==void 0?new Gi(e):os[this.model].keyword(this.color)},hex(e){return e!==void 0?new Gi(e):kh.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new Gi(e);const t=this.rgb().round().color;let n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),kh.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 Gi.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),r=this.rgb(),i=t===void 0?.5:t,o=2*i-1,a=n.alpha()-r.alpha(),s=((o*a===-1?o:(o+a)/(1+o*a))+1)/2,l=1-s;return Gi.rgb(s*n.red()+l*r.red(),s*n.green()+l*r.green(),s*n.blue()+l*r.blue(),n.alpha()*i+r.alpha()*(1-i))}};for(const e of Object.keys(os)){if(gJ.includes(e))continue;const{channels:t}=os[e];Gi.prototype[e]=function(...n){return this.model===e?new Gi(this):n.length>0?new Gi(n,e):new Gi([...PLe(os[this.model][e].raw(this.color)),this.valpha],e)},Gi[e]=function(...n){let r=n[0];return typeof r=="number"&&(r=sI(n,t)),new Gi(r,e)}}function DLe(e,t){return Number(e.toFixed(t))}function NLe(e){return function(t){return DLe(t,e)}}function ni(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(VT[r]||(VT[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 Ci(e){return function(t){return Math.max(0,Math.min(e,t))}}function PLe(e){return Array.isArray(e)?e:[e]}function sI(e,t){for(let n=0;nu?(N(u),R.current=u):(N(ce),R.current=ce),O&&O({position:R.current})}}},[r,t,b,m,p,c,$,s,u,O,o]),Z=I.useCallback(function(){r||(N(o),R.current=o)},[r,o]);return{position:$,endPosition:U,isDragging:C,separatorProps:HT({},z,{onPointerDown:q,onKeyDown:Y,onDoubleClick:Z}),setPosition:N,splitterProps:HT({},z,{onPointerDown:q,onKeyDown:Y,onDoubleClick:Z})}},jLe=function(e){var t=e.disabled,n=e.initial,r=e.min,i=e.max;return(0,e.children)(ULe({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 zLe=e=>{const t=I.useRef(e);return I.useEffect(()=>{t.current=e}),t},VLe=(e,t=100,n=!1)=>{const r=zLe(e),i=I.useRef(),o=[t,n,r];function a(){i.current&&clearTimeout(i.current),i.current=void 0}I.useEffect(()=>a,o);function s(){i.current=void 0}return I.useCallback(function(){const l=arguments,{current:u}=i;if(u===void 0&&n)return i.current=setTimeout(s,t),r.current.apply(null,l);u&&clearTimeout(u),i.current=setTimeout(()=>{i.current=void 0,r.current.apply(null,l)},t)},o)},HLe=(e,t,n)=>{const r=I.useState(e);return[r[0],VLe(r[1],t,n)]};function zA(e,t,n,r){const i=I.useRef(n),o=I.useRef(r);I.useEffect(()=>{i.current=n,o.current=r}),I.useEffect(()=>{const a=e&&"current"in e?e.current:e;if(!a)return;let s=0;function l(...c){s||i.current.apply(this,c)}a.addEventListener(t,l);const u=o.current;return()=>{s=1,a.removeEventListener(t,l),u&&u()}},[e,t])}const WLe={},$b=typeof window>"u"?null:window,QLe=$b&&typeof $b.visualViewport<"u"?$b.visualViewport:null,dj=()=>[document.documentElement.clientWidth,document.documentElement.clientHeight],YLe=function(e){e===void 0&&(e=WLe);const{wait:t,leading:n,initialWidth:r=0,initialHeight:i=0}=e,[o,a]=HLe(typeof document>"u"?[r,i]:dj,t,n),s=()=>a(dj);return zA($b,"resize",s),zA(QLe,"resize",s),zA($b,"orientationchange",s),o},GLe=e=>YLe(e)[0];function n1(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,o=!1;for(;!o;){r===-1&&(r=n.length,o=!0);const a=n.slice(i,r).trim();(a||!o)&&t.push(a),i=r+1,r=n.indexOf(",",i)}return t}function u3(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const qLe=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ZLe=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,XLe={};function fj(e,t){return((t||XLe).jsx?ZLe:qLe).test(e)}const KLe=/[ \t\n\f\r]/g;function OJ(e){return typeof e=="object"?e.type==="text"?pj(e.value):!1:pj(e)}function pj(e){return e.replace(KLe,"")===""}class pO{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}pO.prototype.property={};pO.prototype.normal={};pO.prototype.space=null;function vJ(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&rMe.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(mj,aMe);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!mj.test(o)){let a=o.replace(iMe,oMe);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=c3}return new i(r,t)}function oMe(e){return"-"+e.toLowerCase()}function aMe(e){return e.charAt(1).toUpperCase()}const sMe={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"},Pp=vJ([TJ,SJ,xJ,CJ,tMe],"html"),Fu=vJ([TJ,SJ,xJ,CJ,nMe],"svg");function r1(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function d3(e){return e.join(" ").trim()}var AJ={},gj=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,lMe=/\n/g,uMe=/^\s*/,cMe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,dMe=/^:\s*/,fMe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,pMe=/^[;\s]*/,hMe=/^\s+|\s+$/g,mMe=` +`,bj="/",yj="*",Df="",gMe="comment",bMe="declaration",yMe=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(m){var b=m.match(lMe);b&&(n+=b.length);var O=m.lastIndexOf(mMe);r=~O?m.length-O:r+m.length}function o(){var m={line:n,column:r};return function(b){return b.position=new a(m),u(),b}}function a(m){this.start=m,this.end={line:n,column:r},this.source=t.source}a.prototype.content=e;function s(m){var b=new Error(t.source+":"+n+":"+r+": "+m);if(b.reason=m,b.filename=t.source,b.line=n,b.column=r,b.source=e,!t.silent)throw b}function l(m){var b=m.exec(e);if(b){var O=b[0];return i(O),e=e.slice(O.length),b}}function u(){l(uMe)}function c(m){var b;for(m=m||[];b=d();)b!==!1&&m.push(b);return m}function d(){var m=o();if(!(bj!=e.charAt(0)||yj!=e.charAt(1))){for(var b=2;Df!=e.charAt(b)&&(yj!=e.charAt(b)||bj!=e.charAt(b+1));)++b;if(b+=2,Df===e.charAt(b-1))return s("End of comment missing");var O=e.slice(2,b-2);return r+=2,i(O),e=e.slice(b),r+=2,m({type:gMe,comment:O})}}function p(){var m=o(),b=l(cMe);if(b){if(d(),!l(dMe))return s("property missing ':'");var O=l(fMe),y=m({type:bMe,property:Oj(b[0].replace(gj,Df)),value:O?Oj(O[0].replace(gj,Df)):Df});return l(pMe),y}}function h(){var m=[];c(m);for(var b;b=p();)b!==!1&&(m.push(b),c(m));return m}return u(),h()};function Oj(e){return e?e.replace(hMe,Df):Df}var OMe=TS&&TS.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(AJ,"__esModule",{value:!0});var vMe=OMe(yMe);function EMe(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,vMe.default)(e),i=typeof t=="function";return r.forEach(function(o){if(o.type==="declaration"){var a=o.property,s=o.value;i?t(a,s,o):s&&(n=n||{},n[a]=s)}}),n}var vj=AJ.default=EMe;const SMe=vj.default||vj,tx=_J("end"),Bu=_J("start");function _J(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 TMe(e){const t=Bu(e),n=tx(e);if(t&&n)return{start:t,end:n}}function Fb(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Ej(e.position):"start"in e||"end"in e?Ej(e):"line"in e||"column"in e?uI(e):""}function uI(e){return Sj(e&&e.line)+":"+Sj(e&&e.column)}function Ej(e){return uI(e&&e.start)+"-"+uI(e&&e.end)}function Sj(e){return e&&typeof e=="number"?e:1}class jo extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},a=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(a=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?o.ruleId=r:(o.source=r.slice(0,l),o.ruleId=r.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){const l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}const s=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=s?s.line:void 0,this.name=Fb(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=a&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}jo.prototype.file="";jo.prototype.name="";jo.prototype.reason="";jo.prototype.message="";jo.prototype.stack="";jo.prototype.column=void 0;jo.prototype.line=void 0;jo.prototype.ancestors=void 0;jo.prototype.cause=void 0;jo.prototype.fatal=void 0;jo.prototype.place=void 0;jo.prototype.ruleId=void 0;jo.prototype.source=void 0;const f3={}.hasOwnProperty,wMe=new Map,kMe=/[A-Z]/g,xMe=/-([a-z])/g,CMe=new Set(["table","tbody","thead","tfoot","tr"]),AMe=new Set(["td","th"]),RJ="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function _Me(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=$Me(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=MMe(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"?Fu:Pp,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=IJ(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function IJ(e,t,n){if(t.type==="element")return RMe(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return IMe(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return NMe(e,t,n);if(t.type==="mdxjsEsm")return DMe(e,t);if(t.type==="root")return PMe(e,t,n);if(t.type==="text")return LMe(e,t)}function RMe(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Fu,e.schema=i),e.ancestors.push(t);const o=NJ(e,t.tagName,!1),a=FMe(e,t);let s=h3(e,t);return CMe.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!OJ(l):!0})),DJ(e,a,o,t),p3(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function IMe(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)}i1(e,t.position)}function DMe(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);i1(e,t.position)}function NMe(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Fu,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:NJ(e,t.name,!0),a=BMe(e,t),s=h3(e,t);return DJ(e,a,o,t),p3(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function PMe(e,t,n){const r={};return p3(r,h3(e,t)),e.create(t,e.Fragment,r,n)}function LMe(e,t){return t.value}function DJ(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function p3(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function MMe(e,t,n){return r;function r(i,o,a,s){const u=Array.isArray(a.children)?n:t;return s?u(o,a,s):u(o,a)}}function $Me(e,t){return n;function n(r,i,o,a){const s=Array.isArray(o.children),l=Bu(r);return t(i,o,a,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function FMe(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&f3.call(t.properties,i)){const o=UMe(e,i,t.properties[i]);if(o){const[a,s]=o;e.tableCellAlignToStyle&&a==="align"&&typeof s=="string"&&AMe.has(t.tagName)?r=s:n[a]=s}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function BMe(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const a=o.expression;a.type;const s=a.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else i1(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,o=e.evaluater.evaluateExpression(s.expression)}else i1(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function h3(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:wMe;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);o0?(fs(e,e.length,0,t),e):t}const kj={}.hasOwnProperty;function LJ(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 Rl(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ZMe=lf(new RegExp("\\p{P}","u")),ta=lf(/[A-Za-z]/),Do=lf(/[\dA-Za-z]/),XMe=lf(/[#-'*+\--9=?A-Z^-~]/);function WT(e){return e!==null&&(e<32||e===127)}const cI=lf(/\d/),KMe=lf(/[\dA-Fa-f]/),$J=lf(/[!-/:-@[-`{-~]/);function gn(e){return e!==null&&e<-2}function yr(e){return e!==null&&(e<0||e===32)}function Un(e){return e===-2||e===-1||e===32}function nx(e){return $J(e)||ZMe(e)}const kp=lf(/\s/);function lf(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Fg(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&o<57344){const s=e.charCodeAt(n+1);o<56320&&s>56319&&s<57344?(a=String.fromCharCode(o,s),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Kn(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(l){return Un(l)?(e.enter(n),s(l)):t(l)}function s(l){return Un(l)&&o++a))return;const E=t.events.length;let $=E,N,R;for(;$--;)if(t.events[$][0]==="exit"&&t.events[$][1].type==="chunkFlow"){if(N){R=t.events[$][1].end;break}N=!0}for(y(r),w=E;wS;){const C=n[k];t.containerState=C[1],C[0].exit.call(t,e)}n.length=S}function v(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function r4e(e,t,n){return Kn(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function QT(e){if(e===null||yr(e)||kp(e))return 1;if(nx(e))return 2}function rx(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d=Object.assign({},e[r][1].end),p=Object.assign({},e[n][1].start);Cj(d,-l),Cj(p,l),a={type:l>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[r][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:p},o={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},a.start),e[n][1].start=Object.assign({},s.end),u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=$s(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=$s(u,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",o,t]]),u=$s(u,rx(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=$s(u,[["exit",o,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=$s(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,fs(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n0&&Un(w)?Kn(e,v,"linePrefix",o+1)(w):v(w)}function v(w){return w===null||gn(w)?e.check(Aj,b,k)(w):(e.enter("codeFlowValue"),S(w))}function S(w){return w===null||gn(w)?(e.exit("codeFlowValue"),v(w)):(e.consume(w),S)}function k(w){return e.exit("codeFenced"),t(w)}function C(w,E,$){let N=0;return R;function R(W){return w.enter("lineEnding"),w.consume(W),w.exit("lineEnding"),B}function B(W){return w.enter("codeFencedFence"),Un(W)?Kn(w,U,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):U(W)}function U(W){return W===s?(w.enter("codeFencedFenceSequence"),V(W)):$(W)}function V(W){return W===s?(N++,w.consume(W),V):N>=a?(w.exit("codeFencedFenceSequence"),Un(W)?Kn(w,z,"whitespace")(W):z(W)):$(W)}function z(W){return W===null||gn(W)?(w.exit("codeFencedFence"),E(W)):$(W)}}}function m4e(e,t,n){const r=this;return i;function i(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}const WA={name:"codeIndented",tokenize:b4e},g4e={tokenize:y4e,partial:!0};function b4e(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),Kn(e,o,"linePrefix",5)(u)}function o(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?a(u):n(u)}function a(u){return u===null?l(u):gn(u)?e.attempt(g4e,a,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||gn(u)?(e.exit("codeFlowValue"),a(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function y4e(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):gn(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):Kn(e,o,"linePrefix",5)(a)}function o(a){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):gn(a)?i(a):n(a)}}const O4e={name:"codeText",tokenize:S4e,resolve:v4e,previous:E4e};function v4e(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function zJ(e,t,n,r,i,o,a,s,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return d;function d(y){return y===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(y),e.exit(o),p):y===null||y===32||y===41||WT(y)?n(y):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),b(y))}function p(y){return y===62?(e.enter(o),e.consume(y),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===62?(e.exit("chunkString"),e.exit(s),p(y)):y===null||y===60||gn(y)?n(y):(e.consume(y),y===92?m:h)}function m(y){return y===60||y===62||y===92?(e.consume(y),h):h(y)}function b(y){return!c&&(y===null||y===41||yr(y))?(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(y)):c999||h===null||h===91||h===93&&!l||h===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):gn(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===null||h===91||h===93||gn(h)||s++>999?(e.exit("chunkString"),c(h)):(e.consume(h),l||(l=!Un(h)),h===92?p:d)}function p(h){return h===91||h===92||h===93?(e.consume(h),s++,d):d(h)}}function HJ(e,t,n,r,i,o){let a;return s;function s(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),a=p===40?41:p,l):n(p)}function l(p){return p===a?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(o),u(p))}function u(p){return p===a?(e.exit(o),l(a)):p===null?n(p):gn(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Kn(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===a||p===null||gn(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?d:c)}function d(p){return p===a||p===92?(e.consume(p),c):c(p)}}function Bb(e,t){let n;return r;function r(i){return gn(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Un(i)?Kn(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const _4e={name:"definition",tokenize:I4e},R4e={tokenize:D4e,partial:!0};function I4e(e,t,n){const r=this;let i;return o;function o(h){return e.enter("definition"),a(h)}function a(h){return VJ.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return i=Rl(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):n(h)}function l(h){return yr(h)?Bb(e,u)(h):u(h)}function u(h){return zJ(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(R4e,d,d)(h)}function d(h){return Un(h)?Kn(e,p,"whitespace")(h):p(h)}function p(h){return h===null||gn(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function D4e(e,t,n){return r;function r(s){return yr(s)?Bb(e,i)(s):n(s)}function i(s){return HJ(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function o(s){return Un(s)?Kn(e,a,"whitespace")(s):a(s)}function a(s){return s===null||gn(s)?t(s):n(s)}}const N4e={name:"hardBreakEscape",tokenize:P4e};function P4e(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return gn(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const L4e={name:"headingAtx",tokenize:$4e,resolve:M4e};function M4e(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},fs(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function $4e(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),o(c)}function o(c){return e.enter("atxHeadingSequence"),a(c)}function a(c){return c===35&&r++<6?(e.consume(c),a):c===null||yr(c)?(e.exit("atxHeadingSequence"),s(c)):n(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||gn(c)?(e.exit("atxHeading"),t(c)):Un(c)?Kn(e,s,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),s(c))}function u(c){return c===null||c===35||yr(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const F4e=["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"],Rj=["pre","script","style","textarea"],B4e={name:"htmlFlow",tokenize:V4e,resolveTo:z4e,concrete:!0},U4e={tokenize:W4e,partial:!0},j4e={tokenize:H4e,partial:!0};function z4e(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 V4e(e,t,n){const r=this;let i,o,a,s,l;return u;function u(G){return c(G)}function c(G){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(G),d}function d(G){return G===33?(e.consume(G),p):G===47?(e.consume(G),o=!0,b):G===63?(e.consume(G),i=3,r.interrupt?t:j):ta(G)?(e.consume(G),a=String.fromCharCode(G),O):n(G)}function p(G){return G===45?(e.consume(G),i=2,h):G===91?(e.consume(G),i=5,s=0,m):ta(G)?(e.consume(G),i=4,r.interrupt?t:j):n(G)}function h(G){return G===45?(e.consume(G),r.interrupt?t:j):n(G)}function m(G){const ce="CDATA[";return G===ce.charCodeAt(s++)?(e.consume(G),s===ce.length?r.interrupt?t:U:m):n(G)}function b(G){return ta(G)?(e.consume(G),a=String.fromCharCode(G),O):n(G)}function O(G){if(G===null||G===47||G===62||yr(G)){const ce=G===47,ge=a.toLowerCase();return!ce&&!o&&Rj.includes(ge)?(i=1,r.interrupt?t(G):U(G)):F4e.includes(a.toLowerCase())?(i=6,ce?(e.consume(G),y):r.interrupt?t(G):U(G)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(G):o?v(G):S(G))}return G===45||Do(G)?(e.consume(G),a+=String.fromCharCode(G),O):n(G)}function y(G){return G===62?(e.consume(G),r.interrupt?t:U):n(G)}function v(G){return Un(G)?(e.consume(G),v):R(G)}function S(G){return G===47?(e.consume(G),R):G===58||G===95||ta(G)?(e.consume(G),k):Un(G)?(e.consume(G),S):R(G)}function k(G){return G===45||G===46||G===58||G===95||Do(G)?(e.consume(G),k):C(G)}function C(G){return G===61?(e.consume(G),w):Un(G)?(e.consume(G),C):S(G)}function w(G){return G===null||G===60||G===61||G===62||G===96?n(G):G===34||G===39?(e.consume(G),l=G,E):Un(G)?(e.consume(G),w):$(G)}function E(G){return G===l?(e.consume(G),l=null,N):G===null||gn(G)?n(G):(e.consume(G),E)}function $(G){return G===null||G===34||G===39||G===47||G===60||G===61||G===62||G===96||yr(G)?C(G):(e.consume(G),$)}function N(G){return G===47||G===62||Un(G)?S(G):n(G)}function R(G){return G===62?(e.consume(G),B):n(G)}function B(G){return G===null||gn(G)?U(G):Un(G)?(e.consume(G),B):n(G)}function U(G){return G===45&&i===2?(e.consume(G),X):G===60&&i===1?(e.consume(G),q):G===62&&i===4?(e.consume(G),se):G===63&&i===3?(e.consume(G),j):G===93&&i===5?(e.consume(G),Z):gn(G)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(U4e,ve,V)(G)):G===null||gn(G)?(e.exit("htmlFlowData"),V(G)):(e.consume(G),U)}function V(G){return e.check(j4e,z,ve)(G)}function z(G){return e.enter("lineEnding"),e.consume(G),e.exit("lineEnding"),W}function W(G){return G===null||gn(G)?V(G):(e.enter("htmlFlowData"),U(G))}function X(G){return G===45?(e.consume(G),j):U(G)}function q(G){return G===47?(e.consume(G),a="",Y):U(G)}function Y(G){if(G===62){const ce=a.toLowerCase();return Rj.includes(ce)?(e.consume(G),se):U(G)}return ta(G)&&a.length<8?(e.consume(G),a+=String.fromCharCode(G),Y):U(G)}function Z(G){return G===93?(e.consume(G),j):U(G)}function j(G){return G===62?(e.consume(G),se):G===45&&i===2?(e.consume(G),j):U(G)}function se(G){return G===null||gn(G)?(e.exit("htmlFlowData"),ve(G)):(e.consume(G),se)}function ve(G){return e.exit("htmlFlow"),t(G)}}function H4e(e,t,n){const r=this;return i;function i(a){return gn(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):n(a)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}function W4e(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(hO,t,n)}}const Q4e={name:"htmlText",tokenize:Y4e};function Y4e(e,t,n){const r=this;let i,o,a;return s;function s(j){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(j),l}function l(j){return j===33?(e.consume(j),u):j===47?(e.consume(j),C):j===63?(e.consume(j),S):ta(j)?(e.consume(j),$):n(j)}function u(j){return j===45?(e.consume(j),c):j===91?(e.consume(j),o=0,m):ta(j)?(e.consume(j),v):n(j)}function c(j){return j===45?(e.consume(j),h):n(j)}function d(j){return j===null?n(j):j===45?(e.consume(j),p):gn(j)?(a=d,q(j)):(e.consume(j),d)}function p(j){return j===45?(e.consume(j),h):d(j)}function h(j){return j===62?X(j):j===45?p(j):d(j)}function m(j){const se="CDATA[";return j===se.charCodeAt(o++)?(e.consume(j),o===se.length?b:m):n(j)}function b(j){return j===null?n(j):j===93?(e.consume(j),O):gn(j)?(a=b,q(j)):(e.consume(j),b)}function O(j){return j===93?(e.consume(j),y):b(j)}function y(j){return j===62?X(j):j===93?(e.consume(j),y):b(j)}function v(j){return j===null||j===62?X(j):gn(j)?(a=v,q(j)):(e.consume(j),v)}function S(j){return j===null?n(j):j===63?(e.consume(j),k):gn(j)?(a=S,q(j)):(e.consume(j),S)}function k(j){return j===62?X(j):S(j)}function C(j){return ta(j)?(e.consume(j),w):n(j)}function w(j){return j===45||Do(j)?(e.consume(j),w):E(j)}function E(j){return gn(j)?(a=E,q(j)):Un(j)?(e.consume(j),E):X(j)}function $(j){return j===45||Do(j)?(e.consume(j),$):j===47||j===62||yr(j)?N(j):n(j)}function N(j){return j===47?(e.consume(j),X):j===58||j===95||ta(j)?(e.consume(j),R):gn(j)?(a=N,q(j)):Un(j)?(e.consume(j),N):X(j)}function R(j){return j===45||j===46||j===58||j===95||Do(j)?(e.consume(j),R):B(j)}function B(j){return j===61?(e.consume(j),U):gn(j)?(a=B,q(j)):Un(j)?(e.consume(j),B):N(j)}function U(j){return j===null||j===60||j===61||j===62||j===96?n(j):j===34||j===39?(e.consume(j),i=j,V):gn(j)?(a=U,q(j)):Un(j)?(e.consume(j),U):(e.consume(j),z)}function V(j){return j===i?(e.consume(j),i=void 0,W):j===null?n(j):gn(j)?(a=V,q(j)):(e.consume(j),V)}function z(j){return j===null||j===34||j===39||j===60||j===61||j===96?n(j):j===47||j===62||yr(j)?N(j):(e.consume(j),z)}function W(j){return j===47||j===62||yr(j)?N(j):n(j)}function X(j){return j===62?(e.consume(j),e.exit("htmlTextData"),e.exit("htmlText"),t):n(j)}function q(j){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),Y}function Y(j){return Un(j)?Kn(e,Z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):Z(j)}function Z(j){return e.enter("htmlTextData"),a(j)}}const g3={name:"labelEnd",tokenize:J4e,resolveTo:K4e,resolveAll:X4e},G4e={tokenize:e5e},q4e={tokenize:t5e},Z4e={tokenize:n5e};function X4e(e){let t=-1;for(;++t=3&&(u===null||gn(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),Un(u)?Kn(e,s,"whitespace")(u):s(u))}}const pa={name:"list",tokenize:d5e,continuation:{tokenize:f5e},exit:h5e},u5e={tokenize:m5e,partial:!0},c5e={tokenize:p5e,partial:!0};function d5e(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return s;function s(h){const m=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:cI(h)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(nS,n,u)(h):u(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return n(h)}function l(h){return cI(h)&&++a<10?(e.consume(h),l):(!r.interrupt||a<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):n(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(hO,r.interrupt?n:c,e.attempt(u5e,p,d))}function c(h){return r.containerState.initialBlankLine=!0,o++,p(h)}function d(h){return Un(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):n(h)}function p(h){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function f5e(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(hO,i,o);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Kn(e,t,"listItemIndent",r.containerState.size+1)(s)}function o(s){return r.containerState.furtherBlankLines||!Un(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(c5e,t,a)(s))}function a(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Kn(e,e.attempt(pa,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function p5e(e,t,n){const r=this;return Kn(e,i,"listItemIndent",r.containerState.size+1);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(o):n(o)}}function h5e(e){e.exit(this.containerState.type)}function m5e(e,t,n){const r=this;return Kn(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const a=r.events[r.events.length-1];return!Un(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const Ij={name:"setextUnderline",tokenize:b5e,resolveTo:g5e};function g5e(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const a={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",a,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[o][1].end)):e[r][1]=a,e.push(["exit",a,t]),e}function b5e(e,t,n){const r=this;let i;return o;function o(u){let c=r.events.length,d;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){d=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=u,a(u)):n(u)}function a(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),Un(u)?Kn(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||gn(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const y5e={tokenize:O5e};function O5e(e){const t=this,n=e.attempt(hO,r,e.attempt(this.parser.constructs.flowInitial,i,Kn(e,e.attempt(this.parser.constructs.flow,i,e.attempt(w4e,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const v5e={resolveAll:QJ()},E5e=WJ("string"),S5e=WJ("text");function WJ(e){return{tokenize:t,resolveAll:QJ(e==="text"?T5e:void 0)};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,a,s);return a;function a(c){return u(c)?o(c):s(c)}function s(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),l}function l(c){return u(c)?(n.exit("data"),o(c)):(n.consume(c),l)}function u(c){if(c===null)return!0;const d=i[c];let p=-1;if(d)for(;++p-1){const s=a[0];typeof s=="string"?a[0]=s.slice(r):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}function x5e(e,t){let n=-1;const r=[];let i;for(;++n0){const nt=ce.tokenStack[ce.tokenStack.length-1];(nt[1]||pj).call(ce,void 0,nt[0])}for(de.position={start:Bc(ie.length>0?ie[0][1].start:{line:1,column:1,offset:0}),end:Bc(ie.length>0?ie[ie.length-2][1].end:{line:1,column:1,offset:0})},Se=-1;++Se1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function h5e(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 m5e(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function EJ(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push({type:"text",value:r}),i}function g5e(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return EJ(e,t);const i={src:Cg(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function b5e(e,t){const n={src:Cg(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 y5e(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 O5e(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return EJ(e,t);const i={href:Cg(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function v5e(e,t){const n={href:Cg(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 E5e(e,t,n){const r=e.all(t),i=n?S5e(n):SJ(t),o={},a=[];if(typeof t.checked=="boolean"){const c=r[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s0){const rt=de.tokenStack[de.tokenStack.length-1];(rt[1]||Nj).call(de,void 0,rt[0])}for(fe.position={start:Hc(ie.length>0?ie[0][1].start:{line:1,column:1,offset:0}),end:Hc(ie.length>0?ie[ie.length-2][1].end:{line:1,column:1,offset:0})},Te=-1;++Te1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function J5e(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 e$e(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function qJ(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push({type:"text",value:r}),i}function t$e(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return qJ(e,t);const i={src:Fg(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function n$e(e,t){const n={src:Fg(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 r$e(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function i$e(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return qJ(e,t);const i={href:Fg(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function o$e(e,t){const n={href:Fg(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 a$e(e,t,n){const r=e.all(t),i=n?s$e(n):ZJ(t),o={},a=[];if(typeof t.checked=="boolean"){const c=r[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s1}function T5e(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=Mu(t.children[1]),l=Fk(t.children[t.children.length-1]);s&&l&&(a.position={start:s,end:l}),i.push(a)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function A5e(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,s=a?a.length:t.children.length;let l=-1;const u=[];for(;++l0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(gj(t.slice(i),i>0,!1)),o.join("")}function gj(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===hj||o===mj;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===hj||o===mj;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function I5e(e,t){const n={type:"text",value:R5e(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function N5e(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const D5e={blockquote:l5e,break:u5e,code:c5e,delete:d5e,emphasis:f5e,footnoteReference:p5e,heading:h5e,html:m5e,imageReference:g5e,image:b5e,inlineCode:y5e,linkReference:O5e,link:v5e,listItem:E5e,list:T5e,paragraph:w5e,root:k5e,strong:x5e,table:C5e,tableCell:_5e,tableRow:A5e,text:I5e,thematicBreak:N5e,toml:Qv,yaml:Qv,definition:Qv,footnoteDefinition:Qv};function Qv(){}const TJ=-1,jk=0,IT=1,NT=2,XP=3,KP=4,JP=5,e3=6,wJ=7,kJ=8,bj=typeof self=="object"?self:globalThis,P5e=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,a]=t[i];switch(o){case jk:case TJ:return n(a,i);case IT:{const s=n([],i);for(const l of a)s.push(r(l));return s}case NT:{const s=n({},i);for(const[l,u]of a)s[r(l)]=r(u);return s}case XP:return n(new Date(a),i);case KP:{const{source:s,flags:l}=a;return n(new RegExp(s,l),i)}case JP:{const s=n(new Map,i);for(const[l,u]of a)s.set(r(l),r(u));return s}case e3:{const s=n(new Set,i);for(const l of a)s.add(r(l));return s}case wJ:{const{name:s,message:l}=a;return n(new bj[s](l),i)}case kJ:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i)}return n(new bj[o](a),i)};return r},yj=e=>P5e(new Map,e)(0),eh="",{toString:L5e}={},{keys:M5e}=Object,k0=e=>{const t=typeof e;if(t!=="object"||!e)return[jk,t];const n=L5e.call(e).slice(8,-1);switch(n){case"Array":return[IT,eh];case"Object":return[NT,eh];case"Date":return[XP,eh];case"RegExp":return[KP,eh];case"Map":return[JP,eh];case"Set":return[e3,eh]}return n.includes("Array")?[IT,n]:n.includes("Error")?[wJ,n]:[NT,n]},Yv=([e,t])=>e===jk&&(t==="function"||t==="symbol"),$5e=(e,t,n,r)=>{const i=(a,s)=>{const l=r.push(a)-1;return n.set(s,l),l},o=a=>{if(n.has(a))return n.get(a);let[s,l]=k0(a);switch(s){case jk:{let c=a;switch(l){case"bigint":s=kJ,c=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([TJ],a)}return i([s,c],a)}case IT:{if(l)return i([l,[...a]],a);const c=[],d=i([s,c],a);for(const p of a)c.push(o(p));return d}case NT:{if(l)switch(l){case"BigInt":return i([l,a.toString()],a);case"Boolean":case"Number":case"String":return i([l,a.valueOf()],a)}if(t&&"toJSON"in a)return o(a.toJSON());const c=[],d=i([s,c],a);for(const p of M5e(a))(e||!Yv(k0(a[p])))&&c.push([o(p),o(a[p])]);return d}case XP:return i([s,a.toISOString()],a);case KP:{const{source:c,flags:d}=a;return i([s,{source:c,flags:d}],a)}case JP:{const c=[],d=i([s,c],a);for(const[p,h]of a)(e||!(Yv(k0(p))||Yv(k0(h))))&&c.push([o(p),o(h)]);return d}case e3:{const c=[],d=i([s,c],a);for(const p of a)(e||!Yv(k0(p)))&&c.push(o(p));return d}}const{message:u}=a;return i([s,{name:l,message:u}],a)};return o},Oj=(e,{json:t,lossy:n}={})=>{const r=[];return $5e(!(t||n),!!t,new Map,r)(e),r},mp=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?yj(Oj(e,t)):structuredClone(e):(e,t)=>yj(Oj(e,t));function F5e(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 B5e(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function U5e(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||F5e,r=e.options.footnoteBackLabel||B5e,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l0&&m.push({type:"text",value:" "});let v=typeof n=="string"?n:n(l,h);typeof v=="string"&&(v={type:"text",value:v}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,h),className:["data-footnote-backref"]},children:Array.isArray(v)?v:[v]})}const O=c[c.length-1];if(O&&O.type==="element"&&O.tagName==="p"){const v=O.children[O.children.length-1];v&&v.type==="text"?v.value+=" ":O.children.push({type:"text",value:" "}),O.children.push(...m)}else c.push(...m);const b={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(c,!0)};e.patch(u,b),s.push(b)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...mp(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` +`});const u={type:"element",tagName:"li",properties:o,children:a};return e.patch(t,u),e.applyData(t,u)}function s$e(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r1}function l$e(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=Bu(t.children[1]),l=tx(t.children[t.children.length-1]);s&&l&&(a.position={start:s,end:l}),i.push(a)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function p$e(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,s=a?a.length:t.children.length;let l=-1;const u=[];for(;++l0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(Mj(t.slice(i),i>0,!1)),o.join("")}function Mj(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===Pj||o===Lj;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===Pj||o===Lj;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function g$e(e,t){const n={type:"text",value:m$e(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function b$e(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const y$e={blockquote:Y5e,break:G5e,code:q5e,delete:Z5e,emphasis:X5e,footnoteReference:K5e,heading:J5e,html:e$e,imageReference:t$e,image:n$e,inlineCode:r$e,linkReference:i$e,link:o$e,listItem:a$e,list:l$e,paragraph:u$e,root:c$e,strong:d$e,table:f$e,tableCell:h$e,tableRow:p$e,text:g$e,thematicBreak:b$e,toml:aE,yaml:aE,definition:aE,footnoteDefinition:aE};function aE(){}const XJ=-1,ix=0,YT=1,GT=2,b3=3,y3=4,O3=5,v3=6,KJ=7,JJ=8,$j=typeof self=="object"?self:globalThis,O$e=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,a]=t[i];switch(o){case ix:case XJ:return n(a,i);case YT:{const s=n([],i);for(const l of a)s.push(r(l));return s}case GT:{const s=n({},i);for(const[l,u]of a)s[r(l)]=r(u);return s}case b3:return n(new Date(a),i);case y3:{const{source:s,flags:l}=a;return n(new RegExp(s,l),i)}case O3:{const s=n(new Map,i);for(const[l,u]of a)s.set(r(l),r(u));return s}case v3:{const s=n(new Set,i);for(const l of a)s.add(r(l));return s}case KJ:{const{name:s,message:l}=a;return n(new $j[s](l),i)}case JJ:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i)}return n(new $j[o](a),i)};return r},Fj=e=>O$e(new Map,e)(0),dh="",{toString:v$e}={},{keys:E$e}=Object,M0=e=>{const t=typeof e;if(t!=="object"||!e)return[ix,t];const n=v$e.call(e).slice(8,-1);switch(n){case"Array":return[YT,dh];case"Object":return[GT,dh];case"Date":return[b3,dh];case"RegExp":return[y3,dh];case"Map":return[O3,dh];case"Set":return[v3,dh]}return n.includes("Array")?[YT,n]:n.includes("Error")?[KJ,n]:[GT,n]},sE=([e,t])=>e===ix&&(t==="function"||t==="symbol"),S$e=(e,t,n,r)=>{const i=(a,s)=>{const l=r.push(a)-1;return n.set(s,l),l},o=a=>{if(n.has(a))return n.get(a);let[s,l]=M0(a);switch(s){case ix:{let c=a;switch(l){case"bigint":s=JJ,c=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([XJ],a)}return i([s,c],a)}case YT:{if(l)return i([l,[...a]],a);const c=[],d=i([s,c],a);for(const p of a)c.push(o(p));return d}case GT:{if(l)switch(l){case"BigInt":return i([l,a.toString()],a);case"Boolean":case"Number":case"String":return i([l,a.valueOf()],a)}if(t&&"toJSON"in a)return o(a.toJSON());const c=[],d=i([s,c],a);for(const p of E$e(a))(e||!sE(M0(a[p])))&&c.push([o(p),o(a[p])]);return d}case b3:return i([s,a.toISOString()],a);case y3:{const{source:c,flags:d}=a;return i([s,{source:c,flags:d}],a)}case O3:{const c=[],d=i([s,c],a);for(const[p,h]of a)(e||!(sE(M0(p))||sE(M0(h))))&&c.push([o(p),o(h)]);return d}case v3:{const c=[],d=i([s,c],a);for(const p of a)(e||!sE(M0(p)))&&c.push(o(p));return d}}const{message:u}=a;return i([s,{name:l,message:u}],a)};return o},Bj=(e,{json:t,lossy:n}={})=>{const r=[];return S$e(!(t||n),!!t,new Map,r)(e),r},xp=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Fj(Bj(e,t)):structuredClone(e):(e,t)=>Fj(Bj(e,t));function T$e(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function w$e(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function k$e(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||T$e,r=e.options.footnoteBackLabel||w$e,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l0&&m.push({type:"text",value:" "});let v=typeof n=="string"?n:n(l,h);typeof v=="string"&&(v={type:"text",value:v}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,h),className:["data-footnote-backref"]},children:Array.isArray(v)?v:[v]})}const O=c[c.length-1];if(O&&O.type==="element"&&O.tagName==="p"){const v=O.children[O.children.length-1];v&&v.type==="text"?v.value+=" ":O.children.push({type:"text",value:" "}),O.children.push(...m)}else c.push(...m);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(c,!0)};e.patch(u,y),s.push(y)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...xp(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` `},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:` -`}]}}const tO=function(e){if(e==null)return H5e;if(typeof e=="function")return zk(e);if(typeof e=="object")return Array.isArray(e)?j5e(e):z5e(e);if(typeof e=="string")return V5e(e);throw new Error("Expected function, string, or object as test")};function j5e(e){const t=[];let n=-1;for(;++n":""))+")"})}return p;function p(){let h=xJ,m,y,O;if((!t||o(l,u,c[c.length-1]||void 0))&&(h=Y5e(n(l,c)),h[0]===DT))return h;if("children"in l&&l.children){const b=l;if(b.children&&h[0]!==_b)for(y=(r?b.children.length:-1)+a,O=c.concat(b);y>-1&&y":""))+")"})}return p;function p(){let h=eee,m,b,O;if((!t||o(l,u,c[c.length-1]||void 0))&&(h=D$e(n(l,c)),h[0]===qT))return h;if("children"in l&&l.children){const y=l;if(y.children&&h[0]!==Ub)for(b=(r?y.children.length:-1)+a,O=c.concat(y);b>-1&&b0&&n.push({type:"text",value:` -`}),n}function vj(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Ej(e,t){const n=q5e(e,t),r=n.one(e,void 0),i=U5e(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:` -`},i),o}function e$e(e,t){return e&&"run"in e?async function(n,r){const i=Ej(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Ej(n,{file:r,...t||e})}}function Sj(e){if(e)throw e}var jE=Object.prototype.hasOwnProperty,AJ=Object.prototype.toString,Tj=Object.defineProperty,wj=Object.getOwnPropertyDescriptor,kj=function(t){return typeof Array.isArray=="function"?Array.isArray(t):AJ.call(t)==="[object Array]"},xj=function(t){if(!t||AJ.call(t)!=="[object Object]")return!1;var n=jE.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&jE.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||jE.call(t,i)},Cj=function(t,n){Tj&&n.name==="__proto__"?Tj(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Aj=function(t,n){if(n==="__proto__")if(jE.call(t,n)){if(wj)return wj(t,n).value}else return;return t[n]},t$e=function e(){var t,n,r,i,o,a,s=arguments[0],l=1,u=arguments.length,c=!1;for(typeof s=="boolean"&&(c=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});la.length;let l;s&&a.push(i);try{l=e.apply(this,a)}catch(u){const c=u;if(s&&n)throw c;return i(c)}s||(l instanceof Promise?l.then(o,i):l instanceof Error?i(l):o(l))}function i(a,...s){n||(n=!0,t(a,...s))}function o(a){i(null,a)}}const tu={basename:i$e,dirname:o$e,extname:a$e,join:s$e,sep:"/"};function i$e(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');nO(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let a=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else a<0&&(o=!0,a=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function o$e(e){if(nO(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 a$e(e){nO(e);let t=e.length,n=-1,r=0,i=-1,o=0,a;for(;t--;){const s=e.codePointAt(t);if(s===47){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),s===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function s$e(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function u$e(e,t){let n="",r=0,i=-1,o=0,a=-1,s,l;for(;++a<=e.length;){if(a2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}}else if(n.length>0){n="",r=0,i=a,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,o=0}else s===46&&o>-1?o++:o=-1}return n}function nO(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const c$e={cwd:d$e};function d$e(){return"/"}function YR(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function f$e(e){if(typeof e=="string")e=new URL(e);else if(!YR(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 p$e(e)}function p$e(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[h,...m]=c;const y=r[p][1];QR(y)&&QR(h)&&(h=RA(!0,y,h)),r[p]=[u,h,...m]}}}}const b$e=new t3().freeze();function PA(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function LA(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function MA(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 Rj(e){if(!QR(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ij(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Gv(e){return y$e(e)?e:new _J(e)}function y$e(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function O$e(e){return typeof e=="string"||v$e(e)}function v$e(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const E$e="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Nj=[],Dj={allowDangerousHtml:!0},S$e=/^(https?|ircs?|mailto|xmpp)$/i,T$e=[{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 w$e(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,o=e.components,a=e.disallowedElements,s=e.rehypePlugins||Nj,l=e.remarkPlugins||Nj,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Dj}:Dj,c=e.skipHtml,d=e.unwrapDisallowed,p=e.urlTransform||k$e,h=b$e().use(s5e).use(l).use(e$e,u).use(s),m=new _J;typeof r=="string"&&(m.value=r);for(const v of T$e)Object.hasOwn(e,v.from)&&(""+v.from+(v.to?"use `"+v.to+"` instead":"remove it")+E$e+v.id,void 0);const y=h.parse(m);let O=h.runSync(y,m);return i&&(O={type:"element",tagName:"div",properties:{className:i},children:O.type==="root"?O.children:[O]}),_a(O,b),HLe(O,{Fragment:M.Fragment,components:o,ignoreInvalidStyle:!0,jsx:M.jsx,jsxs:M.jsxs,passKeys:!0,passNode:!0});function b(v,S,k){if(v.type==="raw"&&k&&typeof S=="number")return c?k.children.splice(S,1):k.children[S]={type:"text",value:v.value},S;if(v.type==="element"){let C;for(C in CA)if(Object.hasOwn(CA,C)&&Object.hasOwn(v.properties,C)){const w=v.properties[C],E=CA[C];(E===null||E.includes(v.tagName))&&(v.properties[C]=p(String(w||""),C,v))}}if(v.type==="element"){let C=t?!t.includes(v.tagName):a?a.includes(v.tagName):!1;if(!C&&n&&typeof S=="number"&&(C=!n(v,S,k)),C&&k&&typeof S=="number")return d&&v.children?k.children.splice(S,1,...v.children):k.children.splice(S,1),S}}}function k$e(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||S$e.test(e.slice(0,t))?e:""}function Pj(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 x$e(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function C$e(e,t,n){const i=tO((n||{}).ignore||[]),o=A$e(t);let a=-1;for(;++a0?{type:"text",value:w}:void 0),w===!1?p.lastIndex=k+1:(m!==k&&v.push({type:"text",value:u.value.slice(m,k)}),Array.isArray(w)?v.push(...w):w&&v.push(w),m=k+S[0].length,b=!0),!p.global)break;S=p.exec(u.value)}return b?(m?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Pj(e,"(");let o=Pj(e,")");for(;r!==-1&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function RJ(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||hp(n)||Bk(n))&&(!t||n!==47)}IJ.peek=J$e;function V$e(){return{enter:{gfmFootnoteDefinition:W$e,gfmFootnoteDefinitionLabelString:Q$e,gfmFootnoteCall:q$e,gfmFootnoteCallString:Z$e},exit:{gfmFootnoteDefinition:G$e,gfmFootnoteDefinitionLabelString:Y$e,gfmFootnoteCall:K$e,gfmFootnoteCallString:X$e}}}function H$e(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:eFe,footnoteReference:IJ}}}function W$e(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Q$e(){this.buffer()}function Y$e(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=Cl(this.sliceSerialize(e)).toLowerCase()}function G$e(e){this.exit(e)}function q$e(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Z$e(){this.buffer()}function X$e(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=Cl(this.sliceSerialize(e)).toLowerCase()}function K$e(e){this.exit(e)}function IJ(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{...i.current(),before:o,after:"]"})),s(),a(),o+=i.move("]"),o}function J$e(){return"["}function eFe(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const a=n.enter("footnoteDefinition"),s=n.enter("label");return o+=i.move(n.safe(n.associationId(e),{...i.current(),before:o,after:"]"})),s(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(n.indentLines(n.containerFlow(e,i.current()),tFe)),a(),o}function tFe(e,t,n){return t===0?e:(n?"":" ")+e}const nFe=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];NJ.peek=sFe;function rFe(){return{canContainEols:["delete"],enter:{strikethrough:oFe},exit:{strikethrough:aFe}}}function iFe(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:nFe}],handlers:{delete:NJ}}}function oFe(e){this.enter({type:"delete",children:[]},e)}function aFe(e){this.exit(e)}function NJ(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let a=i.move("~~");return a+=n.containerPhrasing(e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function sFe(){return"~"}function lFe(e,t={}){const n=(t.align||[]).concat(),r=t.stringLength||cFe,i=[],o=[],a=[],s=[];let l=0,u=-1;for(;++ul&&(l=e[u].length);++Os[O])&&(s[O]=v)}m.push(b)}o[u]=m,a[u]=y}let c=-1;if(typeof n=="object"&&"length"in n)for(;++cs[c]&&(s[c]=b),p[c]=b),d[c]=v}o.splice(1,0,d),a.splice(1,0,p),u=-1;const h=[];for(;++u "),o.shift(2);const a=n.indentLines(n.containerFlow(e,o.current()),fFe);return i(),a}function fFe(e,t,n){return">"+(n?"":" ")+e}function pFe(e,t){return $j(e,t.inConstruct,!0)&&!$j(e,t.notInConstruct,!1)}function $j(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++ra&&(a=o):o=1,i=r+t.length,r=n.indexOf(t,i);return a}function mFe(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 gFe(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 bFe(e,t,n,r){const i=gFe(n),o=e.value||"",a=i==="`"?"GraveAccent":"Tilde";if(mFe(e,n)){const d=n.enter("codeIndented"),p=n.indentLines(o,yFe);return d(),p}const s=n.createTracker(r),l=i.repeat(Math.max(hFe(o,i)+1,3)),u=n.enter("codeFenced");let c=s.move(l);if(e.lang){const d=n.enter(`codeFencedLang${a}`);c+=s.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...s.current()})),d()}if(e.lang&&e.meta){const d=n.enter(`codeFencedMeta${a}`);c+=s.move(" "),c+=s.move(n.safe(e.meta,{before:c,after:` +`}),n}function Uj(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function jj(e,t){const n=P$e(e,t),r=n.one(e,void 0),i=k$e(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:` +`},i),o}function B$e(e,t){return e&&"run"in e?async function(n,r){const i=jj(n,{file:r,...t});await e.run(i,r)}:function(n,r){return jj(n,{file:r,...t||e})}}function zj(e){if(e)throw e}var rS=Object.prototype.hasOwnProperty,nee=Object.prototype.toString,Vj=Object.defineProperty,Hj=Object.getOwnPropertyDescriptor,Wj=function(t){return typeof Array.isArray=="function"?Array.isArray(t):nee.call(t)==="[object Array]"},Qj=function(t){if(!t||nee.call(t)!=="[object Object]")return!1;var n=rS.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&rS.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||rS.call(t,i)},Yj=function(t,n){Vj&&n.name==="__proto__"?Vj(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Gj=function(t,n){if(n==="__proto__")if(rS.call(t,n)){if(Hj)return Hj(t,n).value}else return;return t[n]},U$e=function e(){var t,n,r,i,o,a,s=arguments[0],l=1,u=arguments.length,c=!1;for(typeof s=="boolean"&&(c=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});la.length;let l;s&&a.push(i);try{l=e.apply(this,a)}catch(u){const c=u;if(s&&n)throw c;return i(c)}s||(l instanceof Promise?l.then(o,i):l instanceof Error?i(l):o(l))}function i(a,...s){n||(n=!0,t(a,...s))}function o(a){i(null,a)}}const iu={basename:V$e,dirname:H$e,extname:W$e,join:Q$e,sep:"/"};function V$e(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');gO(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let a=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else a<0&&(o=!0,a=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function H$e(e){if(gO(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 W$e(e){gO(e);let t=e.length,n=-1,r=0,i=-1,o=0,a;for(;t--;){const s=e.codePointAt(t);if(s===47){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),s===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function Q$e(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function G$e(e,t){let n="",r=0,i=-1,o=0,a=-1,s,l;for(;++a<=e.length;){if(a2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}}else if(n.length>0){n="",r=0,i=a,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,o=0}else s===46&&o>-1?o++:o=-1}return n}function gO(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const q$e={cwd:Z$e};function Z$e(){return"/"}function hI(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function X$e(e){if(typeof e=="string")e=new URL(e);else if(!hI(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 K$e(e)}function K$e(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[h,...m]=c;const b=r[p][1];pI(b)&&pI(h)&&(h=YA(!0,b,h)),r[p]=[u,h,...m]}}}}const nFe=new E3().freeze();function XA(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function KA(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function JA(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 Zj(e){if(!pI(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Xj(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function lE(e){return rFe(e)?e:new ree(e)}function rFe(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function iFe(e){return typeof e=="string"||oFe(e)}function oFe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const aFe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Kj=[],Jj={allowDangerousHtml:!0},sFe=/^(https?|ircs?|mailto|xmpp)$/i,lFe=[{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 uFe(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,o=e.components,a=e.disallowedElements,s=e.rehypePlugins||Kj,l=e.remarkPlugins||Kj,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Jj}:Jj,c=e.skipHtml,d=e.unwrapDisallowed,p=e.urlTransform||cFe,h=nFe().use(Q5e).use(l).use(B$e,u).use(s),m=new ree;typeof r=="string"&&(m.value=r);for(const v of lFe)Object.hasOwn(e,v.from)&&(""+v.from+(v.to?"use `"+v.to+"` instead":"remove it")+aFe+v.id,void 0);const b=h.parse(m);let O=h.runSync(b,m);return i&&(O={type:"element",tagName:"div",properties:{className:i},children:O.type==="root"?O.children:[O]}),Ia(O,y),_Me(O,{Fragment:M.Fragment,components:o,ignoreInvalidStyle:!0,jsx:M.jsx,jsxs:M.jsxs,passKeys:!0,passNode:!0});function y(v,S,k){if(v.type==="raw"&&k&&typeof S=="number")return c?k.children.splice(S,1):k.children[S]={type:"text",value:v.value},S;if(v.type==="element"){let C;for(C in HA)if(Object.hasOwn(HA,C)&&Object.hasOwn(v.properties,C)){const w=v.properties[C],E=HA[C];(E===null||E.includes(v.tagName))&&(v.properties[C]=p(String(w||""),C,v))}}if(v.type==="element"){let C=t?!t.includes(v.tagName):a?a.includes(v.tagName):!1;if(!C&&n&&typeof S=="number"&&(C=!n(v,S,k)),C&&k&&typeof S=="number")return d&&v.children?k.children.splice(S,1,...v.children):k.children.splice(S,1),S}}}function cFe(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||sFe.test(e.slice(0,t))?e:""}function ez(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 dFe(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function fFe(e,t,n){const i=mO((n||{}).ignore||[]),o=pFe(t);let a=-1;for(;++a0?{type:"text",value:w}:void 0),w===!1?p.lastIndex=k+1:(m!==k&&v.push({type:"text",value:u.value.slice(m,k)}),Array.isArray(w)?v.push(...w):w&&v.push(w),m=k+S[0].length,y=!0),!p.global)break;S=p.exec(u.value)}return y?(m?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=ez(e,"(");let o=ez(e,")");for(;r!==-1&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function iee(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||kp(n)||nx(n))&&(!t||n!==47)}oee.peek=FFe;function AFe(){return{enter:{gfmFootnoteDefinition:RFe,gfmFootnoteDefinitionLabelString:IFe,gfmFootnoteCall:PFe,gfmFootnoteCallString:LFe},exit:{gfmFootnoteDefinition:NFe,gfmFootnoteDefinitionLabelString:DFe,gfmFootnoteCall:$Fe,gfmFootnoteCallString:MFe}}}function _Fe(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:BFe,footnoteReference:oee}}}function RFe(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function IFe(){this.buffer()}function DFe(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=Rl(this.sliceSerialize(e)).toLowerCase()}function NFe(e){this.exit(e)}function PFe(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function LFe(){this.buffer()}function MFe(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=Rl(this.sliceSerialize(e)).toLowerCase()}function $Fe(e){this.exit(e)}function oee(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{...i.current(),before:o,after:"]"})),s(),a(),o+=i.move("]"),o}function FFe(){return"["}function BFe(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const a=n.enter("footnoteDefinition"),s=n.enter("label");return o+=i.move(n.safe(n.associationId(e),{...i.current(),before:o,after:"]"})),s(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(n.indentLines(n.containerFlow(e,i.current()),UFe)),a(),o}function UFe(e,t,n){return t===0?e:(n?"":" ")+e}const jFe=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];aee.peek=QFe;function zFe(){return{canContainEols:["delete"],enter:{strikethrough:HFe},exit:{strikethrough:WFe}}}function VFe(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:jFe}],handlers:{delete:aee}}}function HFe(e){this.enter({type:"delete",children:[]},e)}function WFe(e){this.exit(e)}function aee(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let a=i.move("~~");return a+=n.containerPhrasing(e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function QFe(){return"~"}function YFe(e,t={}){const n=(t.align||[]).concat(),r=t.stringLength||qFe,i=[],o=[],a=[],s=[];let l=0,u=-1;for(;++ul&&(l=e[u].length);++Os[O])&&(s[O]=v)}m.push(y)}o[u]=m,a[u]=b}let c=-1;if(typeof n=="object"&&"length"in n)for(;++cs[c]&&(s[c]=y),p[c]=y),d[c]=v}o.splice(1,0,d),a.splice(1,0,p),u=-1;const h=[];for(;++u "),o.shift(2);const a=n.indentLines(n.containerFlow(e,o.current()),XFe);return i(),a}function XFe(e,t,n){return">"+(n?"":" ")+e}function KFe(e,t){return rz(e,t.inConstruct,!0)&&!rz(e,t.notInConstruct,!1)}function rz(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++ra&&(a=o):o=1,i=r+t.length,r=n.indexOf(t,i);return a}function e6e(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 t6e(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function n6e(e,t,n,r){const i=t6e(n),o=e.value||"",a=i==="`"?"GraveAccent":"Tilde";if(e6e(e,n)){const d=n.enter("codeIndented"),p=n.indentLines(o,r6e);return d(),p}const s=n.createTracker(r),l=i.repeat(Math.max(JFe(o,i)+1,3)),u=n.enter("codeFenced");let c=s.move(l);if(e.lang){const d=n.enter(`codeFencedLang${a}`);c+=s.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...s.current()})),d()}if(e.lang&&e.meta){const d=n.enter(`codeFencedMeta${a}`);c+=s.move(" "),c+=s.move(n.safe(e.meta,{before:c,after:` `,encode:["`"],...s.current()})),d()}return c+=s.move(` `),o&&(c+=s.move(o+` -`)),c+=s.move(l),u(),c}function yFe(e,t,n){return(n?"":" ")+e}function r3(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 OFe(e,t,n,r){const i=r3(n),o=i==='"'?"Quote":"Apostrophe",a=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let u=l.move("[");return u+=l.move(n.safe(n.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":` -`,...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),s()),a(),u}function vFe(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}DJ.peek=EFe;function DJ(e,t,n,r){const i=vFe(n),o=n.enter("emphasis"),a=n.createTracker(r);let s=a.move(i);return s+=a.move(n.containerPhrasing(e,{before:s,after:i,...a.current()})),s+=a.move(i),o(),s}function EFe(e,t,n){return n.options.emphasis||"*"}function SFe(e,t){let n=!1;return _a(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,DT}),!!((!e.depth||e.depth<3)&&qP(e)&&(t.options.setext||n))}function TFe(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(SFe(e,n)){const c=n.enter("headingSetext"),d=n.enter("phrasing"),p=n.containerPhrasing(e,{...o.current(),before:` +`)),c+=s.move(l),u(),c}function r6e(e,t,n){return(n?"":" ")+e}function T3(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 i6e(e,t,n,r){const i=T3(n),o=i==='"'?"Quote":"Apostrophe",a=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let u=l.move("[");return u+=l.move(n.safe(n.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":` +`,...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),s()),a(),u}function o6e(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}see.peek=a6e;function see(e,t,n,r){const i=o6e(n),o=n.enter("emphasis"),a=n.createTracker(r);let s=a.move(i);return s+=a.move(n.containerPhrasing(e,{before:s,after:i,...a.current()})),s+=a.move(i),o(),s}function a6e(e,t,n){return n.options.emphasis||"*"}function s6e(e,t){let n=!1;return Ia(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,qT}),!!((!e.depth||e.depth<3)&&m3(e)&&(t.options.setext||n))}function l6e(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(s6e(e,n)){const c=n.enter("headingSetext"),d=n.enter("phrasing"),p=n.containerPhrasing(e,{...o.current(),before:` `,after:` `});return d(),c(),p+` `+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(` `))+1))}const a="#".repeat(i),s=n.enter("headingAtx"),l=n.enter("phrasing");o.move(a+" ");let u=n.containerPhrasing(e,{before:"# ",after:` -`,...o.current()});return/^[\t ]/.test(u)&&(u="&#x"+u.charCodeAt(0).toString(16).toUpperCase()+";"+u.slice(1)),u=u?a+" "+u:a,n.options.closeAtx&&(u+=" "+a),l(),s(),u}PJ.peek=wFe;function PJ(e){return e.value||""}function wFe(){return"<"}LJ.peek=kFe;function LJ(e,t,n,r){const i=r3(n),o=i==='"'?"Quote":"Apostrophe",a=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let u=l.move("![");return u+=l.move(n.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),s()),u+=l.move(")"),a(),u}function kFe(){return"!"}MJ.peek=xFe;function MJ(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const u=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),a();const c=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=c,o(),i==="full"||!u||u!==d?l+=s.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function xFe(){return"!"}$J.peek=CFe;function $J(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o\u007F]/.test(e.url))}BJ.peek=AFe;function BJ(e,t,n,r){const i=r3(n),o=i==='"'?"Quote":"Apostrophe",a=n.createTracker(r);let s,l;if(FJ(e,n)){const c=n.stack;n.stack=[],s=n.enter("autolink");let d=a.move("<");return d+=a.move(n.containerPhrasing(e,{before:d,after:">",...a.current()})),d+=a.move(">"),s(),n.stack=c,d}s=n.enter("link"),l=n.enter("label");let u=a.move("[");return u+=a.move(n.containerPhrasing(e,{before:u,after:"](",...a.current()})),u+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(l=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":")",...a.current()}))),l(),e.title&&(l=n.enter(`title${o}`),u+=a.move(" "+i),u+=a.move(n.safe(e.title,{before:u,after:i,...a.current()})),u+=a.move(i),l()),u+=a.move(")"),s(),u}function AFe(e,t,n){return FJ(e,n)?"<":"["}UJ.peek=_Fe;function UJ(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const u=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),a();const c=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=c,o(),i==="full"||!u||u!==d?l+=s.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function _Fe(){return"["}function i3(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 RFe(e){const t=i3(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 IFe(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 jJ(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 NFe(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let a=e.ordered?IFe(n):i3(n);const s=e.ordered?a==="."?")":".":RFe(n);let l=t&&n.bulletLastUsed?a===n.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((a==="*"||a==="-")&&c&&(!c.children||!c.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),jJ(n)===a&&c){let d=-1;for(;++d-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let a=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4);const s=n.createTracker(r);s.move(o+" ".repeat(a-o.length)),s.shift(a);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,s.current()),c);return l(),u;function c(d,p,h){return p?(h?"":" ".repeat(a))+d:(h?o:o+" ".repeat(a-o.length))+d}}function LFe(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),a=n.containerPhrasing(e,r);return o(),i(),a}const MFe=tO(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","link","linkReference","strong","text"]);function $Fe(e,t,n,r){return(e.children.some(function(a){return MFe(a)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function FFe(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}zJ.peek=BFe;function zJ(e,t,n,r){const i=FFe(n),o=n.enter("strong"),a=n.createTracker(r);let s=a.move(i+i);return s+=a.move(n.containerPhrasing(e,{before:s,after:i,...a.current()})),s+=a.move(i+i),o(),s}function BFe(e,t,n){return n.options.strong||"*"}function UFe(e,t,n,r){return n.safe(e.value,r)}function jFe(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 zFe(e,t,n){const r=(jJ(n)+(n.options.ruleSpaces?" ":"")).repeat(jFe(n));return n.options.ruleSpaces?r.slice(0,-1):r}const VJ={blockquote:dFe,break:Fj,code:bFe,definition:OFe,emphasis:DJ,hardBreak:Fj,heading:TFe,html:PJ,image:LJ,imageReference:MJ,inlineCode:$J,link:BJ,linkReference:UJ,list:NFe,listItem:PFe,paragraph:LFe,root:$Fe,strong:zJ,text:UFe,thematicBreak:zFe};function VFe(){return{enter:{table:HFe,tableData:Bj,tableHeader:Bj,tableRow:QFe},exit:{codeText:YFe,table:WFe,tableData:UA,tableHeader:UA,tableRow:UA}}}function HFe(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 WFe(e){this.exit(e),this.data.inTable=void 0}function QFe(e){this.enter({type:"tableRow",children:[]},e)}function UA(e){this.exit(e)}function Bj(e){this.enter({type:"tableCell",children:[]},e)}function YFe(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,GFe));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function GFe(e,t){return t==="|"?t:e}function qFe(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` -`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:a,tableCell:l,tableRow:s}};function a(h,m,y,O){return u(c(h,y,O),h.align)}function s(h,m,y,O){const b=d(h,y,O),v=u([b]);return v.slice(0,v.indexOf(` -`))}function l(h,m,y,O){const b=y.enter("tableCell"),v=y.enter("phrasing"),S=y.containerPhrasing(h,{...O,before:o,after:o});return v(),b(),S}function u(h,m){return lFe(h,{align:m,alignDelimiters:r,padding:n,stringLength:i})}function c(h,m,y){const O=h.children;let b=-1;const v=[],S=m.enter("table");for(;++b0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const p6e={tokenize:E6e,partial:!0};function h6e(){return{document:{91:{tokenize:y6e,continuation:{tokenize:O6e},exit:v6e}},text:{91:{tokenize:b6e},93:{add:"after",tokenize:m6e,resolveTo:g6e}}}}function m6e(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){a=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!a||!a._balanced)return n(l);const u=Cl(r.sliceSerialize({start:a.end,end:r.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function g6e(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function b6e(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,a;return s;function s(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(d){if(o>999||d===93&&!a||d===null||d===91||br(d))return n(d);if(d===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(Cl(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return br(d)||(a=!0),o++,e.consume(d),d===92?c:u}function c(d){return d===91||d===92||d===93?(e.consume(d),o++,u):u(d)}}function y6e(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a=0,s;return l;function l(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(m)}function c(m){if(a>999||m===93&&!s||m===null||m===91||br(m))return n(m);if(m===93){e.exit("chunkString");const y=e.exit("gfmFootnoteDefinitionLabelString");return o=Cl(r.sliceSerialize(y)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return br(m)||(s=!0),a++,e.consume(m),m===92?d:c}function d(m){return m===91||m===92||m===93?(e.consume(m),a++,c):c(m)}function p(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),i.includes(o)||i.push(o),Kn(e,h,"gfmFootnoteDefinitionWhitespace")):n(m)}function h(m){return t(m)}}function O6e(e,t,n){return e.check(eO,t,e.attempt(p6e,t,n))}function v6e(e){e.exit("gfmFootnoteDefinition")}function E6e(e,t,n){const r=this;return Kn(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(o):n(o)}}function S6e(e){let n=(e||{}).singleTilde;const r={tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(a,s){let l=-1;for(;++l1?l(m):(a.consume(m),d++,h);if(d<2&&!n)return l(m);const O=a.exit("strikethroughSequenceTemporary"),b=RT(m);return O._open=!b||b===2&&!!y,O._close=!y||y===2&&!!b,s(m)}}}class T6e{constructor(){this.map=[]}add(t,n,r){w6e(this,t,n,r)}consume(t){if(this.map.sort(function(o,a){return o[0]-a[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push([...t]),t.length=0;let i=r.pop();for(;i;)t.push(...i),i=r.pop();this.map.length=0}}function w6e(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const z=r.events[B][1].type;if(z==="lineEnding"||z==="linePrefix")B--;else break}const U=B>-1?r.events[B][1].type:null,V=U==="tableHead"||U==="tableRow"?w:l;return V===w&&r.parser.lazy[r.now().line]?n(R):V(R)}function l(R){return e.enter("tableHead"),e.enter("tableRow"),u(R)}function u(R){return R===124||(a=!0,o+=1),c(R)}function c(R){return R===null?n(R):mn(R)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),h):n(R):Un(R)?Kn(e,c,"whitespace")(R):(o+=1,a&&(a=!1,i+=1),R===124?(e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),a=!0,c):(e.enter("data"),d(R)))}function d(R){return R===null||R===124||br(R)?(e.exit("data"),c(R)):(e.consume(R),R===92?p:d)}function p(R){return R===92||R===124?(e.consume(R),d):d(R)}function h(R){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(R):(e.enter("tableDelimiterRow"),a=!1,Un(R)?Kn(e,m,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):m(R))}function m(R){return R===45||R===58?O(R):R===124?(a=!0,e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),y):C(R)}function y(R){return Un(R)?Kn(e,O,"whitespace")(R):O(R)}function O(R){return R===58?(o+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(R),e.exit("tableDelimiterMarker"),b):R===45?(o+=1,b(R)):R===null||mn(R)?k(R):C(R)}function b(R){return R===45?(e.enter("tableDelimiterFiller"),v(R)):C(R)}function v(R){return R===45?(e.consume(R),v):R===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(R),e.exit("tableDelimiterMarker"),S):(e.exit("tableDelimiterFiller"),S(R))}function S(R){return Un(R)?Kn(e,k,"whitespace")(R):k(R)}function k(R){return R===124?m(R):R===null||mn(R)?!a||i!==o?C(R):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(R)):C(R)}function C(R){return n(R)}function w(R){return e.enter("tableRow"),E(R)}function E(R){return R===124?(e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),E):R===null||mn(R)?(e.exit("tableRow"),t(R)):Un(R)?Kn(e,E,"whitespace")(R):(e.enter("data"),$(R))}function $(R){return R===null||R===124||br(R)?(e.exit("data"),E(R)):(e.consume(R),R===92?D:$)}function D(R){return R===92||R===124?(e.consume(R),$):$(R)}}function A6e(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],a=[0,0,0,0],s=!1,l=0,u,c,d;const p=new T6e;for(;++nn[2]+1){const m=n[2]+1,y=n[3]-n[2]-1;e.add(m,y,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(o.end=Object.assign({},mh(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function jj(e,t,n,r,i){const o=[],a=mh(t.events,n);i&&(i.end=Object.assign({},a),o.push(["exit",i,t])),r.end=Object.assign({},a),o.push(["exit",r,t]),e.add(n+1,0,o)}function mh(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const _6e={tokenize:I6e};function R6e(){return{text:{91:_6e}}}function I6e(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),o)}function o(l){return br(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),a):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),a):n(l)}function a(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(l)}function s(l){return mn(l)?t(l):Un(l)?e.check({tokenize:N6e},t,n)(l):n(l)}}function N6e(e,t,n){return Kn(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function D6e(e){return sJ([i6e(),h6e(),S6e(e),x6e(),R6e()])}const P6e={};function L6e(e){const t=this,n=e||P6e,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(D6e(n)),o.push(e6e()),a.push(t6e(n))}const zj=/[#.]/g;function M6e(e,t){const n=e||"",r={};let i=0,o,a;for(;i-1&&oo)return{line:a+1,column:o-(a>0?n[a-1]:0)+1,offset:o}}}function i(o){const a=o&&o.line,s=o&&o.column;if(typeof a=="number"&&typeof s=="number"&&!Number.isNaN(a)&&!Number.isNaN(s)&&a-1 in n){const l=(n[a-2]||0)+s-1||0;if(l>-1&&l=55296&&e<=57343}function lBe(e){return e>=56320&&e<=57343}function uBe(e,t){return(e-55296)*1024+9216+t}function ree(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function iee(e){return e>=64976&&e<=65007||sBe.has(e)}var Xe;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(Xe=Xe||(Xe={}));const cBe=65536;class dBe{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=cBe,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(lBe(n))return this.pos++,this._addGap(),uBe(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,ne.EOF;return this._err(Xe.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,ne.EOF;const r=this.html.charCodeAt(n);return r===ne.CARRIAGE_RETURN?ne.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,ne.EOF;let t=this.html.charCodeAt(this.pos);return t===ne.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,ne.LINE_FEED):t===ne.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,nee(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===ne.LINE_FEED||t===ne.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){ree(t)?this._err(Xe.controlCharacterInInputStream):iee(t)&&this._err(Xe.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const jc=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))),fBe=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var zA;const pBe=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]]),hBe=(zA=String.fromCodePoint)!==null&&zA!==void 0?zA: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 mBe(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=pBe.get(e))!==null&&t!==void 0?t:e}var Yi;(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"})(Yi||(Yi={}));const gBe=32;var bu;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(bu||(bu={}));function XR(e){return e>=Yi.ZERO&&e<=Yi.NINE}function bBe(e){return e>=Yi.UPPER_A&&e<=Yi.UPPER_F||e>=Yi.LOWER_A&&e<=Yi.LOWER_F}function yBe(e){return e>=Yi.UPPER_A&&e<=Yi.UPPER_Z||e>=Yi.LOWER_A&&e<=Yi.LOWER_Z||XR(e)}function OBe(e){return e===Yi.EQUALS||yBe(e)}var zi;(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"})(zi||(zi={}));var Tf;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Tf||(Tf={}));class vBe{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=zi.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Tf.Strict}startEntity(t){this.decodeMode=t,this.state=zi.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case zi.EntityStart:return t.charCodeAt(n)===Yi.NUM?(this.state=zi.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=zi.NamedEntity,this.stateNamedEntity(t,n));case zi.NumericStart:return this.stateNumericStart(t,n);case zi.NumericDecimal:return this.stateNumericDecimal(t,n);case zi.NumericHex:return this.stateNumericHex(t,n);case zi.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|gBe)===Yi.LOWER_X?(this.state=zi.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=zi.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const o=r-n;this.result=this.result*Math.pow(i,o)+parseInt(t.substr(n,o),i),this.consumed+=o}}stateNumericHex(t,n){const r=n;for(;n>14;for(;n>14,o!==0){if(a===Yi.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==Tf.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]&bu.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]&~bu.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case zi.NamedEntity:return this.result!==0&&(this.decodeMode!==Tf.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case zi.NumericDecimal:return this.emitNumericEntity(0,2);case zi.NumericHex:return this.emitNumericEntity(0,3);case zi.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case zi.EntityStart:return 0}}}function aee(e){let t="";const n=new vBe(e,r=>t+=hBe(r));return function(i,o){let a=0,s=0;for(;(s=i.indexOf("&",s))>=0;){t+=i.slice(a,s),n.startEntity(o);const u=n.write(i,s+1);if(u<0){a=s+n.end();break}a=s+u,s=u===0?a+1:a}const l=t+i.slice(a);return t="",l}}function see(e,t,n,r){const i=(t&bu.BRANCH_LENGTH)>>7,o=t&bu.JUMP_TABLE;if(i===0)return o!==0&&r===o?n:-1;if(o){const l=r-o;return l<0||l>=i?-1:e[n+l]-1}let a=n,s=a+i-1;for(;a<=s;){const l=a+s>>>1,u=e[l];if(ur)s=l-1;else return e[l+i]}return-1}aee(jc);aee(fBe);var st;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(st=st||(st={}));var _d;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(_d=_d||(_d={}));var es;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(es=es||(es={}));var Fe;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(Fe=Fe||(Fe={}));var I;(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"})(I=I||(I={}));const EBe=new Map([[Fe.A,I.A],[Fe.ADDRESS,I.ADDRESS],[Fe.ANNOTATION_XML,I.ANNOTATION_XML],[Fe.APPLET,I.APPLET],[Fe.AREA,I.AREA],[Fe.ARTICLE,I.ARTICLE],[Fe.ASIDE,I.ASIDE],[Fe.B,I.B],[Fe.BASE,I.BASE],[Fe.BASEFONT,I.BASEFONT],[Fe.BGSOUND,I.BGSOUND],[Fe.BIG,I.BIG],[Fe.BLOCKQUOTE,I.BLOCKQUOTE],[Fe.BODY,I.BODY],[Fe.BR,I.BR],[Fe.BUTTON,I.BUTTON],[Fe.CAPTION,I.CAPTION],[Fe.CENTER,I.CENTER],[Fe.CODE,I.CODE],[Fe.COL,I.COL],[Fe.COLGROUP,I.COLGROUP],[Fe.DD,I.DD],[Fe.DESC,I.DESC],[Fe.DETAILS,I.DETAILS],[Fe.DIALOG,I.DIALOG],[Fe.DIR,I.DIR],[Fe.DIV,I.DIV],[Fe.DL,I.DL],[Fe.DT,I.DT],[Fe.EM,I.EM],[Fe.EMBED,I.EMBED],[Fe.FIELDSET,I.FIELDSET],[Fe.FIGCAPTION,I.FIGCAPTION],[Fe.FIGURE,I.FIGURE],[Fe.FONT,I.FONT],[Fe.FOOTER,I.FOOTER],[Fe.FOREIGN_OBJECT,I.FOREIGN_OBJECT],[Fe.FORM,I.FORM],[Fe.FRAME,I.FRAME],[Fe.FRAMESET,I.FRAMESET],[Fe.H1,I.H1],[Fe.H2,I.H2],[Fe.H3,I.H3],[Fe.H4,I.H4],[Fe.H5,I.H5],[Fe.H6,I.H6],[Fe.HEAD,I.HEAD],[Fe.HEADER,I.HEADER],[Fe.HGROUP,I.HGROUP],[Fe.HR,I.HR],[Fe.HTML,I.HTML],[Fe.I,I.I],[Fe.IMG,I.IMG],[Fe.IMAGE,I.IMAGE],[Fe.INPUT,I.INPUT],[Fe.IFRAME,I.IFRAME],[Fe.KEYGEN,I.KEYGEN],[Fe.LABEL,I.LABEL],[Fe.LI,I.LI],[Fe.LINK,I.LINK],[Fe.LISTING,I.LISTING],[Fe.MAIN,I.MAIN],[Fe.MALIGNMARK,I.MALIGNMARK],[Fe.MARQUEE,I.MARQUEE],[Fe.MATH,I.MATH],[Fe.MENU,I.MENU],[Fe.META,I.META],[Fe.MGLYPH,I.MGLYPH],[Fe.MI,I.MI],[Fe.MO,I.MO],[Fe.MN,I.MN],[Fe.MS,I.MS],[Fe.MTEXT,I.MTEXT],[Fe.NAV,I.NAV],[Fe.NOBR,I.NOBR],[Fe.NOFRAMES,I.NOFRAMES],[Fe.NOEMBED,I.NOEMBED],[Fe.NOSCRIPT,I.NOSCRIPT],[Fe.OBJECT,I.OBJECT],[Fe.OL,I.OL],[Fe.OPTGROUP,I.OPTGROUP],[Fe.OPTION,I.OPTION],[Fe.P,I.P],[Fe.PARAM,I.PARAM],[Fe.PLAINTEXT,I.PLAINTEXT],[Fe.PRE,I.PRE],[Fe.RB,I.RB],[Fe.RP,I.RP],[Fe.RT,I.RT],[Fe.RTC,I.RTC],[Fe.RUBY,I.RUBY],[Fe.S,I.S],[Fe.SCRIPT,I.SCRIPT],[Fe.SECTION,I.SECTION],[Fe.SELECT,I.SELECT],[Fe.SOURCE,I.SOURCE],[Fe.SMALL,I.SMALL],[Fe.SPAN,I.SPAN],[Fe.STRIKE,I.STRIKE],[Fe.STRONG,I.STRONG],[Fe.STYLE,I.STYLE],[Fe.SUB,I.SUB],[Fe.SUMMARY,I.SUMMARY],[Fe.SUP,I.SUP],[Fe.TABLE,I.TABLE],[Fe.TBODY,I.TBODY],[Fe.TEMPLATE,I.TEMPLATE],[Fe.TEXTAREA,I.TEXTAREA],[Fe.TFOOT,I.TFOOT],[Fe.TD,I.TD],[Fe.TH,I.TH],[Fe.THEAD,I.THEAD],[Fe.TITLE,I.TITLE],[Fe.TR,I.TR],[Fe.TRACK,I.TRACK],[Fe.TT,I.TT],[Fe.U,I.U],[Fe.UL,I.UL],[Fe.SVG,I.SVG],[Fe.VAR,I.VAR],[Fe.WBR,I.WBR],[Fe.XMP,I.XMP]]);function _g(e){var t;return(t=EBe.get(e))!==null&&t!==void 0?t:I.UNKNOWN}const bt=I,SBe={[st.HTML]:new Set([bt.ADDRESS,bt.APPLET,bt.AREA,bt.ARTICLE,bt.ASIDE,bt.BASE,bt.BASEFONT,bt.BGSOUND,bt.BLOCKQUOTE,bt.BODY,bt.BR,bt.BUTTON,bt.CAPTION,bt.CENTER,bt.COL,bt.COLGROUP,bt.DD,bt.DETAILS,bt.DIR,bt.DIV,bt.DL,bt.DT,bt.EMBED,bt.FIELDSET,bt.FIGCAPTION,bt.FIGURE,bt.FOOTER,bt.FORM,bt.FRAME,bt.FRAMESET,bt.H1,bt.H2,bt.H3,bt.H4,bt.H5,bt.H6,bt.HEAD,bt.HEADER,bt.HGROUP,bt.HR,bt.HTML,bt.IFRAME,bt.IMG,bt.INPUT,bt.LI,bt.LINK,bt.LISTING,bt.MAIN,bt.MARQUEE,bt.MENU,bt.META,bt.NAV,bt.NOEMBED,bt.NOFRAMES,bt.NOSCRIPT,bt.OBJECT,bt.OL,bt.P,bt.PARAM,bt.PLAINTEXT,bt.PRE,bt.SCRIPT,bt.SECTION,bt.SELECT,bt.SOURCE,bt.STYLE,bt.SUMMARY,bt.TABLE,bt.TBODY,bt.TD,bt.TEMPLATE,bt.TEXTAREA,bt.TFOOT,bt.TH,bt.THEAD,bt.TITLE,bt.TR,bt.TRACK,bt.UL,bt.WBR,bt.XMP]),[st.MATHML]:new Set([bt.MI,bt.MO,bt.MN,bt.MS,bt.MTEXT,bt.ANNOTATION_XML]),[st.SVG]:new Set([bt.TITLE,bt.FOREIGN_OBJECT,bt.DESC]),[st.XLINK]:new Set,[st.XML]:new Set,[st.XMLNS]:new Set};function lee(e){return e===bt.H1||e===bt.H2||e===bt.H3||e===bt.H4||e===bt.H5||e===bt.H6}Fe.STYLE,Fe.SCRIPT,Fe.XMP,Fe.IFRAME,Fe.NOEMBED,Fe.NOFRAMES,Fe.PLAINTEXT;const TBe=new Map([[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);var ae;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",e[e.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",e[e.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",e[e.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",e[e.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",e[e.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END"})(ae||(ae={}));const mi={DATA:ae.DATA,RCDATA:ae.RCDATA,RAWTEXT:ae.RAWTEXT,SCRIPT_DATA:ae.SCRIPT_DATA,PLAINTEXT:ae.PLAINTEXT,CDATA_SECTION:ae.CDATA_SECTION};function Rb(e){return e>=ne.DIGIT_0&&e<=ne.DIGIT_9}function Z0(e){return e>=ne.LATIN_CAPITAL_A&&e<=ne.LATIN_CAPITAL_Z}function wBe(e){return e>=ne.LATIN_SMALL_A&&e<=ne.LATIN_SMALL_Z}function zc(e){return wBe(e)||Z0(e)}function KR(e){return zc(e)||Rb(e)}function uee(e){return e>=ne.LATIN_CAPITAL_A&&e<=ne.LATIN_CAPITAL_F}function cee(e){return e>=ne.LATIN_SMALL_A&&e<=ne.LATIN_SMALL_F}function kBe(e){return Rb(e)||uee(e)||cee(e)}function Zv(e){return e+32}function dee(e){return e===ne.SPACE||e===ne.LINE_FEED||e===ne.TABULATION||e===ne.FORM_FEED}function xBe(e){return e===ne.EQUALS_SIGN||KR(e)}function Wj(e){return dee(e)||e===ne.SOLIDUS||e===ne.GREATER_THAN_SIGN}class CBe{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=ae.DATA,this.returnState=ae.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new dBe(n),this.currentLocation=this.getCurrentLocation(-1)}_err(t){var n,r;(r=(n=this.handler).onParseError)===null||r===void 0||r.call(n,this.preprocessor.getError(t))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r==null||r()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(t){this.consumedAfterSnapshot-=t,this.preprocessor.retreat(t)}_reconsumeInState(t,n){this.state=t,this._callState(n)}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n0&&this._err(Xe.endTagWithAttributes),t.selfClosing&&this._err(Xe.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Pn.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Pn.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Pn.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Pn.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type!==t)this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();else{this.currentCharacterToken.chars+=n;return}this._createCharacterToken(t,n)}_emitCodePoint(t){const n=dee(t)?Pn.WHITESPACE_CHARACTER:t===ne.NULL?Pn.NULL_CHARACTER:Pn.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Pn.CHARACTER,t)}_matchNamedCharacterReference(t){let n=null,r=0,i=!1;for(let o=0,a=jc[0];o>=0&&(o=see(jc,a,o+1,t),!(o<0));t=this._consume()){r+=1,a=jc[o];const s=a&bu.VALUE_LENGTH;if(s){const l=(s>>14)-1;if(t!==ne.SEMICOLON&&this._isCharacterReferenceInAttribute()&&xBe(this.preprocessor.peek(1))?(n=[ne.AMPERSAND],o+=l):(n=l===0?[jc[o]&~bu.VALUE_LENGTH]:l===1?[jc[++o]]:[jc[++o],jc[++o]],r=0,i=t!==ne.SEMICOLON),l===0){this._consume();break}}}return this._unconsume(r),i&&!this.preprocessor.endOfChunkHit&&this._err(Xe.missingSemicolonAfterCharacterReference),this._unconsume(1),n}_isCharacterReferenceInAttribute(){return this.returnState===ae.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===ae.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===ae.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case ae.DATA:{this._stateData(t);break}case ae.RCDATA:{this._stateRcdata(t);break}case ae.RAWTEXT:{this._stateRawtext(t);break}case ae.SCRIPT_DATA:{this._stateScriptData(t);break}case ae.PLAINTEXT:{this._statePlaintext(t);break}case ae.TAG_OPEN:{this._stateTagOpen(t);break}case ae.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case ae.TAG_NAME:{this._stateTagName(t);break}case ae.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case ae.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case ae.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case ae.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case ae.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case ae.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case ae.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case ae.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case ae.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case ae.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case ae.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case ae.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case ae.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case ae.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case ae.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case ae.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case ae.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case ae.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case ae.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case ae.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case ae.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case ae.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case ae.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case ae.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case ae.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case ae.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case ae.BOGUS_COMMENT:{this._stateBogusComment(t);break}case ae.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case ae.COMMENT_START:{this._stateCommentStart(t);break}case ae.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case ae.COMMENT:{this._stateComment(t);break}case ae.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case ae.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case ae.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case ae.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case ae.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case ae.COMMENT_END:{this._stateCommentEnd(t);break}case ae.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case ae.DOCTYPE:{this._stateDoctype(t);break}case ae.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case ae.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case ae.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case ae.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case ae.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case ae.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case ae.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case ae.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case ae.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case ae.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case ae.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case ae.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case ae.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case ae.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case ae.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case ae.CDATA_SECTION:{this._stateCdataSection(t);break}case ae.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case ae.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case ae.CHARACTER_REFERENCE:{this._stateCharacterReference(t);break}case ae.NAMED_CHARACTER_REFERENCE:{this._stateNamedCharacterReference(t);break}case ae.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}case ae.NUMERIC_CHARACTER_REFERENCE:{this._stateNumericCharacterReference(t);break}case ae.HEXADEMICAL_CHARACTER_REFERENCE_START:{this._stateHexademicalCharacterReferenceStart(t);break}case ae.HEXADEMICAL_CHARACTER_REFERENCE:{this._stateHexademicalCharacterReference(t);break}case ae.DECIMAL_CHARACTER_REFERENCE:{this._stateDecimalCharacterReference(t);break}case ae.NUMERIC_CHARACTER_REFERENCE_END:{this._stateNumericCharacterReferenceEnd(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case ne.LESS_THAN_SIGN:{this.state=ae.TAG_OPEN;break}case ne.AMPERSAND:{this.returnState=ae.DATA,this.state=ae.CHARACTER_REFERENCE;break}case ne.NULL:{this._err(Xe.unexpectedNullCharacter),this._emitCodePoint(t);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case ne.AMPERSAND:{this.returnState=ae.RCDATA,this.state=ae.CHARACTER_REFERENCE;break}case ne.LESS_THAN_SIGN:{this.state=ae.RCDATA_LESS_THAN_SIGN;break}case ne.NULL:{this._err(Xe.unexpectedNullCharacter),this._emitChars(Ur);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case ne.LESS_THAN_SIGN:{this.state=ae.RAWTEXT_LESS_THAN_SIGN;break}case ne.NULL:{this._err(Xe.unexpectedNullCharacter),this._emitChars(Ur);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case ne.LESS_THAN_SIGN:{this.state=ae.SCRIPT_DATA_LESS_THAN_SIGN;break}case ne.NULL:{this._err(Xe.unexpectedNullCharacter),this._emitChars(Ur);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case ne.NULL:{this._err(Xe.unexpectedNullCharacter),this._emitChars(Ur);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(zc(t))this._createStartTagToken(),this.state=ae.TAG_NAME,this._stateTagName(t);else switch(t){case ne.EXCLAMATION_MARK:{this.state=ae.MARKUP_DECLARATION_OPEN;break}case ne.SOLIDUS:{this.state=ae.END_TAG_OPEN;break}case ne.QUESTION_MARK:{this._err(Xe.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=ae.BOGUS_COMMENT,this._stateBogusComment(t);break}case ne.EOF:{this._err(Xe.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(Xe.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=ae.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(zc(t))this._createEndTagToken(),this.state=ae.TAG_NAME,this._stateTagName(t);else switch(t){case ne.GREATER_THAN_SIGN:{this._err(Xe.missingEndTagName),this.state=ae.DATA;break}case ne.EOF:{this._err(Xe.eofBeforeTagName),this._emitChars("");break}case ne.NULL:{this._err(Xe.unexpectedNullCharacter),this.state=ae.SCRIPT_DATA_ESCAPED,this._emitChars(Ur);break}case ne.EOF:{this._err(Xe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ae.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===ne.SOLIDUS?this.state=ae.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:zc(t)?(this._emitChars("<"),this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=ae.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){zc(t)?(this.state=ae.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("");break}case ne.NULL:{this._err(Xe.unexpectedNullCharacter),this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ur);break}case ne.EOF:{this._err(Xe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===ne.SOLIDUS?(this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(ca.SCRIPT,!1)&&Wj(this.preprocessor.peek(ca.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n1114111)this._err(Xe.characterReferenceOutsideUnicodeRange),this.charRefCode=ne.REPLACEMENT_CHARACTER;else if(nee(this.charRefCode))this._err(Xe.surrogateCharacterReference),this.charRefCode=ne.REPLACEMENT_CHARACTER;else if(iee(this.charRefCode))this._err(Xe.noncharacterCharacterReference);else if(ree(this.charRefCode)||this.charRefCode===ne.CARRIAGE_RETURN){this._err(Xe.controlCharacterReference);const n=TBe.get(this.charRefCode);n!==void 0&&(this.charRefCode=n)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,t)}}const fee=new Set([I.DD,I.DT,I.LI,I.OPTGROUP,I.OPTION,I.P,I.RB,I.RP,I.RT,I.RTC]),Qj=new Set([...fee,I.CAPTION,I.COLGROUP,I.TBODY,I.TD,I.TFOOT,I.TH,I.THEAD,I.TR]),Xv=new Map([[I.APPLET,st.HTML],[I.CAPTION,st.HTML],[I.HTML,st.HTML],[I.MARQUEE,st.HTML],[I.OBJECT,st.HTML],[I.TABLE,st.HTML],[I.TD,st.HTML],[I.TEMPLATE,st.HTML],[I.TH,st.HTML],[I.ANNOTATION_XML,st.MATHML],[I.MI,st.MATHML],[I.MN,st.MATHML],[I.MO,st.MATHML],[I.MS,st.MATHML],[I.MTEXT,st.MATHML],[I.DESC,st.SVG],[I.FOREIGN_OBJECT,st.SVG],[I.TITLE,st.SVG]]),ABe=[I.H1,I.H2,I.H3,I.H4,I.H5,I.H6],_Be=[I.TR,I.TEMPLATE,I.HTML],RBe=[I.TBODY,I.TFOOT,I.THEAD,I.TEMPLATE,I.HTML],IBe=[I.TABLE,I.TEMPLATE,I.HTML],NBe=[I.TD,I.TH];class DBe{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=I.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===I.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===st.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const i=this._indexOf(t)+1;this.items.splice(i,0,n),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==st.HTML);this.shortenToLength(n<0?0:n)}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop=0;r--)if(t.includes(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(IBe,st.HTML)}clearBackToTableBodyContext(){this.clearBackTo(RBe,st.HTML)}clearBackToTableRowContext(){this.clearBackTo(_Be,st.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===I.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]===I.HTML}hasInScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n],i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===st.HTML)return!0;if(Xv.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(lee(n)&&r===st.HTML)return!0;if(Xv.get(n)===r)return!1}return!0}hasInListItemScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n],i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===st.HTML)return!0;if((r===I.UL||r===I.OL)&&i===st.HTML||Xv.get(r)===i)return!1}return!0}hasInButtonScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n],i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===st.HTML)return!0;if(r===I.BUTTON&&i===st.HTML||Xv.get(r)===i)return!1}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n];if(this.treeAdapter.getNamespaceURI(this.items[n])===st.HTML){if(r===t)return!0;if(r===I.TABLE||r===I.TEMPLATE||r===I.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===st.HTML){if(n===I.TBODY||n===I.THEAD||n===I.TFOOT)return!0;if(n===I.TABLE||n===I.HTML)return!1}}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n];if(this.treeAdapter.getNamespaceURI(this.items[n])===st.HTML){if(r===t)return!0;if(r!==I.OPTION&&r!==I.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;fee.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Qj.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&Qj.has(this.currentTagId);)this.pop()}}const VA=3;var gl;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(gl=gl||(gl={}));const Yj={type:gl.Marker};class PBe{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,o=this.treeAdapter.getTagName(t),a=this.treeAdapter.getNamespaceURI(t);for(let s=0;s[a.name,a.value]));let o=0;for(let a=0;ai.get(l.name)===l.value)&&(o+=1,o>=VA&&this.entries.splice(s.idx,1))}}insertMarker(){this.entries.unshift(Yj)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:gl.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:gl.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(Yj);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===gl.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===gl.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===gl.Element&&n.element===t)}}function Gj(e){return{nodeName:"#text",value:e,parentNode:null}}const gh={createDocument(){return{nodeName:"#document",mode:es.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const i=e.childNodes.find(o=>o.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const o={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};gh.appendChild(e,o)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(gh.isTextNode(n)){n.value+=t;return}}gh.appendChild(e,Gj(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&gh.isTextNode(r)?r.value+=t:gh.insertBefore(e,Gj(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;re.startsWith(n))}function UBe(e){return e.name===pee&&e.publicId===null&&(e.systemId===null||e.systemId===LBe)}function jBe(e){if(e.name!==pee)return es.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===MBe)return es.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),FBe.has(n))return es.QUIRKS;let r=t===null?$Be:hee;if(qj(n,r))return es.QUIRKS;if(r=t===null?mee:BBe,qj(n,r))return es.LIMITED_QUIRKS}return es.NO_QUIRKS}const Zj={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},zBe="definitionurl",VBe="definitionURL",HBe=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])),WBe=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:st.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:st.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:st.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:st.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:st.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:st.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:st.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:st.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:st.XML}],["xml:space",{prefix:"xml",name:"space",namespace:st.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:st.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:st.XMLNS}]]),QBe=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])),YBe=new Set([I.B,I.BIG,I.BLOCKQUOTE,I.BODY,I.BR,I.CENTER,I.CODE,I.DD,I.DIV,I.DL,I.DT,I.EM,I.EMBED,I.H1,I.H2,I.H3,I.H4,I.H5,I.H6,I.HEAD,I.HR,I.I,I.IMG,I.LI,I.LISTING,I.MENU,I.META,I.NOBR,I.OL,I.P,I.PRE,I.RUBY,I.S,I.SMALL,I.SPAN,I.STRONG,I.STRIKE,I.SUB,I.SUP,I.TABLE,I.TT,I.U,I.UL,I.VAR]);function GBe(e){const t=e.tagID;return t===I.FONT&&e.attrs.some(({name:r})=>r===_d.COLOR||r===_d.SIZE||r===_d.FACE)||YBe.has(t)}function gee(e){for(let t=0;t0&&this._setContextModes(t,n)}onItemPop(t,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,t,this.openElements.current),n){let o,a;this.openElements.stackTop===0&&this.fragmentContext?(o=this.fragmentContext,a=this.fragmentContextID):{current:o,currentTagId:a}=this.openElements,this._setContextModes(o,a)}}_setContextModes(t,n){const r=t===this.document||this.treeAdapter.getNamespaceURI(t)===st.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,st.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=me.TEXT}switchToPlaintextParsing(){this.insertionMode=me.TEXT,this.originalInsertionMode=me.IN_BODY,this.tokenizer.state=mi.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===Fe.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==st.HTML))switch(this.fragmentContextID){case I.TITLE:case I.TEXTAREA:{this.tokenizer.state=mi.RCDATA;break}case I.STYLE:case I.XMP:case I.IFRAME:case I.NOEMBED:case I.NOFRAMES:case I.NOSCRIPT:{this.tokenizer.state=mi.RAWTEXT;break}case I.SCRIPT:{this.tokenizer.state=mi.SCRIPT_DATA;break}case I.PLAINTEXT:{this.tokenizer.state=mi.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),t.location){const a=this.treeAdapter.getChildNodes(this.document).find(s=>this.treeAdapter.isDocumentTypeNode(s));a&&this.treeAdapter.setNodeSourceCodeLocation(a,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,st.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,st.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(Fe.HTML,st.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,I.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const i=this.treeAdapter.getChildNodes(n),o=r?i.lastIndexOf(r):i.length,a=i[o-1];if(this.treeAdapter.getNodeSourceCodeLocation(a)){const{endLine:l,endCol:u,endOffset:c}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(a,{endLine:l,endCol:u,endOffset:c})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,i=this.treeAdapter.getTagName(t),o=n.type===Pn.END_TAG&&i===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,o)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===I.SVG&&this.treeAdapter.getTagName(n)===Fe.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===st.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===I.MGLYPH||t.tagID===I.MALIGNMARK)&&!this._isIntegrationPoint(r,n,st.HTML)}_processToken(t){switch(t.type){case Pn.CHARACTER:{this.onCharacter(t);break}case Pn.NULL_CHARACTER:{this.onNullCharacter(t);break}case Pn.COMMENT:{this.onComment(t);break}case Pn.DOCTYPE:{this.onDoctype(t);break}case Pn.START_TAG:{this._processStartTag(t);break}case Pn.END_TAG:{this.onEndTag(t);break}case Pn.EOF:{this.onEof(t);break}case Pn.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),o=this.treeAdapter.getAttrList(n);return KBe(t,i,o,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===gl.Marker||this.openElements.contains(i.element)),r=n<0?t-1:n-1;for(let i=r;i>=0;i--){const o=this.activeFormattingElements.entries[i];this._insertElement(o.token,this.treeAdapter.getNamespaceURI(o.element)),o.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=me.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(I.P),this.openElements.popUntilTagNamePopped(I.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case I.TR:{this.insertionMode=me.IN_ROW;return}case I.TBODY:case I.THEAD:case I.TFOOT:{this.insertionMode=me.IN_TABLE_BODY;return}case I.CAPTION:{this.insertionMode=me.IN_CAPTION;return}case I.COLGROUP:{this.insertionMode=me.IN_COLUMN_GROUP;return}case I.TABLE:{this.insertionMode=me.IN_TABLE;return}case I.BODY:{this.insertionMode=me.IN_BODY;return}case I.FRAMESET:{this.insertionMode=me.IN_FRAMESET;return}case I.SELECT:{this._resetInsertionModeForSelect(t);return}case I.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case I.HTML:{this.insertionMode=this.headElement?me.AFTER_HEAD:me.BEFORE_HEAD;return}case I.TD:case I.TH:{if(t>0){this.insertionMode=me.IN_CELL;return}break}case I.HEAD:{if(t>0){this.insertionMode=me.IN_HEAD;return}break}}this.insertionMode=me.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===I.TEMPLATE)break;if(r===I.TABLE){this.insertionMode=me.IN_SELECT_IN_TABLE;return}}this.insertionMode=me.IN_SELECT}_isElementCausesFosterParenting(t){return yee.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 I.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===st.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case I.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 SBe[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){N7e(this,t);return}switch(this.insertionMode){case me.INITIAL:{x0(this,t);break}case me.BEFORE_HTML:{Ib(this,t);break}case me.BEFORE_HEAD:{Nb(this,t);break}case me.IN_HEAD:{Db(this,t);break}case me.IN_HEAD_NO_SCRIPT:{Pb(this,t);break}case me.AFTER_HEAD:{Lb(this,t);break}case me.IN_BODY:case me.IN_CAPTION:case me.IN_CELL:case me.IN_TEMPLATE:{vee(this,t);break}case me.TEXT:case me.IN_SELECT:case me.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case me.IN_TABLE:case me.IN_TABLE_BODY:case me.IN_ROW:{HA(this,t);break}case me.IN_TABLE_TEXT:{xee(this,t);break}case me.IN_COLUMN_GROUP:{PT(this,t);break}case me.AFTER_BODY:{LT(this,t);break}case me.AFTER_AFTER_BODY:{VE(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){I7e(this,t);return}switch(this.insertionMode){case me.INITIAL:{x0(this,t);break}case me.BEFORE_HTML:{Ib(this,t);break}case me.BEFORE_HEAD:{Nb(this,t);break}case me.IN_HEAD:{Db(this,t);break}case me.IN_HEAD_NO_SCRIPT:{Pb(this,t);break}case me.AFTER_HEAD:{Lb(this,t);break}case me.TEXT:{this._insertCharacters(t);break}case me.IN_TABLE:case me.IN_TABLE_BODY:case me.IN_ROW:{HA(this,t);break}case me.IN_COLUMN_GROUP:{PT(this,t);break}case me.AFTER_BODY:{LT(this,t);break}case me.AFTER_AFTER_BODY:{VE(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){JR(this,t);return}switch(this.insertionMode){case me.INITIAL:case me.BEFORE_HTML:case me.BEFORE_HEAD:case me.IN_HEAD:case me.IN_HEAD_NO_SCRIPT:case me.AFTER_HEAD:case me.IN_BODY:case me.IN_TABLE:case me.IN_CAPTION:case me.IN_COLUMN_GROUP:case me.IN_TABLE_BODY:case me.IN_ROW:case me.IN_CELL:case me.IN_SELECT:case me.IN_SELECT_IN_TABLE:case me.IN_TEMPLATE:case me.IN_FRAMESET:case me.AFTER_FRAMESET:{JR(this,t);break}case me.IN_TABLE_TEXT:{C0(this,t);break}case me.AFTER_BODY:{u8e(this,t);break}case me.AFTER_AFTER_BODY:case me.AFTER_AFTER_FRAMESET:{c8e(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case me.INITIAL:{d8e(this,t);break}case me.BEFORE_HEAD:case me.IN_HEAD:case me.IN_HEAD_NO_SCRIPT:case me.AFTER_HEAD:{this._err(t,Xe.misplacedDoctype);break}case me.IN_TABLE_TEXT:{C0(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,Xe.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?D7e(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case me.INITIAL:{x0(this,t);break}case me.BEFORE_HTML:{f8e(this,t);break}case me.BEFORE_HEAD:{h8e(this,t);break}case me.IN_HEAD:{Fl(this,t);break}case me.IN_HEAD_NO_SCRIPT:{b8e(this,t);break}case me.AFTER_HEAD:{O8e(this,t);break}case me.IN_BODY:{jo(this,t);break}case me.IN_TABLE:{Jm(this,t);break}case me.IN_TABLE_TEXT:{C0(this,t);break}case me.IN_CAPTION:{m7e(this,t);break}case me.IN_COLUMN_GROUP:{d3(this,t);break}case me.IN_TABLE_BODY:{Wk(this,t);break}case me.IN_ROW:{Qk(this,t);break}case me.IN_CELL:{y7e(this,t);break}case me.IN_SELECT:{_ee(this,t);break}case me.IN_SELECT_IN_TABLE:{v7e(this,t);break}case me.IN_TEMPLATE:{S7e(this,t);break}case me.AFTER_BODY:{w7e(this,t);break}case me.IN_FRAMESET:{k7e(this,t);break}case me.AFTER_FRAMESET:{C7e(this,t);break}case me.AFTER_AFTER_BODY:{_7e(this,t);break}case me.AFTER_AFTER_FRAMESET:{R7e(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?P7e(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case me.INITIAL:{x0(this,t);break}case me.BEFORE_HTML:{p8e(this,t);break}case me.BEFORE_HEAD:{m8e(this,t);break}case me.IN_HEAD:{g8e(this,t);break}case me.IN_HEAD_NO_SCRIPT:{y8e(this,t);break}case me.AFTER_HEAD:{v8e(this,t);break}case me.IN_BODY:{Hk(this,t);break}case me.TEXT:{o7e(this,t);break}case me.IN_TABLE:{Yy(this,t);break}case me.IN_TABLE_TEXT:{C0(this,t);break}case me.IN_CAPTION:{g7e(this,t);break}case me.IN_COLUMN_GROUP:{b7e(this,t);break}case me.IN_TABLE_BODY:{eI(this,t);break}case me.IN_ROW:{Aee(this,t);break}case me.IN_CELL:{O7e(this,t);break}case me.IN_SELECT:{Ree(this,t);break}case me.IN_SELECT_IN_TABLE:{E7e(this,t);break}case me.IN_TEMPLATE:{T7e(this,t);break}case me.AFTER_BODY:{Nee(this,t);break}case me.IN_FRAMESET:{x7e(this,t);break}case me.AFTER_FRAMESET:{A7e(this,t);break}case me.AFTER_AFTER_BODY:{VE(this,t);break}}}onEof(t){switch(this.insertionMode){case me.INITIAL:{x0(this,t);break}case me.BEFORE_HTML:{Ib(this,t);break}case me.BEFORE_HEAD:{Nb(this,t);break}case me.IN_HEAD:{Db(this,t);break}case me.IN_HEAD_NO_SCRIPT:{Pb(this,t);break}case me.AFTER_HEAD:{Lb(this,t);break}case me.IN_BODY:case me.IN_TABLE:case me.IN_CAPTION:case me.IN_COLUMN_GROUP:case me.IN_TABLE_BODY:case me.IN_ROW:case me.IN_CELL:case me.IN_SELECT:case me.IN_SELECT_IN_TABLE:{wee(this,t);break}case me.TEXT:{a7e(this,t);break}case me.IN_TABLE_TEXT:{C0(this,t);break}case me.IN_TEMPLATE:{Iee(this,t);break}case me.AFTER_BODY:case me.IN_FRAMESET:case me.AFTER_FRAMESET:case me.AFTER_AFTER_BODY:case me.AFTER_AFTER_FRAMESET:{c3(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===ne.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case me.IN_HEAD:case me.IN_HEAD_NO_SCRIPT:case me.AFTER_HEAD:case me.TEXT:case me.IN_COLUMN_GROUP:case me.IN_SELECT:case me.IN_SELECT_IN_TABLE:case me.IN_FRAMESET:case me.AFTER_FRAMESET:{this._insertCharacters(t);break}case me.IN_BODY:case me.IN_CAPTION:case me.IN_CELL:case me.IN_TEMPLATE:case me.AFTER_BODY:case me.AFTER_AFTER_BODY:case me.AFTER_AFTER_FRAMESET:{Oee(this,t);break}case me.IN_TABLE:case me.IN_TABLE_BODY:case me.IN_ROW:{HA(this,t);break}case me.IN_TABLE_TEXT:{kee(this,t);break}}}}function r8e(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):Tee(e,t),n}function i8e(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 o8e(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let o=0,a=i;a!==n;o++,a=i){i=e.openElements.getCommonAncestor(a);const s=e.activeFormattingElements.getElementEntry(a),l=s&&o>=t8e;!s||l?(l&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(a)):(a=a8e(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function a8e(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 s8e(e,t,n){const r=e.treeAdapter.getTagName(t),i=_g(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const o=e.treeAdapter.getNamespaceURI(t);i===I.TEMPLATE&&o===st.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function l8e(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,o=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o,i.tagID)}function u3(e,t){for(let n=0;n=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const o=e.openElements.items[1],a=e.treeAdapter.getNodeSourceCodeLocation(o);a&&!a.endTag&&e._setEndLocation(o,t)}}}}function d8e(e,t){e._setDocumentType(t);const n=t.forceQuirks?es.QUIRKS:jBe(t);UBe(t)||e._err(t,Xe.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=me.BEFORE_HTML}function x0(e,t){e._err(t,Xe.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,es.QUIRKS),e.insertionMode=me.BEFORE_HTML,e._processToken(t)}function f8e(e,t){t.tagID===I.HTML?(e._insertElement(t,st.HTML),e.insertionMode=me.BEFORE_HEAD):Ib(e,t)}function p8e(e,t){const n=t.tagID;(n===I.HTML||n===I.HEAD||n===I.BODY||n===I.BR)&&Ib(e,t)}function Ib(e,t){e._insertFakeRootElement(),e.insertionMode=me.BEFORE_HEAD,e._processToken(t)}function h8e(e,t){switch(t.tagID){case I.HTML:{jo(e,t);break}case I.HEAD:{e._insertElement(t,st.HTML),e.headElement=e.openElements.current,e.insertionMode=me.IN_HEAD;break}default:Nb(e,t)}}function m8e(e,t){const n=t.tagID;n===I.HEAD||n===I.BODY||n===I.HTML||n===I.BR?Nb(e,t):e._err(t,Xe.endTagWithoutMatchingOpenElement)}function Nb(e,t){e._insertFakeElement(Fe.HEAD,I.HEAD),e.headElement=e.openElements.current,e.insertionMode=me.IN_HEAD,e._processToken(t)}function Fl(e,t){switch(t.tagID){case I.HTML:{jo(e,t);break}case I.BASE:case I.BASEFONT:case I.BGSOUND:case I.LINK:case I.META:{e._appendElement(t,st.HTML),t.ackSelfClosing=!0;break}case I.TITLE:{e._switchToTextParsing(t,mi.RCDATA);break}case I.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,mi.RAWTEXT):(e._insertElement(t,st.HTML),e.insertionMode=me.IN_HEAD_NO_SCRIPT);break}case I.NOFRAMES:case I.STYLE:{e._switchToTextParsing(t,mi.RAWTEXT);break}case I.SCRIPT:{e._switchToTextParsing(t,mi.SCRIPT_DATA);break}case I.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=me.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(me.IN_TEMPLATE);break}case I.HEAD:{e._err(t,Xe.misplacedStartTagForHeadElement);break}default:Db(e,t)}}function g8e(e,t){switch(t.tagID){case I.HEAD:{e.openElements.pop(),e.insertionMode=me.AFTER_HEAD;break}case I.BODY:case I.BR:case I.HTML:{Db(e,t);break}case I.TEMPLATE:{wp(e,t);break}default:e._err(t,Xe.endTagWithoutMatchingOpenElement)}}function wp(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==I.TEMPLATE&&e._err(t,Xe.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(I.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,Xe.endTagWithoutMatchingOpenElement)}function Db(e,t){e.openElements.pop(),e.insertionMode=me.AFTER_HEAD,e._processToken(t)}function b8e(e,t){switch(t.tagID){case I.HTML:{jo(e,t);break}case I.BASEFONT:case I.BGSOUND:case I.HEAD:case I.LINK:case I.META:case I.NOFRAMES:case I.STYLE:{Fl(e,t);break}case I.NOSCRIPT:{e._err(t,Xe.nestedNoscriptInHead);break}default:Pb(e,t)}}function y8e(e,t){switch(t.tagID){case I.NOSCRIPT:{e.openElements.pop(),e.insertionMode=me.IN_HEAD;break}case I.BR:{Pb(e,t);break}default:e._err(t,Xe.endTagWithoutMatchingOpenElement)}}function Pb(e,t){const n=t.type===Pn.EOF?Xe.openElementsLeftAfterEof:Xe.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=me.IN_HEAD,e._processToken(t)}function O8e(e,t){switch(t.tagID){case I.HTML:{jo(e,t);break}case I.BODY:{e._insertElement(t,st.HTML),e.framesetOk=!1,e.insertionMode=me.IN_BODY;break}case I.FRAMESET:{e._insertElement(t,st.HTML),e.insertionMode=me.IN_FRAMESET;break}case I.BASE:case I.BASEFONT:case I.BGSOUND:case I.LINK:case I.META:case I.NOFRAMES:case I.SCRIPT:case I.STYLE:case I.TEMPLATE:case I.TITLE:{e._err(t,Xe.abandonedHeadElementChild),e.openElements.push(e.headElement,I.HEAD),Fl(e,t),e.openElements.remove(e.headElement);break}case I.HEAD:{e._err(t,Xe.misplacedStartTagForHeadElement);break}default:Lb(e,t)}}function v8e(e,t){switch(t.tagID){case I.BODY:case I.HTML:case I.BR:{Lb(e,t);break}case I.TEMPLATE:{wp(e,t);break}default:e._err(t,Xe.endTagWithoutMatchingOpenElement)}}function Lb(e,t){e._insertFakeElement(Fe.BODY,I.BODY),e.insertionMode=me.IN_BODY,Vk(e,t)}function Vk(e,t){switch(t.type){case Pn.CHARACTER:{vee(e,t);break}case Pn.WHITESPACE_CHARACTER:{Oee(e,t);break}case Pn.COMMENT:{JR(e,t);break}case Pn.START_TAG:{jo(e,t);break}case Pn.END_TAG:{Hk(e,t);break}case Pn.EOF:{wee(e,t);break}}}function Oee(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function vee(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function E8e(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function S8e(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function T8e(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,st.HTML),e.insertionMode=me.IN_FRAMESET)}function w8e(e,t){e.openElements.hasInButtonScope(I.P)&&e._closePElement(),e._insertElement(t,st.HTML)}function k8e(e,t){e.openElements.hasInButtonScope(I.P)&&e._closePElement(),lee(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,st.HTML)}function x8e(e,t){e.openElements.hasInButtonScope(I.P)&&e._closePElement(),e._insertElement(t,st.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function C8e(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(I.P)&&e._closePElement(),e._insertElement(t,st.HTML),n||(e.formElement=e.openElements.current))}function A8e(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===I.LI&&i===I.LI||(n===I.DD||n===I.DT)&&(i===I.DD||i===I.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==I.ADDRESS&&i!==I.DIV&&i!==I.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(I.P)&&e._closePElement(),e._insertElement(t,st.HTML)}function _8e(e,t){e.openElements.hasInButtonScope(I.P)&&e._closePElement(),e._insertElement(t,st.HTML),e.tokenizer.state=mi.PLAINTEXT}function R8e(e,t){e.openElements.hasInScope(I.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(I.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML),e.framesetOk=!1}function I8e(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(Fe.A);n&&(u3(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function N8e(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function D8e(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(I.NOBR)&&(u3(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,st.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function P8e(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function L8e(e,t){e.treeAdapter.getDocumentMode(e.document)!==es.QUIRKS&&e.openElements.hasInButtonScope(I.P)&&e._closePElement(),e._insertElement(t,st.HTML),e.framesetOk=!1,e.insertionMode=me.IN_TABLE}function Eee(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,st.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function See(e){const t=oee(e,_d.TYPE);return t!=null&&t.toLowerCase()===JBe}function M8e(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,st.HTML),See(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function $8e(e,t){e._appendElement(t,st.HTML),t.ackSelfClosing=!0}function F8e(e,t){e.openElements.hasInButtonScope(I.P)&&e._closePElement(),e._appendElement(t,st.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function B8e(e,t){t.tagName=Fe.IMG,t.tagID=I.IMG,Eee(e,t)}function U8e(e,t){e._insertElement(t,st.HTML),e.skipNextNewLine=!0,e.tokenizer.state=mi.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=me.TEXT}function j8e(e,t){e.openElements.hasInButtonScope(I.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,mi.RAWTEXT)}function z8e(e,t){e.framesetOk=!1,e._switchToTextParsing(t,mi.RAWTEXT)}function Jj(e,t){e._switchToTextParsing(t,mi.RAWTEXT)}function V8e(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===me.IN_TABLE||e.insertionMode===me.IN_CAPTION||e.insertionMode===me.IN_TABLE_BODY||e.insertionMode===me.IN_ROW||e.insertionMode===me.IN_CELL?me.IN_SELECT_IN_TABLE:me.IN_SELECT}function H8e(e,t){e.openElements.currentTagId===I.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML)}function W8e(e,t){e.openElements.hasInScope(I.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,st.HTML)}function Q8e(e,t){e.openElements.hasInScope(I.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(I.RTC),e._insertElement(t,st.HTML)}function Y8e(e,t){e._reconstructActiveFormattingElements(),gee(t),l3(t),t.selfClosing?e._appendElement(t,st.MATHML):e._insertElement(t,st.MATHML),t.ackSelfClosing=!0}function G8e(e,t){e._reconstructActiveFormattingElements(),bee(t),l3(t),t.selfClosing?e._appendElement(t,st.SVG):e._insertElement(t,st.SVG),t.ackSelfClosing=!0}function ez(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML)}function jo(e,t){switch(t.tagID){case I.I:case I.S:case I.B:case I.U:case I.EM:case I.TT:case I.BIG:case I.CODE:case I.FONT:case I.SMALL:case I.STRIKE:case I.STRONG:{N8e(e,t);break}case I.A:{I8e(e,t);break}case I.H1:case I.H2:case I.H3:case I.H4:case I.H5:case I.H6:{k8e(e,t);break}case I.P:case I.DL:case I.OL:case I.UL:case I.DIV:case I.DIR:case I.NAV:case I.MAIN:case I.MENU:case I.ASIDE:case I.CENTER:case I.FIGURE:case I.FOOTER:case I.HEADER:case I.HGROUP:case I.DIALOG:case I.DETAILS:case I.ADDRESS:case I.ARTICLE:case I.SECTION:case I.SUMMARY:case I.FIELDSET:case I.BLOCKQUOTE:case I.FIGCAPTION:{w8e(e,t);break}case I.LI:case I.DD:case I.DT:{A8e(e,t);break}case I.BR:case I.IMG:case I.WBR:case I.AREA:case I.EMBED:case I.KEYGEN:{Eee(e,t);break}case I.HR:{F8e(e,t);break}case I.RB:case I.RTC:{W8e(e,t);break}case I.RT:case I.RP:{Q8e(e,t);break}case I.PRE:case I.LISTING:{x8e(e,t);break}case I.XMP:{j8e(e,t);break}case I.SVG:{G8e(e,t);break}case I.HTML:{E8e(e,t);break}case I.BASE:case I.LINK:case I.META:case I.STYLE:case I.TITLE:case I.SCRIPT:case I.BGSOUND:case I.BASEFONT:case I.TEMPLATE:{Fl(e,t);break}case I.BODY:{S8e(e,t);break}case I.FORM:{C8e(e,t);break}case I.NOBR:{D8e(e,t);break}case I.MATH:{Y8e(e,t);break}case I.TABLE:{L8e(e,t);break}case I.INPUT:{M8e(e,t);break}case I.PARAM:case I.TRACK:case I.SOURCE:{$8e(e,t);break}case I.IMAGE:{B8e(e,t);break}case I.BUTTON:{R8e(e,t);break}case I.APPLET:case I.OBJECT:case I.MARQUEE:{P8e(e,t);break}case I.IFRAME:{z8e(e,t);break}case I.SELECT:{V8e(e,t);break}case I.OPTION:case I.OPTGROUP:{H8e(e,t);break}case I.NOEMBED:{Jj(e,t);break}case I.FRAMESET:{T8e(e,t);break}case I.TEXTAREA:{U8e(e,t);break}case I.NOSCRIPT:{e.options.scriptingEnabled?Jj(e,t):ez(e,t);break}case I.PLAINTEXT:{_8e(e,t);break}case I.COL:case I.TH:case I.TD:case I.TR:case I.HEAD:case I.FRAME:case I.TBODY:case I.TFOOT:case I.THEAD:case I.CAPTION:case I.COLGROUP:break;default:ez(e,t)}}function q8e(e,t){if(e.openElements.hasInScope(I.BODY)&&(e.insertionMode=me.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function Z8e(e,t){e.openElements.hasInScope(I.BODY)&&(e.insertionMode=me.AFTER_BODY,Nee(e,t))}function X8e(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function K8e(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(I.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(I.FORM):n&&e.openElements.remove(n))}function J8e(e){e.openElements.hasInButtonScope(I.P)||e._insertFakeElement(Fe.P,I.P),e._closePElement()}function e7e(e){e.openElements.hasInListItemScope(I.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(I.LI),e.openElements.popUntilTagNamePopped(I.LI))}function t7e(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function n7e(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function r7e(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function i7e(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Fe.BR,I.BR),e.openElements.pop(),e.framesetOk=!1}function Tee(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const o=e.openElements.items[i],a=e.openElements.tagIDs[i];if(r===a&&(r!==I.UNKNOWN||e.treeAdapter.getTagName(o)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(o,a))break}}function Hk(e,t){switch(t.tagID){case I.A:case I.B:case I.I:case I.S:case I.U:case I.EM:case I.TT:case I.BIG:case I.CODE:case I.FONT:case I.NOBR:case I.SMALL:case I.STRIKE:case I.STRONG:{u3(e,t);break}case I.P:{J8e(e);break}case I.DL:case I.UL:case I.OL:case I.DIR:case I.DIV:case I.NAV:case I.PRE:case I.MAIN:case I.MENU:case I.ASIDE:case I.BUTTON:case I.CENTER:case I.FIGURE:case I.FOOTER:case I.HEADER:case I.HGROUP:case I.DIALOG:case I.ADDRESS:case I.ARTICLE:case I.DETAILS:case I.SECTION:case I.SUMMARY:case I.LISTING:case I.FIELDSET:case I.BLOCKQUOTE:case I.FIGCAPTION:{X8e(e,t);break}case I.LI:{e7e(e);break}case I.DD:case I.DT:{t7e(e,t);break}case I.H1:case I.H2:case I.H3:case I.H4:case I.H5:case I.H6:{n7e(e);break}case I.BR:{i7e(e);break}case I.BODY:{q8e(e,t);break}case I.HTML:{Z8e(e,t);break}case I.FORM:{K8e(e);break}case I.APPLET:case I.OBJECT:case I.MARQUEE:{r7e(e,t);break}case I.TEMPLATE:{wp(e,t);break}default:Tee(e,t)}}function wee(e,t){e.tmplInsertionModeStack.length>0?Iee(e,t):c3(e,t)}function o7e(e,t){var n;t.tagID===I.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function a7e(e,t){e._err(t,Xe.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function HA(e,t){if(yee.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=me.IN_TABLE_TEXT,t.type){case Pn.CHARACTER:{xee(e,t);break}case Pn.WHITESPACE_CHARACTER:{kee(e,t);break}}else rO(e,t)}function s7e(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,st.HTML),e.insertionMode=me.IN_CAPTION}function l7e(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,st.HTML),e.insertionMode=me.IN_COLUMN_GROUP}function u7e(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Fe.COLGROUP,I.COLGROUP),e.insertionMode=me.IN_COLUMN_GROUP,d3(e,t)}function c7e(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,st.HTML),e.insertionMode=me.IN_TABLE_BODY}function d7e(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Fe.TBODY,I.TBODY),e.insertionMode=me.IN_TABLE_BODY,Wk(e,t)}function f7e(e,t){e.openElements.hasInTableScope(I.TABLE)&&(e.openElements.popUntilTagNamePopped(I.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function p7e(e,t){See(t)?e._appendElement(t,st.HTML):rO(e,t),t.ackSelfClosing=!0}function h7e(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,st.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Jm(e,t){switch(t.tagID){case I.TD:case I.TH:case I.TR:{d7e(e,t);break}case I.STYLE:case I.SCRIPT:case I.TEMPLATE:{Fl(e,t);break}case I.COL:{u7e(e,t);break}case I.FORM:{h7e(e,t);break}case I.TABLE:{f7e(e,t);break}case I.TBODY:case I.TFOOT:case I.THEAD:{c7e(e,t);break}case I.INPUT:{p7e(e,t);break}case I.CAPTION:{s7e(e,t);break}case I.COLGROUP:{l7e(e,t);break}default:rO(e,t)}}function Yy(e,t){switch(t.tagID){case I.TABLE:{e.openElements.hasInTableScope(I.TABLE)&&(e.openElements.popUntilTagNamePopped(I.TABLE),e._resetInsertionMode());break}case I.TEMPLATE:{wp(e,t);break}case I.BODY:case I.CAPTION:case I.COL:case I.COLGROUP:case I.HTML:case I.TBODY:case I.TD:case I.TFOOT:case I.TH:case I.THEAD:case I.TR:break;default:rO(e,t)}}function rO(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Vk(e,t),e.fosterParentingEnabled=n}function kee(e,t){e.pendingCharacterTokens.push(t)}function xee(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function C0(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&e.openElements.currentTagId===I.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===I.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===I.OPTGROUP&&e.openElements.pop();break}case I.OPTION:{e.openElements.currentTagId===I.OPTION&&e.openElements.pop();break}case I.SELECT:{e.openElements.hasInSelectScope(I.SELECT)&&(e.openElements.popUntilTagNamePopped(I.SELECT),e._resetInsertionMode());break}case I.TEMPLATE:{wp(e,t);break}}}function v7e(e,t){const n=t.tagID;n===I.CAPTION||n===I.TABLE||n===I.TBODY||n===I.TFOOT||n===I.THEAD||n===I.TR||n===I.TD||n===I.TH?(e.openElements.popUntilTagNamePopped(I.SELECT),e._resetInsertionMode(),e._processStartTag(t)):_ee(e,t)}function E7e(e,t){const n=t.tagID;n===I.CAPTION||n===I.TABLE||n===I.TBODY||n===I.TFOOT||n===I.THEAD||n===I.TR||n===I.TD||n===I.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(I.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Ree(e,t)}function S7e(e,t){switch(t.tagID){case I.BASE:case I.BASEFONT:case I.BGSOUND:case I.LINK:case I.META:case I.NOFRAMES:case I.SCRIPT:case I.STYLE:case I.TEMPLATE:case I.TITLE:{Fl(e,t);break}case I.CAPTION:case I.COLGROUP:case I.TBODY:case I.TFOOT:case I.THEAD:{e.tmplInsertionModeStack[0]=me.IN_TABLE,e.insertionMode=me.IN_TABLE,Jm(e,t);break}case I.COL:{e.tmplInsertionModeStack[0]=me.IN_COLUMN_GROUP,e.insertionMode=me.IN_COLUMN_GROUP,d3(e,t);break}case I.TR:{e.tmplInsertionModeStack[0]=me.IN_TABLE_BODY,e.insertionMode=me.IN_TABLE_BODY,Wk(e,t);break}case I.TD:case I.TH:{e.tmplInsertionModeStack[0]=me.IN_ROW,e.insertionMode=me.IN_ROW,Qk(e,t);break}default:e.tmplInsertionModeStack[0]=me.IN_BODY,e.insertionMode=me.IN_BODY,jo(e,t)}}function T7e(e,t){t.tagID===I.TEMPLATE&&wp(e,t)}function Iee(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(I.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):c3(e,t)}function w7e(e,t){t.tagID===I.HTML?jo(e,t):LT(e,t)}function Nee(e,t){var n;if(t.tagID===I.HTML){if(e.fragmentContext||(e.insertionMode=me.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===I.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 LT(e,t)}function LT(e,t){e.insertionMode=me.IN_BODY,Vk(e,t)}function k7e(e,t){switch(t.tagID){case I.HTML:{jo(e,t);break}case I.FRAMESET:{e._insertElement(t,st.HTML);break}case I.FRAME:{e._appendElement(t,st.HTML),t.ackSelfClosing=!0;break}case I.NOFRAMES:{Fl(e,t);break}}}function x7e(e,t){t.tagID===I.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==I.FRAMESET&&(e.insertionMode=me.AFTER_FRAMESET))}function C7e(e,t){switch(t.tagID){case I.HTML:{jo(e,t);break}case I.NOFRAMES:{Fl(e,t);break}}}function A7e(e,t){t.tagID===I.HTML&&(e.insertionMode=me.AFTER_AFTER_FRAMESET)}function _7e(e,t){t.tagID===I.HTML?jo(e,t):VE(e,t)}function VE(e,t){e.insertionMode=me.IN_BODY,Vk(e,t)}function R7e(e,t){switch(t.tagID){case I.HTML:{jo(e,t);break}case I.NOFRAMES:{Fl(e,t);break}}}function I7e(e,t){t.chars=Ur,e._insertCharacters(t)}function N7e(e,t){e._insertCharacters(t),e.framesetOk=!1}function Dee(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==st.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function D7e(e,t){if(GBe(t))Dee(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===st.MATHML?gee(t):r===st.SVG&&(qBe(t),bee(t)),l3(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function P7e(e,t){if(t.tagID===I.P||t.tagID===I.BR){Dee(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===st.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}Fe.AREA,Fe.BASE,Fe.BASEFONT,Fe.BGSOUND,Fe.BR,Fe.COL,Fe.EMBED,Fe.FRAME,Fe.HR,Fe.IMG,Fe.INPUT,Fe.KEYGEN,Fe.LINK,Fe.META,Fe.PARAM,Fe.SOURCE,Fe.TRACK,Fe.WBR;const L7e=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),tz={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Pee(e,t){const n=W7e(e),r=n3("type",{handlers:{root:M7e,element:$7e,text:F7e,comment:Mee,doctype:B7e,raw:j7e},unknown:z7e}),i={parser:n?new Kj(tz):Kj.getFragmentParser(void 0,tz),handle(s){r(s,i)},stitches:!1,options:t||{}};r(e,i),Rg(i,Mu());const o=n?i.parser.document:i.parser.getFragment(),a=Y6e(o,{file:i.options.file});return i.stitches&&_a(a,"comment",function(s,l,u){const c=s;if(c.value.stitch&&u&&l!==void 0){const d=u.children;return d[l]=c.value.stitch,l}}),a.type==="root"&&a.children.length===1&&a.children[0].type===e.type?a.children[0]:a}function Lee(e,t){let n=-1;if(e)for(;++n"u")return;const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style={position:"absolute",left:"-9999px"},document.body.appendChild(n);const r=document.getSelection().rangeCount>0?document.getSelection().getRangeAt(0):!1;n.select();let i=!1;try{i=!!document.execCommand("copy")}catch{i=!1}document.body.removeChild(n),r&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(r)),t&&t(i)}function Bee(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?Bee(t.parentElement):null}function G7e(e){var t=n=>{var r=Bee(n.target);r&&(r.classList.add("active"),Y7e(r.dataset.code,function(){setTimeout(()=>{r.classList.remove("active")},2e3)}))};N.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 q7e=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],Z7e=e=>e;const X7e=vn.forwardRef((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:i,style:o,disableCopy:a=!1,skipHtml:s=!0,onScroll:l,onMouseOver:u,pluginsFilter:c,wrapperElement:d={},warpperElement:p={},urlTransform:h}=e,m=Ge(e,q7e),y=vn.useRef(null);N.useImperativeHandle(t,()=>L({},e,{mdp:y}),[y,e]);var O=(n||"")+" "+(r||"");G7e(y);var b=[...m.rehypePlugins||[]],v={allowElement:(C,w,E)=>m.allowElement?m.allowElement(C,w,E):/^[A-Za-z0-9]+$/.test(C.tagName)};s&&b.push(Fee);var S=[...m.remarkPlugins||[],L6e],k=L({},p,d);return M.jsx("div",L({ref:y,onScroll:l,onMouseOver:u},k,{className:O,style:o,children:M.jsx(w$e,L({},v,m,{skipHtml:s,urlTransform:h||Z7e,rehypePlugins:c?c("rehype",b):b,remarkPlugins:c?c("remark",S):S,children:i||""}))}))});function Fh(e){return"children"in e?Uee(e):"value"in e?e.value:""}function K7e(e){return e.type==="text"?e.value:"children"in e?Uee(e):""}function Uee(e){let t=-1;const n=[];for(;++t0&&c.length===0)return}const d={};let p;for(p in s)J7e.call(s,p)&&(d[p]=p==="children"?c:s[p]);return d}}function tUe(e){return"children"in e&&e.children!==void 0}var tI={exports:{}};(function(e,t){function n(r){let i=[],o;for(let a of r.split(",").map(s=>s.trim()))if(/^-?\d+$/.test(a))i.push(parseInt(a,10));else if(o=a.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[s,l,u,c]=o;if(l&&c){l=parseInt(l),c=parseInt(c);const d=l]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}Bl.displayName="c";Bl.aliases=[];function Bl(e){e.register(jn),e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}kp.displayName="cpp";kp.aliases=[];function kp(e){e.register(Bl),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)}Yk.displayName="arduino";Yk.aliases=["ino"];function Yk(e){e.register(kp),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}oO.displayName="bash";oO.aliases=["sh","shell"];function oO(e){(function(t){var n="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},i={bash:r,environment:{pattern:RegExp("\\$"+n),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+n),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+n),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:i},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:i},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:i.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:i.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=t.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],a=i.variable[1].inside,s=0;s>/g,function(Ee,G){return"(?:"+le[+G]+")"})}function r(j,le,Ee){return RegExp(n(j,le),Ee||"")}function i(j,le){for(var Ee=0;Ee>/g,function(){return"(?:"+j+")"});return j.replace(/<>/g,"[^\\s\\S]")}var o={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function a(j){return"\\b(?:"+j.trim().replace(/ /g,"|")+")\\b"}var s=a(o.typeDeclaration),l=RegExp(a(o.type+" "+o.typeDeclaration+" "+o.contextual+" "+o.other)),u=a(o.typeDeclaration+" "+o.contextual+" "+o.other),c=a(o.type+" "+o.typeDeclaration+" "+o.other),d=i(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),p=i(/\((?:[^()]|<>)*\)/.source,2),h=/@?\b[A-Za-z_]\w*\b/.source,m=n(/<<0>>(?:\s*<<1>>)?/.source,[h,d]),y=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[u,m]),O=/\[\s*(?:,\s*)*\]/.source,b=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,O]),v=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[d,p,O]),S=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[v]),k=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[S,y,O]),C={keyword:l,punctuation:/[<>()?,.:[\]]/},w=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,E=/"(?:\\.|[^\\"\r\n])*"/.source,$=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[$]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[E]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:C},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[h,k]),lookbehind:!0,inside:C},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[h]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[s,m]),lookbehind:!0,inside:C},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:C},{pattern:r(/(\bwhere\s+)<<0>>/.source,[h]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:C},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[k,c,h]),inside:C}],keyword:l,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[h]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[h]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[p]),lookbehind:!0,alias:"class-name",inside:C},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[k,y]),inside:C,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[k]),lookbehind:!0,inside:C,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[h,d]),inside:{function:r(/^<<0>>/.source,[h]),generic:{pattern:RegExp(d),alias:"class-name",inside:C}}},"type-list":{pattern:r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[s,m,h,k,l.source,p,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[m,p]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:l,"class-name":{pattern:RegExp(k),greedy:!0,inside:C},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var D=E+"|"+w,R=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[D]),B=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[R]),2),U=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,V=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,B]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[U,V]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[U]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[B]),inside:t.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var z=/:[^}\r\n]+/.source,Q=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[R]),2),X=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Q,z]),Z=i(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[D]),2),Y=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Z,z]);function q(j,le){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[j]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[le,z]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[X]),lookbehind:!0,greedy:!0,inside:q(X,Q)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[Y]),lookbehind:!0,greedy:!0,inside:q(Y,Z)}],char:{pattern:RegExp(w),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp}(e)}Ji.displayName="markup";Ji.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function Ji(e){e.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var i={};i["language-"+r]={pattern:/(^$)/i,lookbehind:!0,inside:e.languages[r]},i.cdata=/^$/i;var o={"included-cdata":{pattern://i,inside:i}};o["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var a={};a[n]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:o},e.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}Jd.displayName="css";Jd.aliases=[];function Jd(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)}Gk.displayName="diff";Gk.aliases=[];function Gk(e){(function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var n={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(n).forEach(function(r){var i=n[r],o=[];/^\w+$/.test(r)||o.push(/\w+/.exec(r)[0]),r==="diff"&&o.push("bold"),t.languages.diff[r]={pattern:RegExp("^(?:["+i+`].*(?:\r +`,...o.current()});return/^[\t ]/.test(u)&&(u="&#x"+u.charCodeAt(0).toString(16).toUpperCase()+";"+u.slice(1)),u=u?a+" "+u:a,n.options.closeAtx&&(u+=" "+a),l(),s(),u}lee.peek=u6e;function lee(e){return e.value||""}function u6e(){return"<"}uee.peek=c6e;function uee(e,t,n,r){const i=T3(n),o=i==='"'?"Quote":"Apostrophe",a=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let u=l.move("![");return u+=l.move(n.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),s()),u+=l.move(")"),a(),u}function c6e(){return"!"}cee.peek=d6e;function cee(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const u=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),a();const c=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=c,o(),i==="full"||!u||u!==d?l+=s.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function d6e(){return"!"}dee.peek=f6e;function dee(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o\u007F]/.test(e.url))}pee.peek=p6e;function pee(e,t,n,r){const i=T3(n),o=i==='"'?"Quote":"Apostrophe",a=n.createTracker(r);let s,l;if(fee(e,n)){const c=n.stack;n.stack=[],s=n.enter("autolink");let d=a.move("<");return d+=a.move(n.containerPhrasing(e,{before:d,after:">",...a.current()})),d+=a.move(">"),s(),n.stack=c,d}s=n.enter("link"),l=n.enter("label");let u=a.move("[");return u+=a.move(n.containerPhrasing(e,{before:u,after:"](",...a.current()})),u+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(l=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":")",...a.current()}))),l(),e.title&&(l=n.enter(`title${o}`),u+=a.move(" "+i),u+=a.move(n.safe(e.title,{before:u,after:i,...a.current()})),u+=a.move(i),l()),u+=a.move(")"),s(),u}function p6e(e,t,n){return fee(e,n)?"<":"["}hee.peek=h6e;function hee(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const u=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),a();const c=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=c,o(),i==="full"||!u||u!==d?l+=s.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function h6e(){return"["}function w3(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 m6e(e){const t=w3(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 g6e(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 mee(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 b6e(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let a=e.ordered?g6e(n):w3(n);const s=e.ordered?a==="."?")":".":m6e(n);let l=t&&n.bulletLastUsed?a===n.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((a==="*"||a==="-")&&c&&(!c.children||!c.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),mee(n)===a&&c){let d=-1;for(;++d-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let a=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4);const s=n.createTracker(r);s.move(o+" ".repeat(a-o.length)),s.shift(a);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,s.current()),c);return l(),u;function c(d,p,h){return p?(h?"":" ".repeat(a))+d:(h?o:o+" ".repeat(a-o.length))+d}}function v6e(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),a=n.containerPhrasing(e,r);return o(),i(),a}const E6e=mO(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","link","linkReference","strong","text"]);function S6e(e,t,n,r){return(e.children.some(function(a){return E6e(a)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function T6e(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}gee.peek=w6e;function gee(e,t,n,r){const i=T6e(n),o=n.enter("strong"),a=n.createTracker(r);let s=a.move(i+i);return s+=a.move(n.containerPhrasing(e,{before:s,after:i,...a.current()})),s+=a.move(i+i),o(),s}function w6e(e,t,n){return n.options.strong||"*"}function k6e(e,t,n,r){return n.safe(e.value,r)}function x6e(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 C6e(e,t,n){const r=(mee(n)+(n.options.ruleSpaces?" ":"")).repeat(x6e(n));return n.options.ruleSpaces?r.slice(0,-1):r}const bee={blockquote:ZFe,break:iz,code:n6e,definition:i6e,emphasis:see,hardBreak:iz,heading:l6e,html:lee,image:uee,imageReference:cee,inlineCode:dee,link:pee,linkReference:hee,list:b6e,listItem:O6e,paragraph:v6e,root:S6e,strong:gee,text:k6e,thematicBreak:C6e};function A6e(){return{enter:{table:_6e,tableData:oz,tableHeader:oz,tableRow:I6e},exit:{codeText:D6e,table:R6e,tableData:r2,tableHeader:r2,tableRow:r2}}}function _6e(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 R6e(e){this.exit(e),this.data.inTable=void 0}function I6e(e){this.enter({type:"tableRow",children:[]},e)}function r2(e){this.exit(e)}function oz(e){this.enter({type:"tableCell",children:[]},e)}function D6e(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,N6e));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function N6e(e,t){return t==="|"?t:e}function P6e(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` +`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:a,tableCell:l,tableRow:s}};function a(h,m,b,O){return u(c(h,b,O),h.align)}function s(h,m,b,O){const y=d(h,b,O),v=u([y]);return v.slice(0,v.indexOf(` +`))}function l(h,m,b,O){const y=b.enter("tableCell"),v=b.enter("phrasing"),S=b.containerPhrasing(h,{...O,before:o,after:o});return v(),y(),S}function u(h,m){return YFe(h,{align:m,alignDelimiters:r,padding:n,stringLength:i})}function c(h,m,b){const O=h.children;let y=-1;const v=[],S=m.enter("table");for(;++y0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const K6e={tokenize:aBe,partial:!0};function J6e(){return{document:{91:{tokenize:rBe,continuation:{tokenize:iBe},exit:oBe}},text:{91:{tokenize:nBe},93:{add:"after",tokenize:eBe,resolveTo:tBe}}}}function eBe(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){a=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!a||!a._balanced)return n(l);const u=Rl(r.sliceSerialize({start:a.end,end:r.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function tBe(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function nBe(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,a;return s;function s(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(d){if(o>999||d===93&&!a||d===null||d===91||yr(d))return n(d);if(d===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(Rl(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return yr(d)||(a=!0),o++,e.consume(d),d===92?c:u}function c(d){return d===91||d===92||d===93?(e.consume(d),o++,u):u(d)}}function rBe(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a=0,s;return l;function l(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(m)}function c(m){if(a>999||m===93&&!s||m===null||m===91||yr(m))return n(m);if(m===93){e.exit("chunkString");const b=e.exit("gfmFootnoteDefinitionLabelString");return o=Rl(r.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return yr(m)||(s=!0),a++,e.consume(m),m===92?d:c}function d(m){return m===91||m===92||m===93?(e.consume(m),a++,c):c(m)}function p(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),i.includes(o)||i.push(o),Kn(e,h,"gfmFootnoteDefinitionWhitespace")):n(m)}function h(m){return t(m)}}function iBe(e,t,n){return e.check(hO,t,e.attempt(K6e,t,n))}function oBe(e){e.exit("gfmFootnoteDefinition")}function aBe(e,t,n){const r=this;return Kn(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(o):n(o)}}function sBe(e){let n=(e||{}).singleTilde;const r={tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(a,s){let l=-1;for(;++l1?l(m):(a.consume(m),d++,h);if(d<2&&!n)return l(m);const O=a.exit("strikethroughSequenceTemporary"),y=QT(m);return O._open=!y||y===2&&!!b,O._close=!b||b===2&&!!y,s(m)}}}class lBe{constructor(){this.map=[]}add(t,n,r){uBe(this,t,n,r)}consume(t){if(this.map.sort(function(o,a){return o[0]-a[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push([...t]),t.length=0;let i=r.pop();for(;i;)t.push(...i),i=r.pop();this.map.length=0}}function uBe(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const z=r.events[B][1].type;if(z==="lineEnding"||z==="linePrefix")B--;else break}const U=B>-1?r.events[B][1].type:null,V=U==="tableHead"||U==="tableRow"?w:l;return V===w&&r.parser.lazy[r.now().line]?n(R):V(R)}function l(R){return e.enter("tableHead"),e.enter("tableRow"),u(R)}function u(R){return R===124||(a=!0,o+=1),c(R)}function c(R){return R===null?n(R):gn(R)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),h):n(R):Un(R)?Kn(e,c,"whitespace")(R):(o+=1,a&&(a=!1,i+=1),R===124?(e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),a=!0,c):(e.enter("data"),d(R)))}function d(R){return R===null||R===124||yr(R)?(e.exit("data"),c(R)):(e.consume(R),R===92?p:d)}function p(R){return R===92||R===124?(e.consume(R),d):d(R)}function h(R){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(R):(e.enter("tableDelimiterRow"),a=!1,Un(R)?Kn(e,m,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):m(R))}function m(R){return R===45||R===58?O(R):R===124?(a=!0,e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),b):C(R)}function b(R){return Un(R)?Kn(e,O,"whitespace")(R):O(R)}function O(R){return R===58?(o+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(R),e.exit("tableDelimiterMarker"),y):R===45?(o+=1,y(R)):R===null||gn(R)?k(R):C(R)}function y(R){return R===45?(e.enter("tableDelimiterFiller"),v(R)):C(R)}function v(R){return R===45?(e.consume(R),v):R===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(R),e.exit("tableDelimiterMarker"),S):(e.exit("tableDelimiterFiller"),S(R))}function S(R){return Un(R)?Kn(e,k,"whitespace")(R):k(R)}function k(R){return R===124?m(R):R===null||gn(R)?!a||i!==o?C(R):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(R)):C(R)}function C(R){return n(R)}function w(R){return e.enter("tableRow"),E(R)}function E(R){return R===124?(e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),E):R===null||gn(R)?(e.exit("tableRow"),t(R)):Un(R)?Kn(e,E,"whitespace")(R):(e.enter("data"),$(R))}function $(R){return R===null||R===124||yr(R)?(e.exit("data"),E(R)):(e.consume(R),R===92?N:$)}function N(R){return R===92||R===124?(e.consume(R),$):$(R)}}function pBe(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],a=[0,0,0,0],s=!1,l=0,u,c,d;const p=new lBe;for(;++nn[2]+1){const m=n[2]+1,b=n[3]-n[2]-1;e.add(m,b,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(o.end=Object.assign({},xh(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function sz(e,t,n,r,i){const o=[],a=xh(t.events,n);i&&(i.end=Object.assign({},a),o.push(["exit",i,t])),r.end=Object.assign({},a),o.push(["exit",r,t]),e.add(n+1,0,o)}function xh(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const hBe={tokenize:gBe};function mBe(){return{text:{91:hBe}}}function gBe(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),o)}function o(l){return yr(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),a):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),a):n(l)}function a(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(l)}function s(l){return gn(l)?t(l):Un(l)?e.check({tokenize:bBe},t,n)(l):n(l)}}function bBe(e,t,n){return Kn(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function yBe(e){return LJ([V6e(),J6e(),sBe(e),dBe(),mBe()])}const OBe={};function vBe(e){const t=this,n=e||OBe,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(yBe(n)),o.push(B6e()),a.push(U6e(n))}const lz=/[#.]/g;function EBe(e,t){const n=e||"",r={};let i=0,o,a;for(;i-1&&oo)return{line:a+1,column:o-(a>0?n[a-1]:0)+1,offset:o}}}function i(o){const a=o&&o.line,s=o&&o.column;if(typeof a=="number"&&typeof s=="number"&&!Number.isNaN(a)&&!Number.isNaN(s)&&a-1 in n){const l=(n[a-2]||0)+s-1||0;if(l>-1&&l=55296&&e<=57343}function YBe(e){return e>=56320&&e<=57343}function GBe(e,t){return(e-55296)*1024+9216+t}function Iee(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Dee(e){return e>=64976&&e<=65007||QBe.has(e)}var Xe;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(Xe=Xe||(Xe={}));const qBe=65536;class ZBe{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=qBe,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(YBe(n))return this.pos++,this._addGap(),GBe(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,ne.EOF;return this._err(Xe.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,ne.EOF;const r=this.html.charCodeAt(n);return r===ne.CARRIAGE_RETURN?ne.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,ne.EOF;let t=this.html.charCodeAt(this.pos);return t===ne.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,ne.LINE_FEED):t===ne.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Ree(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===ne.LINE_FEED||t===ne.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Iee(t)?this._err(Xe.controlCharacterInInputStream):Dee(t)&&this._err(Xe.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const Qc=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))),XBe=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var o2;const KBe=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]]),JBe=(o2=String.fromCodePoint)!==null&&o2!==void 0?o2: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 e8e(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=KBe.get(e))!==null&&t!==void 0?t:e}var qi;(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"})(qi||(qi={}));const t8e=32;var vu;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(vu||(vu={}));function yI(e){return e>=qi.ZERO&&e<=qi.NINE}function n8e(e){return e>=qi.UPPER_A&&e<=qi.UPPER_F||e>=qi.LOWER_A&&e<=qi.LOWER_F}function r8e(e){return e>=qi.UPPER_A&&e<=qi.UPPER_Z||e>=qi.LOWER_A&&e<=qi.LOWER_Z||yI(e)}function i8e(e){return e===qi.EQUALS||r8e(e)}var Hi;(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"})(Hi||(Hi={}));var Nf;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Nf||(Nf={}));class o8e{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Hi.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Nf.Strict}startEntity(t){this.decodeMode=t,this.state=Hi.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Hi.EntityStart:return t.charCodeAt(n)===qi.NUM?(this.state=Hi.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Hi.NamedEntity,this.stateNamedEntity(t,n));case Hi.NumericStart:return this.stateNumericStart(t,n);case Hi.NumericDecimal:return this.stateNumericDecimal(t,n);case Hi.NumericHex:return this.stateNumericHex(t,n);case Hi.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|t8e)===qi.LOWER_X?(this.state=Hi.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Hi.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const o=r-n;this.result=this.result*Math.pow(i,o)+parseInt(t.substr(n,o),i),this.consumed+=o}}stateNumericHex(t,n){const r=n;for(;n>14;for(;n>14,o!==0){if(a===qi.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==Nf.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]&vu.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]&~vu.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case Hi.NamedEntity:return this.result!==0&&(this.decodeMode!==Nf.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Hi.NumericDecimal:return this.emitNumericEntity(0,2);case Hi.NumericHex:return this.emitNumericEntity(0,3);case Hi.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Hi.EntityStart:return 0}}}function Pee(e){let t="";const n=new o8e(e,r=>t+=JBe(r));return function(i,o){let a=0,s=0;for(;(s=i.indexOf("&",s))>=0;){t+=i.slice(a,s),n.startEntity(o);const u=n.write(i,s+1);if(u<0){a=s+n.end();break}a=s+u,s=u===0?a+1:a}const l=t+i.slice(a);return t="",l}}function Lee(e,t,n,r){const i=(t&vu.BRANCH_LENGTH)>>7,o=t&vu.JUMP_TABLE;if(i===0)return o!==0&&r===o?n:-1;if(o){const l=r-o;return l<0||l>=i?-1:e[n+l]-1}let a=n,s=a+i-1;for(;a<=s;){const l=a+s>>>1,u=e[l];if(ur)s=l-1;else return e[l+i]}return-1}Pee(Qc);Pee(XBe);var st;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(st=st||(st={}));var Ld;(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"})(Ld=Ld||(Ld={}));var ns;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(ns=ns||(ns={}));var Fe;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(Fe=Fe||(Fe={}));var D;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SECTION=94]="SECTION",e[e.SELECT=95]="SELECT",e[e.SOURCE=96]="SOURCE",e[e.SMALL=97]="SMALL",e[e.SPAN=98]="SPAN",e[e.STRIKE=99]="STRIKE",e[e.STRONG=100]="STRONG",e[e.STYLE=101]="STYLE",e[e.SUB=102]="SUB",e[e.SUMMARY=103]="SUMMARY",e[e.SUP=104]="SUP",e[e.TABLE=105]="TABLE",e[e.TBODY=106]="TBODY",e[e.TEMPLATE=107]="TEMPLATE",e[e.TEXTAREA=108]="TEXTAREA",e[e.TFOOT=109]="TFOOT",e[e.TD=110]="TD",e[e.TH=111]="TH",e[e.THEAD=112]="THEAD",e[e.TITLE=113]="TITLE",e[e.TR=114]="TR",e[e.TRACK=115]="TRACK",e[e.TT=116]="TT",e[e.U=117]="U",e[e.UL=118]="UL",e[e.SVG=119]="SVG",e[e.VAR=120]="VAR",e[e.WBR=121]="WBR",e[e.XMP=122]="XMP"})(D=D||(D={}));const a8e=new Map([[Fe.A,D.A],[Fe.ADDRESS,D.ADDRESS],[Fe.ANNOTATION_XML,D.ANNOTATION_XML],[Fe.APPLET,D.APPLET],[Fe.AREA,D.AREA],[Fe.ARTICLE,D.ARTICLE],[Fe.ASIDE,D.ASIDE],[Fe.B,D.B],[Fe.BASE,D.BASE],[Fe.BASEFONT,D.BASEFONT],[Fe.BGSOUND,D.BGSOUND],[Fe.BIG,D.BIG],[Fe.BLOCKQUOTE,D.BLOCKQUOTE],[Fe.BODY,D.BODY],[Fe.BR,D.BR],[Fe.BUTTON,D.BUTTON],[Fe.CAPTION,D.CAPTION],[Fe.CENTER,D.CENTER],[Fe.CODE,D.CODE],[Fe.COL,D.COL],[Fe.COLGROUP,D.COLGROUP],[Fe.DD,D.DD],[Fe.DESC,D.DESC],[Fe.DETAILS,D.DETAILS],[Fe.DIALOG,D.DIALOG],[Fe.DIR,D.DIR],[Fe.DIV,D.DIV],[Fe.DL,D.DL],[Fe.DT,D.DT],[Fe.EM,D.EM],[Fe.EMBED,D.EMBED],[Fe.FIELDSET,D.FIELDSET],[Fe.FIGCAPTION,D.FIGCAPTION],[Fe.FIGURE,D.FIGURE],[Fe.FONT,D.FONT],[Fe.FOOTER,D.FOOTER],[Fe.FOREIGN_OBJECT,D.FOREIGN_OBJECT],[Fe.FORM,D.FORM],[Fe.FRAME,D.FRAME],[Fe.FRAMESET,D.FRAMESET],[Fe.H1,D.H1],[Fe.H2,D.H2],[Fe.H3,D.H3],[Fe.H4,D.H4],[Fe.H5,D.H5],[Fe.H6,D.H6],[Fe.HEAD,D.HEAD],[Fe.HEADER,D.HEADER],[Fe.HGROUP,D.HGROUP],[Fe.HR,D.HR],[Fe.HTML,D.HTML],[Fe.I,D.I],[Fe.IMG,D.IMG],[Fe.IMAGE,D.IMAGE],[Fe.INPUT,D.INPUT],[Fe.IFRAME,D.IFRAME],[Fe.KEYGEN,D.KEYGEN],[Fe.LABEL,D.LABEL],[Fe.LI,D.LI],[Fe.LINK,D.LINK],[Fe.LISTING,D.LISTING],[Fe.MAIN,D.MAIN],[Fe.MALIGNMARK,D.MALIGNMARK],[Fe.MARQUEE,D.MARQUEE],[Fe.MATH,D.MATH],[Fe.MENU,D.MENU],[Fe.META,D.META],[Fe.MGLYPH,D.MGLYPH],[Fe.MI,D.MI],[Fe.MO,D.MO],[Fe.MN,D.MN],[Fe.MS,D.MS],[Fe.MTEXT,D.MTEXT],[Fe.NAV,D.NAV],[Fe.NOBR,D.NOBR],[Fe.NOFRAMES,D.NOFRAMES],[Fe.NOEMBED,D.NOEMBED],[Fe.NOSCRIPT,D.NOSCRIPT],[Fe.OBJECT,D.OBJECT],[Fe.OL,D.OL],[Fe.OPTGROUP,D.OPTGROUP],[Fe.OPTION,D.OPTION],[Fe.P,D.P],[Fe.PARAM,D.PARAM],[Fe.PLAINTEXT,D.PLAINTEXT],[Fe.PRE,D.PRE],[Fe.RB,D.RB],[Fe.RP,D.RP],[Fe.RT,D.RT],[Fe.RTC,D.RTC],[Fe.RUBY,D.RUBY],[Fe.S,D.S],[Fe.SCRIPT,D.SCRIPT],[Fe.SECTION,D.SECTION],[Fe.SELECT,D.SELECT],[Fe.SOURCE,D.SOURCE],[Fe.SMALL,D.SMALL],[Fe.SPAN,D.SPAN],[Fe.STRIKE,D.STRIKE],[Fe.STRONG,D.STRONG],[Fe.STYLE,D.STYLE],[Fe.SUB,D.SUB],[Fe.SUMMARY,D.SUMMARY],[Fe.SUP,D.SUP],[Fe.TABLE,D.TABLE],[Fe.TBODY,D.TBODY],[Fe.TEMPLATE,D.TEMPLATE],[Fe.TEXTAREA,D.TEXTAREA],[Fe.TFOOT,D.TFOOT],[Fe.TD,D.TD],[Fe.TH,D.TH],[Fe.THEAD,D.THEAD],[Fe.TITLE,D.TITLE],[Fe.TR,D.TR],[Fe.TRACK,D.TRACK],[Fe.TT,D.TT],[Fe.U,D.U],[Fe.UL,D.UL],[Fe.SVG,D.SVG],[Fe.VAR,D.VAR],[Fe.WBR,D.WBR],[Fe.XMP,D.XMP]]);function Ug(e){var t;return(t=a8e.get(e))!==null&&t!==void 0?t:D.UNKNOWN}const bt=D,s8e={[st.HTML]:new Set([bt.ADDRESS,bt.APPLET,bt.AREA,bt.ARTICLE,bt.ASIDE,bt.BASE,bt.BASEFONT,bt.BGSOUND,bt.BLOCKQUOTE,bt.BODY,bt.BR,bt.BUTTON,bt.CAPTION,bt.CENTER,bt.COL,bt.COLGROUP,bt.DD,bt.DETAILS,bt.DIR,bt.DIV,bt.DL,bt.DT,bt.EMBED,bt.FIELDSET,bt.FIGCAPTION,bt.FIGURE,bt.FOOTER,bt.FORM,bt.FRAME,bt.FRAMESET,bt.H1,bt.H2,bt.H3,bt.H4,bt.H5,bt.H6,bt.HEAD,bt.HEADER,bt.HGROUP,bt.HR,bt.HTML,bt.IFRAME,bt.IMG,bt.INPUT,bt.LI,bt.LINK,bt.LISTING,bt.MAIN,bt.MARQUEE,bt.MENU,bt.META,bt.NAV,bt.NOEMBED,bt.NOFRAMES,bt.NOSCRIPT,bt.OBJECT,bt.OL,bt.P,bt.PARAM,bt.PLAINTEXT,bt.PRE,bt.SCRIPT,bt.SECTION,bt.SELECT,bt.SOURCE,bt.STYLE,bt.SUMMARY,bt.TABLE,bt.TBODY,bt.TD,bt.TEMPLATE,bt.TEXTAREA,bt.TFOOT,bt.TH,bt.THEAD,bt.TITLE,bt.TR,bt.TRACK,bt.UL,bt.WBR,bt.XMP]),[st.MATHML]:new Set([bt.MI,bt.MO,bt.MN,bt.MS,bt.MTEXT,bt.ANNOTATION_XML]),[st.SVG]:new Set([bt.TITLE,bt.FOREIGN_OBJECT,bt.DESC]),[st.XLINK]:new Set,[st.XML]:new Set,[st.XMLNS]:new Set};function Mee(e){return e===bt.H1||e===bt.H2||e===bt.H3||e===bt.H4||e===bt.H5||e===bt.H6}Fe.STYLE,Fe.SCRIPT,Fe.XMP,Fe.IFRAME,Fe.NOEMBED,Fe.NOFRAMES,Fe.PLAINTEXT;const l8e=new Map([[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);var ae;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",e[e.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",e[e.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",e[e.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",e[e.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",e[e.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END"})(ae||(ae={}));const bi={DATA:ae.DATA,RCDATA:ae.RCDATA,RAWTEXT:ae.RAWTEXT,SCRIPT_DATA:ae.SCRIPT_DATA,PLAINTEXT:ae.PLAINTEXT,CDATA_SECTION:ae.CDATA_SECTION};function jb(e){return e>=ne.DIGIT_0&&e<=ne.DIGIT_9}function sb(e){return e>=ne.LATIN_CAPITAL_A&&e<=ne.LATIN_CAPITAL_Z}function u8e(e){return e>=ne.LATIN_SMALL_A&&e<=ne.LATIN_SMALL_Z}function Yc(e){return u8e(e)||sb(e)}function OI(e){return Yc(e)||jb(e)}function $ee(e){return e>=ne.LATIN_CAPITAL_A&&e<=ne.LATIN_CAPITAL_F}function Fee(e){return e>=ne.LATIN_SMALL_A&&e<=ne.LATIN_SMALL_F}function c8e(e){return jb(e)||$ee(e)||Fee(e)}function cE(e){return e+32}function Bee(e){return e===ne.SPACE||e===ne.LINE_FEED||e===ne.TABULATION||e===ne.FORM_FEED}function d8e(e){return e===ne.EQUALS_SIGN||OI(e)}function dz(e){return Bee(e)||e===ne.SOLIDUS||e===ne.GREATER_THAN_SIGN}class f8e{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=ae.DATA,this.returnState=ae.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new ZBe(n),this.currentLocation=this.getCurrentLocation(-1)}_err(t){var n,r;(r=(n=this.handler).onParseError)===null||r===void 0||r.call(n,this.preprocessor.getError(t))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r==null||r()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(t){this.consumedAfterSnapshot-=t,this.preprocessor.retreat(t)}_reconsumeInState(t,n){this.state=t,this._callState(n)}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n0&&this._err(Xe.endTagWithAttributes),t.selfClosing&&this._err(Xe.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Pn.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Pn.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Pn.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Pn.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type!==t)this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();else{this.currentCharacterToken.chars+=n;return}this._createCharacterToken(t,n)}_emitCodePoint(t){const n=Bee(t)?Pn.WHITESPACE_CHARACTER:t===ne.NULL?Pn.NULL_CHARACTER:Pn.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Pn.CHARACTER,t)}_matchNamedCharacterReference(t){let n=null,r=0,i=!1;for(let o=0,a=Qc[0];o>=0&&(o=Lee(Qc,a,o+1,t),!(o<0));t=this._consume()){r+=1,a=Qc[o];const s=a&vu.VALUE_LENGTH;if(s){const l=(s>>14)-1;if(t!==ne.SEMICOLON&&this._isCharacterReferenceInAttribute()&&d8e(this.preprocessor.peek(1))?(n=[ne.AMPERSAND],o+=l):(n=l===0?[Qc[o]&~vu.VALUE_LENGTH]:l===1?[Qc[++o]]:[Qc[++o],Qc[++o]],r=0,i=t!==ne.SEMICOLON),l===0){this._consume();break}}}return this._unconsume(r),i&&!this.preprocessor.endOfChunkHit&&this._err(Xe.missingSemicolonAfterCharacterReference),this._unconsume(1),n}_isCharacterReferenceInAttribute(){return this.returnState===ae.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===ae.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===ae.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case ae.DATA:{this._stateData(t);break}case ae.RCDATA:{this._stateRcdata(t);break}case ae.RAWTEXT:{this._stateRawtext(t);break}case ae.SCRIPT_DATA:{this._stateScriptData(t);break}case ae.PLAINTEXT:{this._statePlaintext(t);break}case ae.TAG_OPEN:{this._stateTagOpen(t);break}case ae.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case ae.TAG_NAME:{this._stateTagName(t);break}case ae.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case ae.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case ae.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case ae.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case ae.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case ae.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case ae.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case ae.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case ae.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case ae.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case ae.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case ae.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case ae.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case ae.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case ae.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case ae.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case ae.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case ae.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case ae.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case ae.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case ae.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case ae.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case ae.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case ae.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case ae.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case ae.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case ae.BOGUS_COMMENT:{this._stateBogusComment(t);break}case ae.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case ae.COMMENT_START:{this._stateCommentStart(t);break}case ae.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case ae.COMMENT:{this._stateComment(t);break}case ae.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case ae.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case ae.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case ae.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case ae.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case ae.COMMENT_END:{this._stateCommentEnd(t);break}case ae.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case ae.DOCTYPE:{this._stateDoctype(t);break}case ae.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case ae.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case ae.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case ae.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case ae.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case ae.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case ae.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case ae.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case ae.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case ae.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case ae.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case ae.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case ae.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case ae.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case ae.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case ae.CDATA_SECTION:{this._stateCdataSection(t);break}case ae.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case ae.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case ae.CHARACTER_REFERENCE:{this._stateCharacterReference(t);break}case ae.NAMED_CHARACTER_REFERENCE:{this._stateNamedCharacterReference(t);break}case ae.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}case ae.NUMERIC_CHARACTER_REFERENCE:{this._stateNumericCharacterReference(t);break}case ae.HEXADEMICAL_CHARACTER_REFERENCE_START:{this._stateHexademicalCharacterReferenceStart(t);break}case ae.HEXADEMICAL_CHARACTER_REFERENCE:{this._stateHexademicalCharacterReference(t);break}case ae.DECIMAL_CHARACTER_REFERENCE:{this._stateDecimalCharacterReference(t);break}case ae.NUMERIC_CHARACTER_REFERENCE_END:{this._stateNumericCharacterReferenceEnd(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case ne.LESS_THAN_SIGN:{this.state=ae.TAG_OPEN;break}case ne.AMPERSAND:{this.returnState=ae.DATA,this.state=ae.CHARACTER_REFERENCE;break}case ne.NULL:{this._err(Xe.unexpectedNullCharacter),this._emitCodePoint(t);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case ne.AMPERSAND:{this.returnState=ae.RCDATA,this.state=ae.CHARACTER_REFERENCE;break}case ne.LESS_THAN_SIGN:{this.state=ae.RCDATA_LESS_THAN_SIGN;break}case ne.NULL:{this._err(Xe.unexpectedNullCharacter),this._emitChars(Vr);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case ne.LESS_THAN_SIGN:{this.state=ae.RAWTEXT_LESS_THAN_SIGN;break}case ne.NULL:{this._err(Xe.unexpectedNullCharacter),this._emitChars(Vr);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case ne.LESS_THAN_SIGN:{this.state=ae.SCRIPT_DATA_LESS_THAN_SIGN;break}case ne.NULL:{this._err(Xe.unexpectedNullCharacter),this._emitChars(Vr);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case ne.NULL:{this._err(Xe.unexpectedNullCharacter),this._emitChars(Vr);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Yc(t))this._createStartTagToken(),this.state=ae.TAG_NAME,this._stateTagName(t);else switch(t){case ne.EXCLAMATION_MARK:{this.state=ae.MARKUP_DECLARATION_OPEN;break}case ne.SOLIDUS:{this.state=ae.END_TAG_OPEN;break}case ne.QUESTION_MARK:{this._err(Xe.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=ae.BOGUS_COMMENT,this._stateBogusComment(t);break}case ne.EOF:{this._err(Xe.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(Xe.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=ae.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Yc(t))this._createEndTagToken(),this.state=ae.TAG_NAME,this._stateTagName(t);else switch(t){case ne.GREATER_THAN_SIGN:{this._err(Xe.missingEndTagName),this.state=ae.DATA;break}case ne.EOF:{this._err(Xe.eofBeforeTagName),this._emitChars("");break}case ne.NULL:{this._err(Xe.unexpectedNullCharacter),this.state=ae.SCRIPT_DATA_ESCAPED,this._emitChars(Vr);break}case ne.EOF:{this._err(Xe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ae.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===ne.SOLIDUS?this.state=ae.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Yc(t)?(this._emitChars("<"),this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=ae.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Yc(t)?(this.state=ae.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("");break}case ne.NULL:{this._err(Xe.unexpectedNullCharacter),this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Vr);break}case ne.EOF:{this._err(Xe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===ne.SOLIDUS?(this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(fa.SCRIPT,!1)&&dz(this.preprocessor.peek(fa.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n1114111)this._err(Xe.characterReferenceOutsideUnicodeRange),this.charRefCode=ne.REPLACEMENT_CHARACTER;else if(Ree(this.charRefCode))this._err(Xe.surrogateCharacterReference),this.charRefCode=ne.REPLACEMENT_CHARACTER;else if(Dee(this.charRefCode))this._err(Xe.noncharacterCharacterReference);else if(Iee(this.charRefCode)||this.charRefCode===ne.CARRIAGE_RETURN){this._err(Xe.controlCharacterReference);const n=l8e.get(this.charRefCode);n!==void 0&&(this.charRefCode=n)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,t)}}const Uee=new Set([D.DD,D.DT,D.LI,D.OPTGROUP,D.OPTION,D.P,D.RB,D.RP,D.RT,D.RTC]),fz=new Set([...Uee,D.CAPTION,D.COLGROUP,D.TBODY,D.TD,D.TFOOT,D.TH,D.THEAD,D.TR]),dE=new Map([[D.APPLET,st.HTML],[D.CAPTION,st.HTML],[D.HTML,st.HTML],[D.MARQUEE,st.HTML],[D.OBJECT,st.HTML],[D.TABLE,st.HTML],[D.TD,st.HTML],[D.TEMPLATE,st.HTML],[D.TH,st.HTML],[D.ANNOTATION_XML,st.MATHML],[D.MI,st.MATHML],[D.MN,st.MATHML],[D.MO,st.MATHML],[D.MS,st.MATHML],[D.MTEXT,st.MATHML],[D.DESC,st.SVG],[D.FOREIGN_OBJECT,st.SVG],[D.TITLE,st.SVG]]),p8e=[D.H1,D.H2,D.H3,D.H4,D.H5,D.H6],h8e=[D.TR,D.TEMPLATE,D.HTML],m8e=[D.TBODY,D.TFOOT,D.THEAD,D.TEMPLATE,D.HTML],g8e=[D.TABLE,D.TEMPLATE,D.HTML],b8e=[D.TD,D.TH];class y8e{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=D.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===D.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===st.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const i=this._indexOf(t)+1;this.items.splice(i,0,n),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==st.HTML);this.shortenToLength(n<0?0:n)}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop=0;r--)if(t.includes(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(g8e,st.HTML)}clearBackToTableBodyContext(){this.clearBackTo(m8e,st.HTML)}clearBackToTableRowContext(){this.clearBackTo(h8e,st.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===D.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===D.HTML}hasInScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n],i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===st.HTML)return!0;if(dE.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(Mee(n)&&r===st.HTML)return!0;if(dE.get(n)===r)return!1}return!0}hasInListItemScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n],i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===st.HTML)return!0;if((r===D.UL||r===D.OL)&&i===st.HTML||dE.get(r)===i)return!1}return!0}hasInButtonScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n],i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===st.HTML)return!0;if(r===D.BUTTON&&i===st.HTML||dE.get(r)===i)return!1}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n];if(this.treeAdapter.getNamespaceURI(this.items[n])===st.HTML){if(r===t)return!0;if(r===D.TABLE||r===D.TEMPLATE||r===D.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===st.HTML){if(n===D.TBODY||n===D.THEAD||n===D.TFOOT)return!0;if(n===D.TABLE||n===D.HTML)return!1}}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n];if(this.treeAdapter.getNamespaceURI(this.items[n])===st.HTML){if(r===t)return!0;if(r!==D.OPTION&&r!==D.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;Uee.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;fz.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&fz.has(this.currentTagId);)this.pop()}}const a2=3;var Ol;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Ol=Ol||(Ol={}));const pz={type:Ol.Marker};class O8e{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,o=this.treeAdapter.getTagName(t),a=this.treeAdapter.getNamespaceURI(t);for(let s=0;s[a.name,a.value]));let o=0;for(let a=0;ai.get(l.name)===l.value)&&(o+=1,o>=a2&&this.entries.splice(s.idx,1))}}insertMarker(){this.entries.unshift(pz)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:Ol.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Ol.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n>=0&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(pz);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===Ol.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===Ol.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===Ol.Element&&n.element===t)}}function hz(e){return{nodeName:"#text",value:e,parentNode:null}}const Ch={createDocument(){return{nodeName:"#document",mode:ns.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const i=e.childNodes.find(o=>o.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const o={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Ch.appendChild(e,o)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Ch.isTextNode(n)){n.value+=t;return}}Ch.appendChild(e,hz(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Ch.isTextNode(r)?r.value+=t:Ch.insertBefore(e,hz(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;re.startsWith(n))}function k8e(e){return e.name===jee&&e.publicId===null&&(e.systemId===null||e.systemId===v8e)}function x8e(e){if(e.name!==jee)return ns.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===E8e)return ns.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),T8e.has(n))return ns.QUIRKS;let r=t===null?S8e:zee;if(mz(n,r))return ns.QUIRKS;if(r=t===null?Vee:w8e,mz(n,r))return ns.LIMITED_QUIRKS}return ns.NO_QUIRKS}const gz={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},C8e="definitionurl",A8e="definitionURL",_8e=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])),R8e=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:st.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:st.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:st.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:st.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:st.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:st.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:st.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:st.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:st.XML}],["xml:space",{prefix:"xml",name:"space",namespace:st.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:st.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:st.XMLNS}]]),I8e=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])),D8e=new Set([D.B,D.BIG,D.BLOCKQUOTE,D.BODY,D.BR,D.CENTER,D.CODE,D.DD,D.DIV,D.DL,D.DT,D.EM,D.EMBED,D.H1,D.H2,D.H3,D.H4,D.H5,D.H6,D.HEAD,D.HR,D.I,D.IMG,D.LI,D.LISTING,D.MENU,D.META,D.NOBR,D.OL,D.P,D.PRE,D.RUBY,D.S,D.SMALL,D.SPAN,D.STRONG,D.STRIKE,D.SUB,D.SUP,D.TABLE,D.TT,D.U,D.UL,D.VAR]);function N8e(e){const t=e.tagID;return t===D.FONT&&e.attrs.some(({name:r})=>r===Ld.COLOR||r===Ld.SIZE||r===Ld.FACE)||D8e.has(t)}function Hee(e){for(let t=0;t0&&this._setContextModes(t,n)}onItemPop(t,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,t,this.openElements.current),n){let o,a;this.openElements.stackTop===0&&this.fragmentContext?(o=this.fragmentContext,a=this.fragmentContextID):{current:o,currentTagId:a}=this.openElements,this._setContextModes(o,a)}}_setContextModes(t,n){const r=t===this.document||this.treeAdapter.getNamespaceURI(t)===st.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,st.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=me.TEXT}switchToPlaintextParsing(){this.insertionMode=me.TEXT,this.originalInsertionMode=me.IN_BODY,this.tokenizer.state=bi.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===Fe.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==st.HTML))switch(this.fragmentContextID){case D.TITLE:case D.TEXTAREA:{this.tokenizer.state=bi.RCDATA;break}case D.STYLE:case D.XMP:case D.IFRAME:case D.NOEMBED:case D.NOFRAMES:case D.NOSCRIPT:{this.tokenizer.state=bi.RAWTEXT;break}case D.SCRIPT:{this.tokenizer.state=bi.SCRIPT_DATA;break}case D.PLAINTEXT:{this.tokenizer.state=bi.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),t.location){const a=this.treeAdapter.getChildNodes(this.document).find(s=>this.treeAdapter.isDocumentTypeNode(s));a&&this.treeAdapter.setNodeSourceCodeLocation(a,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,st.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,st.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(Fe.HTML,st.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,D.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const i=this.treeAdapter.getChildNodes(n),o=r?i.lastIndexOf(r):i.length,a=i[o-1];if(this.treeAdapter.getNodeSourceCodeLocation(a)){const{endLine:l,endCol:u,endOffset:c}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(a,{endLine:l,endCol:u,endOffset:c})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,i=this.treeAdapter.getTagName(t),o=n.type===Pn.END_TAG&&i===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,o)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===D.SVG&&this.treeAdapter.getTagName(n)===Fe.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===st.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===D.MGLYPH||t.tagID===D.MALIGNMARK)&&!this._isIntegrationPoint(r,n,st.HTML)}_processToken(t){switch(t.type){case Pn.CHARACTER:{this.onCharacter(t);break}case Pn.NULL_CHARACTER:{this.onNullCharacter(t);break}case Pn.COMMENT:{this.onComment(t);break}case Pn.DOCTYPE:{this.onDoctype(t);break}case Pn.START_TAG:{this._processStartTag(t);break}case Pn.END_TAG:{this.onEndTag(t);break}case Pn.EOF:{this.onEof(t);break}case Pn.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),o=this.treeAdapter.getAttrList(n);return $8e(t,i,o,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===Ol.Marker||this.openElements.contains(i.element)),r=n<0?t-1:n-1;for(let i=r;i>=0;i--){const o=this.activeFormattingElements.entries[i];this._insertElement(o.token,this.treeAdapter.getNamespaceURI(o.element)),o.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=me.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(D.P),this.openElements.popUntilTagNamePopped(D.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case D.TR:{this.insertionMode=me.IN_ROW;return}case D.TBODY:case D.THEAD:case D.TFOOT:{this.insertionMode=me.IN_TABLE_BODY;return}case D.CAPTION:{this.insertionMode=me.IN_CAPTION;return}case D.COLGROUP:{this.insertionMode=me.IN_COLUMN_GROUP;return}case D.TABLE:{this.insertionMode=me.IN_TABLE;return}case D.BODY:{this.insertionMode=me.IN_BODY;return}case D.FRAMESET:{this.insertionMode=me.IN_FRAMESET;return}case D.SELECT:{this._resetInsertionModeForSelect(t);return}case D.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case D.HTML:{this.insertionMode=this.headElement?me.AFTER_HEAD:me.BEFORE_HEAD;return}case D.TD:case D.TH:{if(t>0){this.insertionMode=me.IN_CELL;return}break}case D.HEAD:{if(t>0){this.insertionMode=me.IN_HEAD;return}break}}this.insertionMode=me.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===D.TEMPLATE)break;if(r===D.TABLE){this.insertionMode=me.IN_SELECT_IN_TABLE;return}}this.insertionMode=me.IN_SELECT}_isElementCausesFosterParenting(t){return Qee.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case D.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===st.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case D.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return s8e[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){bUe(this,t);return}switch(this.insertionMode){case me.INITIAL:{$0(this,t);break}case me.BEFORE_HTML:{zb(this,t);break}case me.BEFORE_HEAD:{Vb(this,t);break}case me.IN_HEAD:{Hb(this,t);break}case me.IN_HEAD_NO_SCRIPT:{Wb(this,t);break}case me.AFTER_HEAD:{Qb(this,t);break}case me.IN_BODY:case me.IN_CAPTION:case me.IN_CELL:case me.IN_TEMPLATE:{Gee(this,t);break}case me.TEXT:case me.IN_SELECT:case me.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case me.IN_TABLE:case me.IN_TABLE_BODY:case me.IN_ROW:{s2(this,t);break}case me.IN_TABLE_TEXT:{ete(this,t);break}case me.IN_COLUMN_GROUP:{ZT(this,t);break}case me.AFTER_BODY:{XT(this,t);break}case me.AFTER_AFTER_BODY:{oS(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){gUe(this,t);return}switch(this.insertionMode){case me.INITIAL:{$0(this,t);break}case me.BEFORE_HTML:{zb(this,t);break}case me.BEFORE_HEAD:{Vb(this,t);break}case me.IN_HEAD:{Hb(this,t);break}case me.IN_HEAD_NO_SCRIPT:{Wb(this,t);break}case me.AFTER_HEAD:{Qb(this,t);break}case me.TEXT:{this._insertCharacters(t);break}case me.IN_TABLE:case me.IN_TABLE_BODY:case me.IN_ROW:{s2(this,t);break}case me.IN_COLUMN_GROUP:{ZT(this,t);break}case me.AFTER_BODY:{XT(this,t);break}case me.AFTER_AFTER_BODY:{oS(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){vI(this,t);return}switch(this.insertionMode){case me.INITIAL:case me.BEFORE_HTML:case me.BEFORE_HEAD:case me.IN_HEAD:case me.IN_HEAD_NO_SCRIPT:case me.AFTER_HEAD:case me.IN_BODY:case me.IN_TABLE:case me.IN_CAPTION:case me.IN_COLUMN_GROUP:case me.IN_TABLE_BODY:case me.IN_ROW:case me.IN_CELL:case me.IN_SELECT:case me.IN_SELECT_IN_TABLE:case me.IN_TEMPLATE:case me.IN_FRAMESET:case me.AFTER_FRAMESET:{vI(this,t);break}case me.IN_TABLE_TEXT:{F0(this,t);break}case me.AFTER_BODY:{G8e(this,t);break}case me.AFTER_AFTER_BODY:case me.AFTER_AFTER_FRAMESET:{q8e(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case me.INITIAL:{Z8e(this,t);break}case me.BEFORE_HEAD:case me.IN_HEAD:case me.IN_HEAD_NO_SCRIPT:case me.AFTER_HEAD:{this._err(t,Xe.misplacedDoctype);break}case me.IN_TABLE_TEXT:{F0(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,Xe.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?yUe(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case me.INITIAL:{$0(this,t);break}case me.BEFORE_HTML:{X8e(this,t);break}case me.BEFORE_HEAD:{J8e(this,t);break}case me.IN_HEAD:{jl(this,t);break}case me.IN_HEAD_NO_SCRIPT:{n7e(this,t);break}case me.AFTER_HEAD:{i7e(this,t);break}case me.IN_BODY:{zo(this,t);break}case me.IN_TABLE:{ug(this,t);break}case me.IN_TABLE_TEXT:{F0(this,t);break}case me.IN_CAPTION:{eUe(this,t);break}case me.IN_COLUMN_GROUP:{I3(this,t);break}case me.IN_TABLE_BODY:{lx(this,t);break}case me.IN_ROW:{ux(this,t);break}case me.IN_CELL:{rUe(this,t);break}case me.IN_SELECT:{rte(this,t);break}case me.IN_SELECT_IN_TABLE:{oUe(this,t);break}case me.IN_TEMPLATE:{sUe(this,t);break}case me.AFTER_BODY:{uUe(this,t);break}case me.IN_FRAMESET:{cUe(this,t);break}case me.AFTER_FRAMESET:{fUe(this,t);break}case me.AFTER_AFTER_BODY:{hUe(this,t);break}case me.AFTER_AFTER_FRAMESET:{mUe(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?OUe(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case me.INITIAL:{$0(this,t);break}case me.BEFORE_HTML:{K8e(this,t);break}case me.BEFORE_HEAD:{e7e(this,t);break}case me.IN_HEAD:{t7e(this,t);break}case me.IN_HEAD_NO_SCRIPT:{r7e(this,t);break}case me.AFTER_HEAD:{o7e(this,t);break}case me.IN_BODY:{sx(this,t);break}case me.TEXT:{H7e(this,t);break}case me.IN_TABLE:{a1(this,t);break}case me.IN_TABLE_TEXT:{F0(this,t);break}case me.IN_CAPTION:{tUe(this,t);break}case me.IN_COLUMN_GROUP:{nUe(this,t);break}case me.IN_TABLE_BODY:{EI(this,t);break}case me.IN_ROW:{nte(this,t);break}case me.IN_CELL:{iUe(this,t);break}case me.IN_SELECT:{ite(this,t);break}case me.IN_SELECT_IN_TABLE:{aUe(this,t);break}case me.IN_TEMPLATE:{lUe(this,t);break}case me.AFTER_BODY:{ate(this,t);break}case me.IN_FRAMESET:{dUe(this,t);break}case me.AFTER_FRAMESET:{pUe(this,t);break}case me.AFTER_AFTER_BODY:{oS(this,t);break}}}onEof(t){switch(this.insertionMode){case me.INITIAL:{$0(this,t);break}case me.BEFORE_HTML:{zb(this,t);break}case me.BEFORE_HEAD:{Vb(this,t);break}case me.IN_HEAD:{Hb(this,t);break}case me.IN_HEAD_NO_SCRIPT:{Wb(this,t);break}case me.AFTER_HEAD:{Qb(this,t);break}case me.IN_BODY:case me.IN_TABLE:case me.IN_CAPTION:case me.IN_COLUMN_GROUP:case me.IN_TABLE_BODY:case me.IN_ROW:case me.IN_CELL:case me.IN_SELECT:case me.IN_SELECT_IN_TABLE:{Kee(this,t);break}case me.TEXT:{W7e(this,t);break}case me.IN_TABLE_TEXT:{F0(this,t);break}case me.IN_TEMPLATE:{ote(this,t);break}case me.AFTER_BODY:case me.IN_FRAMESET:case me.AFTER_FRAMESET:case me.AFTER_AFTER_BODY:case me.AFTER_AFTER_FRAMESET:{R3(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===ne.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case me.IN_HEAD:case me.IN_HEAD_NO_SCRIPT:case me.AFTER_HEAD:case me.TEXT:case me.IN_COLUMN_GROUP:case me.IN_SELECT:case me.IN_SELECT_IN_TABLE:case me.IN_FRAMESET:case me.AFTER_FRAMESET:{this._insertCharacters(t);break}case me.IN_BODY:case me.IN_CAPTION:case me.IN_CELL:case me.IN_TEMPLATE:case me.AFTER_BODY:case me.AFTER_AFTER_BODY:case me.AFTER_AFTER_FRAMESET:{Yee(this,t);break}case me.IN_TABLE:case me.IN_TABLE_BODY:case me.IN_ROW:{s2(this,t);break}case me.IN_TABLE_TEXT:{Jee(this,t);break}}}}function z8e(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):Xee(e,t),n}function V8e(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 H8e(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let o=0,a=i;a!==n;o++,a=i){i=e.openElements.getCommonAncestor(a);const s=e.activeFormattingElements.getElementEntry(a),l=s&&o>=U8e;!s||l?(l&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(a)):(a=W8e(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function W8e(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 Q8e(e,t,n){const r=e.treeAdapter.getTagName(t),i=Ug(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const o=e.treeAdapter.getNamespaceURI(t);i===D.TEMPLATE&&o===st.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function Y8e(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,o=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o,i.tagID)}function _3(e,t){for(let n=0;n=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const o=e.openElements.items[1],a=e.treeAdapter.getNodeSourceCodeLocation(o);a&&!a.endTag&&e._setEndLocation(o,t)}}}}function Z8e(e,t){e._setDocumentType(t);const n=t.forceQuirks?ns.QUIRKS:x8e(t);k8e(t)||e._err(t,Xe.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=me.BEFORE_HTML}function $0(e,t){e._err(t,Xe.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,ns.QUIRKS),e.insertionMode=me.BEFORE_HTML,e._processToken(t)}function X8e(e,t){t.tagID===D.HTML?(e._insertElement(t,st.HTML),e.insertionMode=me.BEFORE_HEAD):zb(e,t)}function K8e(e,t){const n=t.tagID;(n===D.HTML||n===D.HEAD||n===D.BODY||n===D.BR)&&zb(e,t)}function zb(e,t){e._insertFakeRootElement(),e.insertionMode=me.BEFORE_HEAD,e._processToken(t)}function J8e(e,t){switch(t.tagID){case D.HTML:{zo(e,t);break}case D.HEAD:{e._insertElement(t,st.HTML),e.headElement=e.openElements.current,e.insertionMode=me.IN_HEAD;break}default:Vb(e,t)}}function e7e(e,t){const n=t.tagID;n===D.HEAD||n===D.BODY||n===D.HTML||n===D.BR?Vb(e,t):e._err(t,Xe.endTagWithoutMatchingOpenElement)}function Vb(e,t){e._insertFakeElement(Fe.HEAD,D.HEAD),e.headElement=e.openElements.current,e.insertionMode=me.IN_HEAD,e._processToken(t)}function jl(e,t){switch(t.tagID){case D.HTML:{zo(e,t);break}case D.BASE:case D.BASEFONT:case D.BGSOUND:case D.LINK:case D.META:{e._appendElement(t,st.HTML),t.ackSelfClosing=!0;break}case D.TITLE:{e._switchToTextParsing(t,bi.RCDATA);break}case D.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,bi.RAWTEXT):(e._insertElement(t,st.HTML),e.insertionMode=me.IN_HEAD_NO_SCRIPT);break}case D.NOFRAMES:case D.STYLE:{e._switchToTextParsing(t,bi.RAWTEXT);break}case D.SCRIPT:{e._switchToTextParsing(t,bi.SCRIPT_DATA);break}case D.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=me.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(me.IN_TEMPLATE);break}case D.HEAD:{e._err(t,Xe.misplacedStartTagForHeadElement);break}default:Hb(e,t)}}function t7e(e,t){switch(t.tagID){case D.HEAD:{e.openElements.pop(),e.insertionMode=me.AFTER_HEAD;break}case D.BODY:case D.BR:case D.HTML:{Hb(e,t);break}case D.TEMPLATE:{Lp(e,t);break}default:e._err(t,Xe.endTagWithoutMatchingOpenElement)}}function Lp(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==D.TEMPLATE&&e._err(t,Xe.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(D.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,Xe.endTagWithoutMatchingOpenElement)}function Hb(e,t){e.openElements.pop(),e.insertionMode=me.AFTER_HEAD,e._processToken(t)}function n7e(e,t){switch(t.tagID){case D.HTML:{zo(e,t);break}case D.BASEFONT:case D.BGSOUND:case D.HEAD:case D.LINK:case D.META:case D.NOFRAMES:case D.STYLE:{jl(e,t);break}case D.NOSCRIPT:{e._err(t,Xe.nestedNoscriptInHead);break}default:Wb(e,t)}}function r7e(e,t){switch(t.tagID){case D.NOSCRIPT:{e.openElements.pop(),e.insertionMode=me.IN_HEAD;break}case D.BR:{Wb(e,t);break}default:e._err(t,Xe.endTagWithoutMatchingOpenElement)}}function Wb(e,t){const n=t.type===Pn.EOF?Xe.openElementsLeftAfterEof:Xe.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=me.IN_HEAD,e._processToken(t)}function i7e(e,t){switch(t.tagID){case D.HTML:{zo(e,t);break}case D.BODY:{e._insertElement(t,st.HTML),e.framesetOk=!1,e.insertionMode=me.IN_BODY;break}case D.FRAMESET:{e._insertElement(t,st.HTML),e.insertionMode=me.IN_FRAMESET;break}case D.BASE:case D.BASEFONT:case D.BGSOUND:case D.LINK:case D.META:case D.NOFRAMES:case D.SCRIPT:case D.STYLE:case D.TEMPLATE:case D.TITLE:{e._err(t,Xe.abandonedHeadElementChild),e.openElements.push(e.headElement,D.HEAD),jl(e,t),e.openElements.remove(e.headElement);break}case D.HEAD:{e._err(t,Xe.misplacedStartTagForHeadElement);break}default:Qb(e,t)}}function o7e(e,t){switch(t.tagID){case D.BODY:case D.HTML:case D.BR:{Qb(e,t);break}case D.TEMPLATE:{Lp(e,t);break}default:e._err(t,Xe.endTagWithoutMatchingOpenElement)}}function Qb(e,t){e._insertFakeElement(Fe.BODY,D.BODY),e.insertionMode=me.IN_BODY,ax(e,t)}function ax(e,t){switch(t.type){case Pn.CHARACTER:{Gee(e,t);break}case Pn.WHITESPACE_CHARACTER:{Yee(e,t);break}case Pn.COMMENT:{vI(e,t);break}case Pn.START_TAG:{zo(e,t);break}case Pn.END_TAG:{sx(e,t);break}case Pn.EOF:{Kee(e,t);break}}}function Yee(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Gee(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function a7e(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function s7e(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function l7e(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,st.HTML),e.insertionMode=me.IN_FRAMESET)}function u7e(e,t){e.openElements.hasInButtonScope(D.P)&&e._closePElement(),e._insertElement(t,st.HTML)}function c7e(e,t){e.openElements.hasInButtonScope(D.P)&&e._closePElement(),Mee(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,st.HTML)}function d7e(e,t){e.openElements.hasInButtonScope(D.P)&&e._closePElement(),e._insertElement(t,st.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function f7e(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(D.P)&&e._closePElement(),e._insertElement(t,st.HTML),n||(e.formElement=e.openElements.current))}function p7e(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.tagIDs[r];if(n===D.LI&&i===D.LI||(n===D.DD||n===D.DT)&&(i===D.DD||i===D.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==D.ADDRESS&&i!==D.DIV&&i!==D.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(D.P)&&e._closePElement(),e._insertElement(t,st.HTML)}function h7e(e,t){e.openElements.hasInButtonScope(D.P)&&e._closePElement(),e._insertElement(t,st.HTML),e.tokenizer.state=bi.PLAINTEXT}function m7e(e,t){e.openElements.hasInScope(D.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(D.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML),e.framesetOk=!1}function g7e(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(Fe.A);n&&(_3(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function b7e(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function y7e(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(D.NOBR)&&(_3(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,st.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function O7e(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function v7e(e,t){e.treeAdapter.getDocumentMode(e.document)!==ns.QUIRKS&&e.openElements.hasInButtonScope(D.P)&&e._closePElement(),e._insertElement(t,st.HTML),e.framesetOk=!1,e.insertionMode=me.IN_TABLE}function qee(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,st.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Zee(e){const t=Nee(e,Ld.TYPE);return t!=null&&t.toLowerCase()===F8e}function E7e(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,st.HTML),Zee(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function S7e(e,t){e._appendElement(t,st.HTML),t.ackSelfClosing=!0}function T7e(e,t){e.openElements.hasInButtonScope(D.P)&&e._closePElement(),e._appendElement(t,st.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function w7e(e,t){t.tagName=Fe.IMG,t.tagID=D.IMG,qee(e,t)}function k7e(e,t){e._insertElement(t,st.HTML),e.skipNextNewLine=!0,e.tokenizer.state=bi.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=me.TEXT}function x7e(e,t){e.openElements.hasInButtonScope(D.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,bi.RAWTEXT)}function C7e(e,t){e.framesetOk=!1,e._switchToTextParsing(t,bi.RAWTEXT)}function Oz(e,t){e._switchToTextParsing(t,bi.RAWTEXT)}function A7e(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===me.IN_TABLE||e.insertionMode===me.IN_CAPTION||e.insertionMode===me.IN_TABLE_BODY||e.insertionMode===me.IN_ROW||e.insertionMode===me.IN_CELL?me.IN_SELECT_IN_TABLE:me.IN_SELECT}function _7e(e,t){e.openElements.currentTagId===D.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML)}function R7e(e,t){e.openElements.hasInScope(D.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,st.HTML)}function I7e(e,t){e.openElements.hasInScope(D.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(D.RTC),e._insertElement(t,st.HTML)}function D7e(e,t){e._reconstructActiveFormattingElements(),Hee(t),A3(t),t.selfClosing?e._appendElement(t,st.MATHML):e._insertElement(t,st.MATHML),t.ackSelfClosing=!0}function N7e(e,t){e._reconstructActiveFormattingElements(),Wee(t),A3(t),t.selfClosing?e._appendElement(t,st.SVG):e._insertElement(t,st.SVG),t.ackSelfClosing=!0}function vz(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,st.HTML)}function zo(e,t){switch(t.tagID){case D.I:case D.S:case D.B:case D.U:case D.EM:case D.TT:case D.BIG:case D.CODE:case D.FONT:case D.SMALL:case D.STRIKE:case D.STRONG:{b7e(e,t);break}case D.A:{g7e(e,t);break}case D.H1:case D.H2:case D.H3:case D.H4:case D.H5:case D.H6:{c7e(e,t);break}case D.P:case D.DL:case D.OL:case D.UL:case D.DIV:case D.DIR:case D.NAV:case D.MAIN:case D.MENU:case D.ASIDE:case D.CENTER:case D.FIGURE:case D.FOOTER:case D.HEADER:case D.HGROUP:case D.DIALOG:case D.DETAILS:case D.ADDRESS:case D.ARTICLE:case D.SECTION:case D.SUMMARY:case D.FIELDSET:case D.BLOCKQUOTE:case D.FIGCAPTION:{u7e(e,t);break}case D.LI:case D.DD:case D.DT:{p7e(e,t);break}case D.BR:case D.IMG:case D.WBR:case D.AREA:case D.EMBED:case D.KEYGEN:{qee(e,t);break}case D.HR:{T7e(e,t);break}case D.RB:case D.RTC:{R7e(e,t);break}case D.RT:case D.RP:{I7e(e,t);break}case D.PRE:case D.LISTING:{d7e(e,t);break}case D.XMP:{x7e(e,t);break}case D.SVG:{N7e(e,t);break}case D.HTML:{a7e(e,t);break}case D.BASE:case D.LINK:case D.META:case D.STYLE:case D.TITLE:case D.SCRIPT:case D.BGSOUND:case D.BASEFONT:case D.TEMPLATE:{jl(e,t);break}case D.BODY:{s7e(e,t);break}case D.FORM:{f7e(e,t);break}case D.NOBR:{y7e(e,t);break}case D.MATH:{D7e(e,t);break}case D.TABLE:{v7e(e,t);break}case D.INPUT:{E7e(e,t);break}case D.PARAM:case D.TRACK:case D.SOURCE:{S7e(e,t);break}case D.IMAGE:{w7e(e,t);break}case D.BUTTON:{m7e(e,t);break}case D.APPLET:case D.OBJECT:case D.MARQUEE:{O7e(e,t);break}case D.IFRAME:{C7e(e,t);break}case D.SELECT:{A7e(e,t);break}case D.OPTION:case D.OPTGROUP:{_7e(e,t);break}case D.NOEMBED:{Oz(e,t);break}case D.FRAMESET:{l7e(e,t);break}case D.TEXTAREA:{k7e(e,t);break}case D.NOSCRIPT:{e.options.scriptingEnabled?Oz(e,t):vz(e,t);break}case D.PLAINTEXT:{h7e(e,t);break}case D.COL:case D.TH:case D.TD:case D.TR:case D.HEAD:case D.FRAME:case D.TBODY:case D.TFOOT:case D.THEAD:case D.CAPTION:case D.COLGROUP:break;default:vz(e,t)}}function P7e(e,t){if(e.openElements.hasInScope(D.BODY)&&(e.insertionMode=me.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function L7e(e,t){e.openElements.hasInScope(D.BODY)&&(e.insertionMode=me.AFTER_BODY,ate(e,t))}function M7e(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function $7e(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(D.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(D.FORM):n&&e.openElements.remove(n))}function F7e(e){e.openElements.hasInButtonScope(D.P)||e._insertFakeElement(Fe.P,D.P),e._closePElement()}function B7e(e){e.openElements.hasInListItemScope(D.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(D.LI),e.openElements.popUntilTagNamePopped(D.LI))}function U7e(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function j7e(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function z7e(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function V7e(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Fe.BR,D.BR),e.openElements.pop(),e.framesetOk=!1}function Xee(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const o=e.openElements.items[i],a=e.openElements.tagIDs[i];if(r===a&&(r!==D.UNKNOWN||e.treeAdapter.getTagName(o)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(o,a))break}}function sx(e,t){switch(t.tagID){case D.A:case D.B:case D.I:case D.S:case D.U:case D.EM:case D.TT:case D.BIG:case D.CODE:case D.FONT:case D.NOBR:case D.SMALL:case D.STRIKE:case D.STRONG:{_3(e,t);break}case D.P:{F7e(e);break}case D.DL:case D.UL:case D.OL:case D.DIR:case D.DIV:case D.NAV:case D.PRE:case D.MAIN:case D.MENU:case D.ASIDE:case D.BUTTON:case D.CENTER:case D.FIGURE:case D.FOOTER:case D.HEADER:case D.HGROUP:case D.DIALOG:case D.ADDRESS:case D.ARTICLE:case D.DETAILS:case D.SECTION:case D.SUMMARY:case D.LISTING:case D.FIELDSET:case D.BLOCKQUOTE:case D.FIGCAPTION:{M7e(e,t);break}case D.LI:{B7e(e);break}case D.DD:case D.DT:{U7e(e,t);break}case D.H1:case D.H2:case D.H3:case D.H4:case D.H5:case D.H6:{j7e(e);break}case D.BR:{V7e(e);break}case D.BODY:{P7e(e,t);break}case D.HTML:{L7e(e,t);break}case D.FORM:{$7e(e);break}case D.APPLET:case D.OBJECT:case D.MARQUEE:{z7e(e,t);break}case D.TEMPLATE:{Lp(e,t);break}default:Xee(e,t)}}function Kee(e,t){e.tmplInsertionModeStack.length>0?ote(e,t):R3(e,t)}function H7e(e,t){var n;t.tagID===D.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function W7e(e,t){e._err(t,Xe.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function s2(e,t){if(Qee.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=me.IN_TABLE_TEXT,t.type){case Pn.CHARACTER:{ete(e,t);break}case Pn.WHITESPACE_CHARACTER:{Jee(e,t);break}}else bO(e,t)}function Q7e(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,st.HTML),e.insertionMode=me.IN_CAPTION}function Y7e(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,st.HTML),e.insertionMode=me.IN_COLUMN_GROUP}function G7e(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Fe.COLGROUP,D.COLGROUP),e.insertionMode=me.IN_COLUMN_GROUP,I3(e,t)}function q7e(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,st.HTML),e.insertionMode=me.IN_TABLE_BODY}function Z7e(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Fe.TBODY,D.TBODY),e.insertionMode=me.IN_TABLE_BODY,lx(e,t)}function X7e(e,t){e.openElements.hasInTableScope(D.TABLE)&&(e.openElements.popUntilTagNamePopped(D.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function K7e(e,t){Zee(t)?e._appendElement(t,st.HTML):bO(e,t),t.ackSelfClosing=!0}function J7e(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,st.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function ug(e,t){switch(t.tagID){case D.TD:case D.TH:case D.TR:{Z7e(e,t);break}case D.STYLE:case D.SCRIPT:case D.TEMPLATE:{jl(e,t);break}case D.COL:{G7e(e,t);break}case D.FORM:{J7e(e,t);break}case D.TABLE:{X7e(e,t);break}case D.TBODY:case D.TFOOT:case D.THEAD:{q7e(e,t);break}case D.INPUT:{K7e(e,t);break}case D.CAPTION:{Q7e(e,t);break}case D.COLGROUP:{Y7e(e,t);break}default:bO(e,t)}}function a1(e,t){switch(t.tagID){case D.TABLE:{e.openElements.hasInTableScope(D.TABLE)&&(e.openElements.popUntilTagNamePopped(D.TABLE),e._resetInsertionMode());break}case D.TEMPLATE:{Lp(e,t);break}case D.BODY:case D.CAPTION:case D.COL:case D.COLGROUP:case D.HTML:case D.TBODY:case D.TD:case D.TFOOT:case D.TH:case D.THEAD:case D.TR:break;default:bO(e,t)}}function bO(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,ax(e,t),e.fosterParentingEnabled=n}function Jee(e,t){e.pendingCharacterTokens.push(t)}function ete(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function F0(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&e.openElements.currentTagId===D.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===D.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===D.OPTGROUP&&e.openElements.pop();break}case D.OPTION:{e.openElements.currentTagId===D.OPTION&&e.openElements.pop();break}case D.SELECT:{e.openElements.hasInSelectScope(D.SELECT)&&(e.openElements.popUntilTagNamePopped(D.SELECT),e._resetInsertionMode());break}case D.TEMPLATE:{Lp(e,t);break}}}function oUe(e,t){const n=t.tagID;n===D.CAPTION||n===D.TABLE||n===D.TBODY||n===D.TFOOT||n===D.THEAD||n===D.TR||n===D.TD||n===D.TH?(e.openElements.popUntilTagNamePopped(D.SELECT),e._resetInsertionMode(),e._processStartTag(t)):rte(e,t)}function aUe(e,t){const n=t.tagID;n===D.CAPTION||n===D.TABLE||n===D.TBODY||n===D.TFOOT||n===D.THEAD||n===D.TR||n===D.TD||n===D.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(D.SELECT),e._resetInsertionMode(),e.onEndTag(t)):ite(e,t)}function sUe(e,t){switch(t.tagID){case D.BASE:case D.BASEFONT:case D.BGSOUND:case D.LINK:case D.META:case D.NOFRAMES:case D.SCRIPT:case D.STYLE:case D.TEMPLATE:case D.TITLE:{jl(e,t);break}case D.CAPTION:case D.COLGROUP:case D.TBODY:case D.TFOOT:case D.THEAD:{e.tmplInsertionModeStack[0]=me.IN_TABLE,e.insertionMode=me.IN_TABLE,ug(e,t);break}case D.COL:{e.tmplInsertionModeStack[0]=me.IN_COLUMN_GROUP,e.insertionMode=me.IN_COLUMN_GROUP,I3(e,t);break}case D.TR:{e.tmplInsertionModeStack[0]=me.IN_TABLE_BODY,e.insertionMode=me.IN_TABLE_BODY,lx(e,t);break}case D.TD:case D.TH:{e.tmplInsertionModeStack[0]=me.IN_ROW,e.insertionMode=me.IN_ROW,ux(e,t);break}default:e.tmplInsertionModeStack[0]=me.IN_BODY,e.insertionMode=me.IN_BODY,zo(e,t)}}function lUe(e,t){t.tagID===D.TEMPLATE&&Lp(e,t)}function ote(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(D.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):R3(e,t)}function uUe(e,t){t.tagID===D.HTML?zo(e,t):XT(e,t)}function ate(e,t){var n;if(t.tagID===D.HTML){if(e.fragmentContext||(e.insertionMode=me.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===D.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else XT(e,t)}function XT(e,t){e.insertionMode=me.IN_BODY,ax(e,t)}function cUe(e,t){switch(t.tagID){case D.HTML:{zo(e,t);break}case D.FRAMESET:{e._insertElement(t,st.HTML);break}case D.FRAME:{e._appendElement(t,st.HTML),t.ackSelfClosing=!0;break}case D.NOFRAMES:{jl(e,t);break}}}function dUe(e,t){t.tagID===D.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==D.FRAMESET&&(e.insertionMode=me.AFTER_FRAMESET))}function fUe(e,t){switch(t.tagID){case D.HTML:{zo(e,t);break}case D.NOFRAMES:{jl(e,t);break}}}function pUe(e,t){t.tagID===D.HTML&&(e.insertionMode=me.AFTER_AFTER_FRAMESET)}function hUe(e,t){t.tagID===D.HTML?zo(e,t):oS(e,t)}function oS(e,t){e.insertionMode=me.IN_BODY,ax(e,t)}function mUe(e,t){switch(t.tagID){case D.HTML:{zo(e,t);break}case D.NOFRAMES:{jl(e,t);break}}}function gUe(e,t){t.chars=Vr,e._insertCharacters(t)}function bUe(e,t){e._insertCharacters(t),e.framesetOk=!1}function ste(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==st.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function yUe(e,t){if(N8e(t))ste(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===st.MATHML?Hee(t):r===st.SVG&&(P8e(t),Wee(t)),A3(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function OUe(e,t){if(t.tagID===D.P||t.tagID===D.BR){ste(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===st.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}Fe.AREA,Fe.BASE,Fe.BASEFONT,Fe.BGSOUND,Fe.BR,Fe.COL,Fe.EMBED,Fe.FRAME,Fe.HR,Fe.IMG,Fe.INPUT,Fe.KEYGEN,Fe.LINK,Fe.META,Fe.PARAM,Fe.SOURCE,Fe.TRACK,Fe.WBR;const vUe=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Ez={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function lte(e,t){const n=RUe(e),r=S3("type",{handlers:{root:EUe,element:SUe,text:TUe,comment:cte,doctype:wUe,raw:xUe},unknown:CUe}),i={parser:n?new yz(Ez):yz.getFragmentParser(void 0,Ez),handle(s){r(s,i)},stitches:!1,options:t||{}};r(e,i),jg(i,Bu());const o=n?i.parser.document:i.parser.getFragment(),a=DBe(o,{file:i.options.file});return i.stitches&&Ia(a,"comment",function(s,l,u){const c=s;if(c.value.stitch&&u&&l!==void 0){const d=u.children;return d[l]=c.value.stitch,l}}),a.type==="root"&&a.children.length===1&&a.children[0].type===e.type?a.children[0]:a}function ute(e,t){let n=-1;if(e)for(;++n"u")return;const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style={position:"absolute",left:"-9999px"},document.body.appendChild(n);const r=document.getSelection().rangeCount>0?document.getSelection().getRangeAt(0):!1;n.select();let i=!1;try{i=!!document.execCommand("copy")}catch{i=!1}document.body.removeChild(n),r&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(r)),t&&t(i)}function pte(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?pte(t.parentElement):null}function NUe(e){var t=n=>{var r=pte(n.target);r&&(r.classList.add("active"),DUe(r.dataset.code,function(){setTimeout(()=>{r.classList.remove("active")},2e3)}))};I.useEffect(()=>{var n,r;return(n=e.current)==null||n.removeEventListener("click",t,!1),(r=e.current)==null||r.addEventListener("click",t,!1),()=>{var i;(i=e.current)==null||i.removeEventListener("click",t,!1)}},[e])}var PUe=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],LUe=e=>e;const MUe=Qt.forwardRef((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:i,style:o,disableCopy:a=!1,skipHtml:s=!0,onScroll:l,onMouseOver:u,pluginsFilter:c,wrapperElement:d={},warpperElement:p={},urlTransform:h}=e,m=Ge(e,PUe),b=Qt.useRef(null);I.useImperativeHandle(t,()=>P({},e,{mdp:b}),[b,e]);var O=(n||"")+" "+(r||"");NUe(b);var y=[...m.rehypePlugins||[]],v={allowElement:(C,w,E)=>m.allowElement?m.allowElement(C,w,E):/^[A-Za-z0-9]+$/.test(C.tagName)};s&&y.push(fte);var S=[...m.remarkPlugins||[],vBe],k=P({},p,d);return M.jsx("div",P({ref:b,onScroll:l,onMouseOver:u},k,{className:O,style:o,children:M.jsx(uFe,P({},v,m,{skipHtml:s,urlTransform:h||LUe,rehypePlugins:c?c("rehype",y):y,remarkPlugins:c?c("remark",S):S,children:i||""}))}))});function qh(e){return"children"in e?hte(e):"value"in e?e.value:""}function $Ue(e){return e.type==="text"?e.value:"children"in e?hte(e):""}function hte(e){let t=-1;const n=[];for(;++t0&&c.length===0)return}const d={};let p;for(p in s)FUe.call(s,p)&&(d[p]=p==="children"?c:s[p]);return d}}function UUe(e){return"children"in e&&e.children!==void 0}var SI={exports:{}};(function(e,t){function n(r){let i=[],o;for(let a of r.split(",").map(s=>s.trim()))if(/^-?\d+$/.test(a))i.push(parseInt(a,10));else if(o=a.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[s,l,u,c]=o;if(l&&c){l=parseInt(l),c=parseInt(c);const d=l]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}zl.displayName="c";zl.aliases=[];function zl(e){e.register(jn),e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}Mp.displayName="cpp";Mp.aliases=[];function Mp(e){e.register(zl),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)}cx.displayName="arduino";cx.aliases=["ino"];function cx(e){e.register(Mp),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}OO.displayName="bash";OO.aliases=["sh","shell"];function OO(e){(function(t){var n="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},i={bash:r,environment:{pattern:RegExp("\\$"+n),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+n),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+n),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:i},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:i},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:i.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:i.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=t.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],a=i.variable[1].inside,s=0;s>/g,function(ve,G){return"(?:"+se[+G]+")"})}function r(j,se,ve){return RegExp(n(j,se),ve||"")}function i(j,se){for(var ve=0;ve>/g,function(){return"(?:"+j+")"});return j.replace(/<>/g,"[^\\s\\S]")}var o={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function a(j){return"\\b(?:"+j.trim().replace(/ /g,"|")+")\\b"}var s=a(o.typeDeclaration),l=RegExp(a(o.type+" "+o.typeDeclaration+" "+o.contextual+" "+o.other)),u=a(o.typeDeclaration+" "+o.contextual+" "+o.other),c=a(o.type+" "+o.typeDeclaration+" "+o.other),d=i(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),p=i(/\((?:[^()]|<>)*\)/.source,2),h=/@?\b[A-Za-z_]\w*\b/.source,m=n(/<<0>>(?:\s*<<1>>)?/.source,[h,d]),b=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[u,m]),O=/\[\s*(?:,\s*)*\]/.source,y=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[b,O]),v=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[d,p,O]),S=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[v]),k=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[S,b,O]),C={keyword:l,punctuation:/[<>()?,.:[\]]/},w=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,E=/"(?:\\.|[^\\"\r\n])*"/.source,$=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[$]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[E]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[b]),lookbehind:!0,inside:C},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[h,k]),lookbehind:!0,inside:C},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[h]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[s,m]),lookbehind:!0,inside:C},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[b]),lookbehind:!0,inside:C},{pattern:r(/(\bwhere\s+)<<0>>/.source,[h]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[y]),lookbehind:!0,inside:C},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[k,c,h]),inside:C}],keyword:l,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[h]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[h]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[p]),lookbehind:!0,alias:"class-name",inside:C},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[k,b]),inside:C,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[k]),lookbehind:!0,inside:C,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[h,d]),inside:{function:r(/^<<0>>/.source,[h]),generic:{pattern:RegExp(d),alias:"class-name",inside:C}}},"type-list":{pattern:r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[s,m,h,k,l.source,p,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[m,p]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:l,"class-name":{pattern:RegExp(k),greedy:!0,inside:C},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var N=E+"|"+w,R=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[N]),B=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[R]),2),U=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,V=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[b,B]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[U,V]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[U]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[B]),inside:t.languages.csharp},"class-name":{pattern:RegExp(b),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var z=/:[^}\r\n]+/.source,W=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[R]),2),X=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[W,z]),q=i(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[N]),2),Y=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[q,z]);function Z(j,se){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[j]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[se,z]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[X]),lookbehind:!0,greedy:!0,inside:Z(X,W)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[Y]),lookbehind:!0,greedy:!0,inside:Z(Y,q)}],char:{pattern:RegExp(w),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp}(e)}to.displayName="markup";to.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function to(e){e.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var i={};i["language-"+r]={pattern:/(^$)/i,lookbehind:!0,inside:e.languages[r]},i.cdata=/^$/i;var o={"included-cdata":{pattern://i,inside:i}};o["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var a={};a[n]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:o},e.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}uf.displayName="css";uf.aliases=[];function uf(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)}dx.displayName="diff";dx.aliases=[];function dx(e){(function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var n={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(n).forEach(function(r){var i=n[r],o=[];/^\w+$/.test(r)||o.push(/\w+/.exec(r)[0]),r==="diff"&&o.push("bold"),t.languages.diff[r]={pattern:RegExp("^(?:["+i+`].*(?:\r ?| -|(?![\\s\\S])))+`,"m"),alias:o,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(r)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:n})})(e)}qk.displayName="go";qk.aliases=[];function qk(e){e.register(jn),e.languages.go=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),e.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go["class-name"]}Zk.displayName="ini";Zk.aliases=[];function Zk(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:/=/}}Cp.displayName="java";Cp.aliases=[];function Cp(e){e.register(jn),function(t){var n=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,r=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[i,{pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:i.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+r+/[A-Z]\w*\b/.source),lookbehind:!0,inside:i.inside}],keyword:n,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+r+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:i.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+r+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:i.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return n.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(e)}Xk.displayName="regex";Xk.aliases=[];function Xk(e){(function(t){var n={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},r=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,i={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},o={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},a="(?:[^\\\\-]|"+r.source+")",s=RegExp(a+"-"+a),l={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};t.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:s,inside:{escape:r,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":n,"char-set":o,escape:r}},"special-escape":n,"char-set":i,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":l}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:r,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]||&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}Ig.displayName="json";Ig.aliases=["webmanifest"];function Ig(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}Kk.displayName="kotlin";Kk.aliases=["kt","kts"];function Kk(e){e.register(jn),function(t){t.languages.kotlin=t.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete t.languages.kotlin["class-name"];var n={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.kotlin}};t.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:n},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:n},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete t.languages.kotlin.string,t.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),t.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),t.languages.kt=t.languages.kotlin,t.languages.kts=t.languages.kotlin}(e)}Jk.displayName="less";Jk.aliases=[];function Jk(e){e.register(Jd),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"}})}aO.displayName="lua";aO.aliases=[];function aO(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:/[\[\](){},;]|\.+|:+/}}ex.displayName="makefile";ex.aliases=[];function ex(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:/[:;(){}]/}}sO.displayName="yaml";sO.aliases=["yml"];function sO(e){(function(t){var n=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+r.source+"(?:[ ]+"+n.source+")?|"+n.source+"(?:[ ]+"+r.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),a=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function s(l,u){u=(u||"").replace(/m/g,"")+"m";var c=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return l});return RegExp(c,u)}t.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return i})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return"(?:"+o+"|"+a+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:s(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:s(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:s(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:s(a),lookbehind:!0,greedy:!0},number:{pattern:s(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:r,important:n,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml})(e)}tx.displayName="markdown";tx.aliases=["md"];function tx(e){e.register(Ji),function(t){var n=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(s){return s=s.replace(//g,function(){return n}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+s+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),a=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+a+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+a+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+a+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(i),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:r(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:r(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(s){["url","bold","italic","strike","code-snippet"].forEach(function(l){s!==l&&(t.languages.markdown[s].inside.content.inside[l]=t.languages.markdown[l])})}),t.hooks.add("after-tokenize",function(s){if(s.language!=="markdown"&&s.language!=="md")return;function l(u){if(!(!u||typeof u=="string"))for(var c=0,d=u.length;c]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete e.languages.objectivec["class-name"],e.languages.objc=e.languages.objectivec}rx.displayName="perl";rx.aliases=[];function rx(e){(function(t){var n=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;t.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,n+/\s*/.source+n].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(e)}Oo.displayName="markup-templating";Oo.aliases=[];function Oo(e){e.register(Ji),function(t){function n(r,i){return"___"+r.toUpperCase()+i+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(r,i,o,a){if(r.language===i){var s=r.tokenStack=[];r.code=r.code.replace(o,function(l){if(typeof a=="function"&&!a(l))return l;for(var u=s.length,c;r.code.indexOf(c=n(i,u))!==-1;)++u;return s[u]=l,c}),r.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(r,i){if(r.language!==i||!r.tokenStack)return;r.grammar=t.languages[i];var o=0,a=Object.keys(r.tokenStack);function s(l){for(var u=0;u=a.length);u++){var c=l[u];if(typeof c=="string"||c.content&&typeof c.content=="string"){var d=a[o],p=r.tokenStack[d],h=typeof c=="string"?c:c.content,m=n(i,d),y=h.indexOf(m);if(y>-1){++o;var O=h.substring(0,y),b=new t.Token(i,t.tokenize(p,r.grammar),"language-"+i,p),v=h.substring(y+m.length),S=[];O&&S.push.apply(S,s([O])),S.push(b),v&&S.push.apply(S,s([v])),typeof c=="string"?l.splice.apply(l,[u,1].concat(S)):c.content=S}}else c.content&&s(c.content)}return l}s(r.tokens)}}})}(e)}Ap.displayName="php";Ap.aliases=[];function Ap(e){e.register(Oo),function(t){var n=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,r=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],i=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,a=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:n,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:i,operator:o,punctuation:a};var s={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},l=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:s}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:s}}];t.languages.insertBefore("php","variable",{string:l,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:n,string:l,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,number:i,operator:o,punctuation:a}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(u){if(/<\?/.test(u.code)){var c=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;t.languages["markup-templating"].buildPlaceholders(u,"php",c)}}),t.hooks.add("after-tokenize",function(u){t.languages["markup-templating"].tokenizePlaceholders(u,"php")})}(e)}lO.displayName="python";lO.aliases=["py"];function lO(e){e.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.python["string-interpolation"].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}ix.displayName="r";ix.aliases=[];function ix(e){e.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}_p.displayName="ruby";_p.aliases=["rb"];function _p(e){e.register(jn),function(t){t.languages.ruby=t.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),t.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var n={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:t.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete t.languages.ruby.function;var r="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",i=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;t.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+r+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+i),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+i+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),t.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+r),greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+r),greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete t.languages.ruby.string,t.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),t.languages.rb=t.languages.ruby}(e)}ox.displayName="rust";ox.aliases=[];function ox(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)}ax.displayName="sass";ax.aliases=[];function ax(e){e.register(Jd),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)}sx.displayName="scss";sx.aliases=[];function sx(e){e.register(Jd),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}Ng.displayName="sql";Ng.aliases=[];function Ng(e){e.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}lx.displayName="swift";lx.aliases=[];function lx(e){e.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},e.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=e.languages.swift})}Dg.displayName="typescript";Dg.aliases=["ts"];function Dg(e){e.register(yo),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)}uO.displayName="basic";uO.aliases=[];function uO(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:/[,;:()]/}}cO.displayName="vbnet";cO.aliases=[];function cO(e){e.register(uO),e.languages.vbnet=e.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}const nz=/[#.]/g;function iUe(e,t){const n=e||"",r={};let i=0,o,a;for(;i=48&&t<=57}function pUe(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function hUe(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function oz(e){return hUe(e)||jee(e)}const th=String.fromCharCode,mUe=["","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 gUe(e,t={}){const n=typeof t.additional=="string"?t.additional.charCodeAt(0):t.additional,r=[];let i=0,o=-1,a="",s,l;t.position&&("start"in t.position||"indent"in t.position?(l=t.position.indent,s=t.position.start):s=t.position);let u=(s?s.line:0)||1,c=(s?s.column:0)||1,d=h(),p;for(i--;++i<=e.length;)if(p===10&&(c=(l?l[o]:0)||1),p=e.charCodeAt(i),p===38){const O=e.charCodeAt(i+1);if(O===9||O===10||O===12||O===32||O===38||O===60||Number.isNaN(O)||n&&O===n){a+=th(p),c++;continue}const b=i+1;let v=b,S=b,k;if(O===35){S=++v;const U=e.charCodeAt(S);U===88||U===120?(k="hexadecimal",S=++v):k="decimal"}else k="named";let C="",w="",E="";const $=k==="named"?oz:k==="decimal"?jee:pUe;for(S--;++S<=e.length;){const U=e.charCodeAt(S);if(!$(U))break;E+=th(U),k==="named"&&fUe.includes(E)&&(C=E,w=Qy(E))}let D=e.charCodeAt(S)===59;if(D){S++;const U=k==="named"?Qy(E):!1;U&&(C=E,w=U)}let R=1+S-b,B="";if(!(!D&&t.nonTerminated===!1))if(!E)k!=="named"&&m(4,R);else if(k==="named"){if(D&&!w)m(5,1);else if(C!==E&&(S=v+C.length,R=1+S-v,D=!1),!D){const U=C?1:3;if(t.attribute){const V=e.charCodeAt(S);V===61?(m(U,R),w=""):oz(V)?w="":m(U,R)}else m(U,R)}B=w}else{D||m(2,R);let U=Number.parseInt(E,k==="hexadecimal"?16:10);if(bUe(U))m(7,R),B=th(65533);else if(U in iz)m(6,R),B=iz[U];else{let V="";yUe(U)&&m(6,R),U>65535&&(U-=65536,V+=th(U>>>10|55296),U=56320|U&1023),B=V+th(U)}}if(B){y(),d=h(),i=S-1,c+=S-b+1,r.push(B);const U=h();U.offset++,t.reference&&t.reference.call(t.referenceContext,B,{start:d,end:U},e.slice(b-1,S)),d=U}else E=e.slice(b-1,S),a+=E,c+=E.length,i=S-1}else p===10&&(u++,o++,c=0),Number.isNaN(p)?y():(a+=th(p),c++);return r.join("");function h(){return{line:u,column:c,offset:i+((s?s.offset:0)||0)}}function m(O,b){let v;t.warning&&(v=h(),v.column+=b,v.offset+=b,t.warning.call(t.warningContext,mUe[O],v,O))}function y(){a&&(r.push(a),t.text&&t.text.call(t.textContext,a,{start:d,end:h()}),a="")}}function bUe(e){return e>=55296&&e<=57343||e>1114111}function yUe(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 OUe=0,Kv={},Vi={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++OUe}),e.__id},clone:function e(t,n){n=n||{};var r,i;switch(Vi.util.type(t)){case"Object":if(i=Vi.util.objId(t),n[i])return n[i];r={},n[i]=r;for(var o in t)t.hasOwnProperty(o)&&(r[o]=e(t[o],n));return r;case"Array":return i=Vi.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach(function(a,s){r[s]=e(a,n)}),r);default:return t}}},languages:{plain:Kv,plaintext:Kv,text:Kv,txt:Kv,extend:function(e,t){var n=Vi.util.clone(Vi.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r=r||Vi.languages;var i=r[e],o={};for(var a in i)if(i.hasOwnProperty(a)){if(a==t)for(var s in n)n.hasOwnProperty(s)&&(o[s]=n[s]);n.hasOwnProperty(a)||(o[a]=i[a])}var l=r[e];return r[e]=o,Vi.languages.DFS(Vi.languages,function(u,c){c===l&&u!=e&&(this[u]=o)}),o},DFS:function e(t,n,r,i){i=i||{};var o=Vi.util.objId;for(var a in t)if(t.hasOwnProperty(a)){n.call(t,a,t[a],r||a);var s=t[a],l=Vi.util.type(s);l==="Object"&&!i[o(s)]?(i[o(s)]=!0,e(s,n,null,i)):l==="Array"&&!i[o(s)]&&(i[o(s)]=!0,e(s,n,a,i))}}},plugins:{},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(Vi.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=Vi.tokenize(r.code,r.grammar),Vi.hooks.run("after-tokenize",r),Mb.stringify(Vi.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 vUe;return HE(i,i.head,e),zee(e,i,t,i.head,0),SUe(i)},hooks:{all:{},add:function(e,t){var n=Vi.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=Vi.hooks.all[e];if(!(!n||!n.length))for(var r=0,i;i=n[r++];)i(t)}},Token:Mb};function Mb(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||"").length|0}function az(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var o=i[1].length;i.index+=o,i[0]=i[0].slice(o)}return i}function zee(e,t,n,r,i,o){for(var a in n)if(!(!n.hasOwnProperty(a)||!n[a])){var s=n[a];s=Array.isArray(s)?s:[s];for(var l=0;l=o.reach);b+=O.value.length,O=O.next){var v=O.value;if(t.length>e.length)return;if(!(v instanceof Mb)){var S=1,k;if(p){if(k=az(y,b,e,d),!k||k.index>=e.length)break;var $=k.index,C=k.index+k[0].length,w=b;for(w+=O.value.length;$>=w;)O=O.next,w+=O.value.length;if(w-=O.value.length,b=w,O.value instanceof Mb)continue;for(var E=O;E!==t.tail&&(wo.reach&&(o.reach=U);var V=O.prev;R&&(V=HE(t,V,R),b+=R.length),EUe(t,V,S);var z=new Mb(a,c?Vi.tokenize(D,c):D,h,D);if(O=HE(t,V,z),B&&HE(t,O,B),S>1){var Q={cause:a+","+l,reach:U};zee(e,t,n,O.prev,b,Q),o&&Q.reach>o.reach&&(o.reach=Q.reach)}}}}}}function vUe(){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 HE(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 EUe(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:/[,.:()]/}}p3.displayName="abnf";p3.aliases=[];function p3(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)}h3.displayName="actionscript";h3.aliases=[];function h3(e){e.register(yo),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}})}m3.displayName="ada";m3.aliases=[];function m3(e){e.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|or|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}g3.displayName="agda";g3.aliases=[];function g3(e){(function(t){t.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(e)}b3.displayName="al";b3.aliases=[];function b3(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:/[()\[\]{}:.;,]/}}y3.displayName="antlr4";y3.aliases=["g4"];function y3(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}O3.displayName="apacheconf";O3.aliases=[];function O3(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:/\^?.*\$|\^.*\$?/}}v3.displayName="apex";v3.aliases=[];function v3(e){e.register(jn),e.register(Ng),function(t){var n=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,r=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(//g,function(){return n.source});function i(a){return RegExp(a.replace(//g,function(){return r}),"i")}var o={keyword:n,punctuation:/[()\[\]{};,:.<>]/};t.languages.apex={comment:t.languages.clike.comment,string:t.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:t.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:i(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)/.source),lookbehind:!0,inside:o},{pattern:i(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:o},{pattern:i(/(?=\s*\w+\s*[;=,(){:])/.source),inside:o}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:n,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(e)}E3.displayName="apl";E3.aliases=[];function E3(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"}}}S3.displayName="applescript";S3.aliases=[];function S3(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:/[{}():,¬«»《》]/}}T3.displayName="aql";T3.aliases=[];function T3(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:/::|[?.:,;()[\]{}]/}}w3.displayName="arff";w3.aliases=[];function w3(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:/[{},]/}}k3.displayName="armasm";k3.aliases=["arm-asm"];function k3(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}x3.displayName="arturo";x3.aliases=["art"];function x3(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)}C3.displayName="asciidoc";C3.aliases=["adoc"];function C3(e){(function(t){var n={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},r=t.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})$[\s\S]*?^\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:n,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:n.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:n,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function i(o){o=o.split(" ");for(var a={},s=0,l=o.length;s/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:e.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:e.languages.csharp}}}),e.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,e.languages.insertBefore("inside","punctuation",{directive:e.languages.aspnet.directive},e.languages.aspnet.tag.inside["attr-value"]),e.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),e.languages.insertBefore("aspnet",e.languages.javascript?"script":"tag",{"asp-script":{pattern:/(]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:e.languages.csharp||{}}})}_3.displayName="asm6502";_3.aliases=[];function _3(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:/[(),:]/}}R3.displayName="asmatmel";R3.aliases=[];function R3(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:/[(),:]/}}I3.displayName="autohotkey";I3.aliases=[];function I3(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:/[{}[\]():,]/}}N3.displayName="autoit";N3.aliases=[];function N3(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:/[\[\]().,:]/}}D3.displayName="avisynth";D3.aliases=["avs"];function D3(e){(function(t){function n(u,c){return u.replace(/<<(\d+)>>/g,function(d,p){return c[+p]})}function r(u,c,d){return RegExp(n(u,c),d||"")}var i=/bool|clip|float|int|string|val/.source,o=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),a=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),s=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),l=[o,a,s].join("|");t.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:r(/\b(?:<<0>>)\s+("?)\w+\1/.source,[i],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:r(/\b(?:<<0>>)\b/.source,[l],"i"),alias:"function"},"type-cast":{pattern:r(/\b(?:<<0>>)(?=\s*\()/.source,[i],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},t.languages.avs=t.languages.avisynth})(e)}P3.displayName="avro-idl";P3.aliases=["avdl"];function P3(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"]}L3.displayName="awk";L3.aliases=["gawk"];function L3(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}M3.displayName="batch";M3.aliases=[];function M3(e){(function(t){var n=/%%?[~:\w]+%?|!\S+!/,r={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},i=/"(?:[\\"]"|[^"])*"(?!")/,o=/(?:\b|-)\d+\b/;t.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:i,parameter:r,variable:n,number:o,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:i,parameter:r,variable:n,number:o,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:i,parameter:r,variable:[n,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:o,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:i,parameter:r,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:n,number:o,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(e)}$3.displayName="bbcode";$3.aliases=["shortcode"];function $3(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}F3.displayName="bbj";F3.aliases=[];function F3(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)}B3.displayName="bicep";B3.aliases=[];function B3(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}U3.displayName="birb";U3.aliases=[];function U3(e){e.register(jn),e.languages.birb=e.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),e.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}j3.displayName="bison";j3.aliases=[];function j3(e){e.register(Bl),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:/%[%?]|[|:;\[\]<>]/}}})}z3.displayName="bnf";z3.aliases=["rbnf"];function z3(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}V3.displayName="bqn";V3.aliases=[];function V3(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:/[←⇐↩(){}⟨⟩[\]‿·⋄,.;:?]/}}H3.displayName="brainfuck";H3.aliases=[];function H3(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}W3.displayName="brightscript";W3.aliases=[];function W3(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}Q3.displayName="bro";Q3.aliases=[];function Q3(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:/[{}[\];(),.:]/}}Y3.displayName="bsl";Y3.aliases=["oscript"];function Y3(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}G3.displayName="cfscript";G3.aliases=["cfc"];function G3(e){e.register(jn),e.languages.cfscript=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|:/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),e.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete e.languages.cfscript["class-name"],e.languages.cfc=e.languages.cfscript}q3.displayName="chaiscript";q3.aliases=[];function q3(e){e.register(jn),e.register(kp),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]+/}}})}Z3.displayName="cil";Z3.aliases=[];function Z3(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]+/}}X3.displayName="cilkc";X3.aliases=["cilk-c"];function X3(e){e.register(Bl),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}K3.displayName="cilkcpp";K3.aliases=["cilk","cilk-cpp"];function K3(e){e.register(kp),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}J3.displayName="clojure";J3.aliases=[];function J3(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:/[{}\[\](),]/}}eL.displayName="cmake";eL.aliases=[];function eL(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:/[()>}]|\$[<{]/}}tL.displayName="cobol";tL.aliases=[];function tL(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:/[.:,()]/}}nL.displayName="coffeescript";nL.aliases=["coffee"];function nL(e){e.register(yo),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)}rL.displayName="concurnas";rL.aliases=["conc"];function rL(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}iL.displayName="csp";iL.aliases=[];function iL(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)}oL.displayName="cooklang";oL.aliases=[];function oL(e){(function(t){var n=/(?:(?!\s)[\d$+<=a-zA-Z\x80-\uFFFF])+/.source,r=/[^{}@#]+/.source,i=/\{[^}#@]*\}/.source,o=r+i,a=/(?:h|hours|hrs|m|min|minutes)/.source,s={pattern:/\{[^{}]*\}/,inside:{amount:{pattern:/([\{|])[^{}|*%]+/,lookbehind:!0,alias:"number"},unit:{pattern:/(%)[^}]+/,lookbehind:!0,alias:"symbol"},"servings-scaler":{pattern:/\*/,alias:"operator"},"servings-alternative-separator":{pattern:/\|/,alias:"operator"},"unit-separator":{pattern:/(?:%|(\*)%)/,lookbehind:!0,alias:"operator"},punctuation:/[{}]/}};t.languages.cooklang={comment:{pattern:/\[-[\s\S]*?-\]|--.*/,greedy:!0},meta:{pattern:/>>.*:.*/,inside:{property:{pattern:/(>>\s*)[^\s:](?:[^:]*[^\s:])?/,lookbehind:!0}}},"cookware-group":{pattern:new RegExp("#(?:"+o+"|"+n+")"),inside:{cookware:{pattern:new RegExp("(^#)(?:"+r+")"),lookbehind:!0,alias:"variable"},"cookware-keyword":{pattern:/^#/,alias:"keyword"},"quantity-group":{pattern:new RegExp(/\{[^{}@#]*\}/),inside:{quantity:{pattern:new RegExp(/(^\{)/.source+r),lookbehind:!0,alias:"number"},punctuation:/[{}]/}}}},"ingredient-group":{pattern:new RegExp("@(?:"+o+"|"+n+")"),inside:{ingredient:{pattern:new RegExp("(^@)(?:"+r+")"),lookbehind:!0,alias:"variable"},"ingredient-keyword":{pattern:/^@/,alias:"keyword"},"amount-group":s}},"timer-group":{pattern:/~(?!\s)[^@#~{}]*\{[^{}]*\}/,inside:{timer:{pattern:/(^~)[^{]+/,lookbehind:!0,alias:"variable"},"duration-group":{pattern:/\{[^{}]*\}/,inside:{punctuation:/[{}]/,unit:{pattern:new RegExp(/(%\s*)/.source+a+/\b/.source),lookbehind:!0,alias:"symbol"},operator:/%/,duration:{pattern:/\d+/,alias:"number"}}},"timer-keyword":{pattern:/^~/,alias:"keyword"}}}}})(e)}aL.displayName="coq";aL.aliases=[];function aL(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)}sL.displayName="crystal";sL.aliases=[];function sL(e){e.register(_p),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)}lL.displayName="css-extras";lL.aliases=[];function lL(e){e.register(Jd),function(t){var n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r;t.languages.css.selector={pattern:t.languages.css.selector.pattern,lookbehind:!0,inside:r={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},t.languages.css.atrule.inside["selector-function-argument"].inside=r,t.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var i={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},o={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};t.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:i,number:o,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:i,number:o})}(e)}uL.displayName="csv";uL.aliases=[];function uL(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}cL.displayName="cue";cL.aliases=[];function cL(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)}dL.displayName="cypher";dL.aliases=[];function dL(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:/[()[\]{},;.]/}}fL.displayName="d";fL.aliases=[];function fL(e){e.register(jn),e.languages.d=e.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),e.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),e.languages.insertBefore("d","keyword",{property:/\B@\w*/}),e.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}pL.displayName="dart";pL.aliases=[];function pL(e){e.register(jn),function(t){var n=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],r=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};t.languages.dart=t.languages.extend("clike",{"class-name":[i,{pattern:RegExp(r+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:n,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),t.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.dart}}},string:/[\s\S]+/}},string:void 0}),t.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),t.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})}(e)}hL.displayName="dataweave";hL.aliases=[];function hL(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)}mL.displayName="dax";mL.aliases=[];function mL(e){e.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}gL.displayName="dhall";gL.aliases=[];function gL(e){e.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},e.languages.dhall.string.inside.interpolation.inside.expression.inside=e.languages.dhall}bL.displayName="django";bL.aliases=["jinja2"];function bL(e){e.register(Oo),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)}yL.displayName="dns-zone-file";yL.aliases=["dns-zone"];function yL(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"]}OL.displayName="docker";OL.aliases=["dockerfile"];function OL(e){(function(t){var n=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,r=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,function(){return n}),i=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,o=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return i}),a={pattern:RegExp(i),greedy:!0},s={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function l(u,c){return u=u.replace(//g,function(){return o}).replace(//g,function(){return r}),RegExp(u,c)}t.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:l(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[a,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:l(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:l(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:l(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:s,string:a,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:s},t.languages.dockerfile=t.languages.docker})(e)}vL.displayName="dot";vL.aliases=["gv"];function vL(e){(function(t){var n="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",r={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:t.languages.markup}};function i(o,a){return RegExp(o.replace(//g,function(){return n}),a)}t.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:i(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:r},"attr-value":{pattern:i(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:r},"attr-name":{pattern:i(/([\[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:r},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:i(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:r},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},t.languages.gv=t.languages.dot})(e)}EL.displayName="ebnf";EL.aliases=[];function EL(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:/[-=|*/!]/}}SL.displayName="editorconfig";SL.aliases=[];function SL(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:/^=/}}}}TL.displayName="eiffel";TL.aliases=[];function TL(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:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}wL.displayName="ejs";wL.aliases=["eta"];function wL(e){e.register(yo),e.register(Oo),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)}kL.displayName="elixir";kL.aliases=[];function kL(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}}}})}xL.displayName="elm";xL.aliases=[];function xL(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:/[{}[\]|(),.:]/}}CL.displayName="etlua";CL.aliases=[];function CL(e){e.register(aO),e.register(Oo),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)}AL.displayName="erb";AL.aliases=[];function AL(e){e.register(Oo),e.register(_p),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)}_L.displayName="erlang";_L.aliases=[];function _L(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:/[()[\]{}:;,.#|]|<<|>>/}}RL.displayName="excel-formula";RL.aliases=["xls","xlsx"];function RL(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"]}IL.displayName="fsharp";IL.aliases=[];function IL(e){e.register(jn),e.languages.fsharp=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),e.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),e.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),e.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:e.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}NL.displayName="factor";NL.aliases=[];function NL(e){(function(t){var n={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},r={number:/\\[^\s']|%\w/},i={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:n},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:n}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:r.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:r}},o=function(u){return(u+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},a=function(u){return new RegExp("(^|\\s)(?:"+u.map(o).join("|")+")(?=\\s|$)")},s={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated",">>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(s).forEach(function(u){i[u].pattern=a(s[u])});var l=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","inputsequence"];i.combinators.pattern=a(l),t.languages.factor=i})(e)}DL.displayName="false";DL.aliases=[];function DL(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:/,/}}})}LL.displayName="flow";LL.aliases=[];function LL(e){e.register(yo),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)}ML.displayName="fortran";ML.aliases=[];function ML(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:/\(\/|\/\)|[(),;:&]/}}$L.displayName="ftl";$L.aliases=[];function $L(e){e.register(Oo),function(t){for(var n=/[^<()"']|\((?:)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,/[^\s\S]/.source);var i={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:))*\})*\1/.source.replace(//g,function(){return n})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:))*\}/.source.replace(//g,function(){return n})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};i.string[1].inside.interpolation.inside.rest=i,t.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}}},t.hooks.add("before-tokenize",function(o){var a=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return n}),"gi");t.languages["markup-templating"].buildPlaceholders(o,"ftl",a)}),t.hooks.add("after-tokenize",function(o){t.languages["markup-templating"].tokenizePlaceholders(o,"ftl")})}(e)}FL.displayName="gml";FL.aliases=["gamemakerlanguage"];function FL(e){e.register(jn),e.languages.gamemakerlanguage=e.languages.gml=e.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}BL.displayName="gap";BL.aliases=[];function BL(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}UL.displayName="gcode";UL.aliases=[];function UL(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:/[:*]/}}jL.displayName="gdscript";jL.aliases=[];function jL(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:/[.:,;()[\]{}]/}}zL.displayName="gedcom";zL.aliases=[];function zL(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"}}}VL.displayName="gettext";VL.aliases=["po"];function VL(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}HL.displayName="gherkin";HL.aliases=[];function HL(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)}WL.displayName="git";WL.aliases=[];function WL(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}}QL.displayName="glsl";QL.aliases=[];function QL(e){e.register(Bl),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/})}YL.displayName="gn";YL.aliases=["gni"];function YL(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}GL.displayName="linker-script";GL.aliases=["ld"];function GL(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"]}qL.displayName="go-module";qL.aliases=["go-mod"];function qL(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:/[()[\],]/}}ZL.displayName="gradle";ZL.aliases=[];function ZL(e){e.register(jn),function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.gradle=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:apply|def|dependencies|else|if|implementation|import|plugin|plugins|project|repositories|repository|sourceSets|tasks|val)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("gradle","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("gradle","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("gradle","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.gradle}(e)}XL.displayName="graphql";XL.aliases=[];function XL(e){e.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:e.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},e.hooks.add("after-tokenize",function(n){if(n.language!=="graphql")return;var r=n.tokens.filter(function(O){return typeof O!="string"&&O.type!=="comment"&&O.type!=="scalar"}),i=0;function o(O){return r[i+O]}function a(O,b){b=b||0;for(var v=0;v0)){var h=s(/^\{$/,/^\}$/);if(h===-1)continue;for(var m=i;m=0&&l(y,"variable-input")}}}}})}KL.displayName="groovy";KL.aliases=[];function KL(e){e.register(jn),function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.groovy=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.groovy}(e)}JL.displayName="textile";JL.aliases=[];function JL(e){e.register(Ji),function(t){var n=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,r=/\)|\((?![^|()\n]+\))/.source;function i(d,p){return RegExp(d.replace(//g,function(){return"(?:"+n+")"}).replace(//g,function(){return"(?:"+r+")"}),p||"")}var o={css:{pattern:/\{[^{}]+\}/,inside:{rest:t.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},a=t.languages.textile=t.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:i(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:i(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:o},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:i(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:i(/(^[*#]+)+/.source),lookbehind:!0,inside:o},punctuation:/^[*#]+/}},table:{pattern:i(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:i(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:o},punctuation:/\||^\./}},inline:{pattern:i(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:i(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:i(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:i(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:i(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:i(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:i(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:i(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:i(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:o},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:i(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:i(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:i(/(^")+/.source),lookbehind:!0,inside:o},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:i(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:i(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:i(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:o},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),s=a.phrase.inside,l={inline:s.inline,link:s.link,image:s.image,footnote:s.footnote,acronym:s.acronym,mark:s.mark};a.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var u=s.inline.inside;u.bold.inside=l,u.italic.inside=l,u.inserted.inside=l,u.deleted.inside=l,u.span.inside=l;var c=s.table.inside;c.inline=l.inline,c.link=l.link,c.image=l.image,c.footnote=l.footnote,c.acronym=l.acronym,c.mark=l.mark}(e)}eM.displayName="haml";eM.aliases=[];function eM(e){e.register(_p),function(t){t.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:t.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:t.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:t.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:t.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:t.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:t.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var n="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",r=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],i={},o=0,a=r.length;o@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},t.hooks.add("before-tokenize",function(n){var r=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;t.languages["markup-templating"].buildPlaceholders(n,"handlebars",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"handlebars")}),t.languages.hbs=t.languages.handlebars,t.languages.mustache=t.languages.handlebars}(e)}dO.displayName="haskell";dO.aliases=["hs"];function dO(e){e.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},e.languages.hs=e.languages.haskell}nM.displayName="haxe";nM.aliases=[];function nM(e){e.register(jn),e.languages.haxe=e.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<{1,3}|[-+*/%!=&|^])=?|[?:~]/}),e.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.haxe}}},string:/[\s\S]+/}}}),e.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),e.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}rM.displayName="hcl";rM.aliases=[];function rM(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:/[=\[\]{}]/}}iM.displayName="hlsl";iM.aliases=[];function iM(e){e.register(Bl),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/})}oM.displayName="hoon";oM.aliases=[];function oM(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:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}aM.displayName="hpkp";aM.aliases=[];function aM(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}sM.displayName="hsts";sM.aliases=[];function sM(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}lM.displayName="uri";lM.aliases=["url"];function lM(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}uM.displayName="http";uM.aliases=[];function uM(e){(function(t){function n(c){return RegExp("(^(?:"+c+"):[ ]*(?![ ]))[^]+","i")}t.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:t.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:n(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:t.languages.csp},{pattern:n(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:t.languages.hpkp},{pattern:n(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:t.languages.hsts},{pattern:n(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var r=t.languages,i={"application/javascript":r.javascript,"application/json":r.json||r.javascript,"application/xml":r.xml,"text/xml":r.xml,"text/html":r.html,"text/css":r.css,"text/plain":r.plain},o={"application/json":!0,"application/xml":!0};function a(c){var d=c.replace(/^[a-z]+\//,""),p="\\w+/(?:[\\w.-]+\\+)+"+d+"(?![+\\w.-])";return"(?:"+c+"|"+p+")"}var s;for(var l in i)if(i[l]){s=s||{};var u=o[l]?a(l):l;s[l.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+u+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:i[l]}}s&&t.languages.insertBefore("http","header",s)})(e)}cM.displayName="ichigojam";cM.aliases=[];function cM(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:/[\[,;:()\]]/}}dM.displayName="icon";dM.aliases=[];function dM(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:/[\[\](){},;]/}}fM.displayName="icu-message-format";fM.aliases=[];function fM(e){(function(t){function n(l,u){return u<=0?/[]/.source:l.replace(//g,function(){return n(l,u-1)})}var r=/'[{}:=,](?:[^']|'')*'(?!')/,i={pattern:/''/,greedy:!0,alias:"operator"},o={pattern:r,greedy:!0,inside:{escape:i}},a=n(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return r.source}),8),s={pattern:RegExp(a),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};t.languages["icu-message-format"]={argument:{pattern:RegExp(a),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":s,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":s,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+n(/(?:[^{}']|'[^']*'|\{(?:)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:i,string:o},s.inside.message.inside=t.languages["icu-message-format"],t.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=t.languages["icu-message-format"]})(e)}pM.displayName="idris";pM.aliases=["idr"];function pM(e){e.register(dO),e.languages.idris=e.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),e.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.idr=e.languages.idris}hM.displayName="ignore";hM.aliases=["gitignore","hgignore","npmignore"];function hM(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)}mM.displayName="inform7";mM.aliases=[];function mM(e){e.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},e.languages.inform7.string.inside.substitution.inside.rest=e.languages.inform7,e.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}gM.displayName="io";gM.aliases=[];function gM(e){e.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}Lg.displayName="javadoclike";Lg.aliases=[];function Lg(e){(function(t){var n=t.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function r(o,a){var s="doc-comment",l=t.languages[o];if(l){var u=l[s];if(!u){var c={};c[s]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},l=t.languages.insertBefore(o,"comment",c),u=l[s]}if(u instanceof RegExp&&(u=l[s]={pattern:u}),Array.isArray(u))for(var d=0,p=u.length;d|\b(?:abstract|case|catch|class|def|derives|do|else|enum|extends|extension|final|finally|for|forSome|given|if|implicit|import|infix|inline|lazy|match|new|null|object|opaque|open|override|package|private|protected|return|sealed|self|super|this|throw|trait|transparent|try|type|using|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),e.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.scala}}},string:/[\s\S]+/}}}),delete e.languages.scala["class-name"],delete e.languages.scala.function,delete e.languages.scala.constant}OM.displayName="javadoc";OM.aliases=[];function OM(e){e.register(Cp),e.register(Lg),e.register(Ji),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)}vM.displayName="javastacktrace";vM.aliases=[];function vM(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/}}}}EM.displayName="jexl";EM.aliases=[];function EM(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:/[{}[\](),.]/}}SM.displayName="jolie";SM.aliases=[];function SM(e){e.register(jn),e.languages.jolie=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),e.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}TM.displayName="jq";TM.aliases=[];function TM(e){(function(t){var n=/\\\((?:[^()]|\([^()]*\))*\)/.source,r=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return n})),i={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+n),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},o=t.languages.jq={comment:/#.*/,property:{pattern:RegExp(r.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:i},string:{pattern:r,lookbehind:!0,greedy:!0,inside:i},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};i.interpolation.inside.content.inside=o})(e)}wM.displayName="js-templates";wM.aliases=[];function wM(e){e.register(yo),function(t){var n=t.languages.javascript["template-string"],r=n.pattern.source,i=n.inside.interpolation,o=i.inside["interpolation-punctuation"],a=i.pattern.source;function s(m,y){if(t.languages[m])return{pattern:RegExp("((?:"+y+")\\s*)"+r),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:m}}}}t.languages.javascript["template-string"]=[s("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),s("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),s("svg",/\bsvg/.source),s("markdown",/\b(?:markdown|md)/.source),s("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),s("sql",/\bsql/.source),n].filter(Boolean);function l(m,y){return"___"+y.toUpperCase()+"_"+m+"___"}function u(m,y,O){var b={code:m,grammar:y,language:O};return t.hooks.run("before-tokenize",b),b.tokens=t.tokenize(b.code,b.grammar),t.hooks.run("after-tokenize",b),b.tokens}function c(m){var y={};y["interpolation-punctuation"]=o;var O=t.tokenize(m,y);if(O.length===3){var b=[1,1];b.push.apply(b,u(O[1],t.languages.javascript,"javascript")),O.splice.apply(O,b)}return new t.Token("interpolation",O,i.alias,m)}function d(m,y,O){var b=t.tokenize(m,{interpolation:{pattern:RegExp(a),lookbehind:!0}}),v=0,S={},k=b.map(function($){if(typeof $=="string")return $;for(var D=$.content,R;m.indexOf(R=l(v++,O))!==-1;);return S[R]=D,R}).join(""),C=u(k,y,O),w=Object.keys(S);v=0;function E($){for(var D=0;D<$.length;D++){if(v>=w.length)return;var R=$[D];if(typeof R=="string"||typeof R.content=="string"){var B=w[v],U=typeof R=="string"?R:R.content,V=U.indexOf(B);if(V!==-1){++v;var z=U.substring(0,V),Q=c(S[B]),X=U.substring(V+B.length),Z=[];if(z&&Z.push(z),Z.push(Q),X){var Y=[X];E(Y),Z.push.apply(Z,Y)}typeof R=="string"?($.splice.apply($,[D,1].concat(Z)),D+=Z.length-1):R.content=Z}}else{var q=R.content;Array.isArray(q)?E(q):E([q])}}}return E(C),new t.Token(O,C,"language-"+O,m)}var p={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};t.hooks.add("after-tokenize",function(m){if(!(m.language in p))return;function y(O){for(var b=0,v=O.length;b\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)}xM.displayName="n4js";xM.aliases=["n4jsd"];function xM(e){e.register(yo),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}CM.displayName="js-extras";CM.aliases=[];function CM(e){e.register(yo),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:/:/}}}}}}IM.displayName="julia";IM.aliases=[];function IM(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|[πℯ]/}}NM.displayName="keepalived";NM.aliases=[];function NM(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:/[\{\}]/}}DM.displayName="keyman";DM.aliases=[];function DM(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:/[()=,]/}}PM.displayName="kumir";PM.aliases=["kum"];function PM(e){(function(t){var n=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function r(i,o){return RegExp(i.replace(//g,n),o)}t.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:r(/(^|[])(?:да|нет)(?=[]|$)/.source),lookbehind:!0},"operator-word":{pattern:r(/(^|[])(?:и|или|не)(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:r(/(^|[])знач(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:r(/(^|[])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:r(/(^|[])(?:компл|сканкод|файл|цвет)(?=[]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:r(/(^|[])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[]|$)/.source),lookbehind:!0},name:{pattern:r(/(^|[])[^\d][^]*(?:\x20+[^]+)*(?=[]|$)/.source),lookbehind:!0},number:{pattern:r(/(^|[])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},t.languages.kum=t.languages.kumir})(e)}LM.displayName="kusto";LM.aliases=[];function LM(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:/[()\[\]{},;.:]/}}MM.displayName="latex";MM.aliases=["context","tex"];function MM(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)}$M.displayName="latte";$M.aliases=[];function $M(e){e.register(jn),e.register(Oo),e.register(Ap),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)}fO.displayName="scheme";fO.aliases=[];function fO(e){(function(t){t.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(n({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function n(r){for(var i in r)r[i]=r[i].replace(/<[\w\s]+>/g,function(o){return"(?:"+r[o].trim()+")"});return r[i]}})(e)}FM.displayName="lilypond";FM.aliases=["ly"];function FM(e){e.register(fO),function(t){for(var n=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|)*\)/.source,r=5,i=0;i/g,function(){return n});n=n.replace(//g,/[^\s\S]/.source);var o=t.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|))/.source.replace(//g,function(){return n}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:t.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};o["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=o,t.languages.ly=o}(e)}BM.displayName="liquid";BM.aliases=[];function BM(e){e.register(Oo),e.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},e.hooks.add("before-tokenize",function(t){var n=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,r=!1;e.languages["markup-templating"].buildPlaceholders(t,"liquid",n,function(i){var o=/^\{%-?\s*(\w+)/.exec(i);if(o){var a=o[1];if(a==="raw"&&!r)return r=!0,!0;if(a==="endraw")return r=!1,!0}return!r})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"liquid")})}UM.displayName="lisp";UM.aliases=["elisp","emacs","emacs-lisp"];function UM(e){(function(t){function n(m){return RegExp(/(\()/.source+"(?:"+m+")"+/(?=[\s\)])/.source)}function r(m){return RegExp(/([\s([])/.source+"(?:"+m+")"+/(?=[\s)])/.source)}var i=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,o="&"+i,a="(\\()",s="(?=\\))",l="(?=\\s)",u=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,c={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+i+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+i),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+i),alias:"property"},splice:{pattern:RegExp(",@?"+i),alias:["symbol","variable"]},keyword:[{pattern:RegExp(a+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+l),lookbehind:!0},{pattern:RegExp(a+"(?:append|by|collect|concat|do|finally|for|in|return)"+l),lookbehind:!0}],declare:{pattern:n(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:n(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:r(/nil|t/.source),lookbehind:!0},number:{pattern:r(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(a+"def(?:const|custom|group|var)\\s+"+i),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(i)}},defun:{pattern:RegExp(a+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+i+/\s+\(/.source+u+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+i),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(a+"lambda\\s+\\(\\s*(?:&?"+i+"(?:\\s+&?"+i+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(a+i),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},d={"lisp-marker":RegExp(o),varform:{pattern:RegExp(/\(/.source+i+/\s+(?=\S)/.source+u+/\)/.source),inside:c},argument:{pattern:RegExp(/(^|[\s(])/.source+i),lookbehind:!0,alias:"variable"},rest:c},p="\\S+(?:\\s+\\S+)*",h={pattern:RegExp(a+u+s),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+p),inside:d},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+p),inside:d},keys:{pattern:RegExp("&key\\s+"+p+"(?:\\s+&allow-other-keys)?"),inside:d},argument:{pattern:RegExp(i),alias:"variable"},punctuation:/[()]/}};c.lambda.inside.arguments=h,c.defun.inside.arguments=t.util.clone(h),c.defun.inside.arguments.inside.sublist=h,t.languages.lisp=c,t.languages.elisp=c,t.languages.emacs=c,t.languages["emacs-lisp"]=c})(e)}jM.displayName="livescript";jM.aliases=[];function jM(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}zM.displayName="llvm";zM.aliases=[];function zM(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)}VM.displayName="log";VM.aliases=[];function VM(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:/[\[\].,]/}}HM.displayName="lolcode";HM.aliases=[];function HM(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}|…|,|!/}}WM.displayName="magma";WM.aliases=[];function WM(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:/[()[\]{}<>,;.:]/}}ux.displayName="mata";ux.aliases=[];function ux(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)}QM.displayName="matlab";QM.aliases=[];function QM(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}|[.,;\[\](){}!]/}}YM.displayName="maxscript";YM.aliases=[];function YM(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)}GM.displayName="mel";GM.aliases=[];function GM(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}qM.displayName="mermaid";qM.aliases=[];function qM(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:/[(){};]/}}ZM.displayName="metafont";ZM.aliases=[];function ZM(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}}}XM.displayName="mizar";XM.aliases=[];function XM(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:/\(#|#\)|[,:;\[\](){}]/}}KM.displayName="mongodb";KM.aliases=[];function KM(e){e.register(yo),function(t){var n=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],r=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];n=n.map(function(o){return o.replace("$","\\$")});var i="(?:"+n.join("|")+")\\b";t.languages.mongodb=t.languages.extend("javascript",{}),t.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+i+"(?:\\1)?$")}}}),t.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},t.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+r.join("|")+")\\b"),alias:"keyword"}})}(e)}JM.displayName="monkey";JM.aliases=[];function JM(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:/[.,:;()\[\]]/}}e4.displayName="moonscript";e4.aliases=["moon"];function e4(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}t4.displayName="n1ql";t4.aliases=[];function t4(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:/[;[\](),.{}:]/}}n4.displayName="nand2tetris-hdl";n4.aliases=[];function n4(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:/[{}[\];(),:]/}}r4.displayName="naniscript";r4.aliases=["nani"];function r4(e){(function(t){var n=/\{[^\r\n\[\]{}]*\}/,r={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:n,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};t.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:n,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:r}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:n,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:r},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},t.languages.nani=t.languages.naniscript,t.hooks.add("after-tokenize",function(a){var s=a.tokens;s.forEach(function(l){if(typeof l!="string"&&l.type==="generic-text"){var u=o(l);i(u)||(l.type="bad-line",l.content=u)}})});function i(a){for(var s="[]{}",l=[],u=0;u=&|$!]/}}o4.displayName="neon";o4.aliases=[];function o4(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:/[,:=[\]{}()-]/}}a4.displayName="nevod";a4.aliases=[];function a4(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\-.]+/}}s4.displayName="nginx";s4.aliases=[];function s4(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)}l4.displayName="nim";l4.aliases=[];function l4(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:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}u4.displayName="nix";u4.aliases=[];function u4(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}c4.displayName="nsis";c4.aliases=[];function c4(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}}}d4.displayName="ocaml";d4.aliases=[];function d4(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/}}f4.displayName="odin";f4.aliases=[];function f4(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)}p4.displayName="opencl";p4.aliases=[];function p4(e){e.register(Bl),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)}h4.displayName="openqasm";h4.aliases=["qasm"];function h4(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}m4.displayName="oz";m4.aliases=[];function m4(e){e.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}g4.displayName="parigp";g4.aliases=[];function g4(e){e.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var t=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return t=t.map(function(n){return n.split("").join(" *")}).join("|"),RegExp("\\b(?:"+t+")\\b")}(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}b4.displayName="parser";b4.aliases=[];function b4(e){e.register(Ji),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)}y4.displayName="pascal";y4.aliases=["objectpascal"];function y4(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}O4.displayName="pascaligo";O4.aliases=[];function O4(e){(function(t){var n=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,r=/(?:\b\w+(?:)?|)/.source.replace(//g,function(){return n}),i=t.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)/.source.replace(//g,function(){return r}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/(?=\s+is\b)/.source.replace(//g,function(){return r}),"i"),inside:null},{pattern:RegExp(/(:\s*)/.source.replace(//g,function(){return r})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},o=["comment","keyword","builtin","operator","punctuation"].reduce(function(a,s){return a[s]=i[s],a},{});i["class-name"].forEach(function(a){a.inside=o})})(e)}v4.displayName="psl";v4.aliases=[];function v4(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:/[(){}\[\];,]/}}E4.displayName="pcaxis";E4.aliases=["px"];function E4(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}S4.displayName="peoplecode";S4.aliases=["pcode"];function S4(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}T4.displayName="phpdoc";T4.aliases=[];function T4(e){e.register(Lg),e.register(Ap),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)}w4.displayName="php-extras";w4.aliases=[];function w4(e){e.register(Ap),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:/::|\\/}}})}k4.displayName="plant-uml";k4.aliases=["plantuml"];function k4(e){(function(t){var n=/\$\w+|%[a-z]+%/,r=/\[[^[\]]*\]/.source,i=/(?:[drlu]|do|down|le|left|ri|right|up)/.source,o="(?:-+"+i+"-+|\\.+"+i+"\\.+|-+(?:"+r+"-*)?|"+r+"-+|\\.+(?:"+r+"\\.*)?|"+r+"\\.+)",a=/(?:<{1,2}|\/{1,2}|\\{1,2}|<\||[#*^+}xo])/.source,s=/(?:>{1,2}|\/{1,2}|\\{1,2}|\|>|[#*^+{xo])/.source,l=/[[?]?[ox]?/.source,u=/[ox]?[\]?]?/.source,c=l+"(?:"+o+s+"|"+a+o+"(?:"+s+")?)"+u;t.languages["plant-uml"]={comment:{pattern:/(^[ \t]*)(?:'.*|\/'[\s\S]*?'\/)/m,lookbehind:!0,greedy:!0},preprocessor:{pattern:/(^[ \t]*)!.*/m,lookbehind:!0,greedy:!0,alias:"property",inside:{variable:n}},delimiter:{pattern:/(^[ \t]*)@(?:end|start)uml\b/m,lookbehind:!0,greedy:!0,alias:"punctuation"},arrow:{pattern:RegExp(/(^|[^-.<>?|\\[\]ox])/.source+c+/(?![-.<>?|\\\]ox])/.source),lookbehind:!0,greedy:!0,alias:"operator",inside:{expression:{pattern:/(\[)[^[\]]+(?=\])/,lookbehind:!0,inside:null},punctuation:/\[(?=$|\])|^\]/}},string:{pattern:/"[^"]*"/,greedy:!0},text:{pattern:/(\[[ \t]*[\r\n]+(?![\r\n]))[^\]]*(?=\])/,lookbehind:!0,greedy:!0,alias:"string"},keyword:[{pattern:/^([ \t]*)(?:abstract\s+class|end\s+(?:box|fork|group|merge|note|ref|split|title)|(?:fork|split)(?:\s+again)?|activate|actor|agent|alt|annotation|artifact|autoactivate|autonumber|backward|binary|boundary|box|break|caption|card|case|circle|class|clock|cloud|collections|component|concise|control|create|critical|database|deactivate|destroy|detach|diamond|else|elseif|end|end[hr]note|endif|endswitch|endwhile|entity|enum|file|folder|footer|frame|group|[hr]?note|header|hexagon|hide|if|interface|label|legend|loop|map|namespace|network|newpage|node|nwdiag|object|opt|package|page|par|participant|person|queue|rectangle|ref|remove|repeat|restore|return|robust|scale|set|show|skinparam|stack|start|state|stop|storage|switch|title|together|usecase|usecase\/|while)(?=\s|$)/m,lookbehind:!0,greedy:!0},/\b(?:elseif|equals|not|while)(?=\s*\()/,/\b(?:as|is|then)\b/],divider:{pattern:/^==.+==$/m,greedy:!0,alias:"important"},time:{pattern:/@(?:\d+(?:[:/]\d+){2}|[+-]?\d+|:[a-z]\w*(?:[+-]\d+)?)\b/i,greedy:!0,alias:"number"},color:{pattern:/#(?:[a-z_]+|[a-fA-F0-9]+)\b/,alias:"symbol"},variable:n,punctuation:/[:,;()[\]{}]|\.{3}/},t.languages["plant-uml"].arrow.inside.expression.inside=t.languages["plant-uml"],t.languages.plantuml=t.languages["plant-uml"]})(e)}x4.displayName="plsql";x4.aliases=[];function x4(e){e.register(Ng),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"}})}C4.displayName="powerquery";C4.aliases=["mscript","pq"];function C4(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}A4.displayName="powershell";A4.aliases=[];function A4(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)}_4.displayName="processing";_4.aliases=[];function _4(e){e.register(jn),e.languages.processing=e.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),e.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}R4.displayName="prolog";R4.aliases=[];function R4(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:/[(){}\[\],]/}}I4.displayName="promql";I4.aliases=[];function I4(e){(function(t){var n=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],r=["on","ignoring","group_right","group_left","by","without"],i=["offset"],o=n.concat(r,i);t.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+r.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+o.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(e)}N4.displayName="properties";N4.aliases=[];function N4(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:/[=:]/}}D4.displayName="protobuf";D4.aliases=[];function D4(e){e.register(jn),function(t){var n=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;t.languages.protobuf=t.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),t.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:n}},builtin:n,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})}(e)}P4.displayName="stylus";P4.aliases=[];function P4(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)}L4.displayName="twig";L4.aliases=[];function L4(e){e.register(Oo),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")})}M4.displayName="pug";M4.aliases=[];function M4(e){e.register(yo),e.register(Ji),function(t){t.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:t.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:t.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:t.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:t.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:t.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:t.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:t.languages.javascript}],punctuation:/[.\-!=|]+/};for(var n=/(^([\t ]*)):(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,r=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],i={},o=0,a=r.length;o",function(){return s.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[s.language,"language-"+s.language],inside:t.languages[s.language]}}})}t.languages.insertBefore("pug","filter",i)}(e)}$4.displayName="puppet";$4.aliases=[];function $4(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)}F4.displayName="pure";F4.aliases=[];function F4(e){(function(t){t.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var n=["c",{lang:"c++",alias:"cpp"},"fortran"],r=/%< *-\*- *\d* *-\*-[\s\S]+?%>/.source;n.forEach(function(i){var o=i;if(typeof i!="string"&&(o=i.alias,i=i.lang),t.languages[o]){var a={};a["inline-lang-"+o]={pattern:RegExp(r.replace("",i.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:t.util.clone(t.languages.pure["inline-lang"].inside)},a["inline-lang-"+o].inside.rest=t.util.clone(t.languages[o]),t.languages.insertBefore("pure","inline-lang",a)}}),t.languages.c&&(t.languages.pure["inline-lang"].inside.rest=t.util.clone(t.languages.c))})(e)}B4.displayName="purebasic";B4.aliases=["pbfasm"];function B4(e){e.register(jn),e.languages.purebasic=e.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+\$?|-[>-]?|\+\+?|!=?|<>?=?|==?|&&?|\|?\||[~^%?*/@]/}),e.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete e.languages.purebasic["class-name"],delete e.languages.purebasic.boolean,e.languages.pbfasm=e.languages.purebasic}U4.displayName="purescript";U4.aliases=["purs"];function U4(e){e.register(dO),e.languages.purescript=e.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[e.languages.haskell.operator[0],e.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),e.languages.purs=e.languages.purescript}j4.displayName="qsharp";j4.aliases=["qs"];function j4(e){e.register(jn),function(t){function n(h,m){return h.replace(/<<(\d+)>>/g,function(y,O){return"(?:"+m[+O]+")"})}function r(h,m,y){return RegExp(n(h,m),y||"")}function i(h,m){for(var y=0;y>/g,function(){return"(?:"+h+")"});return h.replace(/<>/g,"[^\\s\\S]")}var o={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function a(h){return"\\b(?:"+h.trim().replace(/ /g,"|")+")\\b"}var s=RegExp(a(o.type+" "+o.other)),l=/\b[A-Za-z_]\w*\b/.source,u=n(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[l]),c={keyword:s,punctuation:/[<>()?,.:[\]]/},d=/"(?:\\.|[^\\"])*"/.source;t.languages.qsharp=t.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[d]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[u]),lookbehind:!0,inside:c},{pattern:r(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[u]),lookbehind:!0,inside:c}],keyword:s,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),t.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var p=i(n(/\{(?:[^"{}]|<<0>>|<>)*\}/.source,[d]),2);t.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:r(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[p]),greedy:!0,inside:{interpolation:{pattern:r(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[p]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:t.languages.qsharp}}},string:/[\s\S]+/}}})}(e),e.languages.qs=e.languages.qsharp}z4.displayName="q";z4.aliases=[];function z4(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:/[(){}\[\];.]/}}V4.displayName="qml";V4.aliases=[];function V4(e){e.register(yo),function(t){for(var n=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,r=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,i=/(?:[^\\()[\]{}"'/]||\/(?![*/])||\(*\)|\[*\]|\{*\}|\\[\s\S])/.source.replace(//g,function(){return n}).replace(//g,function(){return r}),o=0;o<2;o++)i=i.replace(//g,function(){return i});i=i.replace(//g,"[^\\s\\S]"),t.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(*\)\s*\{*\}/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}]))+/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}}(e)}H4.displayName="qore";H4.aliases=[];function H4(e){e.register(jn),e.languages.qore=e.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}W4.displayName="racket";W4.aliases=["rkt"];function W4(e){e.register(fO),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}Q4.displayName="cshtml";Q4.aliases=["razor"];function Q4(e){e.register(xp),e.register(Ji),function(t){var n=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,r=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function i(v,S){for(var k=0;k/g,function(){return"(?:"+v+")"});return v.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+r+")").replace(//g,"(?:"+n+")")}var o=i(/\((?:[^()'"@/]|||)*\)/.source,2),a=i(/\[(?:[^\[\]'"@/]|||)*\]/.source,1),s=i(/\{(?:[^{}'"@/]|||)*\}/.source,2),l=i(/<(?:[^<>'"@/]||)*>/.source,1),u=/@/.source+/(?:await\b\s*)?/.source+"(?:"+/(?!await\b)\w+\b/.source+"|"+o+")(?:"+/[?!]?\.\w+\b/.source+"|(?:"+l+")?"+o+"|"+a+")*"+/(?![?!\.(\[]|<(?!\/))/.source,c=/@(?![\w()])/.source+"|"+u,d="(?:"+/"[^"@]*"|'[^'@]*'|[^\s'"@>=]+(?=[\s>])/.source+`|["'][^"'@]*(?:(?:`+c+`)[^"'@]*)+["'])`,p=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*|(?=[\s/>])))+)?/.source.replace(//,d),h=/(?!\d)[^\s>\/=$<%]+/.source+p+/\s*\/?>/.source,m=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+h+"|"+i(/<\1/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+h+"|")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/*\.{3}(?:[^{}]|)*\})/.source;function a(u,c){return u=u.replace(//g,function(){return r}).replace(//g,function(){return i}).replace(//g,function(){return o}),RegExp(u,c)}o=a(o).source,t.languages.jsx=t.languages.extend("markup",n),t.languages.jsx.tag.pattern=a(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=n.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:a(//.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:a(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var s=function(u){return u?typeof u=="string"?u:typeof u.content=="string"?u.content:u.content.map(s).join(""):""},l=function(u){for(var c=[],d=0;d0&&c[c.length-1].tagName===s(p.content[0].content[1])&&c.pop():p.content[p.content.length-1].content==="/>"||c.push({tagName:s(p.content[0].content[1]),openedBraces:0}):c.length>0&&p.type==="punctuation"&&p.content==="{"?c[c.length-1].openedBraces++:c.length>0&&c[c.length-1].openedBraces>0&&p.type==="punctuation"&&p.content==="}"?c[c.length-1].openedBraces--:h=!0),(h||typeof p=="string")&&c.length>0&&c[c.length-1].openedBraces===0){var m=s(p);d0&&(typeof u[d-1]=="string"||u[d-1].type==="plain-text")&&(m=s(u[d-1])+m,u.splice(d-1,1),d--),u[d]=new t.Token("plain-text",m,null,m)}p.content&&typeof p.content!="string"&&l(p.content)}};t.hooks.add("after-tokenize",function(u){u.language!=="jsx"&&u.language!=="tsx"||l(u.tokens)})}(e)}Y4.displayName="tsx";Y4.aliases=[];function Y4(e){e.register(cx),e.register(Dg),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)}G4.displayName="reason";G4.aliases=[];function G4(e){e.register(jn),e.languages.reason=e.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),e.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete e.languages.reason.function}q4.displayName="rego";q4.aliases=[];function q4(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:/[,;.\[\]{}()]/}}Z4.displayName="renpy";Z4.aliases=["rpy"];function Z4(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}X4.displayName="rescript";X4.aliases=["res"];function X4(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}K4.displayName="rest";K4.aliases=[];function K4(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}}}J4.displayName="rip";J4.aliases=[];function J4(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`'",.:;#\/\\()<>\[\]{}]*/}}e5.displayName="roboconf";e5.aliases=[];function e5(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:/[{},.;:=]/}}t5.displayName="robotframework";t5.aliases=["robot"];function t5(e){(function(t){var n={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},r={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function i(l,u){var c={};c["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var d in u)c[d]=u[d];return c.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},c.variable=r,c.comment=n,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return l}),"im"),alias:"section",inside:c}}var o={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},a={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:r}},s={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:r}};t.languages.robotframework={settings:i("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:i("Variables"),"test-cases":i("Test Cases",{"test-name":a,documentation:o,property:s}),keywords:i("Keywords",{"keyword-name":a,documentation:o,property:s}),tasks:i("Tasks",{"task-name":a,documentation:o,property:s}),comment:n},t.languages.robot=t.languages.robotframework})(e)}n5.displayName="sas";n5.aliases=[];function n5(e){(function(t){var n=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,r=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,i={pattern:RegExp(n+"[bx]"),alias:"number"},o={pattern:/&[a-z_]\w*/i},a={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},s={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},l=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],u={pattern:RegExp(n),greedy:!0},c=/[$%@.(){}\[\];,\\]/,d={pattern:/%?\b\w+(?=\()/,alias:"keyword"},p={function:d,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":o,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:r,"numeric-constant":i,punctuation:c,string:u},h={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},m={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},y={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},O={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},b=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,v={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return b}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return b}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:l,function:d,"arg-value":p["arg-value"],operator:p.operator,argument:p.arg,number:r,"numeric-constant":i,punctuation:c,string:u}},S={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};t.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:|[^;"'])+;/.source.replace(//g,function(){return n}),"im"),alias:"language-sql",inside:t.languages.sql},"global-statements":y,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:r,"numeric-constant":i,punctuation:c,string:u}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:l,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,alias:"language-groovy",inside:t.languages.groovy},keyword:S,"submit-statement":O,"global-statements":y,number:r,"numeric-constant":i,punctuation:c,string:u}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:l,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,alias:"language-lua",inside:t.languages.lua},keyword:S,"submit-statement":O,"global-statements":y,number:r,"numeric-constant":i,punctuation:c,string:u}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:l,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:p}},"cas-actions":v,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:p},step:s,keyword:S,function:d,format:h,altformat:m,"global-statements":y,number:r,"numeric-constant":i,punctuation:c,string:u}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,inside:p},"macro-keyword":a,"macro-variable":o,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":a,"macro-variable":o,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:c}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:l,number:r,"numeric-constant":i}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:p},"cas-actions":v,comment:l,function:d,format:h,altformat:m,"numeric-constant":i,datetime:{pattern:RegExp(n+"(?:dt?|t)"),alias:"number"},string:u,step:s,keyword:S,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:r,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:c}})(e)}r5.displayName="shell-session";r5.aliases=["sh-session","shellsession"];function r5(e){e.register(oO),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)}i5.displayName="smali";i5.aliases=[];function i5(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:/[{}(),;:]/}}o5.displayName="smalltalk";o5.aliases=[];function o5(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:/[.;:?\[\](){}]/}}a5.displayName="smarty";a5.aliases=[];function a5(e){e.register(Oo),function(t){t.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:t.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},t.languages.smarty["embedded-php"].inside.smarty.inside=t.languages.smarty,t.languages.smarty.string[0].inside.interpolation.inside.expression.inside=t.languages.smarty;var n=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,r=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']||\{(?:[^{}"']||\{(?:[^{}"']|)*\})*\})*\}/.source.replace(//g,function(){return n.source}),"g");t.hooks.add("before-tokenize",function(i){var o="{literal}",a="{/literal}",s=!1;t.languages["markup-templating"].buildPlaceholders(i,"smarty",r,function(l){return l===a&&(s=!1),s?!1:(l===o&&(s=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"smarty")})}(e)}s5.displayName="sml";s5.aliases=["smlnj"];function s5(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)}l5.displayName="solidity";l5.aliases=["sol"];function l5(e){e.register(jn),e.languages.solidity=e.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),e.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),e.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),e.languages.sol=e.languages.solidity}u5.displayName="solution-file";u5.aliases=["sln"];function u5(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)}c5.displayName="soy";c5.aliases=[];function c5(e){e.register(Oo),function(t){var n=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;t.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:n,greedy:!0},number:r,punctuation:/[\[\].?]/}},string:{pattern:n,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:r,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},t.hooks.add("before-tokenize",function(i){var o=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,a="{literal}",s="{/literal}",l=!1;t.languages["markup-templating"].buildPlaceholders(i,"soy",o,function(u){return u===s&&(l=!1),l?!1:(u===a&&(l=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"soy")})}(e)}dx.displayName="turtle";dx.aliases=["trig"];function dx(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}d5.displayName="sparql";d5.aliases=["rq"];function d5(e){e.register(dx),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}f5.displayName="splunk-spl";f5.aliases=[];function f5(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:/[()[\],]/}}p5.displayName="sqf";p5.aliases=[];function p5(e){e.register(jn),e.languages.sqf=e.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),e.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:e.languages.sqf.comment}}}),delete e.languages.sqf["class-name"]}h5.displayName="squirrel";h5.aliases=[];function h5(e){e.register(jn),e.languages.squirrel=e.languages.extend("clike",{comment:[e.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),e.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}m5.displayName="stan";m5.aliases=[];function m5(e){(function(t){var n=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;t.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+n.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,n],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},t.languages.stan.constraint.inside.expression.inside=t.languages.stan})(e)}g5.displayName="stata";g5.aliases=[];function g5(e){e.register(Cp),e.register(ux),e.register(lO),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}b5.displayName="iecst";b5.aliases=[];function b5(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:/[()[\].,;]/}}y5.displayName="supercollider";y5.aliases=["sclang"];function y5(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}O5.displayName="systemd";O5.aliases=[];function O5(e){(function(t){var n={pattern:/^[;#].*/m,greedy:!0},r=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;t.languages.systemd={comment:n,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+r+`|(?=[^"\r -]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+r+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:n,quoted:{pattern:RegExp(/(^|\s)/.source+r),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(e)}pO.displayName="t4-templating";pO.aliases=[];function pO(e){(function(t){function n(i,o,a){return{pattern:RegExp("<#"+i+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+i+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:o,alias:a}}}}function r(i){var o=t.languages[i],a="language-"+i;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:n("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:n("=",o,a),"class-feature":n("\\+",o,a),standard:n("",o,a)}}}}t.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:r})})(e)}v5.displayName="t4-cs";v5.aliases=["t4"];function v5(e){e.register(xp),e.register(pO),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}E5.displayName="t4-vb";E5.aliases=[];function E5(e){e.register(pO),e.register(cO),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}S5.displayName="tap";S5.aliases=[];function S5(e){e.register(sO),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"}}}T5.displayName="tcl";T5.aliases=[];function T5(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:/[{}()\[\]]/}}w5.displayName="tt2";w5.aliases=[];function w5(e){e.register(jn),e.register(Oo),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)}k5.displayName="toml";k5.aliases=[];function k5(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)}x5.displayName="tremor";x5.aliases=["trickle","troy"];function x5(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)}C5.displayName="typoscript";C5.aliases=["tsconfig"];function C5(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)}A5.displayName="unrealscript";A5.aliases=["uc","uscript"];function A5(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}_5.displayName="uorazor";_5.aliases=[];function _5(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:/[()\[\]{}:.,]/}}R5.displayName="v";R5.aliases=[];function R5(e){e.register(jn),function(t){var n={pattern:/[\s\S]+/,inside:null};t.languages.v=t.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":n}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),n.inside=t.languages.v,t.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),t.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),t.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:t.languages.v.generic.inside}}}})}(e)}I5.displayName="vala";I5.aliases=[];function I5(e){e.register(jn),e.languages.vala=e.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),e.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:e.languages.vala}},string:/[\s\S]+/}}}),e.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}N5.displayName="velocity";N5.aliases=[];function N5(e){e.register(Ji),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)}D5.displayName="verilog";D5.aliases=[];function D5(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:/[[\];(),.:]/}}P5.displayName="vhdl";P5.aliases=[];function P5(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:/[{}[\];(),.:]/}}L5.displayName="vim";L5.aliases=[];function L5(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:/[{}[\](),;:]/}}M5.displayName="visual-basic";M5.aliases=["vb","vba"];function M5(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"]}$5.displayName="warpscript";$5.aliases=[];function $5(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/}}F5.displayName="wasm";F5.aliases=[];function F5(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:/[()]/}}B5.displayName="web-idl";B5.aliases=["webidl"];function B5(e){(function(t){var n=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,r="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+n+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,i={};t.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+n),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+r),lookbehind:!0,inside:i},{pattern:RegExp("("+/\bcallback\s+/.source+n+/\s*=\s*/.source+")"+r),lookbehind:!0,inside:i},{pattern:RegExp(/(\btypedef\b\s*)/.source+r),lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+n),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+n),lookbehind:!0},RegExp(n+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+n),lookbehind:!0},{pattern:RegExp(r+"(?="+/\s*(?:\.{3}\s*)?/.source+n+/\s*[(),;=]/.source+")"),inside:i}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var o in t.languages["web-idl"])o!=="class-name"&&(i[o]=t.languages["web-idl"][o]);t.languages.webidl=t.languages["web-idl"]})(e)}U5.displayName="wgsl";U5.aliases=[];function U5(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:/[@(){}[\],;<>:.]/}}j5.displayName="wiki";j5.aliases=[];function j5(e){e.register(Ji),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}}}})}z5.displayName="wolfram";z5.aliases=["mathematica","nb","wl"];function z5(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}V5.displayName="wren";V5.aliases=[];function V5(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]+/}}}H5.displayName="xeora";H5.aliases=["xeoracube"];function H5(e){e.register(Ji),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)}W5.displayName="xml-doc";W5.aliases=[];function W5(e){e.register(Ji),function(t){function n(a,s){t.languages[a]&&t.languages.insertBefore(a,"comment",{"doc-comment":s})}var r=t.languages.markup.tag,i={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:r}},o={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:r}};n("csharp",i),n("fsharp",i),n("vbnet",o)}(e)}Q5.displayName="xojo";Q5.aliases=[];function Q5(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:/[.,;:()]/}}Y5.displayName="xquery";Y5.aliases=[];function Y5(e){e.register(Ji),function(t){t.languages.xquery=t.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),t.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,t.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,t.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,t.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:t.languages.xquery,alias:"language-xquery"};var n=function(i){return typeof i=="string"?i:typeof i.content=="string"?i.content:i.content.map(n).join("")},r=function(i){for(var o=[],a=0;a0&&o[o.length-1].tagName===n(s.content[0].content[1])&&o.pop():s.content[s.content.length-1].content==="/>"||o.push({tagName:n(s.content[0].content[1]),openedBraces:0}):o.length>0&&s.type==="punctuation"&&s.content==="{"&&(!i[a+1]||i[a+1].type!=="punctuation"||i[a+1].content!=="{")&&(!i[a-1]||i[a-1].type!=="plain-text"||i[a-1].content!=="{")?o[o.length-1].openedBraces++:o.length>0&&o[o.length-1].openedBraces>0&&s.type==="punctuation"&&s.content==="}"?o[o.length-1].openedBraces--:s.type!=="comment"&&(l=!0)),(l||typeof s=="string")&&o.length>0&&o[o.length-1].openedBraces===0){var u=n(s);a0&&(typeof i[a-1]=="string"||i[a-1].type==="plain-text")&&(u=n(i[a-1])+u,i.splice(a-1,1),a--),/^\s+$/.test(u)?i[a]=u:i[a]=new t.Token("plain-text",u,null,u)}s.content&&typeof s.content!="string"&&r(s.content)}};t.hooks.add("after-tokenize",function(i){i.language==="xquery"&&r(i.tokens)})}(e)}G5.displayName="yang";G5.aliases=[];function G5(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:/[{};:]/}}q5.displayName="zig";q5.aliases=[];function q5(e){(function(t){function n(u){return function(){return u}}var r=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,i="\\b(?!"+r.source+")(?!\\d)\\w+\\b",o=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,a=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,n(o)),s=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,n(i)),l="(?!\\s)(?:!?\\s*(?:"+a+"\\s*)*"+s+")+";t.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)(?=\s*(?:\s*)?[=;,)])|(?=\s*(?:\s*)?\{)/.source.replace(//g,n(l)).replace(//g,n(o))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,n(l)).replace(//g,n(o))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:r,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},t.languages.zig["class-name"].forEach(function(u){u.inside===null&&(u.inside=t.languages.zig)})})(e)}te.register(Ji);te.register(Jd);te.register(jn);te.register(Xk);te.register(yo);te.register(f3);te.register(p3);te.register(h3);te.register(m3);te.register(g3);te.register(b3);te.register(y3);te.register(O3);te.register(Ng);te.register(v3);te.register(E3);te.register(S3);te.register(T3);te.register(Bl);te.register(kp);te.register(Yk);te.register(w3);te.register(k3);te.register(oO);te.register(sO);te.register(tx);te.register(x3);te.register(C3);te.register(xp);te.register(A3);te.register(_3);te.register(R3);te.register(I3);te.register(N3);te.register(D3);te.register(P3);te.register(L3);te.register(uO);te.register(M3);te.register($3);te.register(F3);te.register(B3);te.register(U3);te.register(j3);te.register(z3);te.register(V3);te.register(H3);te.register(W3);te.register(Q3);te.register(Y3);te.register(G3);te.register(q3);te.register(Z3);te.register(X3);te.register(K3);te.register(J3);te.register(eL);te.register(tL);te.register(nL);te.register(rL);te.register(iL);te.register(oL);te.register(aL);te.register(_p);te.register(sL);te.register(lL);te.register(uL);te.register(cL);te.register(dL);te.register(fL);te.register(pL);te.register(hL);te.register(mL);te.register(gL);te.register(Gk);te.register(Oo);te.register(bL);te.register(yL);te.register(OL);te.register(vL);te.register(EL);te.register(SL);te.register(TL);te.register(wL);te.register(kL);te.register(xL);te.register(aO);te.register(CL);te.register(AL);te.register(_L);te.register(RL);te.register(IL);te.register(NL);te.register(DL);te.register(PL);te.register(LL);te.register(ML);te.register($L);te.register(FL);te.register(BL);te.register(UL);te.register(jL);te.register(zL);te.register(VL);te.register(HL);te.register(WL);te.register(QL);te.register(YL);te.register(GL);te.register(qk);te.register(qL);te.register(ZL);te.register(XL);te.register(KL);te.register(Jk);te.register(sx);te.register(JL);te.register(eM);te.register(tM);te.register(dO);te.register(nM);te.register(rM);te.register(iM);te.register(oM);te.register(aM);te.register(sM);te.register(Ig);te.register(lM);te.register(uM);te.register(cM);te.register(dM);te.register(fM);te.register(pM);te.register(hM);te.register(mM);te.register(Zk);te.register(gM);te.register(bM);te.register(Cp);te.register(Ap);te.register(Lg);te.register(yM);te.register(OM);te.register(vM);te.register(EM);te.register(SM);te.register(TM);te.register(wM);te.register(Dg);te.register(kM);te.register(xM);te.register(CM);te.register(AM);te.register(_M);te.register(RM);te.register(IM);te.register(NM);te.register(DM);te.register(Kk);te.register(PM);te.register(LM);te.register(MM);te.register($M);te.register(fO);te.register(FM);te.register(BM);te.register(UM);te.register(jM);te.register(zM);te.register(VM);te.register(HM);te.register(WM);te.register(ex);te.register(ux);te.register(QM);te.register(YM);te.register(GM);te.register(qM);te.register(ZM);te.register(XM);te.register(KM);te.register(JM);te.register(e4);te.register(t4);te.register(n4);te.register(r4);te.register(i4);te.register(o4);te.register(a4);te.register(s4);te.register(l4);te.register(u4);te.register(c4);te.register(nx);te.register(d4);te.register(f4);te.register(p4);te.register(h4);te.register(m4);te.register(g4);te.register(b4);te.register(y4);te.register(O4);te.register(v4);te.register(E4);te.register(S4);te.register(rx);te.register(T4);te.register(w4);te.register(k4);te.register(x4);te.register(C4);te.register(A4);te.register(_4);te.register(R4);te.register(I4);te.register(N4);te.register(D4);te.register(P4);te.register(L4);te.register(M4);te.register($4);te.register(F4);te.register(B4);te.register(U4);te.register(lO);te.register(j4);te.register(z4);te.register(V4);te.register(H4);te.register(ix);te.register(W4);te.register(Q4);te.register(cx);te.register(Y4);te.register(G4);te.register(q4);te.register(Z4);te.register(X4);te.register(K4);te.register(J4);te.register(e5);te.register(t5);te.register(ox);te.register(n5);te.register(ax);te.register(r5);te.register(i5);te.register(o5);te.register(a5);te.register(s5);te.register(l5);te.register(u5);te.register(c5);te.register(dx);te.register(d5);te.register(f5);te.register(p5);te.register(h5);te.register(m5);te.register(g5);te.register(b5);te.register(y5);te.register(lx);te.register(O5);te.register(pO);te.register(v5);te.register(cO);te.register(E5);te.register(S5);te.register(T5);te.register(w5);te.register(k5);te.register(x5);te.register(C5);te.register(A5);te.register(_5);te.register(R5);te.register(I5);te.register(N5);te.register(D5);te.register(P5);te.register(L5);te.register(M5);te.register($5);te.register(F5);te.register(B5);te.register(U5);te.register(j5);te.register(z5);te.register(V5);te.register(H5);te.register(W5);te.register(Q5);te.register(Y5);te.register(G5);te.register(q5);function oI(){oI=function(i,o){return new n(i,void 0,o)};var e=RegExp.prototype,t=new WeakMap;function n(i,o,a){var s=new RegExp(i,o);return t.set(s,a||t.get(i)),MT(s,n.prototype)}function r(i,o){var a=t.get(o);return Object.keys(a).reduce(function(s,l){var u=a[l];if(typeof u=="number")s[l]=i[u];else{for(var c=0;i[u[c]]===void 0&&c+1]+)>/g,function(l,u){var c=a[u];return"$"+(Array.isArray(c)?c.join("$"):c)}))}if(typeof o=="function"){var s=this;return e[Symbol.replace].call(this,i,function(){var l=arguments;return typeof l[l.length-1]!="object"&&(l=[].slice.call(l)).push(r(l,s)),o.apply(this,l)})}return e[Symbol.replace].call(this,i,o)},oI.apply(this,arguments)}function MT(e,t){return MT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},MT(e,t)}function sz(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 RUe=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){_a(r,"element",n)};function n(r,i,o){var a,s;if(o&&o.tagName==="pre"&&r.tagName==="code"){var l=(r==null||(a=r.data)==null?void 0:a.meta)||(r==null||(s=r.properties)==null?void 0:s.metastring)||"";r.properties.className?typeof r.properties.className=="boolean"?r.properties.className=[]:Array.isArray(r.properties.className)||(r.properties.className=[r.properties.className]):r.properties.className=[];var u,c,d=function(C){for(var w,E=WA(C.properties.className);!(w=E()).done;){var $=w.value;if($.slice(0,9)==="language-")return $.slice(9).toLowerCase()}return null}(r);if(!d&&t.defaultLanguage&&r.properties.className.push("language-"+(d=t.defaultLanguage)),r.properties.className.push("code-highlight"),d)try{var p,h;h=(p=d)!=null&&p.includes("diff-")?d.split("-")[1]:d,u=e.highlight(Fh(r),h),o.properties.className=(o.properties.className||[]).concat("language-"+h)}catch(C){if(!t.ignoreMissing||!/Unknown language/.test(C.message))throw C;u=r}else u=r;u.children=(c=1,function C(w){return w.reduce(function(E,$){if($.type==="text"){var D=$.value,R=(D.match(/\n/g)||"").length;if(R===0)$.position={start:{line:c,column:1},end:{line:c,column:1}},E.push($);else for(var B,U=D.split(` -`),V=WA(U.entries());!(B=V()).done;){var z=B.value,Q=z[0],X=z[1];E.push({type:"text",value:Q===U.length-1?X:X+` -`,position:{start:{line:c+Q,column:1},end:{line:c+Q,column:1}}})}return c+=R,E}if(Object.prototype.hasOwnProperty.call($,"children")){var Z=c;return $.children=C($.children),E.push($),$.position={start:{line:Z,column:1},end:{line:c,column:1}},E}return E.push($),E},[])})(u.children),u.position=u.children.length>0?{start:{line:u.children[0].position.start.line,column:0},end:{line:u.children[u.children.length-1].position.end.line,column:0}}:{start:{line:0,column:0},end:{line:0,column:0}};for(var m,y=function(C){var w=/{([\d,-]+)}/,E=C.split(",").map(function(R){return R.trim()}).join();if(w.test(E)){var $=w.exec(E)[1],D=rUe($);return function(R){return D.includes(R+1)}}return function(){return!1}}(l),O=function(C){var w=oI(/showLineNumbers=(\d+)/i,{lines:1});if(w.test(C)){var E=w.exec(C);return Number(E.groups.lines)}return 1}(l),b=function(C){for(var w=new Array(C),E=0;E=$+1});D.children=R.children,!l.toLowerCase().includes("showLineNumbers".toLowerCase())&&!t.showLineNumbers||v.some(function(B){return l.toLowerCase().includes(B)})||(D.properties.line=[($+O).toString()],D.properties.className.push("line-number")),y($)&&D.properties.className.push("highlight-line"),(d==="diff"||(C=d)!=null&&C.includes("diff-"))&&Fh(D).substring(0,1)==="-"?D.properties.className.push("deleted"):(d==="diff"||(w=d)!=null&&w.includes("diff-"))&&Fh(D).substring(0,1)==="+"&&D.properties.className.push("inserted")},k=WA(b.entries());!(m=k()).done;)S();b.length>0&&Fh(b[b.length-1]).trim()===""&&b.pop(),r.children=b}}}},IUe=RUe(te),WE={},aI={};function NUe(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"]}}}),lI=hO(Qee,{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"]}}}),uI=hO(lI,{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"]}}}),UUe=hO(uI,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}}),pz={css1:Wee,css2:Qee,css3:lI,"selectors-3":lI,"selectors-4":uI,latest:uI,progressive:UUe};function A0(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="-"||e==="_"||e==="\\"||e>=" "}function jUe(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="-"||e==="_"||e>=" "}function _0(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var zUe={" ":!0," ":!0,"\n":!0,"\r":!0,"\f":!0},VUe={'"':!0,"'":!0},YA={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},HUe=6,GA="css-selector-parser parse error: ";function WUe(e){e===void 0&&(e={});var t=e.syntax,n=t===void 0?"latest":t,r=e.substitutes,i=e.strict,o=i===void 0?!0:i,a=typeof n=="object"?n:pz[n];a.baseSyntax&&(a=hO(pz[a.baseSyntax],a));var s=a.tag?[!0,!!$Ue(a.tag).wildcard]:[!1,!1],l=s[0],u=s[1],c=!!a.ids,d=!!a.classNames,p=!!a.namespace,h=a.namespace&&(a.namespace===!0||a.namespace.wildcard===!0);if(p&&!l)throw new Error("".concat(GA,"Namespaces cannot be enabled while tags are disabled."));var m=!!r,y=a.combinators?lz(a.combinators):WE,O=a.attributes?[!0,a.attributes.operators?lz(a.attributes.operators):WE,a.attributes.caseSensitivityModifiers?DUe(a.attributes.caseSensitivityModifiers):aI,a.attributes.unknownCaseSensitivityModifiers==="accept"]:[!1,WE,aI,!1],b=O[0],v=O[1],S=O[2],k=O[3],C=k||Object.keys(S).length>0,w=a.pseudoClasses?[!0,a.pseudoClasses.definitions?cz(a.pseudoClasses.definitions):Jv,a.pseudoClasses.unknown==="accept"]:[!1,Jv,!1],E=w[0],$=w[1],D=w[2],R=a.pseudoElements?[!0,a.pseudoElements.notation==="singleColon"||a.pseudoElements.notation==="both",!a.pseudoElements.notation||a.pseudoElements.notation==="doubleColon"||a.pseudoElements.notation==="both",a.pseudoElements.definitions?cz(Array.isArray(a.pseudoElements.definitions)?{NoArgument:a.pseudoElements.definitions}:a.pseudoElements.definitions):Jv,a.pseudoElements.unknown==="accept"]:[!1,!1,!1,Jv,!1],B=R[0],U=R[1],V=R[2],z=R[3],Q=R[4],X="",Z=X.length,Y=0,q="",j=function(ce){return q===ce},le=function(){return j("*")||A0(q)},Ee=function(ce){Y=ce,q=X.charAt(Y)},G=function(){Y++,q=X.charAt(Y)},ue=function(){var ce=q;return Y++,q=X.charAt(Y),ce};function ge(ce){var Oe=Math.min(Z-1,Y),Se=new Error("".concat(GA).concat(ce," Pos: ").concat(Oe,"."));throw Se.position=Oe,Se.name="ParserError",Se}function he(ce,Oe){if(!ce)return ge(Oe)}var Ne=function(){he(Y=Z},qe=function(ce){he(Y=2&&ge("Identifiers cannot start with two hyphens with strict mode on."),YA[q]&&ge("Identifiers cannot start with hyphens followed by digits.");Y0)return(t.commaSeparated?VP:WP)(e)}else return String(e)}const e9e=[];function t9e(e,t){return(t.properties.className||e9e).includes(e.name)}function n9e(e,t){return t.properties.id===e.name}function r9e(e,t){return e.name===t.tagName}function i9e(e,t){return function(n,r){let i=mz(n,"tag");const o=mz(r??"*","range"),a=[];let s=-1;for(;++s=gz&&e.charCodeAt(t)<=l9e;)u=u*10+(e.charCodeAt(t)-gz),t++;return t===l?null:u}function s(){for(;to<=n;if(t===0)return o=>o===n;if(t===1)return n<0?bz.trueFunc:o=>o>=n;const r=Math.abs(t),i=(n%r+r)%r;return t>1?o=>o>=n&&o%r===i:o=>o<=n&&o%r===i}function yz(e){return d9e(u9e(e))}const f9e=yz.default||yz,p9e=n3("name",{handlers:{"any-link":h9e,blank:m9e,checked:g9e,dir:b9e,disabled:qee,empty:y9e,enabled:O9e,"first-child":v9e,"first-of-type":E9e,has:S9e,is:Zee,lang:w9e,"last-child":k9e,"last-of-type":x9e,not:C9e,"nth-child":A9e,"nth-last-child":_9e,"nth-last-of-type":R9e,"nth-of-type":I9e,"only-child":N9e,"only-of-type":D9e,optional:P9e,"read-only":L9e,"read-write":Xee,required:Kee,root:M9e,scope:$9e},invalid:T9e,unknown:F9e});function h9e(e,t){return(t.tagName==="a"||t.tagName==="area"||t.tagName==="link")&&gp(t,"href")}function Fu(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function m9e(e,t){return!Jee(t,n);function n(r){return r.type==="element"||r.type==="text"&&!WK(r)}}function g9e(e,t){return t.tagName==="input"||t.tagName==="menuitem"?!!((t.properties.type==="checkbox"||t.properties.type==="radio")&&gp(t,"checked")):t.tagName==="option"?gp(t,"selected"):!1}function b9e(e,t,n,r,i){return e.argument,e.argument.type,i.direction===e.argument.value}function qee(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")&&gp(t,"disabled")}function y9e(e,t){return!Jee(t,n);function n(r){return r.type==="element"||r.type==="text"}}function O9e(e,t){return!qee(e,t)}function v9e(e,t,n,r,i){return Fu(i,e),i.elementIndex===0}function E9e(e,t,n,r,i){return Fu(i,e),i.typeIndex===0}function fx(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=f9e(n.a+"n+"+n.b),e._cachedFn=t}return t}function S9e(e,t,n,r,i){e.argument,e.argument.type;const o={...i,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return Z5(o,{type:"root",children:t.children}),o.results.length>0}function T9e(){}function Zee(e,t,n,r,i){e.argument,e.argument.type;const o={...i,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return Z5(o,t),o.results[0]===t}function w9e(e,t,n,r,i){return e.argument,e.argument.type,i.language!==""&&i.language!==void 0&&o9e(i.language,Vy(e.argument.value)).length>0}function k9e(e,t,n,r,i){return Fu(i,e),!!(i.elementCount&&i.elementIndex===i.elementCount-1)}function x9e(e,t,n,r,i){return Fu(i,e),typeof i.typeIndex=="number"&&typeof i.typeCount=="number"&&i.typeIndex===i.typeCount-1}function C9e(e,t,n,r,i){return!Zee(e,t,n,r,i)}function A9e(e,t,n,r,i){const o=fx(e);return Fu(i,e),typeof i.elementIndex=="number"&&o(i.elementIndex)}function _9e(e,t,n,r,i){const o=fx(e);return Fu(i,e),!!(typeof i.elementCount=="number"&&typeof i.elementIndex=="number"&&o(i.elementCount-i.elementIndex-1))}function R9e(e,t,n,r,i){const o=fx(e);return Fu(i,e),typeof i.typeCount=="number"&&typeof i.typeIndex=="number"&&o(i.typeCount-1-i.typeIndex)}function I9e(e,t,n,r,i){const o=fx(e);return Fu(i,e),typeof i.typeIndex=="number"&&o(i.typeIndex)}function N9e(e,t,n,r,i){return Fu(i,e),i.elementCount===1}function D9e(e,t,n,r,i){return Fu(i,e),i.typeCount===1}function P9e(e,t){return!Kee(e,t)}function L9e(e,t,n,r,i){return!Xee(e,t,n,r,i)}function Xee(e,t,n,r,i){return t.tagName==="input"||t.tagName==="textarea"?!gp(t,"readOnly")&&!gp(t,"disabled"):!!i.editableOrEditingHost}function Kee(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&gp(t,"required")}function M9e(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 $9e(e,t,n,r,i){return i.scopeElements.includes(t)}function Jee(e,t){const n=e.children;let r=-1;for(;++r"?"directChild":"descendant";ZA(o,u,l)}else e.found=!0,e.results.includes(n)||e.results.push(n)}s.combinator===void 0?ZA(o,"descendant",s):s.combinator==="~"&&ZA(o,"generalSibling",s)}return o}function QE(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:U9e}function Oz(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 ete(e,t,n,r,i,o){let a={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const s=XUe(e,n);if(n.type==="element"){let l=e.rootQuery.rules;i&&i!==o&&(l=e.rootQuery.rules.filter(u=>u.combinator===void 0||u.combinator===">"&&i===o)),a=z9e(e,QE(t,l),n,r,i)}return"children"in n&&!e.shallow&&!(e.one&&e.found)&&j9e(e,a,n,o),s(),a}function V9e(e,t,n){const r=H9e(e,t,n);return Z5(r,t||void 0),r.results}function H9e(e,t,n){return{direction:"ltr",editableOrEditingHost:!1,elementCount:void 0,elementIndex:void 0,found:!1,language:void 0,one:!1,results:[],rootQuery:YUe(e),schema:n==="svg"?Lu:Tp,scopeElements:t?t.type==="root"?t.children:[t]:[],shallow:!1,typeIndex:void 0,typeCount:void 0}}const tte=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=tte(n.children))}),t),W9e=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const i=V9e(t,r);i&&i.length>0&&_a(r,i,(o,a,s)=>{n(o,a,s)});return}_a(r,(i,o,a)=>{n(i,o,a)})}}},Q9e=W9e,Y9e=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),G9e=(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]}},nte=(e=[],t,n,r)=>{let i=t;for(;i/,"$2")||"")?void 0:r?nte(e,i,"pre",r)?void 0:(o.value=(o.value||"").replace(/^(\n|\s)+/,""),o):(o.value=(o.value||"").replace(/^(\n|\s)+/,""),o)}},vz=({value:e=""})=>{const t=Y9e(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},Ez=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},q9e=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{_a(r,"element",(i,o,a)=>{if(n&&i.tagName==="pre"&&i&&Array.isArray(i.children)&&a&&Array.isArray(a.children)&&a.children.length>1){const s=i.children[0];if(s&&s.tagName==="code"&&typeof o=="number"){const l=G9e(a.children,o);if(l){const u=vz(l);Object.keys(u).length>0&&(i.properties={...i.properties,"data-type":"rehyp"},s.properties=Ez(s.properties,u,t))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(i.tagName)&&a&&Array.isArray(a.children)&&typeof o=="number"){const s=nte(a.children,o,"",n);if(s){const l=vz(s);Object.keys(l).length>0&&(i.properties=Ez(i.properties,l,t))}}})}},Z9e=q9e;var X9e=function(t){return n=>{_a(n,r=>{r.type==="element"&&r.tagName==="code"&&r.data&&r.data.meta&&(r.properties=L({},r.properties,{"data-meta":String(r.data.meta)}))})}},K9e=function(t){return n=>{_a(n,r=>{r.type==="element"&&r.tagName==="code"&&r.properties&&r.properties.dataMeta&&(r.data||(r.data={}),r.data.meta=r.properties.dataMeta,delete r.properties.dataMeta)})}};const J9e=/[\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,eje=Object.hasOwnProperty;class tje{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let i=nje(t,n===!0);const o=i;for(;eje.call(r.occurrences,i);)r.occurrences[o]++,i=o+"-"+r.occurrences[o];return r.occurrences[i]=0,i}reset(){this.occurrences=Object.create(null)}}function nje(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(J9e,"").replace(/ /g,"-"))}function rte(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 rje={},Sz=new tje;function ije(e){const n=(e||rje).prefix||"";return function(r){Sz.reset(),_a(r,"element",function(i){rte(i)&&!i.properties.id&&(i.properties.id=n+Sz.slug(Fh(i)))})}}const ite=function(e){if(e==null)return sje;if(typeof e=="string")return aje(e);if(typeof e=="object")return oje(e);if(typeof e=="function")return X5(e);throw new Error("Expected function, string, or array as `test`")};function oje(e){const t=[];let n=-1;for(;++n{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{_a(r,(i,o,a)=>{if(i.type==="element"||i.type==="root"){let s=!1;i.children=i.children.filter(l=>{if(l.type==="raw"||l.type==="comment"){let u=(l.value||"").trim();if(u=u.replace(/^/,"$1"),u===t)return s=!0,!1;if(u===n)return s=!1,!1}return!s})}})}},fje=dje;var pje={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 hje(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 mje=(e,t)=>(n,r,i)=>{if(n.type==="element"&&i&&i.type==="root"&&/h(1|2|3|4|5|6)/.test(n.tagName)){var o=n.children&&n.children[0];o&&o.properties&&o.properties.ariaHidden==="true"&&(o.properties=L({class:"anchor"},o.properties),o.children=[pje])}if(n.type==="element"&&n.tagName==="pre"&&!e){var a=tte(n.children);n.children.push(hje(a))}t&&t(n,r===null?void 0:r,i===null?void 0:i)},gje=[ije,cje,fje];const bje=vn.forwardRef((e,t)=>{var n,r=[X9e,Fee,K9e,[IUe,{ignoreMissing:!0}],...gje,[Q9e,{rewrite:mje((n=e.disableCopy)!=null?n:!1,e.rehypeRewrite)}],[Z9e,{properties:"attr"}],...e.rehypePlugins||[]];return M.jsx(X7e,L({},e,{rehypePlugins:r,ref:t}))});function kz(){const e=XD(),t=wc(wk),[n,r]=N.useState("");return N.useEffect(()=>{var o,a;if(!t.doc)return;r(((a=(o=t.doc)==null?void 0:o.getRoot().content)==null?void 0:a.toString())||"");const i=t.doc.subscribe("$.content",()=>{var s;r((s=t.doc)==null?void 0:s.getRoot().content.toString())});return()=>{i(),r("")}},[t.doc]),t!=null&&t.doc?M.jsx(bje,{source:n,wrapperElement:{"data-color-mode":e}}):M.jsx(dg,{sx:{marginX:"auto",mt:4}})}var Mg=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(){}},eg=typeof window>"u"||"Deno"in window;function _s(){}function yje(e,t){return typeof e=="function"?e(t):e}function cI(e){return typeof e=="number"&&e>=0&&e!==1/0}function ate(e,t){return Math.max(e+(t||0)-Date.now(),0)}function xz(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a){if(r){if(t.queryHash!==J5(a,t.options))return!1}else if(!Gy(t.queryKey,a))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||typeof i<"u"&&i!==t.state.fetchStatus||o&&!o(t))}function Cz(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(bp(t.options.mutationKey)!==bp(o))return!1}else if(!Gy(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function J5(e,t){return((t==null?void 0:t.queryKeyHashFn)||bp)(e)}function bp(e){return JSON.stringify(e,(t,n)=>dI(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Gy(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Gy(e[n],t[n])):!1}function ste(e,t){if(e===t)return e;const n=Az(e)&&Az(t);if(n||dI(e)&&dI(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),a=o.length,s=n?[]:{};let l=0;for(let u=0;u"u")return!0;const n=t.prototype;return!(!_z(n)||!n.hasOwnProperty("isPrototypeOf"))}function _z(e){return Object.prototype.toString.call(e)==="[object Object]"}function Oje(e){return new Promise(t=>{setTimeout(t,e)})}function fI(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?ste(e,t):t}function vje(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Eje(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var $f,Jc,dm,fV,Sje=(fV=class extends Mg{constructor(){super();Zt(this,$f,void 0);Zt(this,Jc,void 0);Zt(this,dm,void 0);Bt(this,dm,t=>{if(!eg&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){we(this,Jc)||this.setEventListener(we(this,dm))}onUnsubscribe(){var t;this.hasListeners()||((t=we(this,Jc))==null||t.call(this),Bt(this,Jc,void 0))}setEventListener(t){var n;Bt(this,dm,t),(n=we(this,Jc))==null||n.call(this),Bt(this,Jc,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){we(this,$f)!==t&&(Bt(this,$f,t),this.onFocus())}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){var t;return typeof we(this,$f)=="boolean"?we(this,$f):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},$f=new WeakMap,Jc=new WeakMap,dm=new WeakMap,fV),BT=new Sje,fm,ed,pm,pV,Tje=(pV=class extends Mg{constructor(){super();Zt(this,fm,!0);Zt(this,ed,void 0);Zt(this,pm,void 0);Bt(this,pm,t=>{if(!eg&&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(){we(this,ed)||this.setEventListener(we(this,pm))}onUnsubscribe(){var t;this.hasListeners()||((t=we(this,ed))==null||t.call(this),Bt(this,ed,void 0))}setEventListener(t){var n;Bt(this,pm,t),(n=we(this,ed))==null||n.call(this),Bt(this,ed,t(this.setOnline.bind(this)))}setOnline(t){we(this,fm)!==t&&(Bt(this,fm,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return we(this,fm)}},fm=new WeakMap,ed=new WeakMap,pm=new WeakMap,pV),UT=new Tje;function wje(e){return Math.min(1e3*2**e,3e4)}function px(e){return(e??"online")==="online"?UT.isOnline():!0}var lte=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function KA(e){return e instanceof lte}function ute(e){let t=!1,n=0,r=!1,i,o,a;const s=new Promise((O,b)=>{o=O,a=b}),l=O=>{var b;r||(h(new lte(O)),(b=e.abort)==null||b.call(e))},u=()=>{t=!0},c=()=>{t=!1},d=()=>!BT.isFocused()||e.networkMode!=="always"&&!UT.isOnline(),p=O=>{var b;r||(r=!0,(b=e.onSuccess)==null||b.call(e,O),i==null||i(),o(O))},h=O=>{var b;r||(r=!0,(b=e.onError)==null||b.call(e,O),i==null||i(),a(O))},m=()=>new Promise(O=>{var b;i=v=>{const S=r||!d();return S&&O(v),S},(b=e.onPause)==null||b.call(e)}).then(()=>{var O;i=void 0,r||(O=e.onContinue)==null||O.call(e)}),y=()=>{if(r)return;let O;try{O=e.fn()}catch(b){O=Promise.reject(b)}Promise.resolve(O).then(p).catch(b=>{var w;if(r)return;const v=e.retry??(eg?0:3),S=e.retryDelay??wje,k=typeof S=="function"?S(n,b):S,C=v===!0||typeof v=="number"&&n{if(d())return m()}).then(()=>{t?h(b):y()})})};return px(e.networkMode)?y():m().then(y),{promise:s,cancel:l,continue:()=>(i==null?void 0:i())?s:Promise.resolve(),cancelRetry:u,continueRetry:c}}function kje(){let e=[],t=0,n=p=>{p()},r=p=>{p()},i=p=>setTimeout(p,0);const o=p=>{i=p},a=p=>{let h;t++;try{h=p()}finally{t--,t||u()}return h},s=p=>{t?e.push(p):i(()=>{n(p)})},l=p=>(...h)=>{s(()=>{p(...h)})},u=()=>{const p=e;e=[],p.length&&i(()=>{r(()=>{p.forEach(h=>{n(h)})})})};return{batch:a,batchCalls:l,schedule:s,setNotifyFunction:p=>{n=p},setBatchNotifyFunction:p=>{r=p},setScheduler:o}}var Ni=kje(),Ff,hV,cte=(hV=class{constructor(){Zt(this,Ff,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),cI(this.gcTime)&&Bt(this,Ff,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(eg?1/0:5*60*1e3))}clearGcTimeout(){we(this,Ff)&&(clearTimeout(we(this,Ff)),Bt(this,Ff,void 0))}},Ff=new WeakMap,hV),hm,mm,ks,td,xs,Hi,i1,Bf,gm,YE,cl,Yu,mV,xje=(mV=class extends cte{constructor(t){super();Zt(this,gm);Zt(this,cl);Zt(this,hm,void 0);Zt(this,mm,void 0);Zt(this,ks,void 0);Zt(this,td,void 0);Zt(this,xs,void 0);Zt(this,Hi,void 0);Zt(this,i1,void 0);Zt(this,Bf,void 0);Bt(this,Bf,!1),Bt(this,i1,t.defaultOptions),Tn(this,gm,YE).call(this,t.options),Bt(this,Hi,[]),Bt(this,ks,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Bt(this,hm,t.state||Cje(this.options)),this.state=we(this,hm),this.scheduleGc()}get meta(){return this.options.meta}optionalRemove(){!we(this,Hi).length&&this.state.fetchStatus==="idle"&&we(this,ks).remove(this)}setData(t,n){const r=fI(this.state.data,t,this.options);return Tn(this,cl,Yu).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Tn(this,cl,Yu).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r;const n=we(this,td);return(r=we(this,xs))==null||r.cancel(t),n?n.then(_s).catch(_s):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(we(this,hm))}isActive(){return we(this,Hi).some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||we(this,Hi).some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!ate(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=we(this,Hi).find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=we(this,xs))==null||n.continue()}onOnline(){var n;const t=we(this,Hi).find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=we(this,xs))==null||n.continue()}addObserver(t){we(this,Hi).includes(t)||(we(this,Hi).push(t),this.clearGcTimeout(),we(this,ks).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){we(this,Hi).includes(t)&&(Bt(this,Hi,we(this,Hi).filter(n=>n!==t)),we(this,Hi).length||(we(this,xs)&&(we(this,Bf)?we(this,xs).cancel({revert:!0}):we(this,xs).cancelRetry()),this.scheduleGc()),we(this,ks).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return we(this,Hi).length}invalidate(){this.state.isInvalidated||Tn(this,cl,Yu).call(this,{type:"invalidate"})}fetch(t,n){var u,c,d,p;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(we(this,td))return(u=we(this,xs))==null||u.continueRetry(),we(this,td)}if(t&&Tn(this,gm,YE).call(this,t),!this.options.queryFn){const h=we(this,Hi).find(m=>m.options.queryFn);h&&Tn(this,gm,YE).call(this,h.options)}const r=new AbortController,i={queryKey:this.queryKey,meta:this.meta},o=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(Bt(this,Bf,!0),r.signal)})};o(i);const a=()=>this.options.queryFn?(Bt(this,Bf,!1),this.options.persister?this.options.persister(this.options.queryFn,i,this):this.options.queryFn(i)):Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)),s={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};o(s),(c=this.options.behavior)==null||c.onFetch(s,this),Bt(this,mm,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=s.fetchOptions)==null?void 0:d.meta))&&Tn(this,cl,Yu).call(this,{type:"fetch",meta:(p=s.fetchOptions)==null?void 0:p.meta});const l=h=>{var m,y,O,b;KA(h)&&h.silent||Tn(this,cl,Yu).call(this,{type:"error",error:h}),KA(h)||((y=(m=we(this,ks).config).onError)==null||y.call(m,h,this),(b=(O=we(this,ks).config).onSettled)==null||b.call(O,this.state.data,h,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return Bt(this,xs,ute({fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var m,y,O,b;if(typeof h>"u"){l(new Error(`${this.queryHash} data is undefined`));return}this.setData(h),(y=(m=we(this,ks).config).onSuccess)==null||y.call(m,h,this),(b=(O=we(this,ks).config).onSettled)==null||b.call(O,h,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(h,m)=>{Tn(this,cl,Yu).call(this,{type:"failed",failureCount:h,error:m})},onPause:()=>{Tn(this,cl,Yu).call(this,{type:"pause"})},onContinue:()=>{Tn(this,cl,Yu).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode})),Bt(this,td,we(this,xs).promise),we(this,td)}},hm=new WeakMap,mm=new WeakMap,ks=new WeakMap,td=new WeakMap,xs=new WeakMap,Hi=new WeakMap,i1=new WeakMap,Bf=new WeakMap,gm=new WeakSet,YE=function(t){this.options={...we(this,i1),...t},this.updateGcTime(this.options.gcTime)},cl=new WeakSet,Yu=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:t.meta??null,fetchStatus:px(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"pending"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return KA(i)&&i.revert&&we(this,mm)?{...we(this,mm),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),Ni.batch(()=>{we(this,Hi).forEach(r=>{r.onQueryUpdate()}),we(this,ks).notify({query:this,type:"updated",action:t})})},mV);function Cje(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=typeof t<"u",r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var nu,gV,Aje=(gV=class extends Mg{constructor(t={}){super();Zt(this,nu,void 0);this.config=t,Bt(this,nu,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??J5(i,n);let a=this.get(o);return a||(a=new xje({cache:this,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(a)),a}add(t){we(this,nu).has(t.queryHash)||(we(this,nu).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=we(this,nu).get(t.queryHash);n&&(t.destroy(),n===t&&we(this,nu).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ni.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return we(this,nu).get(t)}getAll(){return[...we(this,nu).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>xz(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>xz(t,r)):n}notify(t){Ni.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ni.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ni.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},nu=new WeakMap,gV),ru,o1,Qa,bm,iu,Vc,bV,_je=(bV=class extends cte{constructor(t){super();Zt(this,iu);Zt(this,ru,void 0);Zt(this,o1,void 0);Zt(this,Qa,void 0);Zt(this,bm,void 0);this.mutationId=t.mutationId,Bt(this,o1,t.defaultOptions),Bt(this,Qa,t.mutationCache),Bt(this,ru,[]),this.state=t.state||dte(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...we(this,o1),...t},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){we(this,ru).includes(t)||(we(this,ru).push(t),this.clearGcTimeout(),we(this,Qa).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Bt(this,ru,we(this,ru).filter(n=>n!==t)),this.scheduleGc(),we(this,Qa).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){we(this,ru).length||(this.state.status==="pending"?this.scheduleGc():we(this,Qa).remove(this))}continue(){var t;return((t=we(this,bm))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,a,s,l,u,c,d,p,h,m,y,O,b,v,S,k,C,w,E;const n=()=>(Bt(this,bm,ute({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:($,D)=>{Tn(this,iu,Vc).call(this,{type:"failed",failureCount:$,error:D})},onPause:()=>{Tn(this,iu,Vc).call(this,{type:"pause"})},onContinue:()=>{Tn(this,iu,Vc).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),we(this,bm).promise),r=this.state.status==="pending";try{if(!r){Tn(this,iu,Vc).call(this,{type:"pending",variables:t}),await((o=(i=we(this,Qa).config).onMutate)==null?void 0:o.call(i,t,this));const D=await((s=(a=this.options).onMutate)==null?void 0:s.call(a,t));D!==this.state.context&&Tn(this,iu,Vc).call(this,{type:"pending",context:D,variables:t})}const $=await n();return await((u=(l=we(this,Qa).config).onSuccess)==null?void 0:u.call(l,$,t,this.state.context,this)),await((d=(c=this.options).onSuccess)==null?void 0:d.call(c,$,t,this.state.context)),await((h=(p=we(this,Qa).config).onSettled)==null?void 0:h.call(p,$,null,this.state.variables,this.state.context,this)),await((y=(m=this.options).onSettled)==null?void 0:y.call(m,$,null,t,this.state.context)),Tn(this,iu,Vc).call(this,{type:"success",data:$}),$}catch($){try{throw await((b=(O=we(this,Qa).config).onError)==null?void 0:b.call(O,$,t,this.state.context,this)),await((S=(v=this.options).onError)==null?void 0:S.call(v,$,t,this.state.context)),await((C=(k=we(this,Qa).config).onSettled)==null?void 0:C.call(k,void 0,$,this.state.variables,this.state.context,this)),await((E=(w=this.options).onSettled)==null?void 0:E.call(w,void 0,$,t,this.state.context)),$}finally{Tn(this,iu,Vc).call(this,{type:"error",error:$})}}}},ru=new WeakMap,o1=new WeakMap,Qa=new WeakMap,bm=new WeakMap,iu=new WeakSet,Vc=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:!px(this.options.networkMode),status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Ni.batch(()=>{we(this,ru).forEach(r=>{r.onMutationUpdate(t)}),we(this,Qa).notify({mutation:this,type:"updated",action:t})})},bV);function dte(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Cs,a1,Uf,yV,Rje=(yV=class extends Mg{constructor(t={}){super();Zt(this,Cs,void 0);Zt(this,a1,void 0);Zt(this,Uf,void 0);this.config=t,Bt(this,Cs,[]),Bt(this,a1,0)}build(t,n,r){const i=new _je({mutationCache:this,mutationId:++$O(this,a1)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){we(this,Cs).push(t),this.notify({type:"added",mutation:t})}remove(t){Bt(this,Cs,we(this,Cs).filter(n=>n!==t)),this.notify({type:"removed",mutation:t})}clear(){Ni.batch(()=>{we(this,Cs).forEach(t=>{this.remove(t)})})}getAll(){return we(this,Cs)}find(t){const n={exact:!0,...t};return we(this,Cs).find(r=>Cz(n,r))}findAll(t={}){return we(this,Cs).filter(n=>Cz(t,n))}notify(t){Ni.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){return Bt(this,Uf,(we(this,Uf)??Promise.resolve()).then(()=>{const t=we(this,Cs).filter(n=>n.state.isPaused);return Ni.batch(()=>t.reduce((n,r)=>n.then(()=>r.continue().catch(_s)),Promise.resolve()))}).then(()=>{Bt(this,Uf,void 0)})),we(this,Uf)}},Cs=new WeakMap,a1=new WeakMap,Uf=new WeakMap,yV);function pI(e){return{onFetch:(t,n)=>{const r=async()=>{var m,y,O,b,v;const i=t.options,o=(O=(y=(m=t.fetchOptions)==null?void 0:m.meta)==null?void 0:y.fetchMore)==null?void 0:O.direction,a=((b=t.state.data)==null?void 0:b.pages)||[],s=((v=t.state.data)==null?void 0:v.pageParams)||[],l={pages:[],pageParams:[]};let u=!1;const c=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},d=t.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${t.options.queryHash}'`))),p=async(S,k,C)=>{if(u)return Promise.reject();if(k==null&&S.pages.length)return Promise.resolve(S);const w={queryKey:t.queryKey,pageParam:k,direction:C?"backward":"forward",meta:t.options.meta};c(w);const E=await d(w),{maxPages:$}=t.options,D=C?Eje:vje;return{pages:D(S.pages,E,$),pageParams:D(S.pageParams,k,$)}};let h;if(o&&a.length){const S=o==="backward",k=S?fte:hI,C={pages:a,pageParams:s},w=k(i,C);h=await p(C,w,S)}else{h=await p(l,s[0]??i.initialPageParam);const S=e??a.length;for(let k=1;k{var i,o;return(o=(i=t.options).persister)==null?void 0:o.call(i,r,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=r}}}function hI(e,{pages:t,pageParams:n}){const r=t.length-1;return e.getNextPageParam(t[r],t,n[r],n)}function fte(e,{pages:t,pageParams:n}){var r;return(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n)}function Ije(e,t){return t?hI(e,t)!=null:!1}function Nje(e,t){return!t||!e.getPreviousPageParam?!1:fte(e,t)!=null}var Ai,nd,rd,ym,Om,id,vm,Em,OV,Dje=(OV=class{constructor(e={}){Zt(this,Ai,void 0);Zt(this,nd,void 0);Zt(this,rd,void 0);Zt(this,ym,void 0);Zt(this,Om,void 0);Zt(this,id,void 0);Zt(this,vm,void 0);Zt(this,Em,void 0);Bt(this,Ai,e.queryCache||new Aje),Bt(this,nd,e.mutationCache||new Rje),Bt(this,rd,e.defaultOptions||{}),Bt(this,ym,new Map),Bt(this,Om,new Map),Bt(this,id,0)}mount(){$O(this,id)._++,we(this,id)===1&&(Bt(this,vm,BT.subscribe(()=>{BT.isFocused()&&(this.resumePausedMutations(),we(this,Ai).onFocus())})),Bt(this,Em,UT.subscribe(()=>{UT.isOnline()&&(this.resumePausedMutations(),we(this,Ai).onOnline())})))}unmount(){var e,t;$O(this,id)._--,we(this,id)===0&&((e=we(this,vm))==null||e.call(this),Bt(this,vm,void 0),(t=we(this,Em))==null||t.call(this),Bt(this,Em,void 0))}isFetching(e){return we(this,Ai).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return we(this,nd).findAll({...e,status:"pending"}).length}getQueryData(e){var t;return(t=we(this,Ai).find({queryKey:e}))==null?void 0:t.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);return t!==void 0?Promise.resolve(t):this.fetchQuery(e)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=we(this,Ai).find({queryKey:e}),i=r==null?void 0:r.state.data,o=yje(t,i);if(typeof o>"u")return;const a=this.defaultQueryOptions({queryKey:e});return we(this,Ai).build(this,a).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Ni.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var t;return(t=we(this,Ai).find({queryKey:e}))==null?void 0:t.state}removeQueries(e){const t=we(this,Ai);Ni.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=we(this,Ai),r={type:"active",...e};return Ni.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Ni.batch(()=>we(this,Ai).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(_s).catch(_s)}invalidateQueries(e={},t={}){return Ni.batch(()=>{if(we(this,Ai).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=Ni.batch(()=>we(this,Ai).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(_s)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(_s)}fetchQuery(e){const t=this.defaultQueryOptions(e);typeof t.retry>"u"&&(t.retry=!1);const n=we(this,Ai).build(this,t);return n.isStaleByTime(t.staleTime)?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(_s).catch(_s)}fetchInfiniteQuery(e){return e.behavior=pI(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(_s).catch(_s)}resumePausedMutations(){return we(this,nd).resumePausedMutations()}getQueryCache(){return we(this,Ai)}getMutationCache(){return we(this,nd)}getDefaultOptions(){return we(this,rd)}setDefaultOptions(e){Bt(this,rd,e)}setQueryDefaults(e,t){we(this,ym).set(bp(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...we(this,ym).values()];let n={};return t.forEach(r=>{Gy(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){we(this,Om).set(bp(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...we(this,Om).values()];let n={};return t.forEach(r=>{Gy(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e!=null&&e._defaulted)return e;const t={...we(this,rd).queries,...(e==null?void 0:e.queryKey)&&this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=J5(t.queryKey,t)),typeof t.refetchOnReconnect>"u"&&(t.refetchOnReconnect=t.networkMode!=="always"),typeof t.throwOnError>"u"&&(t.throwOnError=!!t.suspense),typeof t.networkMode>"u"&&t.persister&&(t.networkMode="offlineFirst"),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...we(this,rd).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){we(this,Ai).clear(),we(this,nd).clear()}},Ai=new WeakMap,nd=new WeakMap,rd=new WeakMap,ym=new WeakMap,Om=new WeakMap,id=new WeakMap,vm=new WeakMap,Em=new WeakMap,OV),ma,_r,s1,Zo,jf,Sm,ou,l1,Tm,wm,zf,Vf,od,km,Hf,X0,u1,mI,c1,gI,d1,bI,f1,yI,p1,OI,h1,vI,m1,EI,JT,hte,vV,pte=(vV=class extends Mg{constructor(t,n){super();Zt(this,Hf);Zt(this,u1);Zt(this,c1);Zt(this,d1);Zt(this,f1);Zt(this,p1);Zt(this,h1);Zt(this,m1);Zt(this,JT);Zt(this,ma,void 0);Zt(this,_r,void 0);Zt(this,s1,void 0);Zt(this,Zo,void 0);Zt(this,jf,void 0);Zt(this,Sm,void 0);Zt(this,ou,void 0);Zt(this,l1,void 0);Zt(this,Tm,void 0);Zt(this,wm,void 0);Zt(this,zf,void 0);Zt(this,Vf,void 0);Zt(this,od,void 0);Zt(this,km,new Set);this.options=n,Bt(this,ma,t),Bt(this,ou,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(we(this,_r).addObserver(this),Rz(we(this,_r),this.options)?Tn(this,Hf,X0).call(this):this.updateResult(),Tn(this,f1,yI).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return SI(we(this,_r),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return SI(we(this,_r),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Tn(this,p1,OI).call(this),Tn(this,h1,vI).call(this),we(this,_r).removeObserver(this)}setOptions(t,n){const r=this.options,i=we(this,_r);if(this.options=we(this,ma).defaultQueryOptions(t),FT(r,this.options)||we(this,ma).getQueryCache().notify({type:"observerOptionsUpdated",query:we(this,_r),observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),Tn(this,m1,EI).call(this);const o=this.hasListeners();o&&Iz(we(this,_r),i,this.options,r)&&Tn(this,Hf,X0).call(this),this.updateResult(n),o&&(we(this,_r)!==i||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&Tn(this,u1,mI).call(this);const a=Tn(this,c1,gI).call(this);o&&(we(this,_r)!==i||this.options.enabled!==r.enabled||a!==we(this,od))&&Tn(this,d1,bI).call(this,a)}getOptimisticResult(t){const n=we(this,ma).getQueryCache().build(we(this,ma),t),r=this.createResult(n,t);return Lje(this,r)&&(Bt(this,Zo,r),Bt(this,Sm,this.options),Bt(this,jf,we(this,_r).state)),r}getCurrentResult(){return we(this,Zo)}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(we(this,km).add(r),t[r])})}),n}getCurrentQuery(){return we(this,_r)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=we(this,ma).defaultQueryOptions(t),r=we(this,ma).getQueryCache().build(we(this,ma),n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){return Tn(this,Hf,X0).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),we(this,Zo)))}createResult(t,n){var w;const r=we(this,_r),i=this.options,o=we(this,Zo),a=we(this,jf),s=we(this,Sm),u=t!==r?t.state:we(this,s1),{state:c}=t;let{error:d,errorUpdatedAt:p,fetchStatus:h,status:m}=c,y=!1,O;if(n._optimisticResults){const E=this.hasListeners(),$=!E&&Rz(t,n),D=E&&Iz(t,r,n,i);($||D)&&(h=px(t.options.networkMode)?"fetching":"paused",c.dataUpdatedAt||(m="pending")),n._optimisticResults==="isRestoring"&&(h="idle")}if(n.select&&typeof c.data<"u")if(o&&c.data===(a==null?void 0:a.data)&&n.select===we(this,l1))O=we(this,Tm);else try{Bt(this,l1,n.select),O=n.select(c.data),O=fI(o==null?void 0:o.data,O,n),Bt(this,Tm,O),Bt(this,ou,null)}catch(E){Bt(this,ou,E)}else O=c.data;if(typeof n.placeholderData<"u"&&typeof O>"u"&&m==="pending"){let E;if(o!=null&&o.isPlaceholderData&&n.placeholderData===(s==null?void 0:s.placeholderData))E=o.data;else if(E=typeof n.placeholderData=="function"?n.placeholderData((w=we(this,wm))==null?void 0:w.state.data,we(this,wm)):n.placeholderData,n.select&&typeof E<"u")try{E=n.select(E),Bt(this,ou,null)}catch($){Bt(this,ou,$)}typeof E<"u"&&(m="success",O=fI(o==null?void 0:o.data,E,n),y=!0)}we(this,ou)&&(d=we(this,ou),O=we(this,Tm),p=Date.now(),m="error");const b=h==="fetching",v=m==="pending",S=m==="error",k=v&&b;return{status:m,fetchStatus:h,isPending:v,isSuccess:m==="success",isError:S,isInitialLoading:k,isLoading:k,data:O,dataUpdatedAt:c.dataUpdatedAt,error:d,errorUpdatedAt:p,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:b,isRefetching:b&&!v,isLoadingError:S&&c.dataUpdatedAt===0,isPaused:h==="paused",isPlaceholderData:y,isRefetchError:S&&c.dataUpdatedAt!==0,isStale:e$(t,n),refetch:this.refetch}}updateResult(t){const n=we(this,Zo),r=this.createResult(we(this,_r),this.options);if(Bt(this,jf,we(this,_r).state),Bt(this,Sm,this.options),we(this,jf).data!==void 0&&Bt(this,wm,we(this,_r)),FT(r,n))return;Bt(this,Zo,r);const i={},o=()=>{if(!n)return!0;const{notifyOnChangeProps:a}=this.options,s=typeof a=="function"?a():a;if(s==="all"||!s&&!we(this,km).size)return!0;const l=new Set(s??we(this,km));return this.options.throwOnError&&l.add("error"),Object.keys(we(this,Zo)).some(u=>{const c=u;return we(this,Zo)[c]!==n[c]&&l.has(c)})};(t==null?void 0:t.listeners)!==!1&&o()&&(i.listeners=!0),Tn(this,JT,hte).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Tn(this,f1,yI).call(this)}},ma=new WeakMap,_r=new WeakMap,s1=new WeakMap,Zo=new WeakMap,jf=new WeakMap,Sm=new WeakMap,ou=new WeakMap,l1=new WeakMap,Tm=new WeakMap,wm=new WeakMap,zf=new WeakMap,Vf=new WeakMap,od=new WeakMap,km=new WeakMap,Hf=new WeakSet,X0=function(t){Tn(this,m1,EI).call(this);let n=we(this,_r).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(_s)),n},u1=new WeakSet,mI=function(){if(Tn(this,p1,OI).call(this),eg||we(this,Zo).isStale||!cI(this.options.staleTime))return;const n=ate(we(this,Zo).dataUpdatedAt,this.options.staleTime)+1;Bt(this,zf,setTimeout(()=>{we(this,Zo).isStale||this.updateResult()},n))},c1=new WeakSet,gI=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(we(this,_r)):this.options.refetchInterval)??!1},d1=new WeakSet,bI=function(t){Tn(this,h1,vI).call(this),Bt(this,od,t),!(eg||this.options.enabled===!1||!cI(we(this,od))||we(this,od)===0)&&Bt(this,Vf,setInterval(()=>{(this.options.refetchIntervalInBackground||BT.isFocused())&&Tn(this,Hf,X0).call(this)},we(this,od)))},f1=new WeakSet,yI=function(){Tn(this,u1,mI).call(this),Tn(this,d1,bI).call(this,Tn(this,c1,gI).call(this))},p1=new WeakSet,OI=function(){we(this,zf)&&(clearTimeout(we(this,zf)),Bt(this,zf,void 0))},h1=new WeakSet,vI=function(){we(this,Vf)&&(clearInterval(we(this,Vf)),Bt(this,Vf,void 0))},m1=new WeakSet,EI=function(){const t=we(this,ma).getQueryCache().build(we(this,ma),this.options);if(t===we(this,_r))return;const n=we(this,_r);Bt(this,_r,t),Bt(this,s1,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},JT=new WeakSet,hte=function(t){Ni.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(we(this,Zo))}),we(this,ma).getQueryCache().notify({query:we(this,_r),type:"observerResultsUpdated"})})},vV);function Pje(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Rz(e,t){return Pje(e,t)||e.state.dataUpdatedAt>0&&SI(e,t,t.refetchOnMount)}function SI(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&e$(e,t)}return!1}function Iz(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&e$(e,n)}function e$(e,t){return e.isStaleByTime(t.staleTime)}function Lje(e,t){return!FT(e.getCurrentResult(),t)}var Mje=class extends pte{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:pI()},t)}getOptimisticResult(e){return e.behavior=pI(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){var l,u,c,d;const{state:n}=e,r=super.createResult(e,t),{isFetching:i,isRefetching:o}=r,a=i&&((u=(l=n.fetchMeta)==null?void 0:l.fetchMore)==null?void 0:u.direction)==="forward",s=i&&((d=(c=n.fetchMeta)==null?void 0:c.fetchMore)==null?void 0:d.direction)==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Ije(t,n.data),hasPreviousPage:Nje(t,n.data),isFetchingNextPage:a,isFetchingPreviousPage:s,isRefetching:o&&!a&&!s}}},ad,Ku,Ya,Ju,xm,GE,g1,TI,EV,$je=(EV=class extends Mg{constructor(n,r){super();Zt(this,xm);Zt(this,g1);Zt(this,ad,void 0);Zt(this,Ku,void 0);Zt(this,Ya,void 0);Zt(this,Ju,void 0);Bt(this,Ku,void 0),Bt(this,ad,n),this.setOptions(r),this.bindMethods(),Tn(this,xm,GE).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=we(this,ad).defaultMutationOptions(n),FT(r,this.options)||we(this,ad).getMutationCache().notify({type:"observerOptionsUpdated",mutation:we(this,Ya),observer:this}),(i=we(this,Ya))==null||i.setOptions(this.options),r!=null&&r.mutationKey&&this.options.mutationKey&&bp(r.mutationKey)!==bp(this.options.mutationKey)&&this.reset()}onUnsubscribe(){var n;this.hasListeners()||(n=we(this,Ya))==null||n.removeObserver(this)}onMutationUpdate(n){Tn(this,xm,GE).call(this),Tn(this,g1,TI).call(this,n)}getCurrentResult(){return we(this,Ku)}reset(){var n;(n=we(this,Ya))==null||n.removeObserver(this),Bt(this,Ya,void 0),Tn(this,xm,GE).call(this),Tn(this,g1,TI).call(this)}mutate(n,r){var i;return Bt(this,Ju,r),(i=we(this,Ya))==null||i.removeObserver(this),Bt(this,Ya,we(this,ad).getMutationCache().build(we(this,ad),this.options)),we(this,Ya).addObserver(this),we(this,Ya).execute(n)}},ad=new WeakMap,Ku=new WeakMap,Ya=new WeakMap,Ju=new WeakMap,xm=new WeakSet,GE=function(){var r;const n=((r=we(this,Ya))==null?void 0:r.state)??dte();Bt(this,Ku,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},g1=new WeakSet,TI=function(n){Ni.batch(()=>{var r,i,o,a,s,l,u,c;if(we(this,Ju)&&this.hasListeners()){const d=we(this,Ku).variables,p=we(this,Ku).context;(n==null?void 0:n.type)==="success"?((i=(r=we(this,Ju)).onSuccess)==null||i.call(r,n.data,d,p),(a=(o=we(this,Ju)).onSettled)==null||a.call(o,n.data,null,d,p)):(n==null?void 0:n.type)==="error"&&((l=(s=we(this,Ju)).onError)==null||l.call(s,n.error,d,p),(c=(u=we(this,Ju)).onSettled)==null||c.call(u,void 0,n.error,d,p))}this.listeners.forEach(d=>{d(we(this,Ku))})})},EV),mte=N.createContext(void 0),t$=e=>{const t=N.useContext(mte);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Fje=({client:e,children:t})=>(N.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),N.createElement(mte.Provider,{value:e},t)),gte=N.createContext(!1),Bje=()=>N.useContext(gte);gte.Provider;function Uje(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var jje=N.createContext(Uje()),zje=()=>N.useContext(jje);function bte(e,t){return typeof e=="function"?e(...t):!!e}var Vje=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},Hje=e=>{N.useEffect(()=>{e.clearReset()},[e])},Wje=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&bte(n,[e.error,r]),Qje=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},Yje=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Gje=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function yte(e,t,n){const r=t$(n),i=Bje(),o=zje(),a=r.defaultQueryOptions(e);a._optimisticResults=i?"isRestoring":"optimistic",Qje(a),Vje(a,o),Hje(o);const[s]=N.useState(()=>new t(r,a)),l=s.getOptimisticResult(a);if(N.useSyncExternalStore(N.useCallback(u=>{const c=i?()=>{}:s.subscribe(Ni.batchCalls(u));return s.updateResult(),c},[s,i]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),N.useEffect(()=>{s.setOptions(a,{listeners:!1})},[a,s]),Yje(a,l))throw Gje(a,s,o);if(Wje({result:l,errorResetBoundary:o,throwOnError:a.throwOnError,query:r.getQueryCache().get(a.queryHash)}))throw l.error;return a.notifyOnChangeProps?l:s.trackResult(l)}function n$(e,t){return yte(e,pte,t)}function Ote(e,t){const n=t$(t),[r]=N.useState(()=>new $je(n,e));N.useEffect(()=>{r.setOptions(e)},[r,e]);const i=N.useSyncExternalStore(N.useCallback(a=>r.subscribe(Ni.batchCalls(a)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),o=N.useCallback((a,s)=>{r.mutate(a,s).catch(qje)},[r]);if(i.error&&bte(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:o,mutateAsync:i.mutate}}function qje(){}function r$(e,t){return yte(e,Mje,t)}const Zje=e=>["documents",e],Xje=e=>n$({queryKey:Zje(e||""),enabled:!!e,queryFn:async()=>(await cr.get(`/documents/${e}`)).data,meta:{errorMessage:"This is a non-existent or unauthorized Workspace."}});function Kje(){const e=F1(),t=hg(),n=uLe(),r=wc(wk),{data:i}=Xje(e.documentSlug||"");return N.useEffect(()=>{let o,a;return i!=null&&i.yorkieDocumentId?((async()=>{o=new MR.Client("https://api.yorkie.dev",{apiKey:"cmggkp8ksk14av0keupg"}),await o.activate(),a=new MR.Document(i==null?void 0:i.yorkieDocumentId),await o.attach(a,{initialPresence:{name:"Yorkie",color:X3e(C3e()).fade(.15).toString(),selection:null}}),t(c7(a)),t(d7(o))})(),()=>{(async()=>{await(o==null?void 0:o.deactivate()),t(c7(null)),t(d7(null))})()}):void 0},[t,i==null?void 0:i.yorkieDocumentId]),M.jsxs(xa,{height:"calc(100% - 64px)",children:[M.jsx("div",{className:"wmde-markdown-var"}),r.mode==="both"&&M.jsx(nLe,{axis:"x",initial:n/2,min:400,children:({position:o,separatorProps:a})=>M.jsxs("div",{id:"wrapper",style:{display:"flex",height:"100%",overflow:"hidden"},children:[M.jsx("div",{id:"left-block",style:{width:o},children:M.jsx(V9,{})}),M.jsx(Ra,{id:"splitter",...a,sx:{height:"100%",width:8,borderRadius:0,cursor:"col-resize",zIndex:100}}),M.jsx("div",{className:"right-block",style:{width:`calc(100% - ${o}px)`,overflow:"auto"},children:M.jsx(xa,{sx:{p:4},height:"100%",children:M.jsx(kz,{})})})]})}),r.mode==="read"&&M.jsx(xa,{sx:{p:4,overflow:"auto"},height:"100%",children:M.jsx(kz,{})}),r.mode==="edit"&&M.jsx(V9,{})]})}function Jje(){return M.jsx(ho,{sx:{flexGrow:1},gap:3,children:M.jsx(ID,{})})}function eze(e){return M.jsx(MS,{...e,children:M.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:[M.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"}),M.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"}),M.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"})]})})}var tze=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(r,i,o){n.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:o})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,i){if(1&i&&(r=n(r)),8&i||4&i&&typeof r=="object"&&r&&r.__esModule)return r;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:r}),2&i&&typeof r!="string")for(var a in r)n.d(o,a,(function(s){return r[s]}).bind(null,a));return o},n.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(i,"a",i),i},n.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},n.p="",n(n.s=4)}([function(e,t,n){e.exports=n(2)()},function(e,t){e.exports=N},function(e,t,n){var r=n(3);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function a(u,c,d,p,h,m){if(m!==r){var y=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 y.name="Invariant Violation",y}}function s(){return a}a.isRequired=a;var l={array:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:s,element:a,elementType:a,instanceOf:s,node:a,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:o,resetWarningCache:i};return l.PropTypes=l,l}},function(e,t,n){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){n.r(t),n.d(t,"FacebookLoginButton",function(){return Z}),n.d(t,"GoogleLoginButton",function(){return j}),n.d(t,"GithubLoginButton",function(){return G}),n.d(t,"TwitterLoginButton",function(){return he}),n.d(t,"AmazonLoginButton",function(){return qe}),n.d(t,"InstagramLoginButton",function(){return Qe}),n.d(t,"LinkedInLoginButton",function(){return $e}),n.d(t,"MicrosoftLoginButton",function(){return Be}),n.d(t,"BufferLoginButton",function(){return J}),n.d(t,"TelegramLoginButton",function(){return Ie}),n.d(t,"AppleLoginButton",function(){return ce}),n.d(t,"DiscordLoginButton",function(){return nt}),n.d(t,"OktaLoginButton",function(){return Ke}),n.d(t,"SlackLoginButton",function(){return it}),n.d(t,"YahooLoginButton",function(){return rn}),n.d(t,"createButton",function(){return V}),n.d(t,"createSvgIcon",function(){return Q}),n.d(t,"ZaloLoginButton",function(){return zn}),n.d(t,"TikTokLoginButton",function(){return fe}),n.d(t,"MetamaskLoginButton",function(){return $t});var r={};n.r(r),n.d(r,"FacebookLoginButton",function(){return Z}),n.d(r,"GoogleLoginButton",function(){return j}),n.d(r,"GithubLoginButton",function(){return G}),n.d(r,"TwitterLoginButton",function(){return he}),n.d(r,"AmazonLoginButton",function(){return qe}),n.d(r,"InstagramLoginButton",function(){return Qe}),n.d(r,"LinkedInLoginButton",function(){return $e}),n.d(r,"MicrosoftLoginButton",function(){return Be}),n.d(r,"BufferLoginButton",function(){return J}),n.d(r,"TelegramLoginButton",function(){return Ie}),n.d(r,"AppleLoginButton",function(){return ce}),n.d(r,"DiscordLoginButton",function(){return nt}),n.d(r,"OktaLoginButton",function(){return Ke}),n.d(r,"SlackLoginButton",function(){return it}),n.d(r,"YahooLoginButton",function(){return rn}),n.d(r,"createButton",function(){return V}),n.d(r,"createSvgIcon",function(){return Q}),n.d(r,"ZaloLoginButton",function(){return zn}),n.d(r,"TikTokLoginButton",function(){return fe}),n.d(r,"MetamaskLoginButton",function(){return $t});var i=n(1),o=n.n(i),a=n(0),s=n.n(a),l=function(Re){var Te=Re.name,We=Re.size,ot=Re.format;return o.a.createElement("i",{className:ot(Te),style:{fontSize:We}})};l.propTypes={format:s.a.func,name:s.a.string.isRequired,size:s.a.oneOfType([s.a.string,s.a.number]).isRequired},l.defaultProps={format:function(Re){return"demo-icon icon-".concat(Re)},size:26};var u=l,c=function(Re){var Te=Re.type,We=Re.size,ot=Re.format,nn=Re.color,Wt=nn===void 0?"#FFFFFF":nn;return typeof Te=="string"?o.a.createElement(u,{format:ot,name:Te,size:We}):o.a.createElement(Te,{size:We,color:Wt})};c.propTypes={format:s.a.func,size:s.a.oneOfType([s.a.number,s.a.string]),type:s.a.oneOfType([s.a.string,s.a.node,s.a.func]),color:s.a.string};var d=c;function p(Re,Te){var We=Object.keys(Re);if(Object.getOwnPropertySymbols){var ot=Object.getOwnPropertySymbols(Re);Te&&(ot=ot.filter(function(nn){return Object.getOwnPropertyDescriptor(Re,nn).enumerable})),We.push.apply(We,ot)}return We}function h(Re){for(var Te=1;Te"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 We,ot=C(Re);if(Te){var nn=C(this).constructor;We=Reflect.construct(ot,arguments,nn)}else We=ot.apply(this,arguments);return k(this,We)}}function k(Re,Te){return!Te||y(Te)!=="object"&&typeof Te!="function"?function(We){if(We===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return We}(Re):Te}function C(Re){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(Te){return Te.__proto__||Object.getPrototypeOf(Te)})(Re)}var w=function(Re){(function(Wt,hn){if(typeof hn!="function"&&hn!==null)throw new TypeError("Super expression must either be null or a function");Wt.prototype=Object.create(hn&&hn.prototype,{constructor:{value:Wt,writable:!0,configurable:!0}}),hn&&v(Wt,hn)})(nn,Re);var Te,We,ot=S(nn);function nn(Wt){var hn;return function(tr,Ue){if(!(tr instanceof Ue))throw new TypeError("Cannot call a class as a function")}(this,nn),(hn=ot.call(this,Wt)).state={focused:!1,hovered:!1},hn.handleMouseEnter=function(){hn.setState({hovered:!0}),typeof hn.props.onMouseEnter=="function"&&hn.props.onMouseEnter()},hn.handleMouseLeave=function(){hn.setState({hovered:!1}),typeof hn.props.onMouseLeave=="function"&&hn.props.onMouseLeave()},hn.handleFocus=function(){hn.setState({focused:!0})},hn.handleBlur=function(){hn.setState({focused:!1})},hn.handleClick=function(tr){typeof hn.props.onClick=="function"&&hn.props.onClick(tr)},hn}return Te=nn,(We=[{key:"render",value:function(){var Wt=this.props,hn=Wt.activeStyle,tr=Wt.align,Ue=Wt.text,xe=Wt.children,mt=xe===void 0?Ue:xe,Nt=Wt.className,en=Wt.icon,Mn=Wt.iconFormat,Nn=Wt.iconSize,Xt=Wt.iconColor,gn=Xt===void 0?"#FFFFFF":Xt,Wn=Wt.preventActiveStyles,Qn=Wt.size,ht=Wt.style,Wr=Wt.disabled,En=this.state,An=En.focused,oa=En.hovered,Dp=$(D.button,{activeStyle:Wn?ht:hn,customStyle:ht,active:oa||An,size:Qn});return o.a.createElement("button",O({type:"button",style:Dp,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur},{className:Nt},{disabled:Wr}),o.a.createElement("div",{style:D.flex},!E(Nn)&&o.a.createElement("div",{style:{display:"flex",justifyContent:"center",minWidth:Nn}},o.a.createElement(d,{type:en,size:Nn,format:Mn,color:gn})),!E(Nn)&&o.a.createElement("div",{style:D.divider}),o.a.createElement("div",{style:{textAlign:tr,width:"100%"}},mt)))}}])&&b(Te.prototype,We),nn}(i.Component),E=function(Re){return Re==="0"||Re==="0px"||Re===0},$=function(Re,Te){var We=Te.size,ot=Te.customStyle,nn=Te.active,Wt=Te.activeStyle;return h(h(h({},Re),{},{height:We},ot),nn&&Wt)};w.propTypes={activeStyle:s.a.object,align:s.a.oneOf(["left","right","center"]),children:s.a.node,className:s.a.string,icon:s.a.oneOfType([s.a.string,s.a.node,s.a.func]),iconFormat:s.a.func,iconSize:s.a.string,iconColor:s.a.string,onClick:s.a.func,onMouseEnter:s.a.func,onMouseLeave:s.a.func,preventActiveStyles:s.a.bool,size:s.a.string,style:s.a.object,text:s.a.string,disabled:s.a.bool},w.defaultProps={align:"left",iconSize:"26px",preventActiveStyles:!1,size:"50px"};var D={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 R(Re,Te){var We=Object.keys(Re);if(Object.getOwnPropertySymbols){var ot=Object.getOwnPropertySymbols(Re);Te&&(ot=ot.filter(function(nn){return Object.getOwnPropertyDescriptor(Re,nn).enumerable})),We.push.apply(We,ot)}return We}function B(Re){for(var Te=1;Te{window.location.href=`${nze.VITE_API_ADDR}/auth/login/${t}`};return M.jsx(Fge,{children:M.jsx(ho,{alignItems:"center",justifyContent:"center",sx:{height:"100vh"},children:M.jsx(Ra,{sx:{p:5,width:"small",boxShadow:2,maxWidth:"80%"},children:M.jsxs(ho,{gap:4,children:[M.jsxs(xa,{children:[M.jsxs(ho,{direction:"row",gap:1,children:[M.jsx(eze,{}),M.jsx(Gr,{variant:"h6",children:"Login"})]}),M.jsx(Gr,{variant:"body2",color:"text.secondary",maxWidth:320,children:"Real-time markdown editor for interviews, meetings and more..."})]}),M.jsxs(ho,{gap:2,children:[M.jsxs(Ih,{container:!0,spacing:1,alignItems:"center",children:[M.jsx(Ih,{item:!0,xs:!0,children:M.jsx(rc,{sx:{width:1}})}),M.jsx(Ih,{item:!0,xs:"auto",children:M.jsx(Gr,{variant:"body2",color:"text.secondary",children:"Login with"})}),M.jsx(Ih,{item:!0,xs:!0,children:M.jsx(rc,{sx:{width:1}})})]}),rze.map(({SocailLoginComponent:t,provider:n})=>M.jsx(t,{size:"48px",onClick:()=>e(n)},n))]})]})})})})}const oze={accessToken:null},vte=bk({name:"auth",initialState:oze,reducers:{setAccessToken:(e,t)=>{e.accessToken=t.payload}}}),{setAccessToken:i$}=vte.actions,aze=e=>e.auth,sze=vte.reducer;function lze(){const e=hg(),t=gg(),[n]=VSe();return N.useEffect(()=>{const r=n.get("token");if(!r){t("/");return}e(i$(r))},[e,t,n]),M.jsx(xa,{})}function uze(){return M.jsx(ID,{})}const o$=vn.createContext({isLoading:!0,isLoggedIn:!1}),cze={data:null},Ete=bk({name:"user",initialState:cze,reducers:{setUserData:(e,t)=>{e.data=t.payload}}}),{setUserData:wI}=Ete.actions,Ste=e=>e.user,dze=Ete.reducer,fze=e=>{var o;const{children:t}=e,{isLoggedIn:n}=N.useContext(o$),r=mg(),i=wc(Ste);return n?M.jsx(NY,{to:`/workspace/${(o=i.data)==null?void 0:o.lastWorkspaceSlug}`,state:{from:r},replace:!0}):t},pze=e=>{const{children:t}=e,{isLoggedIn:n,isLoading:r}=N.useContext(o$),i=mg();return r?M.jsx(yD,{open:!0,children:M.jsx(dg,{color:"inherit"})}):n?t:M.jsx(NY,{to:"/",state:{from:i},replace:!0})};var a$={},hze=$o;Object.defineProperty(a$,"__esModule",{value:!0});var Tte=a$.default=void 0,mze=hze(Fo()),gze=M;Tte=a$.default=(0,mze.default)((0,gze.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert");var s$={},bze=$o;Object.defineProperty(s$,"__esModule",{value:!0});var wte=s$.default=void 0,yze=bze(Fo()),Oze=M;wte=s$.default=(0,yze.default)((0,Oze.jsx)("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"}),"Logout");function vze(e){const t=hg(),n=()=>{t(i$(null)),t(wI(null))};return M.jsx(TD,{anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"right"},...e,children:M.jsx(N1,{children:M.jsxs(ap,{onClick:n,children:[M.jsx(SD,{children:M.jsx(wte,{fontSize:"small"})}),M.jsx(qf,{children:"Logout"})]})})})}const Eze=e=>["workspaces",e],Sze=()=>["workspaces"],l$=e=>n$({queryKey:Eze(e||""),enabled:!!e,queryFn:async()=>(await cr.get(`/workspaces/${e}`)).data,meta:{errorMessage:"This is a non-existent or unauthorized Workspace."}}),Tze=()=>r$({queryKey:Sze(),queryFn:async({pageParam:t})=>(await cr.get("/workspaces",{params:{cursor:t}})).data,initialPageParam:void 0,getPreviousPageParam:t=>t.cursor??void 0,getNextPageParam:t=>t.cursor??void 0}),wze=()=>Ote({mutationFn:async e=>(await cr.post("/workspaces",e)).data});var u$={},kze=$o;Object.defineProperty(u$,"__esModule",{value:!0});var kte=u$.default=void 0,xze=kze(Fo()),Cze=M;kte=u$.default=(0,xze.default)((0,Cze.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");var c$={},Aze=$o;Object.defineProperty(c$,"__esModule",{value:!0});var xte=c$.default=void 0,_ze=Aze(Fo()),Rze=M;xte=c$.default=(0,_ze.default)((0,Rze.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp");class qy extends N.Component{constructor(t){super(t),this.scrollListener=this.scrollListener.bind(this),this.eventListenerOptions=this.eventListenerOptions.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this)}componentDidMount(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}componentDidUpdate(){if(this.props.isReverse&&this.loadMore){const t=this.getParentElement(this.scrollComponent);t.scrollTop=t.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}componentWillUnmount(){this.detachScrollListener(),this.detachMousewheelListener()}isPassiveSupported(){let t=!1;const n={get passive(){t=!0}};try{document.addEventListener("test",null,n),document.removeEventListener("test",null,n)}catch{}return t}eventListenerOptions(){let t=this.props.useCapture;return this.isPassiveSupported()?t={useCapture:this.props.useCapture,passive:!0}:t={passive:!1},t}setDefaultLoader(t){this.defaultLoader=t}detachMousewheelListener(){let t=window;this.props.useWindow===!1&&(t=this.scrollComponent.parentNode),t.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}detachScrollListener(){let t=window;this.props.useWindow===!1&&(t=this.getParentElement(this.scrollComponent)),t.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}getParentElement(t){const n=this.props.getScrollParent&&this.props.getScrollParent();return n??(t&&t.parentNode)}filterProps(t){return t}attachScrollListener(){const t=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!t)return;let n=window;this.props.useWindow===!1&&(n=t),n.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),n.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),n.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}mousewheelListener(t){t.deltaY===1&&!this.isPassiveSupported()&&t.preventDefault()}scrollListener(){const t=this.scrollComponent,n=window,r=this.getParentElement(t);let i;if(this.props.useWindow){const o=document.documentElement||document.body.parentNode||document.body,a=n.pageYOffset!==void 0?n.pageYOffset:o.scrollTop;this.props.isReverse?i=a:i=this.calculateOffset(t,a)}else this.props.isReverse?i=r.scrollTop:i=t.scrollHeight-r.scrollTop-r.clientHeight;i{this.scrollComponent=b,c&&c(b)};const O=[n];return i&&(s?a?O.unshift(s):O.push(s):this.defaultLoader&&(a?O.unshift(this.defaultLoader):O.push(this.defaultLoader))),vn.createElement(r,y,O)}}Go(qy,"propTypes",{children:W.node.isRequired,element:W.node,hasMore:W.bool,initialLoad:W.bool,isReverse:W.bool,loader:W.node,loadMore:W.func.isRequired,pageStart:W.number,ref:W.func,getScrollParent:W.func,threshold:W.number,useCapture:W.bool,useWindow:W.bool}),Go(qy,"defaultProps",{element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null});var d$={},Ize=$o;Object.defineProperty(d$,"__esModule",{value:!0});var Cte=d$.default=void 0,Nze=Ize(Fo()),Dze=M;Cte=d$.default=(0,Nze.default)((0,Dze.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var mO=e=>e.type==="checkbox",Bh=e=>e instanceof Date,Ko=e=>e==null;const Ate=e=>typeof e=="object";var Mi=e=>!Ko(e)&&!Array.isArray(e)&&Ate(e)&&!Bh(e),_te=e=>Mi(e)&&e.target?mO(e.target)?e.target.checked:e.target.value:e,Pze=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Rte=(e,t)=>e.has(Pze(t)),Lze=e=>{const t=e.constructor&&e.constructor.prototype;return Mi(t)&&t.hasOwnProperty("isPrototypeOf")},f$=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function pa(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(!(f$&&(e instanceof Blob||e instanceof FileList))&&(n||Mi(e)))if(t=n?[]:{},!n&&!Lze(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=pa(e[r]));else return e;return t}var gO=e=>Array.isArray(e)?e.filter(Boolean):[],si=e=>e===void 0,Ut=(e,t,n)=>{if(!t||!Mi(e))return n;const r=gO(t.split(/[,[\].]+?/)).reduce((i,o)=>Ko(i)?i:i[o],e);return si(r)||r===e?si(e[t])?n:e[t]:r},bl=e=>typeof e=="boolean";const jT={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},vl={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Hu={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Ite=vn.createContext(null),p$=()=>vn.useContext(Ite),Nte=e=>{const{children:t,...n}=e;return vn.createElement(Ite.Provider,{value:n},t)};var Dte=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const a=o;return t._proxyFormState[a]!==vl.all&&(t._proxyFormState[a]=!r||vl.all),n&&(n[a]=!0),e[a]}});return i},Rs=e=>Mi(e)&&!Object.keys(e).length,Pte=(e,t,n,r)=>{n(e);const{name:i,...o}=e;return Rs(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(a=>t[a]===(!r||vl.all))},qE=e=>Array.isArray(e)?e:[e],Lte=(e,t,n)=>!e||!t||e===t||qE(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function h$(e){const t=vn.useRef(e);t.current=e,vn.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function Mze(e){const t=p$(),{control:n=t.control,disabled:r,name:i,exact:o}=e||{},[a,s]=vn.useState(n._formState),l=vn.useRef(!0),u=vn.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=vn.useRef(i);return c.current=i,h$({disabled:r,next:d=>l.current&&Lte(c.current,d.name,o)&&Pte(d,u.current,n._updateFormState)&&s({...n._formState,...d}),subject:n._subjects.state}),vn.useEffect(()=>(l.current=!0,u.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),Dte(a,n,u.current,!1)}var yu=e=>typeof e=="string",Mte=(e,t,n,r,i)=>yu(e)?(r&&t.watch.add(e),Ut(n,e,i)):Array.isArray(e)?e.map(o=>(r&&t.watch.add(o),Ut(n,o))):(r&&(t.watchAll=!0),n);function $te(e){const t=p$(),{control:n=t.control,name:r,defaultValue:i,disabled:o,exact:a}=e||{},s=vn.useRef(r);s.current=r,h$({disabled:o,subject:n._subjects.values,next:c=>{Lte(s.current,c.name,a)&&u(pa(Mte(s.current,n._names,c.values||n._formValues,!1,i)))}});const[l,u]=vn.useState(n._getWatch(r,i));return vn.useEffect(()=>n._removeUnmounted()),l}var m$=e=>/^\w*$/.test(e),Fte=e=>gO(e.replace(/["|']|\]/g,"").split(/\.|\[/)),vr=(e,t,n)=>{let r=-1;const i=m$(t)?[t]:Fte(t),o=i.length,a=o-1;for(;++r{const c=i._options.shouldUnregister||o,d=(p,h)=>{const m=Ut(i._fields,p);m&&(m._f.mount=h)};if(d(n,!0),c){const p=pa(Ut(i._options.defaultValues,n));vr(i._defaultValues,n,p),si(Ut(i._formValues,n))&&vr(i._formValues,n,p)}return()=>{(a?c&&!i._state.action:c)?i.unregister(n):d(n,!1)}},[n,i,a,o]),vn.useEffect(()=>{Ut(i._fields,n)&&i._updateDisabledField({disabled:r,fields:i._fields,name:n,value:Ut(i._fields,n)._f.value})},[r,n,i]),{field:{name:n,value:s,...bl(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:vn.useCallback(c=>u.current.onChange({target:{value:_te(c),name:n},type:jT.CHANGE}),[n]),onBlur:vn.useCallback(()=>u.current.onBlur({target:{value:Ut(i._formValues,n),name:n},type:jT.BLUR}),[n,i]),ref:c=>{const d=Ut(i._fields,n);d&&c&&(d._f.ref={focus:()=>c.focus(),select:()=>c.select(),setCustomValidity:p=>c.setCustomValidity(p),reportValidity:()=>c.reportValidity()})}},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ut(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!Ut(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Ut(l.touchedFields,n)},error:{enumerable:!0,get:()=>Ut(l.errors,n)}})}}var $ze=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},Nz=e=>({isOnSubmit:!e||e===vl.onSubmit,isOnBlur:e===vl.onBlur,isOnChange:e===vl.onChange,isOnAll:e===vl.all,isOnTouch:e===vl.onTouched}),Dz=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const $b=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const o=Ut(e,i);if(o){const{_f:a,...s}=o;if(a){if(a.refs&&a.refs[0]&&t(a.refs[0],i)&&!r)break;if(a.ref&&t(a.ref,a.name)&&!r)break;$b(s,t)}else Mi(s)&&$b(s,t)}}};var Fze=(e,t,n)=>{const r=gO(Ut(e,n));return vr(r,"root",t[n]),vr(e,n,r),e},g$=e=>e.type==="file",pd=e=>typeof e=="function",zT=e=>{if(!f$)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},ZE=e=>yu(e),b$=e=>e.type==="radio",VT=e=>e instanceof RegExp;const Pz={value:!1,isValid:!1},Lz={value:!0,isValid:!0};var Bte=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&&!si(e[0].attributes.value)?si(e[0].value)||e[0].value===""?Lz:{value:e[0].value,isValid:!0}:Lz:Pz}return Pz};const Mz={isValid:!1,value:null};var Ute=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Mz):Mz;function $z(e,t,n="validate"){if(ZE(e)||Array.isArray(e)&&e.every(ZE)||bl(e)&&!e)return{type:n,message:ZE(e)?e:"",ref:t}}var rh=e=>Mi(e)&&!VT(e)?e:{value:e,message:""},Fz=async(e,t,n,r,i)=>{const{ref:o,refs:a,required:s,maxLength:l,minLength:u,min:c,max:d,pattern:p,validate:h,name:m,valueAsNumber:y,mount:O,disabled:b}=e._f,v=Ut(t,m);if(!O||b)return{};const S=a?a[0]:o,k=U=>{r&&S.reportValidity&&(S.setCustomValidity(bl(U)?"":U||""),S.reportValidity())},C={},w=b$(o),E=mO(o),$=w||E,D=(y||g$(o))&&si(o.value)&&si(v)||zT(o)&&o.value===""||v===""||Array.isArray(v)&&!v.length,R=$ze.bind(null,m,n,C),B=(U,V,z,Q=Hu.maxLength,X=Hu.minLength)=>{const Z=U?V:z;C[m]={type:U?Q:X,message:Z,ref:o,...R(U?Q:X,Z)}};if(i?!Array.isArray(v)||!v.length:s&&(!$&&(D||Ko(v))||bl(v)&&!v||E&&!Bte(a).isValid||w&&!Ute(a).isValid)){const{value:U,message:V}=ZE(s)?{value:!!s,message:s}:rh(s);if(U&&(C[m]={type:Hu.required,message:V,ref:S,...R(Hu.required,V)},!n))return k(V),C}if(!D&&(!Ko(c)||!Ko(d))){let U,V;const z=rh(d),Q=rh(c);if(!Ko(v)&&!isNaN(v)){const X=o.valueAsNumber||v&&+v;Ko(z.value)||(U=X>z.value),Ko(Q.value)||(V=Xnew Date(new Date().toDateString()+" "+j),Y=o.type=="time",q=o.type=="week";yu(z.value)&&v&&(U=Y?Z(v)>Z(z.value):q?v>z.value:X>new Date(z.value)),yu(Q.value)&&v&&(V=Y?Z(v)+U.value,Q=!Ko(V.value)&&v.length<+V.value;if((z||Q)&&(B(z,U.message,V.message),!n))return k(C[m].message),C}if(p&&!D&&yu(v)){const{value:U,message:V}=rh(p);if(VT(U)&&!v.match(U)&&(C[m]={type:Hu.pattern,message:V,ref:o,...R(Hu.pattern,V)},!n))return k(V),C}if(h){if(pd(h)){const U=await h(v,t),V=$z(U,S);if(V&&(C[m]={...V,...R(Hu.validate,V.message)},!n))return k(V.message),C}else if(Mi(h)){let U={};for(const V in h){if(!Rs(U)&&!n)break;const z=$z(await h[V](v,t),S,V);z&&(U={...z,...R(V,z.message)},k(z.message),n&&(C[m]=U))}if(!Rs(U)&&(C[m]={ref:S,...U},!n))return C}}return k(!0),C};function Bze(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{let e=[];return{get observers(){return e},next:i=>{for(const o of e)o.next&&o.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(o=>o!==i)}}),unsubscribe:()=>{e=[]}}},HT=e=>Ko(e)||!Ate(e);function Lf(e,t){if(HT(e)||HT(t))return e===t;if(Bh(e)&&Bh(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const o=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const a=t[i];if(Bh(o)&&Bh(a)||Mi(o)&&Mi(a)||Array.isArray(o)&&Array.isArray(a)?!Lf(o,a):o!==a)return!1}}return!0}var jte=e=>e.type==="select-multiple",jze=e=>b$(e)||mO(e),e2=e=>zT(e)&&e.isConnected,zte=e=>{for(const t in e)if(pd(e[t]))return!0;return!1};function WT(e,t={}){const n=Array.isArray(e);if(Mi(e)||n)for(const r in e)Array.isArray(e[r])||Mi(e[r])&&!zte(e[r])?(t[r]=Array.isArray(e[r])?[]:{},WT(e[r],t[r])):Ko(e[r])||(t[r]=!0);return t}function Vte(e,t,n){const r=Array.isArray(e);if(Mi(e)||r)for(const i in e)Array.isArray(e[i])||Mi(e[i])&&!zte(e[i])?si(t)||HT(n[i])?n[i]=Array.isArray(e[i])?WT(e[i],[]):{...WT(e[i])}:Vte(e[i],Ko(t)?{}:t[i],n[i]):n[i]=!Lf(e[i],t[i]);return n}var t2=(e,t)=>Vte(e,t,WT(t)),Hte=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>si(e)?e:t?e===""?NaN:e&&+e:n&&yu(e)?new Date(e):r?r(e):e;function n2(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return g$(t)?t.files:b$(t)?Ute(e.refs).value:jte(t)?[...t.selectedOptions].map(({value:n})=>n):mO(t)?Bte(e.refs).value:Hte(si(t.value)?e.ref.value:t.value,e)}var zze=(e,t,n,r)=>{const i={};for(const o of e){const a=Ut(t,o);a&&vr(i,o,a._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},R0=e=>si(e)?e:VT(e)?e.source:Mi(e)?VT(e.value)?e.value.source:e.value:e,Vze=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Bz(e,t,n){const r=Ut(e,n);if(r||m$(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const o=i.join("."),a=Ut(t,o),s=Ut(e,o);if(a&&!Array.isArray(a)&&n!==o)return{name:n};if(s&&s.type)return{name:o,error:s};i.pop()}return{name:n}}var Hze=(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,Wze=(e,t)=>!gO(Ut(e,t)).length&&io(e,t);const Qze={mode:vl.onSubmit,reValidateMode:vl.onChange,shouldFocusError:!0};function Yze(e={},t){let n={...Qze,...e},r={submitCount:0,isDirty:!1,isLoading:pd(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:n.errors||{},disabled:n.disabled||!1},i={},o=Mi(n.defaultValues)||Mi(n.values)?pa(n.defaultValues||n.values)||{}:{},a=n.shouldUnregister?{}:pa(o),s={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u,c=0;const d={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={values:JA(),array:JA(),state:JA()},h=Nz(n.mode),m=Nz(n.reValidateMode),y=n.criteriaMode===vl.all,O=re=>ee=>{clearTimeout(c),c=setTimeout(re,ee)},b=async re=>{if(d.isValid||re){const ee=n.resolver?Rs((await D()).errors):await B(i,!0);ee!==r.isValid&&p.state.next({isValid:ee})}},v=re=>d.isValidating&&p.state.next({isValidating:re}),S=(re,ee=[],J,_e,Pe=!0,Ie=!0)=>{if(_e&&J){if(s.action=!0,Ie&&Array.isArray(Ut(i,re))){const ie=J(Ut(i,re),_e.argA,_e.argB);Pe&&vr(i,re,ie)}if(Ie&&Array.isArray(Ut(r.errors,re))){const ie=J(Ut(r.errors,re),_e.argA,_e.argB);Pe&&vr(r.errors,re,ie),Wze(r.errors,re)}if(d.touchedFields&&Ie&&Array.isArray(Ut(r.touchedFields,re))){const ie=J(Ut(r.touchedFields,re),_e.argA,_e.argB);Pe&&vr(r.touchedFields,re,ie)}d.dirtyFields&&(r.dirtyFields=t2(o,a)),p.state.next({name:re,isDirty:V(re,ee),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else vr(a,re,ee)},k=(re,ee)=>{vr(r.errors,re,ee),p.state.next({errors:r.errors})},C=re=>{r.errors=re,p.state.next({errors:r.errors,isValid:!1})},w=(re,ee,J,_e)=>{const Pe=Ut(i,re);if(Pe){const Ie=Ut(a,re,si(J)?Ut(o,re):J);si(Ie)||_e&&_e.defaultChecked||ee?vr(a,re,ee?Ie:n2(Pe._f)):X(re,Ie),s.mount&&b()}},E=(re,ee,J,_e,Pe)=>{let Ie=!1,ie=!1;const de={name:re},ce=!!(Ut(i,re)&&Ut(i,re)._f.disabled);if(!J||_e){d.isDirty&&(ie=r.isDirty,r.isDirty=de.isDirty=V(),Ie=ie!==de.isDirty);const Oe=ce||Lf(Ut(o,re),ee);ie=!!(!ce&&Ut(r.dirtyFields,re)),Oe||ce?io(r.dirtyFields,re):vr(r.dirtyFields,re,!0),de.dirtyFields=r.dirtyFields,Ie=Ie||d.dirtyFields&&ie!==!Oe}if(J){const Oe=Ut(r.touchedFields,re);Oe||(vr(r.touchedFields,re,J),de.touchedFields=r.touchedFields,Ie=Ie||d.touchedFields&&Oe!==J)}return Ie&&Pe&&p.state.next(de),Ie?de:{}},$=(re,ee,J,_e)=>{const Pe=Ut(r.errors,re),Ie=d.isValid&&bl(ee)&&r.isValid!==ee;if(e.delayError&&J?(u=O(()=>k(re,J)),u(e.delayError)):(clearTimeout(c),u=null,J?vr(r.errors,re,J):io(r.errors,re)),(J?!Lf(Pe,J):Pe)||!Rs(_e)||Ie){const ie={..._e,...Ie&&bl(ee)?{isValid:ee}:{},errors:r.errors,name:re};r={...r,...ie},p.state.next(ie)}v(!1)},D=async re=>n.resolver(a,n.context,zze(re||l.mount,i,n.criteriaMode,n.shouldUseNativeValidation)),R=async re=>{const{errors:ee}=await D(re);if(re)for(const J of re){const _e=Ut(ee,J);_e?vr(r.errors,J,_e):io(r.errors,J)}else r.errors=ee;return ee},B=async(re,ee,J={valid:!0})=>{for(const _e in re){const Pe=re[_e];if(Pe){const{_f:Ie,...ie}=Pe;if(Ie){const de=l.array.has(Ie.name),ce=await Fz(Pe,a,y,n.shouldUseNativeValidation&&!ee,de);if(ce[Ie.name]&&(J.valid=!1,ee))break;!ee&&(Ut(ce,Ie.name)?de?Fze(r.errors,ce,Ie.name):vr(r.errors,Ie.name,ce[Ie.name]):io(r.errors,Ie.name))}ie&&await B(ie,ee,J)}}return J.valid},U=()=>{for(const re of l.unMount){const ee=Ut(i,re);ee&&(ee._f.refs?ee._f.refs.every(J=>!e2(J)):!e2(ee._f.ref))&&Ne(re)}l.unMount=new Set},V=(re,ee)=>(re&&ee&&vr(a,re,ee),!Lf(Ee(),o)),z=(re,ee,J)=>Mte(re,l,{...s.mount?a:si(ee)?o:yu(re)?{[re]:ee}:ee},J,ee),Q=re=>gO(Ut(s.mount?a:o,re,e.shouldUnregister?Ut(o,re,[]):[])),X=(re,ee,J={})=>{const _e=Ut(i,re);let Pe=ee;if(_e){const Ie=_e._f;Ie&&(!Ie.disabled&&vr(a,re,Hte(ee,Ie)),Pe=zT(Ie.ref)&&Ko(ee)?"":ee,jte(Ie.ref)?[...Ie.ref.options].forEach(ie=>ie.selected=Pe.includes(ie.value)):Ie.refs?mO(Ie.ref)?Ie.refs.length>1?Ie.refs.forEach(ie=>(!ie.defaultChecked||!ie.disabled)&&(ie.checked=Array.isArray(Pe)?!!Pe.find(de=>de===ie.value):Pe===ie.value)):Ie.refs[0]&&(Ie.refs[0].checked=!!Pe):Ie.refs.forEach(ie=>ie.checked=ie.value===Pe):g$(Ie.ref)?Ie.ref.value="":(Ie.ref.value=Pe,Ie.ref.type||p.values.next({name:re,values:{...a}})))}(J.shouldDirty||J.shouldTouch)&&E(re,Pe,J.shouldTouch,J.shouldDirty,!0),J.shouldValidate&&le(re)},Z=(re,ee,J)=>{for(const _e in ee){const Pe=ee[_e],Ie=`${re}.${_e}`,ie=Ut(i,Ie);(l.array.has(re)||!HT(Pe)||ie&&!ie._f)&&!Bh(Pe)?Z(Ie,Pe,J):X(Ie,Pe,J)}},Y=(re,ee,J={})=>{const _e=Ut(i,re),Pe=l.array.has(re),Ie=pa(ee);vr(a,re,Ie),Pe?(p.array.next({name:re,values:{...a}}),(d.isDirty||d.dirtyFields)&&J.shouldDirty&&p.state.next({name:re,dirtyFields:t2(o,a),isDirty:V(re,Ie)})):_e&&!_e._f&&!Ko(Ie)?Z(re,Ie,J):X(re,Ie,J),Dz(re,l)&&p.state.next({...r}),p.values.next({name:re,values:{...a}}),!s.mount&&t()},q=async re=>{const ee=re.target;let J=ee.name,_e=!0;const Pe=Ut(i,J),Ie=()=>ee.type?n2(Pe._f):_te(re),ie=de=>{_e=Number.isNaN(de)||de===Ut(a,J,de)};if(Pe){let de,ce;const Oe=Ie(),Se=re.type===jT.BLUR||re.type===jT.FOCUS_OUT,nt=!Vze(Pe._f)&&!n.resolver&&!Ut(r.errors,J)&&!Pe._f.deps||Hze(Se,Ut(r.touchedFields,J),r.isSubmitted,m,h),pt=Dz(J,l,Se);vr(a,J,Oe),Se?(Pe._f.onBlur&&Pe._f.onBlur(re),u&&u(0)):Pe._f.onChange&&Pe._f.onChange(re);const kt=E(J,Oe,Se,!1),Ke=!Rs(kt)||pt;if(!Se&&p.values.next({name:J,type:re.type,values:{...a}}),nt)return d.isValid&&b(),Ke&&p.state.next({name:J,...pt?{}:kt});if(!Se&&pt&&p.state.next({...r}),v(!0),n.resolver){const{errors:vt}=await D([J]);if(ie(Oe),_e){const Ye=Bz(r.errors,i,J),it=Bz(vt,i,Ye.name||J);de=it.error,J=it.name,ce=Rs(vt)}}else de=(await Fz(Pe,a,y,n.shouldUseNativeValidation))[J],ie(Oe),_e&&(de?ce=!1:d.isValid&&(ce=await B(i,!0)));_e&&(Pe._f.deps&&le(Pe._f.deps),$(J,ce,de,kt))}},j=(re,ee)=>{if(Ut(r.errors,ee)&&re.focus)return re.focus(),1},le=async(re,ee={})=>{let J,_e;const Pe=qE(re);if(v(!0),n.resolver){const Ie=await R(si(re)?re:Pe);J=Rs(Ie),_e=re?!Pe.some(ie=>Ut(Ie,ie)):J}else re?(_e=(await Promise.all(Pe.map(async Ie=>{const ie=Ut(i,Ie);return await B(ie&&ie._f?{[Ie]:ie}:ie)}))).every(Boolean),!(!_e&&!r.isValid)&&b()):_e=J=await B(i);return p.state.next({...!yu(re)||d.isValid&&J!==r.isValid?{}:{name:re},...n.resolver||!re?{isValid:J}:{},errors:r.errors,isValidating:!1}),ee.shouldFocus&&!_e&&$b(i,j,re?Pe:l.mount),_e},Ee=re=>{const ee={...o,...s.mount?a:{}};return si(re)?ee:yu(re)?Ut(ee,re):re.map(J=>Ut(ee,J))},G=(re,ee)=>({invalid:!!Ut((ee||r).errors,re),isDirty:!!Ut((ee||r).dirtyFields,re),isTouched:!!Ut((ee||r).touchedFields,re),error:Ut((ee||r).errors,re)}),ue=re=>{re&&qE(re).forEach(ee=>io(r.errors,ee)),p.state.next({errors:re?r.errors:{}})},ge=(re,ee,J)=>{const _e=(Ut(i,re,{_f:{}})._f||{}).ref;vr(r.errors,re,{...ee,ref:_e}),p.state.next({name:re,errors:r.errors,isValid:!1}),J&&J.shouldFocus&&_e&&_e.focus&&_e.focus()},he=(re,ee)=>pd(re)?p.values.subscribe({next:J=>re(z(void 0,ee),J)}):z(re,ee,!0),Ne=(re,ee={})=>{for(const J of re?qE(re):l.mount)l.mount.delete(J),l.array.delete(J),ee.keepValue||(io(i,J),io(a,J)),!ee.keepError&&io(r.errors,J),!ee.keepDirty&&io(r.dirtyFields,J),!ee.keepTouched&&io(r.touchedFields,J),!n.shouldUnregister&&!ee.keepDefaultValue&&io(o,J);p.values.next({values:{...a}}),p.state.next({...r,...ee.keepDirty?{isDirty:V()}:{}}),!ee.keepIsValid&&b()},Le=({disabled:re,name:ee,field:J,fields:_e,value:Pe})=>{if(bl(re)){const Ie=re?void 0:si(Pe)?n2(J?J._f:Ut(_e,ee)._f):Pe;vr(a,ee,Ie),E(ee,Ie,!1,!1,!0)}},qe=(re,ee={})=>{let J=Ut(i,re);const _e=bl(ee.disabled);return vr(i,re,{...J||{},_f:{...J&&J._f?J._f:{ref:{name:re}},name:re,mount:!0,...ee}}),l.mount.add(re),J?Le({field:J,disabled:ee.disabled,name:re,value:ee.value}):w(re,!0,ee.value),{..._e?{disabled:ee.disabled}:{},...n.progressive?{required:!!ee.required,min:R0(ee.min),max:R0(ee.max),minLength:R0(ee.minLength),maxLength:R0(ee.maxLength),pattern:R0(ee.pattern)}:{},name:re,onChange:q,onBlur:q,ref:Pe=>{if(Pe){qe(re,ee),J=Ut(i,re);const Ie=si(Pe.value)&&Pe.querySelectorAll&&Pe.querySelectorAll("input,select,textarea")[0]||Pe,ie=jze(Ie),de=J._f.refs||[];if(ie?de.find(ce=>ce===Ie):Ie===J._f.ref)return;vr(i,re,{_f:{...J._f,...ie?{refs:[...de.filter(e2),Ie,...Array.isArray(Ut(o,re))?[{}]:[]],ref:{type:Ie.type,name:re}}:{ref:Ie}}}),w(re,!1,void 0,Ie)}else J=Ut(i,re,{}),J._f&&(J._f.mount=!1),(n.shouldUnregister||ee.shouldUnregister)&&!(Rte(l.array,re)&&s.action)&&l.unMount.add(re)}}},rt=()=>n.shouldFocusError&&$b(i,j,l.mount),Me=re=>{bl(re)&&(p.state.next({disabled:re}),$b(i,(ee,J)=>{let _e=re;const Pe=Ut(i,J);Pe&&bl(Pe._f.disabled)&&(_e||(_e=Pe._f.disabled)),ee.disabled=_e},0,!1))},Qe=(re,ee)=>async J=>{J&&(J.preventDefault&&J.preventDefault(),J.persist&&J.persist());let _e=pa(a);if(p.state.next({isSubmitting:!0}),n.resolver){const{errors:Pe,values:Ie}=await D();r.errors=Pe,_e=Ie}else await B(i);io(r.errors,"root"),Rs(r.errors)?(p.state.next({errors:{}}),await re(_e,J)):(ee&&await ee({...r.errors},J),rt(),setTimeout(rt)),p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Rs(r.errors),submitCount:r.submitCount+1,errors:r.errors})},ye=(re,ee={})=>{Ut(i,re)&&(si(ee.defaultValue)?Y(re,pa(Ut(o,re))):(Y(re,ee.defaultValue),vr(o,re,pa(ee.defaultValue))),ee.keepTouched||io(r.touchedFields,re),ee.keepDirty||(io(r.dirtyFields,re),r.isDirty=ee.defaultValue?V(re,pa(Ut(o,re))):V()),ee.keepError||(io(r.errors,re),d.isValid&&b()),p.state.next({...r}))},ze=(re,ee={})=>{const J=re?pa(re):o,_e=pa(J),Pe=re&&!Rs(re)?_e:o;if(ee.keepDefaultValues||(o=J),!ee.keepValues){if(ee.keepDirtyValues)for(const Ie of l.mount)Ut(r.dirtyFields,Ie)?vr(Pe,Ie,Ut(a,Ie)):Y(Ie,Ut(Pe,Ie));else{if(f$&&si(re))for(const Ie of l.mount){const ie=Ut(i,Ie);if(ie&&ie._f){const de=Array.isArray(ie._f.refs)?ie._f.refs[0]:ie._f.ref;if(zT(de)){const ce=de.closest("form");if(ce){ce.reset();break}}}}i={}}a=e.shouldUnregister?ee.keepDefaultValues?pa(o):{}:pa(Pe),p.array.next({values:{...Pe}}),p.values.next({values:{...Pe}})}l={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!s.mount&&t(),s.mount=!d.isValid||!!ee.keepIsValid,s.watch=!!e.shouldUnregister,p.state.next({submitCount:ee.keepSubmitCount?r.submitCount:0,isDirty:ee.keepDirty?r.isDirty:!!(ee.keepDefaultValues&&!Lf(re,o)),isSubmitted:ee.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:ee.keepDirtyValues?r.dirtyFields:ee.keepDefaultValues&&re?t2(o,re):{},touchedFields:ee.keepTouched?r.touchedFields:{},errors:ee.keepErrors?r.errors:{},isSubmitSuccessful:ee.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},$e=(re,ee)=>ze(pd(re)?re(a):re,ee);return{control:{register:qe,unregister:Ne,getFieldState:G,handleSubmit:Qe,setError:ge,_executeSchema:D,_getWatch:z,_getDirty:V,_updateValid:b,_removeUnmounted:U,_updateFieldArray:S,_updateDisabledField:Le,_getFieldArray:Q,_reset:ze,_resetDefaultValues:()=>pd(n.defaultValues)&&n.defaultValues().then(re=>{$e(re,n.resetOptions),p.state.next({isLoading:!1})}),_updateFormState:re=>{r={...r,...re}},_disableForm:Me,_subjects:p,_proxyFormState:d,_setErrors:C,get _fields(){return i},get _formValues(){return a},get _state(){return s},set _state(re){s=re},get _defaultValues(){return o},get _names(){return l},set _names(re){l=re},get _formState(){return r},set _formState(re){r=re},get _options(){return n},set _options(re){n={...n,...re}}},trigger:le,register:qe,handleSubmit:Qe,watch:he,setValue:Y,getValues:Ee,reset:$e,resetField:ye,clearErrors:ue,unregister:Ne,setError:ge,setFocus:(re,ee={})=>{const J=Ut(i,re),_e=J&&J._f;if(_e){const Pe=_e.refs?_e.refs[0]:_e.ref;Pe.focus&&(Pe.focus(),ee.shouldSelect&&Pe.select())}},getFieldState:G}}function Gze(e={}){const t=vn.useRef(),n=vn.useRef(),[r,i]=vn.useState({isDirty:!1,isValidating:!1,isLoading:pd(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:pd(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Yze(e,()=>i(a=>({...a}))),formState:r});const o=t.current.control;return o._options=e,h$({subject:o._subjects.state,next:a=>{Pte(a,o._proxyFormState,o._updateFormState,!0)&&i({...o._formState})}}),vn.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),vn.useEffect(()=>{if(o._proxyFormState.isDirty){const a=o._getDirty();a!==r.isDirty&&o._subjects.state.next({isDirty:a})}},[o,r.isDirty]),vn.useEffect(()=>{e.values&&!Lf(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values,i(a=>({...a}))):o._resetDefaultValues()},[e.values,o]),vn.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),vn.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),t.current.formState=Dte(r,o),t.current}const du=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),y$=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const i=n??r;let o;if(e!=null)o=e;else if(i.includes(t))o=t;else if(i.length>0)o=i[0];else throw new Error("MUI: The `views` prop must contain at least one view");return{views:i,openTo:o}},Fb=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:i,isDateDisabled:o,utils:a,timezone:s})=>{const l=a.startOfDay(a.dateWithTimezone(void 0,s));n&&a.isBefore(i,l)&&(i=l),t&&a.isAfter(r,l)&&(r=l);let u=e,c=e;for(a.isBefore(e,i)&&(u=i,c=null),a.isAfter(e,r)&&(c&&(c=r),u=null);u||c;){if(u&&a.isAfter(u,r)&&(u=null),c&&a.isBefore(c,i)&&(c=null),u){if(!o(u))return u;u=a.addDays(u,1)}if(c){if(!o(c))return c;c=a.addDays(c,-1)}}return null},qze=(e,t)=>t==null||!e.isValid(t)?null:t,Mo=(e,t,n)=>t==null||!e.isValid(t)?n:t,Zze=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),O$=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const i=r[r.length-1];r.push(e.addMonths(i,1))}return r},kI=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r},v$=(e,t,n)=>n==="date"?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),Sl=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},Xze=["year","month","day"],om=e=>Xze.includes(e),Zy=(e,{format:t,views:n},r)=>{if(t!=null)return t;const i=e.formats;return du(n,["year"])?i.year:du(n,["month"])?i.month:du(n,["day"])?i.dayOfMonth:du(n,["month","year"])?`${i.month} ${i.year}`:du(n,["day","month"])?`${i.month} ${i.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?i.normalDateWithWeekday:i.normalDate:i.keyboardDate},Kze=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},Wte=["hours","minutes","seconds"],tg=e=>Wte.includes(e),Hc=e=>Wte.includes(e)||e==="meridiem",Jze=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,Xy=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,eVe=(e,t,n,r)=>{const i=Xy(r.getHours(e),t,n);return r.setHours(e,i)},Uz=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),bO=(e,t)=>(n,r)=>e?t.isAfter(n,r):Uz(n,t)>Uz(r,t),QT=(e,{format:t,views:n,ampm:r})=>{if(t!=null)return t;const i=e.formats;return du(n,["hours"])?r?`${i.hours12h} ${i.meridiem}`:i.hours24h:du(n,["minutes"])?i.minutes:du(n,["seconds"])?i.seconds:du(n,["minutes","seconds"])?`${i.minutes}:${i.seconds}`:du(n,["hours","minutes","seconds"])?r?`${i.hours12h}:${i.minutes}:${i.seconds} ${i.meridiem}`:`${i.hours24h}:${i.minutes}:${i.seconds}`:r?`${i.hours12h}:${i.minutes} ${i.meridiem}`:`${i.hours24h}:${i.minutes}`},yl={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},tVe=e=>Math.max(...e.map(t=>{var n;return(n=yl[t.type])!=null?n:1})),I0=(e,t,n)=>{if(t===yl.year)return e.startOfYear(n);if(t===yl.month)return e.startOfMonth(n);if(t===yl.day)return e.startOfDay(n);let r=n;return t{var o;let a=i?i():I0(t,n,v$(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,a)&&(a=I0(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,a)&&(a=I0(t,n,e.maxDate));const s=bO((o=e.disableIgnoringDatePartForTimeValidation)!=null?o:!1,t);return e.minTime!=null&&s(e.minTime,a)&&(a=I0(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:kI(t,a,e.minTime))),e.maxTime!=null&&s(a,e.maxTime)&&(a=I0(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:kI(t,a,e.maxTime))),a},Qte=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(` -`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},rVe=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},hx=(e,t,n)=>{const r=[],i=e.dateWithTimezone(void 0,t),o=e.startOfWeek(i),a=e.endOfWeek(i);let s=o;for(;e.isBefore(s,a);)r.push(s),s=e.addDays(s,1);return r.map(l=>e.formatByString(l,n))},Yte=(e,t,n,r)=>{switch(n){case"month":return O$(e,e.dateWithTimezone(void 0,t)).map(i=>e.formatByString(i,r));case"weekDay":return hx(e,t,r);case"meridiem":{const i=e.dateWithTimezone(void 0,t);return[e.startOfDay(i),e.endOfDay(i)].map(o=>e.formatByString(o,r))}default:return[]}},Gte=(e,t,n)=>{let r=t;for(r=Number(r).toString();r.length{if(i.type==="day"&&i.contentType==="digit-with-letter"){const a=e.setDate(r.longestMonth,n);return e.formatByString(a,i.format)}const o=n.toString();return i.hasLeadingZerosInInput?Gte(e,o,i.maxLength):o},iVe=(e,t,n,r,i,o,a)=>{const s=rVe(r),l=r==="Home",u=r==="End",c=n.value===""||l||u,d=()=>{const h=i[n.type]({currentDate:o,format:n.format,contentType:n.contentType}),m=v=>qte(e,t,v,h,n),y=n.type==="minutes"&&a!=null&&a.minutesStep?a.minutesStep:1;let b=parseInt(n.value,10)+s*y;if(c){if(n.type==="year"&&!u&&!l)return e.formatByString(e.dateWithTimezone(void 0,t),n.format);s>0||l?b=h.minimum:b=h.maximum}return b%y!==0&&((s<0||l)&&(b+=y-(y+b)%y),(s>0||u)&&(b-=b%y)),b>h.maximum?m(h.minimum+(b-h.maximum-1)%(h.maximum-h.minimum+1)):b{const h=Yte(e,t,n.type,n.format);if(h.length===0)return n.value;if(c)return s>0||l?h[0]:h[h.length-1];const y=(h.indexOf(n.value)+h.length+s)%h.length;return h[y]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?d():p()},E$=(e,t)=>{let n=e.value||e.placeholder;const r=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(n=Number(n).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!r&&n.length===1&&(n=`${n}‎`),t==="input-rtl"&&(n=`⁨${n}⁩`),n},Uh=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),Zte=(e,t)=>{let n=0,r=t?1:0;const i=[];for(let o=0;o{switch(r.type){case"year":return n.fieldYearPlaceholder({digitAmount:e.formatByString(e.dateWithTimezone(void 0,t),i).length,format:i});case"month":return n.fieldMonthPlaceholder({contentType:r.contentType,format:i});case"day":return n.fieldDayPlaceholder({format:i});case"weekDay":return n.fieldWeekDayPlaceholder({contentType:r.contentType,format:i});case"hours":return n.fieldHoursPlaceholder({format:i});case"minutes":return n.fieldMinutesPlaceholder({format:i});case"seconds":return n.fieldSecondsPlaceholder({format:i});case"meridiem":return n.fieldMeridiemPlaceholder({format:i});default:return i}},jz=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),Xte=(e,t,n)=>e.formatByString(e.dateWithTimezone(void 0,t),n).length===4,Kte=(e,t,n,r,i)=>{if(n!=="digit")return!1;const o=e.dateWithTimezone(void 0,t);switch(r){case"year":return Xte(e,t,i)?e.formatByString(e.setYear(o,1),i)==="0001":e.formatByString(e.setYear(o,2001),i)==="01";case"month":return e.formatByString(e.startOfYear(o),i).length>1;case"day":return e.formatByString(e.startOfMonth(o),i).length>1;case"weekDay":return e.formatByString(e.startOfWeek(o),i).length>1;case"hours":return e.formatByString(e.setHours(o,1),i).length>1;case"minutes":return e.formatByString(e.setMinutes(o,1),i).length>1;case"seconds":return e.formatByString(e.setSeconds(o,1),i).length>1;default:throw new Error("Invalid section type")}},aVe=(e,t)=>{const n=[],{start:r,end:i}=e.escapedCharacters,o=new RegExp(`(\\${r}[^\\${i}]*\\${i})+`,"g");let a=null;for(;a=o.exec(t);)n.push({start:a.index,end:o.lastIndex-1});return n},zz=(e,t,n,r,i,o,a,s)=>{let l="";const u=[],c=e.date(),d=S=>{if(S==="")return null;const k=Qte(e,S),C=Kte(e,t,k.contentType,k.type,S),w=a?C:k.contentType==="digit",E=i!=null&&e.isValid(i);let $=E?e.formatByString(i,S):"",D=null;if(w)if(C)D=$===""?e.formatByString(c,S).length:$.length;else{if(k.maxLength==null)throw new Error(`MUI: The token ${S} should have a 'maxDigitNumber' property on it's adapter`);D=k.maxLength,E&&($=Gte(e,$,D))}return u.push(L({},k,{format:S,maxLength:D,value:$,placeholder:oVe(e,t,n,k,S),hasLeadingZeros:C,hasLeadingZerosInFormat:C,hasLeadingZerosInInput:w,startSeparator:u.length===0?l:"",endSeparator:"",modified:!1})),null};let p=10,h=r,m=e.expandFormat(r);for(;m!==h;)if(h=m,m=e.expandFormat(h),p-=1,p<0)throw new Error("MUI: The format expansion seems to be enter in an infinite loop. Please open an issue with the format passed to the picker component");const y=m,O=aVe(e,y),b=new RegExp(`^(${Object.keys(e.formatTokenMap).sort((S,k)=>k.length-S.length).join("|")})`,"g");let v="";for(let S=0;SD.start<=S&&D.end>=S),C=y[S],w=k!=null,E=`${v}${y.slice(S)}`,$=b.test(E);!w&&C.match(/([A-Za-z]+)/)&&$?(v=E.slice(0,b.lastIndex),S+=b.lastIndex-1):w&&(k==null?void 0:k.start)===S||(k==null?void 0:k.end)===S||(d(v),v="",u.length===0?l+=C:u[u.length-1].endSeparator+=C)}return d(v),u.map(S=>{const k=C=>{let w=C;return s&&w!==null&&w.includes(" ")&&(w=`⁩${w}⁦`),o==="spacious"&&["/",".","-"].includes(w)&&(w=` ${w} `),w};return S.startSeparator=k(S.startSeparator),S.endSeparator=k(S.endSeparator),S})},sVe=(e,t)=>{const n=t.some(s=>s.type==="day"),r=[],i=[];for(let s=0;s{const r=e.map(i=>{const o=E$(i,t?"input-rtl":"input-ltr");return`${i.startSeparator}${o}${i.endSeparator}`}).join("");return t?`⁦${r}⁩`:r},uVe=(e,t)=>{const n=e.dateWithTimezone(void 0,t),r=e.endOfYear(n),i=e.endOfDay(n),{maxDaysInMonth:o,longestMonth:a}=O$(e,n).reduce((s,l)=>{const u=e.getDaysInMonth(l);return u>s.maxDaysInMonth?{maxDaysInMonth:u,longestMonth:l}:s},{maxDaysInMonth:0,longestMonth:null});return{year:({format:s})=>({minimum:0,maximum:Xte(e,t,s)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:s})=>({minimum:1,maximum:s!=null&&e.isValid(s)?e.getDaysInMonth(s):o,longestMonth:a}),weekDay:({format:s,contentType:l})=>{if(l==="digit"){const u=hx(e,t,s).map(Number);return{minimum:Math.min(...u),maximum:Math.max(...u)}}return{minimum:1,maximum:7}},hours:({format:s})=>{const l=e.getHours(i);return e.formatByString(e.endOfDay(n),s)!==l.toString()?{minimum:1,maximum:Number(e.formatByString(e.startOfDay(n),s))}:{minimum:0,maximum:l}},minutes:()=>({minimum:0,maximum:e.getMinutes(i)}),seconds:()=>({minimum:0,maximum:e.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:0})}},cVe=(e,t,n,r,i)=>{switch(n.type){case"year":return e.setYear(i,e.getYear(r));case"month":return e.setMonth(i,e.getMonth(r));case"weekDay":{const o=hx(e,t,n.format),a=e.formatByString(r,n.format),s=o.indexOf(a),u=o.indexOf(n.value)-s;return e.addDays(r,u)}case"day":return e.setDate(i,e.getDate(r));case"meridiem":{const o=e.getHours(r)<12,a=e.getHours(i);return o&&a>=12?e.addHours(i,-12):!o&&a<12?e.addHours(i,12):i}case"hours":return e.setHours(i,e.getHours(r));case"minutes":return e.setMinutes(i,e.getMinutes(r));case"seconds":return e.setSeconds(i,e.getSeconds(r));default:return i}},Vz={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},Hz=(e,t,n,r,i,o)=>[...r].sort((a,s)=>Vz[a.type]-Vz[s.type]).reduce((a,s)=>!o||s.modified?cVe(e,t,s,n,a):a,i),dVe=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,fVe=(e,t)=>{const n={};if(!t)return e.forEach((l,u)=>{const c=u===0?null:u-1,d=u===e.length-1?null:u+1;n[u]={leftIndex:c,rightIndex:d}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},i={};let o=0,a=0,s=e.length-1;for(;s>=0;){a=e.findIndex((l,u)=>{var c;return u>=o&&((c=l.endSeparator)==null?void 0:c.includes(" "))&&l.endSeparator!==" / "}),a===-1&&(a=e.length-1);for(let l=a;l>=o;l-=1)i[l]=s,r[s]=l,s-=1;o=a+1}return e.forEach((l,u)=>{const c=i[u],d=c===0?null:r[c-1],p=c===e.length-1?null:r[c+1];n[u]={leftIndex:d,rightIndex:p}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},pVe=["value","referenceDate"],$i={emptyValue:null,getTodayValue:v$,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=Ge(e,pVe);return t!=null&&r.utils.isValid(t)?t:n??nVe(r)},cleanValue:qze,areValuesEqual:Zze,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},S$={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r,i)=>!e.isValid(t)&&!!n?n:Zte(i(t),r),getValueStrFromSections:lVe,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},hVe=["localeText"],xI=N.createContext(null),Jte=function(t){var n;const{localeText:r}=t,i=Ge(t,hVe),{utils:o,localeText:a}=(n=N.useContext(xI))!=null?n:{utils:void 0,localeText:void 0},s=gt({props:i,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:u,dateFormats:c,dateLibInstance:d,adapterLocale:p,localeText:h}=s,m=N.useMemo(()=>L({},h,a,r),[h,a,r]),y=N.useMemo(()=>{if(!u)return o||null;const v=new u({locale:p,formats:c,instance:d});if(!v.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(` -`));return v},[u,p,c,d,o]),O=N.useMemo(()=>y?{minDate:y.date("1900-01-01T00:00:00.000"),maxDate:y.date("2099-12-31T00:00:00.000")}:null,[y]),b=N.useMemo(()=>({utils:y,defaultDates:O,localeText:m}),[O,y,m]);return M.jsx(xI.Provider,{value:b,children:l})},mVe=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:L({},e)}}}}),ene={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose date, selected date is ${t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose time, selected time is ${t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear value",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa"},gVe=ene;mVe(ene);const Ul=()=>{const e=N.useContext(xI);if(e===null)throw new Error(["MUI: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(` +|(?![\\s\\S])))+`,"m"),alias:o,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(r)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:n})})(e)}fx.displayName="go";fx.aliases=[];function fx(e){e.register(jn),e.languages.go=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),e.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go["class-name"]}px.displayName="ini";px.aliases=[];function px(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:/=/}}Fp.displayName="java";Fp.aliases=[];function Fp(e){e.register(jn),function(t){var n=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,r=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[i,{pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:i.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+r+/[A-Z]\w*\b/.source),lookbehind:!0,inside:i.inside}],keyword:n,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+r+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:i.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+r+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:i.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return n.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(e)}hx.displayName="regex";hx.aliases=[];function hx(e){(function(t){var n={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},r=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,i={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},o={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},a="(?:[^\\\\-]|"+r.source+")",s=RegExp(a+"-"+a),l={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};t.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:s,inside:{escape:r,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":n,"char-set":o,escape:r}},"special-escape":n,"char-set":i,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":l}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:r,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]||&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}zg.displayName="json";zg.aliases=["webmanifest"];function zg(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}mx.displayName="kotlin";mx.aliases=["kt","kts"];function mx(e){e.register(jn),function(t){t.languages.kotlin=t.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete t.languages.kotlin["class-name"];var n={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.kotlin}};t.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:n},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:n},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete t.languages.kotlin.string,t.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),t.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),t.languages.kt=t.languages.kotlin,t.languages.kts=t.languages.kotlin}(e)}gx.displayName="less";gx.aliases=[];function gx(e){e.register(uf),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"}})}vO.displayName="lua";vO.aliases=[];function vO(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:/[\[\](){},;]|\.+|:+/}}bx.displayName="makefile";bx.aliases=[];function bx(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:/[:;(){}]/}}EO.displayName="yaml";EO.aliases=["yml"];function EO(e){(function(t){var n=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+r.source+"(?:[ ]+"+n.source+")?|"+n.source+"(?:[ ]+"+r.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),a=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function s(l,u){u=(u||"").replace(/m/g,"")+"m";var c=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return l});return RegExp(c,u)}t.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return i})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return"(?:"+o+"|"+a+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:s(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:s(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:s(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:s(a),lookbehind:!0,greedy:!0},number:{pattern:s(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:r,important:n,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml})(e)}yx.displayName="markdown";yx.aliases=["md"];function yx(e){e.register(to),function(t){var n=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(s){return s=s.replace(//g,function(){return n}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+s+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),a=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+a+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+a+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+a+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(i),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:r(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:r(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(s){["url","bold","italic","strike","code-snippet"].forEach(function(l){s!==l&&(t.languages.markdown[s].inside.content.inside[l]=t.languages.markdown[l])})}),t.hooks.add("after-tokenize",function(s){if(s.language!=="markdown"&&s.language!=="md")return;function l(u){if(!(!u||typeof u=="string"))for(var c=0,d=u.length;c]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete e.languages.objectivec["class-name"],e.languages.objc=e.languages.objectivec}vx.displayName="perl";vx.aliases=[];function vx(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)}vo.displayName="markup-templating";vo.aliases=[];function vo(e){e.register(to),function(t){function n(r,i){return"___"+r.toUpperCase()+i+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(r,i,o,a){if(r.language===i){var s=r.tokenStack=[];r.code=r.code.replace(o,function(l){if(typeof a=="function"&&!a(l))return l;for(var u=s.length,c;r.code.indexOf(c=n(i,u))!==-1;)++u;return s[u]=l,c}),r.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(r,i){if(r.language!==i||!r.tokenStack)return;r.grammar=t.languages[i];var o=0,a=Object.keys(r.tokenStack);function s(l){for(var u=0;u=a.length);u++){var c=l[u];if(typeof c=="string"||c.content&&typeof c.content=="string"){var d=a[o],p=r.tokenStack[d],h=typeof c=="string"?c:c.content,m=n(i,d),b=h.indexOf(m);if(b>-1){++o;var O=h.substring(0,b),y=new t.Token(i,t.tokenize(p,r.grammar),"language-"+i,p),v=h.substring(b+m.length),S=[];O&&S.push.apply(S,s([O])),S.push(y),v&&S.push.apply(S,s([v])),typeof c=="string"?l.splice.apply(l,[u,1].concat(S)):c.content=S}}else c.content&&s(c.content)}return l}s(r.tokens)}}})}(e)}Bp.displayName="php";Bp.aliases=[];function Bp(e){e.register(vo),function(t){var n=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,r=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],i=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,a=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:n,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:i,operator:o,punctuation:a};var s={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},l=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:s}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:s}}];t.languages.insertBefore("php","variable",{string:l,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:n,string:l,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,number:i,operator:o,punctuation:a}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(u){if(/<\?/.test(u.code)){var c=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;t.languages["markup-templating"].buildPlaceholders(u,"php",c)}}),t.hooks.add("after-tokenize",function(u){t.languages["markup-templating"].tokenizePlaceholders(u,"php")})}(e)}SO.displayName="python";SO.aliases=["py"];function SO(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}Ex.displayName="r";Ex.aliases=[];function Ex(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:/[(){}\[\],;]/}}Up.displayName="ruby";Up.aliases=["rb"];function Up(e){e.register(jn),function(t){t.languages.ruby=t.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),t.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var n={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:t.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete t.languages.ruby.function;var r="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",i=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;t.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+r+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+i),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+i+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),t.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+r),greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+r),greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete t.languages.ruby.string,t.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),t.languages.rb=t.languages.ruby}(e)}Sx.displayName="rust";Sx.aliases=[];function Sx(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)}Tx.displayName="sass";Tx.aliases=[];function Tx(e){e.register(uf),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)}wx.displayName="scss";wx.aliases=[];function wx(e){e.register(uf),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}Vg.displayName="sql";Vg.aliases=[];function Vg(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:/[;[\]()`,.]/}}kx.displayName="swift";kx.aliases=[];function kx(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})}Hg.displayName="typescript";Hg.aliases=["ts"];function Hg(e){e.register(Oo),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)}TO.displayName="basic";TO.aliases=[];function TO(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:/[,;:()]/}}wO.displayName="vbnet";wO.aliases=[];function wO(e){e.register(TO),e.languages.vbnet=e.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}const Sz=/[#.]/g;function VUe(e,t){const n=e||"",r={};let i=0,o,a;for(;i=48&&t<=57}function KUe(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function JUe(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function kz(e){return JUe(e)||mte(e)}const fh=String.fromCharCode,e9e=["","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 t9e(e,t={}){const n=typeof t.additional=="string"?t.additional.charCodeAt(0):t.additional,r=[];let i=0,o=-1,a="",s,l;t.position&&("start"in t.position||"indent"in t.position?(l=t.position.indent,s=t.position.start):s=t.position);let u=(s?s.line:0)||1,c=(s?s.column:0)||1,d=h(),p;for(i--;++i<=e.length;)if(p===10&&(c=(l?l[o]:0)||1),p=e.charCodeAt(i),p===38){const O=e.charCodeAt(i+1);if(O===9||O===10||O===12||O===32||O===38||O===60||Number.isNaN(O)||n&&O===n){a+=fh(p),c++;continue}const y=i+1;let v=y,S=y,k;if(O===35){S=++v;const U=e.charCodeAt(S);U===88||U===120?(k="hexadecimal",S=++v):k="decimal"}else k="named";let C="",w="",E="";const $=k==="named"?kz:k==="decimal"?mte:KUe;for(S--;++S<=e.length;){const U=e.charCodeAt(S);if(!$(U))break;E+=fh(U),k==="named"&&XUe.includes(E)&&(C=E,w=o1(E))}let N=e.charCodeAt(S)===59;if(N){S++;const U=k==="named"?o1(E):!1;U&&(C=E,w=U)}let R=1+S-y,B="";if(!(!N&&t.nonTerminated===!1))if(!E)k!=="named"&&m(4,R);else if(k==="named"){if(N&&!w)m(5,1);else if(C!==E&&(S=v+C.length,R=1+S-v,N=!1),!N){const U=C?1:3;if(t.attribute){const V=e.charCodeAt(S);V===61?(m(U,R),w=""):kz(V)?w="":m(U,R)}else m(U,R)}B=w}else{N||m(2,R);let U=Number.parseInt(E,k==="hexadecimal"?16:10);if(n9e(U))m(7,R),B=fh(65533);else if(U in wz)m(6,R),B=wz[U];else{let V="";r9e(U)&&m(6,R),U>65535&&(U-=65536,V+=fh(U>>>10|55296),U=56320|U&1023),B=V+fh(U)}}if(B){b(),d=h(),i=S-1,c+=S-y+1,r.push(B);const U=h();U.offset++,t.reference&&t.reference.call(t.referenceContext,B,{start:d,end:U},e.slice(y-1,S)),d=U}else E=e.slice(y-1,S),a+=E,c+=E.length,i=S-1}else p===10&&(u++,o++,c=0),Number.isNaN(p)?b():(a+=fh(p),c++);return r.join("");function h(){return{line:u,column:c,offset:i+((s?s.offset:0)||0)}}function m(O,y){let v;t.warning&&(v=h(),v.column+=y,v.offset+=y,t.warning.call(t.warningContext,e9e[O],v,O))}function b(){a&&(r.push(a),t.text&&t.text.call(t.textContext,a,{start:d,end:h()}),a="")}}function n9e(e){return e>=55296&&e<=57343||e>1114111}function r9e(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 i9e=0,fE={},Wi={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++i9e}),e.__id},clone:function e(t,n){n=n||{};var r,i;switch(Wi.util.type(t)){case"Object":if(i=Wi.util.objId(t),n[i])return n[i];r={},n[i]=r;for(var o in t)t.hasOwnProperty(o)&&(r[o]=e(t[o],n));return r;case"Array":return i=Wi.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach(function(a,s){r[s]=e(a,n)}),r);default:return t}}},languages:{plain:fE,plaintext:fE,text:fE,txt:fE,extend:function(e,t){var n=Wi.util.clone(Wi.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r=r||Wi.languages;var i=r[e],o={};for(var a in i)if(i.hasOwnProperty(a)){if(a==t)for(var s in n)n.hasOwnProperty(s)&&(o[s]=n[s]);n.hasOwnProperty(a)||(o[a]=i[a])}var l=r[e];return r[e]=o,Wi.languages.DFS(Wi.languages,function(u,c){c===l&&u!=e&&(this[u]=o)}),o},DFS:function e(t,n,r,i){i=i||{};var o=Wi.util.objId;for(var a in t)if(t.hasOwnProperty(a)){n.call(t,a,t[a],r||a);var s=t[a],l=Wi.util.type(s);l==="Object"&&!i[o(s)]?(i[o(s)]=!0,e(s,n,null,i)):l==="Array"&&!i[o(s)]&&(i[o(s)]=!0,e(s,n,a,i))}}},plugins:{},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(Wi.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=Wi.tokenize(r.code,r.grammar),Wi.hooks.run("after-tokenize",r),Yb.stringify(Wi.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 o9e;return aS(i,i.head,e),gte(e,i,t,i.head,0),s9e(i)},hooks:{all:{},add:function(e,t){var n=Wi.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=Wi.hooks.all[e];if(!(!n||!n.length))for(var r=0,i;i=n[r++];)i(t)}},Token:Yb};function Yb(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||"").length|0}function xz(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var o=i[1].length;i.index+=o,i[0]=i[0].slice(o)}return i}function gte(e,t,n,r,i,o){for(var a in n)if(!(!n.hasOwnProperty(a)||!n[a])){var s=n[a];s=Array.isArray(s)?s:[s];for(var l=0;l=o.reach);y+=O.value.length,O=O.next){var v=O.value;if(t.length>e.length)return;if(!(v instanceof Yb)){var S=1,k;if(p){if(k=xz(b,y,e,d),!k||k.index>=e.length)break;var $=k.index,C=k.index+k[0].length,w=y;for(w+=O.value.length;$>=w;)O=O.next,w+=O.value.length;if(w-=O.value.length,y=w,O.value instanceof Yb)continue;for(var E=O;E!==t.tail&&(wo.reach&&(o.reach=U);var V=O.prev;R&&(V=aS(t,V,R),y+=R.length),a9e(t,V,S);var z=new Yb(a,c?Wi.tokenize(N,c):N,h,N);if(O=aS(t,V,z),B&&aS(t,O,B),S>1){var W={cause:a+","+l,reach:U};gte(e,t,n,O.prev,y,W),o&&W.reach>o.reach&&(o.reach=W.reach)}}}}}}function o9e(){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 aS(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 a9e(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:/[,.:()]/}}N3.displayName="abnf";N3.aliases=[];function N3(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)}P3.displayName="actionscript";P3.aliases=[];function P3(e){e.register(Oo),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}})}L3.displayName="ada";L3.aliases=[];function L3(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}}M3.displayName="agda";M3.aliases=[];function M3(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)}$3.displayName="al";$3.aliases=[];function $3(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:/[()\[\]{}:.;,]/}}F3.displayName="antlr4";F3.aliases=["g4"];function F3(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}B3.displayName="apacheconf";B3.aliases=[];function B3(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:/\^?.*\$|\^.*\$?/}}U3.displayName="apex";U3.aliases=[];function U3(e){e.register(jn),e.register(Vg),function(t){var n=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,r=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(//g,function(){return n.source});function i(a){return RegExp(a.replace(//g,function(){return r}),"i")}var o={keyword:n,punctuation:/[()\[\]{};,:.<>]/};t.languages.apex={comment:t.languages.clike.comment,string:t.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:t.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:i(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)/.source),lookbehind:!0,inside:o},{pattern:i(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:o},{pattern:i(/(?=\s*\w+\s*[;=,(){:])/.source),inside:o}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:n,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(e)}j3.displayName="apl";j3.aliases=[];function j3(e){e.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}z3.displayName="applescript";z3.aliases=[];function z3(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:/[{}():,¬«»《》]/}}V3.displayName="aql";V3.aliases=[];function V3(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:/::|[?.:,;()[\]{}]/}}H3.displayName="arff";H3.aliases=[];function H3(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:/[{},]/}}W3.displayName="armasm";W3.aliases=["arm-asm"];function W3(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}Q3.displayName="arturo";Q3.aliases=["art"];function Q3(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)}Y3.displayName="asciidoc";Y3.aliases=["adoc"];function Y3(e){(function(t){var n={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},r=t.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})$[\s\S]*?^\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:n,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:n.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:n,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function i(o){o=o.split(" ");for(var a={},s=0,l=o.length;s/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:e.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:e.languages.csharp}}}),e.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,e.languages.insertBefore("inside","punctuation",{directive:e.languages.aspnet.directive},e.languages.aspnet.tag.inside["attr-value"]),e.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),e.languages.insertBefore("aspnet",e.languages.javascript?"script":"tag",{"asp-script":{pattern:/(]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:e.languages.csharp||{}}})}q3.displayName="asm6502";q3.aliases=[];function q3(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:/[(),:]/}}Z3.displayName="asmatmel";Z3.aliases=[];function Z3(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:/[(),:]/}}X3.displayName="autohotkey";X3.aliases=[];function X3(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:/[{}[\]():,]/}}K3.displayName="autoit";K3.aliases=[];function K3(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:/[\[\]().,:]/}}J3.displayName="avisynth";J3.aliases=["avs"];function J3(e){(function(t){function n(u,c){return u.replace(/<<(\d+)>>/g,function(d,p){return c[+p]})}function r(u,c,d){return RegExp(n(u,c),d||"")}var i=/bool|clip|float|int|string|val/.source,o=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),a=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),s=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),l=[o,a,s].join("|");t.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:r(/\b(?:<<0>>)\s+("?)\w+\1/.source,[i],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:r(/\b(?:<<0>>)\b/.source,[l],"i"),alias:"function"},"type-cast":{pattern:r(/\b(?:<<0>>)(?=\s*\()/.source,[i],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},t.languages.avs=t.languages.avisynth})(e)}eL.displayName="avro-idl";eL.aliases=["avdl"];function eL(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"]}tL.displayName="awk";tL.aliases=["gawk"];function tL(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}nL.displayName="batch";nL.aliases=[];function nL(e){(function(t){var n=/%%?[~:\w]+%?|!\S+!/,r={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},i=/"(?:[\\"]"|[^"])*"(?!")/,o=/(?:\b|-)\d+\b/;t.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:i,parameter:r,variable:n,number:o,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:i,parameter:r,variable:n,number:o,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:i,parameter:r,variable:[n,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:o,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:i,parameter:r,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:n,number:o,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(e)}rL.displayName="bbcode";rL.aliases=["shortcode"];function rL(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}iL.displayName="bbj";iL.aliases=[];function iL(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)}oL.displayName="bicep";oL.aliases=[];function oL(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}aL.displayName="birb";aL.aliases=[];function aL(e){e.register(jn),e.languages.birb=e.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),e.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}sL.displayName="bison";sL.aliases=[];function sL(e){e.register(zl),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:/%[%?]|[|:;\[\]<>]/}}})}lL.displayName="bnf";lL.aliases=["rbnf"];function lL(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}uL.displayName="bqn";uL.aliases=[];function uL(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:/[←⇐↩(){}⟨⟩[\]‿·⋄,.;:?]/}}cL.displayName="brainfuck";cL.aliases=[];function cL(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}dL.displayName="brightscript";dL.aliases=[];function dL(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}fL.displayName="bro";fL.aliases=[];function fL(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:/[{}[\];(),.:]/}}pL.displayName="bsl";pL.aliases=["oscript"];function pL(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}hL.displayName="cfscript";hL.aliases=["cfc"];function hL(e){e.register(jn),e.languages.cfscript=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|:/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),e.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete e.languages.cfscript["class-name"],e.languages.cfc=e.languages.cfscript}mL.displayName="chaiscript";mL.aliases=[];function mL(e){e.register(jn),e.register(Mp),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]+/}}})}gL.displayName="cil";gL.aliases=[];function gL(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]+/}}bL.displayName="cilkc";bL.aliases=["cilk-c"];function bL(e){e.register(zl),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}yL.displayName="cilkcpp";yL.aliases=["cilk","cilk-cpp"];function yL(e){e.register(Mp),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}OL.displayName="clojure";OL.aliases=[];function OL(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:/[{}\[\](),]/}}vL.displayName="cmake";vL.aliases=[];function vL(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:/[()>}]|\$[<{]/}}EL.displayName="cobol";EL.aliases=[];function EL(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:/[.:,()]/}}SL.displayName="coffeescript";SL.aliases=["coffee"];function SL(e){e.register(Oo),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)}TL.displayName="concurnas";TL.aliases=["conc"];function TL(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}wL.displayName="csp";wL.aliases=[];function wL(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)}kL.displayName="cooklang";kL.aliases=[];function kL(e){(function(t){var n=/(?:(?!\s)[\d$+<=a-zA-Z\x80-\uFFFF])+/.source,r=/[^{}@#]+/.source,i=/\{[^}#@]*\}/.source,o=r+i,a=/(?:h|hours|hrs|m|min|minutes)/.source,s={pattern:/\{[^{}]*\}/,inside:{amount:{pattern:/([\{|])[^{}|*%]+/,lookbehind:!0,alias:"number"},unit:{pattern:/(%)[^}]+/,lookbehind:!0,alias:"symbol"},"servings-scaler":{pattern:/\*/,alias:"operator"},"servings-alternative-separator":{pattern:/\|/,alias:"operator"},"unit-separator":{pattern:/(?:%|(\*)%)/,lookbehind:!0,alias:"operator"},punctuation:/[{}]/}};t.languages.cooklang={comment:{pattern:/\[-[\s\S]*?-\]|--.*/,greedy:!0},meta:{pattern:/>>.*:.*/,inside:{property:{pattern:/(>>\s*)[^\s:](?:[^:]*[^\s:])?/,lookbehind:!0}}},"cookware-group":{pattern:new RegExp("#(?:"+o+"|"+n+")"),inside:{cookware:{pattern:new RegExp("(^#)(?:"+r+")"),lookbehind:!0,alias:"variable"},"cookware-keyword":{pattern:/^#/,alias:"keyword"},"quantity-group":{pattern:new RegExp(/\{[^{}@#]*\}/),inside:{quantity:{pattern:new RegExp(/(^\{)/.source+r),lookbehind:!0,alias:"number"},punctuation:/[{}]/}}}},"ingredient-group":{pattern:new RegExp("@(?:"+o+"|"+n+")"),inside:{ingredient:{pattern:new RegExp("(^@)(?:"+r+")"),lookbehind:!0,alias:"variable"},"ingredient-keyword":{pattern:/^@/,alias:"keyword"},"amount-group":s}},"timer-group":{pattern:/~(?!\s)[^@#~{}]*\{[^{}]*\}/,inside:{timer:{pattern:/(^~)[^{]+/,lookbehind:!0,alias:"variable"},"duration-group":{pattern:/\{[^{}]*\}/,inside:{punctuation:/[{}]/,unit:{pattern:new RegExp(/(%\s*)/.source+a+/\b/.source),lookbehind:!0,alias:"symbol"},operator:/%/,duration:{pattern:/\d+/,alias:"number"}}},"timer-keyword":{pattern:/^~/,alias:"keyword"}}}}})(e)}xL.displayName="coq";xL.aliases=[];function xL(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)}CL.displayName="crystal";CL.aliases=[];function CL(e){e.register(Up),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)}AL.displayName="css-extras";AL.aliases=[];function AL(e){e.register(uf),function(t){var n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r;t.languages.css.selector={pattern:t.languages.css.selector.pattern,lookbehind:!0,inside:r={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},t.languages.css.atrule.inside["selector-function-argument"].inside=r,t.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var i={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},o={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};t.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:i,number:o,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:i,number:o})}(e)}_L.displayName="csv";_L.aliases=[];function _L(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}RL.displayName="cue";RL.aliases=[];function RL(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)}IL.displayName="cypher";IL.aliases=[];function IL(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:/[()[\]{},;.]/}}DL.displayName="d";DL.aliases=[];function DL(e){e.register(jn),e.languages.d=e.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),e.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),e.languages.insertBefore("d","keyword",{property:/\B@\w*/}),e.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}NL.displayName="dart";NL.aliases=[];function NL(e){e.register(jn),function(t){var n=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],r=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};t.languages.dart=t.languages.extend("clike",{"class-name":[i,{pattern:RegExp(r+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:n,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),t.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.dart}}},string:/[\s\S]+/}},string:void 0}),t.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),t.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})}(e)}PL.displayName="dataweave";PL.aliases=[];function PL(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)}LL.displayName="dax";LL.aliases=[];function LL(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:/[;\[\](){}`,.]/}}ML.displayName="dhall";ML.aliases=[];function ML(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}$L.displayName="django";$L.aliases=["jinja2"];function $L(e){e.register(vo),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)}FL.displayName="dns-zone-file";FL.aliases=["dns-zone"];function FL(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"]}BL.displayName="docker";BL.aliases=["dockerfile"];function BL(e){(function(t){var n=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,r=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,function(){return n}),i=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,o=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return i}),a={pattern:RegExp(i),greedy:!0},s={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function l(u,c){return u=u.replace(//g,function(){return o}).replace(//g,function(){return r}),RegExp(u,c)}t.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:l(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[a,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:l(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:l(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:l(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:s,string:a,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:s},t.languages.dockerfile=t.languages.docker})(e)}UL.displayName="dot";UL.aliases=["gv"];function UL(e){(function(t){var n="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",r={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:t.languages.markup}};function i(o,a){return RegExp(o.replace(//g,function(){return n}),a)}t.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:i(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:r},"attr-value":{pattern:i(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:r},"attr-name":{pattern:i(/([\[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:r},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:i(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:r},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},t.languages.gv=t.languages.dot})(e)}jL.displayName="ebnf";jL.aliases=[];function jL(e){e.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}zL.displayName="editorconfig";zL.aliases=[];function zL(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:/^=/}}}}VL.displayName="eiffel";VL.aliases=[];function VL(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:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}HL.displayName="ejs";HL.aliases=["eta"];function HL(e){e.register(Oo),e.register(vo),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)}WL.displayName="elixir";WL.aliases=[];function WL(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}}}})}QL.displayName="elm";QL.aliases=[];function QL(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:/[{}[\]|(),.:]/}}YL.displayName="etlua";YL.aliases=[];function YL(e){e.register(vO),e.register(vo),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)}GL.displayName="erb";GL.aliases=[];function GL(e){e.register(vo),e.register(Up),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)}qL.displayName="erlang";qL.aliases=[];function qL(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:/[()[\]{}:;,.#|]|<<|>>/}}ZL.displayName="excel-formula";ZL.aliases=["xls","xlsx"];function ZL(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"]}XL.displayName="fsharp";XL.aliases=[];function XL(e){e.register(jn),e.languages.fsharp=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),e.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),e.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),e.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:e.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}KL.displayName="factor";KL.aliases=[];function KL(e){(function(t){var n={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},r={number:/\\[^\s']|%\w/},i={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:n},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:n}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:r.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:r}},o=function(u){return(u+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},a=function(u){return new RegExp("(^|\\s)(?:"+u.map(o).join("|")+")(?=\\s|$)")},s={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated",">>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(s).forEach(function(u){i[u].pattern=a(s[u])});var l=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","inputsequence"];i.combinators.pattern=a(l),t.languages.factor=i})(e)}JL.displayName="false";JL.aliases=[];function JL(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:/,/}}})}tM.displayName="flow";tM.aliases=[];function tM(e){e.register(Oo),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)}nM.displayName="fortran";nM.aliases=[];function nM(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:/\(\/|\/\)|[(),;:&]/}}rM.displayName="ftl";rM.aliases=[];function rM(e){e.register(vo),function(t){for(var n=/[^<()"']|\((?:)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,/[^\s\S]/.source);var i={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:))*\})*\1/.source.replace(//g,function(){return n})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:))*\}/.source.replace(//g,function(){return n})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};i.string[1].inside.interpolation.inside.rest=i,t.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}}},t.hooks.add("before-tokenize",function(o){var a=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return n}),"gi");t.languages["markup-templating"].buildPlaceholders(o,"ftl",a)}),t.hooks.add("after-tokenize",function(o){t.languages["markup-templating"].tokenizePlaceholders(o,"ftl")})}(e)}iM.displayName="gml";iM.aliases=["gamemakerlanguage"];function iM(e){e.register(jn),e.languages.gamemakerlanguage=e.languages.gml=e.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}oM.displayName="gap";oM.aliases=[];function oM(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}aM.displayName="gcode";aM.aliases=[];function aM(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:/[:*]/}}sM.displayName="gdscript";sM.aliases=[];function sM(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:/[.:,;()[\]{}]/}}lM.displayName="gedcom";lM.aliases=[];function lM(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"}}}uM.displayName="gettext";uM.aliases=["po"];function uM(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}cM.displayName="gherkin";cM.aliases=[];function cM(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)}dM.displayName="git";dM.aliases=[];function dM(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}}fM.displayName="glsl";fM.aliases=[];function fM(e){e.register(zl),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/})}pM.displayName="gn";pM.aliases=["gni"];function pM(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}hM.displayName="linker-script";hM.aliases=["ld"];function hM(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"]}mM.displayName="go-module";mM.aliases=["go-mod"];function mM(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:/[()[\],]/}}gM.displayName="gradle";gM.aliases=[];function gM(e){e.register(jn),function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.gradle=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:apply|def|dependencies|else|if|implementation|import|plugin|plugins|project|repositories|repository|sourceSets|tasks|val)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("gradle","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("gradle","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("gradle","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.gradle}(e)}bM.displayName="graphql";bM.aliases=[];function bM(e){e.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:e.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},e.hooks.add("after-tokenize",function(n){if(n.language!=="graphql")return;var r=n.tokens.filter(function(O){return typeof O!="string"&&O.type!=="comment"&&O.type!=="scalar"}),i=0;function o(O){return r[i+O]}function a(O,y){y=y||0;for(var v=0;v0)){var h=s(/^\{$/,/^\}$/);if(h===-1)continue;for(var m=i;m=0&&l(b,"variable-input")}}}}})}yM.displayName="groovy";yM.aliases=[];function yM(e){e.register(jn),function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.groovy=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.groovy}(e)}OM.displayName="textile";OM.aliases=[];function OM(e){e.register(to),function(t){var n=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,r=/\)|\((?![^|()\n]+\))/.source;function i(d,p){return RegExp(d.replace(//g,function(){return"(?:"+n+")"}).replace(//g,function(){return"(?:"+r+")"}),p||"")}var o={css:{pattern:/\{[^{}]+\}/,inside:{rest:t.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},a=t.languages.textile=t.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:i(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:i(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:o},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:i(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:i(/(^[*#]+)+/.source),lookbehind:!0,inside:o},punctuation:/^[*#]+/}},table:{pattern:i(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:i(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:o},punctuation:/\||^\./}},inline:{pattern:i(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:i(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:i(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:i(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:i(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:i(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:i(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:i(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:i(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:o},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:i(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:i(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:i(/(^")+/.source),lookbehind:!0,inside:o},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:i(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:i(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:i(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:o},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),s=a.phrase.inside,l={inline:s.inline,link:s.link,image:s.image,footnote:s.footnote,acronym:s.acronym,mark:s.mark};a.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var u=s.inline.inside;u.bold.inside=l,u.italic.inside=l,u.inserted.inside=l,u.deleted.inside=l,u.span.inside=l;var c=s.table.inside;c.inline=l.inline,c.link=l.link,c.image=l.image,c.footnote=l.footnote,c.acronym=l.acronym,c.mark=l.mark}(e)}vM.displayName="haml";vM.aliases=[];function vM(e){e.register(Up),function(t){t.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:t.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:t.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:t.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:t.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:t.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:t.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var n="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",r=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],i={},o=0,a=r.length;o@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},t.hooks.add("before-tokenize",function(n){var r=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;t.languages["markup-templating"].buildPlaceholders(n,"handlebars",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"handlebars")}),t.languages.hbs=t.languages.handlebars,t.languages.mustache=t.languages.handlebars}(e)}kO.displayName="haskell";kO.aliases=["hs"];function kO(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}SM.displayName="haxe";SM.aliases=[];function SM(e){e.register(jn),e.languages.haxe=e.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<{1,3}|[-+*/%!=&|^])=?|[?:~]/}),e.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.haxe}}},string:/[\s\S]+/}}}),e.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),e.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}TM.displayName="hcl";TM.aliases=[];function TM(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:/[=\[\]{}]/}}wM.displayName="hlsl";wM.aliases=[];function wM(e){e.register(zl),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/})}kM.displayName="hoon";kM.aliases=[];function kM(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:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}xM.displayName="hpkp";xM.aliases=[];function xM(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}CM.displayName="hsts";CM.aliases=[];function CM(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}AM.displayName="uri";AM.aliases=["url"];function AM(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}_M.displayName="http";_M.aliases=[];function _M(e){(function(t){function n(c){return RegExp("(^(?:"+c+"):[ ]*(?![ ]))[^]+","i")}t.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:t.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:n(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:t.languages.csp},{pattern:n(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:t.languages.hpkp},{pattern:n(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:t.languages.hsts},{pattern:n(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var r=t.languages,i={"application/javascript":r.javascript,"application/json":r.json||r.javascript,"application/xml":r.xml,"text/xml":r.xml,"text/html":r.html,"text/css":r.css,"text/plain":r.plain},o={"application/json":!0,"application/xml":!0};function a(c){var d=c.replace(/^[a-z]+\//,""),p="\\w+/(?:[\\w.-]+\\+)+"+d+"(?![+\\w.-])";return"(?:"+c+"|"+p+")"}var s;for(var l in i)if(i[l]){s=s||{};var u=o[l]?a(l):l;s[l.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+u+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:i[l]}}s&&t.languages.insertBefore("http","header",s)})(e)}RM.displayName="ichigojam";RM.aliases=[];function RM(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:/[\[,;:()\]]/}}IM.displayName="icon";IM.aliases=[];function IM(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:/[\[\](){},;]/}}DM.displayName="icu-message-format";DM.aliases=[];function DM(e){(function(t){function n(l,u){return u<=0?/[]/.source:l.replace(//g,function(){return n(l,u-1)})}var r=/'[{}:=,](?:[^']|'')*'(?!')/,i={pattern:/''/,greedy:!0,alias:"operator"},o={pattern:r,greedy:!0,inside:{escape:i}},a=n(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return r.source}),8),s={pattern:RegExp(a),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};t.languages["icu-message-format"]={argument:{pattern:RegExp(a),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":s,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":s,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+n(/(?:[^{}']|'[^']*'|\{(?:)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:i,string:o},s.inside.message.inside=t.languages["icu-message-format"],t.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=t.languages["icu-message-format"]})(e)}NM.displayName="idris";NM.aliases=["idr"];function NM(e){e.register(kO),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}PM.displayName="ignore";PM.aliases=["gitignore","hgignore","npmignore"];function PM(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)}LM.displayName="inform7";LM.aliases=[];function LM(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"}}MM.displayName="io";MM.aliases=[];function MM(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:/[()]/}}Qg.displayName="javadoclike";Qg.aliases=[];function Qg(e){(function(t){var n=t.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function r(o,a){var s="doc-comment",l=t.languages[o];if(l){var u=l[s];if(!u){var c={};c[s]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},l=t.languages.insertBefore(o,"comment",c),u=l[s]}if(u instanceof RegExp&&(u=l[s]={pattern:u}),Array.isArray(u))for(var d=0,p=u.length;d|\b(?:abstract|case|catch|class|def|derives|do|else|enum|extends|extension|final|finally|for|forSome|given|if|implicit|import|infix|inline|lazy|match|new|null|object|opaque|open|override|package|private|protected|return|sealed|self|super|this|throw|trait|transparent|try|type|using|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),e.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.scala}}},string:/[\s\S]+/}}}),delete e.languages.scala["class-name"],delete e.languages.scala.function,delete e.languages.scala.constant}BM.displayName="javadoc";BM.aliases=[];function BM(e){e.register(Fp),e.register(Qg),e.register(to),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)}UM.displayName="javastacktrace";UM.aliases=[];function UM(e){e.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:|[\w$]+)\()/,function:/(?:|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}jM.displayName="jexl";jM.aliases=[];function jM(e){e.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}zM.displayName="jolie";zM.aliases=[];function zM(e){e.register(jn),e.languages.jolie=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),e.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}VM.displayName="jq";VM.aliases=[];function VM(e){(function(t){var n=/\\\((?:[^()]|\([^()]*\))*\)/.source,r=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return n})),i={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+n),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},o=t.languages.jq={comment:/#.*/,property:{pattern:RegExp(r.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:i},string:{pattern:r,lookbehind:!0,greedy:!0,inside:i},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};i.interpolation.inside.content.inside=o})(e)}HM.displayName="js-templates";HM.aliases=[];function HM(e){e.register(Oo),function(t){var n=t.languages.javascript["template-string"],r=n.pattern.source,i=n.inside.interpolation,o=i.inside["interpolation-punctuation"],a=i.pattern.source;function s(m,b){if(t.languages[m])return{pattern:RegExp("((?:"+b+")\\s*)"+r),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:m}}}}t.languages.javascript["template-string"]=[s("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),s("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),s("svg",/\bsvg/.source),s("markdown",/\b(?:markdown|md)/.source),s("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),s("sql",/\bsql/.source),n].filter(Boolean);function l(m,b){return"___"+b.toUpperCase()+"_"+m+"___"}function u(m,b,O){var y={code:m,grammar:b,language:O};return t.hooks.run("before-tokenize",y),y.tokens=t.tokenize(y.code,y.grammar),t.hooks.run("after-tokenize",y),y.tokens}function c(m){var b={};b["interpolation-punctuation"]=o;var O=t.tokenize(m,b);if(O.length===3){var y=[1,1];y.push.apply(y,u(O[1],t.languages.javascript,"javascript")),O.splice.apply(O,y)}return new t.Token("interpolation",O,i.alias,m)}function d(m,b,O){var y=t.tokenize(m,{interpolation:{pattern:RegExp(a),lookbehind:!0}}),v=0,S={},k=y.map(function($){if(typeof $=="string")return $;for(var N=$.content,R;m.indexOf(R=l(v++,O))!==-1;);return S[R]=N,R}).join(""),C=u(k,b,O),w=Object.keys(S);v=0;function E($){for(var N=0;N<$.length;N++){if(v>=w.length)return;var R=$[N];if(typeof R=="string"||typeof R.content=="string"){var B=w[v],U=typeof R=="string"?R:R.content,V=U.indexOf(B);if(V!==-1){++v;var z=U.substring(0,V),W=c(S[B]),X=U.substring(V+B.length),q=[];if(z&&q.push(z),q.push(W),X){var Y=[X];E(Y),q.push.apply(q,Y)}typeof R=="string"?($.splice.apply($,[N,1].concat(q)),N+=q.length-1):R.content=q}}else{var Z=R.content;Array.isArray(Z)?E(Z):E([Z])}}}return E(C),new t.Token(O,C,"language-"+O,m)}var p={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};t.hooks.add("after-tokenize",function(m){if(!(m.language in p))return;function b(O){for(var y=0,v=O.length;y\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(//g,function(){return r})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+r),lookbehind:!0,inside:{string:n.string,number:n.number,boolean:n.boolean,keyword:t.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:n,alias:"language-javascript"}}}}),t.languages.javadoclike.addSupport("javascript",t.languages.jsdoc)}(e)}QM.displayName="n4js";QM.aliases=["n4jsd"];function QM(e){e.register(Oo),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}YM.displayName="js-extras";YM.aliases=[];function YM(e){e.register(Oo),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:/:/}}}}}}XM.displayName="julia";XM.aliases=[];function XM(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|[πℯ]/}}KM.displayName="keepalived";KM.aliases=[];function KM(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:/[\{\}]/}}JM.displayName="keyman";JM.aliases=[];function JM(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:/[()=,]/}}e4.displayName="kumir";e4.aliases=["kum"];function e4(e){(function(t){var n=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function r(i,o){return RegExp(i.replace(//g,n),o)}t.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:r(/(^|[])(?:да|нет)(?=[]|$)/.source),lookbehind:!0},"operator-word":{pattern:r(/(^|[])(?:и|или|не)(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:r(/(^|[])знач(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:r(/(^|[])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:r(/(^|[])(?:компл|сканкод|файл|цвет)(?=[]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:r(/(^|[])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[]|$)/.source),lookbehind:!0},name:{pattern:r(/(^|[])[^\d][^]*(?:\x20+[^]+)*(?=[]|$)/.source),lookbehind:!0},number:{pattern:r(/(^|[])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},t.languages.kum=t.languages.kumir})(e)}t4.displayName="kusto";t4.aliases=[];function t4(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:/[()\[\]{},;.:]/}}n4.displayName="latex";n4.aliases=["context","tex"];function n4(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)}r4.displayName="latte";r4.aliases=[];function r4(e){e.register(jn),e.register(vo),e.register(Bp),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)}xO.displayName="scheme";xO.aliases=[];function xO(e){(function(t){t.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(n({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function n(r){for(var i in r)r[i]=r[i].replace(/<[\w\s]+>/g,function(o){return"(?:"+r[o].trim()+")"});return r[i]}})(e)}i4.displayName="lilypond";i4.aliases=["ly"];function i4(e){e.register(xO),function(t){for(var n=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|)*\)/.source,r=5,i=0;i/g,function(){return n});n=n.replace(//g,/[^\s\S]/.source);var o=t.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|))/.source.replace(//g,function(){return n}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:t.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};o["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=o,t.languages.ly=o}(e)}o4.displayName="liquid";o4.aliases=[];function o4(e){e.register(vo),e.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},e.hooks.add("before-tokenize",function(t){var n=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,r=!1;e.languages["markup-templating"].buildPlaceholders(t,"liquid",n,function(i){var o=/^\{%-?\s*(\w+)/.exec(i);if(o){var a=o[1];if(a==="raw"&&!r)return r=!0,!0;if(a==="endraw")return r=!1,!0}return!r})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"liquid")})}a4.displayName="lisp";a4.aliases=["elisp","emacs","emacs-lisp"];function a4(e){(function(t){function n(m){return RegExp(/(\()/.source+"(?:"+m+")"+/(?=[\s\)])/.source)}function r(m){return RegExp(/([\s([])/.source+"(?:"+m+")"+/(?=[\s)])/.source)}var i=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,o="&"+i,a="(\\()",s="(?=\\))",l="(?=\\s)",u=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,c={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+i+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+i),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+i),alias:"property"},splice:{pattern:RegExp(",@?"+i),alias:["symbol","variable"]},keyword:[{pattern:RegExp(a+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+l),lookbehind:!0},{pattern:RegExp(a+"(?:append|by|collect|concat|do|finally|for|in|return)"+l),lookbehind:!0}],declare:{pattern:n(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:n(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:r(/nil|t/.source),lookbehind:!0},number:{pattern:r(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(a+"def(?:const|custom|group|var)\\s+"+i),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(i)}},defun:{pattern:RegExp(a+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+i+/\s+\(/.source+u+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+i),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(a+"lambda\\s+\\(\\s*(?:&?"+i+"(?:\\s+&?"+i+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(a+i),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},d={"lisp-marker":RegExp(o),varform:{pattern:RegExp(/\(/.source+i+/\s+(?=\S)/.source+u+/\)/.source),inside:c},argument:{pattern:RegExp(/(^|[\s(])/.source+i),lookbehind:!0,alias:"variable"},rest:c},p="\\S+(?:\\s+\\S+)*",h={pattern:RegExp(a+u+s),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+p),inside:d},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+p),inside:d},keys:{pattern:RegExp("&key\\s+"+p+"(?:\\s+&allow-other-keys)?"),inside:d},argument:{pattern:RegExp(i),alias:"variable"},punctuation:/[()]/}};c.lambda.inside.arguments=h,c.defun.inside.arguments=t.util.clone(h),c.defun.inside.arguments.inside.sublist=h,t.languages.lisp=c,t.languages.elisp=c,t.languages.emacs=c,t.languages["emacs-lisp"]=c})(e)}s4.displayName="livescript";s4.aliases=[];function s4(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}l4.displayName="llvm";l4.aliases=[];function l4(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)}u4.displayName="log";u4.aliases=[];function u4(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:/[\[\].,]/}}c4.displayName="lolcode";c4.aliases=[];function c4(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}|…|,|!/}}d4.displayName="magma";d4.aliases=[];function d4(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:/[()[\]{}<>,;.:]/}}xx.displayName="mata";xx.aliases=[];function xx(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)}f4.displayName="matlab";f4.aliases=[];function f4(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}|[.,;\[\](){}!]/}}p4.displayName="maxscript";p4.aliases=[];function p4(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)}h4.displayName="mel";h4.aliases=[];function h4(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}m4.displayName="mermaid";m4.aliases=[];function m4(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:/[(){};]/}}g4.displayName="metafont";g4.aliases=[];function g4(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}}}b4.displayName="mizar";b4.aliases=[];function b4(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:/\(#|#\)|[,:;\[\](){}]/}}y4.displayName="mongodb";y4.aliases=[];function y4(e){e.register(Oo),function(t){var n=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],r=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];n=n.map(function(o){return o.replace("$","\\$")});var i="(?:"+n.join("|")+")\\b";t.languages.mongodb=t.languages.extend("javascript",{}),t.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+i+"(?:\\1)?$")}}}),t.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},t.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+r.join("|")+")\\b"),alias:"keyword"}})}(e)}O4.displayName="monkey";O4.aliases=[];function O4(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:/[.,:;()\[\]]/}}v4.displayName="moonscript";v4.aliases=["moon"];function v4(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}E4.displayName="n1ql";E4.aliases=[];function E4(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:/[;[\](),.{}:]/}}S4.displayName="nand2tetris-hdl";S4.aliases=[];function S4(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:/[{}[\];(),:]/}}T4.displayName="naniscript";T4.aliases=["nani"];function T4(e){(function(t){var n=/\{[^\r\n\[\]{}]*\}/,r={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:n,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};t.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:n,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:r}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:n,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:r},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},t.languages.nani=t.languages.naniscript,t.hooks.add("after-tokenize",function(a){var s=a.tokens;s.forEach(function(l){if(typeof l!="string"&&l.type==="generic-text"){var u=o(l);i(u)||(l.type="bad-line",l.content=u)}})});function i(a){for(var s="[]{}",l=[],u=0;u=&|$!]/}}k4.displayName="neon";k4.aliases=[];function k4(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:/[,:=[\]{}()-]/}}x4.displayName="nevod";x4.aliases=[];function x4(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\-.]+/}}C4.displayName="nginx";C4.aliases=[];function C4(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)}A4.displayName="nim";A4.aliases=[];function A4(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:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}_4.displayName="nix";_4.aliases=[];function _4(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}R4.displayName="nsis";R4.aliases=[];function R4(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}}}I4.displayName="ocaml";I4.aliases=[];function I4(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/}}D4.displayName="odin";D4.aliases=[];function D4(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)}N4.displayName="opencl";N4.aliases=[];function N4(e){e.register(zl),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)}P4.displayName="openqasm";P4.aliases=["qasm"];function P4(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}L4.displayName="oz";L4.aliases=[];function L4(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:/[\[\](){}.:;?]/}}M4.displayName="parigp";M4.aliases=[];function M4(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:/[\[\]{}().,:;|]/}}$4.displayName="parser";$4.aliases=[];function $4(e){e.register(to),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)}F4.displayName="pascal";F4.aliases=["objectpascal"];function F4(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}B4.displayName="pascaligo";B4.aliases=[];function B4(e){(function(t){var n=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,r=/(?:\b\w+(?:)?|)/.source.replace(//g,function(){return n}),i=t.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)/.source.replace(//g,function(){return r}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/(?=\s+is\b)/.source.replace(//g,function(){return r}),"i"),inside:null},{pattern:RegExp(/(:\s*)/.source.replace(//g,function(){return r})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},o=["comment","keyword","builtin","operator","punctuation"].reduce(function(a,s){return a[s]=i[s],a},{});i["class-name"].forEach(function(a){a.inside=o})})(e)}U4.displayName="psl";U4.aliases=[];function U4(e){e.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}j4.displayName="pcaxis";j4.aliases=["px"];function j4(e){e.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},e.languages.px=e.languages.pcaxis}z4.displayName="peoplecode";z4.aliases=["pcode"];function z4(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}V4.displayName="phpdoc";V4.aliases=[];function V4(e){e.register(Qg),e.register(Bp),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)}H4.displayName="php-extras";H4.aliases=[];function H4(e){e.register(Bp),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:/::|\\/}}})}W4.displayName="plant-uml";W4.aliases=["plantuml"];function W4(e){(function(t){var n=/\$\w+|%[a-z]+%/,r=/\[[^[\]]*\]/.source,i=/(?:[drlu]|do|down|le|left|ri|right|up)/.source,o="(?:-+"+i+"-+|\\.+"+i+"\\.+|-+(?:"+r+"-*)?|"+r+"-+|\\.+(?:"+r+"\\.*)?|"+r+"\\.+)",a=/(?:<{1,2}|\/{1,2}|\\{1,2}|<\||[#*^+}xo])/.source,s=/(?:>{1,2}|\/{1,2}|\\{1,2}|\|>|[#*^+{xo])/.source,l=/[[?]?[ox]?/.source,u=/[ox]?[\]?]?/.source,c=l+"(?:"+o+s+"|"+a+o+"(?:"+s+")?)"+u;t.languages["plant-uml"]={comment:{pattern:/(^[ \t]*)(?:'.*|\/'[\s\S]*?'\/)/m,lookbehind:!0,greedy:!0},preprocessor:{pattern:/(^[ \t]*)!.*/m,lookbehind:!0,greedy:!0,alias:"property",inside:{variable:n}},delimiter:{pattern:/(^[ \t]*)@(?:end|start)uml\b/m,lookbehind:!0,greedy:!0,alias:"punctuation"},arrow:{pattern:RegExp(/(^|[^-.<>?|\\[\]ox])/.source+c+/(?![-.<>?|\\\]ox])/.source),lookbehind:!0,greedy:!0,alias:"operator",inside:{expression:{pattern:/(\[)[^[\]]+(?=\])/,lookbehind:!0,inside:null},punctuation:/\[(?=$|\])|^\]/}},string:{pattern:/"[^"]*"/,greedy:!0},text:{pattern:/(\[[ \t]*[\r\n]+(?![\r\n]))[^\]]*(?=\])/,lookbehind:!0,greedy:!0,alias:"string"},keyword:[{pattern:/^([ \t]*)(?:abstract\s+class|end\s+(?:box|fork|group|merge|note|ref|split|title)|(?:fork|split)(?:\s+again)?|activate|actor|agent|alt|annotation|artifact|autoactivate|autonumber|backward|binary|boundary|box|break|caption|card|case|circle|class|clock|cloud|collections|component|concise|control|create|critical|database|deactivate|destroy|detach|diamond|else|elseif|end|end[hr]note|endif|endswitch|endwhile|entity|enum|file|folder|footer|frame|group|[hr]?note|header|hexagon|hide|if|interface|label|legend|loop|map|namespace|network|newpage|node|nwdiag|object|opt|package|page|par|participant|person|queue|rectangle|ref|remove|repeat|restore|return|robust|scale|set|show|skinparam|stack|start|state|stop|storage|switch|title|together|usecase|usecase\/|while)(?=\s|$)/m,lookbehind:!0,greedy:!0},/\b(?:elseif|equals|not|while)(?=\s*\()/,/\b(?:as|is|then)\b/],divider:{pattern:/^==.+==$/m,greedy:!0,alias:"important"},time:{pattern:/@(?:\d+(?:[:/]\d+){2}|[+-]?\d+|:[a-z]\w*(?:[+-]\d+)?)\b/i,greedy:!0,alias:"number"},color:{pattern:/#(?:[a-z_]+|[a-fA-F0-9]+)\b/,alias:"symbol"},variable:n,punctuation:/[:,;()[\]{}]|\.{3}/},t.languages["plant-uml"].arrow.inside.expression.inside=t.languages["plant-uml"],t.languages.plantuml=t.languages["plant-uml"]})(e)}Q4.displayName="plsql";Q4.aliases=[];function Q4(e){e.register(Vg),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"}})}Y4.displayName="powerquery";Y4.aliases=["mscript","pq"];function Y4(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}G4.displayName="powershell";G4.aliases=[];function G4(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)}q4.displayName="processing";q4.aliases=[];function q4(e){e.register(jn),e.languages.processing=e.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),e.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}Z4.displayName="prolog";Z4.aliases=[];function Z4(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:/[(){}\[\],]/}}X4.displayName="promql";X4.aliases=[];function X4(e){(function(t){var n=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],r=["on","ignoring","group_right","group_left","by","without"],i=["offset"],o=n.concat(r,i);t.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+r.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+o.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(e)}K4.displayName="properties";K4.aliases=[];function K4(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:/[=:]/}}J4.displayName="protobuf";J4.aliases=[];function J4(e){e.register(jn),function(t){var n=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;t.languages.protobuf=t.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),t.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:n}},builtin:n,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})}(e)}e5.displayName="stylus";e5.aliases=[];function e5(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)}t5.displayName="twig";t5.aliases=[];function t5(e){e.register(vo),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")})}n5.displayName="pug";n5.aliases=[];function n5(e){e.register(Oo),e.register(to),function(t){t.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:t.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:t.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:t.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:t.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:t.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:t.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:t.languages.javascript}],punctuation:/[.\-!=|]+/};for(var n=/(^([\t ]*)):(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,r=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],i={},o=0,a=r.length;o",function(){return s.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[s.language,"language-"+s.language],inside:t.languages[s.language]}}})}t.languages.insertBefore("pug","filter",i)}(e)}r5.displayName="puppet";r5.aliases=[];function r5(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)}i5.displayName="pure";i5.aliases=[];function i5(e){(function(t){t.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var n=["c",{lang:"c++",alias:"cpp"},"fortran"],r=/%< *-\*- *\d* *-\*-[\s\S]+?%>/.source;n.forEach(function(i){var o=i;if(typeof i!="string"&&(o=i.alias,i=i.lang),t.languages[o]){var a={};a["inline-lang-"+o]={pattern:RegExp(r.replace("",i.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:t.util.clone(t.languages.pure["inline-lang"].inside)},a["inline-lang-"+o].inside.rest=t.util.clone(t.languages[o]),t.languages.insertBefore("pure","inline-lang",a)}}),t.languages.c&&(t.languages.pure["inline-lang"].inside.rest=t.util.clone(t.languages.c))})(e)}o5.displayName="purebasic";o5.aliases=["pbfasm"];function o5(e){e.register(jn),e.languages.purebasic=e.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+\$?|-[>-]?|\+\+?|!=?|<>?=?|==?|&&?|\|?\||[~^%?*/@]/}),e.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete e.languages.purebasic["class-name"],delete e.languages.purebasic.boolean,e.languages.pbfasm=e.languages.purebasic}a5.displayName="purescript";a5.aliases=["purs"];function a5(e){e.register(kO),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}s5.displayName="qsharp";s5.aliases=["qs"];function s5(e){e.register(jn),function(t){function n(h,m){return h.replace(/<<(\d+)>>/g,function(b,O){return"(?:"+m[+O]+")"})}function r(h,m,b){return RegExp(n(h,m),b||"")}function i(h,m){for(var b=0;b>/g,function(){return"(?:"+h+")"});return h.replace(/<>/g,"[^\\s\\S]")}var o={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function a(h){return"\\b(?:"+h.trim().replace(/ /g,"|")+")\\b"}var s=RegExp(a(o.type+" "+o.other)),l=/\b[A-Za-z_]\w*\b/.source,u=n(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[l]),c={keyword:s,punctuation:/[<>()?,.:[\]]/},d=/"(?:\\.|[^\\"])*"/.source;t.languages.qsharp=t.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[d]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[u]),lookbehind:!0,inside:c},{pattern:r(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[u]),lookbehind:!0,inside:c}],keyword:s,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),t.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var p=i(n(/\{(?:[^"{}]|<<0>>|<>)*\}/.source,[d]),2);t.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:r(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[p]),greedy:!0,inside:{interpolation:{pattern:r(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[p]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:t.languages.qsharp}}},string:/[\s\S]+/}}})}(e),e.languages.qs=e.languages.qsharp}l5.displayName="q";l5.aliases=[];function l5(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:/[(){}\[\];.]/}}u5.displayName="qml";u5.aliases=[];function u5(e){e.register(Oo),function(t){for(var n=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,r=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,i=/(?:[^\\()[\]{}"'/]||\/(?![*/])||\(*\)|\[*\]|\{*\}|\\[\s\S])/.source.replace(//g,function(){return n}).replace(//g,function(){return r}),o=0;o<2;o++)i=i.replace(//g,function(){return i});i=i.replace(//g,"[^\\s\\S]"),t.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(*\)\s*\{*\}/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}]))+/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}}(e)}c5.displayName="qore";c5.aliases=[];function c5(e){e.register(jn),e.languages.qore=e.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}d5.displayName="racket";d5.aliases=["rkt"];function d5(e){e.register(xO),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}f5.displayName="cshtml";f5.aliases=["razor"];function f5(e){e.register($p),e.register(to),function(t){var n=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,r=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function i(v,S){for(var k=0;k/g,function(){return"(?:"+v+")"});return v.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+r+")").replace(//g,"(?:"+n+")")}var o=i(/\((?:[^()'"@/]|||)*\)/.source,2),a=i(/\[(?:[^\[\]'"@/]|||)*\]/.source,1),s=i(/\{(?:[^{}'"@/]|||)*\}/.source,2),l=i(/<(?:[^<>'"@/]||)*>/.source,1),u=/@/.source+/(?:await\b\s*)?/.source+"(?:"+/(?!await\b)\w+\b/.source+"|"+o+")(?:"+/[?!]?\.\w+\b/.source+"|(?:"+l+")?"+o+"|"+a+")*"+/(?![?!\.(\[]|<(?!\/))/.source,c=/@(?![\w()])/.source+"|"+u,d="(?:"+/"[^"@]*"|'[^'@]*'|[^\s'"@>=]+(?=[\s>])/.source+`|["'][^"'@]*(?:(?:`+c+`)[^"'@]*)+["'])`,p=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*|(?=[\s/>])))+)?/.source.replace(//,d),h=/(?!\d)[^\s>\/=$<%]+/.source+p+/\s*\/?>/.source,m=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+h+"|"+i(/<\1/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+h+"|")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/*\.{3}(?:[^{}]|)*\})/.source;function a(u,c){return u=u.replace(//g,function(){return r}).replace(//g,function(){return i}).replace(//g,function(){return o}),RegExp(u,c)}o=a(o).source,t.languages.jsx=t.languages.extend("markup",n),t.languages.jsx.tag.pattern=a(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=n.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:a(//.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:a(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var s=function(u){return u?typeof u=="string"?u:typeof u.content=="string"?u.content:u.content.map(s).join(""):""},l=function(u){for(var c=[],d=0;d0&&c[c.length-1].tagName===s(p.content[0].content[1])&&c.pop():p.content[p.content.length-1].content==="/>"||c.push({tagName:s(p.content[0].content[1]),openedBraces:0}):c.length>0&&p.type==="punctuation"&&p.content==="{"?c[c.length-1].openedBraces++:c.length>0&&c[c.length-1].openedBraces>0&&p.type==="punctuation"&&p.content==="}"?c[c.length-1].openedBraces--:h=!0),(h||typeof p=="string")&&c.length>0&&c[c.length-1].openedBraces===0){var m=s(p);d0&&(typeof u[d-1]=="string"||u[d-1].type==="plain-text")&&(m=s(u[d-1])+m,u.splice(d-1,1),d--),u[d]=new t.Token("plain-text",m,null,m)}p.content&&typeof p.content!="string"&&l(p.content)}};t.hooks.add("after-tokenize",function(u){u.language!=="jsx"&&u.language!=="tsx"||l(u.tokens)})}(e)}p5.displayName="tsx";p5.aliases=[];function p5(e){e.register(Cx),e.register(Hg),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)}h5.displayName="reason";h5.aliases=[];function h5(e){e.register(jn),e.languages.reason=e.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),e.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete e.languages.reason.function}m5.displayName="rego";m5.aliases=[];function m5(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:/[,;.\[\]{}()]/}}g5.displayName="renpy";g5.aliases=["rpy"];function g5(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}b5.displayName="rescript";b5.aliases=["res"];function b5(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}y5.displayName="rest";y5.aliases=[];function y5(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}}}O5.displayName="rip";O5.aliases=[];function O5(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`'",.:;#\/\\()<>\[\]{}]*/}}v5.displayName="roboconf";v5.aliases=[];function v5(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:/[{},.;:=]/}}E5.displayName="robotframework";E5.aliases=["robot"];function E5(e){(function(t){var n={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},r={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function i(l,u){var c={};c["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var d in u)c[d]=u[d];return c.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},c.variable=r,c.comment=n,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return l}),"im"),alias:"section",inside:c}}var o={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},a={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:r}},s={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:r}};t.languages.robotframework={settings:i("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:i("Variables"),"test-cases":i("Test Cases",{"test-name":a,documentation:o,property:s}),keywords:i("Keywords",{"keyword-name":a,documentation:o,property:s}),tasks:i("Tasks",{"task-name":a,documentation:o,property:s}),comment:n},t.languages.robot=t.languages.robotframework})(e)}S5.displayName="sas";S5.aliases=[];function S5(e){(function(t){var n=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,r=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,i={pattern:RegExp(n+"[bx]"),alias:"number"},o={pattern:/&[a-z_]\w*/i},a={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},s={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},l=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],u={pattern:RegExp(n),greedy:!0},c=/[$%@.(){}\[\];,\\]/,d={pattern:/%?\b\w+(?=\()/,alias:"keyword"},p={function:d,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":o,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:r,"numeric-constant":i,punctuation:c,string:u},h={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},m={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},b={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},O={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},y=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,v={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return y}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return y}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:l,function:d,"arg-value":p["arg-value"],operator:p.operator,argument:p.arg,number:r,"numeric-constant":i,punctuation:c,string:u}},S={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};t.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:|[^;"'])+;/.source.replace(//g,function(){return n}),"im"),alias:"language-sql",inside:t.languages.sql},"global-statements":b,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:r,"numeric-constant":i,punctuation:c,string:u}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:l,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,alias:"language-groovy",inside:t.languages.groovy},keyword:S,"submit-statement":O,"global-statements":b,number:r,"numeric-constant":i,punctuation:c,string:u}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:l,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,alias:"language-lua",inside:t.languages.lua},keyword:S,"submit-statement":O,"global-statements":b,number:r,"numeric-constant":i,punctuation:c,string:u}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:l,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:p}},"cas-actions":v,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:p},step:s,keyword:S,function:d,format:h,altformat:m,"global-statements":b,number:r,"numeric-constant":i,punctuation:c,string:u}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,inside:p},"macro-keyword":a,"macro-variable":o,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":a,"macro-variable":o,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:c}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:l,number:r,"numeric-constant":i}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:p},"cas-actions":v,comment:l,function:d,format:h,altformat:m,"numeric-constant":i,datetime:{pattern:RegExp(n+"(?:dt?|t)"),alias:"number"},string:u,step:s,keyword:S,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:r,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:c}})(e)}T5.displayName="shell-session";T5.aliases=["sh-session","shellsession"];function T5(e){e.register(OO),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)}w5.displayName="smali";w5.aliases=[];function w5(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:/[{}(),;:]/}}k5.displayName="smalltalk";k5.aliases=[];function k5(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:/[.;:?\[\](){}]/}}x5.displayName="smarty";x5.aliases=[];function x5(e){e.register(vo),function(t){t.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:t.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},t.languages.smarty["embedded-php"].inside.smarty.inside=t.languages.smarty,t.languages.smarty.string[0].inside.interpolation.inside.expression.inside=t.languages.smarty;var n=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,r=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']||\{(?:[^{}"']||\{(?:[^{}"']|)*\})*\})*\}/.source.replace(//g,function(){return n.source}),"g");t.hooks.add("before-tokenize",function(i){var o="{literal}",a="{/literal}",s=!1;t.languages["markup-templating"].buildPlaceholders(i,"smarty",r,function(l){return l===a&&(s=!1),s?!1:(l===o&&(s=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"smarty")})}(e)}C5.displayName="sml";C5.aliases=["smlnj"];function C5(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)}A5.displayName="solidity";A5.aliases=["sol"];function A5(e){e.register(jn),e.languages.solidity=e.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),e.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),e.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),e.languages.sol=e.languages.solidity}_5.displayName="solution-file";_5.aliases=["sln"];function _5(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)}R5.displayName="soy";R5.aliases=[];function R5(e){e.register(vo),function(t){var n=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;t.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:n,greedy:!0},number:r,punctuation:/[\[\].?]/}},string:{pattern:n,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:r,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},t.hooks.add("before-tokenize",function(i){var o=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,a="{literal}",s="{/literal}",l=!1;t.languages["markup-templating"].buildPlaceholders(i,"soy",o,function(u){return u===s&&(l=!1),l?!1:(u===a&&(l=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"soy")})}(e)}Ax.displayName="turtle";Ax.aliases=["trig"];function Ax(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}I5.displayName="sparql";I5.aliases=["rq"];function I5(e){e.register(Ax),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}D5.displayName="splunk-spl";D5.aliases=[];function D5(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:/[()[\],]/}}N5.displayName="sqf";N5.aliases=[];function N5(e){e.register(jn),e.languages.sqf=e.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),e.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:e.languages.sqf.comment}}}),delete e.languages.sqf["class-name"]}P5.displayName="squirrel";P5.aliases=[];function P5(e){e.register(jn),e.languages.squirrel=e.languages.extend("clike",{comment:[e.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),e.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}L5.displayName="stan";L5.aliases=[];function L5(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)}M5.displayName="stata";M5.aliases=[];function M5(e){e.register(Fp),e.register(xx),e.register(SO),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}$5.displayName="iecst";$5.aliases=[];function $5(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:/[()[\].,;]/}}F5.displayName="supercollider";F5.aliases=["sclang"];function F5(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}B5.displayName="systemd";B5.aliases=[];function B5(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)}CO.displayName="t4-templating";CO.aliases=[];function CO(e){(function(t){function n(i,o,a){return{pattern:RegExp("<#"+i+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+i+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:o,alias:a}}}}function r(i){var o=t.languages[i],a="language-"+i;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:n("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:n("=",o,a),"class-feature":n("\\+",o,a),standard:n("",o,a)}}}}t.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:r})})(e)}U5.displayName="t4-cs";U5.aliases=["t4"];function U5(e){e.register($p),e.register(CO),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}j5.displayName="t4-vb";j5.aliases=[];function j5(e){e.register(CO),e.register(wO),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}z5.displayName="tap";z5.aliases=[];function z5(e){e.register(EO),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"}}}V5.displayName="tcl";V5.aliases=[];function V5(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:/[{}()\[\]]/}}H5.displayName="tt2";H5.aliases=[];function H5(e){e.register(jn),e.register(vo),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)}W5.displayName="toml";W5.aliases=[];function W5(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)}Q5.displayName="tremor";Q5.aliases=["trickle","troy"];function Q5(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)}Y5.displayName="typoscript";Y5.aliases=["tsconfig"];function Y5(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)}G5.displayName="unrealscript";G5.aliases=["uc","uscript"];function G5(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}q5.displayName="uorazor";q5.aliases=[];function q5(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:/[()\[\]{}:.,]/}}Z5.displayName="v";Z5.aliases=[];function Z5(e){e.register(jn),function(t){var n={pattern:/[\s\S]+/,inside:null};t.languages.v=t.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":n}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),n.inside=t.languages.v,t.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),t.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),t.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:t.languages.v.generic.inside}}}})}(e)}X5.displayName="vala";X5.aliases=[];function X5(e){e.register(jn),e.languages.vala=e.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),e.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:e.languages.vala}},string:/[\s\S]+/}}}),e.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}K5.displayName="velocity";K5.aliases=[];function K5(e){e.register(to),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)}J5.displayName="verilog";J5.aliases=[];function J5(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:/[[\];(),.:]/}}e$.displayName="vhdl";e$.aliases=[];function e$(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:/[{}[\];(),.:]/}}t$.displayName="vim";t$.aliases=[];function t$(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:/[{}[\](),;:]/}}n$.displayName="visual-basic";n$.aliases=["vb","vba"];function n$(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"]}r$.displayName="warpscript";r$.aliases=[];function r$(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/}}i$.displayName="wasm";i$.aliases=[];function i$(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:/[()]/}}o$.displayName="web-idl";o$.aliases=["webidl"];function o$(e){(function(t){var n=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,r="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+n+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,i={};t.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+n),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+r),lookbehind:!0,inside:i},{pattern:RegExp("("+/\bcallback\s+/.source+n+/\s*=\s*/.source+")"+r),lookbehind:!0,inside:i},{pattern:RegExp(/(\btypedef\b\s*)/.source+r),lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+n),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+n),lookbehind:!0},RegExp(n+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+n),lookbehind:!0},{pattern:RegExp(r+"(?="+/\s*(?:\.{3}\s*)?/.source+n+/\s*[(),;=]/.source+")"),inside:i}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var o in t.languages["web-idl"])o!=="class-name"&&(i[o]=t.languages["web-idl"][o]);t.languages.webidl=t.languages["web-idl"]})(e)}a$.displayName="wgsl";a$.aliases=[];function a$(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:/[@(){}[\],;<>:.]/}}s$.displayName="wiki";s$.aliases=[];function s$(e){e.register(to),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}}}})}l$.displayName="wolfram";l$.aliases=["mathematica","nb","wl"];function l$(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}u$.displayName="wren";u$.aliases=[];function u$(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]+/}}}c$.displayName="xeora";c$.aliases=["xeoracube"];function c$(e){e.register(to),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)}d$.displayName="xml-doc";d$.aliases=[];function d$(e){e.register(to),function(t){function n(a,s){t.languages[a]&&t.languages.insertBefore(a,"comment",{"doc-comment":s})}var r=t.languages.markup.tag,i={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:r}},o={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:r}};n("csharp",i),n("fsharp",i),n("vbnet",o)}(e)}f$.displayName="xojo";f$.aliases=[];function f$(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:/[.,;:()]/}}p$.displayName="xquery";p$.aliases=[];function p$(e){e.register(to),function(t){t.languages.xquery=t.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),t.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,t.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,t.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,t.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:t.languages.xquery,alias:"language-xquery"};var n=function(i){return typeof i=="string"?i:typeof i.content=="string"?i.content:i.content.map(n).join("")},r=function(i){for(var o=[],a=0;a0&&o[o.length-1].tagName===n(s.content[0].content[1])&&o.pop():s.content[s.content.length-1].content==="/>"||o.push({tagName:n(s.content[0].content[1]),openedBraces:0}):o.length>0&&s.type==="punctuation"&&s.content==="{"&&(!i[a+1]||i[a+1].type!=="punctuation"||i[a+1].content!=="{")&&(!i[a-1]||i[a-1].type!=="plain-text"||i[a-1].content!=="{")?o[o.length-1].openedBraces++:o.length>0&&o[o.length-1].openedBraces>0&&s.type==="punctuation"&&s.content==="}"?o[o.length-1].openedBraces--:s.type!=="comment"&&(l=!0)),(l||typeof s=="string")&&o.length>0&&o[o.length-1].openedBraces===0){var u=n(s);a0&&(typeof i[a-1]=="string"||i[a-1].type==="plain-text")&&(u=n(i[a-1])+u,i.splice(a-1,1),a--),/^\s+$/.test(u)?i[a]=u:i[a]=new t.Token("plain-text",u,null,u)}s.content&&typeof s.content!="string"&&r(s.content)}};t.hooks.add("after-tokenize",function(i){i.language==="xquery"&&r(i.tokens)})}(e)}h$.displayName="yang";h$.aliases=[];function h$(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:/[{};:]/}}m$.displayName="zig";m$.aliases=[];function m$(e){(function(t){function n(u){return function(){return u}}var r=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,i="\\b(?!"+r.source+")(?!\\d)\\w+\\b",o=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,a=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,n(o)),s=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,n(i)),l="(?!\\s)(?:!?\\s*(?:"+a+"\\s*)*"+s+")+";t.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)(?=\s*(?:\s*)?[=;,)])|(?=\s*(?:\s*)?\{)/.source.replace(//g,n(l)).replace(//g,n(o))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,n(l)).replace(//g,n(o))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:r,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},t.languages.zig["class-name"].forEach(function(u){u.inside===null&&(u.inside=t.languages.zig)})})(e)}te.register(to);te.register(uf);te.register(jn);te.register(hx);te.register(Oo);te.register(D3);te.register(N3);te.register(P3);te.register(L3);te.register(M3);te.register($3);te.register(F3);te.register(B3);te.register(Vg);te.register(U3);te.register(j3);te.register(z3);te.register(V3);te.register(zl);te.register(Mp);te.register(cx);te.register(H3);te.register(W3);te.register(OO);te.register(EO);te.register(yx);te.register(Q3);te.register(Y3);te.register($p);te.register(G3);te.register(q3);te.register(Z3);te.register(X3);te.register(K3);te.register(J3);te.register(eL);te.register(tL);te.register(TO);te.register(nL);te.register(rL);te.register(iL);te.register(oL);te.register(aL);te.register(sL);te.register(lL);te.register(uL);te.register(cL);te.register(dL);te.register(fL);te.register(pL);te.register(hL);te.register(mL);te.register(gL);te.register(bL);te.register(yL);te.register(OL);te.register(vL);te.register(EL);te.register(SL);te.register(TL);te.register(wL);te.register(kL);te.register(xL);te.register(Up);te.register(CL);te.register(AL);te.register(_L);te.register(RL);te.register(IL);te.register(DL);te.register(NL);te.register(PL);te.register(LL);te.register(ML);te.register(dx);te.register(vo);te.register($L);te.register(FL);te.register(BL);te.register(UL);te.register(jL);te.register(zL);te.register(VL);te.register(HL);te.register(WL);te.register(QL);te.register(vO);te.register(YL);te.register(GL);te.register(qL);te.register(ZL);te.register(XL);te.register(KL);te.register(JL);te.register(eM);te.register(tM);te.register(nM);te.register(rM);te.register(iM);te.register(oM);te.register(aM);te.register(sM);te.register(lM);te.register(uM);te.register(cM);te.register(dM);te.register(fM);te.register(pM);te.register(hM);te.register(fx);te.register(mM);te.register(gM);te.register(bM);te.register(yM);te.register(gx);te.register(wx);te.register(OM);te.register(vM);te.register(EM);te.register(kO);te.register(SM);te.register(TM);te.register(wM);te.register(kM);te.register(xM);te.register(CM);te.register(zg);te.register(AM);te.register(_M);te.register(RM);te.register(IM);te.register(DM);te.register(NM);te.register(PM);te.register(LM);te.register(px);te.register(MM);te.register($M);te.register(Fp);te.register(Bp);te.register(Qg);te.register(FM);te.register(BM);te.register(UM);te.register(jM);te.register(zM);te.register(VM);te.register(HM);te.register(Hg);te.register(WM);te.register(QM);te.register(YM);te.register(GM);te.register(qM);te.register(ZM);te.register(XM);te.register(KM);te.register(JM);te.register(mx);te.register(e4);te.register(t4);te.register(n4);te.register(r4);te.register(xO);te.register(i4);te.register(o4);te.register(a4);te.register(s4);te.register(l4);te.register(u4);te.register(c4);te.register(d4);te.register(bx);te.register(xx);te.register(f4);te.register(p4);te.register(h4);te.register(m4);te.register(g4);te.register(b4);te.register(y4);te.register(O4);te.register(v4);te.register(E4);te.register(S4);te.register(T4);te.register(w4);te.register(k4);te.register(x4);te.register(C4);te.register(A4);te.register(_4);te.register(R4);te.register(Ox);te.register(I4);te.register(D4);te.register(N4);te.register(P4);te.register(L4);te.register(M4);te.register($4);te.register(F4);te.register(B4);te.register(U4);te.register(j4);te.register(z4);te.register(vx);te.register(V4);te.register(H4);te.register(W4);te.register(Q4);te.register(Y4);te.register(G4);te.register(q4);te.register(Z4);te.register(X4);te.register(K4);te.register(J4);te.register(e5);te.register(t5);te.register(n5);te.register(r5);te.register(i5);te.register(o5);te.register(a5);te.register(SO);te.register(s5);te.register(l5);te.register(u5);te.register(c5);te.register(Ex);te.register(d5);te.register(f5);te.register(Cx);te.register(p5);te.register(h5);te.register(m5);te.register(g5);te.register(b5);te.register(y5);te.register(O5);te.register(v5);te.register(E5);te.register(Sx);te.register(S5);te.register(Tx);te.register(T5);te.register(w5);te.register(k5);te.register(x5);te.register(C5);te.register(A5);te.register(_5);te.register(R5);te.register(Ax);te.register(I5);te.register(D5);te.register(N5);te.register(P5);te.register(L5);te.register(M5);te.register($5);te.register(F5);te.register(kx);te.register(B5);te.register(CO);te.register(U5);te.register(wO);te.register(j5);te.register(z5);te.register(V5);te.register(H5);te.register(W5);te.register(Q5);te.register(Y5);te.register(G5);te.register(q5);te.register(Z5);te.register(X5);te.register(K5);te.register(J5);te.register(e$);te.register(t$);te.register(n$);te.register(r$);te.register(i$);te.register(o$);te.register(a$);te.register(s$);te.register(l$);te.register(u$);te.register(c$);te.register(d$);te.register(f$);te.register(p$);te.register(h$);te.register(m$);function xI(){xI=function(i,o){return new n(i,void 0,o)};var e=RegExp.prototype,t=new WeakMap;function n(i,o,a){var s=new RegExp(i,o);return t.set(s,a||t.get(i)),KT(s,n.prototype)}function r(i,o){var a=t.get(o);return Object.keys(a).reduce(function(s,l){var u=a[l];if(typeof u=="number")s[l]=i[u];else{for(var c=0;i[u[c]]===void 0&&c+1]+)>/g,function(l,u){var c=a[u];return"$"+(Array.isArray(c)?c.join("$"):c)}))}if(typeof o=="function"){var s=this;return e[Symbol.replace].call(this,i,function(){var l=arguments;return typeof l[l.length-1]!="object"&&(l=[].slice.call(l)).push(r(l,s)),o.apply(this,l)})}return e[Symbol.replace].call(this,i,o)},xI.apply(this,arguments)}function KT(e,t){return KT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},KT(e,t)}function Cz(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 m9e=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){Ia(r,"element",n)};function n(r,i,o){var a,s;if(o&&o.tagName==="pre"&&r.tagName==="code"){var l=(r==null||(a=r.data)==null?void 0:a.meta)||(r==null||(s=r.properties)==null?void 0:s.metastring)||"";r.properties.className?typeof r.properties.className=="boolean"?r.properties.className=[]:Array.isArray(r.properties.className)||(r.properties.className=[r.properties.className]):r.properties.className=[];var u,c,d=function(C){for(var w,E=l2(C.properties.className);!(w=E()).done;){var $=w.value;if($.slice(0,9)==="language-")return $.slice(9).toLowerCase()}return null}(r);if(!d&&t.defaultLanguage&&r.properties.className.push("language-"+(d=t.defaultLanguage)),r.properties.className.push("code-highlight"),d)try{var p,h;h=(p=d)!=null&&p.includes("diff-")?d.split("-")[1]:d,u=e.highlight(qh(r),h),o.properties.className=(o.properties.className||[]).concat("language-"+h)}catch(C){if(!t.ignoreMissing||!/Unknown language/.test(C.message))throw C;u=r}else u=r;u.children=(c=1,function C(w){return w.reduce(function(E,$){if($.type==="text"){var N=$.value,R=(N.match(/\n/g)||"").length;if(R===0)$.position={start:{line:c,column:1},end:{line:c,column:1}},E.push($);else for(var B,U=N.split(` +`),V=l2(U.entries());!(B=V()).done;){var z=B.value,W=z[0],X=z[1];E.push({type:"text",value:W===U.length-1?X:X+` +`,position:{start:{line:c+W,column:1},end:{line:c+W,column:1}}})}return c+=R,E}if(Object.prototype.hasOwnProperty.call($,"children")){var q=c;return $.children=C($.children),E.push($),$.position={start:{line:q,column:1},end:{line:c,column:1}},E}return E.push($),E},[])})(u.children),u.position=u.children.length>0?{start:{line:u.children[0].position.start.line,column:0},end:{line:u.children[u.children.length-1].position.end.line,column:0}}:{start:{line:0,column:0},end:{line:0,column:0}};for(var m,b=function(C){var w=/{([\d,-]+)}/,E=C.split(",").map(function(R){return R.trim()}).join();if(w.test(E)){var $=w.exec(E)[1],N=zUe($);return function(R){return N.includes(R+1)}}return function(){return!1}}(l),O=function(C){var w=xI(/showLineNumbers=(\d+)/i,{lines:1});if(w.test(C)){var E=w.exec(C);return Number(E.groups.lines)}return 1}(l),y=function(C){for(var w=new Array(C),E=0;E=$+1});N.children=R.children,!l.toLowerCase().includes("showLineNumbers".toLowerCase())&&!t.showLineNumbers||v.some(function(B){return l.toLowerCase().includes(B)})||(N.properties.line=[($+O).toString()],N.properties.className.push("line-number")),b($)&&N.properties.className.push("highlight-line"),(d==="diff"||(C=d)!=null&&C.includes("diff-"))&&qh(N).substring(0,1)==="-"?N.properties.className.push("deleted"):(d==="diff"||(w=d)!=null&&w.includes("diff-"))&&qh(N).substring(0,1)==="+"&&N.properties.className.push("inserted")},k=l2(y.entries());!(m=k()).done;)S();y.length>0&&qh(y[y.length-1]).trim()===""&&y.pop(),r.children=y}}}},g9e=m9e(te),sS={},CI={};function b9e(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"]}}}),_I=AO(vte,{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"]}}}),RI=AO(_I,{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"]}}}),k9e=AO(RI,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}}),Nz={css1:Ote,css2:vte,css3:_I,"selectors-3":_I,"selectors-4":RI,latest:RI,progressive:k9e};function B0(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="-"||e==="_"||e==="\\"||e>=" "}function x9e(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="-"||e==="_"||e>=" "}function U0(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var C9e={" ":!0," ":!0,"\n":!0,"\r":!0,"\f":!0},A9e={'"':!0,"'":!0},c2={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},_9e=6,d2="css-selector-parser parse error: ";function R9e(e){e===void 0&&(e={});var t=e.syntax,n=t===void 0?"latest":t,r=e.substitutes,i=e.strict,o=i===void 0?!0:i,a=typeof n=="object"?n:Nz[n];a.baseSyntax&&(a=AO(Nz[a.baseSyntax],a));var s=a.tag?[!0,!!S9e(a.tag).wildcard]:[!1,!1],l=s[0],u=s[1],c=!!a.ids,d=!!a.classNames,p=!!a.namespace,h=a.namespace&&(a.namespace===!0||a.namespace.wildcard===!0);if(p&&!l)throw new Error("".concat(d2,"Namespaces cannot be enabled while tags are disabled."));var m=!!r,b=a.combinators?Az(a.combinators):sS,O=a.attributes?[!0,a.attributes.operators?Az(a.attributes.operators):sS,a.attributes.caseSensitivityModifiers?y9e(a.attributes.caseSensitivityModifiers):CI,a.attributes.unknownCaseSensitivityModifiers==="accept"]:[!1,sS,CI,!1],y=O[0],v=O[1],S=O[2],k=O[3],C=k||Object.keys(S).length>0,w=a.pseudoClasses?[!0,a.pseudoClasses.definitions?Rz(a.pseudoClasses.definitions):pE,a.pseudoClasses.unknown==="accept"]:[!1,pE,!1],E=w[0],$=w[1],N=w[2],R=a.pseudoElements?[!0,a.pseudoElements.notation==="singleColon"||a.pseudoElements.notation==="both",!a.pseudoElements.notation||a.pseudoElements.notation==="doubleColon"||a.pseudoElements.notation==="both",a.pseudoElements.definitions?Rz(Array.isArray(a.pseudoElements.definitions)?{NoArgument:a.pseudoElements.definitions}:a.pseudoElements.definitions):pE,a.pseudoElements.unknown==="accept"]:[!1,!1,!1,pE,!1],B=R[0],U=R[1],V=R[2],z=R[3],W=R[4],X="",q=X.length,Y=0,Z="",j=function(de){return Z===de},se=function(){return j("*")||B0(Z)},ve=function(de){Y=de,Z=X.charAt(Y)},G=function(){Y++,Z=X.charAt(Y)},ce=function(){var de=Z;return Y++,Z=X.charAt(Y),de};function ge(de){var Oe=Math.min(q-1,Y),Te=new Error("".concat(d2).concat(de," Pos: ").concat(Oe,"."));throw Te.position=Oe,Te.name="ParserError",Te}function ue(de,Oe){if(!de)return ge(Oe)}var xe=function(){ue(Y=q},Ve=function(de){ue(Y=2&&ge("Identifiers cannot start with two hyphens with strict mode on."),c2[Z]&&ge("Identifiers cannot start with hyphens followed by digits.");Y0)return(t.commaSeparated?u3:d3)(e)}else return String(e)}const B9e=[];function U9e(e,t){return(t.properties.className||B9e).includes(e.name)}function j9e(e,t){return t.properties.id===e.name}function z9e(e,t){return e.name===t.tagName}function V9e(e,t){return function(n,r){let i=Lz(n,"tag");const o=Lz(r??"*","range"),a=[];let s=-1;for(;++s=Mz&&e.charCodeAt(t)<=Y9e;)u=u*10+(e.charCodeAt(t)-Mz),t++;return t===l?null:u}function s(){for(;to<=n;if(t===0)return o=>o===n;if(t===1)return n<0?$z.trueFunc:o=>o>=n;const r=Math.abs(t),i=(n%r+r)%r;return t>1?o=>o>=n&&o%r===i:o=>o<=n&&o%r===i}function Fz(e){return Z9e(G9e(e))}const X9e=Fz.default||Fz,K9e=S3("name",{handlers:{"any-link":J9e,blank:eje,checked:tje,dir:nje,disabled:Tte,empty:rje,enabled:ije,"first-child":oje,"first-of-type":aje,has:sje,is:wte,lang:uje,"last-child":cje,"last-of-type":dje,not:fje,"nth-child":pje,"nth-last-child":hje,"nth-last-of-type":mje,"nth-of-type":gje,"only-child":bje,"only-of-type":yje,optional:Oje,"read-only":vje,"read-write":kte,required:xte,root:Eje,scope:Sje},invalid:lje,unknown:Tje});function J9e(e,t){return(t.tagName==="a"||t.tagName==="area"||t.tagName==="link")&&Cp(t,"href")}function ju(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function eje(e,t){return!Cte(t,n);function n(r){return r.type==="element"||r.type==="text"&&!OJ(r)}}function tje(e,t){return t.tagName==="input"||t.tagName==="menuitem"?!!((t.properties.type==="checkbox"||t.properties.type==="radio")&&Cp(t,"checked")):t.tagName==="option"?Cp(t,"selected"):!1}function nje(e,t,n,r,i){return e.argument,e.argument.type,i.direction===e.argument.value}function Tte(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")&&Cp(t,"disabled")}function rje(e,t){return!Cte(t,n);function n(r){return r.type==="element"||r.type==="text"}}function ije(e,t){return!Tte(e,t)}function oje(e,t,n,r,i){return ju(i,e),i.elementIndex===0}function aje(e,t,n,r,i){return ju(i,e),i.typeIndex===0}function _x(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=X9e(n.a+"n+"+n.b),e._cachedFn=t}return t}function sje(e,t,n,r,i){e.argument,e.argument.type;const o={...i,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return g$(o,{type:"root",children:t.children}),o.results.length>0}function lje(){}function wte(e,t,n,r,i){e.argument,e.argument.type;const o={...i,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return g$(o,t),o.results[0]===t}function uje(e,t,n,r,i){return e.argument,e.argument.type,i.language!==""&&i.language!==void 0&&H9e(i.language,n1(e.argument.value)).length>0}function cje(e,t,n,r,i){return ju(i,e),!!(i.elementCount&&i.elementIndex===i.elementCount-1)}function dje(e,t,n,r,i){return ju(i,e),typeof i.typeIndex=="number"&&typeof i.typeCount=="number"&&i.typeIndex===i.typeCount-1}function fje(e,t,n,r,i){return!wte(e,t,n,r,i)}function pje(e,t,n,r,i){const o=_x(e);return ju(i,e),typeof i.elementIndex=="number"&&o(i.elementIndex)}function hje(e,t,n,r,i){const o=_x(e);return ju(i,e),!!(typeof i.elementCount=="number"&&typeof i.elementIndex=="number"&&o(i.elementCount-i.elementIndex-1))}function mje(e,t,n,r,i){const o=_x(e);return ju(i,e),typeof i.typeCount=="number"&&typeof i.typeIndex=="number"&&o(i.typeCount-1-i.typeIndex)}function gje(e,t,n,r,i){const o=_x(e);return ju(i,e),typeof i.typeIndex=="number"&&o(i.typeIndex)}function bje(e,t,n,r,i){return ju(i,e),i.elementCount===1}function yje(e,t,n,r,i){return ju(i,e),i.typeCount===1}function Oje(e,t){return!xte(e,t)}function vje(e,t,n,r,i){return!kte(e,t,n,r,i)}function kte(e,t,n,r,i){return t.tagName==="input"||t.tagName==="textarea"?!Cp(t,"readOnly")&&!Cp(t,"disabled"):!!i.editableOrEditingHost}function xte(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&Cp(t,"required")}function Eje(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 Sje(e,t,n,r,i){return i.scopeElements.includes(t)}function Cte(e,t){const n=e.children;let r=-1;for(;++r"?"directChild":"descendant";p2(o,u,l)}else e.found=!0,e.results.includes(n)||e.results.push(n)}s.combinator===void 0?p2(o,"descendant",s):s.combinator==="~"&&p2(o,"generalSibling",s)}return o}function lS(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:kje}function Bz(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 Ate(e,t,n,r,i,o){let a={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const s=M9e(e,n);if(n.type==="element"){let l=e.rootQuery.rules;i&&i!==o&&(l=e.rootQuery.rules.filter(u=>u.combinator===void 0||u.combinator===">"&&i===o)),a=Cje(e,lS(t,l),n,r,i)}return"children"in n&&!e.shallow&&!(e.one&&e.found)&&xje(e,a,n,o),s(),a}function Aje(e,t,n){const r=_je(e,t,n);return g$(r,t||void 0),r.results}function _je(e,t,n){return{direction:"ltr",editableOrEditingHost:!1,elementCount:void 0,elementIndex:void 0,found:!1,language:void 0,one:!1,results:[],rootQuery:D9e(e),schema:n==="svg"?Fu:Pp,scopeElements:t?t.type==="root"?t.children:[t]:[],shallow:!1,typeIndex:void 0,typeCount:void 0}}const _te=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=_te(n.children))}),t),Rje=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const i=Aje(t,r);i&&i.length>0&&Ia(r,i,(o,a,s)=>{n(o,a,s)});return}Ia(r,(i,o,a)=>{n(i,o,a)})}}},Ije=Rje,Dje=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),Nje=(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]}},Rte=(e=[],t,n,r)=>{let i=t;for(;i/,"$2")||"")?void 0:r?Rte(e,i,"pre",r)?void 0:(o.value=(o.value||"").replace(/^(\n|\s)+/,""),o):(o.value=(o.value||"").replace(/^(\n|\s)+/,""),o)}},Uz=({value:e=""})=>{const t=Dje(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},jz=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},Pje=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{Ia(r,"element",(i,o,a)=>{if(n&&i.tagName==="pre"&&i&&Array.isArray(i.children)&&a&&Array.isArray(a.children)&&a.children.length>1){const s=i.children[0];if(s&&s.tagName==="code"&&typeof o=="number"){const l=Nje(a.children,o);if(l){const u=Uz(l);Object.keys(u).length>0&&(i.properties={...i.properties,"data-type":"rehyp"},s.properties=jz(s.properties,u,t))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(i.tagName)&&a&&Array.isArray(a.children)&&typeof o=="number"){const s=Rte(a.children,o,"",n);if(s){const l=Uz(s);Object.keys(l).length>0&&(i.properties=jz(i.properties,l,t))}}})}},Lje=Pje;var Mje=function(t){return n=>{Ia(n,r=>{r.type==="element"&&r.tagName==="code"&&r.data&&r.data.meta&&(r.properties=P({},r.properties,{"data-meta":String(r.data.meta)}))})}},$je=function(t){return n=>{Ia(n,r=>{r.type==="element"&&r.tagName==="code"&&r.properties&&r.properties.dataMeta&&(r.data||(r.data={}),r.data.meta=r.properties.dataMeta,delete r.properties.dataMeta)})}};const Fje=/[\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,Bje=Object.hasOwnProperty;class Uje{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let i=jje(t,n===!0);const o=i;for(;Bje.call(r.occurrences,i);)r.occurrences[o]++,i=o+"-"+r.occurrences[o];return r.occurrences[i]=0,i}reset(){this.occurrences=Object.create(null)}}function jje(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(Fje,"").replace(/ /g,"-"))}function Ite(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 zje={},zz=new Uje;function Vje(e){const n=(e||zje).prefix||"";return function(r){zz.reset(),Ia(r,"element",function(i){Ite(i)&&!i.properties.id&&(i.properties.id=n+zz.slug(qh(i)))})}}const Dte=function(e){if(e==null)return Qje;if(typeof e=="string")return Wje(e);if(typeof e=="object")return Hje(e);if(typeof e=="function")return b$(e);throw new Error("Expected function, string, or array as `test`")};function Hje(e){const t=[];let n=-1;for(;++n{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{Ia(r,(i,o,a)=>{if(i.type==="element"||i.type==="root"){let s=!1;i.children=i.children.filter(l=>{if(l.type==="raw"||l.type==="comment"){let u=(l.value||"").trim();if(u=u.replace(/^/,"$1"),u===t)return s=!0,!1;if(u===n)return s=!1,!1}return!s})}})}},Xje=Zje;var Kje={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 Jje(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 eze=(e,t)=>(n,r,i)=>{if(n.type==="element"&&i&&i.type==="root"&&/h(1|2|3|4|5|6)/.test(n.tagName)){var o=n.children&&n.children[0];o&&o.properties&&o.properties.ariaHidden==="true"&&(o.properties=P({class:"anchor"},o.properties),o.children=[Kje])}if(n.type==="element"&&n.tagName==="pre"&&!e){var a=_te(n.children);n.children.push(Jje(a))}t&&t(n,r===null?void 0:r,i===null?void 0:i)},tze=[Vje,qje,Xje];const nze=Qt.forwardRef((e,t)=>{var n,r=[Mje,fte,$je,[g9e,{ignoreMissing:!0}],...tze,[Ije,{rewrite:eze((n=e.disableCopy)!=null?n:!1,e.rehypeRewrite)}],[Lje,{properties:"attr"}],...e.rehypePlugins||[]];return M.jsx(MUe,P({},e,{rehypePlugins:r,ref:t}))});function Wz(){const e=bP(),t=_c(jk),[n,r]=I.useState("");return I.useEffect(()=>{var o,a;if(!t.doc)return;r(((a=(o=t.doc)==null?void 0:o.getRoot().content)==null?void 0:a.toString())||"");const i=t.doc.subscribe("$.content",()=>{var s;r((s=t.doc)==null?void 0:s.getRoot().content.toString())});return()=>{i(),r("")}},[t.doc]),t!=null&&t.doc?M.jsx(nze,{source:n,wrapperElement:{"data-color-mode":e}}):M.jsx(Sg,{sx:{marginX:"auto",mt:4}})}var Yg=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(){}},cg=typeof window>"u"||"Deno"in window;function Is(){}function rze(e,t){return typeof e=="function"?e(t):e}function II(e){return typeof e=="number"&&e>=0&&e!==1/0}function Pte(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Qz(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a){if(r){if(t.queryHash!==O$(a,t.options))return!1}else if(!s1(t.queryKey,a))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||typeof i<"u"&&i!==t.state.fetchStatus||o&&!o(t))}function Yz(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Ap(t.options.mutationKey)!==Ap(o))return!1}else if(!s1(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function O$(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ap)(e)}function Ap(e){return JSON.stringify(e,(t,n)=>DI(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function s1(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!s1(e[n],t[n])):!1}function Lte(e,t){if(e===t)return e;const n=Gz(e)&&Gz(t);if(n||DI(e)&&DI(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),a=o.length,s=n?[]:{};let l=0;for(let u=0;u"u")return!0;const n=t.prototype;return!(!qz(n)||!n.hasOwnProperty("isPrototypeOf"))}function qz(e){return Object.prototype.toString.call(e)==="[object Object]"}function ize(e){return new Promise(t=>{setTimeout(t,e)})}function NI(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Lte(e,t):t}function oze(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function aze(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Gf,od,Sm,$V,sze=($V=class extends Yg{constructor(){super();Xt(this,Gf,void 0);Xt(this,od,void 0);Xt(this,Sm,void 0);Bt(this,Sm,t=>{if(!cg&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){ke(this,od)||this.setEventListener(ke(this,Sm))}onUnsubscribe(){var t;this.hasListeners()||((t=ke(this,od))==null||t.call(this),Bt(this,od,void 0))}setEventListener(t){var n;Bt(this,Sm,t),(n=ke(this,od))==null||n.call(this),Bt(this,od,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){ke(this,Gf)!==t&&(Bt(this,Gf,t),this.onFocus())}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){var t;return typeof ke(this,Gf)=="boolean"?ke(this,Gf):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Gf=new WeakMap,od=new WeakMap,Sm=new WeakMap,$V),tw=new sze,Tm,ad,wm,FV,lze=(FV=class extends Yg{constructor(){super();Xt(this,Tm,!0);Xt(this,ad,void 0);Xt(this,wm,void 0);Bt(this,wm,t=>{if(!cg&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){ke(this,ad)||this.setEventListener(ke(this,wm))}onUnsubscribe(){var t;this.hasListeners()||((t=ke(this,ad))==null||t.call(this),Bt(this,ad,void 0))}setEventListener(t){var n;Bt(this,wm,t),(n=ke(this,ad))==null||n.call(this),Bt(this,ad,t(this.setOnline.bind(this)))}setOnline(t){ke(this,Tm)!==t&&(Bt(this,Tm,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return ke(this,Tm)}},Tm=new WeakMap,ad=new WeakMap,wm=new WeakMap,FV),nw=new lze;function uze(e){return Math.min(1e3*2**e,3e4)}function Rx(e){return(e??"online")==="online"?nw.isOnline():!0}var Mte=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function m2(e){return e instanceof Mte}function $te(e){let t=!1,n=0,r=!1,i,o,a;const s=new Promise((O,y)=>{o=O,a=y}),l=O=>{var y;r||(h(new Mte(O)),(y=e.abort)==null||y.call(e))},u=()=>{t=!0},c=()=>{t=!1},d=()=>!tw.isFocused()||e.networkMode!=="always"&&!nw.isOnline(),p=O=>{var y;r||(r=!0,(y=e.onSuccess)==null||y.call(e,O),i==null||i(),o(O))},h=O=>{var y;r||(r=!0,(y=e.onError)==null||y.call(e,O),i==null||i(),a(O))},m=()=>new Promise(O=>{var y;i=v=>{const S=r||!d();return S&&O(v),S},(y=e.onPause)==null||y.call(e)}).then(()=>{var O;i=void 0,r||(O=e.onContinue)==null||O.call(e)}),b=()=>{if(r)return;let O;try{O=e.fn()}catch(y){O=Promise.reject(y)}Promise.resolve(O).then(p).catch(y=>{var w;if(r)return;const v=e.retry??(cg?0:3),S=e.retryDelay??uze,k=typeof S=="function"?S(n,y):S,C=v===!0||typeof v=="number"&&n{if(d())return m()}).then(()=>{t?h(y):b()})})};return Rx(e.networkMode)?b():m().then(b),{promise:s,cancel:l,continue:()=>(i==null?void 0:i())?s:Promise.resolve(),cancelRetry:u,continueRetry:c}}function cze(){let e=[],t=0,n=p=>{p()},r=p=>{p()},i=p=>setTimeout(p,0);const o=p=>{i=p},a=p=>{let h;t++;try{h=p()}finally{t--,t||u()}return h},s=p=>{t?e.push(p):i(()=>{n(p)})},l=p=>(...h)=>{s(()=>{p(...h)})},u=()=>{const p=e;e=[],p.length&&i(()=>{r(()=>{p.forEach(h=>{n(h)})})})};return{batch:a,batchCalls:l,schedule:s,setNotifyFunction:p=>{n=p},setBatchNotifyFunction:p=>{r=p},setScheduler:o}}var Ni=cze(),qf,BV,Fte=(BV=class{constructor(){Xt(this,qf,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),II(this.gcTime)&&Bt(this,qf,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(cg?1/0:5*60*1e3))}clearGcTimeout(){ke(this,qf)&&(clearTimeout(ke(this,qf)),Bt(this,qf,void 0))}},qf=new WeakMap,BV),km,xm,Cs,sd,As,Qi,y1,Zf,Cm,uS,fl,Ku,UV,dze=(UV=class extends Fte{constructor(t){super();Xt(this,Cm);Xt(this,fl);Xt(this,km,void 0);Xt(this,xm,void 0);Xt(this,Cs,void 0);Xt(this,sd,void 0);Xt(this,As,void 0);Xt(this,Qi,void 0);Xt(this,y1,void 0);Xt(this,Zf,void 0);Bt(this,Zf,!1),Bt(this,y1,t.defaultOptions),Tn(this,Cm,uS).call(this,t.options),Bt(this,Qi,[]),Bt(this,Cs,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Bt(this,km,t.state||fze(this.options)),this.state=ke(this,km),this.scheduleGc()}get meta(){return this.options.meta}optionalRemove(){!ke(this,Qi).length&&this.state.fetchStatus==="idle"&&ke(this,Cs).remove(this)}setData(t,n){const r=NI(this.state.data,t,this.options);return Tn(this,fl,Ku).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Tn(this,fl,Ku).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r;const n=ke(this,sd);return(r=ke(this,As))==null||r.cancel(t),n?n.then(Is).catch(Is):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(ke(this,km))}isActive(){return ke(this,Qi).some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||ke(this,Qi).some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!Pte(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=ke(this,Qi).find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=ke(this,As))==null||n.continue()}onOnline(){var n;const t=ke(this,Qi).find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=ke(this,As))==null||n.continue()}addObserver(t){ke(this,Qi).includes(t)||(ke(this,Qi).push(t),this.clearGcTimeout(),ke(this,Cs).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){ke(this,Qi).includes(t)&&(Bt(this,Qi,ke(this,Qi).filter(n=>n!==t)),ke(this,Qi).length||(ke(this,As)&&(ke(this,Zf)?ke(this,As).cancel({revert:!0}):ke(this,As).cancelRetry()),this.scheduleGc()),ke(this,Cs).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return ke(this,Qi).length}invalidate(){this.state.isInvalidated||Tn(this,fl,Ku).call(this,{type:"invalidate"})}fetch(t,n){var u,c,d,p;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(ke(this,sd))return(u=ke(this,As))==null||u.continueRetry(),ke(this,sd)}if(t&&Tn(this,Cm,uS).call(this,t),!this.options.queryFn){const h=ke(this,Qi).find(m=>m.options.queryFn);h&&Tn(this,Cm,uS).call(this,h.options)}const r=new AbortController,i={queryKey:this.queryKey,meta:this.meta},o=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(Bt(this,Zf,!0),r.signal)})};o(i);const a=()=>this.options.queryFn?(Bt(this,Zf,!1),this.options.persister?this.options.persister(this.options.queryFn,i,this):this.options.queryFn(i)):Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)),s={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};o(s),(c=this.options.behavior)==null||c.onFetch(s,this),Bt(this,xm,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=s.fetchOptions)==null?void 0:d.meta))&&Tn(this,fl,Ku).call(this,{type:"fetch",meta:(p=s.fetchOptions)==null?void 0:p.meta});const l=h=>{var m,b,O,y;m2(h)&&h.silent||Tn(this,fl,Ku).call(this,{type:"error",error:h}),m2(h)||((b=(m=ke(this,Cs).config).onError)==null||b.call(m,h,this),(y=(O=ke(this,Cs).config).onSettled)==null||y.call(O,this.state.data,h,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return Bt(this,As,$te({fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:h=>{var m,b,O,y;if(typeof h>"u"){l(new Error(`${this.queryHash} data is undefined`));return}this.setData(h),(b=(m=ke(this,Cs).config).onSuccess)==null||b.call(m,h,this),(y=(O=ke(this,Cs).config).onSettled)==null||y.call(O,h,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(h,m)=>{Tn(this,fl,Ku).call(this,{type:"failed",failureCount:h,error:m})},onPause:()=>{Tn(this,fl,Ku).call(this,{type:"pause"})},onContinue:()=>{Tn(this,fl,Ku).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode})),Bt(this,sd,ke(this,As).promise),ke(this,sd)}},km=new WeakMap,xm=new WeakMap,Cs=new WeakMap,sd=new WeakMap,As=new WeakMap,Qi=new WeakMap,y1=new WeakMap,Zf=new WeakMap,Cm=new WeakSet,uS=function(t){this.options={...ke(this,y1),...t},this.updateGcTime(this.options.gcTime)},fl=new WeakSet,Ku=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:t.meta??null,fetchStatus:Rx(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"pending"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return m2(i)&&i.revert&&ke(this,xm)?{...ke(this,xm),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),Ni.batch(()=>{ke(this,Qi).forEach(r=>{r.onQueryUpdate()}),ke(this,Cs).notify({query:this,type:"updated",action:t})})},UV);function fze(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=typeof t<"u",r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var ou,jV,Bte=(jV=class extends Yg{constructor(t={}){super();Xt(this,ou,void 0);this.config=t,Bt(this,ou,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??O$(i,n);let a=this.get(o);return a||(a=new dze({cache:this,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(a)),a}add(t){ke(this,ou).has(t.queryHash)||(ke(this,ou).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=ke(this,ou).get(t.queryHash);n&&(t.destroy(),n===t&&ke(this,ou).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ni.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return ke(this,ou).get(t)}getAll(){return[...ke(this,ou).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Qz(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Qz(t,r)):n}notify(t){Ni.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ni.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ni.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ou=new WeakMap,jV),au,O1,Ga,Am,su,Gc,zV,pze=(zV=class extends Fte{constructor(t){super();Xt(this,su);Xt(this,au,void 0);Xt(this,O1,void 0);Xt(this,Ga,void 0);Xt(this,Am,void 0);this.mutationId=t.mutationId,Bt(this,O1,t.defaultOptions),Bt(this,Ga,t.mutationCache),Bt(this,au,[]),this.state=t.state||Ute(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...ke(this,O1),...t},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){ke(this,au).includes(t)||(ke(this,au).push(t),this.clearGcTimeout(),ke(this,Ga).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Bt(this,au,ke(this,au).filter(n=>n!==t)),this.scheduleGc(),ke(this,Ga).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){ke(this,au).length||(this.state.status==="pending"?this.scheduleGc():ke(this,Ga).remove(this))}continue(){var t;return((t=ke(this,Am))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,a,s,l,u,c,d,p,h,m,b,O,y,v,S,k,C,w,E;const n=()=>(Bt(this,Am,$te({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:($,N)=>{Tn(this,su,Gc).call(this,{type:"failed",failureCount:$,error:N})},onPause:()=>{Tn(this,su,Gc).call(this,{type:"pause"})},onContinue:()=>{Tn(this,su,Gc).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),ke(this,Am).promise),r=this.state.status==="pending";try{if(!r){Tn(this,su,Gc).call(this,{type:"pending",variables:t}),await((o=(i=ke(this,Ga).config).onMutate)==null?void 0:o.call(i,t,this));const N=await((s=(a=this.options).onMutate)==null?void 0:s.call(a,t));N!==this.state.context&&Tn(this,su,Gc).call(this,{type:"pending",context:N,variables:t})}const $=await n();return await((u=(l=ke(this,Ga).config).onSuccess)==null?void 0:u.call(l,$,t,this.state.context,this)),await((d=(c=this.options).onSuccess)==null?void 0:d.call(c,$,t,this.state.context)),await((h=(p=ke(this,Ga).config).onSettled)==null?void 0:h.call(p,$,null,this.state.variables,this.state.context,this)),await((b=(m=this.options).onSettled)==null?void 0:b.call(m,$,null,t,this.state.context)),Tn(this,su,Gc).call(this,{type:"success",data:$}),$}catch($){try{throw await((y=(O=ke(this,Ga).config).onError)==null?void 0:y.call(O,$,t,this.state.context,this)),await((S=(v=this.options).onError)==null?void 0:S.call(v,$,t,this.state.context)),await((C=(k=ke(this,Ga).config).onSettled)==null?void 0:C.call(k,void 0,$,this.state.variables,this.state.context,this)),await((E=(w=this.options).onSettled)==null?void 0:E.call(w,void 0,$,t,this.state.context)),$}finally{Tn(this,su,Gc).call(this,{type:"error",error:$})}}}},au=new WeakMap,O1=new WeakMap,Ga=new WeakMap,Am=new WeakMap,su=new WeakSet,Gc=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:!Rx(this.options.networkMode),status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Ni.batch(()=>{ke(this,au).forEach(r=>{r.onMutationUpdate(t)}),ke(this,Ga).notify({mutation:this,type:"updated",action:t})})},zV);function Ute(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var _s,v1,Xf,VV,hze=(VV=class extends Yg{constructor(t={}){super();Xt(this,_s,void 0);Xt(this,v1,void 0);Xt(this,Xf,void 0);this.config=t,Bt(this,_s,[]),Bt(this,v1,0)}build(t,n,r){const i=new pze({mutationCache:this,mutationId:++XO(this,v1)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){ke(this,_s).push(t),this.notify({type:"added",mutation:t})}remove(t){Bt(this,_s,ke(this,_s).filter(n=>n!==t)),this.notify({type:"removed",mutation:t})}clear(){Ni.batch(()=>{ke(this,_s).forEach(t=>{this.remove(t)})})}getAll(){return ke(this,_s)}find(t){const n={exact:!0,...t};return ke(this,_s).find(r=>Yz(n,r))}findAll(t={}){return ke(this,_s).filter(n=>Yz(t,n))}notify(t){Ni.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){return Bt(this,Xf,(ke(this,Xf)??Promise.resolve()).then(()=>{const t=ke(this,_s).filter(n=>n.state.isPaused);return Ni.batch(()=>t.reduce((n,r)=>n.then(()=>r.continue().catch(Is)),Promise.resolve()))}).then(()=>{Bt(this,Xf,void 0)})),ke(this,Xf)}},_s=new WeakMap,v1=new WeakMap,Xf=new WeakMap,VV);function PI(e){return{onFetch:(t,n)=>{const r=async()=>{var m,b,O,y,v;const i=t.options,o=(O=(b=(m=t.fetchOptions)==null?void 0:m.meta)==null?void 0:b.fetchMore)==null?void 0:O.direction,a=((y=t.state.data)==null?void 0:y.pages)||[],s=((v=t.state.data)==null?void 0:v.pageParams)||[],l={pages:[],pageParams:[]};let u=!1;const c=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},d=t.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${t.options.queryHash}'`))),p=async(S,k,C)=>{if(u)return Promise.reject();if(k==null&&S.pages.length)return Promise.resolve(S);const w={queryKey:t.queryKey,pageParam:k,direction:C?"backward":"forward",meta:t.options.meta};c(w);const E=await d(w),{maxPages:$}=t.options,N=C?aze:oze;return{pages:N(S.pages,E,$),pageParams:N(S.pageParams,k,$)}};let h;if(o&&a.length){const S=o==="backward",k=S?jte:LI,C={pages:a,pageParams:s},w=k(i,C);h=await p(C,w,S)}else{h=await p(l,s[0]??i.initialPageParam);const S=e??a.length;for(let k=1;k{var i,o;return(o=(i=t.options).persister)==null?void 0:o.call(i,r,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=r}}}function LI(e,{pages:t,pageParams:n}){const r=t.length-1;return e.getNextPageParam(t[r],t,n[r],n)}function jte(e,{pages:t,pageParams:n}){var r;return(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n)}function mze(e,t){return t?LI(e,t)!=null:!1}function gze(e,t){return!t||!e.getPreviousPageParam?!1:jte(e,t)!=null}var _i,ld,ud,_m,Rm,cd,Im,Dm,HV,bze=(HV=class{constructor(e={}){Xt(this,_i,void 0);Xt(this,ld,void 0);Xt(this,ud,void 0);Xt(this,_m,void 0);Xt(this,Rm,void 0);Xt(this,cd,void 0);Xt(this,Im,void 0);Xt(this,Dm,void 0);Bt(this,_i,e.queryCache||new Bte),Bt(this,ld,e.mutationCache||new hze),Bt(this,ud,e.defaultOptions||{}),Bt(this,_m,new Map),Bt(this,Rm,new Map),Bt(this,cd,0)}mount(){XO(this,cd)._++,ke(this,cd)===1&&(Bt(this,Im,tw.subscribe(()=>{tw.isFocused()&&(this.resumePausedMutations(),ke(this,_i).onFocus())})),Bt(this,Dm,nw.subscribe(()=>{nw.isOnline()&&(this.resumePausedMutations(),ke(this,_i).onOnline())})))}unmount(){var e,t;XO(this,cd)._--,ke(this,cd)===0&&((e=ke(this,Im))==null||e.call(this),Bt(this,Im,void 0),(t=ke(this,Dm))==null||t.call(this),Bt(this,Dm,void 0))}isFetching(e){return ke(this,_i).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return ke(this,ld).findAll({...e,status:"pending"}).length}getQueryData(e){var t;return(t=ke(this,_i).find({queryKey:e}))==null?void 0:t.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);return t!==void 0?Promise.resolve(t):this.fetchQuery(e)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=ke(this,_i).find({queryKey:e}),i=r==null?void 0:r.state.data,o=rze(t,i);if(typeof o>"u")return;const a=this.defaultQueryOptions({queryKey:e});return ke(this,_i).build(this,a).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Ni.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var t;return(t=ke(this,_i).find({queryKey:e}))==null?void 0:t.state}removeQueries(e){const t=ke(this,_i);Ni.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=ke(this,_i),r={type:"active",...e};return Ni.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Ni.batch(()=>ke(this,_i).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Is).catch(Is)}invalidateQueries(e={},t={}){return Ni.batch(()=>{if(ke(this,_i).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=Ni.batch(()=>ke(this,_i).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(Is)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(Is)}fetchQuery(e){const t=this.defaultQueryOptions(e);typeof t.retry>"u"&&(t.retry=!1);const n=ke(this,_i).build(this,t);return n.isStaleByTime(t.staleTime)?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Is).catch(Is)}fetchInfiniteQuery(e){return e.behavior=PI(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Is).catch(Is)}resumePausedMutations(){return ke(this,ld).resumePausedMutations()}getQueryCache(){return ke(this,_i)}getMutationCache(){return ke(this,ld)}getDefaultOptions(){return ke(this,ud)}setDefaultOptions(e){Bt(this,ud,e)}setQueryDefaults(e,t){ke(this,_m).set(Ap(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...ke(this,_m).values()];let n={};return t.forEach(r=>{s1(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){ke(this,Rm).set(Ap(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...ke(this,Rm).values()];let n={};return t.forEach(r=>{s1(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e!=null&&e._defaulted)return e;const t={...ke(this,ud).queries,...(e==null?void 0:e.queryKey)&&this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=O$(t.queryKey,t)),typeof t.refetchOnReconnect>"u"&&(t.refetchOnReconnect=t.networkMode!=="always"),typeof t.throwOnError>"u"&&(t.throwOnError=!!t.suspense),typeof t.networkMode>"u"&&t.persister&&(t.networkMode="offlineFirst"),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...ke(this,ud).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){ke(this,_i).clear(),ke(this,ld).clear()}},_i=new WeakMap,ld=new WeakMap,ud=new WeakMap,_m=new WeakMap,Rm=new WeakMap,cd=new WeakMap,Im=new WeakMap,Dm=new WeakMap,HV),ba,Rr,E1,Xo,Kf,Nm,lu,S1,Pm,Lm,Jf,ep,dd,Mm,tp,lb,T1,MI,w1,$I,k1,FI,x1,BI,C1,UI,A1,jI,_1,zI,mw,Vte,WV,zte=(WV=class extends Yg{constructor(t,n){super();Xt(this,tp);Xt(this,T1);Xt(this,w1);Xt(this,k1);Xt(this,x1);Xt(this,C1);Xt(this,A1);Xt(this,_1);Xt(this,mw);Xt(this,ba,void 0);Xt(this,Rr,void 0);Xt(this,E1,void 0);Xt(this,Xo,void 0);Xt(this,Kf,void 0);Xt(this,Nm,void 0);Xt(this,lu,void 0);Xt(this,S1,void 0);Xt(this,Pm,void 0);Xt(this,Lm,void 0);Xt(this,Jf,void 0);Xt(this,ep,void 0);Xt(this,dd,void 0);Xt(this,Mm,new Set);this.options=n,Bt(this,ba,t),Bt(this,lu,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(ke(this,Rr).addObserver(this),Zz(ke(this,Rr),this.options)?Tn(this,tp,lb).call(this):this.updateResult(),Tn(this,x1,BI).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return VI(ke(this,Rr),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return VI(ke(this,Rr),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Tn(this,C1,UI).call(this),Tn(this,A1,jI).call(this),ke(this,Rr).removeObserver(this)}setOptions(t,n){const r=this.options,i=ke(this,Rr);if(this.options=ke(this,ba).defaultQueryOptions(t),ew(r,this.options)||ke(this,ba).getQueryCache().notify({type:"observerOptionsUpdated",query:ke(this,Rr),observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),Tn(this,_1,zI).call(this);const o=this.hasListeners();o&&Xz(ke(this,Rr),i,this.options,r)&&Tn(this,tp,lb).call(this),this.updateResult(n),o&&(ke(this,Rr)!==i||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&Tn(this,T1,MI).call(this);const a=Tn(this,w1,$I).call(this);o&&(ke(this,Rr)!==i||this.options.enabled!==r.enabled||a!==ke(this,dd))&&Tn(this,k1,FI).call(this,a)}getOptimisticResult(t){const n=ke(this,ba).getQueryCache().build(ke(this,ba),t),r=this.createResult(n,t);return Oze(this,r)&&(Bt(this,Xo,r),Bt(this,Nm,this.options),Bt(this,Kf,ke(this,Rr).state)),r}getCurrentResult(){return ke(this,Xo)}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(ke(this,Mm).add(r),t[r])})}),n}getCurrentQuery(){return ke(this,Rr)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=ke(this,ba).defaultQueryOptions(t),r=ke(this,ba).getQueryCache().build(ke(this,ba),n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){return Tn(this,tp,lb).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),ke(this,Xo)))}createResult(t,n){var w;const r=ke(this,Rr),i=this.options,o=ke(this,Xo),a=ke(this,Kf),s=ke(this,Nm),u=t!==r?t.state:ke(this,E1),{state:c}=t;let{error:d,errorUpdatedAt:p,fetchStatus:h,status:m}=c,b=!1,O;if(n._optimisticResults){const E=this.hasListeners(),$=!E&&Zz(t,n),N=E&&Xz(t,r,n,i);($||N)&&(h=Rx(t.options.networkMode)?"fetching":"paused",c.dataUpdatedAt||(m="pending")),n._optimisticResults==="isRestoring"&&(h="idle")}if(n.select&&typeof c.data<"u")if(o&&c.data===(a==null?void 0:a.data)&&n.select===ke(this,S1))O=ke(this,Pm);else try{Bt(this,S1,n.select),O=n.select(c.data),O=NI(o==null?void 0:o.data,O,n),Bt(this,Pm,O),Bt(this,lu,null)}catch(E){Bt(this,lu,E)}else O=c.data;if(typeof n.placeholderData<"u"&&typeof O>"u"&&m==="pending"){let E;if(o!=null&&o.isPlaceholderData&&n.placeholderData===(s==null?void 0:s.placeholderData))E=o.data;else if(E=typeof n.placeholderData=="function"?n.placeholderData((w=ke(this,Lm))==null?void 0:w.state.data,ke(this,Lm)):n.placeholderData,n.select&&typeof E<"u")try{E=n.select(E),Bt(this,lu,null)}catch($){Bt(this,lu,$)}typeof E<"u"&&(m="success",O=NI(o==null?void 0:o.data,E,n),b=!0)}ke(this,lu)&&(d=ke(this,lu),O=ke(this,Pm),p=Date.now(),m="error");const y=h==="fetching",v=m==="pending",S=m==="error",k=v&&y;return{status:m,fetchStatus:h,isPending:v,isSuccess:m==="success",isError:S,isInitialLoading:k,isLoading:k,data:O,dataUpdatedAt:c.dataUpdatedAt,error:d,errorUpdatedAt:p,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:y,isRefetching:y&&!v,isLoadingError:S&&c.dataUpdatedAt===0,isPaused:h==="paused",isPlaceholderData:b,isRefetchError:S&&c.dataUpdatedAt!==0,isStale:v$(t,n),refetch:this.refetch}}updateResult(t){const n=ke(this,Xo),r=this.createResult(ke(this,Rr),this.options);if(Bt(this,Kf,ke(this,Rr).state),Bt(this,Nm,this.options),ke(this,Kf).data!==void 0&&Bt(this,Lm,ke(this,Rr)),ew(r,n))return;Bt(this,Xo,r);const i={},o=()=>{if(!n)return!0;const{notifyOnChangeProps:a}=this.options,s=typeof a=="function"?a():a;if(s==="all"||!s&&!ke(this,Mm).size)return!0;const l=new Set(s??ke(this,Mm));return this.options.throwOnError&&l.add("error"),Object.keys(ke(this,Xo)).some(u=>{const c=u;return ke(this,Xo)[c]!==n[c]&&l.has(c)})};(t==null?void 0:t.listeners)!==!1&&o()&&(i.listeners=!0),Tn(this,mw,Vte).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Tn(this,x1,BI).call(this)}},ba=new WeakMap,Rr=new WeakMap,E1=new WeakMap,Xo=new WeakMap,Kf=new WeakMap,Nm=new WeakMap,lu=new WeakMap,S1=new WeakMap,Pm=new WeakMap,Lm=new WeakMap,Jf=new WeakMap,ep=new WeakMap,dd=new WeakMap,Mm=new WeakMap,tp=new WeakSet,lb=function(t){Tn(this,_1,zI).call(this);let n=ke(this,Rr).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Is)),n},T1=new WeakSet,MI=function(){if(Tn(this,C1,UI).call(this),cg||ke(this,Xo).isStale||!II(this.options.staleTime))return;const n=Pte(ke(this,Xo).dataUpdatedAt,this.options.staleTime)+1;Bt(this,Jf,setTimeout(()=>{ke(this,Xo).isStale||this.updateResult()},n))},w1=new WeakSet,$I=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(ke(this,Rr)):this.options.refetchInterval)??!1},k1=new WeakSet,FI=function(t){Tn(this,A1,jI).call(this),Bt(this,dd,t),!(cg||this.options.enabled===!1||!II(ke(this,dd))||ke(this,dd)===0)&&Bt(this,ep,setInterval(()=>{(this.options.refetchIntervalInBackground||tw.isFocused())&&Tn(this,tp,lb).call(this)},ke(this,dd)))},x1=new WeakSet,BI=function(){Tn(this,T1,MI).call(this),Tn(this,k1,FI).call(this,Tn(this,w1,$I).call(this))},C1=new WeakSet,UI=function(){ke(this,Jf)&&(clearTimeout(ke(this,Jf)),Bt(this,Jf,void 0))},A1=new WeakSet,jI=function(){ke(this,ep)&&(clearInterval(ke(this,ep)),Bt(this,ep,void 0))},_1=new WeakSet,zI=function(){const t=ke(this,ba).getQueryCache().build(ke(this,ba),this.options);if(t===ke(this,Rr))return;const n=ke(this,Rr);Bt(this,Rr,t),Bt(this,E1,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},mw=new WeakSet,Vte=function(t){Ni.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(ke(this,Xo))}),ke(this,ba).getQueryCache().notify({query:ke(this,Rr),type:"observerResultsUpdated"})})},WV);function yze(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Zz(e,t){return yze(e,t)||e.state.dataUpdatedAt>0&&VI(e,t,t.refetchOnMount)}function VI(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&v$(e,t)}return!1}function Xz(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&v$(e,n)}function v$(e,t){return e.isStaleByTime(t.staleTime)}function Oze(e,t){return!ew(e.getCurrentResult(),t)}var vze=class extends zte{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:PI()},t)}getOptimisticResult(e){return e.behavior=PI(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){var l,u,c,d;const{state:n}=e,r=super.createResult(e,t),{isFetching:i,isRefetching:o}=r,a=i&&((u=(l=n.fetchMeta)==null?void 0:l.fetchMore)==null?void 0:u.direction)==="forward",s=i&&((d=(c=n.fetchMeta)==null?void 0:c.fetchMore)==null?void 0:d.direction)==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:mze(t,n.data),hasPreviousPage:gze(t,n.data),isFetchingNextPage:a,isFetchingPreviousPage:s,isRefetching:o&&!a&&!s}}},fd,rc,qa,ic,$m,cS,R1,HI,QV,Eze=(QV=class extends Yg{constructor(n,r){super();Xt(this,$m);Xt(this,R1);Xt(this,fd,void 0);Xt(this,rc,void 0);Xt(this,qa,void 0);Xt(this,ic,void 0);Bt(this,rc,void 0),Bt(this,fd,n),this.setOptions(r),this.bindMethods(),Tn(this,$m,cS).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var i;const r=this.options;this.options=ke(this,fd).defaultMutationOptions(n),ew(r,this.options)||ke(this,fd).getMutationCache().notify({type:"observerOptionsUpdated",mutation:ke(this,qa),observer:this}),(i=ke(this,qa))==null||i.setOptions(this.options),r!=null&&r.mutationKey&&this.options.mutationKey&&Ap(r.mutationKey)!==Ap(this.options.mutationKey)&&this.reset()}onUnsubscribe(){var n;this.hasListeners()||(n=ke(this,qa))==null||n.removeObserver(this)}onMutationUpdate(n){Tn(this,$m,cS).call(this),Tn(this,R1,HI).call(this,n)}getCurrentResult(){return ke(this,rc)}reset(){var n;(n=ke(this,qa))==null||n.removeObserver(this),Bt(this,qa,void 0),Tn(this,$m,cS).call(this),Tn(this,R1,HI).call(this)}mutate(n,r){var i;return Bt(this,ic,r),(i=ke(this,qa))==null||i.removeObserver(this),Bt(this,qa,ke(this,fd).getMutationCache().build(ke(this,fd),this.options)),ke(this,qa).addObserver(this),ke(this,qa).execute(n)}},fd=new WeakMap,rc=new WeakMap,qa=new WeakMap,ic=new WeakMap,$m=new WeakSet,cS=function(){var r;const n=((r=ke(this,qa))==null?void 0:r.state)??Ute();Bt(this,rc,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},R1=new WeakSet,HI=function(n){Ni.batch(()=>{var r,i,o,a,s,l,u,c;if(ke(this,ic)&&this.hasListeners()){const d=ke(this,rc).variables,p=ke(this,rc).context;(n==null?void 0:n.type)==="success"?((i=(r=ke(this,ic)).onSuccess)==null||i.call(r,n.data,d,p),(a=(o=ke(this,ic)).onSettled)==null||a.call(o,n.data,null,d,p)):(n==null?void 0:n.type)==="error"&&((l=(s=ke(this,ic)).onError)==null||l.call(s,n.error,d,p),(c=(u=ke(this,ic)).onSettled)==null||c.call(u,void 0,n.error,d,p))}this.listeners.forEach(d=>{d(ke(this,rc))})})},QV),Hte=I.createContext(void 0),E$=e=>{const t=I.useContext(Hte);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Sze=({client:e,children:t})=>(I.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),I.createElement(Hte.Provider,{value:e},t)),Wte=I.createContext(!1),Tze=()=>I.useContext(Wte);Wte.Provider;function wze(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var kze=I.createContext(wze()),xze=()=>I.useContext(kze);function Qte(e,t){return typeof e=="function"?e(...t):!!e}var Cze=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},Aze=e=>{I.useEffect(()=>{e.clearReset()},[e])},_ze=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&Qte(n,[e.error,r]),Rze=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},Ize=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Dze=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Yte(e,t,n){const r=E$(n),i=Tze(),o=xze(),a=r.defaultQueryOptions(e);a._optimisticResults=i?"isRestoring":"optimistic",Rze(a),Cze(a,o),Aze(o);const[s]=I.useState(()=>new t(r,a)),l=s.getOptimisticResult(a);if(I.useSyncExternalStore(I.useCallback(u=>{const c=i?()=>{}:s.subscribe(Ni.batchCalls(u));return s.updateResult(),c},[s,i]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),I.useEffect(()=>{s.setOptions(a,{listeners:!1})},[a,s]),Ize(a,l))throw Dze(a,s,o);if(_ze({result:l,errorResetBoundary:o,throwOnError:a.throwOnError,query:r.getQueryCache().get(a.queryHash)}))throw l.error;return a.notifyOnChangeProps?l:s.trackResult(l)}function S$(e,t){return Yte(e,zte,t)}function Gte(e,t){const n=E$(t),[r]=I.useState(()=>new Eze(n,e));I.useEffect(()=>{r.setOptions(e)},[r,e]);const i=I.useSyncExternalStore(I.useCallback(a=>r.subscribe(Ni.batchCalls(a)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),o=I.useCallback((a,s)=>{r.mutate(a,s).catch(Nze)},[r]);if(i.error&&Qte(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:o,mutateAsync:i.mutate}}function Nze(){}function T$(e,t){return Yte(e,vze,t)}const Pze=e=>["documents",e],Lze=e=>S$({queryKey:Pze(e||""),enabled:!!e,queryFn:async()=>(await cr.get(`/documents/${e}`)).data,meta:{errorMessage:"This is a non-existent or unauthorized Workspace."}});function Mze(){const e=K1(),t=kg(),n=GLe(),r=_c(jk),{data:i}=Lze(e.documentSlug||"");return I.useEffect(()=>{let o,a;return i!=null&&i.yorkieDocumentId?((async()=>{o=new rI.Client("https://api.yorkie.dev",{apiKey:"cmggkp8ksk14av0keupg"}),await o.activate(),a=new rI.Document(i==null?void 0:i.yorkieDocumentId),await o.attach(a,{initialPresence:{name:"Yorkie",color:MLe(fLe()).fade(.15).toString(),selection:null}}),t(R7(a)),t(I7(o))})(),()=>{(async()=>{await(o==null?void 0:o.deactivate()),t(R7(null)),t(I7(null))})()}):void 0},[t,i==null?void 0:i.yorkieDocumentId]),M.jsxs(Aa,{height:"calc(100% - 64px)",children:[M.jsx("div",{className:"wmde-markdown-var"}),r.mode==="both"&&M.jsx(jLe,{axis:"x",initial:n/2,min:400,children:({position:o,separatorProps:a})=>M.jsxs("div",{id:"wrapper",style:{display:"flex",height:"100%",overflow:"hidden"},children:[M.jsx("div",{id:"left-block",style:{width:o},children:M.jsx(uj,{})}),M.jsx(Da,{id:"splitter",...a,sx:{height:"100%",width:8,borderRadius:0,cursor:"col-resize",zIndex:100}}),M.jsx("div",{className:"right-block",style:{width:`calc(100% - ${o}px)`,overflow:"auto"},children:M.jsx(Aa,{sx:{p:4},height:"100%",children:M.jsx(Wz,{})})})]})}),r.mode==="read"&&M.jsx(Aa,{sx:{p:4,overflow:"auto"},height:"100%",children:M.jsx(Wz,{})}),r.mode==="edit"&&M.jsx(uj,{})]})}function $ze(){return M.jsx(Li,{sx:{flexGrow:1},gap:3,children:M.jsx(XN,{})})}function Fze(e){return M.jsx(jd,{...e,children:M.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:[M.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"}),M.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"}),M.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"})]})})}var Bze=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(r,i,o){n.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:o})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,i){if(1&i&&(r=n(r)),8&i||4&i&&typeof r=="object"&&r&&r.__esModule)return r;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:r}),2&i&&typeof r!="string")for(var a in r)n.d(o,a,(function(s){return r[s]}).bind(null,a));return o},n.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(i,"a",i),i},n.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},n.p="",n(n.s=4)}([function(e,t,n){e.exports=n(2)()},function(e,t){e.exports=I},function(e,t,n){var r=n(3);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function a(u,c,d,p,h,m){if(m!==r){var b=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw b.name="Invariant Violation",b}}function s(){return a}a.isRequired=a;var l={array:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:s,element:a,elementType:a,instanceOf:s,node:a,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:o,resetWarningCache:i};return l.PropTypes=l,l}},function(e,t,n){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){n.r(t),n.d(t,"FacebookLoginButton",function(){return q}),n.d(t,"GoogleLoginButton",function(){return j}),n.d(t,"GithubLoginButton",function(){return G}),n.d(t,"TwitterLoginButton",function(){return ue}),n.d(t,"AmazonLoginButton",function(){return Ve}),n.d(t,"InstagramLoginButton",function(){return Ye}),n.d(t,"LinkedInLoginButton",function(){return $e}),n.d(t,"MicrosoftLoginButton",function(){return Be}),n.d(t,"BufferLoginButton",function(){return J}),n.d(t,"TelegramLoginButton",function(){return De}),n.d(t,"AppleLoginButton",function(){return de}),n.d(t,"DiscordLoginButton",function(){return rt}),n.d(t,"OktaLoginButton",function(){return et}),n.d(t,"SlackLoginButton",function(){return it}),n.d(t,"YahooLoginButton",function(){return on}),n.d(t,"createButton",function(){return V}),n.d(t,"createSvgIcon",function(){return W}),n.d(t,"ZaloLoginButton",function(){return zn}),n.d(t,"TikTokLoginButton",function(){return pe}),n.d(t,"MetamaskLoginButton",function(){return $t});var r={};n.r(r),n.d(r,"FacebookLoginButton",function(){return q}),n.d(r,"GoogleLoginButton",function(){return j}),n.d(r,"GithubLoginButton",function(){return G}),n.d(r,"TwitterLoginButton",function(){return ue}),n.d(r,"AmazonLoginButton",function(){return Ve}),n.d(r,"InstagramLoginButton",function(){return Ye}),n.d(r,"LinkedInLoginButton",function(){return $e}),n.d(r,"MicrosoftLoginButton",function(){return Be}),n.d(r,"BufferLoginButton",function(){return J}),n.d(r,"TelegramLoginButton",function(){return De}),n.d(r,"AppleLoginButton",function(){return de}),n.d(r,"DiscordLoginButton",function(){return rt}),n.d(r,"OktaLoginButton",function(){return et}),n.d(r,"SlackLoginButton",function(){return it}),n.d(r,"YahooLoginButton",function(){return on}),n.d(r,"createButton",function(){return V}),n.d(r,"createSvgIcon",function(){return W}),n.d(r,"ZaloLoginButton",function(){return zn}),n.d(r,"TikTokLoginButton",function(){return pe}),n.d(r,"MetamaskLoginButton",function(){return $t});var i=n(1),o=n.n(i),a=n(0),s=n.n(a),l=function(Ie){var we=Ie.name,Qe=Ie.size,ot=Ie.format;return o.a.createElement("i",{className:ot(we),style:{fontSize:Qe}})};l.propTypes={format:s.a.func,name:s.a.string.isRequired,size:s.a.oneOfType([s.a.string,s.a.number]).isRequired},l.defaultProps={format:function(Ie){return"demo-icon icon-".concat(Ie)},size:26};var u=l,c=function(Ie){var we=Ie.type,Qe=Ie.size,ot=Ie.format,rn=Ie.color,Wt=rn===void 0?"#FFFFFF":rn;return typeof we=="string"?o.a.createElement(u,{format:ot,name:we,size:Qe}):o.a.createElement(we,{size:Qe,color:Wt})};c.propTypes={format:s.a.func,size:s.a.oneOfType([s.a.number,s.a.string]),type:s.a.oneOfType([s.a.string,s.a.node,s.a.func]),color:s.a.string};var d=c;function p(Ie,we){var Qe=Object.keys(Ie);if(Object.getOwnPropertySymbols){var ot=Object.getOwnPropertySymbols(Ie);we&&(ot=ot.filter(function(rn){return Object.getOwnPropertyDescriptor(Ie,rn).enumerable})),Qe.push.apply(Qe,ot)}return Qe}function h(Ie){for(var we=1;we"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var Qe,ot=C(Ie);if(we){var rn=C(this).constructor;Qe=Reflect.construct(ot,arguments,rn)}else Qe=ot.apply(this,arguments);return k(this,Qe)}}function k(Ie,we){return!we||b(we)!=="object"&&typeof we!="function"?function(Qe){if(Qe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Qe}(Ie):we}function C(Ie){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(we){return we.__proto__||Object.getPrototypeOf(we)})(Ie)}var w=function(Ie){(function(Wt,mn){if(typeof mn!="function"&&mn!==null)throw new TypeError("Super expression must either be null or a function");Wt.prototype=Object.create(mn&&mn.prototype,{constructor:{value:Wt,writable:!0,configurable:!0}}),mn&&v(Wt,mn)})(rn,Ie);var we,Qe,ot=S(rn);function rn(Wt){var mn;return function(tr,Ue){if(!(tr instanceof Ue))throw new TypeError("Cannot call a class as a function")}(this,rn),(mn=ot.call(this,Wt)).state={focused:!1,hovered:!1},mn.handleMouseEnter=function(){mn.setState({hovered:!0}),typeof mn.props.onMouseEnter=="function"&&mn.props.onMouseEnter()},mn.handleMouseLeave=function(){mn.setState({hovered:!1}),typeof mn.props.onMouseLeave=="function"&&mn.props.onMouseLeave()},mn.handleFocus=function(){mn.setState({focused:!0})},mn.handleBlur=function(){mn.setState({focused:!1})},mn.handleClick=function(tr){typeof mn.props.onClick=="function"&&mn.props.onClick(tr)},mn}return we=rn,(Qe=[{key:"render",value:function(){var Wt=this.props,mn=Wt.activeStyle,tr=Wt.align,Ue=Wt.text,Ce=Wt.children,mt=Ce===void 0?Ue:Ce,Dt=Wt.className,tn=Wt.icon,Mn=Wt.iconFormat,Dn=Wt.iconSize,Kt=Wt.iconColor,bn=Kt===void 0?"#FFFFFF":Kt,Wn=Wt.preventActiveStyles,Qn=Wt.size,ht=Wt.style,Yr=Wt.disabled,En=this.state,An=En.focused,sa=En.hovered,Hp=$(N.button,{activeStyle:Wn?ht:mn,customStyle:ht,active:sa||An,size:Qn});return o.a.createElement("button",O({type:"button",style:Hp,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur},{className:Dt},{disabled:Yr}),o.a.createElement("div",{style:N.flex},!E(Dn)&&o.a.createElement("div",{style:{display:"flex",justifyContent:"center",minWidth:Dn}},o.a.createElement(d,{type:tn,size:Dn,format:Mn,color:bn})),!E(Dn)&&o.a.createElement("div",{style:N.divider}),o.a.createElement("div",{style:{textAlign:tr,width:"100%"}},mt)))}}])&&y(we.prototype,Qe),rn}(i.Component),E=function(Ie){return Ie==="0"||Ie==="0px"||Ie===0},$=function(Ie,we){var Qe=we.size,ot=we.customStyle,rn=we.active,Wt=we.activeStyle;return h(h(h({},Ie),{},{height:Qe},ot),rn&&Wt)};w.propTypes={activeStyle:s.a.object,align:s.a.oneOf(["left","right","center"]),children:s.a.node,className:s.a.string,icon:s.a.oneOfType([s.a.string,s.a.node,s.a.func]),iconFormat:s.a.func,iconSize:s.a.string,iconColor:s.a.string,onClick:s.a.func,onMouseEnter:s.a.func,onMouseLeave:s.a.func,preventActiveStyles:s.a.bool,size:s.a.string,style:s.a.object,text:s.a.string,disabled:s.a.bool},w.defaultProps={align:"left",iconSize:"26px",preventActiveStyles:!1,size:"50px"};var N={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 R(Ie,we){var Qe=Object.keys(Ie);if(Object.getOwnPropertySymbols){var ot=Object.getOwnPropertySymbols(Ie);we&&(ot=ot.filter(function(rn){return Object.getOwnPropertyDescriptor(Ie,rn).enumerable})),Qe.push.apply(Qe,ot)}return Qe}function B(Ie){for(var we=1;we{window.location.href=`${Uze.VITE_API_ADDR}/auth/login/${t}`};return M.jsx(k0e,{children:M.jsx(Li,{alignItems:"center",justifyContent:"center",sx:{height:"100vh"},children:M.jsx(Da,{sx:{p:5,width:"small",boxShadow:2,maxWidth:"80%"},children:M.jsxs(Li,{gap:4,children:[M.jsxs(Aa,{children:[M.jsxs(Li,{direction:"row",gap:1,children:[M.jsx(Fze,{}),M.jsx(Lr,{variant:"h6",children:"Login"})]}),M.jsx(Lr,{variant:"body2",color:"text.secondary",maxWidth:320,children:"Real-time markdown editor for interviews, meetings and more..."})]}),M.jsxs(Li,{gap:2,children:[M.jsxs(zh,{container:!0,spacing:1,alignItems:"center",children:[M.jsx(zh,{item:!0,xs:!0,children:M.jsx(lc,{sx:{width:1}})}),M.jsx(zh,{item:!0,xs:"auto",children:M.jsx(Lr,{variant:"body2",color:"text.secondary",children:"Login with"})}),M.jsx(zh,{item:!0,xs:!0,children:M.jsx(lc,{sx:{width:1}})})]}),jze.map(({SocailLoginComponent:t,provider:n})=>M.jsx(t,{size:"48px",onClick:()=>e(n)},n))]})]})})})})}const Vze={accessToken:null},qte=Pk({name:"auth",initialState:Vze,reducers:{setAccessToken:(e,t)=>{e.accessToken=t.payload}}}),{setAccessToken:w$}=qte.actions,Hze=e=>e.auth,Wze=qte.reducer;function Qze(){const e=kg(),t=Cg(),[n]=ATe();return I.useEffect(()=>{const r=n.get("token");if(!r){t("/");return}e(w$(r))},[e,t,n]),M.jsx(Aa,{})}function Yze(){return M.jsx(XN,{})}const k$=Qt.createContext({isLoading:!0,isLoggedIn:!1}),Gze={data:null},Zte=Pk({name:"user",initialState:Gze,reducers:{setUserData:(e,t)=>{e.data=t.payload}}}),{setUserData:WI}=Zte.actions,Xte=e=>e.user,qze=Zte.reducer,Zze=e=>{var o;const{children:t}=e,{isLoggedIn:n}=I.useContext(k$),r=xg(),i=_c(Xte);return n?M.jsx(aG,{to:`/workspace/${(o=i.data)==null?void 0:o.lastWorkspaceSlug}`,state:{from:r},replace:!0}):t},Xze=e=>{const{children:t}=e,{isLoggedIn:n,isLoading:r}=I.useContext(k$),i=xg();return r?M.jsx($N,{open:!0,children:M.jsx(Sg,{color:"inherit"})}):n?t:M.jsx(aG,{to:"/",state:{from:i},replace:!0})};var x$={},Kze=Fo;Object.defineProperty(x$,"__esModule",{value:!0});var Kte=x$.default=void 0,Jze=Kze(Bo()),eVe=M;Kte=x$.default=(0,Jze.default)((0,eVe.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert");var C$={},tVe=Fo;Object.defineProperty(C$,"__esModule",{value:!0});var Jte=C$.default=void 0,nVe=tVe(Bo()),rVe=M;Jte=C$.default=(0,nVe.default)((0,rVe.jsx)("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"}),"Logout");function iVe(e){const t=kg(),n=()=>{t(w$(null)),t(WI(null))};return M.jsx(zN,{anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"right"},...e,children:M.jsx(Q1,{children:M.jsxs(bp,{onClick:n,children:[M.jsx(jN,{children:M.jsx(Jte,{fontSize:"small"})}),M.jsx(ap,{children:"Logout"})]})})})}const oVe=e=>["workspaces",e],aVe=()=>["workspaces"],A$=e=>S$({queryKey:oVe(e||""),enabled:!!e,queryFn:async()=>(await cr.get(`/workspaces/${e}`)).data,meta:{errorMessage:"This is a non-existent or unauthorized Workspace."}}),sVe=()=>T$({queryKey:aVe(),queryFn:async({pageParam:t})=>(await cr.get("/workspaces",{params:{cursor:t}})).data,initialPageParam:void 0,getPreviousPageParam:t=>t.cursor??void 0,getNextPageParam:t=>t.cursor??void 0}),lVe=()=>Gte({mutationFn:async e=>(await cr.post("/workspaces",e)).data});var _$={},uVe=Fo;Object.defineProperty(_$,"__esModule",{value:!0});var ene=_$.default=void 0,cVe=uVe(Bo()),dVe=M;ene=_$.default=(0,cVe.default)((0,dVe.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");var R$={},fVe=Fo;Object.defineProperty(R$,"__esModule",{value:!0});var tne=R$.default=void 0,pVe=fVe(Bo()),hVe=M;tne=R$.default=(0,pVe.default)((0,hVe.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp");class l1 extends I.Component{constructor(t){super(t),this.scrollListener=this.scrollListener.bind(this),this.eventListenerOptions=this.eventListenerOptions.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this)}componentDidMount(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}componentDidUpdate(){if(this.props.isReverse&&this.loadMore){const t=this.getParentElement(this.scrollComponent);t.scrollTop=t.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}componentWillUnmount(){this.detachScrollListener(),this.detachMousewheelListener()}isPassiveSupported(){let t=!1;const n={get passive(){t=!0}};try{document.addEventListener("test",null,n),document.removeEventListener("test",null,n)}catch{}return t}eventListenerOptions(){let t=this.props.useCapture;return this.isPassiveSupported()?t={useCapture:this.props.useCapture,passive:!0}:t={passive:!1},t}setDefaultLoader(t){this.defaultLoader=t}detachMousewheelListener(){let t=window;this.props.useWindow===!1&&(t=this.scrollComponent.parentNode),t.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}detachScrollListener(){let t=window;this.props.useWindow===!1&&(t=this.getParentElement(this.scrollComponent)),t.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}getParentElement(t){const n=this.props.getScrollParent&&this.props.getScrollParent();return n??(t&&t.parentNode)}filterProps(t){return t}attachScrollListener(){const t=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!t)return;let n=window;this.props.useWindow===!1&&(n=t),n.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),n.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),n.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}mousewheelListener(t){t.deltaY===1&&!this.isPassiveSupported()&&t.preventDefault()}scrollListener(){const t=this.scrollComponent,n=window,r=this.getParentElement(t);let i;if(this.props.useWindow){const o=document.documentElement||document.body.parentNode||document.body,a=n.pageYOffset!==void 0?n.pageYOffset:o.scrollTop;this.props.isReverse?i=a:i=this.calculateOffset(t,a)}else this.props.isReverse?i=r.scrollTop:i=t.scrollHeight-r.scrollTop-r.clientHeight;i{this.scrollComponent=y,c&&c(y)};const O=[n];return i&&(s?a?O.unshift(s):O.push(s):this.defaultLoader&&(a?O.unshift(this.defaultLoader):O.push(this.defaultLoader))),Qt.createElement(r,b,O)}}qo(l1,"propTypes",{children:Q.node.isRequired,element:Q.node,hasMore:Q.bool,initialLoad:Q.bool,isReverse:Q.bool,loader:Q.node,loadMore:Q.func.isRequired,pageStart:Q.number,ref:Q.func,getScrollParent:Q.func,threshold:Q.number,useCapture:Q.bool,useWindow:Q.bool}),qo(l1,"defaultProps",{element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null});var I$={},mVe=Fo;Object.defineProperty(I$,"__esModule",{value:!0});var nne=I$.default=void 0,gVe=mVe(Bo()),bVe=M;nne=I$.default=(0,gVe.default)((0,bVe.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var _O=e=>e.type==="checkbox",Zh=e=>e instanceof Date,ea=e=>e==null;const rne=e=>typeof e=="object";var Fi=e=>!ea(e)&&!Array.isArray(e)&&rne(e)&&!Zh(e),ine=e=>Fi(e)&&e.target?_O(e.target)?e.target.checked:e.target.value:e,yVe=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,one=(e,t)=>e.has(yVe(t)),OVe=e=>{const t=e.constructor&&e.constructor.prototype;return Fi(t)&&t.hasOwnProperty("isPrototypeOf")},D$=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function ma(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(!(D$&&(e instanceof Blob||e instanceof FileList))&&(n||Fi(e)))if(t=n?[]:{},!n&&!OVe(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=ma(e[r]));else return e;return t}var RO=e=>Array.isArray(e)?e.filter(Boolean):[],li=e=>e===void 0,Ut=(e,t,n)=>{if(!t||!Fi(e))return n;const r=RO(t.split(/[,[\].]+?/)).reduce((i,o)=>ea(i)?i:i[o],e);return li(r)||r===e?li(e[t])?n:e[t]:r},vl=e=>typeof e=="boolean";const rw={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Tl={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Yu={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},ane=Qt.createContext(null),N$=()=>Qt.useContext(ane),sne=e=>{const{children:t,...n}=e;return Qt.createElement(ane.Provider,{value:n},t)};var lne=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const a=o;return t._proxyFormState[a]!==Tl.all&&(t._proxyFormState[a]=!r||Tl.all),n&&(n[a]=!0),e[a]}});return i},Ds=e=>Fi(e)&&!Object.keys(e).length,une=(e,t,n,r)=>{n(e);const{name:i,...o}=e;return Ds(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(a=>t[a]===(!r||Tl.all))},dS=e=>Array.isArray(e)?e:[e],cne=(e,t,n)=>!e||!t||e===t||dS(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function P$(e){const t=Qt.useRef(e);t.current=e,Qt.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function vVe(e){const t=N$(),{control:n=t.control,disabled:r,name:i,exact:o}=e||{},[a,s]=Qt.useState(n._formState),l=Qt.useRef(!0),u=Qt.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=Qt.useRef(i);return c.current=i,P$({disabled:r,next:d=>l.current&&cne(c.current,d.name,o)&&une(d,u.current,n._updateFormState)&&s({...n._formState,...d}),subject:n._subjects.state}),Qt.useEffect(()=>(l.current=!0,u.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),lne(a,n,u.current,!1)}var Eu=e=>typeof e=="string",dne=(e,t,n,r,i)=>Eu(e)?(r&&t.watch.add(e),Ut(n,e,i)):Array.isArray(e)?e.map(o=>(r&&t.watch.add(o),Ut(n,o))):(r&&(t.watchAll=!0),n);function fne(e){const t=N$(),{control:n=t.control,name:r,defaultValue:i,disabled:o,exact:a}=e||{},s=Qt.useRef(r);s.current=r,P$({disabled:o,subject:n._subjects.values,next:c=>{cne(s.current,c.name,a)&&u(ma(dne(s.current,n._names,c.values||n._formValues,!1,i)))}});const[l,u]=Qt.useState(n._getWatch(r,i));return Qt.useEffect(()=>n._removeUnmounted()),l}var L$=e=>/^\w*$/.test(e),pne=e=>RO(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Er=(e,t,n)=>{let r=-1;const i=L$(t)?[t]:pne(t),o=i.length,a=o-1;for(;++r{const c=i._options.shouldUnregister||o,d=(p,h)=>{const m=Ut(i._fields,p);m&&(m._f.mount=h)};if(d(n,!0),c){const p=ma(Ut(i._options.defaultValues,n));Er(i._defaultValues,n,p),li(Ut(i._formValues,n))&&Er(i._formValues,n,p)}return()=>{(a?c&&!i._state.action:c)?i.unregister(n):d(n,!1)}},[n,i,a,o]),Qt.useEffect(()=>{Ut(i._fields,n)&&i._updateDisabledField({disabled:r,fields:i._fields,name:n,value:Ut(i._fields,n)._f.value})},[r,n,i]),{field:{name:n,value:s,...vl(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:Qt.useCallback(c=>u.current.onChange({target:{value:ine(c),name:n},type:rw.CHANGE}),[n]),onBlur:Qt.useCallback(()=>u.current.onBlur({target:{value:Ut(i._formValues,n),name:n},type:rw.BLUR}),[n,i]),ref:c=>{const d=Ut(i._fields,n);d&&c&&(d._f.ref={focus:()=>c.focus(),select:()=>c.select(),setCustomValidity:p=>c.setCustomValidity(p),reportValidity:()=>c.reportValidity()})}},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ut(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!Ut(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Ut(l.touchedFields,n)},error:{enumerable:!0,get:()=>Ut(l.errors,n)}})}}var EVe=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},Kz=e=>({isOnSubmit:!e||e===Tl.onSubmit,isOnBlur:e===Tl.onBlur,isOnChange:e===Tl.onChange,isOnAll:e===Tl.all,isOnTouch:e===Tl.onTouched}),Jz=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Gb=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const o=Ut(e,i);if(o){const{_f:a,...s}=o;if(a){if(a.refs&&a.refs[0]&&t(a.refs[0],i)&&!r)break;if(a.ref&&t(a.ref,a.name)&&!r)break;Gb(s,t)}else Fi(s)&&Gb(s,t)}}};var SVe=(e,t,n)=>{const r=RO(Ut(e,n));return Er(r,"root",t[n]),Er(e,n,r),e},M$=e=>e.type==="file",Od=e=>typeof e=="function",iw=e=>{if(!D$)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},fS=e=>Eu(e),$$=e=>e.type==="radio",ow=e=>e instanceof RegExp;const eV={value:!1,isValid:!1},tV={value:!0,isValid:!0};var hne=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&&!li(e[0].attributes.value)?li(e[0].value)||e[0].value===""?tV:{value:e[0].value,isValid:!0}:tV:eV}return eV};const nV={isValid:!1,value:null};var mne=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,nV):nV;function rV(e,t,n="validate"){if(fS(e)||Array.isArray(e)&&e.every(fS)||vl(e)&&!e)return{type:n,message:fS(e)?e:"",ref:t}}var hh=e=>Fi(e)&&!ow(e)?e:{value:e,message:""},iV=async(e,t,n,r,i)=>{const{ref:o,refs:a,required:s,maxLength:l,minLength:u,min:c,max:d,pattern:p,validate:h,name:m,valueAsNumber:b,mount:O,disabled:y}=e._f,v=Ut(t,m);if(!O||y)return{};const S=a?a[0]:o,k=U=>{r&&S.reportValidity&&(S.setCustomValidity(vl(U)?"":U||""),S.reportValidity())},C={},w=$$(o),E=_O(o),$=w||E,N=(b||M$(o))&&li(o.value)&&li(v)||iw(o)&&o.value===""||v===""||Array.isArray(v)&&!v.length,R=EVe.bind(null,m,n,C),B=(U,V,z,W=Yu.maxLength,X=Yu.minLength)=>{const q=U?V:z;C[m]={type:U?W:X,message:q,ref:o,...R(U?W:X,q)}};if(i?!Array.isArray(v)||!v.length:s&&(!$&&(N||ea(v))||vl(v)&&!v||E&&!hne(a).isValid||w&&!mne(a).isValid)){const{value:U,message:V}=fS(s)?{value:!!s,message:s}:hh(s);if(U&&(C[m]={type:Yu.required,message:V,ref:S,...R(Yu.required,V)},!n))return k(V),C}if(!N&&(!ea(c)||!ea(d))){let U,V;const z=hh(d),W=hh(c);if(!ea(v)&&!isNaN(v)){const X=o.valueAsNumber||v&&+v;ea(z.value)||(U=X>z.value),ea(W.value)||(V=Xnew Date(new Date().toDateString()+" "+j),Y=o.type=="time",Z=o.type=="week";Eu(z.value)&&v&&(U=Y?q(v)>q(z.value):Z?v>z.value:X>new Date(z.value)),Eu(W.value)&&v&&(V=Y?q(v)+U.value,W=!ea(V.value)&&v.length<+V.value;if((z||W)&&(B(z,U.message,V.message),!n))return k(C[m].message),C}if(p&&!N&&Eu(v)){const{value:U,message:V}=hh(p);if(ow(U)&&!v.match(U)&&(C[m]={type:Yu.pattern,message:V,ref:o,...R(Yu.pattern,V)},!n))return k(V),C}if(h){if(Od(h)){const U=await h(v,t),V=rV(U,S);if(V&&(C[m]={...V,...R(Yu.validate,V.message)},!n))return k(V.message),C}else if(Fi(h)){let U={};for(const V in h){if(!Ds(U)&&!n)break;const z=rV(await h[V](v,t),S,V);z&&(U={...z,...R(V,z.message)},k(z.message),n&&(C[m]=U))}if(!Ds(U)&&(C[m]={ref:S,...U},!n))return C}}return k(!0),C};function TVe(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{let e=[];return{get observers(){return e},next:i=>{for(const o of e)o.next&&o.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(o=>o!==i)}}),unsubscribe:()=>{e=[]}}},aw=e=>ea(e)||!rne(e);function Wf(e,t){if(aw(e)||aw(t))return e===t;if(Zh(e)&&Zh(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const o=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const a=t[i];if(Zh(o)&&Zh(a)||Fi(o)&&Fi(a)||Array.isArray(o)&&Array.isArray(a)?!Wf(o,a):o!==a)return!1}}return!0}var gne=e=>e.type==="select-multiple",kVe=e=>$$(e)||_O(e),b2=e=>iw(e)&&e.isConnected,bne=e=>{for(const t in e)if(Od(e[t]))return!0;return!1};function sw(e,t={}){const n=Array.isArray(e);if(Fi(e)||n)for(const r in e)Array.isArray(e[r])||Fi(e[r])&&!bne(e[r])?(t[r]=Array.isArray(e[r])?[]:{},sw(e[r],t[r])):ea(e[r])||(t[r]=!0);return t}function yne(e,t,n){const r=Array.isArray(e);if(Fi(e)||r)for(const i in e)Array.isArray(e[i])||Fi(e[i])&&!bne(e[i])?li(t)||aw(n[i])?n[i]=Array.isArray(e[i])?sw(e[i],[]):{...sw(e[i])}:yne(e[i],ea(t)?{}:t[i],n[i]):n[i]=!Wf(e[i],t[i]);return n}var y2=(e,t)=>yne(e,t,sw(t)),One=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>li(e)?e:t?e===""?NaN:e&&+e:n&&Eu(e)?new Date(e):r?r(e):e;function O2(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return M$(t)?t.files:$$(t)?mne(e.refs).value:gne(t)?[...t.selectedOptions].map(({value:n})=>n):_O(t)?hne(e.refs).value:One(li(t.value)?e.ref.value:t.value,e)}var xVe=(e,t,n,r)=>{const i={};for(const o of e){const a=Ut(t,o);a&&Er(i,o,a._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},j0=e=>li(e)?e:ow(e)?e.source:Fi(e)?ow(e.value)?e.value.source:e.value:e,CVe=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function oV(e,t,n){const r=Ut(e,n);if(r||L$(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const o=i.join("."),a=Ut(t,o),s=Ut(e,o);if(a&&!Array.isArray(a)&&n!==o)return{name:n};if(s&&s.type)return{name:o,error:s};i.pop()}return{name:n}}var AVe=(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,_Ve=(e,t)=>!RO(Ut(e,t)).length&&ao(e,t);const RVe={mode:Tl.onSubmit,reValidateMode:Tl.onChange,shouldFocusError:!0};function IVe(e={},t){let n={...RVe,...e},r={submitCount:0,isDirty:!1,isLoading:Od(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:n.errors||{},disabled:n.disabled||!1},i={},o=Fi(n.defaultValues)||Fi(n.values)?ma(n.defaultValues||n.values)||{}:{},a=n.shouldUnregister?{}:ma(o),s={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u,c=0;const d={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={values:g2(),array:g2(),state:g2()},h=Kz(n.mode),m=Kz(n.reValidateMode),b=n.criteriaMode===Tl.all,O=re=>ee=>{clearTimeout(c),c=setTimeout(re,ee)},y=async re=>{if(d.isValid||re){const ee=n.resolver?Ds((await N()).errors):await B(i,!0);ee!==r.isValid&&p.state.next({isValid:ee})}},v=re=>d.isValidating&&p.state.next({isValidating:re}),S=(re,ee=[],J,Re,Le=!0,De=!0)=>{if(Re&&J){if(s.action=!0,De&&Array.isArray(Ut(i,re))){const ie=J(Ut(i,re),Re.argA,Re.argB);Le&&Er(i,re,ie)}if(De&&Array.isArray(Ut(r.errors,re))){const ie=J(Ut(r.errors,re),Re.argA,Re.argB);Le&&Er(r.errors,re,ie),_Ve(r.errors,re)}if(d.touchedFields&&De&&Array.isArray(Ut(r.touchedFields,re))){const ie=J(Ut(r.touchedFields,re),Re.argA,Re.argB);Le&&Er(r.touchedFields,re,ie)}d.dirtyFields&&(r.dirtyFields=y2(o,a)),p.state.next({name:re,isDirty:V(re,ee),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Er(a,re,ee)},k=(re,ee)=>{Er(r.errors,re,ee),p.state.next({errors:r.errors})},C=re=>{r.errors=re,p.state.next({errors:r.errors,isValid:!1})},w=(re,ee,J,Re)=>{const Le=Ut(i,re);if(Le){const De=Ut(a,re,li(J)?Ut(o,re):J);li(De)||Re&&Re.defaultChecked||ee?Er(a,re,ee?De:O2(Le._f)):X(re,De),s.mount&&y()}},E=(re,ee,J,Re,Le)=>{let De=!1,ie=!1;const fe={name:re},de=!!(Ut(i,re)&&Ut(i,re)._f.disabled);if(!J||Re){d.isDirty&&(ie=r.isDirty,r.isDirty=fe.isDirty=V(),De=ie!==fe.isDirty);const Oe=de||Wf(Ut(o,re),ee);ie=!!(!de&&Ut(r.dirtyFields,re)),Oe||de?ao(r.dirtyFields,re):Er(r.dirtyFields,re,!0),fe.dirtyFields=r.dirtyFields,De=De||d.dirtyFields&&ie!==!Oe}if(J){const Oe=Ut(r.touchedFields,re);Oe||(Er(r.touchedFields,re,J),fe.touchedFields=r.touchedFields,De=De||d.touchedFields&&Oe!==J)}return De&&Le&&p.state.next(fe),De?fe:{}},$=(re,ee,J,Re)=>{const Le=Ut(r.errors,re),De=d.isValid&&vl(ee)&&r.isValid!==ee;if(e.delayError&&J?(u=O(()=>k(re,J)),u(e.delayError)):(clearTimeout(c),u=null,J?Er(r.errors,re,J):ao(r.errors,re)),(J?!Wf(Le,J):Le)||!Ds(Re)||De){const ie={...Re,...De&&vl(ee)?{isValid:ee}:{},errors:r.errors,name:re};r={...r,...ie},p.state.next(ie)}v(!1)},N=async re=>n.resolver(a,n.context,xVe(re||l.mount,i,n.criteriaMode,n.shouldUseNativeValidation)),R=async re=>{const{errors:ee}=await N(re);if(re)for(const J of re){const Re=Ut(ee,J);Re?Er(r.errors,J,Re):ao(r.errors,J)}else r.errors=ee;return ee},B=async(re,ee,J={valid:!0})=>{for(const Re in re){const Le=re[Re];if(Le){const{_f:De,...ie}=Le;if(De){const fe=l.array.has(De.name),de=await iV(Le,a,b,n.shouldUseNativeValidation&&!ee,fe);if(de[De.name]&&(J.valid=!1,ee))break;!ee&&(Ut(de,De.name)?fe?SVe(r.errors,de,De.name):Er(r.errors,De.name,de[De.name]):ao(r.errors,De.name))}ie&&await B(ie,ee,J)}}return J.valid},U=()=>{for(const re of l.unMount){const ee=Ut(i,re);ee&&(ee._f.refs?ee._f.refs.every(J=>!b2(J)):!b2(ee._f.ref))&&xe(re)}l.unMount=new Set},V=(re,ee)=>(re&&ee&&Er(a,re,ee),!Wf(ve(),o)),z=(re,ee,J)=>dne(re,l,{...s.mount?a:li(ee)?o:Eu(re)?{[re]:ee}:ee},J,ee),W=re=>RO(Ut(s.mount?a:o,re,e.shouldUnregister?Ut(o,re,[]):[])),X=(re,ee,J={})=>{const Re=Ut(i,re);let Le=ee;if(Re){const De=Re._f;De&&(!De.disabled&&Er(a,re,One(ee,De)),Le=iw(De.ref)&&ea(ee)?"":ee,gne(De.ref)?[...De.ref.options].forEach(ie=>ie.selected=Le.includes(ie.value)):De.refs?_O(De.ref)?De.refs.length>1?De.refs.forEach(ie=>(!ie.defaultChecked||!ie.disabled)&&(ie.checked=Array.isArray(Le)?!!Le.find(fe=>fe===ie.value):Le===ie.value)):De.refs[0]&&(De.refs[0].checked=!!Le):De.refs.forEach(ie=>ie.checked=ie.value===Le):M$(De.ref)?De.ref.value="":(De.ref.value=Le,De.ref.type||p.values.next({name:re,values:{...a}})))}(J.shouldDirty||J.shouldTouch)&&E(re,Le,J.shouldTouch,J.shouldDirty,!0),J.shouldValidate&&se(re)},q=(re,ee,J)=>{for(const Re in ee){const Le=ee[Re],De=`${re}.${Re}`,ie=Ut(i,De);(l.array.has(re)||!aw(Le)||ie&&!ie._f)&&!Zh(Le)?q(De,Le,J):X(De,Le,J)}},Y=(re,ee,J={})=>{const Re=Ut(i,re),Le=l.array.has(re),De=ma(ee);Er(a,re,De),Le?(p.array.next({name:re,values:{...a}}),(d.isDirty||d.dirtyFields)&&J.shouldDirty&&p.state.next({name:re,dirtyFields:y2(o,a),isDirty:V(re,De)})):Re&&!Re._f&&!ea(De)?q(re,De,J):X(re,De,J),Jz(re,l)&&p.state.next({...r}),p.values.next({name:re,values:{...a}}),!s.mount&&t()},Z=async re=>{const ee=re.target;let J=ee.name,Re=!0;const Le=Ut(i,J),De=()=>ee.type?O2(Le._f):ine(re),ie=fe=>{Re=Number.isNaN(fe)||fe===Ut(a,J,fe)};if(Le){let fe,de;const Oe=De(),Te=re.type===rw.BLUR||re.type===rw.FOCUS_OUT,rt=!CVe(Le._f)&&!n.resolver&&!Ut(r.errors,J)&&!Le._f.deps||AVe(Te,Ut(r.touchedFields,J),r.isSubmitted,m,h),pt=Jz(J,l,Te);Er(a,J,Oe),Te?(Le._f.onBlur&&Le._f.onBlur(re),u&&u(0)):Le._f.onChange&&Le._f.onChange(re);const xt=E(J,Oe,Te,!1),et=!Ds(xt)||pt;if(!Te&&p.values.next({name:J,type:re.type,values:{...a}}),rt)return d.isValid&&y(),et&&p.state.next({name:J,...pt?{}:xt});if(!Te&&pt&&p.state.next({...r}),v(!0),n.resolver){const{errors:vt}=await N([J]);if(ie(Oe),Re){const qe=oV(r.errors,i,J),it=oV(vt,i,qe.name||J);fe=it.error,J=it.name,de=Ds(vt)}}else fe=(await iV(Le,a,b,n.shouldUseNativeValidation))[J],ie(Oe),Re&&(fe?de=!1:d.isValid&&(de=await B(i,!0)));Re&&(Le._f.deps&&se(Le._f.deps),$(J,de,fe,xt))}},j=(re,ee)=>{if(Ut(r.errors,ee)&&re.focus)return re.focus(),1},se=async(re,ee={})=>{let J,Re;const Le=dS(re);if(v(!0),n.resolver){const De=await R(li(re)?re:Le);J=Ds(De),Re=re?!Le.some(ie=>Ut(De,ie)):J}else re?(Re=(await Promise.all(Le.map(async De=>{const ie=Ut(i,De);return await B(ie&&ie._f?{[De]:ie}:ie)}))).every(Boolean),!(!Re&&!r.isValid)&&y()):Re=J=await B(i);return p.state.next({...!Eu(re)||d.isValid&&J!==r.isValid?{}:{name:re},...n.resolver||!re?{isValid:J}:{},errors:r.errors,isValidating:!1}),ee.shouldFocus&&!Re&&Gb(i,j,re?Le:l.mount),Re},ve=re=>{const ee={...o,...s.mount?a:{}};return li(re)?ee:Eu(re)?Ut(ee,re):re.map(J=>Ut(ee,J))},G=(re,ee)=>({invalid:!!Ut((ee||r).errors,re),isDirty:!!Ut((ee||r).dirtyFields,re),isTouched:!!Ut((ee||r).touchedFields,re),error:Ut((ee||r).errors,re)}),ce=re=>{re&&dS(re).forEach(ee=>ao(r.errors,ee)),p.state.next({errors:re?r.errors:{}})},ge=(re,ee,J)=>{const Re=(Ut(i,re,{_f:{}})._f||{}).ref;Er(r.errors,re,{...ee,ref:Re}),p.state.next({name:re,errors:r.errors,isValid:!1}),J&&J.shouldFocus&&Re&&Re.focus&&Re.focus()},ue=(re,ee)=>Od(re)?p.values.subscribe({next:J=>re(z(void 0,ee),J)}):z(re,ee,!0),xe=(re,ee={})=>{for(const J of re?dS(re):l.mount)l.mount.delete(J),l.array.delete(J),ee.keepValue||(ao(i,J),ao(a,J)),!ee.keepError&&ao(r.errors,J),!ee.keepDirty&&ao(r.dirtyFields,J),!ee.keepTouched&&ao(r.touchedFields,J),!n.shouldUnregister&&!ee.keepDefaultValue&&ao(o,J);p.values.next({values:{...a}}),p.state.next({...r,...ee.keepDirty?{isDirty:V()}:{}}),!ee.keepIsValid&&y()},Ne=({disabled:re,name:ee,field:J,fields:Re,value:Le})=>{if(vl(re)){const De=re?void 0:li(Le)?O2(J?J._f:Ut(Re,ee)._f):Le;Er(a,ee,De),E(ee,De,!1,!1,!0)}},Ve=(re,ee={})=>{let J=Ut(i,re);const Re=vl(ee.disabled);return Er(i,re,{...J||{},_f:{...J&&J._f?J._f:{ref:{name:re}},name:re,mount:!0,...ee}}),l.mount.add(re),J?Ne({field:J,disabled:ee.disabled,name:re,value:ee.value}):w(re,!0,ee.value),{...Re?{disabled:ee.disabled}:{},...n.progressive?{required:!!ee.required,min:j0(ee.min),max:j0(ee.max),minLength:j0(ee.minLength),maxLength:j0(ee.maxLength),pattern:j0(ee.pattern)}:{},name:re,onChange:Z,onBlur:Z,ref:Le=>{if(Le){Ve(re,ee),J=Ut(i,re);const De=li(Le.value)&&Le.querySelectorAll&&Le.querySelectorAll("input,select,textarea")[0]||Le,ie=kVe(De),fe=J._f.refs||[];if(ie?fe.find(de=>de===De):De===J._f.ref)return;Er(i,re,{_f:{...J._f,...ie?{refs:[...fe.filter(b2),De,...Array.isArray(Ut(o,re))?[{}]:[]],ref:{type:De.type,name:re}}:{ref:De}}}),w(re,!1,void 0,De)}else J=Ut(i,re,{}),J._f&&(J._f.mount=!1),(n.shouldUnregister||ee.shouldUnregister)&&!(one(l.array,re)&&s.action)&&l.unMount.add(re)}}},Ke=()=>n.shouldFocusError&&Gb(i,j,l.mount),Me=re=>{vl(re)&&(p.state.next({disabled:re}),Gb(i,(ee,J)=>{let Re=re;const Le=Ut(i,J);Le&&vl(Le._f.disabled)&&(Re||(Re=Le._f.disabled)),ee.disabled=Re},0,!1))},Ye=(re,ee)=>async J=>{J&&(J.preventDefault&&J.preventDefault(),J.persist&&J.persist());let Re=ma(a);if(p.state.next({isSubmitting:!0}),n.resolver){const{errors:Le,values:De}=await N();r.errors=Le,Re=De}else await B(i);ao(r.errors,"root"),Ds(r.errors)?(p.state.next({errors:{}}),await re(Re,J)):(ee&&await ee({...r.errors},J),Ke(),setTimeout(Ke)),p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Ds(r.errors),submitCount:r.submitCount+1,errors:r.errors})},ye=(re,ee={})=>{Ut(i,re)&&(li(ee.defaultValue)?Y(re,ma(Ut(o,re))):(Y(re,ee.defaultValue),Er(o,re,ma(ee.defaultValue))),ee.keepTouched||ao(r.touchedFields,re),ee.keepDirty||(ao(r.dirtyFields,re),r.isDirty=ee.defaultValue?V(re,ma(Ut(o,re))):V()),ee.keepError||(ao(r.errors,re),d.isValid&&y()),p.state.next({...r}))},ze=(re,ee={})=>{const J=re?ma(re):o,Re=ma(J),Le=re&&!Ds(re)?Re:o;if(ee.keepDefaultValues||(o=J),!ee.keepValues){if(ee.keepDirtyValues)for(const De of l.mount)Ut(r.dirtyFields,De)?Er(Le,De,Ut(a,De)):Y(De,Ut(Le,De));else{if(D$&&li(re))for(const De of l.mount){const ie=Ut(i,De);if(ie&&ie._f){const fe=Array.isArray(ie._f.refs)?ie._f.refs[0]:ie._f.ref;if(iw(fe)){const de=fe.closest("form");if(de){de.reset();break}}}}i={}}a=e.shouldUnregister?ee.keepDefaultValues?ma(o):{}:ma(Le),p.array.next({values:{...Le}}),p.values.next({values:{...Le}})}l={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!s.mount&&t(),s.mount=!d.isValid||!!ee.keepIsValid,s.watch=!!e.shouldUnregister,p.state.next({submitCount:ee.keepSubmitCount?r.submitCount:0,isDirty:ee.keepDirty?r.isDirty:!!(ee.keepDefaultValues&&!Wf(re,o)),isSubmitted:ee.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:ee.keepDirtyValues?r.dirtyFields:ee.keepDefaultValues&&re?y2(o,re):{},touchedFields:ee.keepTouched?r.touchedFields:{},errors:ee.keepErrors?r.errors:{},isSubmitSuccessful:ee.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},$e=(re,ee)=>ze(Od(re)?re(a):re,ee);return{control:{register:Ve,unregister:xe,getFieldState:G,handleSubmit:Ye,setError:ge,_executeSchema:N,_getWatch:z,_getDirty:V,_updateValid:y,_removeUnmounted:U,_updateFieldArray:S,_updateDisabledField:Ne,_getFieldArray:W,_reset:ze,_resetDefaultValues:()=>Od(n.defaultValues)&&n.defaultValues().then(re=>{$e(re,n.resetOptions),p.state.next({isLoading:!1})}),_updateFormState:re=>{r={...r,...re}},_disableForm:Me,_subjects:p,_proxyFormState:d,_setErrors:C,get _fields(){return i},get _formValues(){return a},get _state(){return s},set _state(re){s=re},get _defaultValues(){return o},get _names(){return l},set _names(re){l=re},get _formState(){return r},set _formState(re){r=re},get _options(){return n},set _options(re){n={...n,...re}}},trigger:se,register:Ve,handleSubmit:Ye,watch:ue,setValue:Y,getValues:ve,reset:$e,resetField:ye,clearErrors:ce,unregister:xe,setError:ge,setFocus:(re,ee={})=>{const J=Ut(i,re),Re=J&&J._f;if(Re){const Le=Re.refs?Re.refs[0]:Re.ref;Le.focus&&(Le.focus(),ee.shouldSelect&&Le.select())}},getFieldState:G}}function DVe(e={}){const t=Qt.useRef(),n=Qt.useRef(),[r,i]=Qt.useState({isDirty:!1,isValidating:!1,isLoading:Od(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Od(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...IVe(e,()=>i(a=>({...a}))),formState:r});const o=t.current.control;return o._options=e,P$({subject:o._subjects.state,next:a=>{une(a,o._proxyFormState,o._updateFormState,!0)&&i({...o._formState})}}),Qt.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),Qt.useEffect(()=>{if(o._proxyFormState.isDirty){const a=o._getDirty();a!==r.isDirty&&o._subjects.state.next({isDirty:a})}},[o,r.isDirty]),Qt.useEffect(()=>{e.values&&!Wf(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values,i(a=>({...a}))):o._resetDefaultValues()},[e.values,o]),Qt.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),Qt.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),t.current.formState=lne(r,o),t.current}const hu=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),F$=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const i=n??r;let o;if(e!=null)o=e;else if(i.includes(t))o=t;else if(i.length>0)o=i[0];else throw new Error("MUI: The `views` prop must contain at least one view");return{views:i,openTo:o}},qb=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:i,isDateDisabled:o,utils:a,timezone:s})=>{const l=a.startOfDay(a.dateWithTimezone(void 0,s));n&&a.isBefore(i,l)&&(i=l),t&&a.isAfter(r,l)&&(r=l);let u=e,c=e;for(a.isBefore(e,i)&&(u=i,c=null),a.isAfter(e,r)&&(c&&(c=r),u=null);u||c;){if(u&&a.isAfter(u,r)&&(u=null),c&&a.isBefore(c,i)&&(c=null),u){if(!o(u))return u;u=a.addDays(u,1)}if(c){if(!o(c))return c;c=a.addDays(c,-1)}}return null},NVe=(e,t)=>t==null||!e.isValid(t)?null:t,$o=(e,t,n)=>t==null||!e.isValid(t)?n:t,PVe=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),B$=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const i=r[r.length-1];r.push(e.addMonths(i,1))}return r},QI=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r},U$=(e,t,n)=>n==="date"?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),kl=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},LVe=["year","month","day"],gm=e=>LVe.includes(e),u1=(e,{format:t,views:n},r)=>{if(t!=null)return t;const i=e.formats;return hu(n,["year"])?i.year:hu(n,["month"])?i.month:hu(n,["day"])?i.dayOfMonth:hu(n,["month","year"])?`${i.month} ${i.year}`:hu(n,["day","month"])?`${i.month} ${i.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?i.normalDateWithWeekday:i.normalDate:i.keyboardDate},MVe=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},vne=["hours","minutes","seconds"],dg=e=>vne.includes(e),qc=e=>vne.includes(e)||e==="meridiem",$Ve=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,c1=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,FVe=(e,t,n,r)=>{const i=c1(r.getHours(e),t,n);return r.setHours(e,i)},aV=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),IO=(e,t)=>(n,r)=>e?t.isAfter(n,r):aV(n,t)>aV(r,t),lw=(e,{format:t,views:n,ampm:r})=>{if(t!=null)return t;const i=e.formats;return hu(n,["hours"])?r?`${i.hours12h} ${i.meridiem}`:i.hours24h:hu(n,["minutes"])?i.minutes:hu(n,["seconds"])?i.seconds:hu(n,["minutes","seconds"])?`${i.minutes}:${i.seconds}`:hu(n,["hours","minutes","seconds"])?r?`${i.hours12h}:${i.minutes}:${i.seconds} ${i.meridiem}`:`${i.hours24h}:${i.minutes}:${i.seconds}`:r?`${i.hours12h}:${i.minutes} ${i.meridiem}`:`${i.hours24h}:${i.minutes}`},El={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},BVe=e=>Math.max(...e.map(t=>{var n;return(n=El[t.type])!=null?n:1})),z0=(e,t,n)=>{if(t===El.year)return e.startOfYear(n);if(t===El.month)return e.startOfMonth(n);if(t===El.day)return e.startOfDay(n);let r=n;return t{var o;let a=i?i():z0(t,n,U$(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,a)&&(a=z0(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,a)&&(a=z0(t,n,e.maxDate));const s=IO((o=e.disableIgnoringDatePartForTimeValidation)!=null?o:!1,t);return e.minTime!=null&&s(e.minTime,a)&&(a=z0(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:QI(t,a,e.minTime))),e.maxTime!=null&&s(a,e.maxTime)&&(a=z0(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:QI(t,a,e.maxTime))),a},Ene=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(` +`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},jVe=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},Ix=(e,t,n)=>{const r=[],i=e.dateWithTimezone(void 0,t),o=e.startOfWeek(i),a=e.endOfWeek(i);let s=o;for(;e.isBefore(s,a);)r.push(s),s=e.addDays(s,1);return r.map(l=>e.formatByString(l,n))},Sne=(e,t,n,r)=>{switch(n){case"month":return B$(e,e.dateWithTimezone(void 0,t)).map(i=>e.formatByString(i,r));case"weekDay":return Ix(e,t,r);case"meridiem":{const i=e.dateWithTimezone(void 0,t);return[e.startOfDay(i),e.endOfDay(i)].map(o=>e.formatByString(o,r))}default:return[]}},Tne=(e,t,n)=>{let r=t;for(r=Number(r).toString();r.length{if(i.type==="day"&&i.contentType==="digit-with-letter"){const a=e.setDate(r.longestMonth,n);return e.formatByString(a,i.format)}const o=n.toString();return i.hasLeadingZerosInInput?Tne(e,o,i.maxLength):o},zVe=(e,t,n,r,i,o,a)=>{const s=jVe(r),l=r==="Home",u=r==="End",c=n.value===""||l||u,d=()=>{const h=i[n.type]({currentDate:o,format:n.format,contentType:n.contentType}),m=v=>wne(e,t,v,h,n),b=n.type==="minutes"&&a!=null&&a.minutesStep?a.minutesStep:1;let y=parseInt(n.value,10)+s*b;if(c){if(n.type==="year"&&!u&&!l)return e.formatByString(e.dateWithTimezone(void 0,t),n.format);s>0||l?y=h.minimum:y=h.maximum}return y%b!==0&&((s<0||l)&&(y+=b-(b+y)%b),(s>0||u)&&(y-=y%b)),y>h.maximum?m(h.minimum+(y-h.maximum-1)%(h.maximum-h.minimum+1)):y{const h=Sne(e,t,n.type,n.format);if(h.length===0)return n.value;if(c)return s>0||l?h[0]:h[h.length-1];const b=(h.indexOf(n.value)+h.length+s)%h.length;return h[b]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?d():p()},j$=(e,t)=>{let n=e.value||e.placeholder;const r=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(n=Number(n).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!r&&n.length===1&&(n=`${n}‎`),t==="input-rtl"&&(n=`⁨${n}⁩`),n},Xh=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),kne=(e,t)=>{let n=0,r=t?1:0;const i=[];for(let o=0;o{switch(r.type){case"year":return n.fieldYearPlaceholder({digitAmount:e.formatByString(e.dateWithTimezone(void 0,t),i).length,format:i});case"month":return n.fieldMonthPlaceholder({contentType:r.contentType,format:i});case"day":return n.fieldDayPlaceholder({format:i});case"weekDay":return n.fieldWeekDayPlaceholder({contentType:r.contentType,format:i});case"hours":return n.fieldHoursPlaceholder({format:i});case"minutes":return n.fieldMinutesPlaceholder({format:i});case"seconds":return n.fieldSecondsPlaceholder({format:i});case"meridiem":return n.fieldMeridiemPlaceholder({format:i});default:return i}},sV=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),xne=(e,t,n)=>e.formatByString(e.dateWithTimezone(void 0,t),n).length===4,Cne=(e,t,n,r,i)=>{if(n!=="digit")return!1;const o=e.dateWithTimezone(void 0,t);switch(r){case"year":return xne(e,t,i)?e.formatByString(e.setYear(o,1),i)==="0001":e.formatByString(e.setYear(o,2001),i)==="01";case"month":return e.formatByString(e.startOfYear(o),i).length>1;case"day":return e.formatByString(e.startOfMonth(o),i).length>1;case"weekDay":return e.formatByString(e.startOfWeek(o),i).length>1;case"hours":return e.formatByString(e.setHours(o,1),i).length>1;case"minutes":return e.formatByString(e.setMinutes(o,1),i).length>1;case"seconds":return e.formatByString(e.setSeconds(o,1),i).length>1;default:throw new Error("Invalid section type")}},HVe=(e,t)=>{const n=[],{start:r,end:i}=e.escapedCharacters,o=new RegExp(`(\\${r}[^\\${i}]*\\${i})+`,"g");let a=null;for(;a=o.exec(t);)n.push({start:a.index,end:o.lastIndex-1});return n},lV=(e,t,n,r,i,o,a,s)=>{let l="";const u=[],c=e.date(),d=S=>{if(S==="")return null;const k=Ene(e,S),C=Cne(e,t,k.contentType,k.type,S),w=a?C:k.contentType==="digit",E=i!=null&&e.isValid(i);let $=E?e.formatByString(i,S):"",N=null;if(w)if(C)N=$===""?e.formatByString(c,S).length:$.length;else{if(k.maxLength==null)throw new Error(`MUI: The token ${S} should have a 'maxDigitNumber' property on it's adapter`);N=k.maxLength,E&&($=Tne(e,$,N))}return u.push(P({},k,{format:S,maxLength:N,value:$,placeholder:VVe(e,t,n,k,S),hasLeadingZeros:C,hasLeadingZerosInFormat:C,hasLeadingZerosInInput:w,startSeparator:u.length===0?l:"",endSeparator:"",modified:!1})),null};let p=10,h=r,m=e.expandFormat(r);for(;m!==h;)if(h=m,m=e.expandFormat(h),p-=1,p<0)throw new Error("MUI: The format expansion seems to be enter in an infinite loop. Please open an issue with the format passed to the picker component");const b=m,O=HVe(e,b),y=new RegExp(`^(${Object.keys(e.formatTokenMap).sort((S,k)=>k.length-S.length).join("|")})`,"g");let v="";for(let S=0;SN.start<=S&&N.end>=S),C=b[S],w=k!=null,E=`${v}${b.slice(S)}`,$=y.test(E);!w&&C.match(/([A-Za-z]+)/)&&$?(v=E.slice(0,y.lastIndex),S+=y.lastIndex-1):w&&(k==null?void 0:k.start)===S||(k==null?void 0:k.end)===S||(d(v),v="",u.length===0?l+=C:u[u.length-1].endSeparator+=C)}return d(v),u.map(S=>{const k=C=>{let w=C;return s&&w!==null&&w.includes(" ")&&(w=`⁩${w}⁦`),o==="spacious"&&["/",".","-"].includes(w)&&(w=` ${w} `),w};return S.startSeparator=k(S.startSeparator),S.endSeparator=k(S.endSeparator),S})},WVe=(e,t)=>{const n=t.some(s=>s.type==="day"),r=[],i=[];for(let s=0;s{const r=e.map(i=>{const o=j$(i,t?"input-rtl":"input-ltr");return`${i.startSeparator}${o}${i.endSeparator}`}).join("");return t?`⁦${r}⁩`:r},YVe=(e,t)=>{const n=e.dateWithTimezone(void 0,t),r=e.endOfYear(n),i=e.endOfDay(n),{maxDaysInMonth:o,longestMonth:a}=B$(e,n).reduce((s,l)=>{const u=e.getDaysInMonth(l);return u>s.maxDaysInMonth?{maxDaysInMonth:u,longestMonth:l}:s},{maxDaysInMonth:0,longestMonth:null});return{year:({format:s})=>({minimum:0,maximum:xne(e,t,s)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:s})=>({minimum:1,maximum:s!=null&&e.isValid(s)?e.getDaysInMonth(s):o,longestMonth:a}),weekDay:({format:s,contentType:l})=>{if(l==="digit"){const u=Ix(e,t,s).map(Number);return{minimum:Math.min(...u),maximum:Math.max(...u)}}return{minimum:1,maximum:7}},hours:({format:s})=>{const l=e.getHours(i);return e.formatByString(e.endOfDay(n),s)!==l.toString()?{minimum:1,maximum:Number(e.formatByString(e.startOfDay(n),s))}:{minimum:0,maximum:l}},minutes:()=>({minimum:0,maximum:e.getMinutes(i)}),seconds:()=>({minimum:0,maximum:e.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:0})}},GVe=(e,t,n,r,i)=>{switch(n.type){case"year":return e.setYear(i,e.getYear(r));case"month":return e.setMonth(i,e.getMonth(r));case"weekDay":{const o=Ix(e,t,n.format),a=e.formatByString(r,n.format),s=o.indexOf(a),u=o.indexOf(n.value)-s;return e.addDays(r,u)}case"day":return e.setDate(i,e.getDate(r));case"meridiem":{const o=e.getHours(r)<12,a=e.getHours(i);return o&&a>=12?e.addHours(i,-12):!o&&a<12?e.addHours(i,12):i}case"hours":return e.setHours(i,e.getHours(r));case"minutes":return e.setMinutes(i,e.getMinutes(r));case"seconds":return e.setSeconds(i,e.getSeconds(r));default:return i}},uV={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},cV=(e,t,n,r,i,o)=>[...r].sort((a,s)=>uV[a.type]-uV[s.type]).reduce((a,s)=>!o||s.modified?GVe(e,t,s,n,a):a,i),qVe=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,ZVe=(e,t)=>{const n={};if(!t)return e.forEach((l,u)=>{const c=u===0?null:u-1,d=u===e.length-1?null:u+1;n[u]={leftIndex:c,rightIndex:d}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},i={};let o=0,a=0,s=e.length-1;for(;s>=0;){a=e.findIndex((l,u)=>{var c;return u>=o&&((c=l.endSeparator)==null?void 0:c.includes(" "))&&l.endSeparator!==" / "}),a===-1&&(a=e.length-1);for(let l=a;l>=o;l-=1)i[l]=s,r[s]=l,s-=1;o=a+1}return e.forEach((l,u)=>{const c=i[u],d=c===0?null:r[c-1],p=c===e.length-1?null:r[c+1];n[u]={leftIndex:d,rightIndex:p}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},XVe=["value","referenceDate"],Bi={emptyValue:null,getTodayValue:U$,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=Ge(e,XVe);return t!=null&&r.utils.isValid(t)?t:n??UVe(r)},cleanValue:NVe,areValuesEqual:PVe,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},z$={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r,i)=>!e.isValid(t)&&!!n?n:kne(i(t),r),getValueStrFromSections:QVe,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},KVe=["localeText"],YI=I.createContext(null),Ane=function(t){var n;const{localeText:r}=t,i=Ge(t,KVe),{utils:o,localeText:a}=(n=I.useContext(YI))!=null?n:{utils:void 0,localeText:void 0},s=gt({props:i,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:u,dateFormats:c,dateLibInstance:d,adapterLocale:p,localeText:h}=s,m=I.useMemo(()=>P({},h,a,r),[h,a,r]),b=I.useMemo(()=>{if(!u)return o||null;const v=new u({locale:p,formats:c,instance:d});if(!v.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(` +`));return v},[u,p,c,d,o]),O=I.useMemo(()=>b?{minDate:b.date("1900-01-01T00:00:00.000"),maxDate:b.date("2099-12-31T00:00:00.000")}:null,[b]),y=I.useMemo(()=>({utils:b,defaultDates:O,localeText:m}),[O,b,m]);return M.jsx(YI.Provider,{value:y,children:l})},JVe=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:P({},e)}}}}),_ne={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose date, selected date is ${t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose time, selected time is ${t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear value",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa"},eHe=_ne;JVe(_ne);const Vl=()=>{const e=I.useContext(YI);if(e===null)throw new Error(["MUI: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(` `));if(e.utils===null)throw new Error(["MUI: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(` -`));const t=N.useMemo(()=>L({},gVe,e.localeText),[e.localeText]);return N.useMemo(()=>L({},e,{localeText:t}),[e,t])},Rn=()=>Ul().utils,Rp=()=>Ul().defaultDates,Fi=()=>Ul().localeText,ef=e=>{const t=Rn(),n=N.useRef();return n.current===void 0&&(n.current=t.dateWithTimezone(void 0,e)),n.current};function tne(e){return At("MuiPickersToolbar",e)}_t("MuiPickersToolbar",["root","content"]);const bVe=e=>{const{classes:t,isLandscape:n}=e;return Ct({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},tne,t)},yVe=ke("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>L({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),OVe=ke("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>{var t;return{display:"flex",flexWrap:"wrap",width:"100%",justifyContent:e.isLandscape?"flex-start":"space-between",flexDirection:e.isLandscape?(t=e.landscapeDirection)!=null?t:"column":"row",flex:1,alignItems:e.isLandscape?"flex-start":"center"}}),T$=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiPickersToolbar"}),{children:i,className:o,toolbarTitle:a,hidden:s,titleId:l}=r,u=r,c=bVe(u);return s?null:M.jsxs(yVe,{ref:n,className:et(c.root,o),ownerState:u,children:[M.jsx(Gr,{color:"text.secondary",variant:"overline",id:l,children:a}),M.jsx(OVe,{className:c.content,ownerState:u,children:i})]})});function vVe(e){return At("MuiDatePickerToolbar",e)}_t("MuiDatePickerToolbar",["root","title"]);const EVe=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views"],SVe=e=>{const{classes:t}=e;return Ct({root:["root"],title:["title"]},vVe,t)},TVe=ke(T$,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),wVe=ke(Gr,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>L({},e.isLandscape&&{margin:"auto 16px auto auto"})),kVe=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDatePickerToolbar"}),{value:i,isLandscape:o,toolbarFormat:a,toolbarPlaceholder:s="––",views:l}=r,u=Ge(r,EVe),c=Rn(),d=Fi(),p=SVe(r),h=N.useMemo(()=>{if(!i)return s;const y=Zy(c,{format:a,views:l},!0);return c.formatByString(i,y)},[i,a,s,c,l]),m=r;return M.jsx(TVe,L({ref:n,toolbarTitle:d.datePickerToolbarTitle,isLandscape:o,className:p.root},u,{children:M.jsx(wVe,{variant:"h4",align:o?"left":"center",ownerState:m,className:p.title,children:h})}))}),yO=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>L({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]}),{})};function nne(e,t){var n,r,i,o;const a=Rn(),s=Rp(),l=gt({props:e,name:t}),u=N.useMemo(()=>{var d;return((d=l.localeText)==null?void 0:d.toolbarTitle)==null?l.localeText:L({},l.localeText,{datePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),c=(n=l.slots)!=null?n:yO(l.components);return L({},l,{localeText:u},y$({views:l.views,openTo:l.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:(r=l.disableFuture)!=null?r:!1,disablePast:(i=l.disablePast)!=null?i:!1,minDate:Mo(a,l.minDate,s.minDate),maxDate:Mo(a,l.maxDate,s.maxDate),slots:L({toolbar:kVe},c),slotProps:(o=l.slotProps)!=null?o:l.componentsProps})}const xVe=Ti(M.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),CVe=Ti(M.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),AVe=Ti(M.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),rne=Ti(M.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),_Ve=Ti(M.jsxs(N.Fragment,{children:[M.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),M.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),RVe=Ti(M.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),IVe=Ti(M.jsxs(N.Fragment,{children:[M.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),M.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),NVe=Ti(M.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function DVe(e){return At("MuiPickersArrowSwitcher",e)}_t("MuiPickersArrowSwitcher",["root","spacer","button"]);const PVe=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],LVe=["ownerState"],MVe=["ownerState"],$Ve=ke("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),FVe=ke("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),Wz=ke(Ia,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>L({},e.hidden&&{visibility:"hidden"})),BVe=e=>{const{classes:t}=e;return Ct({root:["root"],spacer:["spacer"],button:["button"]},DVe,t)},ine=N.forwardRef(function(t,n){var r,i,o,a;const l=bi().direction==="rtl",u=gt({props:t,name:"MuiPickersArrowSwitcher"}),{children:c,className:d,slots:p,slotProps:h,isNextDisabled:m,isNextHidden:y,onGoToNext:O,nextLabel:b,isPreviousDisabled:v,isPreviousHidden:S,onGoToPrevious:k,previousLabel:C}=u,w=Ge(u,PVe),E=u,$=BVe(E),D={isDisabled:m,isHidden:y,goTo:O,label:b},R={isDisabled:v,isHidden:S,goTo:k,label:C},B=(r=p==null?void 0:p.previousIconButton)!=null?r:Wz,U=kn({elementType:B,externalSlotProps:h==null?void 0:h.previousIconButton,additionalProps:{size:"medium",title:R.label,"aria-label":R.label,disabled:R.isDisabled,edge:"end",onClick:R.goTo},ownerState:L({},E,{hidden:R.isHidden}),className:$.button}),V=(i=p==null?void 0:p.nextIconButton)!=null?i:Wz,z=kn({elementType:V,externalSlotProps:h==null?void 0:h.nextIconButton,additionalProps:{size:"medium",title:D.label,"aria-label":D.label,disabled:D.isDisabled,edge:"start",onClick:D.goTo},ownerState:L({},E,{hidden:D.isHidden}),className:$.button}),Q=(o=p==null?void 0:p.leftArrowIcon)!=null?o:CVe,X=kn({elementType:Q,externalSlotProps:h==null?void 0:h.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),Z=Ge(X,LVe),Y=(a=p==null?void 0:p.rightArrowIcon)!=null?a:AVe,q=kn({elementType:Y,externalSlotProps:h==null?void 0:h.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),j=Ge(q,MVe);return M.jsxs($Ve,L({ref:n,className:et($.root,d),ownerState:E},w,{children:[M.jsx(B,L({},U,{children:l?M.jsx(Y,L({},j)):M.jsx(Q,L({},Z))})),c?M.jsx(Gr,{variant:"subtitle1",component:"span",children:c}):M.jsx(FVe,{className:$.spacer,ownerState:E}),M.jsx(V,L({},z,{children:l?M.jsx(Q,L({},Z)):M.jsx(Y,L({},j))}))]}))}),Ky=36,mx=2,gx=320,UVe=280,bx=334,one=232,K0=48,jVe=ke(o0e)({[`& .${mb.container}`]:{outline:0},[`& .${mb.paper}`]:{outline:0,minWidth:gx}}),zVe=ke(O0e)({"&:first-of-type":{padding:0}});function VVe(e){var t,n;const{children:r,onDismiss:i,open:o,slots:a,slotProps:s}=e,l=(t=a==null?void 0:a.dialog)!=null?t:jVe,u=(n=a==null?void 0:a.mobileTransition)!=null?n:cg;return M.jsx(l,L({open:o,onClose:i},s==null?void 0:s.dialog,{TransitionComponent:u,TransitionProps:s==null?void 0:s.mobileTransition,PaperComponent:a==null?void 0:a.mobilePaper,PaperProps:s==null?void 0:s.mobilePaper,children:M.jsx(zVe,{children:r})}))}function HVe(e){return At("MuiPickersPopper",e)}_t("MuiPickersPopper",["root","paper"]);function bh(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const WVe=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation()),t&&t(n)},YT=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?YT(t.shadowRoot):t:null},w$="@media (pointer: fine)",QVe="@media (prefers-reduced-motion: reduce)",am=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),Qz=am&&am[1]?parseInt(am[1],10):null,Yz=am&&am[2]?parseInt(am[2],10):null,YVe=Qz&&Qz<10||Yz&&Yz<13||!1,ane=()=>pg(QVe,{defaultMatches:!1})||YVe,GVe=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],qVe=e=>{const{classes:t}=e;return Ct({root:["root"],paper:["paper"]},HVe,t)},ZVe=ke(R1,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),XVe=ke(Ra,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>L({outline:0,transformOrigin:"top center"},e.placement.includes("top")&&{transformOrigin:"bottom center"}));function KVe(e,t){return t.documentElement.clientWidth{if(!e)return;function l(){o.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),o.current=!1}},[e]);const a=jt(l=>{if(!o.current)return;const u=r.current;r.current=!1;const c=Hr(i.current);if(!i.current||"clientX"in l&&KVe(l,c))return;if(n.current){n.current=!1;return}let d;l.composedPath?d=l.composedPath().indexOf(i.current)>-1:d=!c.documentElement.contains(l.target)||i.current.contains(l.target),!d&&!u&&t(l)}),s=()=>{r.current=!0};return N.useEffect(()=>{if(e){const l=Hr(i.current),u=()=>{n.current=!0};return l.addEventListener("touchstart",a),l.addEventListener("touchmove",u),()=>{l.removeEventListener("touchstart",a),l.removeEventListener("touchmove",u)}}},[e,a]),N.useEffect(()=>{if(e){const l=Hr(i.current);return l.addEventListener("click",a),()=>{l.removeEventListener("click",a),r.current=!1}}},[e,a]),[i,s,s]}const eHe=N.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:i,children:o,paperSlotProps:a,paperClasses:s,onPaperClick:l,onPaperTouchStart:u}=e,c=Ge(e,GVe),d=L({},i,{placement:r}),p=kn({elementType:n,externalSlotProps:a,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:s,ownerState:d});return M.jsx(n,L({},c,p,{onClick:h=>{var m;l(h),(m=p.onClick)==null||m.call(p,h)},onTouchStart:h=>{var m;u(h),(m=p.onTouchStart)==null||m.call(p,h)},ownerState:d,children:o}))});function tHe(e){var t,n,r,i;const o=gt({props:e,name:"MuiPickersPopper"}),{anchorEl:a,children:s,containerRef:l=null,shouldRestoreFocus:u,onBlur:c,onDismiss:d,open:p,role:h,placement:m,slots:y,slotProps:O,reduceAnimations:b}=o;N.useEffect(()=>{function q(j){p&&(j.key==="Escape"||j.key==="Esc")&&d()}return document.addEventListener("keydown",q),()=>{document.removeEventListener("keydown",q)}},[d,p]);const v=N.useRef(null);N.useEffect(()=>{h==="tooltip"||u&&!u()||(p?v.current=YT(document):v.current&&v.current instanceof HTMLElement&&setTimeout(()=>{v.current instanceof HTMLElement&&v.current.focus()}))},[p,h,u]);const[S,k,C]=JVe(p,c??d),w=N.useRef(null),E=yn(w,l),$=yn(E,S),D=o,R=qVe(D),B=ane(),U=b??B,V=q=>{q.key==="Escape"&&(q.stopPropagation(),d())},z=((t=y==null?void 0:y.desktopTransition)!=null?t:U)?cg:jS,Q=(n=y==null?void 0:y.desktopTrapFocus)!=null?n:SQ,X=(r=y==null?void 0:y.desktopPaper)!=null?r:XVe,Z=(i=y==null?void 0:y.popper)!=null?i:ZVe,Y=kn({elementType:Z,externalSlotProps:O==null?void 0:O.popper,additionalProps:{transition:!0,role:h,open:p,anchorEl:a,placement:m,onKeyDown:V},className:R.root,ownerState:o});return M.jsx(Z,L({},Y,{children:({TransitionProps:q,placement:j})=>M.jsx(Q,L({open:p,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:h==="tooltip",isEnabled:()=>!0},O==null?void 0:O.desktopTrapFocus,{children:M.jsx(z,L({},q,O==null?void 0:O.desktopTransition,{children:M.jsx(eHe,{PaperComponent:X,ownerState:D,popperPlacement:j,ref:$,onPaperClick:k,onPaperTouchStart:C,paperClasses:R.paper,paperSlotProps:O==null?void 0:O.desktopPaper,children:s})}))}))}))}function nHe(e){return At("MuiPickersToolbarText",e)}const Gz=_t("MuiPickersToolbarText",["root","selected"]),rHe=["className","selected","value"],iHe=e=>{const{classes:t,selected:n}=e;return Ct({root:["root",n&&"selected"]},nHe,t)},oHe=ke(Gr,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${Gz.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${Gz.selected}`]:{color:(e.vars||e).palette.text.primary}})),k$=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiPickersToolbarText"}),{className:i,value:o}=r,a=Ge(r,rHe),s=iHe(r);return M.jsx(oHe,L({ref:n,className:et(i,s.root),component:"span"},a,{children:o}))}),aHe=["align","className","selected","typographyClassName","value","variant","width"],sHe=e=>{const{classes:t}=e;return Ct({root:["root"]},tne,t)},lHe=ke(Af,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),Za=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiPickersToolbarButton"}),{align:i,className:o,selected:a,typographyClassName:s,value:l,variant:u,width:c}=r,d=Ge(r,aHe),p=sHe(r);return M.jsx(lHe,L({variant:"text",ref:n,className:et(o,p.root)},c?{sx:{width:c}}:{},d,{children:M.jsx(k$,{align:i,className:s,variant:u,value:l,selected:a})}))}),x$=({timezone:e,value:t,defaultValue:n,onChange:r,valueManager:i})=>{var o,a;const s=Rn(),l=N.useRef(n),u=(o=t??l.current)!=null?o:i.emptyValue,c=N.useMemo(()=>i.getTimezone(s,u),[s,i,u]),d=jt(y=>c==null?y:i.setTimezone(s,c,y)),p=(a=e??c)!=null?a:"default",h=N.useMemo(()=>i.setTimezone(s,p,u),[i,s,p,u]),m=jt((y,...O)=>{const b=d(y);r==null||r(b,...O)});return{value:h,handleValueChange:m,timezone:p}},$g=({name:e,timezone:t,value:n,defaultValue:r,onChange:i,valueManager:o})=>{const[a,s]=qi({name:e,state:"value",controlled:n,default:r??o.emptyValue}),l=jt((u,...c)=>{s(u),i==null||i(u,...c)});return x$({timezone:t,value:a,defaultValue:void 0,onChange:l,valueManager:o})};function sne(e,t,n,r){const{value:i,onError:o}=e,a=Ul(),s=N.useRef(r),l=t({adapter:a,value:i,props:e});return N.useEffect(()=>{o&&!n(l,s.current)&&o(l,i),s.current=l},[n,o,s,l,i]),l}const uHe=e=>{const t=Rn(),n=Fi(),r=Ul(),o=bi().direction==="rtl",{valueManager:a,fieldValueManager:s,valueType:l,validator:u,internalProps:c,internalProps:{value:d,defaultValue:p,referenceDate:h,onChange:m,format:y,formatDensity:O="dense",selectedSections:b,onSelectedSectionsChange:v,shouldRespectLeadingZeros:S=!1,timezone:k}}=e,{timezone:C,value:w,handleValueChange:E}=x$({timezone:k,value:d,defaultValue:p,onChange:m,valueManager:a}),$=N.useMemo(()=>uVe(t,C),[t,C]),D=N.useCallback((ue,ge=null)=>s.getSectionsFromValue(t,ue,ge,o,he=>zz(t,C,n,y,he,O,S,o)),[s,y,n,o,S,t,O,C]),R=N.useMemo(()=>s.getValueStrFromSections(D(a.emptyValue),o),[s,D,a.emptyValue,o]),[B,U]=N.useState(()=>{const ue=D(w),ge={sections:ue,value:w,referenceValue:a.emptyValue,tempValueStrAndroid:null},he=tVe(ue),Ne=a.getInitialReferenceValue({referenceDate:h,value:w,utils:t,props:c,granularity:he,timezone:C});return L({},ge,{referenceValue:Ne})}),[V,z]=qi({controlled:b,default:null,name:"useField",state:"selectedSectionIndexes"}),Q=ue=>{z(ue),v==null||v(ue),U(ge=>L({},ge,{selectedSectionQuery:null}))},X=N.useMemo(()=>{if(V==null)return null;if(V==="all")return{startIndex:0,endIndex:B.sections.length-1,shouldSelectBoundarySelectors:!0};if(typeof V=="number")return{startIndex:V,endIndex:V};if(typeof V=="string"){const ue=B.sections.findIndex(ge=>ge.type===V);return{startIndex:ue,endIndex:ue}}return V},[V,B.sections]),Z=({value:ue,referenceValue:ge,sections:he})=>{if(U(Le=>L({},Le,{sections:he,value:ue,referenceValue:ge,tempValueStrAndroid:null})),a.areValuesEqual(t,B.value,ue))return;const Ne={validationError:u({adapter:r,value:ue,props:L({},c,{value:ue,timezone:C})})};E(ue,Ne)},Y=(ue,ge)=>{const he=[...B.sections];return he[ue]=L({},he[ue],{value:ge,modified:!0}),Zte(he,o)},q=()=>{Z({value:a.emptyValue,referenceValue:B.referenceValue,sections:D(a.emptyValue)})},j=()=>{if(X==null)return;const ue=B.sections[X.startIndex],ge=s.getActiveDateManager(t,B,ue),Ne=ge.getSections(B.sections).filter(Me=>Me.value!=="").length===(ue.value===""?0:1),Le=Y(X.startIndex,""),qe=Ne?null:t.date(new Date("")),rt=ge.getNewValuesFromNewActiveDate(qe);(qe!=null&&!t.isValid(qe))!=(ge.date!=null&&!t.isValid(ge.date))?Z(L({},rt,{sections:Le})):U(Me=>L({},Me,rt,{sections:Le,tempValueStrAndroid:null}))},le=ue=>{const ge=(Le,qe)=>{const rt=t.parse(Le,y);if(rt==null||!t.isValid(rt))return null;const Me=zz(t,C,n,y,rt,O,S,o);return Hz(t,C,rt,Me,qe,!1)},he=s.parseValueStr(ue,B.referenceValue,ge),Ne=s.updateReferenceValue(t,he,B.referenceValue);Z({value:he,referenceValue:Ne,sections:D(he,B.sections)})},Ee=({activeSection:ue,newSectionValue:ge,shouldGoToNextSection:he})=>{he&&X&&X.startIndexL({},ye,Me,{sections:Le,tempValueStrAndroid:null}))},G=ue=>U(ge=>L({},ge,{tempValueStrAndroid:ue}));return N.useEffect(()=>{const ue=D(B.value);U(ge=>L({},ge,{sections:ue}))},[y,t.locale]),N.useEffect(()=>{let ue=!1;a.areValuesEqual(t,B.value,w)?ue=a.getTimezone(t,B.value)!==a.getTimezone(t,w):ue=!0,ue&&U(ge=>L({},ge,{value:w,referenceValue:s.updateReferenceValue(t,w,ge.referenceValue),sections:D(w)}))},[w]),{state:B,selectedSectionIndexes:X,setSelectedSections:Q,clearValue:q,clearActiveSection:j,updateSectionValue:Ee,updateValueFromValueStr:le,setTempAndroidValueStr:G,sectionsValueBoundaries:$,placeholder:R,timezone:C}},cHe=5e3,ih=e=>e.saveQuery!=null,dHe=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,setTempAndroidValueStr:r,timezone:i})=>{const o=Rn(),[a,s]=N.useState(null),l=jt(()=>s(null));N.useEffect(()=>{var h;a!=null&&((h=e[a.sectionIndex])==null?void 0:h.type)!==a.sectionType&&l()},[e,a,l]),N.useEffect(()=>{if(a!=null){const h=setTimeout(()=>l(),cHe);return()=>{window.clearTimeout(h)}}return()=>{}},[a,l]);const u=({keyPressed:h,sectionIndex:m},y,O)=>{const b=h.toLowerCase(),v=e[m];if(a!=null&&(!O||O(a.value))&&a.sectionIndex===m){const k=`${a.value}${b}`,C=y(k,v);if(!ih(C))return s({sectionIndex:m,value:k,sectionType:v.type}),C}const S=y(b,v);return ih(S)&&!S.saveQuery?(l(),null):(s({sectionIndex:m,value:b,sectionType:v.type}),ih(S)?null:S)},c=h=>{const m=(b,v,S)=>{const k=v.filter(C=>C.toLowerCase().startsWith(S));return k.length===0?{saveQuery:!1}:{sectionValue:k[0],shouldGoToNextSection:k.length===1}},y=(b,v,S,k)=>{const C=w=>Yte(o,i,v.type,w);if(v.contentType==="letter")return m(v.format,C(v.format),b);if(S&&k!=null&&Qte(o,S).contentType==="letter"){const w=C(S),E=m(S,w,b);return ih(E)?{saveQuery:!1}:L({},E,{sectionValue:k(E.sectionValue,w)})}return{saveQuery:!1}};return u(h,(b,v)=>{switch(v.type){case"month":{const S=k=>jz(o,k,o.formats.month,v.format);return y(b,v,o.formats.month,S)}case"weekDay":{const S=(k,C)=>C.indexOf(k).toString();return y(b,v,o.formats.weekday,S)}case"meridiem":return y(b,v);default:return{saveQuery:!1}}})},d=h=>{const m=(O,b)=>{const v=+`${O}`,S=n[b.type]({currentDate:null,format:b.format,contentType:b.contentType});if(v>S.maximum)return{saveQuery:!1};if(vS.maximum||O.length===S.maximum.toString().length;return{sectionValue:qte(o,i,v,S,b),shouldGoToNextSection:k}};return u(h,(O,b)=>{if(b.contentType==="digit"||b.contentType==="digit-with-letter")return m(O,b);if(b.type==="month"){const v=Kte(o,i,"digit","month","MM"),S=m(O,{type:b.type,format:"MM",hasLeadingZerosInFormat:v,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(ih(S))return S;const k=jz(o,S.sectionValue,"MM",b.format);return L({},S,{sectionValue:k})}if(b.type==="weekDay"){const v=m(O,b);if(ih(v))return v;const S=hx(o,i,b.format)[Number(v.sectionValue)-1];return L({},v,{sectionValue:S})}return{saveQuery:!1}},O=>!Number.isNaN(Number(O)))};return{applyCharacterEditing:jt(h=>{const m=e[h.sectionIndex],O=!Number.isNaN(Number(h.keyPressed))?d(h):c(h);O==null?r(null):t({activeSection:m,newSectionValue:O.sectionValue,shouldGoToNextSection:O.shouldGoToNextSection})}),resetCharacterQuery:l}},fHe=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],C$=e=>{const t=Rn(),{state:n,selectedSectionIndexes:r,setSelectedSections:i,clearValue:o,clearActiveSection:a,updateSectionValue:s,updateValueFromValueStr:l,setTempAndroidValueStr:u,sectionsValueBoundaries:c,placeholder:d,timezone:p}=uHe(e),{inputRef:h,internalProps:m,internalProps:{readOnly:y=!1,unstableFieldRef:O,minutesStep:b},forwardedProps:{onClick:v,onKeyDown:S,onFocus:k,onBlur:C,onMouseUp:w,onPaste:E,error:$,clearable:D,onClear:R,disabled:B},fieldValueManager:U,valueManager:V,validator:z}=e,Q=Ge(e.forwardedProps,fHe),{applyCharacterEditing:X,resetCharacterQuery:Z}=dHe({sections:n.sections,updateSectionValue:s,sectionsValueBoundaries:c,setTempAndroidValueStr:u,timezone:p}),Y=N.useRef(null),q=yn(h,Y),j=N.useRef(void 0),Ee=bi().direction==="rtl",G=N.useMemo(()=>fVe(n.sections,Ee),[n.sections,Ee]),ue=()=>{var ee;if(y){i(null);return}const J=(ee=Y.current.selectionStart)!=null?ee:0;let _e;J<=n.sections[0].startInInput||J>=n.sections[n.sections.length-1].endInInput?_e=1:_e=n.sections.findIndex(Ie=>Ie.startInInput-Ie.startSeparator.length>J);const Pe=_e===-1?n.sections.length-1:_e-1;i(Pe)},ge=jt((ee,...J)=>{ee.isDefaultPrevented()||(v==null||v(ee,...J),ue())}),he=jt(ee=>{w==null||w(ee),ee.preventDefault()}),Ne=jt((...ee)=>{k==null||k(...ee);const J=Y.current;window.clearTimeout(j.current),j.current=setTimeout(()=>{!J||J!==Y.current||r!=null||y||(J.value.length&&Number(J.selectionEnd)-Number(J.selectionStart)===J.value.length?i("all"):ue())})}),Le=jt((...ee)=>{C==null||C(...ee),i(null)}),qe=jt(ee=>{if(E==null||E(ee),y){ee.preventDefault();return}const J=ee.clipboardData.getData("text");if(r&&r.startIndex===r.endIndex){const _e=n.sections[r.startIndex],Pe=/^[a-zA-Z]+$/.test(J),Ie=/^[0-9]+$/.test(J),ie=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(J);if(_e.contentType==="letter"&&Pe||_e.contentType==="digit"&&Ie||_e.contentType==="digit-with-letter"&&ie){Z(),s({activeSection:_e,newSectionValue:J,shouldGoToNextSection:!0}),ee.preventDefault();return}if(Pe||Ie){ee.preventDefault();return}}ee.preventDefault(),Z(),l(J)}),rt=jt(ee=>{if(y)return;const J=ee.target.value;if(J===""){Z(),o();return}const _e=ee.nativeEvent.data,Pe=_e&&_e.length>1,Ie=Pe?_e:J,ie=Uh(Ie);if(r==null||Pe){l(Pe?_e:ie);return}let de;if(r.startIndex===0&&r.endIndex===n.sections.length-1&&ie.length===1)de=ie;else{const ce=Uh(U.getValueStrFromSections(n.sections,Ee));let Oe=-1,Se=-1;for(let Ke=0;Kent.end)return;const kt=ie.length-ce.length+nt.end-Uh(nt.endSeparator||"").length;de=ie.slice(nt.start+Uh(nt.startSeparator||"").length,kt)}if(de.length===0){dVe()?u(Ie):(Z(),a());return}X({keyPressed:de,sectionIndex:r.startIndex})}),Me=jt(ee=>{switch(S==null||S(ee),!0){case(ee.key==="a"&&(ee.ctrlKey||ee.metaKey)):{ee.preventDefault(),i("all");break}case ee.key==="ArrowRight":{if(ee.preventDefault(),r==null)i(G.startIndex);else if(r.startIndex!==r.endIndex)i(r.endIndex);else{const J=G.neighbors[r.startIndex].rightIndex;J!==null&&i(J)}break}case ee.key==="ArrowLeft":{if(ee.preventDefault(),r==null)i(G.endIndex);else if(r.startIndex!==r.endIndex)i(r.startIndex);else{const J=G.neighbors[r.startIndex].leftIndex;J!==null&&i(J)}break}case ee.key==="Delete":{if(ee.preventDefault(),y)break;r==null||r.startIndex===0&&r.endIndex===n.sections.length-1?o():a(),Z();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(ee.key):{if(ee.preventDefault(),y||r==null)break;const J=n.sections[r.startIndex],_e=U.getActiveDateManager(t,n,J),Pe=iVe(t,p,J,ee.key,c,_e.date,{minutesStep:b});s({activeSection:J,newSectionValue:Pe,shouldGoToNextSection:!1});break}}});Xr(()=>{if(!Y.current)return;if(r==null){Y.current.scrollLeft&&(Y.current.scrollLeft=0);return}const ee=n.sections[r.startIndex],J=n.sections[r.endIndex];let _e=ee.startInInput,Pe=J.endInInput;if(r.shouldSelectBoundarySelectors&&(_e-=ee.startSeparator.length,Pe+=J.endSeparator.length),_e!==Y.current.selectionStart||Pe!==Y.current.selectionEnd){const Ie=Y.current.scrollTop;Y.current===YT(document)&&Y.current.setSelectionRange(_e,Pe),Y.current.scrollTop=Ie}});const Qe=sne(L({},m,{value:n.value,timezone:p}),z,V.isSameError,V.defaultErrorState),ye=N.useMemo(()=>$!==void 0?$:V.hasError(Qe),[V,Qe,$]);N.useEffect(()=>{!ye&&!r&&Z()},[n.referenceValue,r,ye]),N.useEffect(()=>(Y.current&&Y.current===document.activeElement&&i("all"),()=>window.clearTimeout(j.current)),[]),N.useEffect(()=>{n.tempValueStrAndroid!=null&&r!=null&&(Z(),a())},[n.tempValueStrAndroid]);const ze=N.useMemo(()=>{var ee;return(ee=n.tempValueStrAndroid)!=null?ee:U.getValueStrFromSections(n.sections,Ee)},[n.sections,U,n.tempValueStrAndroid,Ee]),$e=N.useMemo(()=>r==null||n.sections[r.startIndex].contentType==="letter"?"text":"numeric",[r,n.sections]),He=Y.current&&Y.current===YT(document),dt=V.areValuesEqual(t,n.value,V.emptyValue),Be=!He&&dt;N.useImperativeHandle(O,()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var ee,J;const _e=(ee=Y.current.selectionStart)!=null?ee:0,Pe=(J=Y.current.selectionEnd)!=null?J:0;if(_e===0&&Pe===0)return null;const Ie=_e<=n.sections[0].startInInput?1:n.sections.findIndex(ie=>ie.startInInput-ie.startSeparator.length>_e);return Ie===-1?n.sections.length-1:Ie-1},setSelectedSections:ee=>i(ee)}));const re=jt((ee,...J)=>{var _e;ee.preventDefault(),R==null||R(ee,...J),o(),Y==null||(_e=Y.current)==null||_e.focus(),i(0)});return L({placeholder:d,autoComplete:"off",disabled:!!B},Q,{value:Be?"":ze,inputMode:$e,readOnly:y,onClick:ge,onFocus:Ne,onBlur:Le,onPaste:qe,onChange:rt,onKeyDown:Me,onMouseUp:he,onClear:re,error:ye,ref:q,clearable:!!(D&&!dt&&!y&&!B)})},pHe=({open:e,onOpen:t,onClose:n})=>{const r=N.useRef(typeof e=="boolean").current,[i,o]=N.useState(!1);N.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");o(e)}},[r,e]);const a=N.useCallback(s=>{r||o(s),s&&t&&t(),!s&&n&&n()},[r,t,n]);return{isOpen:i,setIsOpen:a}},hHe=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:i}=e,o=!i&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?o&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?o?!0:n(r.lastPublishedValue):!1},mHe=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:i,closeOnSelect:o}=e,a=!i&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&o?a?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},gHe=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},bHe=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:i})=>{const{onAccept:o,onChange:a,value:s,defaultValue:l,closeOnSelect:u=r==="desktop",selectedSections:c,onSelectedSectionsChange:d,timezone:p}=e,{current:h}=N.useRef(l),{current:m}=N.useRef(s!==void 0),y=Rn(),O=Ul(),[b,v]=qi({controlled:c,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:S,setIsOpen:k}=pHe(e),[C,w]=N.useState(()=>{let Ne;return s!==void 0?Ne=s:h!==void 0?Ne=h:Ne=t.emptyValue,{draft:Ne,lastPublishedValue:Ne,lastCommittedValue:Ne,lastControlledValue:s,hasBeenModifiedSinceMount:!1}}),{timezone:E,handleValueChange:$}=x$({timezone:p,value:s,defaultValue:h,onChange:a,valueManager:t});sne(L({},e,{value:C.draft,timezone:E}),i,t.isSameError,t.defaultErrorState);const D=jt(Ne=>{const Le={action:Ne,dateState:C,hasChanged:Qe=>!t.areValuesEqual(y,Ne.value,Qe),isControlled:m,closeOnSelect:u},qe=hHe(Le),rt=mHe(Le),Me=gHe(Le);if(w(Qe=>L({},Qe,{draft:Ne.value,lastPublishedValue:qe?Ne.value:Qe.lastPublishedValue,lastCommittedValue:rt?Ne.value:Qe.lastCommittedValue,hasBeenModifiedSinceMount:!0})),qe){const ye={validationError:Ne.name==="setValueFromField"?Ne.context.validationError:i({adapter:O,value:Ne.value,props:L({},e,{value:Ne.value,timezone:E})})};Ne.name==="setValueFromShortcut"&&Ne.shortcut!=null&&(ye.shortcut=Ne.shortcut),$(Ne.value,ye)}rt&&o&&o(Ne.value),Me&&k(!1)});if(s!==void 0&&(C.lastControlledValue===void 0||!t.areValuesEqual(y,C.lastControlledValue,s))){const Ne=t.areValuesEqual(y,C.draft,s);w(Le=>L({},Le,{lastControlledValue:s},Ne?{}:{lastCommittedValue:s,lastPublishedValue:s,draft:s,hasBeenModifiedSinceMount:!0}))}const R=jt(()=>{D({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),B=jt(()=>{D({value:C.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),U=jt(()=>{D({value:C.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),V=jt(()=>{D({value:C.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),z=jt(()=>{D({value:t.getTodayValue(y,E,n),name:"setValueFromAction",pickerAction:"today"})}),Q=jt(()=>k(!0)),X=jt(()=>k(!1)),Z=jt((Ne,Le="partial")=>D({name:"setValueFromView",value:Ne,selectionState:Le})),Y=jt((Ne,Le,qe)=>D({name:"setValueFromShortcut",value:Ne,changeImportance:Le??"accept",shortcut:qe})),q=jt((Ne,Le)=>D({name:"setValueFromField",value:Ne,context:Le})),j=jt(Ne=>{v(Ne),d==null||d(Ne)}),le={onClear:R,onAccept:B,onDismiss:U,onCancel:V,onSetToday:z,onOpen:Q,onClose:X},Ee={value:C.draft,onChange:q,selectedSections:b,onSelectedSectionsChange:j},G=N.useMemo(()=>t.cleanValue(y,C.draft),[y,t,C.draft]),ue={value:G,onChange:Z,onClose:X,open:S,onSelectedSectionsChange:j},he=L({},le,{value:G,onChange:Z,onSelectShortcut:Y,isValid:Ne=>{const Le=i({adapter:O,value:Ne,props:L({},e,{value:Ne,timezone:E})});return!t.hasError(Le)}});return{open:S,fieldProps:Ee,viewProps:ue,layoutProps:he,actions:le}};function OO({onChange:e,onViewChange:t,openTo:n,view:r,views:i,autoFocus:o,focusedView:a,onFocusedViewChange:s}){var l,u;const c=N.useRef(n),d=N.useRef(i),p=N.useRef(i.includes(n)?n:i[0]),[h,m]=qi({name:"useViews",state:"view",controlled:r,default:p.current}),y=N.useRef(o?h:null),[O,b]=qi({name:"useViews",state:"focusedView",controlled:a,default:y.current});N.useEffect(()=>{(c.current&&c.current!==n||d.current&&d.current.some(D=>!i.includes(D)))&&(m(i.includes(n)?n:i[0]),d.current=i,c.current=n)},[n,m,h,i]);const v=i.indexOf(h),S=(l=i[v-1])!=null?l:null,k=(u=i[v+1])!=null?u:null,C=jt((D,R)=>{b(R?D:B=>D===B?null:B),s==null||s(D,R)}),w=jt(D=>{C(D,!0),D!==h&&(m(D),t&&t(D))}),E=jt(()=>{k&&w(k)}),$=jt((D,R,B)=>{const U=R==="finish",V=B?i.indexOf(B){const{onChange:o,open:a,onSelectedSectionsChange:s,onClose:l}=t,{views:u,openTo:c,onViewChange:d,disableOpenPicker:p,viewRenderers:h,timezone:m}=e,y=Ge(e,yHe),{view:O,setView:b,defaultView:v,focusedView:S,setFocusedView:k,setValueAndGoToNextView:C}=OO({view:void 0,views:u,openTo:c,onChange:o,onViewChange:d,autoFocus:i}),{hasUIView:w,viewModeLookup:E}=N.useMemo(()=>u.reduce((z,Q)=>{let X;return p?X="field":h[Q]!=null?X="UI":X="field",z.viewModeLookup[Q]=X,X==="UI"&&(z.hasUIView=!0),z},{hasUIView:!1,viewModeLookup:{}}),[p,h,u]),$=N.useMemo(()=>u.reduce((z,Q)=>h[Q]!=null&&tg(Q)?z+1:z,0),[h,u]),D=E[O],R=jt(()=>D==="UI"),[B,U]=N.useState(D==="UI"?O:null);return B!==O&&E[O]==="UI"&&U(O),Xr(()=>{D==="field"&&a&&(l(),setTimeout(()=>{r==null||r.current.focus(),s(O)}))},[O]),Xr(()=>{if(!a)return;let z=O;D==="field"&&B!=null&&(z=B),z!==v&&E[z]==="UI"&&E[v]==="UI"&&(z=v),z!==O&&b(z),k(z,!0)},[a]),{hasUIView:w,shouldRestoreFocus:R,layoutProps:{views:u,view:B,onViewChange:b},renderCurrentView:()=>{if(B==null)return null;const z=h[B];return z==null?null:z(L({},y,n,t,{views:u,timezone:m,onChange:C,view:B,onViewChange:b,focusedView:S,onFocusedViewChange:k,showViewSwitcher:$>1,timeViewsCount:$}))}}};function qz(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const vHe=(e,t)=>{const[n,r]=N.useState(qz);return Xr(()=>{const o=()=>{r(qz())};return window.addEventListener("orientationchange",o),()=>{window.removeEventListener("orientationchange",o)}},[]),bh(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},EHe=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:i}=e,o=vHe(n.views,i);return{layoutProps:L({},n,t,{isLandscape:o,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}},SHe=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(` -`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}};SHe(["The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const lne=({props:e,valueManager:t,valueType:n,wrapperVariant:r,inputRef:i,additionalViewProps:o,validator:a,autoFocusView:s})=>{const l=bHe({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:a}),u=OHe({props:e,inputRef:i,additionalViewProps:o,autoFocusView:s,propsFromPickerValue:l.viewProps}),c=EHe({props:e,wrapperVariant:r,propsFromPickerValue:l.layoutProps,propsFromPickerViews:u.layoutProps});return{open:l.open,actions:l.actions,fieldProps:l.fieldProps,renderCurrentView:u.renderCurrentView,hasUIView:u.hasUIView,shouldRestoreFocus:u.shouldRestoreFocus,layoutProps:c.layoutProps}};function une(e){return At("MuiPickersLayout",e)}const r2=_t("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","shortcuts"]),THe=["onAccept","onClear","onCancel","onSetToday","actions"];function wHe(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:i,actions:o}=e,a=Ge(e,THe),s=Fi();if(o==null||o.length===0)return null;const l=o==null?void 0:o.map(u=>{switch(u){case"clear":return M.jsx(Af,{onClick:n,children:s.clearButtonLabel},u);case"cancel":return M.jsx(Af,{onClick:r,children:s.cancelButtonLabel},u);case"accept":return M.jsx(Af,{onClick:t,children:s.okButtonLabel},u);case"today":return M.jsx(Af,{onClick:i,children:s.todayButtonLabel},u);default:return null}});return M.jsx(d0e,L({},a,{children:l}))}const kHe=["items","changeImportance","isLandscape","onChange","isValid"],xHe=["getValue"];function CHe(e){const{items:t,changeImportance:n,onChange:r,isValid:i}=e,o=Ge(e,kHe);if(t==null||t.length===0)return null;const a=t.map(s=>{let{getValue:l}=s,u=Ge(s,xHe);const c=l({isValid:i});return{label:u.label,onClick:()=>{r(c,n,u)},disabled:!i(c)}});return M.jsx(KQ,L({dense:!0,sx:[{maxHeight:bx,maxWidth:200,overflow:"auto"},...Array.isArray(o.sx)?o.sx:[o.sx]]},o,{children:a.map(s=>M.jsx(ch,{children:M.jsx(gD,L({},s))},s.label))}))}function AHe(e){return e.view!==null}const _He=e=>{const{classes:t,isLandscape:n}=e;return Ct({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},une,t)},RHe=e=>{var t,n;const{wrapperVariant:r,onAccept:i,onClear:o,onCancel:a,onSetToday:s,view:l,views:u,onViewChange:c,value:d,onChange:p,onSelectShortcut:h,isValid:m,isLandscape:y,disabled:O,readOnly:b,children:v,components:S,componentsProps:k,slots:C,slotProps:w}=e,E=C??yO(S),$=w??k,D=_He(e),R=(t=E==null?void 0:E.actionBar)!=null?t:wHe,B=kn({elementType:R,externalSlotProps:$==null?void 0:$.actionBar,additionalProps:{onAccept:i,onClear:o,onCancel:a,onSetToday:s,actions:r==="desktop"?[]:["cancel","accept"],className:D.actionBar},ownerState:L({},e,{wrapperVariant:r})}),U=M.jsx(R,L({},B)),V=E==null?void 0:E.toolbar,z=kn({elementType:V,externalSlotProps:$==null?void 0:$.toolbar,additionalProps:{isLandscape:y,onChange:p,value:d,view:l,onViewChange:c,views:u,disabled:O,readOnly:b,className:D.toolbar},ownerState:L({},e,{wrapperVariant:r})}),Q=AHe(z)&&V?M.jsx(V,L({},z)):null,X=v,Z=E==null?void 0:E.tabs,Y=l&&Z?M.jsx(Z,L({view:l,onViewChange:c},$==null?void 0:$.tabs)):null,q=(n=E==null?void 0:E.shortcuts)!=null?n:CHe,j=kn({elementType:q,externalSlotProps:$==null?void 0:$.shortcuts,additionalProps:{isValid:m,isLandscape:y,onChange:h,className:D.shortcuts},ownerState:{isValid:m,isLandscape:y,onChange:h,className:D.shortcuts,wrapperVariant:r}}),le=l&&q?M.jsx(q,L({},j)):null;return{toolbar:Q,content:X,tabs:Y,actionBar:U,shortcuts:le}},IHe=e=>{const{isLandscape:t,classes:n}=e;return Ct({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},une,n)},cne=ke("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${r2.toolbar}`]:t.isLandscape?{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${r2.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"},[`& .${r2.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}}));cne.propTypes={as:W.elementType,ownerState:W.shape({isLandscape:W.bool.isRequired}).isRequired,sx:W.oneOfType([W.arrayOf(W.oneOfType([W.func,W.object,W.bool])),W.func,W.object])};const NHe=ke("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),dne=function(t){const n=gt({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:i,tabs:o,actionBar:a,shortcuts:s}=RHe(n),{sx:l,className:u,isLandscape:c,ref:d,wrapperVariant:p}=n,h=n,m=IHe(h);return M.jsxs(cne,{ref:d,sx:l,className:et(u,m.root),ownerState:h,children:[c?s:r,c?r:s,M.jsx(NHe,{className:m.contentWrapper,children:p==="desktop"?M.jsxs(N.Fragment,{children:[i,o]}):M.jsxs(N.Fragment,{children:[o,i]})}),a]})};function DHe(e,{disableFuture:t,maxDate:n,timezone:r}){const i=Rn();return N.useMemo(()=>{const o=i.dateWithTimezone(void 0,r),a=i.startOfMonth(t&&i.isBefore(o,n)?o:n);return!i.isAfter(a,e)},[t,n,e,i,r])}function PHe(e,{disablePast:t,minDate:n,timezone:r}){const i=Rn();return N.useMemo(()=>{const o=i.dateWithTimezone(void 0,r),a=i.startOfMonth(t&&i.isAfter(o,n)?o:n);return!i.isBefore(a,e)},[t,n,e,i,r])}function yx(e,t,n,r){const i=Rn(),o=Jze(e,i),a=N.useCallback(s=>{const l=e==null?null:eVe(e,s,!!t,i);n(l,r??"partial")},[t,e,n,r,i]);return{meridiemMode:o,handleMeridiemChange:a}}const CI=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],AI=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],fne=["minDateTime","maxDateTime"],LHe=[...CI,...AI,...fne],Fg=e=>LHe.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),MHe=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],A$=(e,t)=>{const n=L({},e),r={},i=o=>{n.hasOwnProperty(o)&&(r[o]=n[o],delete n[o])};return MHe.forEach(i),t==="date"?CI.forEach(i):t==="time"?AI.forEach(i):t==="date-time"&&(CI.forEach(i),AI.forEach(i),fne.forEach(i)),{forwardedProps:n,internalProps:r}},Ip=({props:e,value:t,adapter:n})=>{if(t===null)return null;const{shouldDisableDate:r,shouldDisableMonth:i,shouldDisableYear:o,disablePast:a,disableFuture:s,timezone:l}=e,u=n.utils.dateWithTimezone(void 0,l),c=Mo(n.utils,e.minDate,n.defaultDates.minDate),d=Mo(n.utils,e.maxDate,n.defaultDates.maxDate);switch(!0){case!n.utils.isValid(t):return"invalidDate";case!!(r&&r(t)):return"shouldDisableDate";case!!(i&&i(t)):return"shouldDisableMonth";case!!(o&&o(t)):return"shouldDisableYear";case!!(s&&n.utils.isAfterDay(t,u)):return"disableFuture";case!!(a&&n.utils.isBeforeDay(t,u)):return"disablePast";case!!(c&&n.utils.isBeforeDay(t,c)):return"minDate";case!!(d&&n.utils.isAfterDay(t,d)):return"maxDate";default:return null}},vO=({adapter:e,value:t,props:n})=>{if(t===null)return null;const{minTime:r,maxTime:i,minutesStep:o,shouldDisableClock:a,shouldDisableTime:s,disableIgnoringDatePartForTimeValidation:l=!1,disablePast:u,disableFuture:c,timezone:d}=n,p=e.utils.dateWithTimezone(void 0,d),h=bO(l,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(r&&h(r,t)):return"minTime";case!!(i&&h(t,i)):return"maxTime";case!!(c&&e.utils.isAfter(t,p)):return"disableFuture";case!!(u&&e.utils.isBefore(t,p)):return"disablePast";case!!(s&&s(t,"hours")):return"shouldDisableTime-hours";case!!(s&&s(t,"minutes")):return"shouldDisableTime-minutes";case!!(s&&s(t,"seconds")):return"shouldDisableTime-seconds";case!!(a&&a(e.utils.getHours(t),"hours")):return"shouldDisableClock-hours";case!!(a&&a(e.utils.getMinutes(t),"minutes")):return"shouldDisableClock-minutes";case!!(a&&a(e.utils.getSeconds(t),"seconds")):return"shouldDisableClock-seconds";case!!(o&&e.utils.getMinutes(t)%o!==0):return"minutesStep";default:return null}},Ox=({props:e,value:t,adapter:n})=>{const r=Ip({adapter:n,value:t,props:e});return r!==null?r:vO({adapter:n,value:t,props:e})};function $He(e){return At("MuiPickersDay",e)}const ff=_t("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),FHe=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],BHe=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:i,disabled:o,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:s,classes:l}=e,u=a&&!s;return Ct({root:["root",t&&!u&&"selected",o&&"disabled",!n&&"dayWithMargin",!r&&i&&"today",a&&s&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},$He,l)},pne=({theme:e,ownerState:t})=>L({},e.typography.caption,{width:Ky,height:Ky,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:un(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:un(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${ff.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${ff.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${ff.disabled}:not(.${ff.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${ff.disabled}&.${ff.selected}`]:{opacity:.6}},!t.disableMargin&&{margin:`0 ${mx}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:(e.vars||e).palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${ff.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}),hne=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},UHe=ke(fs,{name:"MuiPickersDay",slot:"Root",overridesResolver:hne})(pne),jHe=ke("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:hne})(({theme:e,ownerState:t})=>L({},pne({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),N0=()=>{},zHe=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiPickersDay"}),{autoFocus:i=!1,className:o,day:a,disabled:s=!1,disableHighlightToday:l=!1,disableMargin:u=!1,isAnimating:c,onClick:d,onDaySelect:p,onFocus:h=N0,onBlur:m=N0,onKeyDown:y=N0,onMouseDown:O=N0,onMouseEnter:b=N0,outsideCurrentMonth:v,selected:S=!1,showDaysOutsideCurrentMonth:k=!1,children:C,today:w=!1}=r,E=Ge(r,FHe),$=L({},r,{autoFocus:i,disabled:s,disableHighlightToday:l,disableMargin:u,selected:S,showDaysOutsideCurrentMonth:k,today:w}),D=BHe($),R=Rn(),B=N.useRef(null),U=yn(B,n);Xr(()=>{i&&!s&&!c&&!v&&B.current.focus()},[i,s,c,v]);const V=Q=>{O(Q),v&&Q.preventDefault()},z=Q=>{s||p(a),v&&Q.currentTarget.focus(),d&&d(Q)};return v&&!k?M.jsx(jHe,{className:et(D.root,D.hiddenDaySpacingFiller,o),ownerState:$,role:E.role}):M.jsx(UHe,L({className:et(D.root,o),ref:U,centerRipple:!0,disabled:s,tabIndex:S?0:-1,onKeyDown:Q=>y(Q,a),onFocus:Q=>h(Q,a),onBlur:Q=>m(Q,a),onMouseEnter:Q=>b(Q,a),onClick:z,onMouseDown:V},E,{ownerState:$,children:C||R.format(a,"dayOfMonth")}))}),VHe=N.memo(zHe),HHe=e=>At("MuiPickersSlideTransition",e),ws=_t("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),WHe=["children","className","reduceAnimations","slideDirection","transKey","classes"],QHe=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Ct(r,HHe,t)},YHe=ke(sD,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${ws["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${ws["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${ws.slideEnterActive}`]:t.slideEnterActive},{[`.${ws.slideExit}`]:t.slideExit},{[`.${ws["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${ws["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${ws["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${ws["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${ws.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${ws.slideExit}`]:{transform:"translate(0%)"},[`& .${ws["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${ws["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function GHe(e){const t=gt({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:i,transKey:o}=t,a=Ge(t,WHe),s=QHe(t),l=bi();if(i)return M.jsx("div",{className:et(s.root,r),children:n});const u={exit:s.exit,enterActive:s.enterActive,enter:s.enter,exitActive:s.exitActive};return M.jsx(YHe,{className:et(s.root,r),childFactory:c=>N.cloneElement(c,{classNames:u}),role:"presentation",children:M.jsx(Tde,L({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:u},a,{children:n}),o)})}const mne=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:o,disablePast:a,timezone:s})=>{const l=Ul();return N.useCallback(u=>Ip({adapter:l,value:u,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:o,disablePast:a,timezone:s}})!==null,[l,e,t,n,r,i,o,a,s])},qHe=e=>At("MuiDayCalendar",e);_t("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const ZHe=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],XHe=["ownerState"],KHe=e=>{const{classes:t}=e;return Ct({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},qHe,t)},gne=(Ky+mx*2)*6,JHe=ke("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),eWe=ke("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),tWe=ke(Gr,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),nWe=ke(Gr,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),rWe=ke(Gr,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>L({},e.typography.caption,{width:Ky,height:Ky,padding:0,margin:`0 ${mx}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),iWe=ke("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:gne}),oWe=ke(GHe,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:gne}),aWe=ke("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),sWe=ke("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${mx}px 0`,display:"flex",justifyContent:"center"});function lWe(e){var t,n,r;let{parentProps:i,day:o,focusableDay:a,selectedDays:s,isDateDisabled:l,currentMonthNumber:u,isViewFocused:c}=e,d=Ge(e,ZHe);const{disabled:p,disableHighlightToday:h,isMonthSwitchingAnimating:m,showDaysOutsideCurrentMonth:y,components:O,componentsProps:b,slots:v,slotProps:S,timezone:k}=i,C=Rn(),w=ef(k),E=a!==null&&C.isSameDay(o,a),$=s.some(Z=>C.isSameDay(Z,o)),D=C.isSameDay(o,w),R=(t=(n=v==null?void 0:v.day)!=null?n:O==null?void 0:O.Day)!=null?t:VHe,B=kn({elementType:R,externalSlotProps:(r=S==null?void 0:S.day)!=null?r:b==null?void 0:b.day,additionalProps:L({disableHighlightToday:h,showDaysOutsideCurrentMonth:y,role:"gridcell",isAnimating:m,"data-timestamp":C.toJsDate(o).valueOf()},d),ownerState:L({},i,{day:o,selected:$})}),U=Ge(B,XHe),V=N.useMemo(()=>p||l(o),[p,l,o]),z=N.useMemo(()=>C.getMonth(o)!==u,[C,o,u]),Q=N.useMemo(()=>{const Z=C.startOfMonth(C.setMonth(o,u));return y?C.isSameDay(o,C.startOfWeek(Z)):C.isSameDay(o,Z)},[u,o,y,C]),X=N.useMemo(()=>{const Z=C.endOfMonth(C.setMonth(o,u));return y?C.isSameDay(o,C.endOfWeek(Z)):C.isSameDay(o,Z)},[u,o,y,C]);return M.jsx(R,L({},U,{day:o,disabled:V,autoFocus:c&&E,today:D,outsideCurrentMonth:z,isFirstVisibleCell:Q,isLastVisibleCell:X,selected:$,tabIndex:E?0:-1,"aria-selected":$,"aria-current":D?"date":void 0}))}function uWe(e){const t=gt({props:e,name:"MuiDayCalendar"}),{onFocusedDayChange:n,className:r,currentMonth:i,selectedDays:o,focusedDay:a,loading:s,onSelectedDaysChange:l,onMonthSwitchingAnimationEnd:u,readOnly:c,reduceAnimations:d,renderLoading:p=()=>M.jsx("span",{children:"..."}),slideDirection:h,TransitionProps:m,disablePast:y,disableFuture:O,minDate:b,maxDate:v,shouldDisableDate:S,shouldDisableMonth:k,shouldDisableYear:C,dayOfWeekFormatter:w,hasFocus:E,onFocusedViewChange:$,gridLabelId:D,displayWeekNumber:R,fixedWeekNumber:B,autoFocus:U,timezone:V}=t,z=ef(V),Q=Rn(),X=KHe(t),Y=bi().direction==="rtl",q=w||((Be,re)=>Q.format(re,"weekdayShort").charAt(0).toUpperCase()),j=mne({shouldDisableDate:S,shouldDisableMonth:k,shouldDisableYear:C,minDate:b,maxDate:v,disablePast:y,disableFuture:O,timezone:V}),le=Fi(),[Ee,G]=qi({name:"DayCalendar",state:"hasFocus",controlled:E,default:U??!1}),[ue,ge]=N.useState(()=>a||z),he=jt(Be=>{c||l(Be)}),Ne=Be=>{j(Be)||(n(Be),ge(Be),$==null||$(!0),G(!0))},Le=jt((Be,re)=>{switch(Be.key){case"ArrowUp":Ne(Q.addDays(re,-7)),Be.preventDefault();break;case"ArrowDown":Ne(Q.addDays(re,7)),Be.preventDefault();break;case"ArrowLeft":{const ee=Q.addDays(re,Y?1:-1),J=Q.addMonths(re,Y?1:-1),_e=Fb({utils:Q,date:ee,minDate:Y?ee:Q.startOfMonth(J),maxDate:Y?Q.endOfMonth(J):ee,isDateDisabled:j,timezone:V});Ne(_e||ee),Be.preventDefault();break}case"ArrowRight":{const ee=Q.addDays(re,Y?-1:1),J=Q.addMonths(re,Y?-1:1),_e=Fb({utils:Q,date:ee,minDate:Y?Q.startOfMonth(J):ee,maxDate:Y?ee:Q.endOfMonth(J),isDateDisabled:j,timezone:V});Ne(_e||ee),Be.preventDefault();break}case"Home":Ne(Q.startOfWeek(re)),Be.preventDefault();break;case"End":Ne(Q.endOfWeek(re)),Be.preventDefault();break;case"PageUp":Ne(Q.addMonths(re,1)),Be.preventDefault();break;case"PageDown":Ne(Q.addMonths(re,-1)),Be.preventDefault();break}}),qe=jt((Be,re)=>Ne(re)),rt=jt((Be,re)=>{Ee&&Q.isSameDay(ue,re)&&($==null||$(!1))}),Me=Q.getMonth(i),Qe=N.useMemo(()=>o.filter(Be=>!!Be).map(Be=>Q.startOfDay(Be)),[Q,o]),ye=Me,ze=N.useMemo(()=>N.createRef(),[ye]),$e=Q.startOfWeek(z),He=N.useMemo(()=>{const Be=Q.startOfMonth(i),re=Q.endOfMonth(i);return j(ue)||Q.isAfterDay(ue,re)||Q.isBeforeDay(ue,Be)?Fb({utils:Q,date:ue,minDate:Be,maxDate:re,disablePast:y,disableFuture:O,isDateDisabled:j,timezone:V}):ue},[i,O,y,ue,j,Q,V]),dt=N.useMemo(()=>{const Be=Q.setTimezone(i,V),re=Q.getWeekArray(Be);let ee=Q.addMonths(Be,1);for(;B&&re.length{re.length{var ee;const J=Q.format(Be,"weekdayShort");return M.jsx(tWe,{variant:"caption",role:"columnheader","aria-label":Q.format(Q.addDays($e,re),"weekday"),className:X.weekDayLabel,children:(ee=q==null?void 0:q(J,Be))!=null?ee:J},J+re.toString())})]}),s?M.jsx(iWe,{className:X.loadingContainer,children:p()}):M.jsx(oWe,L({transKey:ye,onExited:u,reduceAnimations:d,slideDirection:h,className:et(r,X.slideTransition)},m,{nodeRef:ze,children:M.jsx(aWe,{ref:ze,role:"rowgroup",className:X.monthContainer,children:dt.map((Be,re)=>M.jsxs(sWe,{role:"row",className:X.weekContainer,"aria-rowindex":re+1,children:[R&&M.jsx(rWe,{className:X.weekNumber,role:"rowheader","aria-label":le.calendarWeekNumberAriaLabelText(Q.getWeekNumber(Be[0])),children:le.calendarWeekNumberText(Q.getWeekNumber(Be[0]))}),Be.map((ee,J)=>M.jsx(lWe,{parentProps:t,day:ee,selectedDays:Qe,focusableDay:He,onKeyDown:Le,onFocus:qe,onBlur:rt,onDaySelect:he,isDateDisabled:j,currentMonthNumber:Me,isViewFocused:Ee,"aria-colindex":J+1},ee.toString()))]},`week-${Be[0]}`))})}))]})}const cWe=(e,t,n)=>(r,i)=>{switch(i.type){case"changeMonth":return L({},r,{slideDirection:i.direction,currentMonth:i.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return L({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&i.focusedDay!=null&&n.isSameDay(i.focusedDay,r.focusedDay))return r;const o=i.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,i.focusedDay);return L({},r,{focusedDay:i.focusedDay,isMonthSwitchingAnimating:o&&!e&&!i.withoutMonthSwitchingAnimation,currentMonth:o?n.startOfMonth(i.focusedDay):r.currentMonth,slideDirection:i.focusedDay!=null&&n.isAfterDay(i.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},dWe=e=>{const{value:t,referenceDate:n,defaultCalendarMonth:r,disableFuture:i,disablePast:o,disableSwitchToMonthOnDayFocus:a=!1,maxDate:s,minDate:l,onMonthChange:u,reduceAnimations:c,shouldDisableDate:d,timezone:p}=e,h=ef(p),m=Rn(),y=N.useRef(cWe(!!c,a,m)).current,O=N.useMemo(()=>{let $=null;return n?$=n:r&&($=m.startOfMonth(r)),$i.getInitialReferenceValue({value:t,utils:m,timezone:p,props:e,referenceDate:$,granularity:yl.day})},[]),[b,v]=N.useReducer(y,{isMonthSwitchingAnimating:!1,focusedDay:m.isValid(t)?t:h,currentMonth:m.startOfMonth(O),slideDirection:"left"}),S=N.useCallback($=>{v(L({type:"changeMonth"},$)),u&&u($.newMonth)},[u]),k=N.useCallback($=>{const D=$;m.isSameMonth(D,b.currentMonth)||S({newMonth:m.startOfMonth(D),direction:m.isAfterDay(D,b.currentMonth)?"left":"right"})},[b.currentMonth,S,m]),C=mne({shouldDisableDate:d,minDate:l,maxDate:s,disableFuture:i,disablePast:o,timezone:p}),w=N.useCallback(()=>{v({type:"finishMonthSwitchingAnimation"})},[]),E=jt(($,D)=>{C($)||v({type:"changeFocusedDay",focusedDay:$,withoutMonthSwitchingAnimation:D})});return{referenceDate:O,calendarState:b,changeMonth:k,changeFocusedDay:E,isDateDisabled:C,onMonthSwitchingAnimationEnd:w,handleChangeMonth:S}},fWe=["props","getOpenDialogAriaText"],pWe=["ownerState"],hWe=["ownerState"],_$=e=>{var t,n,r,i,o;let{props:a,getOpenDialogAriaText:s}=e,l=Ge(e,fWe);const{slots:u,slotProps:c,className:d,sx:p,format:h,formatDensity:m,timezone:y,name:O,label:b,inputRef:v,readOnly:S,disabled:k,autoFocus:C,localeText:w,reduceAnimations:E}=a,$=Rn(),D=N.useRef(null),R=N.useRef(null),B=Pl(),U=(t=c==null||(n=c.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:V,actions:z,hasUIView:Q,layoutProps:X,renderCurrentView:Z,shouldRestoreFocus:Y,fieldProps:q}=lne(L({},l,{props:a,inputRef:D,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),j=(r=u.inputAdornment)!=null?r:ED,le=kn({elementType:j,externalSlotProps:c==null?void 0:c.inputAdornment,additionalProps:{position:"end"},ownerState:a}),Ee=Ge(le,pWe),G=(i=u.openPickerButton)!=null?i:Ia,ue=kn({elementType:G,externalSlotProps:c==null?void 0:c.openPickerButton,additionalProps:{disabled:k||S,onClick:V?z.onClose:z.onOpen,"aria-label":s(q.value,$),edge:Ee.position},ownerState:a}),ge=Ge(ue,hWe),he=u.openPickerIcon,Ne=u.field,Le=kn({elementType:Ne,externalSlotProps:c==null?void 0:c.field,additionalProps:L({},q,U&&{id:B},{readOnly:S,disabled:k,className:d,sx:p,format:h,formatDensity:m,timezone:y,label:b,name:O,autoFocus:C&&!a.open,focused:V?!0:void 0}),ownerState:a});Q&&(Le.InputProps=L({},Le.InputProps,{ref:R,[`${Ee.position}Adornment`]:M.jsx(j,L({},Ee,{children:M.jsx(G,L({},ge,{children:M.jsx(he,L({},c==null?void 0:c.openPickerIcon))}))}))}));const qe=L({textField:u.textField,clearIcon:u.clearIcon,clearButton:u.clearButton},Le.slots),rt=(o=u.layout)!=null?o:dne,Me=yn(D,Le.inputRef,v);let Qe=B;U&&(b?Qe=`${B}-label`:Qe=void 0);const ye=L({},c,{toolbar:L({},c==null?void 0:c.toolbar,{titleId:B}),popper:L({"aria-labelledby":Qe},c==null?void 0:c.popper)});return{renderPicker:()=>M.jsxs(Jte,{localeText:w,children:[M.jsx(Ne,L({},Le,{slots:qe,slotProps:ye,inputRef:Me})),M.jsx(tHe,L({role:"dialog",placement:"bottom-start",anchorEl:R.current},z,{open:V,slots:u,slotProps:ye,shouldRestoreFocus:Y,reduceAnimations:E,children:M.jsx(rt,L({},X,ye==null?void 0:ye.layout,{slots:u,slotProps:ye,children:Z()}))}))]})}},mWe=e=>{var t,n,r;const i=Rn(),o=Rp();return L({},e,{disablePast:(t=e.disablePast)!=null?t:!1,disableFuture:(n=e.disableFuture)!=null?n:!1,format:(r=e.format)!=null?r:i.formats.keyboardDate,minDate:Mo(i,e.minDate,o.minDate),maxDate:Mo(i,e.maxDate,o.maxDate)})},gWe=({props:e,inputRef:t})=>{const n=mWe(e),{forwardedProps:r,internalProps:i}=A$(n,"date");return C$({inputRef:t,forwardedProps:r,internalProps:i,valueManager:$i,fieldValueManager:S$,validator:Ip,valueType:"date"})},bWe=["ownerState"],R$=({clearable:e,fieldProps:t,InputProps:n,onClear:r,slots:i,slotProps:o,components:a,componentsProps:s})=>{var l,u,c,d,p,h;const m=Fi(),y=(l=(u=i==null?void 0:i.clearButton)!=null?u:a==null?void 0:a.ClearButton)!=null?l:Ia,O=kn({elementType:y,externalSlotProps:(c=o==null?void 0:o.clearButton)!=null?c:s==null?void 0:s.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:m.fieldClearLabel}}),b=Ge(O,bWe),v=(d=(p=i==null?void 0:i.clearIcon)!=null?p:a==null?void 0:a.ClearIcon)!=null?d:NVe,S=kn({elementType:v,externalSlotProps:(h=o==null?void 0:o.clearIcon)!=null?h:s==null?void 0:s.clearIcon,ownerState:{}}),k=L({},n,{endAdornment:M.jsxs(N.Fragment,{children:[e&&M.jsx(ED,{position:"end",sx:{marginRight:n!=null&&n.endAdornment?-1:-1.5},children:M.jsx(y,L({},b,{onClick:r,children:M.jsx(v,L({fontSize:"small"},S))}))}),n==null?void 0:n.endAdornment]})}),C=L({},t,{sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(t.sx)?t.sx:[t.sx]]});return{InputProps:k,fieldProps:C}},yWe=["components","componentsProps","slots","slotProps","InputProps","inputProps"],OWe=["inputRef"],vWe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],bne=N.forwardRef(function(t,n){var r,i,o;const a=gt({props:t,name:"MuiDateField"}),{components:s,componentsProps:l,slots:u,slotProps:c,InputProps:d,inputProps:p}=a,h=Ge(a,yWe),m=a,y=(r=(i=u==null?void 0:u.textField)!=null?i:s==null?void 0:s.TextField)!=null?r:Ep,O=kn({elementType:y,externalSlotProps:(o=c==null?void 0:c.textField)!=null?o:l==null?void 0:l.textField,externalForwardedProps:h,ownerState:m}),{inputRef:b}=O,v=Ge(O,OWe);v.inputProps=L({},p,v.inputProps),v.InputProps=L({},d,v.InputProps);const S=gWe({props:v,inputRef:b}),{ref:k,onPaste:C,onKeyDown:w,inputMode:E,readOnly:$,clearable:D,onClear:R}=S,B=Ge(S,vWe),{InputProps:U,fieldProps:V}=R$({onClear:R,clearable:D,fieldProps:B,InputProps:B.InputProps,slots:u,slotProps:c,components:s,componentsProps:l});return M.jsx(y,L({ref:n},V,{InputProps:L({},U,{readOnly:$}),inputProps:L({},B.inputProps,{inputMode:E,onPaste:C,onKeyDown:w,ref:k})}))}),EWe=e=>At("MuiPickersFadeTransitionGroup",e);_t("MuiPickersFadeTransitionGroup",["root"]);const SWe=e=>{const{classes:t}=e;return Ct({root:["root"]},EWe,t)},TWe=ke(sD,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function yne(e){const t=gt({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:i,transKey:o}=t,a=SWe(t),s=bi();return i?n:M.jsx(TWe,{className:et(a.root,r),children:M.jsx(cg,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:s.transitions.duration.enteringScreen,enter:s.transitions.duration.enteringScreen,exit:0},children:n},o)})}function wWe(e){return At("MuiPickersMonth",e)}const tE=_t("MuiPickersMonth",["root","monthButton","disabled","selected"]),kWe=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],xWe=e=>{const{disabled:t,selected:n,classes:r}=e;return Ct({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},wWe,r)},CWe=ke("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.monthsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),AWe=ke("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${tE.disabled}`]:t.disabled},{[`&.${tE.selected}`]:t.selected}]})(({theme:e})=>L({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:un(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:un(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${tE.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${tE.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),_We=N.memo(function(t){const n=gt({props:t,name:"MuiPickersMonth"}),{autoFocus:r,children:i,disabled:o,selected:a,value:s,tabIndex:l,onClick:u,onKeyDown:c,onFocus:d,onBlur:p,"aria-current":h,"aria-label":m}=n,y=Ge(n,kWe),O=N.useRef(null),b=xWe(n);return Xr(()=>{if(r){var v;(v=O.current)==null||v.focus()}},[r]),M.jsx(CWe,L({className:b.root,ownerState:n},y,{children:M.jsx(AWe,{ref:O,disabled:o,type:"button",role:"radio",tabIndex:o?-1:l,"aria-current":h,"aria-checked":a,"aria-label":m,onClick:v=>u(v,s),onKeyDown:v=>c(v,s),onFocus:v=>d(v,s),onBlur:v=>p(v,s),className:b.monthButton,ownerState:n,children:i})}))});function RWe(e){return At("MuiMonthCalendar",e)}_t("MuiMonthCalendar",["root"]);const IWe=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"],NWe=e=>{const{classes:t}=e;return Ct({root:["root"]},RWe,t)};function DWe(e,t){const n=Rn(),r=Rp(),i=gt({props:e,name:t});return L({disableFuture:!1,disablePast:!1},i,{minDate:Mo(n,i.minDate,r.minDate),maxDate:Mo(n,i.maxDate,r.maxDate)})}const PWe=ke("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:gx,boxSizing:"border-box"}),LWe=N.forwardRef(function(t,n){const r=DWe(t,"MuiMonthCalendar"),{className:i,value:o,defaultValue:a,referenceDate:s,disabled:l,disableFuture:u,disablePast:c,maxDate:d,minDate:p,onChange:h,shouldDisableMonth:m,readOnly:y,disableHighlightToday:O,autoFocus:b=!1,onMonthFocus:v,hasFocus:S,onFocusedViewChange:k,monthsPerRow:C=3,timezone:w,gridLabelId:E}=r,$=Ge(r,IWe),{value:D,handleValueChange:R,timezone:B}=$g({name:"MonthCalendar",timezone:w,value:o,defaultValue:a,onChange:h,valueManager:$i}),U=ef(B),V=ug(),z=Rn(),Q=N.useMemo(()=>$i.getInitialReferenceValue({value:D,utils:z,props:r,timezone:B,referenceDate:s,granularity:yl.month}),[]),X=r,Z=NWe(X),Y=N.useMemo(()=>z.getMonth(U),[z,U]),q=N.useMemo(()=>D!=null?z.getMonth(D):O?null:z.getMonth(Q),[D,z,O,Q]),[j,le]=N.useState(()=>q||Y),[Ee,G]=qi({name:"MonthCalendar",state:"hasFocus",controlled:S,default:b??!1}),ue=jt(Me=>{G(Me),k&&k(Me)}),ge=N.useCallback(Me=>{const Qe=z.startOfMonth(c&&z.isAfter(U,p)?U:p),ye=z.startOfMonth(u&&z.isBefore(U,d)?U:d),ze=z.startOfMonth(Me);return z.isBefore(ze,Qe)||z.isAfter(ze,ye)?!0:m?m(ze):!1},[u,c,d,p,U,m,z]),he=jt((Me,Qe)=>{if(y)return;const ye=z.setMonth(D??Q,Qe);R(ye)}),Ne=jt(Me=>{ge(z.setMonth(D??Q,Me))||(le(Me),ue(!0),v&&v(Me))});N.useEffect(()=>{le(Me=>q!==null&&Me!==q?q:Me)},[q]);const Le=jt((Me,Qe)=>{switch(Me.key){case"ArrowUp":Ne((12+Qe-3)%12),Me.preventDefault();break;case"ArrowDown":Ne((12+Qe+3)%12),Me.preventDefault();break;case"ArrowLeft":Ne((12+Qe+(V.direction==="ltr"?-1:1))%12),Me.preventDefault();break;case"ArrowRight":Ne((12+Qe+(V.direction==="ltr"?1:-1))%12),Me.preventDefault();break}}),qe=jt((Me,Qe)=>{Ne(Qe)}),rt=jt((Me,Qe)=>{j===Qe&&ue(!1)});return M.jsx(PWe,L({ref:n,className:et(Z.root,i),ownerState:X,role:"radiogroup","aria-labelledby":E},$,{children:O$(z,D??Q).map(Me=>{const Qe=z.getMonth(Me),ye=z.format(Me,"monthShort"),ze=z.format(Me,"month"),$e=Qe===q,He=l||ge(Me);return M.jsx(_We,{selected:$e,value:Qe,onClick:he,onKeyDown:Le,autoFocus:Ee&&Qe===j,disabled:He,tabIndex:Qe===j?0:-1,onFocus:qe,onBlur:rt,"aria-current":Y===Qe?"date":void 0,"aria-label":ze,monthsPerRow:C,children:ye},ye)})}))});function MWe(e){return At("MuiPickersYear",e)}const nE=_t("MuiPickersYear",["root","yearButton","selected","disabled"]),$We=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],FWe=e=>{const{disabled:t,selected:n,classes:r}=e;return Ct({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},MWe,r)},BWe=ke("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.yearsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),UWe=ke("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${nE.disabled}`]:t.disabled},{[`&.${nE.selected}`]:t.selected}]})(({theme:e})=>L({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:un(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:un(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${nE.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${nE.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),jWe=N.memo(function(t){const n=gt({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:i,children:o,disabled:a,selected:s,value:l,tabIndex:u,onClick:c,onKeyDown:d,onFocus:p,onBlur:h,"aria-current":m}=n,y=Ge(n,$We),O=N.useRef(null),b=FWe(n);return N.useEffect(()=>{r&&O.current.focus()},[r]),M.jsx(BWe,L({className:et(b.root,i),ownerState:n},y,{children:M.jsx(UWe,{ref:O,disabled:a,type:"button",role:"radio",tabIndex:a?-1:u,"aria-current":m,"aria-checked":s,onClick:v=>c(v,l),onKeyDown:v=>d(v,l),onFocus:v=>p(v,l),onBlur:v=>h(v,l),className:b.yearButton,ownerState:n,children:o})}))});function zWe(e){return At("MuiYearCalendar",e)}_t("MuiYearCalendar",["root"]);const VWe=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"],HWe=e=>{const{classes:t}=e;return Ct({root:["root"]},zWe,t)};function WWe(e,t){var n;const r=Rn(),i=Rp(),o=gt({props:e,name:t});return L({disablePast:!1,disableFuture:!1},o,{yearsPerRow:(n=o.yearsPerRow)!=null?n:3,minDate:Mo(r,o.minDate,i.minDate),maxDate:Mo(r,o.maxDate,i.maxDate)})}const QWe=ke("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:gx,maxHeight:UVe,boxSizing:"border-box",position:"relative"}),YWe=N.forwardRef(function(t,n){const r=WWe(t,"MuiYearCalendar"),{autoFocus:i,className:o,value:a,defaultValue:s,referenceDate:l,disabled:u,disableFuture:c,disablePast:d,maxDate:p,minDate:h,onChange:m,readOnly:y,shouldDisableYear:O,disableHighlightToday:b,onYearFocus:v,hasFocus:S,onFocusedViewChange:k,yearsPerRow:C,timezone:w,gridLabelId:E}=r,$=Ge(r,VWe),{value:D,handleValueChange:R,timezone:B}=$g({name:"YearCalendar",timezone:w,value:a,defaultValue:s,onChange:m,valueManager:$i}),U=ef(B),V=ug(),z=Rn(),Q=N.useMemo(()=>$i.getInitialReferenceValue({value:D,utils:z,props:r,timezone:B,referenceDate:l,granularity:yl.year}),[]),X=r,Z=HWe(X),Y=N.useMemo(()=>z.getYear(U),[z,U]),q=N.useMemo(()=>D!=null?z.getYear(D):b?null:z.getYear(Q),[D,z,b,Q]),[j,le]=N.useState(()=>q||Y),[Ee,G]=qi({name:"YearCalendar",state:"hasFocus",controlled:S,default:i??!1}),ue=jt(ye=>{G(ye),k&&k(ye)}),ge=N.useCallback(ye=>{if(d&&z.isBeforeYear(ye,U)||c&&z.isAfterYear(ye,U)||h&&z.isBeforeYear(ye,h)||p&&z.isAfterYear(ye,p))return!0;if(!O)return!1;const ze=z.startOfYear(ye);return O(ze)},[c,d,p,h,U,O,z]),he=jt((ye,ze)=>{if(y)return;const $e=z.setYear(D??Q,ze);R($e)}),Ne=jt(ye=>{ge(z.setYear(D??Q,ye))||(le(ye),ue(!0),v==null||v(ye))});N.useEffect(()=>{le(ye=>q!==null&&ye!==q?q:ye)},[q]);const Le=jt((ye,ze)=>{switch(ye.key){case"ArrowUp":Ne(ze-C),ye.preventDefault();break;case"ArrowDown":Ne(ze+C),ye.preventDefault();break;case"ArrowLeft":Ne(ze+(V.direction==="ltr"?-1:1)),ye.preventDefault();break;case"ArrowRight":Ne(ze+(V.direction==="ltr"?1:-1)),ye.preventDefault();break}}),qe=jt((ye,ze)=>{Ne(ze)}),rt=jt((ye,ze)=>{j===ze&&ue(!1)}),Me=N.useRef(null),Qe=yn(n,Me);return N.useEffect(()=>{if(i||Me.current===null)return;const ye=Me.current.querySelector('[tabindex="0"]');if(!ye)return;const ze=ye.offsetHeight,$e=ye.offsetTop,He=Me.current.clientHeight,dt=Me.current.scrollTop,Be=$e+ze;ze>He||$e{const ze=z.getYear(ye),$e=ze===q,He=u||ge(ye);return M.jsx(jWe,{selected:$e,value:ze,onClick:he,onKeyDown:Le,autoFocus:Ee&&ze===j,disabled:He,tabIndex:ze===j?0:-1,onFocus:qe,onBlur:rt,"aria-current":Y===ze?"date":void 0,yearsPerRow:C,children:z.format(ye,"year")},z.format(ye,"year"))})}))}),GWe=e=>At("MuiPickersCalendarHeader",e),qWe=_t("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),ZWe=["slots","slotProps","components","componentsProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],XWe=["ownerState"],KWe=e=>{const{classes:t}=e;return Ct({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},GWe,t)},JWe=ke("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),eQe=ke("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>L({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),tQe=ke("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),nQe=ke(Ia,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})(({ownerState:e})=>L({marginRight:"auto"},e.view==="year"&&{[`.${qWe.switchViewIcon}`]:{transform:"rotate(180deg)"}})),rQe=ke(xVe,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),iQe=N.forwardRef(function(t,n){var r,i,o,a;const s=Fi(),l=Rn(),u=gt({props:t,name:"MuiPickersCalendarHeader"}),{slots:c,slotProps:d,components:p,currentMonth:h,disabled:m,disableFuture:y,disablePast:O,maxDate:b,minDate:v,onMonthChange:S,onViewChange:k,view:C,reduceAnimations:w,views:E,labelId:$,className:D,timezone:R}=u,B=Ge(u,ZWe),U=u,V=KWe(u),z=(r=(i=c==null?void 0:c.switchViewButton)!=null?i:p==null?void 0:p.SwitchViewButton)!=null?r:nQe,Q=kn({elementType:z,externalSlotProps:d==null?void 0:d.switchViewButton,additionalProps:{size:"small","aria-label":s.calendarViewSwitchingButtonAriaLabel(C)},ownerState:U,className:V.switchViewButton}),X=(o=(a=c==null?void 0:c.switchViewIcon)!=null?a:p==null?void 0:p.SwitchViewIcon)!=null?o:rQe,Z=kn({elementType:X,externalSlotProps:d==null?void 0:d.switchViewIcon,ownerState:void 0,className:V.switchViewIcon}),Y=Ge(Z,XWe),q=()=>S(l.addMonths(h,1),"left"),j=()=>S(l.addMonths(h,-1),"right"),le=DHe(h,{disableFuture:y,maxDate:b,timezone:R}),Ee=PHe(h,{disablePast:O,minDate:v,timezone:R}),G=()=>{if(!(E.length===1||!k||m))if(E.length===2)k(E.find(ue=>ue!==C)||E[0]);else{const ue=E.indexOf(C)!==0?0:1;k(E[ue])}};return E.length===1&&E[0]==="year"?null:M.jsxs(JWe,L({},B,{ownerState:U,className:et(D,V.root),ref:n,children:[M.jsxs(eQe,{role:"presentation",onClick:G,ownerState:U,"aria-live":"polite",className:V.labelContainer,children:[M.jsx(yne,{reduceAnimations:w,transKey:l.format(h,"monthAndYear"),children:M.jsx(tQe,{id:$,ownerState:U,className:V.label,children:l.format(h,"monthAndYear")})}),E.length>1&&!m&&M.jsx(z,L({},Q,{children:M.jsx(X,L({},Y))}))]}),M.jsx(cg,{in:C==="day",children:M.jsx(ine,{slots:c,slotProps:d,onGoToPrevious:j,isPreviousDisabled:Ee,previousLabel:s.previousMonth,onGoToNext:q,isNextDisabled:le,nextLabel:s.nextMonth})})]}))}),vx=ke("div")({overflow:"hidden",width:gx,maxHeight:bx,display:"flex",flexDirection:"column",margin:"0 auto"}),oQe=e=>At("MuiDateCalendar",e);_t("MuiDateCalendar",["root","viewTransitionContainer"]);const aQe=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","components","componentsProps","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsPerRow","monthsPerRow","timezone"],sQe=e=>{const{classes:t}=e;return Ct({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},oQe,t)};function lQe(e,t){var n,r,i,o,a,s,l;const u=Rn(),c=Rp(),d=ane(),p=gt({props:e,name:t});return L({},p,{loading:(n=p.loading)!=null?n:!1,disablePast:(r=p.disablePast)!=null?r:!1,disableFuture:(i=p.disableFuture)!=null?i:!1,openTo:(o=p.openTo)!=null?o:"day",views:(a=p.views)!=null?a:["year","day"],reduceAnimations:(s=p.reduceAnimations)!=null?s:d,renderLoading:(l=p.renderLoading)!=null?l:()=>M.jsx("span",{children:"..."}),minDate:Mo(u,p.minDate,c.minDate),maxDate:Mo(u,p.maxDate,c.maxDate)})}const uQe=ke(vx,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:bx}),cQe=ke(yne,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),One=N.forwardRef(function(t,n){var r,i,o;const a=Rn(),s=Pl(),l=lQe(t,"MuiDateCalendar"),{autoFocus:u,onViewChange:c,value:d,defaultValue:p,referenceDate:h,disableFuture:m,disablePast:y,defaultCalendarMonth:O,onChange:b,onYearChange:v,onMonthChange:S,reduceAnimations:k,shouldDisableDate:C,shouldDisableMonth:w,shouldDisableYear:E,view:$,views:D,openTo:R,className:B,disabled:U,readOnly:V,minDate:z,maxDate:Q,disableHighlightToday:X,focusedView:Z,onFocusedViewChange:Y,showDaysOutsideCurrentMonth:q,fixedWeekNumber:j,dayOfWeekFormatter:le,components:Ee,componentsProps:G,slots:ue,slotProps:ge,loading:he,renderLoading:Ne,displayWeekNumber:Le,yearsPerRow:qe,monthsPerRow:rt,timezone:Me}=l,Qe=Ge(l,aQe),{value:ye,handleValueChange:ze,timezone:$e}=$g({name:"DateCalendar",timezone:Me,value:d,defaultValue:p,onChange:b,valueManager:$i}),{view:He,setView:dt,focusedView:Be,setFocusedView:re,goToNextView:ee,setValueAndGoToNextView:J}=OO({view:$,views:D,openTo:R,onChange:ze,onViewChange:c,autoFocus:u,focusedView:Z,onFocusedViewChange:Y}),{referenceDate:_e,calendarState:Pe,changeFocusedDay:Ie,changeMonth:ie,handleChangeMonth:de,isDateDisabled:ce,onMonthSwitchingAnimationEnd:Oe}=dWe({value:ye,defaultCalendarMonth:O,referenceDate:h,reduceAnimations:k,onMonthChange:S,minDate:z,maxDate:Q,shouldDisableDate:C,disablePast:y,disableFuture:m,timezone:$e}),Se=U&&ye||z,nt=U&&ye||Q,pt=`${s}-grid-label`,kt=Be!==null,Ke=(r=(i=ue==null?void 0:ue.calendarHeader)!=null?i:Ee==null?void 0:Ee.CalendarHeader)!=null?r:iQe,vt=kn({elementType:Ke,externalSlotProps:(o=ge==null?void 0:ge.calendarHeader)!=null?o:G==null?void 0:G.calendarHeader,additionalProps:{views:D,view:He,currentMonth:Pe.currentMonth,onViewChange:dt,onMonthChange:(Ae,fe)=>de({newMonth:Ae,direction:fe}),minDate:Se,maxDate:nt,disabled:U,disablePast:y,disableFuture:m,reduceAnimations:k,timezone:$e,labelId:pt,slots:ue,slotProps:ge},ownerState:l}),Ye=jt(Ae=>{const fe=a.startOfMonth(Ae),lt=a.endOfMonth(Ae),at=ce(Ae)?Fb({utils:a,date:Ae,minDate:a.isBefore(z,fe)?fe:z,maxDate:a.isAfter(Q,lt)?lt:Q,disablePast:y,disableFuture:m,isDateDisabled:ce,timezone:$e}):Ae;at?(J(at,"finish"),S==null||S(fe)):(ee(),ie(fe)),Ie(at,!0)}),it=jt(Ae=>{const fe=a.startOfYear(Ae),lt=a.endOfYear(Ae),at=ce(Ae)?Fb({utils:a,date:Ae,minDate:a.isBefore(z,fe)?fe:z,maxDate:a.isAfter(Q,lt)?lt:Q,disablePast:y,disableFuture:m,isDateDisabled:ce,timezone:$e}):Ae;at?(J(at,"finish"),v==null||v(at)):(ee(),ie(fe)),Ie(at,!0)}),Et=jt(Ae=>ze(Ae&&kI(a,Ae,ye??_e),"finish",He));N.useEffect(()=>{ye!=null&&a.isValid(ye)&&ie(ye)},[ye]);const Dt=l,rn=sQe(Dt),cn={disablePast:y,disableFuture:m,maxDate:Q,minDate:z},fn={disableHighlightToday:X,readOnly:V,disabled:U,timezone:$e,gridLabelId:pt},zn=N.useRef(He);N.useEffect(()=>{zn.current!==He&&(Be===zn.current&&re(He,!0),zn.current=He)},[Be,re,He]);const ve=N.useMemo(()=>[ye],[ye]);return M.jsxs(uQe,L({ref:n,className:et(rn.root,B),ownerState:Dt},Qe,{children:[M.jsx(Ke,L({},vt)),M.jsx(cQe,{reduceAnimations:k,className:rn.viewTransitionContainer,transKey:He,ownerState:Dt,children:M.jsxs("div",{children:[He==="year"&&M.jsx(YWe,L({},cn,fn,{value:ye,onChange:it,shouldDisableYear:E,hasFocus:kt,onFocusedViewChange:Ae=>re("year",Ae),yearsPerRow:qe,referenceDate:_e})),He==="month"&&M.jsx(LWe,L({},cn,fn,{hasFocus:kt,className:B,value:ye,onChange:Ye,shouldDisableMonth:w,onFocusedViewChange:Ae=>re("month",Ae),monthsPerRow:rt,referenceDate:_e})),He==="day"&&M.jsx(uWe,L({},Pe,cn,fn,{onMonthSwitchingAnimationEnd:Oe,onFocusedDayChange:Ie,reduceAnimations:k,selectedDays:ve,onSelectedDaysChange:Et,shouldDisableDate:C,shouldDisableMonth:w,shouldDisableYear:E,hasFocus:kt,onFocusedViewChange:Ae=>re("day",Ae),showDaysOutsideCurrentMonth:q,fixedWeekNumber:j,dayOfWeekFormatter:le,displayWeekNumber:Le,components:Ee,componentsProps:G,slots:ue,slotProps:ge,loading:he,renderLoading:Ne}))]})})]}))}),Gs=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minDate:h,maxDate:m,shouldDisableDate:y,shouldDisableMonth:O,shouldDisableYear:b,reduceAnimations:v,onMonthChange:S,monthsPerRow:k,onYearChange:C,yearsPerRow:w,defaultCalendarMonth:E,components:$,componentsProps:D,slots:R,slotProps:B,loading:U,renderLoading:V,disableHighlightToday:z,readOnly:Q,disabled:X,showDaysOutsideCurrentMonth:Z,dayOfWeekFormatter:Y,sx:q,autoFocus:j,fixedWeekNumber:le,displayWeekNumber:Ee,timezone:G})=>M.jsx(One,{view:e,onViewChange:t,views:n.filter(om),focusedView:r&&om(r)?r:null,onFocusedViewChange:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minDate:h,maxDate:m,shouldDisableDate:y,shouldDisableMonth:O,shouldDisableYear:b,reduceAnimations:v,onMonthChange:S,monthsPerRow:k,onYearChange:C,yearsPerRow:w,defaultCalendarMonth:E,components:$,componentsProps:D,slots:R,slotProps:B,loading:U,renderLoading:V,disableHighlightToday:z,readOnly:Q,disabled:X,showDaysOutsideCurrentMonth:Z,dayOfWeekFormatter:Y,sx:q,autoFocus:j,fixedWeekNumber:le,displayWeekNumber:Ee,timezone:G}),vne=N.forwardRef(function(t,n){var r,i,o,a;const s=Fi(),l=Rn(),u=nne(t,"MuiDesktopDatePicker"),c=L({day:Gs,month:Gs,year:Gs},u.viewRenderers),d=L({},u,{viewRenderers:c,format:Zy(l,u,!1),yearsPerRow:(r=u.yearsPerRow)!=null?r:4,slots:L({openPickerIcon:rne,field:bne},u.slots),slotProps:L({},u.slotProps,{field:h=>{var m;return L({},Yd((m=u.slotProps)==null?void 0:m.field,h),Fg(u),{ref:n})},toolbar:L({hidden:!0},(i=u.slotProps)==null?void 0:i.toolbar)})}),{renderPicker:p}=_$({props:d,valueManager:$i,valueType:"date",getOpenDialogAriaText:(o=(a=d.localeText)==null?void 0:a.openDatePickerDialogue)!=null?o:s.openDatePickerDialogue,validator:Ip});return p()});vne.propTypes={autoFocus:W.bool,className:W.string,closeOnSelect:W.bool,components:W.object,componentsProps:W.object,dayOfWeekFormatter:W.func,defaultCalendarMonth:W.any,defaultValue:W.any,disabled:W.bool,disableFuture:W.bool,disableHighlightToday:W.bool,disableOpenPicker:W.bool,disablePast:W.bool,displayWeekNumber:W.bool,fixedWeekNumber:W.number,format:W.string,formatDensity:W.oneOf(["dense","spacious"]),inputRef:sg,label:W.node,loading:W.bool,localeText:W.object,maxDate:W.any,minDate:W.any,monthsPerRow:W.oneOf([3,4]),name:W.string,onAccept:W.func,onChange:W.func,onClose:W.func,onError:W.func,onMonthChange:W.func,onOpen:W.func,onSelectedSectionsChange:W.func,onViewChange:W.func,onYearChange:W.func,open:W.bool,openTo:W.oneOf(["day","month","year"]),orientation:W.oneOf(["landscape","portrait"]),readOnly:W.bool,reduceAnimations:W.bool,referenceDate:W.any,renderLoading:W.func,selectedSections:W.oneOfType([W.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),W.number,W.shape({endIndex:W.number.isRequired,startIndex:W.number.isRequired})]),shouldDisableDate:W.func,shouldDisableMonth:W.func,shouldDisableYear:W.func,showDaysOutsideCurrentMonth:W.bool,slotProps:W.object,slots:W.object,sx:W.oneOfType([W.arrayOf(W.oneOfType([W.func,W.object,W.bool])),W.func,W.object]),timezone:W.string,value:W.any,view:W.oneOf(["day","month","year"]),viewRenderers:W.shape({day:W.func,month:W.func,year:W.func}),views:W.arrayOf(W.oneOf(["day","month","year"]).isRequired),yearsPerRow:W.oneOf([3,4])};const dQe=["props","getOpenDialogAriaText"],I$=e=>{var t,n,r;let{props:i,getOpenDialogAriaText:o}=e,a=Ge(e,dQe);const{slots:s,slotProps:l,className:u,sx:c,format:d,formatDensity:p,timezone:h,name:m,label:y,inputRef:O,readOnly:b,disabled:v,localeText:S}=i,k=Rn(),C=N.useRef(null),w=Pl(),E=(t=l==null||(n=l.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:$,actions:D,layoutProps:R,renderCurrentView:B,fieldProps:U}=lne(L({},a,{props:i,inputRef:C,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),V=s.field,z=kn({elementType:V,externalSlotProps:l==null?void 0:l.field,additionalProps:L({},U,E&&{id:w},!(v||b)&&{onClick:D.onOpen,onKeyDown:WVe(D.onOpen)},{readOnly:b??!0,disabled:v,className:u,sx:c,format:d,formatDensity:p,timezone:h,label:y,name:m}),ownerState:i});z.inputProps=L({},z.inputProps,{"aria-label":o(U.value,k)});const Q=L({textField:s.textField},z.slots),X=(r=s.layout)!=null?r:dne,Z=yn(C,z.inputRef,O);let Y=w;E&&(y?Y=`${w}-label`:Y=void 0);const q=L({},l,{toolbar:L({},l==null?void 0:l.toolbar,{titleId:w}),mobilePaper:L({"aria-labelledby":Y},l==null?void 0:l.mobilePaper)});return{renderPicker:()=>M.jsxs(Jte,{localeText:S,children:[M.jsx(V,L({},z,{slots:Q,slotProps:q,inputRef:Z})),M.jsx(VVe,L({},D,{open:$,slots:s,slotProps:q,children:M.jsx(X,L({},R,q==null?void 0:q.layout,{slots:s,slotProps:q,children:B()}))}))]})}},N$=N.forwardRef(function(t,n){var r,i,o;const a=Fi(),s=Rn(),l=nne(t,"MuiMobileDatePicker"),u=L({day:Gs,month:Gs,year:Gs},l.viewRenderers),c=L({},l,{viewRenderers:u,format:Zy(s,l,!1),slots:L({field:bne},l.slots),slotProps:L({},l.slotProps,{field:p=>{var h;return L({},Yd((h=l.slotProps)==null?void 0:h.field,p),Fg(l),{ref:n})},toolbar:L({hidden:!1},(r=l.slotProps)==null?void 0:r.toolbar)})}),{renderPicker:d}=I$({props:c,valueManager:$i,valueType:"date",getOpenDialogAriaText:(i=(o=c.localeText)==null?void 0:o.openDatePickerDialogue)!=null?i:a.openDatePickerDialogue,validator:Ip});return d()});N$.propTypes={autoFocus:W.bool,className:W.string,closeOnSelect:W.bool,components:W.object,componentsProps:W.object,dayOfWeekFormatter:W.func,defaultCalendarMonth:W.any,defaultValue:W.any,disabled:W.bool,disableFuture:W.bool,disableHighlightToday:W.bool,disableOpenPicker:W.bool,disablePast:W.bool,displayWeekNumber:W.bool,fixedWeekNumber:W.number,format:W.string,formatDensity:W.oneOf(["dense","spacious"]),inputRef:sg,label:W.node,loading:W.bool,localeText:W.object,maxDate:W.any,minDate:W.any,monthsPerRow:W.oneOf([3,4]),name:W.string,onAccept:W.func,onChange:W.func,onClose:W.func,onError:W.func,onMonthChange:W.func,onOpen:W.func,onSelectedSectionsChange:W.func,onViewChange:W.func,onYearChange:W.func,open:W.bool,openTo:W.oneOf(["day","month","year"]),orientation:W.oneOf(["landscape","portrait"]),readOnly:W.bool,reduceAnimations:W.bool,referenceDate:W.any,renderLoading:W.func,selectedSections:W.oneOfType([W.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),W.number,W.shape({endIndex:W.number.isRequired,startIndex:W.number.isRequired})]),shouldDisableDate:W.func,shouldDisableMonth:W.func,shouldDisableYear:W.func,showDaysOutsideCurrentMonth:W.bool,slotProps:W.object,slots:W.object,sx:W.oneOfType([W.arrayOf(W.oneOfType([W.func,W.object,W.bool])),W.func,W.object]),timezone:W.string,value:W.any,view:W.oneOf(["day","month","year"]),viewRenderers:W.shape({day:W.func,month:W.func,year:W.func}),views:W.arrayOf(W.oneOf(["day","month","year"]).isRequired),yearsPerRow:W.oneOf([3,4])};const fQe=["desktopModeMediaQuery"],pQe=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:i=w$}=r,o=Ge(r,fQe);return pg(i,{defaultMatches:!0})?M.jsx(vne,L({ref:n},o)):M.jsx(N$,L({ref:n},o))}),hQe=e=>{var t,n,r,i,o,a,s,l;const u=Rn(),c=Rp(),p=((t=e.ampm)!=null?t:u.is12HourCycleInCurrentLocale())?u.formats.keyboardDateTime12h:u.formats.keyboardDateTime24h;return L({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(i=e.format)!=null?i:p,disableIgnoringDatePartForTimeValidation:!!(e.minDateTime||e.maxDateTime),minDate:Mo(u,(o=e.minDateTime)!=null?o:e.minDate,c.minDate),maxDate:Mo(u,(a=e.maxDateTime)!=null?a:e.maxDate,c.maxDate),minTime:(s=e.minDateTime)!=null?s:e.minTime,maxTime:(l=e.maxDateTime)!=null?l:e.maxTime})},mQe=({props:e,inputRef:t})=>{const n=hQe(e),{forwardedProps:r,internalProps:i}=A$(n,"date-time");return C$({inputRef:t,forwardedProps:r,internalProps:i,valueManager:$i,fieldValueManager:S$,validator:Ox,valueType:"date-time"})},gQe=["components","componentsProps","slots","slotProps","InputProps","inputProps"],bQe=["inputRef"],yQe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],Ene=N.forwardRef(function(t,n){var r,i,o;const a=gt({props:t,name:"MuiDateTimeField"}),{components:s,componentsProps:l,slots:u,slotProps:c,InputProps:d,inputProps:p}=a,h=Ge(a,gQe),m=a,y=(r=(i=u==null?void 0:u.textField)!=null?i:s==null?void 0:s.TextField)!=null?r:Ep,O=kn({elementType:y,externalSlotProps:(o=c==null?void 0:c.textField)!=null?o:l==null?void 0:l.textField,externalForwardedProps:h,ownerState:m}),{inputRef:b}=O,v=Ge(O,bQe);v.inputProps=L({},p,v.inputProps),v.InputProps=L({},d,v.InputProps);const S=mQe({props:v,inputRef:b}),{ref:k,onPaste:C,onKeyDown:w,inputMode:E,readOnly:$,clearable:D,onClear:R}=S,B=Ge(S,yQe),{InputProps:U,fieldProps:V}=R$({onClear:R,clearable:D,fieldProps:B,InputProps:B.InputProps,slots:u,slotProps:c,components:s,componentsProps:l});return M.jsx(y,L({ref:n},V,{InputProps:L({},U,{readOnly:$}),inputProps:L({},B.inputProps,{inputMode:E,onPaste:C,onKeyDown:w,ref:k})}))});function OQe(e){return At("MuiDateTimePickerTabs",e)}_t("MuiDateTimePickerTabs",["root"]);const vQe=e=>om(e)?"date":"time",EQe=e=>e==="date"?"day":"hours",SQe=e=>{const{classes:t}=e;return Ct({root:["root"]},OQe,t)},TQe=ke(Ive,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${TE.indicator}`]:{bottom:"auto",top:0}}})),wQe=function(t){const n=gt({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:r=M.jsx(RVe,{}),onViewChange:i,timeIcon:o=M.jsx(IVe,{}),view:a,hidden:s=typeof window>"u"||window.innerHeight<667}=n,l=Fi(),u=SQe(n),c=(d,p)=>{i(EQe(p))};return s?null:M.jsxs(TQe,{ownerState:n,variant:"fullWidth",value:vQe(a),onChange:c,className:u.root,children:[M.jsx(g8,{value:"date","aria-label":l.dateTableLabel,icon:M.jsx(N.Fragment,{children:r})}),M.jsx(g8,{value:"time","aria-label":l.timeTableLabel,icon:M.jsx(N.Fragment,{children:o})})]})};function kQe(e){return At("MuiDateTimePickerToolbar",e)}const i2=_t("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),xQe=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant"],CQe=e=>{const{classes:t,theme:n,isLandscape:r}=e,i={root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",n.direction==="rtl"&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",n.direction==="rtl"&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",r&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return Ct(i,kQe,t)},Sne=ke(T$,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({paddingLeft:t.toolbarVariant==="desktop"&&!t.isLandscape?24:16,paddingRight:t.toolbarVariant==="desktop"&&!t.isLandscape?0:16,borderBottom:t.toolbarVariant==="desktop"?`1px solid ${(e.vars||e).palette.divider}`:void 0,borderRight:t.toolbarVariant==="desktop"&&t.isLandscape?`1px solid ${(e.vars||e).palette.divider}`:void 0,justifyContent:"space-around",position:"relative"}));Sne.propTypes={as:W.elementType,classes:W.object,className:W.string,isLandscape:W.bool.isRequired,isMobileKeyboardViewOpen:W.bool,landscapeDirection:W.oneOf(["column","row"]),ownerState:W.object.isRequired,sx:W.oneOfType([W.arrayOf(W.oneOfType([W.func,W.object,W.bool])),W.func,W.object]),toggleMobileKeyboardView:W.func,toolbarTitle:W.node,viewType:W.oneOf(["date","time"])};const AQe=ke("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),Tne=ke("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})(({theme:e,ownerState:t})=>{const n=t.isLandscape&&t.toolbarVariant!=="desktop"?"column":"row";return L({display:"flex",flexDirection:n},t.toolbarVariant==="desktop"&&L({},!t.isLandscape&&{gap:9,marginRight:4,alignSelf:"flex-end"}),e.direction==="rtl"&&{flexDirection:`${n}-reverse`})}),_Qe=ke("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})(({theme:e,ownerState:t})=>L({display:"flex"},t.toolbarVariant==="desktop"&&{gap:1.5},e.direction==="rtl"&&{flexDirection:"row-reverse"}));Tne.propTypes={as:W.elementType,ownerState:W.object.isRequired,sx:W.oneOfType([W.arrayOf(W.oneOfType([W.func,W.object,W.bool])),W.func,W.object])};const Zz=ke(k$,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})(({ownerState:e})=>({margin:e.toolbarVariant==="desktop"?0:"0 4px 0 2px",cursor:"default"})),RQe=ke("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${i2.ampmLabel}`]:t.ampmLabel},{[`&.${i2.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>L({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"},{[`& .${i2.ampmLabel}`]:{fontSize:17}}));function IQe(e){const t=gt({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:i,onChange:o,view:a,isLandscape:s,onViewChange:l,toolbarFormat:u,toolbarPlaceholder:c="––",views:d,disabled:p,readOnly:h,toolbarVariant:m="mobile"}=t,y=Ge(t,xQe),O=t,b=Rn(),{meridiemMode:v,handleMeridiemChange:S}=yx(i,n,o),k=!!(n&&!r),C=m==="desktop",w=Fi(),E=bi(),$=CQe(L({},O,{theme:E})),D=B=>n?b.format(B,"hours12h"):b.format(B,"hours24h"),R=N.useMemo(()=>i?u?b.formatByString(i,u):b.format(i,"shortDate"):c,[i,u,c,b]);return M.jsxs(Sne,L({toolbarTitle:w.dateTimePickerToolbarTitle,isLandscape:s,className:$.root},y,{ownerState:O,children:[M.jsxs(AQe,{className:$.dateContainer,ownerState:O,children:[d.includes("year")&&M.jsx(Za,{tabIndex:-1,variant:"subtitle1",onClick:()=>l("year"),selected:a==="year",value:i?b.format(i,"year"):"–"}),d.includes("day")&&M.jsx(Za,{tabIndex:-1,variant:C?"h5":"h4",onClick:()=>l("day"),selected:a==="day",value:R})]}),M.jsxs(Tne,{className:$.timeContainer,ownerState:O,children:[M.jsxs(_Qe,{className:$.timeDigitsContainer,ownerState:O,children:[d.includes("hours")&&M.jsx(Za,{variant:C?"h5":"h3",width:C&&!s?K0:void 0,onClick:()=>l("hours"),selected:a==="hours",value:i?D(i):"--"}),d.includes("minutes")&&M.jsxs(N.Fragment,{children:[M.jsx(Zz,{variant:C?"h5":"h3",value:":",className:$.separator,ownerState:O}),M.jsx(Za,{variant:C?"h5":"h3",width:C&&!s?K0:void 0,onClick:()=>l("minutes"),selected:a==="minutes",value:i?b.format(i,"minutes"):"--"})]}),d.includes("seconds")&&M.jsxs(N.Fragment,{children:[M.jsx(Zz,{variant:C?"h5":"h3",value:":",className:$.separator,ownerState:O}),M.jsx(Za,{variant:C?"h5":"h3",width:C&&!s?K0:void 0,onClick:()=>l("seconds"),selected:a==="seconds",value:i?b.format(i,"seconds"):"--"})]})]}),k&&!C&&M.jsxs(RQe,{className:$.ampmSelection,ownerState:O,children:[M.jsx(Za,{variant:"subtitle2",selected:v==="am",typographyClassName:$.ampmLabel,value:Sl(b,"am"),onClick:h?void 0:()=>S("am"),disabled:p}),M.jsx(Za,{variant:"subtitle2",selected:v==="pm",typographyClassName:$.ampmLabel,value:Sl(b,"pm"),onClick:h?void 0:()=>S("pm"),disabled:p})]}),n&&C&&M.jsx(Za,{variant:"h5",onClick:()=>l("meridiem"),selected:a==="meridiem",value:i&&v?Sl(b,v):"--",width:K0})]})]}))}function wne(e,t){var n,r,i,o,a,s,l,u,c,d,p;const h=Rn(),m=Rp(),y=gt({props:e,name:t}),O=(n=y.ampm)!=null?n:h.is12HourCycleInCurrentLocale(),b=N.useMemo(()=>{var k;return((k=y.localeText)==null?void 0:k.toolbarTitle)==null?y.localeText:L({},y.localeText,{dateTimePickerToolbarTitle:y.localeText.toolbarTitle})},[y.localeText]),v=(r=y.slots)!=null?r:yO(y.components),S=(i=y.slotProps)!=null?i:y.componentsProps;return L({},y,y$({views:y.views,openTo:y.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:O,localeText:b,orientation:(o=y.orientation)!=null?o:"portrait",disableIgnoringDatePartForTimeValidation:(a=y.disableIgnoringDatePartForTimeValidation)!=null?a:!!(y.minDateTime||y.maxDateTime||y.disablePast||y.disableFuture),disableFuture:(s=y.disableFuture)!=null?s:!1,disablePast:(l=y.disablePast)!=null?l:!1,minDate:Mo(h,(u=y.minDateTime)!=null?u:y.minDate,m.minDate),maxDate:Mo(h,(c=y.maxDateTime)!=null?c:y.maxDate,m.maxDate),minTime:(d=y.minDateTime)!=null?d:y.minTime,maxTime:(p=y.maxDateTime)!=null?p:y.maxTime,slots:L({toolbar:IQe,tabs:wQe},v),slotProps:L({},S,{toolbar:L({ampm:O},S==null?void 0:S.toolbar)})})}function NQe(e){return At("MuiMultiSectionDigitalClock",e)}_t("MuiMultiSectionDigitalClock",["root"]);function DQe(e){return At("MuiMultiSectionDigitalClockSection",e)}const PQe=_t("MuiMultiSectionDigitalClockSection",["root","item"]),LQe=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],MQe=e=>{const{classes:t}=e;return Ct({root:["root"],item:["item"]},DQe,t)},$Qe=ke(N1,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({maxHeight:one,width:56,padding:0,overflow:"hidden","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:t.alreadyRendered?"smooth":"auto"},"@media (pointer: fine)":{"&:hover":{overflowY:"auto"}},"@media (pointer: none), (pointer: coarse)":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"&:after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"}})),FQe=ke(ap,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:8,margin:"2px 4px",width:K0,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:un(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:un(e.palette.primary.main,e.palette.action.focusOpacity)}})),BQe=N.forwardRef(function(t,n){var r;const i=N.useRef(null),o=yn(n,i),a=N.useRef(null),s=gt({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:l,onChange:u,className:c,disabled:d,readOnly:p,items:h,active:m,slots:y,slotProps:O,skipDisabled:b}=s,v=Ge(s,LQe),S=N.useMemo(()=>L({},s,{alreadyRendered:!!i.current}),[s]),k=MQe(S),C=(r=y==null?void 0:y.digitalClockSectionItem)!=null?r:FQe;return N.useEffect(()=>{if(i.current===null)return;const w=i.current.querySelector('[role="option"][aria-selected="true"]');if(m&&l&&w&&w.focus(),!w||a.current===w)return;a.current=w;const E=w.offsetTop;i.current.scrollTop=E-4}),M.jsx($Qe,L({ref:o,className:et(k.root,c),ownerState:S,autoFocusItem:l&&m,role:"listbox"},v,{children:h.map(w=>{var E,$;if(b&&(E=w.isDisabled)!=null&&E.call(w,w.value))return null;const D=w.isSelected(w.value);return M.jsx(C,L({onClick:()=>!p&&u(w.value),selected:D,disabled:d||(($=w.isDisabled)==null?void 0:$.call(w,w.value)),disableRipple:p,role:"option","aria-disabled":p,"aria-label":w.ariaLabel,"aria-selected":D,className:k.item},O==null?void 0:O.digitalClockSectionItem,{children:w.label}),w.label)})}))}),UQe=({now:e,value:t,utils:n,ampm:r,isDisabled:i,resolveAriaLabel:o,timeStep:a})=>{const s=t?n.getHours(t):null,l=[],u=d=>s===null?!1:r?d===12?s===12||s===0:s===d||s-12===d:s===d,c=r?11:23;for(let d=0;d<=c;d+=a){let p=n.format(n.setHours(e,d),r?"hours12h":"hours24h");const h=o(parseInt(p,10).toString());p=n.formatNumber(p),l.push({value:d,label:p,isSelected:u,isDisabled:i,ariaLabel:h})}return l},Xz=({value:e,utils:t,isDisabled:n,timeStep:r,resolveLabel:i,resolveAriaLabel:o,hasValue:a=!0})=>{const s=l=>e===null?!1:a&&e===l;return[...Array.from({length:Math.ceil(60/r)},(l,u)=>{const c=r*u;return{value:c,label:t.formatNumber(i(c)),isDisabled:n,isSelected:s,ariaLabel:o(c.toString())}})]},D$=({value:e,referenceDate:t,utils:n,props:r,timezone:i})=>{const o=N.useMemo(()=>$i.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:yl.day,timezone:i,getTodayDate:()=>v$(n,i,"date")}),[]);return e??o},jQe=["ampm","timeSteps","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","skipDisabled","timezone"],zQe=e=>{const{classes:t}=e;return Ct({root:["root"]},NQe,t)},VQe=ke(vx,{name:"MuiMultiSectionDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),HQe=N.forwardRef(function(t,n){const r=Rn(),i=gt({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:o=r.is12HourCycleInCurrentLocale(),timeSteps:a,autoFocus:s,components:l,componentsProps:u,slots:c,slotProps:d,value:p,defaultValue:h,referenceDate:m,disableIgnoringDatePartForTimeValidation:y=!1,maxTime:O,minTime:b,disableFuture:v,disablePast:S,minutesStep:k=1,shouldDisableClock:C,shouldDisableTime:w,onChange:E,view:$,views:D=["hours","minutes"],openTo:R,onViewChange:B,focusedView:U,onFocusedViewChange:V,className:z,disabled:Q,readOnly:X,skipDisabled:Z=!1,timezone:Y}=i,q=Ge(i,jQe),{value:j,handleValueChange:le,timezone:Ee}=$g({name:"MultiSectionDigitalClock",timezone:Y,value:p,defaultValue:h,onChange:E,valueManager:$i}),G=Fi(),ue=ef(Ee),ge=N.useMemo(()=>L({hours:1,minutes:5,seconds:5},a),[a]),he=D$({value:j,referenceDate:m,utils:r,props:i,timezone:Ee}),Ne=jt((ee,J,_e)=>le(ee,J,_e)),Le=N.useMemo(()=>!o||!D.includes("hours")||D.includes("meridiem")?D:[...D,"meridiem"],[o,D]),{view:qe,setValueAndGoToNextView:rt,focusedView:Me}=OO({view:$,views:Le,openTo:R,onViewChange:B,onChange:Ne,focusedView:U,onFocusedViewChange:V}),Qe=jt(ee=>{rt(ee,"finish","meridiem")}),{meridiemMode:ye,handleMeridiemChange:ze}=yx(he,o,Qe,"finish"),$e=N.useCallback((ee,J)=>{const _e=bO(y,r),Pe=J==="hours"||J==="minutes"&&Le.includes("seconds"),Ie=({start:de,end:ce})=>!(b&&_e(b,ce)||O&&_e(de,O)||v&&_e(de,ue)||S&&_e(ue,Pe?ce:de)),ie=(de,ce=1)=>{if(de%ce!==0||C!=null&&C(de,J))return!1;if(w)switch(J){case"hours":return!w(r.setHours(he,de),"hours");case"minutes":return!w(r.setMinutes(he,de),"minutes");case"seconds":return!w(r.setSeconds(he,de),"seconds");default:return!1}return!0};switch(J){case"hours":{const de=Xy(ee,ye,o),ce=r.setHours(he,de),Oe=r.setSeconds(r.setMinutes(ce,0),0),Se=r.setSeconds(r.setMinutes(ce,59),59);return!Ie({start:Oe,end:Se})||!ie(de)}case"minutes":{const de=r.setMinutes(he,ee),ce=r.setSeconds(de,0),Oe=r.setSeconds(de,59);return!Ie({start:ce,end:Oe})||!ie(ee,k)}case"seconds":{const de=r.setSeconds(he,ee);return!Ie({start:de,end:de})||!ie(ee)}default:throw new Error("not supported")}},[o,he,y,O,ye,b,k,C,w,r,v,S,ue,Le]),He=N.useCallback(ee=>{switch(ee){case"hours":return{onChange:J=>{const _e=Xy(J,ye,o);rt(r.setHours(he,_e),"finish","hours")},items:UQe({now:ue,value:j,ampm:o,utils:r,isDisabled:J=>Q||$e(J,"hours"),timeStep:ge.hours,resolveAriaLabel:G.hoursClockNumberText})};case"minutes":return{onChange:J=>{rt(r.setMinutes(he,J),"finish","minutes")},items:Xz({value:r.getMinutes(he),utils:r,isDisabled:J=>Q||$e(J,"minutes"),resolveLabel:J=>r.format(r.setMinutes(ue,J),"minutes"),timeStep:ge.minutes,hasValue:!!j,resolveAriaLabel:G.minutesClockNumberText})};case"seconds":return{onChange:J=>{rt(r.setSeconds(he,J),"finish","seconds")},items:Xz({value:r.getSeconds(he),utils:r,isDisabled:J=>Q||$e(J,"seconds"),resolveLabel:J=>r.format(r.setSeconds(ue,J),"seconds"),timeStep:ge.seconds,hasValue:!!j,resolveAriaLabel:G.secondsClockNumberText})};case"meridiem":{const J=Sl(r,"am"),_e=Sl(r,"pm");return{onChange:ze,items:[{value:"am",label:J,isSelected:()=>!!j&&ye==="am",ariaLabel:J},{value:"pm",label:_e,isSelected:()=>!!j&&ye==="pm",ariaLabel:_e}]}}default:throw new Error(`Unknown view: ${ee} found.`)}},[ue,j,o,r,ge.hours,ge.minutes,ge.seconds,G.hoursClockNumberText,G.minutesClockNumberText,G.secondsClockNumberText,ye,rt,he,Q,$e,ze]),dt=N.useMemo(()=>Le.reduce((ee,J)=>L({},ee,{[J]:He(J)}),{}),[Le,He]),Be=i,re=zQe(Be);return M.jsx(VQe,L({ref:n,className:et(re.root,z),ownerState:Be,role:"group"},q,{children:Object.entries(dt).map(([ee,J])=>M.jsx(BQe,{items:J.items,onChange:J.onChange,active:qe===ee,autoFocus:s??Me===ee,disabled:Q,readOnly:X,slots:c??l,slotProps:d??u,skipDisabled:Z,"aria-label":G.selectViewText(ee)},ee))}))}),WQe=ke("div")({display:"flex",margin:"0 auto"});function QQe(e){return At("MuiTimeClock",e)}_t("MuiTimeClock",["root","arrowSwitcher"]);const ng=220,xu=36,Jy={x:ng/2,y:ng/2},kne={x:Jy.x,y:0},YQe=kne.x-Jy.x,GQe=kne.y-Jy.y,qQe=e=>e*(180/Math.PI),xne=(e,t,n)=>{const r=t-Jy.x,i=n-Jy.y,o=Math.atan2(YQe,GQe)-Math.atan2(r,i);let a=qQe(o);a=Math.round(a/e)*e,a%=360;const s=Math.floor(a/e)||0,l=r**2+i**2,u=Math.sqrt(l);return{value:s,distance:u}},ZQe=(e,t,n=1)=>{const r=n*6;let{value:i}=xne(r,e,t);return i=i*n%60,i},XQe=(e,t,n)=>{const{value:r,distance:i}=xne(30,e,t);let o=r||12;return n?o%=12:i{const{classes:t}=e;return Ct({root:["root"],thumb:["thumb"]},KQe,t)},tYe=ke("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>L({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])})),nYe=ke("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>L({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${xu/2}px)`,border:`${(xu-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:(e.vars||e).palette.primary.main}));function rYe(e){const t=gt({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:i,viewValue:o}=t,a=Ge(t,JQe),s=N.useRef(i);N.useEffect(()=>{s.current=i},[i]);const l=L({},t,{shouldAnimate:s.current!==i}),u=eYe(l),c=()=>{let p=360/(i==="hours"?12:60)*o;return i==="hours"&&o>12&&(p-=360),{height:Math.round((r?.26:.4)*ng),transform:`rotateZ(${p}deg)`}};return M.jsx(tYe,L({style:c(),className:et(n,u.root),ownerState:l},a,{children:M.jsx(nYe,{ownerState:l,className:u.thumb})}))}function iYe(e){return At("MuiClock",e)}_t("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText"]);const oYe=e=>{const{classes:t}=e;return Ct({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"],meridiemText:["meridiemText"]},iYe,t)},aYe=ke("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),sYe=ke("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),lYe=ke("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),uYe=ke("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>L({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})),cYe=ke("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),dYe=ke(Ia,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>L({zIndex:1,position:"absolute",bottom:8,left:8,paddingLeft:4,paddingRight:4,width:xu},t.meridiemMode==="am"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),fYe=ke(Ia,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>L({zIndex:1,position:"absolute",bottom:8,right:8,paddingLeft:4,paddingRight:4,width:xu},t.meridiemMode==="pm"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),Kz=ke(Gr,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function pYe(e){const t=gt({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:i,children:o,value:a,handleMeridiemChange:s,isTimeDisabled:l,meridiemMode:u,minutesStep:c=1,onChange:d,selectedId:p,type:h,viewValue:m,disabled:y,readOnly:O,className:b}=t,v=t,S=Rn(),k=Fi(),C=N.useRef(!1),w=oYe(v),E=l(m,h),$=!n&&h==="hours"&&(m<1||m>12),D=(q,j)=>{y||O||l(q,h)||d(q,j)},R=(q,j)=>{let{offsetX:le,offsetY:Ee}=q;if(le===void 0){const ue=q.target.getBoundingClientRect();le=q.changedTouches[0].clientX-ue.left,Ee=q.changedTouches[0].clientY-ue.top}const G=h==="seconds"||h==="minutes"?ZQe(le,Ee,c):XQe(le,Ee,!!n);D(G,j)},B=q=>{C.current=!0,R(q,"shallow")},U=q=>{C.current&&(R(q,"finish"),C.current=!1)},V=q=>{q.buttons>0&&R(q.nativeEvent,"shallow")},z=q=>{C.current&&(C.current=!1),R(q.nativeEvent,"finish")},Q=N.useMemo(()=>h==="hours"?!0:m%5===0,[h,m]),X=h==="minutes"?c:1,Z=N.useRef(null);Xr(()=>{i&&Z.current.focus()},[i]);const Y=q=>{if(!C.current)switch(q.key){case"Home":D(0,"partial"),q.preventDefault();break;case"End":D(h==="minutes"?59:23,"partial"),q.preventDefault();break;case"ArrowUp":D(m+X,"partial"),q.preventDefault();break;case"ArrowDown":D(m-X,"partial"),q.preventDefault();break}};return M.jsxs(aYe,{className:et(b,w.root),children:[M.jsxs(sYe,{className:w.clock,children:[M.jsx(uYe,{onTouchMove:B,onTouchEnd:U,onMouseUp:z,onMouseMove:V,ownerState:{disabled:y},className:w.squareMask}),!E&&M.jsxs(N.Fragment,{children:[M.jsx(cYe,{className:w.pin}),a!=null&&M.jsx(rYe,{type:h,viewValue:m,isInner:$,hasSelected:Q})]}),M.jsx(lYe,{"aria-activedescendant":p,"aria-label":k.clockLabelText(h,a,S),ref:Z,role:"listbox",onKeyDown:Y,tabIndex:0,className:w.wrapper,children:o})]}),n&&r&&M.jsxs(N.Fragment,{children:[M.jsx(dYe,{onClick:O?void 0:()=>s("am"),disabled:y||u===null,ownerState:v,className:w.amButton,title:Sl(S,"am"),children:M.jsx(Kz,{variant:"caption",className:w.meridiemText,children:Sl(S,"am")})}),M.jsx(fYe,{disabled:y||u===null,onClick:O?void 0:()=>s("pm"),ownerState:v,className:w.pmButton,title:Sl(S,"pm"),children:M.jsx(Kz,{variant:"caption",className:w.meridiemText,children:Sl(S,"pm")})})]})]})}function hYe(e){return At("MuiClockNumber",e)}const rE=_t("MuiClockNumber",["root","selected","disabled"]),mYe=["className","disabled","index","inner","label","selected"],gYe=e=>{const{classes:t,selected:n,disabled:r}=e;return Ct({root:["root",n&&"selected",r&&"disabled"]},hYe,t)},bYe=ke("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${rE.disabled}`]:t.disabled},{[`&.${rE.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>L({height:xu,width:xu,position:"absolute",left:`calc((100% - ${xu}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${rE.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${rE.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled}},t.inner&&L({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})));function Cne(e){const t=gt({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:i,inner:o,label:a,selected:s}=t,l=Ge(t,mYe),u=t,c=gYe(u),d=i%12/12*Math.PI*2-Math.PI/2,p=(ng-xu-2)/2*(o?.65:1),h=Math.round(Math.cos(d)*p),m=Math.round(Math.sin(d)*p);return M.jsx(bYe,L({className:et(n,c.root),"aria-disabled":r?!0:void 0,"aria-selected":s?!0:void 0,role:"option",style:{transform:`translate(${h}px, ${m+(ng-xu)/2}px`},ownerState:u},l,{children:a}))}const yYe=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:i,utils:o})=>{const a=t?o.getHours(t):null,s=[],l=e?1:0,u=e?12:23,c=d=>a===null?!1:e?d===12?a===12||a===0:a===d||a-12===d:a===d;for(let d=l;d<=u;d+=1){let p=d.toString();d===0&&(p="00");const h=!e&&(d===0||d>12);p=o.formatNumber(p);const m=c(d);s.push(M.jsx(Cne,{id:m?i:void 0,index:d,inner:h,selected:m,disabled:r(d),label:p,"aria-label":n(p)},d))}return s},Jz=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:i})=>{const o=e.formatNumber;return[[5,o("05")],[10,o("10")],[15,o("15")],[20,o("20")],[25,o("25")],[30,o("30")],[35,o("35")],[40,o("40")],[45,o("45")],[50,o("50")],[55,o("55")],[0,o("00")]].map(([a,s],l)=>{const u=a===t;return M.jsx(Cne,{label:s,id:u?i:void 0,index:l+1,inner:!1,disabled:n(a),selected:u,"aria-label":r(s)},a)})},OYe=["ampm","ampmInClock","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","timezone"],vYe=e=>{const{classes:t}=e;return Ct({root:["root"],arrowSwitcher:["arrowSwitcher"]},QQe,t)},EYe=ke(vx,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),SYe=ke(ine,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),TYe=["hours","minutes"],wYe=N.forwardRef(function(t,n){const r=Rn(),i=gt({props:t,name:"MuiTimeClock"}),{ampm:o=r.is12HourCycleInCurrentLocale(),ampmInClock:a=!1,autoFocus:s,components:l,componentsProps:u,slots:c,slotProps:d,value:p,defaultValue:h,referenceDate:m,disableIgnoringDatePartForTimeValidation:y=!1,maxTime:O,minTime:b,disableFuture:v,disablePast:S,minutesStep:k=1,shouldDisableClock:C,shouldDisableTime:w,showViewSwitcher:E,onChange:$,view:D,views:R=TYe,openTo:B,onViewChange:U,focusedView:V,onFocusedViewChange:z,className:Q,disabled:X,readOnly:Z,timezone:Y}=i,q=Ge(i,OYe),j=c??yO(l),le=d??u,{value:Ee,handleValueChange:G,timezone:ue}=$g({name:"TimeClock",timezone:Y,value:p,defaultValue:h,onChange:$,valueManager:$i}),ge=D$({value:Ee,referenceDate:m,utils:r,props:i,timezone:ue}),he=Fi(),Ne=ef(ue),{view:Le,setView:qe,previousView:rt,nextView:Me,setValueAndGoToNextView:Qe}=OO({view:D,views:R,openTo:B,onViewChange:U,onChange:G,focusedView:V,onFocusedViewChange:z}),{meridiemMode:ye,handleMeridiemChange:ze}=yx(ge,o,Qe),$e=N.useCallback((ee,J)=>{const _e=bO(y,r),Pe=J==="hours"||J==="minutes"&&R.includes("seconds"),Ie=({start:de,end:ce})=>!(b&&_e(b,ce)||O&&_e(de,O)||v&&_e(de,Ne)||S&&_e(Ne,Pe?ce:de)),ie=(de,ce=1)=>{if(de%ce!==0||C!=null&&C(de,J))return!1;if(w)switch(J){case"hours":return!w(r.setHours(ge,de),"hours");case"minutes":return!w(r.setMinutes(ge,de),"minutes");case"seconds":return!w(r.setSeconds(ge,de),"seconds");default:return!1}return!0};switch(J){case"hours":{const de=Xy(ee,ye,o),ce=r.setHours(ge,de),Oe=r.setSeconds(r.setMinutes(ce,0),0),Se=r.setSeconds(r.setMinutes(ce,59),59);return!Ie({start:Oe,end:Se})||!ie(de)}case"minutes":{const de=r.setMinutes(ge,ee),ce=r.setSeconds(de,0),Oe=r.setSeconds(de,59);return!Ie({start:ce,end:Oe})||!ie(ee,k)}case"seconds":{const de=r.setSeconds(ge,ee);return!Ie({start:de,end:de})||!ie(ee)}default:throw new Error("not supported")}},[o,ge,y,O,ye,b,k,C,w,r,v,S,Ne,R]),He=Pl(),dt=N.useMemo(()=>{switch(Le){case"hours":{const ee=(J,_e)=>{const Pe=Xy(J,ye,o);Qe(r.setHours(ge,Pe),_e)};return{onChange:ee,viewValue:r.getHours(ge),children:yYe({value:Ee,utils:r,ampm:o,onChange:ee,getClockNumberText:he.hoursClockNumberText,isDisabled:J=>X||$e(J,"hours"),selectedId:He})}}case"minutes":{const ee=r.getMinutes(ge),J=(_e,Pe)=>{Qe(r.setMinutes(ge,_e),Pe)};return{viewValue:ee,onChange:J,children:Jz({utils:r,value:ee,onChange:J,getClockNumberText:he.minutesClockNumberText,isDisabled:_e=>X||$e(_e,"minutes"),selectedId:He})}}case"seconds":{const ee=r.getSeconds(ge),J=(_e,Pe)=>{Qe(r.setSeconds(ge,_e),Pe)};return{viewValue:ee,onChange:J,children:Jz({utils:r,value:ee,onChange:J,getClockNumberText:he.secondsClockNumberText,isDisabled:_e=>X||$e(_e,"seconds"),selectedId:He})}}default:throw new Error("You must provide the type for ClockView")}},[Le,r,Ee,o,he.hoursClockNumberText,he.minutesClockNumberText,he.secondsClockNumberText,ye,Qe,ge,$e,He,X]),Be=i,re=vYe(Be);return M.jsxs(EYe,L({ref:n,className:et(re.root,Q),ownerState:Be},q,{children:[M.jsx(pYe,L({autoFocus:s??!!V,ampmInClock:a&&R.includes("hours"),value:Ee,type:Le,ampm:o,minutesStep:k,isTimeDisabled:$e,meridiemMode:ye,handleMeridiemChange:ze,selectedId:He,disabled:X,readOnly:Z},dt)),E&&M.jsx(SYe,{className:re.arrowSwitcher,slots:j,slotProps:le,onGoToPrevious:()=>qe(rt),isPreviousDisabled:!rt,previousLabel:he.openPreviousView,onGoToNext:()=>qe(Me),isNextDisabled:!Me,nextLabel:he.openNextView,ownerState:Be})]}))});function kYe(e){return At("MuiDigitalClock",e)}const xYe=_t("MuiDigitalClock",["root","list","item"]),CYe=["ampm","timeStep","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","views","skipDisabled","timezone"],AYe=e=>{const{classes:t}=e;return Ct({root:["root"],list:["list"],item:["item"]},kYe,t)},_Ye=ke(vx,{name:"MuiDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({overflowY:"auto",width:"100%","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:e.alreadyRendered?"smooth":"auto"},maxHeight:one})),RYe=ke(N1,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),IYe=ke(ap,{name:"MuiDigitalClock",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:un(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:un(e.palette.primary.main,e.palette.action.focusOpacity)}})),NYe=N.forwardRef(function(t,n){var r,i,o;const a=Rn(),s=N.useRef(null),l=yn(n,s),u=gt({props:t,name:"MuiDigitalClock"}),{ampm:c=a.is12HourCycleInCurrentLocale(),timeStep:d=30,autoFocus:p,components:h,componentsProps:m,slots:y,slotProps:O,value:b,defaultValue:v,referenceDate:S,disableIgnoringDatePartForTimeValidation:k=!1,maxTime:C,minTime:w,disableFuture:E,disablePast:$,minutesStep:D=1,shouldDisableClock:R,shouldDisableTime:B,onChange:U,view:V,openTo:z,onViewChange:Q,focusedView:X,onFocusedViewChange:Z,className:Y,disabled:q,readOnly:j,views:le=["hours"],skipDisabled:Ee=!1,timezone:G}=u,ue=Ge(u,CYe),{value:ge,handleValueChange:he,timezone:Ne}=$g({name:"DigitalClock",timezone:G,value:b,defaultValue:v,onChange:U,valueManager:$i}),Le=Fi(),qe=ef(Ne),rt=N.useMemo(()=>L({},u,{alreadyRendered:!!s.current}),[u]),Me=AYe(rt),Qe=(r=(i=y==null?void 0:y.digitalClockItem)!=null?i:h==null?void 0:h.DigitalClockItem)!=null?r:IYe,ye=kn({elementType:Qe,externalSlotProps:(o=O==null?void 0:O.digitalClockItem)!=null?o:m==null?void 0:m.digitalClockItem,ownerState:{},className:Me.item}),ze=D$({value:ge,referenceDate:S,utils:a,props:u,timezone:Ne}),$e=jt(ee=>he(ee,"finish","hours")),{setValueAndGoToNextView:He}=OO({view:V,views:le,openTo:z,onViewChange:Q,onChange:$e,focusedView:X,onFocusedViewChange:Z}),dt=jt(ee=>{He(ee,"finish")});N.useEffect(()=>{if(s.current===null)return;const ee=s.current.querySelector('[role="listbox"] [role="option"][aria-selected="true"]');if(!ee)return;const J=ee.offsetTop;s.current.scrollTop=J-4});const Be=N.useCallback(ee=>{const J=bO(k,a),_e=()=>!(w&&J(w,ee)||C&&J(ee,C)||E&&J(ee,qe)||$&&J(qe,ee)),Pe=()=>a.getMinutes(ee)%D!==0||R!=null&&R(a.toJsDate(ee).getTime(),"hours")?!1:B?!B(ee,"hours"):!0;return!_e()||!Pe()},[k,a,w,C,E,qe,$,D,R,B]),re=N.useMemo(()=>{const ee=a.startOfDay(ze);return[ee,...Array.from({length:Math.ceil(24*60/d)-1},(J,_e)=>a.addMinutes(ee,d*(_e+1)))]},[ze,d,a]);return M.jsx(_Ye,L({ref:l,className:et(Me.root,Y),ownerState:rt},ue,{children:M.jsx(RYe,{autoFocusItem:p||!!X,role:"listbox","aria-label":Le.timePickerToolbarTitle,className:Me.list,children:re.map(ee=>{if(Ee&&Be(ee))return null;const J=a.isEqual(ee,ge);return M.jsx(Qe,L({onClick:()=>!j&&dt(ee),selected:J,disabled:q||Be(ee),disableRipple:j,role:"option","aria-disabled":j,"aria-selected":J},ye,{children:a.format(ee,c?"fullTime12h":"fullTime24h")}),a.toISO(ee))})})}))}),sm=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:h,maxTime:m,shouldDisableTime:y,shouldDisableClock:O,minutesStep:b,ampm:v,ampmInClock:S,components:k,componentsProps:C,slots:w,slotProps:E,readOnly:$,disabled:D,sx:R,autoFocus:B,showViewSwitcher:U,disableIgnoringDatePartForTimeValidation:V,timezone:z})=>M.jsx(wYe,{view:e,onViewChange:t,focusedView:n&&tg(n)?n:null,onFocusedViewChange:r,views:i.filter(tg),value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:h,maxTime:m,shouldDisableTime:y,shouldDisableClock:O,minutesStep:b,ampm:v,ampmInClock:S,components:k,componentsProps:C,slots:w,slotProps:E,readOnly:$,disabled:D,sx:R,autoFocus:B,showViewSwitcher:U,disableIgnoringDatePartForTimeValidation:V,timezone:z}),Ane=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:h,maxTime:m,shouldDisableTime:y,shouldDisableClock:O,minutesStep:b,ampm:v,components:S,componentsProps:k,slots:C,slotProps:w,readOnly:E,disabled:$,sx:D,autoFocus:R,disableIgnoringDatePartForTimeValidation:B,timeSteps:U,skipDisabled:V,timezone:z})=>M.jsx(NYe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i.filter(tg),value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:h,maxTime:m,shouldDisableTime:y,shouldDisableClock:O,minutesStep:b,ampm:v,components:S,componentsProps:k,slots:C,slotProps:w,readOnly:E,disabled:$,sx:D,autoFocus:R,disableIgnoringDatePartForTimeValidation:B,timeStep:U==null?void 0:U.minutes,skipDisabled:V,timezone:z}),_I=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:h,maxTime:m,shouldDisableTime:y,shouldDisableClock:O,minutesStep:b,ampm:v,components:S,componentsProps:k,slots:C,slotProps:w,readOnly:E,disabled:$,sx:D,autoFocus:R,disableIgnoringDatePartForTimeValidation:B,timeSteps:U,skipDisabled:V,timezone:z})=>M.jsx(HQe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i.filter(tg),value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:h,maxTime:m,shouldDisableTime:y,shouldDisableClock:O,minutesStep:b,ampm:v,components:S,componentsProps:k,slots:C,slotProps:w,readOnly:E,disabled:$,sx:D,autoFocus:R,disableIgnoringDatePartForTimeValidation:B,timeSteps:U,skipDisabled:V,timezone:z}),pf=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minDate:h,minTime:m,maxDate:y,maxTime:O,shouldDisableDate:b,shouldDisableMonth:v,shouldDisableYear:S,shouldDisableTime:k,shouldDisableClock:C,reduceAnimations:w,minutesStep:E,ampm:$,onMonthChange:D,monthsPerRow:R,onYearChange:B,yearsPerRow:U,defaultCalendarMonth:V,components:z,componentsProps:Q,slots:X,slotProps:Z,loading:Y,renderLoading:q,disableHighlightToday:j,readOnly:le,disabled:Ee,showDaysOutsideCurrentMonth:G,dayOfWeekFormatter:ue,sx:ge,autoFocus:he,fixedWeekNumber:Ne,displayWeekNumber:Le,timezone:qe,disableIgnoringDatePartForTimeValidation:rt,timeSteps:Me,skipDisabled:Qe,timeViewsCount:ye,shouldRenderTimeInASingleColumn:ze})=>{var $e,He;const dt=!!(($e=Yd((He=Z==null?void 0:Z.actionBar)!=null?He:Q==null?void 0:Q.actionBar,{}))!=null&&($e=$e.actions)!=null&&$e.length),Be={view:Hc(e)?e:"hours",onViewChange:t,focusedView:r&&Hc(r)?r:null,onFocusedViewChange:i,views:n.filter(Hc),value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:m,maxTime:O,shouldDisableTime:k,shouldDisableClock:C,minutesStep:E,ampm:$,components:z,componentsProps:Q,slots:X,slotProps:Z,readOnly:le,disabled:Ee,autoFocus:he,disableIgnoringDatePartForTimeValidation:rt,timeSteps:Me,skipDisabled:Qe,timezone:qe};return M.jsxs(N.Fragment,{children:[M.jsxs(WQe,{children:[M.jsx(One,{view:om(e)?e:"day",onViewChange:t,views:n.filter(om),focusedView:r&&om(r)?r:null,onFocusedViewChange:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minDate:h,maxDate:y,shouldDisableDate:b,shouldDisableMonth:v,shouldDisableYear:S,reduceAnimations:w,onMonthChange:D,monthsPerRow:R,onYearChange:B,yearsPerRow:U,defaultCalendarMonth:V,components:z,componentsProps:Q,slots:X,slotProps:Z,loading:Y,renderLoading:q,disableHighlightToday:j,readOnly:le,disabled:Ee,showDaysOutsideCurrentMonth:G,dayOfWeekFormatter:ue,sx:ge,autoFocus:he,fixedWeekNumber:Ne,displayWeekNumber:Le,timezone:qe}),ye>0&&M.jsxs(N.Fragment,{children:[M.jsx(rc,{orientation:"vertical"}),ze?Ane(L({},Be,{view:"hours",views:["hours"],focusedView:r&&Hc(r)?"hours":null,sx:L({width:"auto",[`&.${xYe.root}`]:{maxHeight:bx}},Array.isArray(ge)?ge:[ge])})):_I(L({},Be,{view:Hc(e)?e:"hours",views:n.filter(Hc),focusedView:r&&Hc(r)?r:null,sx:L({borderBottom:0,width:"auto",[`.${PQe.root}`]:{maxHeight:"100%"}},Array.isArray(ge)?ge:[ge])}))]})]}),dt&&M.jsx(rc,{})]})},DYe=["views","format"],_ne=(e,t)=>{let{views:n,format:r}=t,i=Ge(t,DYe);if(r)return r;const o=[],a=[];if(n.forEach(u=>{tg(u)?a.push(u):o.push(u)}),a.length===0)return Zy(e,L({views:o},i),!1);if(o.length===0)return QT(e,L({views:a},i));const s=QT(e,L({views:a},i));return`${Zy(e,L({views:o},i),!1)} ${s}`},PYe=(e,t,n)=>n?t.filter(r=>!Hc(r)||r==="hours"):e?[...t,"meridiem"]:t,LYe=(e,t)=>{var n,r;return 24*60/(((n=e.hours)!=null?n:1)*((r=e.minutes)!=null?r:5))<=t};function Rne({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const i=e??24,o=L({hours:1,minutes:5,seconds:5},n),a=LYe(o,i);return{thresholdToRenderTimeInASingleColumn:i,timeSteps:o,shouldRenderTimeInASingleColumn:a,views:PYe(t,r,a)}}const Ine=N.forwardRef(function(t,n){var r,i,o,a,s,l,u;const c=Fi(),d=Rn(),p=wne(t,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:h,thresholdToRenderTimeInASingleColumn:m,views:y,timeSteps:O}=Rne(p),b=!p.viewRenderers||Object.keys(p.viewRenderers).length===0,v=b?{day:pf,month:pf,year:pf,hours:pf,minutes:pf,seconds:pf,meridiem:pf}:L({day:Gs,month:Gs,year:Gs,hours:null,minutes:null,seconds:null,meridiem:null},p.viewRenderers),S=(r=p.ampmInClock)!=null?r:!0,k=b?["accept"]:[],C=L({},p,{viewRenderers:v,format:_ne(d,p),views:y,yearsPerRow:(i=p.yearsPerRow)!=null?i:4,ampmInClock:S,timeSteps:O,thresholdToRenderTimeInASingleColumn:m,shouldRenderTimeInASingleColumn:h,slots:L({field:Ene,openPickerIcon:rne},p.slots),slotProps:L({},p.slotProps,{field:E=>{var $;return L({},Yd(($=p.slotProps)==null?void 0:$.field,E),Fg(p),{ref:n})},toolbar:L({hidden:!0,ampmInClock:S,toolbarVariant:b?"desktop":"mobile"},(o=p.slotProps)==null?void 0:o.toolbar),tabs:L({hidden:!0},(a=p.slotProps)==null?void 0:a.tabs),actionBar:L({actions:k},(s=p.slotProps)==null?void 0:s.actionBar)})}),{renderPicker:w}=_$({props:C,valueManager:$i,valueType:"date-time",getOpenDialogAriaText:(l=(u=C.localeText)==null?void 0:u.openDatePickerDialogue)!=null?l:c.openDatePickerDialogue,validator:Ox});return w()});Ine.propTypes={ampm:W.bool,ampmInClock:W.bool,autoFocus:W.bool,className:W.string,closeOnSelect:W.bool,components:W.object,componentsProps:W.object,dayOfWeekFormatter:W.func,defaultCalendarMonth:W.any,defaultValue:W.any,disabled:W.bool,disableFuture:W.bool,disableHighlightToday:W.bool,disableIgnoringDatePartForTimeValidation:W.bool,disableOpenPicker:W.bool,disablePast:W.bool,displayWeekNumber:W.bool,fixedWeekNumber:W.number,format:W.string,formatDensity:W.oneOf(["dense","spacious"]),inputRef:sg,label:W.node,loading:W.bool,localeText:W.object,maxDate:W.any,maxDateTime:W.any,maxTime:W.any,minDate:W.any,minDateTime:W.any,minTime:W.any,minutesStep:W.number,monthsPerRow:W.oneOf([3,4]),name:W.string,onAccept:W.func,onChange:W.func,onClose:W.func,onError:W.func,onMonthChange:W.func,onOpen:W.func,onSelectedSectionsChange:W.func,onViewChange:W.func,onYearChange:W.func,open:W.bool,openTo:W.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:W.oneOf(["landscape","portrait"]),readOnly:W.bool,reduceAnimations:W.bool,referenceDate:W.any,renderLoading:W.func,selectedSections:W.oneOfType([W.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),W.number,W.shape({endIndex:W.number.isRequired,startIndex:W.number.isRequired})]),shouldDisableClock:W.func,shouldDisableDate:W.func,shouldDisableMonth:W.func,shouldDisableTime:W.func,shouldDisableYear:W.func,showDaysOutsideCurrentMonth:W.bool,skipDisabled:W.bool,slotProps:W.object,slots:W.object,sx:W.oneOfType([W.arrayOf(W.oneOfType([W.func,W.object,W.bool])),W.func,W.object]),thresholdToRenderTimeInASingleColumn:W.number,timeSteps:W.shape({hours:W.number,minutes:W.number,seconds:W.number}),timezone:W.string,value:W.any,view:W.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:W.shape({day:W.func,hours:W.func,meridiem:W.func,minutes:W.func,month:W.func,seconds:W.func,year:W.func}),views:W.arrayOf(W.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:W.oneOf([3,4])};const Nne=N.forwardRef(function(t,n){var r,i,o,a,s;const l=Fi(),u=Rn(),c=wne(t,"MuiMobileDateTimePicker"),d=L({day:Gs,month:Gs,year:Gs,hours:sm,minutes:sm,seconds:sm},c.viewRenderers),p=(r=c.ampmInClock)!=null?r:!1,h=L({},c,{viewRenderers:d,format:_ne(u,c),ampmInClock:p,slots:L({field:Ene},c.slots),slotProps:L({},c.slotProps,{field:y=>{var O;return L({},Yd((O=c.slotProps)==null?void 0:O.field,y),Fg(c),{ref:n})},toolbar:L({hidden:!1,ampmInClock:p},(i=c.slotProps)==null?void 0:i.toolbar),tabs:L({hidden:!1},(o=c.slotProps)==null?void 0:o.tabs)})}),{renderPicker:m}=I$({props:h,valueManager:$i,valueType:"date-time",getOpenDialogAriaText:(a=(s=h.localeText)==null?void 0:s.openDatePickerDialogue)!=null?a:l.openDatePickerDialogue,validator:Ox});return m()});Nne.propTypes={ampm:W.bool,ampmInClock:W.bool,autoFocus:W.bool,className:W.string,closeOnSelect:W.bool,components:W.object,componentsProps:W.object,dayOfWeekFormatter:W.func,defaultCalendarMonth:W.any,defaultValue:W.any,disabled:W.bool,disableFuture:W.bool,disableHighlightToday:W.bool,disableIgnoringDatePartForTimeValidation:W.bool,disableOpenPicker:W.bool,disablePast:W.bool,displayWeekNumber:W.bool,fixedWeekNumber:W.number,format:W.string,formatDensity:W.oneOf(["dense","spacious"]),inputRef:sg,label:W.node,loading:W.bool,localeText:W.object,maxDate:W.any,maxDateTime:W.any,maxTime:W.any,minDate:W.any,minDateTime:W.any,minTime:W.any,minutesStep:W.number,monthsPerRow:W.oneOf([3,4]),name:W.string,onAccept:W.func,onChange:W.func,onClose:W.func,onError:W.func,onMonthChange:W.func,onOpen:W.func,onSelectedSectionsChange:W.func,onViewChange:W.func,onYearChange:W.func,open:W.bool,openTo:W.oneOf(["day","hours","minutes","month","seconds","year"]),orientation:W.oneOf(["landscape","portrait"]),readOnly:W.bool,reduceAnimations:W.bool,referenceDate:W.any,renderLoading:W.func,selectedSections:W.oneOfType([W.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),W.number,W.shape({endIndex:W.number.isRequired,startIndex:W.number.isRequired})]),shouldDisableClock:W.func,shouldDisableDate:W.func,shouldDisableMonth:W.func,shouldDisableTime:W.func,shouldDisableYear:W.func,showDaysOutsideCurrentMonth:W.bool,slotProps:W.object,slots:W.object,sx:W.oneOfType([W.arrayOf(W.oneOfType([W.func,W.object,W.bool])),W.func,W.object]),timezone:W.string,value:W.any,view:W.oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:W.shape({day:W.func,hours:W.func,minutes:W.func,month:W.func,seconds:W.func,year:W.func}),views:W.arrayOf(W.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:W.oneOf([3,4])};const MYe=["desktopModeMediaQuery"],$Ye=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:i=w$}=r,o=Ge(r,MYe);return pg(i,{defaultMatches:!0})?M.jsx(Ine,L({ref:n},o)):M.jsx(Nne,L({ref:n},o))}),FYe=e=>{var t,n,r,i;const o=Rn(),s=((t=e.ampm)!=null?t:o.is12HourCycleInCurrentLocale())?o.formats.fullTime12h:o.formats.fullTime24h;return L({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(i=e.format)!=null?i:s})},BYe=({props:e,inputRef:t})=>{const n=FYe(e),{forwardedProps:r,internalProps:i}=A$(n,"time");return C$({inputRef:t,forwardedProps:r,internalProps:i,valueManager:$i,fieldValueManager:S$,validator:vO,valueType:"time"})},UYe=["slots","slotProps","components","componentsProps","InputProps","inputProps"],jYe=["inputRef"],zYe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],Dne=N.forwardRef(function(t,n){var r,i,o;const a=gt({props:t,name:"MuiTimeField"}),{slots:s,slotProps:l,components:u,componentsProps:c,InputProps:d,inputProps:p}=a,h=Ge(a,UYe),m=a,y=(r=(i=s==null?void 0:s.textField)!=null?i:u==null?void 0:u.TextField)!=null?r:Ep,O=kn({elementType:y,externalSlotProps:(o=l==null?void 0:l.textField)!=null?o:c==null?void 0:c.textField,externalForwardedProps:h,ownerState:m}),{inputRef:b}=O,v=Ge(O,jYe);v.inputProps=L({},p,v.inputProps),v.InputProps=L({},d,v.InputProps);const S=BYe({props:v,inputRef:b}),{ref:k,onPaste:C,onKeyDown:w,inputMode:E,readOnly:$,clearable:D,onClear:R}=S,B=Ge(S,zYe),{InputProps:U,fieldProps:V}=R$({onClear:R,clearable:D,fieldProps:B,InputProps:B.InputProps,slots:s,slotProps:l,components:u,componentsProps:c});return M.jsx(y,L({ref:n},V,{InputProps:L({},U,{readOnly:$}),inputProps:L({},B.inputProps,{inputMode:E,onPaste:C,onKeyDown:w,ref:k})}))});function VYe(e){return At("MuiTimePickerToolbar",e)}const Bb=_t("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),HYe=["ampm","ampmInClock","value","isLandscape","onChange","view","onViewChange","views","disabled","readOnly"],WYe=e=>{const{theme:t,isLandscape:n,classes:r}=e,i={root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n&&"hourMinuteLabelLandscape",t.direction==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return Ct(i,VYe,r)},QYe=ke(T$,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),YYe=ke(k$,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),Pne=ke("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${Bb.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${Bb.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})(({theme:e,ownerState:t})=>L({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},e.direction==="rtl"&&{flexDirection:"row-reverse"}));Pne.propTypes={as:W.elementType,ownerState:W.object.isRequired,sx:W.oneOfType([W.arrayOf(W.oneOfType([W.func,W.object,W.bool])),W.func,W.object])};const Lne=ke("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${Bb.ampmLabel}`]:t.ampmLabel},{[`&.${Bb.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>L({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{[`& .${Bb.ampmLabel}`]:{fontSize:17}}));Lne.propTypes={as:W.elementType,ownerState:W.object.isRequired,sx:W.oneOfType([W.arrayOf(W.oneOfType([W.func,W.object,W.bool])),W.func,W.object])};function GYe(e){const t=gt({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:i,isLandscape:o,onChange:a,view:s,onViewChange:l,views:u,disabled:c,readOnly:d}=t,p=Ge(t,HYe),h=Rn(),m=Fi(),y=bi(),O=!!(n&&!r&&u.includes("hours")),{meridiemMode:b,handleMeridiemChange:v}=yx(i,n,a),S=E=>n?h.format(E,"hours12h"):h.format(E,"hours24h"),k=t,C=WYe(L({},k,{theme:y})),w=M.jsx(YYe,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:C.separator});return M.jsxs(QYe,L({landscapeDirection:"row",toolbarTitle:m.timePickerToolbarTitle,isLandscape:o,ownerState:k,className:C.root},p,{children:[M.jsxs(Pne,{className:C.hourMinuteLabel,ownerState:k,children:[bh(u,"hours")&&M.jsx(Za,{tabIndex:-1,variant:"h3",onClick:()=>l("hours"),selected:s==="hours",value:i?S(i):"--"}),bh(u,["hours","minutes"])&&w,bh(u,"minutes")&&M.jsx(Za,{tabIndex:-1,variant:"h3",onClick:()=>l("minutes"),selected:s==="minutes",value:i?h.format(i,"minutes"):"--"}),bh(u,["minutes","seconds"])&&w,bh(u,"seconds")&&M.jsx(Za,{variant:"h3",onClick:()=>l("seconds"),selected:s==="seconds",value:i?h.format(i,"seconds"):"--"})]}),O&&M.jsxs(Lne,{className:C.ampmSelection,ownerState:k,children:[M.jsx(Za,{disableRipple:!0,variant:"subtitle2",selected:b==="am",typographyClassName:C.ampmLabel,value:Sl(h,"am"),onClick:d?void 0:()=>v("am"),disabled:c}),M.jsx(Za,{disableRipple:!0,variant:"subtitle2",selected:b==="pm",typographyClassName:C.ampmLabel,value:Sl(h,"pm"),onClick:d?void 0:()=>v("pm"),disabled:c})]})]}))}function Mne(e,t){var n,r,i,o,a;const s=Rn(),l=gt({props:e,name:t}),u=(n=l.ampm)!=null?n:s.is12HourCycleInCurrentLocale(),c=N.useMemo(()=>{var h;return((h=l.localeText)==null?void 0:h.toolbarTitle)==null?l.localeText:L({},l.localeText,{timePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),d=(r=l.slots)!=null?r:yO(l.components),p=(i=l.slotProps)!=null?i:l.componentsProps;return L({},l,{ampm:u,localeText:c},y$({views:l.views,openTo:l.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{disableFuture:(o=l.disableFuture)!=null?o:!1,disablePast:(a=l.disablePast)!=null?a:!1,slots:L({toolbar:GYe},d),slotProps:L({},p,{toolbar:L({ampm:u,ampmInClock:l.ampmInClock},p==null?void 0:p.toolbar)})})}const $ne=N.forwardRef(function(t,n){var r,i,o,a,s,l;const u=Fi(),c=Rn(),d=Mne(t,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:p,views:h,timeSteps:m}=Rne(d),y=p?Ane:_I,O=L({hours:y,minutes:y,seconds:y,meridiem:y},d.viewRenderers),b=(r=d.ampmInClock)!=null?r:!0,v=p?[]:["accept"],k=((i=O.hours)==null?void 0:i.name)===_I.name?h:h.filter(E=>E!=="meridiem"),C=L({},d,{ampmInClock:b,timeSteps:m,viewRenderers:O,format:QT(c,d),views:p?["hours"]:k,slots:L({field:Dne,openPickerIcon:_Ve},d.slots),slotProps:L({},d.slotProps,{field:E=>{var $;return L({},Yd(($=d.slotProps)==null?void 0:$.field,E),Fg(d),{ref:n})},toolbar:L({hidden:!0,ampmInClock:b},(o=d.slotProps)==null?void 0:o.toolbar),actionBar:L({actions:v},(a=d.slotProps)==null?void 0:a.actionBar)})}),{renderPicker:w}=_$({props:C,valueManager:$i,valueType:"time",getOpenDialogAriaText:(s=(l=C.localeText)==null?void 0:l.openTimePickerDialogue)!=null?s:u.openTimePickerDialogue,validator:vO});return w()});$ne.propTypes={ampm:W.bool,ampmInClock:W.bool,autoFocus:W.bool,className:W.string,closeOnSelect:W.bool,components:W.object,componentsProps:W.object,defaultValue:W.any,disabled:W.bool,disableFuture:W.bool,disableIgnoringDatePartForTimeValidation:W.bool,disableOpenPicker:W.bool,disablePast:W.bool,format:W.string,formatDensity:W.oneOf(["dense","spacious"]),inputRef:sg,label:W.node,localeText:W.object,maxTime:W.any,minTime:W.any,minutesStep:W.number,name:W.string,onAccept:W.func,onChange:W.func,onClose:W.func,onError:W.func,onOpen:W.func,onSelectedSectionsChange:W.func,onViewChange:W.func,open:W.bool,openTo:W.oneOf(["hours","meridiem","minutes","seconds"]),orientation:W.oneOf(["landscape","portrait"]),readOnly:W.bool,reduceAnimations:W.bool,referenceDate:W.any,selectedSections:W.oneOfType([W.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),W.number,W.shape({endIndex:W.number.isRequired,startIndex:W.number.isRequired})]),shouldDisableClock:W.func,shouldDisableTime:W.func,skipDisabled:W.bool,slotProps:W.object,slots:W.object,sx:W.oneOfType([W.arrayOf(W.oneOfType([W.func,W.object,W.bool])),W.func,W.object]),thresholdToRenderTimeInASingleColumn:W.number,timeSteps:W.shape({hours:W.number,minutes:W.number,seconds:W.number}),timezone:W.string,value:W.any,view:W.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:W.shape({hours:W.func,meridiem:W.func,minutes:W.func,seconds:W.func}),views:W.arrayOf(W.oneOf(["hours","minutes","seconds"]).isRequired)};const Fne=N.forwardRef(function(t,n){var r,i,o,a;const s=Fi(),l=Rn(),u=Mne(t,"MuiMobileTimePicker"),c=L({hours:sm,minutes:sm,seconds:sm},u.viewRenderers),d=(r=u.ampmInClock)!=null?r:!1,p=L({},u,{ampmInClock:d,viewRenderers:c,format:QT(l,u),slots:L({field:Dne},u.slots),slotProps:L({},u.slotProps,{field:m=>{var y;return L({},Yd((y=u.slotProps)==null?void 0:y.field,m),Fg(u),{ref:n})},toolbar:L({hidden:!1,ampmInClock:d},(i=u.slotProps)==null?void 0:i.toolbar)})}),{renderPicker:h}=I$({props:p,valueManager:$i,valueType:"time",getOpenDialogAriaText:(o=(a=p.localeText)==null?void 0:a.openTimePickerDialogue)!=null?o:s.openTimePickerDialogue,validator:vO});return h()});Fne.propTypes={ampm:W.bool,ampmInClock:W.bool,autoFocus:W.bool,className:W.string,closeOnSelect:W.bool,components:W.object,componentsProps:W.object,defaultValue:W.any,disabled:W.bool,disableFuture:W.bool,disableIgnoringDatePartForTimeValidation:W.bool,disableOpenPicker:W.bool,disablePast:W.bool,format:W.string,formatDensity:W.oneOf(["dense","spacious"]),inputRef:sg,label:W.node,localeText:W.object,maxTime:W.any,minTime:W.any,minutesStep:W.number,name:W.string,onAccept:W.func,onChange:W.func,onClose:W.func,onError:W.func,onOpen:W.func,onSelectedSectionsChange:W.func,onViewChange:W.func,open:W.bool,openTo:W.oneOf(["hours","minutes","seconds"]),orientation:W.oneOf(["landscape","portrait"]),readOnly:W.bool,reduceAnimations:W.bool,referenceDate:W.any,selectedSections:W.oneOfType([W.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),W.number,W.shape({endIndex:W.number.isRequired,startIndex:W.number.isRequired})]),shouldDisableClock:W.func,shouldDisableTime:W.func,slotProps:W.object,slots:W.object,sx:W.oneOfType([W.arrayOf(W.oneOfType([W.func,W.object,W.bool])),W.func,W.object]),timezone:W.string,value:W.any,view:W.oneOf(["hours","minutes","seconds"]),viewRenderers:W.shape({hours:W.func,minutes:W.func,seconds:W.func}),views:W.arrayOf(W.oneOf(["hours","minutes","seconds"]).isRequired)};const qYe=["desktopModeMediaQuery"],ZYe=N.forwardRef(function(t,n){const r=gt({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:i=w$}=r,o=Ge(r,qYe);return pg(i,{defaultMatches:!0})?M.jsx($ne,L({ref:n},o)):M.jsx(Fne,L({ref:n},o))});var P$={},XYe=$o;Object.defineProperty(P$,"__esModule",{value:!0});var Bne=P$.default=void 0,KYe=XYe(Fo()),JYe=M;Bne=P$.default=(0,KYe.default)((0,JYe.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 L$={},eGe=$o;Object.defineProperty(L$,"__esModule",{value:!0});var Une=L$.default=void 0,tGe=eGe(Fo()),nGe=M;Une=L$.default=(0,tGe.default)((0,nGe.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 RI(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 dGe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function fGe(e,t){return rGe(e)||sGe(e,t)||jne(e,t)||lGe()}function zd(e){return iGe(e)||aGe(e)||jne(e)||uGe()}function pGe(e){"@swc/helpers - typeof";return e&&typeof Symbol<"u"&&e.constructor===Symbol?"symbol":typeof e}function jne(e,t){if(e){if(typeof e=="string")return RI(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 RI(e,t)}}var hGe=N.createContext({onError:function(e){return e==null?void 0:e.message}}),Os=function(){var e;return(e=N.useContext(hGe))===null||e===void 0?void 0:e.onError};function Da(e){var t;return{value:typeof((t=e.transform)===null||t===void 0?void 0:t.input)=="function"?e.transform.input(e.value):e.value,onChange:function(){for(var n=arguments.length,r=new Array(n),i=0;i()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:"Please enter a valid email address"}}),b=Na({name:s,control:l,disabled:h.disabled,rules:O}),v=b.field,S=b.fieldState,k=S.error,C=Da({value:v.value,onChange:v.onChange,transform:{input:typeof(p==null?void 0:p.input)=="function"?p.input:function(D){return D||""},output:typeof(p==null?void 0:p.output)=="function"?p.output:function(D){var R=D.target.value;return o==="number"&&R?+R:R}}}),w=C.value,E=C.onChange,$=yn(v.ref,d);return M.jsx(c,Cn(zt({},h),{name:v.name,value:w,onChange:function(D){E(D),typeof h.onChange=="function"&&h.onChange(D)},onBlur:v.onBlur,required:a,type:o,error:!!k,helperText:k?typeof y=="function"?y(k):k.message:h.helperText,ref:t,inputRef:$}))});zne.displayName="TextFieldElement";var Vne=zne;function mGe(e){var t=e.handleSubmit,n=e.children,r=e.FormProps,i=e.formContext,o=e.onSuccess,a=e.onError,s=vo(e,["handleSubmit","children","FormProps","formContext","onSuccess","onError"]);return i?(typeof o=="function"&&typeof t=="function"&&console.warn("Property `onSuccess` will be ignored because handleSubmit is provided"),M.jsx(Nte,Cn(zt({},i),{children:M.jsx("form",Cn(zt({noValidate:!0},r),{onSubmit:t||(o?i.handleSubmit(o,a):function(){return console.log("submit handler `onSuccess` is missing")}),children:n}))}))):M.jsx(gGe,zt({onSuccess:o,onError:a,FormProps:r,children:n},s))}function gGe(e){var t=e.onSuccess,n=e.onError,r=e.FormProps,i=e.children,o=vo(e,["onSuccess","onError","FormProps","children"]),a=Gze(zt({},o)),s=a.handleSubmit;return M.jsx(Nte,Cn(zt({},a),{children:M.jsx("form",Cn(zt({onSubmit:s(t||function(){return console.log("submit handler `onSuccess` is missing")},n),noValidate:!0},r),{children:i}))}))}var Hne={disableFuture:"Date must be in the past",maxDate:"Date is later than the maximum allowed date",disablePast:"Past date is not allowed",invalidDate:"Date is invalid",minDate:"Date is earlier than the minimum allowed date",shouldDisableDate:"Date is not allowed",shouldDisableMonth:"Month is not allowed",shouldDisableYear:"Year is not allowed"},bGe=N.forwardRef(function(e,t){var n=e.parseError,r=e.name,i=e.required,o=e.validation,a=o===void 0?{}:o,s=e.inputProps,l=e.control,u=e.textReadOnly,c=e.slotProps,d=e.overwriteErrorMessages,p=e.inputRef,h=e.transform,m=vo(e,["parseError","name","required","validation","inputProps","control","textReadOnly","slotProps","overwriteErrorMessages","inputRef","transform"]),y=Ul(),O=Os(),b=n||O,v=zt({},Hne,d),S=Cn(zt({},a,i&&!a.required&&{required:"This field is required"}),{validate:zt({internal:function(V){var z,Q,X=V==null||!y.utils.isValid(V)?null:y.utils.getTimezone(V),Z=Ip({props:{shouldDisableDate:m.shouldDisableDate,shouldDisableMonth:m.shouldDisableMonth,shouldDisableYear:m.shouldDisableYear,disablePast:!!m.disablePast,disableFuture:!!m.disableFuture,minDate:m.minDate,maxDate:m.maxDate,timezone:(Q=(z=m.timezone)!==null&&z!==void 0?z:X)!==null&&Q!==void 0?Q:"default"},value:V,adapter:y});return Z==null||v[Z]}},a.validate)}),k=Na({name:r,control:l,rules:S,disabled:m.disabled,defaultValue:null}),C=k.field,w=k.fieldState,E=w.error,$=Da({value:C.value,onChange:C.onChange,transform:{input:typeof(h==null?void 0:h.input)=="function"?h.input:function(V){return V&&V==="string"?new Date(V):V},output:typeof(h==null?void 0:h.output)=="function"?h.output:function(V){return V}}}),D=$.value,R=$.onChange,B=yn(C.ref,p),U=E?typeof b=="function"?b(E):E.message:null;return M.jsx(pQe,Cn(zt({},m,C),{value:D,ref:t,inputRef:B,onClose:function(){for(var V=arguments.length,z=new Array(V),Q=0;Q"u"?"undefined":pGe(V))<"u"&&(S.InputLabelProps=S.InputLabelProps||{},S.InputLabelProps.shrink=!0),M.jsxs(Ep,Cn(zt({},S),{name:r,value:V,onBlur:D.onBlur,ref:t,onChange:function(X){if(z(X),typeof S.onChange=="function"){var Z=X.target.value;p==="number"&&Z&&(Z=Number(Z)),h&&(Z=c.find(function(Y){return Y[a]===Z})),S.onChange(Z)}},select:!0,required:i,error:!!B,helperText:B?typeof C=="function"?C(B):B.message:S.helperText,inputRef:Q,children:[w&&M.jsx("option",{}),c.map(function(X){var Z,Y={key:"".concat(r,"_").concat(X[a]),value:(Z=X==null?void 0:X[a])!==null&&Z!==void 0?Z:X,disabled:ya(X,"disabled")?!!X.disabled:!1,children:X[l]};return w?M.jsx("option",zt({},Y)):M.jsx(ap,zt({},Y))})]}))});wGe.displayName="SelectElement";var kGe=N.forwardRef(function(e,t){var n=e.helperText,r=e.options,i=e.label,o=e.name,a=e.parseError,s=e.required,l=e.labelKey,u=l===void 0?"label":l,c=e.valueKey,d=c===void 0?"id":c,p=e.returnObject,h=e.disabled,m=e.row,y=e.control,O=e.checkboxColor,b=e.rules,v=e.labelProps,S=e.transform,k=e.defaultValue,C=k===void 0?[]:k,w=vo(e,["helperText","options","label","name","parseError","required","labelKey","valueKey","returnObject","disabled","row","control","checkboxColor","rules","labelProps","transform","defaultValue"]),E=bi(),$=Os(),D=a||$,R=Na({name:o,rules:s?{required:"This field is required"}:b,disabled:h,control:y,defaultValue:C}),B=R.field,U=R.fieldState,V=U.error,z=U.invalid,Q=Da({value:B.value,onChange:B.onChange,transform:{input:typeof(S==null?void 0:S.input)=="function"?S.input:function(j){return Array.isArray(j)?j:[]},output:S==null?void 0:S.output}}),X=Q.value,Z=Q.onChange,Y=function(j){var le=ya(j,d)?j[d]:j,Ee=X.findIndex(function(ue){var ge=ya(ue,d)?ue[d]:ue;return le===ge}),G=(Ee===-1?zd(X).concat([j]):X.filter(function(ue,ge){return Ee!==ge})).map(function(ue){return p||!ya(ue,d)?ue:ue[d]});Z(G),typeof w.onChange=="function"&&w.onChange(G)},q=V?typeof D=="function"?D(V):V.message:n;return M.jsxs(vp,{error:z,required:s,ref:t,children:[i?M.jsx(ck,{children:i}):null,M.jsx(vD,{row:m,children:r.map(function(j){var le=ya(j,d)?j[d]:j,Ee=ya(j,u)?j[u]:j,G=X.some(function(ue){return(ya(ue,d)?ue[d]:ue)===le});return N.createElement(dy,Cn(zt({},v),{control:M.jsx(lk,{sx:{color:V?E.palette.error.main:void 0},color:O,value:le,checked:G,disabled:h,onChange:function(){return Y(j)}}),label:"".concat(Ee),key:"".concat(le)}))})}),q&&M.jsx(fg,{children:q})]})});kGe.displayName="CheckboxButtonGroup";var xGe=48,CGe=8,AGe=N.forwardRef(function(e,t){var n,r,i,o,a,s=e.options,l=e.label,u=l===void 0?"":l,c=e.itemKey,d=c===void 0?"id":c,p=e.itemValue,h=p===void 0?"":p,m=e.itemLabel,y=m===void 0?"label":m,O=e.required,b=O===void 0?!1:O,v=e.validation,S=v===void 0?{}:v,k=e.parseError,C=e.name,w=e.menuMaxHeight,E=w===void 0?xGe*4.5+CGe:w,$=e.menuMaxWidth,D=$===void 0?250:$,R=e.minWidth,B=R===void 0?120:R,U=e.helperText,V=e.showChips,z=e.preserveOrder,Q=e.control,X=e.showCheckbox,Z=e.formControlProps,Y=e.inputRef,q=e.transform,j=vo(e,["options","label","itemKey","itemValue","itemLabel","required","validation","parseError","name","menuMaxHeight","menuMaxWidth","minWidth","helperText","showChips","preserveOrder","control","showCheckbox","formControlProps","inputRef","transform"]),le=Os(),Ee=k||le,G=function($e){var He,dt;return(dt=(He=s.find(function(Be){var re;return((re=Be[h||d])!==null&&re!==void 0?re:Be)===$e}))===null||He===void 0?void 0:He[y])!==null&&dt!==void 0?dt:$e},ue=zt({},S,b&&!S.required&&{required:"This field is required"}),ge=Na({name:C,rules:ue,disabled:j.disabled,control:Q}),he=ge.field,Ne=ge.fieldState,Le=Ne.error,qe=Da({value:he.value,onChange:he.onChange,transform:{input:typeof(q==null?void 0:q.input)=="function"?q.input:function($e){return Array.isArray($e)?$e:[]},output:q==null?void 0:q.output}}),rt=qe.value,Me=qe.onChange,Qe=yn(he.ref,Y),ye=Le?typeof Ee=="function"?Ee(Le):Le.message:U,ze;return M.jsxs(vp,Cn(zt({},Z),{style:zt({minWidth:B},Z==null?void 0:Z.style),variant:j.variant,fullWidth:j.fullWidth,error:!!Le,size:j.size,ref:t,children:[u&&M.jsx(XQ,{size:j.size==="small"?"small":void 0,error:!!Le,htmlFor:j.id||"select-multi-select-".concat(C),required:b,children:u}),M.jsx(uY,Cn(zt({},j),{id:j.id||"select-multi-select-".concat(C),multiple:!0,label:u||void 0,error:!!Le,value:rt,required:b,onChange:Me,onBlur:he.onBlur,MenuProps:Cn(zt({},j.MenuProps),{slotProps:Cn(zt({},(n=j.MenuProps)===null||n===void 0?void 0:n.slotProps),{paper:zt({},(ze=(i=j.MenuProps)===null||i===void 0||(r=i.slotProps)===null||r===void 0?void 0:r.paper)!==null&&ze!==void 0?ze:{style:zt({maxHeight:E,width:D},ya((a=j.MenuProps)===null||a===void 0||(o=a.slotProps)===null||o===void 0?void 0:o.paper,"style")&&typeof j.MenuProps.slotProps.paper.style=="object"&&zt({},j.MenuProps.slotProps.paper.style))})})}),renderValue:typeof j.renderValue=="function"?j.renderValue:V?function($e){return M.jsx("div",{style:{display:"flex",flexWrap:"wrap"},children:(z?s.filter(function(He){return $e.includes(He)}):$e||[]).map(function(He){return M.jsx(gD,{label:G(He),style:{display:"flex",flexWrap:"wrap"},onDelete:function(){Me((Array.isArray(rt)?rt:[]).filter(function(dt){return dt!==He}))},deleteIcon:M.jsx(Bne,{onMouseDown:function(dt){dt.stopPropagation()}})},He)})})}:function($e){return Array.isArray($e)?$e.map(G).join(", "):""},inputRef:Qe,children:s.map(function($e){var He=$e[h||d]||$e,dt=Array.isArray(rt)?rt.some(function(Be){return Be===He}):!1;return M.jsxs(ap,{value:He,sx:{fontWeight:function(Be){return dt?Be.typography.fontWeightBold:Be.typography.fontWeightRegular}},children:[X&&M.jsx(lk,{checked:dt}),M.jsx(qf,{primary:$e[y]||$e})]},He)})})),ye&&M.jsx(fg,{error:!!Le,children:ye})]}))});AGe.displayName="MultiSelectElement";var Wne=N.forwardRef(function(e,t){var n=e.iconColor,r=e.renderIcon,i=r===void 0?function(u){return u?M.jsx(YD,{}):M.jsx(Une,{})}:r,o=vo(e,["iconColor","renderIcon"]),a=fGe(N.useState(!0),2),s=a[0],l=a[1];return M.jsx(Vne,Cn(zt({},o),{ref:t,InputProps:{endAdornment:M.jsx(ED,{position:"end",children:M.jsx(Ia,{onMouseDown:function(u){return u.preventDefault()},onClick:function(){return l(!s)},tabIndex:-1,color:n??"default",children:i(s)})})},type:s?"password":"text"}))});Wne.displayName="PasswordElement";var _Ge=Wne,RGe=N.forwardRef(function(e,t){var n=e.helperText,r=e.options,i=e.label,o=e.name,a=e.parseError,s=e.labelKey,l=s===void 0?"label":s,u=e.valueKey,c=u===void 0?"id":u,d=e.required,p=e.emptyOptionLabel,h=e.returnObject,m=e.row,y=e.control,O=e.type,b=e.labelProps,v=e.disabled,S=e.formLabelProps,k=e.transform,C=vo(e,["helperText","options","label","name","parseError","labelKey","valueKey","required","emptyOptionLabel","returnObject","row","control","type","labelProps","disabled","formLabelProps","transform"]),w=bi(),E=Os(),$=a||E,D=Na({name:o,rules:d?{required:"This field is required"}:void 0,disabled:v,control:y}),R=D.field,B=D.fieldState,U=B.error,V=Da({value:R.value,onChange:R.onChange,transform:{input:typeof(k==null?void 0:k.input)=="function"?k.input:function(Y){return Y||""},output:typeof(k==null?void 0:k.output)=="function"?k==null?void 0:k.output:function(Y,q){return q}}}),z=V.value,Q=V.onChange,X=U?typeof $=="function"?$(U):U.message:n,Z=function(Y,q){var j=h?r.find(function(le){return le[c]===q}):q;Q(Y,j),typeof C.onChange=="function"&&C.onChange(j)};return M.jsxs(vp,{error:!!U,ref:t,children:[i&&M.jsx(ck,Cn(zt({},S),{required:d,error:!!U,children:i})),M.jsxs(X1e,{onChange:Z,name:o,row:m,value:z,children:[p&&M.jsx(dy,Cn(zt({},b),{control:M.jsx(f8,{sx:{color:U?w.palette.error.main:void 0},checked:!z}),label:p,value:""})),r.map(function(Y){var q=Y[c];q||console.error("CheckboxButtonGroup: valueKey ".concat(c," does not exist on option"),Y);var j=h?z==null?void 0:z[c]:z;O==="number"&&(j=Number(j));var le=j===q;return N.createElement(dy,Cn(zt({},b),{control:M.jsx(f8,{sx:{color:U?w.palette.error.main:void 0},disabled:v,checked:le}),value:q,label:Y[l],key:q}))})]}),X&&M.jsx(fg,{children:X})]})});RGe.displayName="RadioButtonGroup";var IGe=N.forwardRef(function(e,t){var n=e.name,r=e.control,i=e.switchProps,o=e.transform,a=vo(e,["name","control","switchProps","transform"]),s=Na({name:n,control:r,disabled:a.disabled}),l=s.field,u=Da({value:l.value,onChange:l.onChange,transform:{input:o==null?void 0:o.input,output:typeof(o==null?void 0:o.output)=="function"?o.output:function(h,m){return m}}}),c=u.value,d=u.onChange,p=yn(l.ref,i==null?void 0:i.ref);return M.jsx(dy,zt({ref:t,control:M.jsx(YOe,Cn(zt({},i),{name:l.name,value:c,onChange:function(h,m){d(h,m),typeof(i==null?void 0:i.onChange)=="function"&&i.onChange(h,m)},onBlur:function(h){l.onBlur(),typeof(i==null?void 0:i.onBlur)=="function"&&(i==null||i.onBlur(h))},ref:p,checked:!!c}))},a))});IGe.displayName="SwitchElement";var NGe=N.forwardRef(function(e,t){var n=e.passwordFieldName,r=e.customInvalidFieldMessage,i=e.control,o=vo(e,["passwordFieldName","customInvalidFieldMessage","control"]),a=$te({name:n,control:i});return M.jsx(_Ge,Cn(zt({control:i},o),{ref:t,validation:{validate:function(s){return s===a||(r??"Password should match")}}}))});NGe.displayName="PasswordRepeatElement";var DGe=N.forwardRef(function(e,t){var n=e.textFieldProps,r=e.autocompleteProps,i=e.name,o=e.control,a=e.options,s=e.loading,l=e.showCheckbox,u=e.rules,c=e.loadingIndicator,d=e.required,p=e.multiple,h=e.label,m=e.parseError,y=e.transform,O=e.matchId,b=Os(),v=m||b,S=zt({},u,d&&{required:(u==null?void 0:u.required)||"This field is required"}),k=Na({name:i,control:o,disabled:r==null?void 0:r.disabled,rules:S}),C=k.field,w=k.fieldState,E=w.error,$=function(Z){return typeof(r==null?void 0:r.getOptionLabel)=="function"?r.getOptionLabel(Z):ya(Z,"label")?"".concat(Z==null?void 0:Z.label):"".concat(Z)},D=function(Z,Y){if(typeof(r==null?void 0:r.isOptionEqualToValue)=="function")return r.isOptionEqualToValue(Z,Y);var q=ya(Z,"id")?Z.id:Z,j=ya(Y,"id")?Y.id:Y;return q===j},R=function(Z){return a.find(function(Y){return O&&ya(Y,"id")?Y.id===Z:D(Y,Z)})},B=Da({value:C.value,onChange:C.onChange,transform:{input:typeof(y==null?void 0:y.input)=="function"?y.input:function(Z){var Y;return p?(Array.isArray(Z)?Z:[]).map(R):(Y=R(Z))!==null&&Y!==void 0?Y:null},output:typeof(y==null?void 0:y.output)=="function"?y.output:function(Z,Y){if(p){var q=Array.isArray(Y)?Y:[];return O?q.map(function(j){return ya(j,"id")?j.id:j}):q}return O&&ya(Y,"id")?Y.id:Y}}}),U=B.value,V=B.onChange,z=yn(C.ref,n==null?void 0:n.inputRef),Q=c||M.jsx(dg,{color:"inherit",size:20}),X;return M.jsx(cme,Cn(zt({},r),{value:U,loading:s,multiple:p,options:a,disableCloseOnSelect:typeof(r==null?void 0:r.disableCloseOnSelect)=="boolean"?r.disableCloseOnSelect:!!p,isOptionEqualToValue:D,getOptionLabel:$,onChange:function(Z,Y,q,j){V(Z,Y,q,j),r!=null&&r.onChange&&r.onChange(Z,Y,q,j)},ref:t,renderOption:(X=r==null?void 0:r.renderOption)!==null&&X!==void 0?X:l?function(Z,Y,q){var j=q.selected;return M.jsxs("li",Cn(zt({},Z),{children:[M.jsx(lk,{sx:{marginRight:1},checked:j}),$(Y)]}))}:void 0,onBlur:function(Z){C.onBlur(),typeof(r==null?void 0:r.onBlur)=="function"&&r.onBlur(Z)},renderInput:function(Z){return M.jsx(Ep,Cn(zt({name:i,required:u!=null&&u.required?!0:d,label:h},n,Z),{error:!!E,InputLabelProps:zt({},Z.InputLabelProps,n==null?void 0:n.InputLabelProps),InputProps:zt(Cn(zt({},Z.InputProps),{endAdornment:M.jsxs(M.Fragment,{children:[s?Q:null,Z.InputProps.endAdornment]})}),n==null?void 0:n.InputProps),inputProps:zt({},Z.inputProps,n==null?void 0:n.inputProps),helperText:E?typeof v=="function"?v(E):E.message:n==null?void 0:n.helperText,inputRef:z}))}}))});DGe.displayName="AutocompleteElement";var PGe=N.forwardRef(function(e,t){var n=e.name,r=e.control,i=e.label,o=e.rules,a=o===void 0?{}:o,s=e.parseError,l=e.required,u=e.formControlProps,c=e.transform,d=vo(e,["name","control","label","rules","parseError","required","formControlProps","transform"]),p=Os(),h=s||p,m=zt({},a,l&&!a.required&&{required:"This field is required"}),y=Na({name:n,control:r,disabled:d.disabled,rules:m}),O=y.field,b=y.fieldState,v=b.error,S=b.invalid,k=Da({value:O.value,onChange:O.onChange,transform:c}),C=k.value,w=k.onChange,E=v?typeof h=="function"?h(v):v.message:null;return M.jsxs(vp,Cn(zt({error:S,required:l,fullWidth:!0},u),{ref:t,children:[i&&M.jsx(ck,{component:"legend",error:S,children:i}),M.jsx(AOe,Cn(zt({},d),{value:C,onChange:w,valueLabelDisplay:d.valueLabelDisplay||"auto"})),E&&M.jsx(fg,{error:S,children:E})]}))});PGe.displayName="SliderElement";var LGe=N.forwardRef(function(e,t){var n=e.validation,r=n===void 0?{}:n,i=e.parseError,o=e.required,a=e.name,s=e.control,l=e.rows,u=e.resizeStyle,c=e.inputRef,d=e.inputProps,p=e.transform,h=vo(e,["validation","parseError","required","name","control","rows","resizeStyle","inputRef","inputProps","transform"]),m=Os(),y=i||m,O=zt({},r,o&&!r.required&&{required:"This field is required"}),b=Na({name:a,control:s,rules:O,disabled:h.disabled}),v=b.field,S=b.fieldState,k=S.error,C=Da({value:v.value,onChange:v.onChange,transform:{input:typeof(p==null?void 0:p.input)=="function"?p.input:function(D){return D??""},output:typeof(p==null?void 0:p.output)=="function"?p.output:function(D){return D.target.value}}}),w=C.value,E=C.onChange,$=yn(v.ref,c);return M.jsx(Ep,Cn(zt({},h),{name:a,value:w,onChange:function(D){E(D),typeof h.onChange=="function"&&h.onChange(D)},onBlur:v.onBlur,required:o,error:!!k,helperText:k?typeof y=="function"?y(k):k.message:h.helperText,inputRef:$,multiline:!0,InputProps:{inputComponent:LQ,inputProps:zt({minRows:l,style:{resize:u||"both"}},d||{})},ref:t}))});LGe.displayName="TextareaAutosizeElement";var M$={},MGe=$o;Object.defineProperty(M$,"__esModule",{value:!0});var $$=M$.default=void 0,$Ge=MGe(Fo()),FGe=M;$$=M$.default=(0,$Ge.default)((0,FGe.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 Qne(e){const{title:t,onSuccess:n,...r}=e,i=()=>{var a;(a=r==null?void 0:r.onClose)==null||a.call(r,new Event("Close Modal"),"escapeKeyDown")},o=async a=>{await n(a),i()};return M.jsx(I1,{disableAutoFocus:!0,...r,children:M.jsxs(Ra,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:[M.jsx(Ia,{sx:{position:"absolute",top:28,right:28},onClick:i,children:M.jsx($$,{})}),M.jsxs(ho,{gap:4,children:[M.jsxs(Gr,{variant:"h5",children:["Create New ",t]}),M.jsx(vp,{children:M.jsx(mGe,{defaultValues:{title:""},onSuccess:o,children:M.jsxs(ho,{gap:4,alignItems:"flex-end",children:[M.jsx(Vne,{variant:"standard",name:"title",label:"Title of new note",required:!0,fullWidth:!0,inputProps:{maxLength:255}}),M.jsx(Af,{type:"submit",variant:"contained",size:"large",children:"OK"})]})})})]})]})})}function BGe(e){const{width:t,...n}=e,r=gg(),i=F1(),{data:o,hasNextPage:a,fetchNextPage:s}=Tze(),{mutateAsync:l}=wze(),u=N.useMemo(()=>(o==null?void 0:o.pages.reduce((O,b)=>O.concat(b.workspaces),[]))??[],[o==null?void 0:o.pages]),[c,d]=N.useState(!1),p=O=>{r(`/workspace/${O}`)},h=O=>{var b;i.workspaceSlug!==O&&(p(O),(b=n==null?void 0:n.onClose)==null||b.call(n,new Event("Close Popover"),"backdropClick"))},m=()=>{var O;d(b=>!b),n.open&&((O=n==null?void 0:n.onClose)==null||O.call(n,new Event("Close Popover"),"backdropClick"))},y=async O=>{const b=await l(O);p(b.slug)};return M.jsxs(M.Fragment,{children:[M.jsx(TD,{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...n,children:M.jsxs(N1,{sx:{width:t},children:[M.jsx(xa,{style:{maxHeight:300,overflow:"auto"},children:M.jsx(qy,{pageStart:0,loadMore:()=>s(),hasMore:a,loader:M.jsx(xa,{className:"loader",children:M.jsx(dg,{size:"sm"})},0),useWindow:!1,children:u.map(O=>M.jsxs(ap,{onClick:()=>h(O.slug),children:[M.jsx(qf,{primaryTypographyProps:{noWrap:!0,variant:"body2"},children:O.title}),i.workspaceSlug===O.slug&&M.jsx(zS,{children:M.jsx(Cte,{fontSize:"small"})})]},O.id))})}),M.jsx(rc,{}),M.jsxs(ap,{onClick:m,children:[M.jsx(SD,{children:M.jsx(Tk,{fontSize:"small"})}),M.jsx(qf,{children:"Create Workspace"})]})]})}),M.jsx(Qne,{open:c,title:"Workspace",onClose:m,onSuccess:y})]})}const Yne=e=>["workspaces",e,"documents"],UGe=e=>r$({queryKey:Yne(e||""),queryFn:async({pageParam:n})=>(await cr.get(`/workspaces/${e}/documents`,{params:{cursor:n,page_size:20}})).data,enabled:!!e,initialPageParam:void 0,getPreviousPageParam:n=>n.cursor??void 0,getNextPageParam:n=>n.cursor??void 0}),jGe=e=>{const t=t$();return Ote({mutationFn:async n=>(await cr.post(`/workspaces/${e}/documents`,n)).data,onSuccess:()=>{t.invalidateQueries({queryKey:Yne(e)})}})};var F$={},zGe=$o;Object.defineProperty(F$,"__esModule",{value:!0});var Gne=F$.default=void 0,VGe=zGe(Fo()),HGe=M;Gne=F$.default=(0,VGe.default)((0,HGe.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"People");const WGe=e=>["workspaces",e,"users"],QGe=e=>r$({queryKey:WGe(e||""),queryFn:async({pageParam:t})=>(await cr.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 YGe(e){const{open:t,onClose:n}=e,r=F1(),{data:i}=l$(r.workspaceSlug),{data:o,fetchNextPage:a,hasNextPage:s}=QGe(i==null?void 0:i.id),l=N.useMemo(()=>(o==null?void 0:o.pages.reduce((u,c)=>u.concat(c.workspaceUsers),[]))??[],[o==null?void 0:o.pages]);return M.jsx(I1,{open:t,disableAutoFocus:!0,onClose:n,children:M.jsxs(Ra,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:[M.jsx(Ia,{sx:{position:"absolute",top:28,right:28},onClick:n,children:M.jsx($$,{})}),M.jsxs(ho,{gap:4,children:[M.jsx(Gr,{variant:"h5",children:"Members"}),M.jsx(xa,{style:{height:300,maxHeight:"100%",overflow:"auto"},width:1,children:M.jsx(qy,{pageStart:0,loadMore:()=>a(),hasMore:s,loader:M.jsx(xa,{className:"loader",children:M.jsx(dg,{size:"sm"})},0),useWindow:!1,children:M.jsx(ho,{gap:2,children:l.map(u=>{var c;return M.jsx(ho,{direction:"row",alignItems:"center",children:M.jsxs(ho,{direction:"row",alignItems:"center",gap:1,children:[M.jsx(BQ,{children:(c=u.nickname)==null?void 0:c[0]}),M.jsx(Gr,{children:u.nickname})]})},u.id)})})})})]})]})})}const o2=240;function GGe(){var S,k;const e=F1(),t=wc(Ste),{data:n}=l$(e.workspaceSlug),{mutateAsync:r}=jGe((n==null?void 0:n.id)||""),[i,o]=N.useState(null),[a,s]=N.useState(null),[l,u]=N.useState(!1),[c,d]=N.useState(!1),p=C=>{o(C.currentTarget)},h=()=>{o(null)},m=C=>{s(C.currentTarget)},y=()=>{s(null)},O=async C=>{await r(C)},b=()=>{u(C=>!C)},v=()=>{d(C=>!C)};return M.jsxs(U0e,{sx:{width:o2,flexShrink:0,"& .MuiDrawer-paper":{width:o2,boxSizing:"border-box"}},variant:"permanent",anchor:"left",open:!0,children:[M.jsxs(ch,{disablePadding:!0,children:[M.jsxs(TC,{onClick:m,children:[M.jsx(qf,{primary:n==null?void 0:n.title,primaryTypographyProps:{variant:"subtitle1",noWrap:!0}}),M.jsx(zS,{children:M.jsx(Ia,{children:a?M.jsx(xte,{}):M.jsx(kte,{})})})]}),M.jsx(BGe,{open:!!a,anchorEl:a,onClose:y,width:o2-32})]}),M.jsx(rc,{}),M.jsx(ch,{children:M.jsx(Af,{variant:"contained",startIcon:M.jsx(Tk,{}),sx:{width:1},onClick:b,children:"New Note"})}),M.jsx(rc,{}),M.jsx(ch,{disablePadding:!0,children:M.jsxs(TC,{onClick:v,children:[M.jsx(SD,{children:M.jsx(Gne,{})}),M.jsx(qf,{primary:"Members"})]})}),M.jsx(rc,{}),M.jsx(ch,{sx:{mt:"auto"},children:M.jsx(ho,{width:1,alignItems:"center",justifyContent:"flex-end",direction:"row",children:M.jsx(SG,{})})}),M.jsx(rc,{}),M.jsxs(ch,{disablePadding:!0,children:[M.jsxs(TC,{onClick:p,children:[M.jsx(Dye,{children:M.jsx(BQ,{children:(S=t.data)==null?void 0:S.nickname.charAt(0)})}),M.jsx(qf,{primary:(k=t.data)==null?void 0:k.nickname}),M.jsx(zS,{children:M.jsx(Tte,{})})]}),M.jsx(vze,{open:!!i,anchorEl:i,onClose:h})]}),M.jsx(Qne,{open:l,title:"Note",onSuccess:O,onClose:b}),M.jsx(YGe,{open:c,onClose:v})]})}//! moment.js +`));const t=I.useMemo(()=>P({},eHe,e.localeText),[e.localeText]);return I.useMemo(()=>P({},e,{localeText:t}),[e,t])},Rn=()=>Vl().utils,jp=()=>Vl().defaultDates,Ui=()=>Vl().localeText,cf=e=>{const t=Rn(),n=I.useRef();return n.current===void 0&&(n.current=t.dateWithTimezone(void 0,e)),n.current};function Rne(e){return At("MuiPickersToolbar",e)}_t("MuiPickersToolbar",["root","content"]);const tHe=e=>{const{classes:t,isLandscape:n}=e;return kt({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},Rne,t)},nHe=Se("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>P({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),rHe=Se("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>{var t;return{display:"flex",flexWrap:"wrap",width:"100%",justifyContent:e.isLandscape?"flex-start":"space-between",flexDirection:e.isLandscape?(t=e.landscapeDirection)!=null?t:"column":"row",flex:1,alignItems:e.isLandscape?"flex-start":"center"}}),V$=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiPickersToolbar"}),{children:i,className:o,toolbarTitle:a,hidden:s,titleId:l}=r,u=r,c=tHe(u);return s?null:M.jsxs(nHe,{ref:n,className:Je(c.root,o),ownerState:u,children:[M.jsx(Lr,{color:"text.secondary",variant:"overline",id:l,children:a}),M.jsx(rHe,{className:c.content,ownerState:u,children:i})]})});function iHe(e){return At("MuiDatePickerToolbar",e)}_t("MuiDatePickerToolbar",["root","title"]);const oHe=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views"],aHe=e=>{const{classes:t}=e;return kt({root:["root"],title:["title"]},iHe,t)},sHe=Se(V$,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),lHe=Se(Lr,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>P({},e.isLandscape&&{margin:"auto 16px auto auto"})),uHe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDatePickerToolbar"}),{value:i,isLandscape:o,toolbarFormat:a,toolbarPlaceholder:s="––",views:l}=r,u=Ge(r,oHe),c=Rn(),d=Ui(),p=aHe(r),h=I.useMemo(()=>{if(!i)return s;const b=u1(c,{format:a,views:l},!0);return c.formatByString(i,b)},[i,a,s,c,l]),m=r;return M.jsx(sHe,P({ref:n,toolbarTitle:d.datePickerToolbarTitle,isLandscape:o,className:p.root},u,{children:M.jsx(lHe,{variant:"h4",align:o?"left":"center",ownerState:m,className:p.title,children:h})}))}),DO=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>P({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]}),{})};function Ine(e,t){var n,r,i,o;const a=Rn(),s=jp(),l=gt({props:e,name:t}),u=I.useMemo(()=>{var d;return((d=l.localeText)==null?void 0:d.toolbarTitle)==null?l.localeText:P({},l.localeText,{datePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),c=(n=l.slots)!=null?n:DO(l.components);return P({},l,{localeText:u},F$({views:l.views,openTo:l.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:(r=l.disableFuture)!=null?r:!1,disablePast:(i=l.disablePast)!=null?i:!1,minDate:$o(a,l.minDate,s.minDate),maxDate:$o(a,l.maxDate,s.maxDate),slots:P({toolbar:uHe},c),slotProps:(o=l.slotProps)!=null?o:l.componentsProps})}const cHe=wi(M.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),dHe=wi(M.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),fHe=wi(M.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),Dne=wi(M.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),pHe=wi(M.jsxs(I.Fragment,{children:[M.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),M.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),hHe=wi(M.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),mHe=wi(M.jsxs(I.Fragment,{children:[M.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),M.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),gHe=wi(M.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function bHe(e){return At("MuiPickersArrowSwitcher",e)}_t("MuiPickersArrowSwitcher",["root","spacer","button"]);const yHe=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],OHe=["ownerState"],vHe=["ownerState"],EHe=Se("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),SHe=Se("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),dV=Se(Na,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>P({},e.hidden&&{visibility:"hidden"})),THe=e=>{const{classes:t}=e;return kt({root:["root"],spacer:["spacer"],button:["button"]},bHe,t)},Nne=I.forwardRef(function(t,n){var r,i,o,a;const l=ui().direction==="rtl",u=gt({props:t,name:"MuiPickersArrowSwitcher"}),{children:c,className:d,slots:p,slotProps:h,isNextDisabled:m,isNextHidden:b,onGoToNext:O,nextLabel:y,isPreviousDisabled:v,isPreviousHidden:S,onGoToPrevious:k,previousLabel:C}=u,w=Ge(u,yHe),E=u,$=THe(E),N={isDisabled:m,isHidden:b,goTo:O,label:y},R={isDisabled:v,isHidden:S,goTo:k,label:C},B=(r=p==null?void 0:p.previousIconButton)!=null?r:dV,U=kn({elementType:B,externalSlotProps:h==null?void 0:h.previousIconButton,additionalProps:{size:"medium",title:R.label,"aria-label":R.label,disabled:R.isDisabled,edge:"end",onClick:R.goTo},ownerState:P({},E,{hidden:R.isHidden}),className:$.button}),V=(i=p==null?void 0:p.nextIconButton)!=null?i:dV,z=kn({elementType:V,externalSlotProps:h==null?void 0:h.nextIconButton,additionalProps:{size:"medium",title:N.label,"aria-label":N.label,disabled:N.isDisabled,edge:"start",onClick:N.goTo},ownerState:P({},E,{hidden:N.isHidden}),className:$.button}),W=(o=p==null?void 0:p.leftArrowIcon)!=null?o:dHe,X=kn({elementType:W,externalSlotProps:h==null?void 0:h.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),q=Ge(X,OHe),Y=(a=p==null?void 0:p.rightArrowIcon)!=null?a:fHe,Z=kn({elementType:Y,externalSlotProps:h==null?void 0:h.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),j=Ge(Z,vHe);return M.jsxs(EHe,P({ref:n,className:Je($.root,d),ownerState:E},w,{children:[M.jsx(B,P({},U,{children:l?M.jsx(Y,P({},j)):M.jsx(W,P({},q))})),c?M.jsx(Lr,{variant:"subtitle1",component:"span",children:c}):M.jsx(SHe,{className:$.spacer,ownerState:E}),M.jsx(V,P({},z,{children:l?M.jsx(W,P({},q)):M.jsx(Y,P({},j))}))]}))}),d1=36,Dx=2,Nx=320,wHe=280,Px=334,Pne=232,ub=48,kHe=Se(Q0e)({[`& .${xb.container}`]:{outline:0},[`& .${xb.paper}`]:{outline:0,minWidth:Nx}}),xHe=Se(abe)({"&:first-of-type":{padding:0}});function CHe(e){var t,n;const{children:r,onDismiss:i,open:o,slots:a,slotProps:s}=e,l=(t=a==null?void 0:a.dialog)!=null?t:kHe,u=(n=a==null?void 0:a.mobileTransition)!=null?n:Eg;return M.jsx(l,P({open:o,onClose:i},s==null?void 0:s.dialog,{TransitionComponent:u,TransitionProps:s==null?void 0:s.mobileTransition,PaperComponent:a==null?void 0:a.mobilePaper,PaperProps:s==null?void 0:s.mobilePaper,children:M.jsx(xHe,{children:r})}))}function AHe(e){return At("MuiPickersPopper",e)}_t("MuiPickersPopper",["root","paper"]);function Ah(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const _He=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation()),t&&t(n)},uw=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?uw(t.shadowRoot):t:null},H$="@media (pointer: fine)",RHe="@media (prefers-reduced-motion: reduce)",bm=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),fV=bm&&bm[1]?parseInt(bm[1],10):null,pV=bm&&bm[2]?parseInt(bm[2],10):null,IHe=fV&&fV<10||pV&&pV<13||!1,Lne=()=>wg(RHe,{defaultMatches:!1})||IHe,DHe=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],NHe=e=>{const{classes:t}=e;return kt({root:["root"],paper:["paper"]},AHe,t)},PHe=Se(H1,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),LHe=Se(Da,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>P({outline:0,transformOrigin:"top center"},e.placement.includes("top")&&{transformOrigin:"bottom center"}));function MHe(e,t){return t.documentElement.clientWidth{if(!e)return;function l(){o.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),o.current=!1}},[e]);const a=jt(l=>{if(!o.current)return;const u=r.current;r.current=!1;const c=br(i.current);if(!i.current||"clientX"in l&&MHe(l,c))return;if(n.current){n.current=!1;return}let d;l.composedPath?d=l.composedPath().indexOf(i.current)>-1:d=!c.documentElement.contains(l.target)||i.current.contains(l.target),!d&&!u&&t(l)}),s=()=>{r.current=!0};return I.useEffect(()=>{if(e){const l=br(i.current),u=()=>{n.current=!0};return l.addEventListener("touchstart",a),l.addEventListener("touchmove",u),()=>{l.removeEventListener("touchstart",a),l.removeEventListener("touchmove",u)}}},[e,a]),I.useEffect(()=>{if(e){const l=br(i.current);return l.addEventListener("click",a),()=>{l.removeEventListener("click",a),r.current=!1}}},[e,a]),[i,s,s]}const FHe=I.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:i,children:o,paperSlotProps:a,paperClasses:s,onPaperClick:l,onPaperTouchStart:u}=e,c=Ge(e,DHe),d=P({},i,{placement:r}),p=kn({elementType:n,externalSlotProps:a,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:s,ownerState:d});return M.jsx(n,P({},c,p,{onClick:h=>{var m;l(h),(m=p.onClick)==null||m.call(p,h)},onTouchStart:h=>{var m;u(h),(m=p.onTouchStart)==null||m.call(p,h)},ownerState:d,children:o}))});function BHe(e){var t,n,r,i;const o=gt({props:e,name:"MuiPickersPopper"}),{anchorEl:a,children:s,containerRef:l=null,shouldRestoreFocus:u,onBlur:c,onDismiss:d,open:p,role:h,placement:m,slots:b,slotProps:O,reduceAnimations:y}=o;I.useEffect(()=>{function Z(j){p&&(j.key==="Escape"||j.key==="Esc")&&d()}return document.addEventListener("keydown",Z),()=>{document.removeEventListener("keydown",Z)}},[d,p]);const v=I.useRef(null);I.useEffect(()=>{h==="tooltip"||u&&!u()||(p?v.current=uw(document):v.current&&v.current instanceof HTMLElement&&setTimeout(()=>{v.current instanceof HTMLElement&&v.current.focus()}))},[p,h,u]);const[S,k,C]=$He(p,c??d),w=I.useRef(null),E=yn(w,l),$=yn(E,S),N=o,R=NHe(N),B=Lne(),U=y??B,V=Z=>{Z.key==="Escape"&&(Z.stopPropagation(),d())},z=((t=b==null?void 0:b.desktopTransition)!=null?t:U)?Eg:rT,W=(n=b==null?void 0:b.desktopTrapFocus)!=null?n:qQ,X=(r=b==null?void 0:b.desktopPaper)!=null?r:LHe,q=(i=b==null?void 0:b.popper)!=null?i:PHe,Y=kn({elementType:q,externalSlotProps:O==null?void 0:O.popper,additionalProps:{transition:!0,role:h,open:p,anchorEl:a,placement:m,onKeyDown:V},className:R.root,ownerState:o});return M.jsx(q,P({},Y,{children:({TransitionProps:Z,placement:j})=>M.jsx(W,P({open:p,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:h==="tooltip",isEnabled:()=>!0},O==null?void 0:O.desktopTrapFocus,{children:M.jsx(z,P({},Z,O==null?void 0:O.desktopTransition,{children:M.jsx(FHe,{PaperComponent:X,ownerState:N,popperPlacement:j,ref:$,onPaperClick:k,onPaperTouchStart:C,paperClasses:R.paper,paperSlotProps:O==null?void 0:O.desktopPaper,children:s})}))}))}))}function UHe(e){return At("MuiPickersToolbarText",e)}const hV=_t("MuiPickersToolbarText",["root","selected"]),jHe=["className","selected","value"],zHe=e=>{const{classes:t,selected:n}=e;return kt({root:["root",n&&"selected"]},UHe,t)},VHe=Se(Lr,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${hV.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${hV.selected}`]:{color:(e.vars||e).palette.text.primary}})),W$=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiPickersToolbarText"}),{className:i,value:o}=r,a=Ge(r,jHe),s=zHe(r);return M.jsx(VHe,P({ref:n,className:Je(i,s.root),component:"span"},a,{children:o}))}),HHe=["align","className","selected","typographyClassName","value","variant","width"],WHe=e=>{const{classes:t}=e;return kt({root:["root"]},Rne,t)},QHe=Se(Ff,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),Ka=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiPickersToolbarButton"}),{align:i,className:o,selected:a,typographyClassName:s,value:l,variant:u,width:c}=r,d=Ge(r,HHe),p=WHe(r);return M.jsx(QHe,P({variant:"text",ref:n,className:Je(o,p.root)},c?{sx:{width:c}}:{},d,{children:M.jsx(W$,{align:i,className:s,variant:u,value:l,selected:a})}))}),Q$=({timezone:e,value:t,defaultValue:n,onChange:r,valueManager:i})=>{var o,a;const s=Rn(),l=I.useRef(n),u=(o=t??l.current)!=null?o:i.emptyValue,c=I.useMemo(()=>i.getTimezone(s,u),[s,i,u]),d=jt(b=>c==null?b:i.setTimezone(s,c,b)),p=(a=e??c)!=null?a:"default",h=I.useMemo(()=>i.setTimezone(s,p,u),[i,s,p,u]),m=jt((b,...O)=>{const y=d(b);r==null||r(y,...O)});return{value:h,handleValueChange:m,timezone:p}},Gg=({name:e,timezone:t,value:n,defaultValue:r,onChange:i,valueManager:o})=>{const[a,s]=Xi({name:e,state:"value",controlled:n,default:r??o.emptyValue}),l=jt((u,...c)=>{s(u),i==null||i(u,...c)});return Q$({timezone:t,value:a,defaultValue:void 0,onChange:l,valueManager:o})};function Mne(e,t,n,r){const{value:i,onError:o}=e,a=Vl(),s=I.useRef(r),l=t({adapter:a,value:i,props:e});return I.useEffect(()=>{o&&!n(l,s.current)&&o(l,i),s.current=l},[n,o,s,l,i]),l}const YHe=e=>{const t=Rn(),n=Ui(),r=Vl(),o=ui().direction==="rtl",{valueManager:a,fieldValueManager:s,valueType:l,validator:u,internalProps:c,internalProps:{value:d,defaultValue:p,referenceDate:h,onChange:m,format:b,formatDensity:O="dense",selectedSections:y,onSelectedSectionsChange:v,shouldRespectLeadingZeros:S=!1,timezone:k}}=e,{timezone:C,value:w,handleValueChange:E}=Q$({timezone:k,value:d,defaultValue:p,onChange:m,valueManager:a}),$=I.useMemo(()=>YVe(t,C),[t,C]),N=I.useCallback((ce,ge=null)=>s.getSectionsFromValue(t,ce,ge,o,ue=>lV(t,C,n,b,ue,O,S,o)),[s,b,n,o,S,t,O,C]),R=I.useMemo(()=>s.getValueStrFromSections(N(a.emptyValue),o),[s,N,a.emptyValue,o]),[B,U]=I.useState(()=>{const ce=N(w),ge={sections:ce,value:w,referenceValue:a.emptyValue,tempValueStrAndroid:null},ue=BVe(ce),xe=a.getInitialReferenceValue({referenceDate:h,value:w,utils:t,props:c,granularity:ue,timezone:C});return P({},ge,{referenceValue:xe})}),[V,z]=Xi({controlled:y,default:null,name:"useField",state:"selectedSectionIndexes"}),W=ce=>{z(ce),v==null||v(ce),U(ge=>P({},ge,{selectedSectionQuery:null}))},X=I.useMemo(()=>{if(V==null)return null;if(V==="all")return{startIndex:0,endIndex:B.sections.length-1,shouldSelectBoundarySelectors:!0};if(typeof V=="number")return{startIndex:V,endIndex:V};if(typeof V=="string"){const ce=B.sections.findIndex(ge=>ge.type===V);return{startIndex:ce,endIndex:ce}}return V},[V,B.sections]),q=({value:ce,referenceValue:ge,sections:ue})=>{if(U(Ne=>P({},Ne,{sections:ue,value:ce,referenceValue:ge,tempValueStrAndroid:null})),a.areValuesEqual(t,B.value,ce))return;const xe={validationError:u({adapter:r,value:ce,props:P({},c,{value:ce,timezone:C})})};E(ce,xe)},Y=(ce,ge)=>{const ue=[...B.sections];return ue[ce]=P({},ue[ce],{value:ge,modified:!0}),kne(ue,o)},Z=()=>{q({value:a.emptyValue,referenceValue:B.referenceValue,sections:N(a.emptyValue)})},j=()=>{if(X==null)return;const ce=B.sections[X.startIndex],ge=s.getActiveDateManager(t,B,ce),xe=ge.getSections(B.sections).filter(Me=>Me.value!=="").length===(ce.value===""?0:1),Ne=Y(X.startIndex,""),Ve=xe?null:t.date(new Date("")),Ke=ge.getNewValuesFromNewActiveDate(Ve);(Ve!=null&&!t.isValid(Ve))!=(ge.date!=null&&!t.isValid(ge.date))?q(P({},Ke,{sections:Ne})):U(Me=>P({},Me,Ke,{sections:Ne,tempValueStrAndroid:null}))},se=ce=>{const ge=(Ne,Ve)=>{const Ke=t.parse(Ne,b);if(Ke==null||!t.isValid(Ke))return null;const Me=lV(t,C,n,b,Ke,O,S,o);return cV(t,C,Ke,Me,Ve,!1)},ue=s.parseValueStr(ce,B.referenceValue,ge),xe=s.updateReferenceValue(t,ue,B.referenceValue);q({value:ue,referenceValue:xe,sections:N(ue,B.sections)})},ve=({activeSection:ce,newSectionValue:ge,shouldGoToNextSection:ue})=>{ue&&X&&X.startIndexP({},ye,Me,{sections:Ne,tempValueStrAndroid:null}))},G=ce=>U(ge=>P({},ge,{tempValueStrAndroid:ce}));return I.useEffect(()=>{const ce=N(B.value);U(ge=>P({},ge,{sections:ce}))},[b,t.locale]),I.useEffect(()=>{let ce=!1;a.areValuesEqual(t,B.value,w)?ce=a.getTimezone(t,B.value)!==a.getTimezone(t,w):ce=!0,ce&&U(ge=>P({},ge,{value:w,referenceValue:s.updateReferenceValue(t,w,ge.referenceValue),sections:N(w)}))},[w]),{state:B,selectedSectionIndexes:X,setSelectedSections:W,clearValue:Z,clearActiveSection:j,updateSectionValue:ve,updateValueFromValueStr:se,setTempAndroidValueStr:G,sectionsValueBoundaries:$,placeholder:R,timezone:C}},GHe=5e3,mh=e=>e.saveQuery!=null,qHe=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,setTempAndroidValueStr:r,timezone:i})=>{const o=Rn(),[a,s]=I.useState(null),l=jt(()=>s(null));I.useEffect(()=>{var h;a!=null&&((h=e[a.sectionIndex])==null?void 0:h.type)!==a.sectionType&&l()},[e,a,l]),I.useEffect(()=>{if(a!=null){const h=setTimeout(()=>l(),GHe);return()=>{window.clearTimeout(h)}}return()=>{}},[a,l]);const u=({keyPressed:h,sectionIndex:m},b,O)=>{const y=h.toLowerCase(),v=e[m];if(a!=null&&(!O||O(a.value))&&a.sectionIndex===m){const k=`${a.value}${y}`,C=b(k,v);if(!mh(C))return s({sectionIndex:m,value:k,sectionType:v.type}),C}const S=b(y,v);return mh(S)&&!S.saveQuery?(l(),null):(s({sectionIndex:m,value:y,sectionType:v.type}),mh(S)?null:S)},c=h=>{const m=(y,v,S)=>{const k=v.filter(C=>C.toLowerCase().startsWith(S));return k.length===0?{saveQuery:!1}:{sectionValue:k[0],shouldGoToNextSection:k.length===1}},b=(y,v,S,k)=>{const C=w=>Sne(o,i,v.type,w);if(v.contentType==="letter")return m(v.format,C(v.format),y);if(S&&k!=null&&Ene(o,S).contentType==="letter"){const w=C(S),E=m(S,w,y);return mh(E)?{saveQuery:!1}:P({},E,{sectionValue:k(E.sectionValue,w)})}return{saveQuery:!1}};return u(h,(y,v)=>{switch(v.type){case"month":{const S=k=>sV(o,k,o.formats.month,v.format);return b(y,v,o.formats.month,S)}case"weekDay":{const S=(k,C)=>C.indexOf(k).toString();return b(y,v,o.formats.weekday,S)}case"meridiem":return b(y,v);default:return{saveQuery:!1}}})},d=h=>{const m=(O,y)=>{const v=+`${O}`,S=n[y.type]({currentDate:null,format:y.format,contentType:y.contentType});if(v>S.maximum)return{saveQuery:!1};if(vS.maximum||O.length===S.maximum.toString().length;return{sectionValue:wne(o,i,v,S,y),shouldGoToNextSection:k}};return u(h,(O,y)=>{if(y.contentType==="digit"||y.contentType==="digit-with-letter")return m(O,y);if(y.type==="month"){const v=Cne(o,i,"digit","month","MM"),S=m(O,{type:y.type,format:"MM",hasLeadingZerosInFormat:v,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(mh(S))return S;const k=sV(o,S.sectionValue,"MM",y.format);return P({},S,{sectionValue:k})}if(y.type==="weekDay"){const v=m(O,y);if(mh(v))return v;const S=Ix(o,i,y.format)[Number(v.sectionValue)-1];return P({},v,{sectionValue:S})}return{saveQuery:!1}},O=>!Number.isNaN(Number(O)))};return{applyCharacterEditing:jt(h=>{const m=e[h.sectionIndex],O=!Number.isNaN(Number(h.keyPressed))?d(h):c(h);O==null?r(null):t({activeSection:m,newSectionValue:O.sectionValue,shouldGoToNextSection:O.shouldGoToNextSection})}),resetCharacterQuery:l}},ZHe=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],Y$=e=>{const t=Rn(),{state:n,selectedSectionIndexes:r,setSelectedSections:i,clearValue:o,clearActiveSection:a,updateSectionValue:s,updateValueFromValueStr:l,setTempAndroidValueStr:u,sectionsValueBoundaries:c,placeholder:d,timezone:p}=YHe(e),{inputRef:h,internalProps:m,internalProps:{readOnly:b=!1,unstableFieldRef:O,minutesStep:y},forwardedProps:{onClick:v,onKeyDown:S,onFocus:k,onBlur:C,onMouseUp:w,onPaste:E,error:$,clearable:N,onClear:R,disabled:B},fieldValueManager:U,valueManager:V,validator:z}=e,W=Ge(e.forwardedProps,ZHe),{applyCharacterEditing:X,resetCharacterQuery:q}=qHe({sections:n.sections,updateSectionValue:s,sectionsValueBoundaries:c,setTempAndroidValueStr:u,timezone:p}),Y=I.useRef(null),Z=yn(h,Y),j=I.useRef(void 0),ve=ui().direction==="rtl",G=I.useMemo(()=>ZVe(n.sections,ve),[n.sections,ve]),ce=()=>{var ee;if(b){i(null);return}const J=(ee=Y.current.selectionStart)!=null?ee:0;let Re;J<=n.sections[0].startInInput||J>=n.sections[n.sections.length-1].endInInput?Re=1:Re=n.sections.findIndex(De=>De.startInInput-De.startSeparator.length>J);const Le=Re===-1?n.sections.length-1:Re-1;i(Le)},ge=jt((ee,...J)=>{ee.isDefaultPrevented()||(v==null||v(ee,...J),ce())}),ue=jt(ee=>{w==null||w(ee),ee.preventDefault()}),xe=jt((...ee)=>{k==null||k(...ee);const J=Y.current;window.clearTimeout(j.current),j.current=setTimeout(()=>{!J||J!==Y.current||r!=null||b||(J.value.length&&Number(J.selectionEnd)-Number(J.selectionStart)===J.value.length?i("all"):ce())})}),Ne=jt((...ee)=>{C==null||C(...ee),i(null)}),Ve=jt(ee=>{if(E==null||E(ee),b){ee.preventDefault();return}const J=ee.clipboardData.getData("text");if(r&&r.startIndex===r.endIndex){const Re=n.sections[r.startIndex],Le=/^[a-zA-Z]+$/.test(J),De=/^[0-9]+$/.test(J),ie=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(J);if(Re.contentType==="letter"&&Le||Re.contentType==="digit"&&De||Re.contentType==="digit-with-letter"&&ie){q(),s({activeSection:Re,newSectionValue:J,shouldGoToNextSection:!0}),ee.preventDefault();return}if(Le||De){ee.preventDefault();return}}ee.preventDefault(),q(),l(J)}),Ke=jt(ee=>{if(b)return;const J=ee.target.value;if(J===""){q(),o();return}const Re=ee.nativeEvent.data,Le=Re&&Re.length>1,De=Le?Re:J,ie=Xh(De);if(r==null||Le){l(Le?Re:ie);return}let fe;if(r.startIndex===0&&r.endIndex===n.sections.length-1&&ie.length===1)fe=ie;else{const de=Xh(U.getValueStrFromSections(n.sections,ve));let Oe=-1,Te=-1;for(let et=0;etrt.end)return;const xt=ie.length-de.length+rt.end-Xh(rt.endSeparator||"").length;fe=ie.slice(rt.start+Xh(rt.startSeparator||"").length,xt)}if(fe.length===0){qVe()?u(De):(q(),a());return}X({keyPressed:fe,sectionIndex:r.startIndex})}),Me=jt(ee=>{switch(S==null||S(ee),!0){case(ee.key==="a"&&(ee.ctrlKey||ee.metaKey)):{ee.preventDefault(),i("all");break}case ee.key==="ArrowRight":{if(ee.preventDefault(),r==null)i(G.startIndex);else if(r.startIndex!==r.endIndex)i(r.endIndex);else{const J=G.neighbors[r.startIndex].rightIndex;J!==null&&i(J)}break}case ee.key==="ArrowLeft":{if(ee.preventDefault(),r==null)i(G.endIndex);else if(r.startIndex!==r.endIndex)i(r.startIndex);else{const J=G.neighbors[r.startIndex].leftIndex;J!==null&&i(J)}break}case ee.key==="Delete":{if(ee.preventDefault(),b)break;r==null||r.startIndex===0&&r.endIndex===n.sections.length-1?o():a(),q();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(ee.key):{if(ee.preventDefault(),b||r==null)break;const J=n.sections[r.startIndex],Re=U.getActiveDateManager(t,n,J),Le=zVe(t,p,J,ee.key,c,Re.date,{minutesStep:y});s({activeSection:J,newSectionValue:Le,shouldGoToNextSection:!1});break}}});Kr(()=>{if(!Y.current)return;if(r==null){Y.current.scrollLeft&&(Y.current.scrollLeft=0);return}const ee=n.sections[r.startIndex],J=n.sections[r.endIndex];let Re=ee.startInInput,Le=J.endInInput;if(r.shouldSelectBoundarySelectors&&(Re-=ee.startSeparator.length,Le+=J.endSeparator.length),Re!==Y.current.selectionStart||Le!==Y.current.selectionEnd){const De=Y.current.scrollTop;Y.current===uw(document)&&Y.current.setSelectionRange(Re,Le),Y.current.scrollTop=De}});const Ye=Mne(P({},m,{value:n.value,timezone:p}),z,V.isSameError,V.defaultErrorState),ye=I.useMemo(()=>$!==void 0?$:V.hasError(Ye),[V,Ye,$]);I.useEffect(()=>{!ye&&!r&&q()},[n.referenceValue,r,ye]),I.useEffect(()=>(Y.current&&Y.current===document.activeElement&&i("all"),()=>window.clearTimeout(j.current)),[]),I.useEffect(()=>{n.tempValueStrAndroid!=null&&r!=null&&(q(),a())},[n.tempValueStrAndroid]);const ze=I.useMemo(()=>{var ee;return(ee=n.tempValueStrAndroid)!=null?ee:U.getValueStrFromSections(n.sections,ve)},[n.sections,U,n.tempValueStrAndroid,ve]),$e=I.useMemo(()=>r==null||n.sections[r.startIndex].contentType==="letter"?"text":"numeric",[r,n.sections]),We=Y.current&&Y.current===uw(document),dt=V.areValuesEqual(t,n.value,V.emptyValue),Be=!We&&dt;I.useImperativeHandle(O,()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var ee,J;const Re=(ee=Y.current.selectionStart)!=null?ee:0,Le=(J=Y.current.selectionEnd)!=null?J:0;if(Re===0&&Le===0)return null;const De=Re<=n.sections[0].startInInput?1:n.sections.findIndex(ie=>ie.startInInput-ie.startSeparator.length>Re);return De===-1?n.sections.length-1:De-1},setSelectedSections:ee=>i(ee)}));const re=jt((ee,...J)=>{var Re;ee.preventDefault(),R==null||R(ee,...J),o(),Y==null||(Re=Y.current)==null||Re.focus(),i(0)});return P({placeholder:d,autoComplete:"off",disabled:!!B},W,{value:Be?"":ze,inputMode:$e,readOnly:b,onClick:ge,onFocus:xe,onBlur:Ne,onPaste:Ve,onChange:Ke,onKeyDown:Me,onMouseUp:ue,onClear:re,error:ye,ref:Z,clearable:!!(N&&!dt&&!b&&!B)})},XHe=({open:e,onOpen:t,onClose:n})=>{const r=I.useRef(typeof e=="boolean").current,[i,o]=I.useState(!1);I.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");o(e)}},[r,e]);const a=I.useCallback(s=>{r||o(s),s&&t&&t(),!s&&n&&n()},[r,t,n]);return{isOpen:i,setIsOpen:a}},KHe=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:i}=e,o=!i&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?o&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?o?!0:n(r.lastPublishedValue):!1},JHe=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:i,closeOnSelect:o}=e,a=!i&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&o?a?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},eWe=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},tWe=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:i})=>{const{onAccept:o,onChange:a,value:s,defaultValue:l,closeOnSelect:u=r==="desktop",selectedSections:c,onSelectedSectionsChange:d,timezone:p}=e,{current:h}=I.useRef(l),{current:m}=I.useRef(s!==void 0),b=Rn(),O=Vl(),[y,v]=Xi({controlled:c,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:S,setIsOpen:k}=XHe(e),[C,w]=I.useState(()=>{let xe;return s!==void 0?xe=s:h!==void 0?xe=h:xe=t.emptyValue,{draft:xe,lastPublishedValue:xe,lastCommittedValue:xe,lastControlledValue:s,hasBeenModifiedSinceMount:!1}}),{timezone:E,handleValueChange:$}=Q$({timezone:p,value:s,defaultValue:h,onChange:a,valueManager:t});Mne(P({},e,{value:C.draft,timezone:E}),i,t.isSameError,t.defaultErrorState);const N=jt(xe=>{const Ne={action:xe,dateState:C,hasChanged:Ye=>!t.areValuesEqual(b,xe.value,Ye),isControlled:m,closeOnSelect:u},Ve=KHe(Ne),Ke=JHe(Ne),Me=eWe(Ne);if(w(Ye=>P({},Ye,{draft:xe.value,lastPublishedValue:Ve?xe.value:Ye.lastPublishedValue,lastCommittedValue:Ke?xe.value:Ye.lastCommittedValue,hasBeenModifiedSinceMount:!0})),Ve){const ye={validationError:xe.name==="setValueFromField"?xe.context.validationError:i({adapter:O,value:xe.value,props:P({},e,{value:xe.value,timezone:E})})};xe.name==="setValueFromShortcut"&&xe.shortcut!=null&&(ye.shortcut=xe.shortcut),$(xe.value,ye)}Ke&&o&&o(xe.value),Me&&k(!1)});if(s!==void 0&&(C.lastControlledValue===void 0||!t.areValuesEqual(b,C.lastControlledValue,s))){const xe=t.areValuesEqual(b,C.draft,s);w(Ne=>P({},Ne,{lastControlledValue:s},xe?{}:{lastCommittedValue:s,lastPublishedValue:s,draft:s,hasBeenModifiedSinceMount:!0}))}const R=jt(()=>{N({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),B=jt(()=>{N({value:C.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),U=jt(()=>{N({value:C.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),V=jt(()=>{N({value:C.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),z=jt(()=>{N({value:t.getTodayValue(b,E,n),name:"setValueFromAction",pickerAction:"today"})}),W=jt(()=>k(!0)),X=jt(()=>k(!1)),q=jt((xe,Ne="partial")=>N({name:"setValueFromView",value:xe,selectionState:Ne})),Y=jt((xe,Ne,Ve)=>N({name:"setValueFromShortcut",value:xe,changeImportance:Ne??"accept",shortcut:Ve})),Z=jt((xe,Ne)=>N({name:"setValueFromField",value:xe,context:Ne})),j=jt(xe=>{v(xe),d==null||d(xe)}),se={onClear:R,onAccept:B,onDismiss:U,onCancel:V,onSetToday:z,onOpen:W,onClose:X},ve={value:C.draft,onChange:Z,selectedSections:y,onSelectedSectionsChange:j},G=I.useMemo(()=>t.cleanValue(b,C.draft),[b,t,C.draft]),ce={value:G,onChange:q,onClose:X,open:S,onSelectedSectionsChange:j},ue=P({},se,{value:G,onChange:q,onSelectShortcut:Y,isValid:xe=>{const Ne=i({adapter:O,value:xe,props:P({},e,{value:xe,timezone:E})});return!t.hasError(Ne)}});return{open:S,fieldProps:ve,viewProps:ce,layoutProps:ue,actions:se}};function NO({onChange:e,onViewChange:t,openTo:n,view:r,views:i,autoFocus:o,focusedView:a,onFocusedViewChange:s}){var l,u;const c=I.useRef(n),d=I.useRef(i),p=I.useRef(i.includes(n)?n:i[0]),[h,m]=Xi({name:"useViews",state:"view",controlled:r,default:p.current}),b=I.useRef(o?h:null),[O,y]=Xi({name:"useViews",state:"focusedView",controlled:a,default:b.current});I.useEffect(()=>{(c.current&&c.current!==n||d.current&&d.current.some(N=>!i.includes(N)))&&(m(i.includes(n)?n:i[0]),d.current=i,c.current=n)},[n,m,h,i]);const v=i.indexOf(h),S=(l=i[v-1])!=null?l:null,k=(u=i[v+1])!=null?u:null,C=jt((N,R)=>{y(R?N:B=>N===B?null:B),s==null||s(N,R)}),w=jt(N=>{C(N,!0),N!==h&&(m(N),t&&t(N))}),E=jt(()=>{k&&w(k)}),$=jt((N,R,B)=>{const U=R==="finish",V=B?i.indexOf(B){const{onChange:o,open:a,onSelectedSectionsChange:s,onClose:l}=t,{views:u,openTo:c,onViewChange:d,disableOpenPicker:p,viewRenderers:h,timezone:m}=e,b=Ge(e,nWe),{view:O,setView:y,defaultView:v,focusedView:S,setFocusedView:k,setValueAndGoToNextView:C}=NO({view:void 0,views:u,openTo:c,onChange:o,onViewChange:d,autoFocus:i}),{hasUIView:w,viewModeLookup:E}=I.useMemo(()=>u.reduce((z,W)=>{let X;return p?X="field":h[W]!=null?X="UI":X="field",z.viewModeLookup[W]=X,X==="UI"&&(z.hasUIView=!0),z},{hasUIView:!1,viewModeLookup:{}}),[p,h,u]),$=I.useMemo(()=>u.reduce((z,W)=>h[W]!=null&&dg(W)?z+1:z,0),[h,u]),N=E[O],R=jt(()=>N==="UI"),[B,U]=I.useState(N==="UI"?O:null);return B!==O&&E[O]==="UI"&&U(O),Kr(()=>{N==="field"&&a&&(l(),setTimeout(()=>{r==null||r.current.focus(),s(O)}))},[O]),Kr(()=>{if(!a)return;let z=O;N==="field"&&B!=null&&(z=B),z!==v&&E[z]==="UI"&&E[v]==="UI"&&(z=v),z!==O&&y(z),k(z,!0)},[a]),{hasUIView:w,shouldRestoreFocus:R,layoutProps:{views:u,view:B,onViewChange:y},renderCurrentView:()=>{if(B==null)return null;const z=h[B];return z==null?null:z(P({},b,n,t,{views:u,timezone:m,onChange:C,view:B,onViewChange:y,focusedView:S,onFocusedViewChange:k,showViewSwitcher:$>1,timeViewsCount:$}))}}};function mV(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const iWe=(e,t)=>{const[n,r]=I.useState(mV);return Kr(()=>{const o=()=>{r(mV())};return window.addEventListener("orientationchange",o),()=>{window.removeEventListener("orientationchange",o)}},[]),Ah(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},oWe=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:i}=e,o=iWe(n.views,i);return{layoutProps:P({},n,t,{isLandscape:o,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}},aWe=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(` +`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}};aWe(["The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const $ne=({props:e,valueManager:t,valueType:n,wrapperVariant:r,inputRef:i,additionalViewProps:o,validator:a,autoFocusView:s})=>{const l=tWe({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:a}),u=rWe({props:e,inputRef:i,additionalViewProps:o,autoFocusView:s,propsFromPickerValue:l.viewProps}),c=oWe({props:e,wrapperVariant:r,propsFromPickerValue:l.layoutProps,propsFromPickerViews:u.layoutProps});return{open:l.open,actions:l.actions,fieldProps:l.fieldProps,renderCurrentView:u.renderCurrentView,hasUIView:u.hasUIView,shouldRestoreFocus:u.shouldRestoreFocus,layoutProps:c.layoutProps}};function Fne(e){return At("MuiPickersLayout",e)}const v2=_t("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","shortcuts"]),sWe=["onAccept","onClear","onCancel","onSetToday","actions"];function lWe(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:i,actions:o}=e,a=Ge(e,sWe),s=Ui();if(o==null||o.length===0)return null;const l=o==null?void 0:o.map(u=>{switch(u){case"clear":return M.jsx(Ff,{onClick:n,children:s.clearButtonLabel},u);case"cancel":return M.jsx(Ff,{onClick:r,children:s.cancelButtonLabel},u);case"accept":return M.jsx(Ff,{onClick:t,children:s.okButtonLabel},u);case"today":return M.jsx(Ff,{onClick:i,children:s.todayButtonLabel},u);default:return null}});return M.jsx(K0e,P({},a,{children:l}))}const uWe=["items","changeImportance","isLandscape","onChange","isValid"],cWe=["getValue"];function dWe(e){const{items:t,changeImportance:n,onChange:r,isValid:i}=e,o=Ge(e,uWe);if(t==null||t.length===0)return null;const a=t.map(s=>{let{getValue:l}=s,u=Ge(s,cWe);const c=l({isValid:i});return{label:u.label,onClick:()=>{r(c,n,u)},disabled:!i(c)}});return M.jsx(xY,P({dense:!0,sx:[{maxHeight:Px,maxWidth:200,overflow:"auto"},...Array.isArray(o.sx)?o.sx:[o.sx]]},o,{children:a.map(s=>M.jsx(Eh,{children:M.jsx(LN,P({},s))},s.label))}))}function fWe(e){return e.view!==null}const pWe=e=>{const{classes:t,isLandscape:n}=e;return kt({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},Fne,t)},hWe=e=>{var t,n;const{wrapperVariant:r,onAccept:i,onClear:o,onCancel:a,onSetToday:s,view:l,views:u,onViewChange:c,value:d,onChange:p,onSelectShortcut:h,isValid:m,isLandscape:b,disabled:O,readOnly:y,children:v,components:S,componentsProps:k,slots:C,slotProps:w}=e,E=C??DO(S),$=w??k,N=pWe(e),R=(t=E==null?void 0:E.actionBar)!=null?t:lWe,B=kn({elementType:R,externalSlotProps:$==null?void 0:$.actionBar,additionalProps:{onAccept:i,onClear:o,onCancel:a,onSetToday:s,actions:r==="desktop"?[]:["cancel","accept"],className:N.actionBar},ownerState:P({},e,{wrapperVariant:r})}),U=M.jsx(R,P({},B)),V=E==null?void 0:E.toolbar,z=kn({elementType:V,externalSlotProps:$==null?void 0:$.toolbar,additionalProps:{isLandscape:b,onChange:p,value:d,view:l,onViewChange:c,views:u,disabled:O,readOnly:y,className:N.toolbar},ownerState:P({},e,{wrapperVariant:r})}),W=fWe(z)&&V?M.jsx(V,P({},z)):null,X=v,q=E==null?void 0:E.tabs,Y=l&&q?M.jsx(q,P({view:l,onViewChange:c},$==null?void 0:$.tabs)):null,Z=(n=E==null?void 0:E.shortcuts)!=null?n:dWe,j=kn({elementType:Z,externalSlotProps:$==null?void 0:$.shortcuts,additionalProps:{isValid:m,isLandscape:b,onChange:h,className:N.shortcuts},ownerState:{isValid:m,isLandscape:b,onChange:h,className:N.shortcuts,wrapperVariant:r}}),se=l&&Z?M.jsx(Z,P({},j)):null;return{toolbar:W,content:X,tabs:Y,actionBar:U,shortcuts:se}},mWe=e=>{const{isLandscape:t,classes:n}=e;return kt({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},Fne,n)},Bne=Se("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${v2.toolbar}`]:t.isLandscape?{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${v2.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"},[`& .${v2.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}}));Bne.propTypes={as:Q.elementType,ownerState:Q.shape({isLandscape:Q.bool.isRequired}).isRequired,sx:Q.oneOfType([Q.arrayOf(Q.oneOfType([Q.func,Q.object,Q.bool])),Q.func,Q.object])};const gWe=Se("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),Une=function(t){const n=gt({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:i,tabs:o,actionBar:a,shortcuts:s}=hWe(n),{sx:l,className:u,isLandscape:c,ref:d,wrapperVariant:p}=n,h=n,m=mWe(h);return M.jsxs(Bne,{ref:d,sx:l,className:Je(u,m.root),ownerState:h,children:[c?s:r,c?r:s,M.jsx(gWe,{className:m.contentWrapper,children:p==="desktop"?M.jsxs(I.Fragment,{children:[i,o]}):M.jsxs(I.Fragment,{children:[o,i]})}),a]})};function bWe(e,{disableFuture:t,maxDate:n,timezone:r}){const i=Rn();return I.useMemo(()=>{const o=i.dateWithTimezone(void 0,r),a=i.startOfMonth(t&&i.isBefore(o,n)?o:n);return!i.isAfter(a,e)},[t,n,e,i,r])}function yWe(e,{disablePast:t,minDate:n,timezone:r}){const i=Rn();return I.useMemo(()=>{const o=i.dateWithTimezone(void 0,r),a=i.startOfMonth(t&&i.isAfter(o,n)?o:n);return!i.isBefore(a,e)},[t,n,e,i,r])}function Lx(e,t,n,r){const i=Rn(),o=$Ve(e,i),a=I.useCallback(s=>{const l=e==null?null:FVe(e,s,!!t,i);n(l,r??"partial")},[t,e,n,r,i]);return{meridiemMode:o,handleMeridiemChange:a}}const GI=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],qI=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],jne=["minDateTime","maxDateTime"],OWe=[...GI,...qI,...jne],qg=e=>OWe.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),vWe=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],G$=(e,t)=>{const n=P({},e),r={},i=o=>{n.hasOwnProperty(o)&&(r[o]=n[o],delete n[o])};return vWe.forEach(i),t==="date"?GI.forEach(i):t==="time"?qI.forEach(i):t==="date-time"&&(GI.forEach(i),qI.forEach(i),jne.forEach(i)),{forwardedProps:n,internalProps:r}},zp=({props:e,value:t,adapter:n})=>{if(t===null)return null;const{shouldDisableDate:r,shouldDisableMonth:i,shouldDisableYear:o,disablePast:a,disableFuture:s,timezone:l}=e,u=n.utils.dateWithTimezone(void 0,l),c=$o(n.utils,e.minDate,n.defaultDates.minDate),d=$o(n.utils,e.maxDate,n.defaultDates.maxDate);switch(!0){case!n.utils.isValid(t):return"invalidDate";case!!(r&&r(t)):return"shouldDisableDate";case!!(i&&i(t)):return"shouldDisableMonth";case!!(o&&o(t)):return"shouldDisableYear";case!!(s&&n.utils.isAfterDay(t,u)):return"disableFuture";case!!(a&&n.utils.isBeforeDay(t,u)):return"disablePast";case!!(c&&n.utils.isBeforeDay(t,c)):return"minDate";case!!(d&&n.utils.isAfterDay(t,d)):return"maxDate";default:return null}},PO=({adapter:e,value:t,props:n})=>{if(t===null)return null;const{minTime:r,maxTime:i,minutesStep:o,shouldDisableClock:a,shouldDisableTime:s,disableIgnoringDatePartForTimeValidation:l=!1,disablePast:u,disableFuture:c,timezone:d}=n,p=e.utils.dateWithTimezone(void 0,d),h=IO(l,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(r&&h(r,t)):return"minTime";case!!(i&&h(t,i)):return"maxTime";case!!(c&&e.utils.isAfter(t,p)):return"disableFuture";case!!(u&&e.utils.isBefore(t,p)):return"disablePast";case!!(s&&s(t,"hours")):return"shouldDisableTime-hours";case!!(s&&s(t,"minutes")):return"shouldDisableTime-minutes";case!!(s&&s(t,"seconds")):return"shouldDisableTime-seconds";case!!(a&&a(e.utils.getHours(t),"hours")):return"shouldDisableClock-hours";case!!(a&&a(e.utils.getMinutes(t),"minutes")):return"shouldDisableClock-minutes";case!!(a&&a(e.utils.getSeconds(t),"seconds")):return"shouldDisableClock-seconds";case!!(o&&e.utils.getMinutes(t)%o!==0):return"minutesStep";default:return null}},Mx=({props:e,value:t,adapter:n})=>{const r=zp({adapter:n,value:t,props:e});return r!==null?r:PO({adapter:n,value:t,props:e})};function EWe(e){return At("MuiPickersDay",e)}const Ef=_t("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),SWe=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],TWe=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:i,disabled:o,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:s,classes:l}=e,u=a&&!s;return kt({root:["root",t&&!u&&"selected",o&&"disabled",!n&&"dayWithMargin",!r&&i&&"today",a&&s&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},EWe,l)},zne=({theme:e,ownerState:t})=>P({},e.typography.caption,{width:d1,height:d1,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:cn(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Ef.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Ef.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Ef.disabled}:not(.${Ef.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ef.disabled}&.${Ef.selected}`]:{opacity:.6}},!t.disableMargin&&{margin:`0 ${Dx}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:(e.vars||e).palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${Ef.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}),Vne=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},wWe=Se(hs,{name:"MuiPickersDay",slot:"Root",overridesResolver:Vne})(zne),kWe=Se("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:Vne})(({theme:e,ownerState:t})=>P({},zne({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),V0=()=>{},xWe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiPickersDay"}),{autoFocus:i=!1,className:o,day:a,disabled:s=!1,disableHighlightToday:l=!1,disableMargin:u=!1,isAnimating:c,onClick:d,onDaySelect:p,onFocus:h=V0,onBlur:m=V0,onKeyDown:b=V0,onMouseDown:O=V0,onMouseEnter:y=V0,outsideCurrentMonth:v,selected:S=!1,showDaysOutsideCurrentMonth:k=!1,children:C,today:w=!1}=r,E=Ge(r,SWe),$=P({},r,{autoFocus:i,disabled:s,disableHighlightToday:l,disableMargin:u,selected:S,showDaysOutsideCurrentMonth:k,today:w}),N=TWe($),R=Rn(),B=I.useRef(null),U=yn(B,n);Kr(()=>{i&&!s&&!c&&!v&&B.current.focus()},[i,s,c,v]);const V=W=>{O(W),v&&W.preventDefault()},z=W=>{s||p(a),v&&W.currentTarget.focus(),d&&d(W)};return v&&!k?M.jsx(kWe,{className:Je(N.root,N.hiddenDaySpacingFiller,o),ownerState:$,role:E.role}):M.jsx(wWe,P({className:Je(N.root,o),ref:U,centerRipple:!0,disabled:s,tabIndex:S?0:-1,onKeyDown:W=>b(W,a),onFocus:W=>h(W,a),onBlur:W=>m(W,a),onMouseEnter:W=>y(W,a),onClick:z,onMouseDown:V},E,{ownerState:$,children:C||R.format(a,"dayOfMonth")}))}),CWe=I.memo(xWe),AWe=e=>At("MuiPickersSlideTransition",e),xs=_t("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),_We=["children","className","reduceAnimations","slideDirection","transKey","classes"],RWe=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return kt(r,AWe,t)},IWe=Se(xN,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${xs["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${xs["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${xs.slideEnterActive}`]:t.slideEnterActive},{[`.${xs.slideExit}`]:t.slideExit},{[`.${xs["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${xs["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${xs["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${xs["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${xs.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${xs.slideExit}`]:{transform:"translate(0%)"},[`& .${xs["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${xs["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function DWe(e){const t=gt({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:i,transKey:o}=t,a=Ge(t,_We),s=RWe(t),l=ui();if(i)return M.jsx("div",{className:Je(s.root,r),children:n});const u={exit:s.exit,enterActive:s.enterActive,enter:s.enter,exitActive:s.exitActive};return M.jsx(IWe,{className:Je(s.root,r),childFactory:c=>I.cloneElement(c,{classNames:u}),role:"presentation",children:M.jsx(tfe,P({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:u},a,{children:n}),o)})}const Hne=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:o,disablePast:a,timezone:s})=>{const l=Vl();return I.useCallback(u=>zp({adapter:l,value:u,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:o,disablePast:a,timezone:s}})!==null,[l,e,t,n,r,i,o,a,s])},NWe=e=>At("MuiDayCalendar",e);_t("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const PWe=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],LWe=["ownerState"],MWe=e=>{const{classes:t}=e;return kt({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},NWe,t)},Wne=(d1+Dx*2)*6,$We=Se("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),FWe=Se("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),BWe=Se(Lr,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),UWe=Se(Lr,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),jWe=Se(Lr,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>P({},e.typography.caption,{width:d1,height:d1,padding:0,margin:`0 ${Dx}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),zWe=Se("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:Wne}),VWe=Se(DWe,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:Wne}),HWe=Se("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),WWe=Se("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${Dx}px 0`,display:"flex",justifyContent:"center"});function QWe(e){var t,n,r;let{parentProps:i,day:o,focusableDay:a,selectedDays:s,isDateDisabled:l,currentMonthNumber:u,isViewFocused:c}=e,d=Ge(e,PWe);const{disabled:p,disableHighlightToday:h,isMonthSwitchingAnimating:m,showDaysOutsideCurrentMonth:b,components:O,componentsProps:y,slots:v,slotProps:S,timezone:k}=i,C=Rn(),w=cf(k),E=a!==null&&C.isSameDay(o,a),$=s.some(q=>C.isSameDay(q,o)),N=C.isSameDay(o,w),R=(t=(n=v==null?void 0:v.day)!=null?n:O==null?void 0:O.Day)!=null?t:CWe,B=kn({elementType:R,externalSlotProps:(r=S==null?void 0:S.day)!=null?r:y==null?void 0:y.day,additionalProps:P({disableHighlightToday:h,showDaysOutsideCurrentMonth:b,role:"gridcell",isAnimating:m,"data-timestamp":C.toJsDate(o).valueOf()},d),ownerState:P({},i,{day:o,selected:$})}),U=Ge(B,LWe),V=I.useMemo(()=>p||l(o),[p,l,o]),z=I.useMemo(()=>C.getMonth(o)!==u,[C,o,u]),W=I.useMemo(()=>{const q=C.startOfMonth(C.setMonth(o,u));return b?C.isSameDay(o,C.startOfWeek(q)):C.isSameDay(o,q)},[u,o,b,C]),X=I.useMemo(()=>{const q=C.endOfMonth(C.setMonth(o,u));return b?C.isSameDay(o,C.endOfWeek(q)):C.isSameDay(o,q)},[u,o,b,C]);return M.jsx(R,P({},U,{day:o,disabled:V,autoFocus:c&&E,today:N,outsideCurrentMonth:z,isFirstVisibleCell:W,isLastVisibleCell:X,selected:$,tabIndex:E?0:-1,"aria-selected":$,"aria-current":N?"date":void 0}))}function YWe(e){const t=gt({props:e,name:"MuiDayCalendar"}),{onFocusedDayChange:n,className:r,currentMonth:i,selectedDays:o,focusedDay:a,loading:s,onSelectedDaysChange:l,onMonthSwitchingAnimationEnd:u,readOnly:c,reduceAnimations:d,renderLoading:p=()=>M.jsx("span",{children:"..."}),slideDirection:h,TransitionProps:m,disablePast:b,disableFuture:O,minDate:y,maxDate:v,shouldDisableDate:S,shouldDisableMonth:k,shouldDisableYear:C,dayOfWeekFormatter:w,hasFocus:E,onFocusedViewChange:$,gridLabelId:N,displayWeekNumber:R,fixedWeekNumber:B,autoFocus:U,timezone:V}=t,z=cf(V),W=Rn(),X=MWe(t),Y=ui().direction==="rtl",Z=w||((Be,re)=>W.format(re,"weekdayShort").charAt(0).toUpperCase()),j=Hne({shouldDisableDate:S,shouldDisableMonth:k,shouldDisableYear:C,minDate:y,maxDate:v,disablePast:b,disableFuture:O,timezone:V}),se=Ui(),[ve,G]=Xi({name:"DayCalendar",state:"hasFocus",controlled:E,default:U??!1}),[ce,ge]=I.useState(()=>a||z),ue=jt(Be=>{c||l(Be)}),xe=Be=>{j(Be)||(n(Be),ge(Be),$==null||$(!0),G(!0))},Ne=jt((Be,re)=>{switch(Be.key){case"ArrowUp":xe(W.addDays(re,-7)),Be.preventDefault();break;case"ArrowDown":xe(W.addDays(re,7)),Be.preventDefault();break;case"ArrowLeft":{const ee=W.addDays(re,Y?1:-1),J=W.addMonths(re,Y?1:-1),Re=qb({utils:W,date:ee,minDate:Y?ee:W.startOfMonth(J),maxDate:Y?W.endOfMonth(J):ee,isDateDisabled:j,timezone:V});xe(Re||ee),Be.preventDefault();break}case"ArrowRight":{const ee=W.addDays(re,Y?-1:1),J=W.addMonths(re,Y?-1:1),Re=qb({utils:W,date:ee,minDate:Y?W.startOfMonth(J):ee,maxDate:Y?ee:W.endOfMonth(J),isDateDisabled:j,timezone:V});xe(Re||ee),Be.preventDefault();break}case"Home":xe(W.startOfWeek(re)),Be.preventDefault();break;case"End":xe(W.endOfWeek(re)),Be.preventDefault();break;case"PageUp":xe(W.addMonths(re,1)),Be.preventDefault();break;case"PageDown":xe(W.addMonths(re,-1)),Be.preventDefault();break}}),Ve=jt((Be,re)=>xe(re)),Ke=jt((Be,re)=>{ve&&W.isSameDay(ce,re)&&($==null||$(!1))}),Me=W.getMonth(i),Ye=I.useMemo(()=>o.filter(Be=>!!Be).map(Be=>W.startOfDay(Be)),[W,o]),ye=Me,ze=I.useMemo(()=>I.createRef(),[ye]),$e=W.startOfWeek(z),We=I.useMemo(()=>{const Be=W.startOfMonth(i),re=W.endOfMonth(i);return j(ce)||W.isAfterDay(ce,re)||W.isBeforeDay(ce,Be)?qb({utils:W,date:ce,minDate:Be,maxDate:re,disablePast:b,disableFuture:O,isDateDisabled:j,timezone:V}):ce},[i,O,b,ce,j,W,V]),dt=I.useMemo(()=>{const Be=W.setTimezone(i,V),re=W.getWeekArray(Be);let ee=W.addMonths(Be,1);for(;B&&re.length{re.length{var ee;const J=W.format(Be,"weekdayShort");return M.jsx(BWe,{variant:"caption",role:"columnheader","aria-label":W.format(W.addDays($e,re),"weekday"),className:X.weekDayLabel,children:(ee=Z==null?void 0:Z(J,Be))!=null?ee:J},J+re.toString())})]}),s?M.jsx(zWe,{className:X.loadingContainer,children:p()}):M.jsx(VWe,P({transKey:ye,onExited:u,reduceAnimations:d,slideDirection:h,className:Je(r,X.slideTransition)},m,{nodeRef:ze,children:M.jsx(HWe,{ref:ze,role:"rowgroup",className:X.monthContainer,children:dt.map((Be,re)=>M.jsxs(WWe,{role:"row",className:X.weekContainer,"aria-rowindex":re+1,children:[R&&M.jsx(jWe,{className:X.weekNumber,role:"rowheader","aria-label":se.calendarWeekNumberAriaLabelText(W.getWeekNumber(Be[0])),children:se.calendarWeekNumberText(W.getWeekNumber(Be[0]))}),Be.map((ee,J)=>M.jsx(QWe,{parentProps:t,day:ee,selectedDays:Ye,focusableDay:We,onKeyDown:Ne,onFocus:Ve,onBlur:Ke,onDaySelect:ue,isDateDisabled:j,currentMonthNumber:Me,isViewFocused:ve,"aria-colindex":J+1},ee.toString()))]},`week-${Be[0]}`))})}))]})}const GWe=(e,t,n)=>(r,i)=>{switch(i.type){case"changeMonth":return P({},r,{slideDirection:i.direction,currentMonth:i.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return P({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&i.focusedDay!=null&&n.isSameDay(i.focusedDay,r.focusedDay))return r;const o=i.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,i.focusedDay);return P({},r,{focusedDay:i.focusedDay,isMonthSwitchingAnimating:o&&!e&&!i.withoutMonthSwitchingAnimation,currentMonth:o?n.startOfMonth(i.focusedDay):r.currentMonth,slideDirection:i.focusedDay!=null&&n.isAfterDay(i.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},qWe=e=>{const{value:t,referenceDate:n,defaultCalendarMonth:r,disableFuture:i,disablePast:o,disableSwitchToMonthOnDayFocus:a=!1,maxDate:s,minDate:l,onMonthChange:u,reduceAnimations:c,shouldDisableDate:d,timezone:p}=e,h=cf(p),m=Rn(),b=I.useRef(GWe(!!c,a,m)).current,O=I.useMemo(()=>{let $=null;return n?$=n:r&&($=m.startOfMonth(r)),Bi.getInitialReferenceValue({value:t,utils:m,timezone:p,props:e,referenceDate:$,granularity:El.day})},[]),[y,v]=I.useReducer(b,{isMonthSwitchingAnimating:!1,focusedDay:m.isValid(t)?t:h,currentMonth:m.startOfMonth(O),slideDirection:"left"}),S=I.useCallback($=>{v(P({type:"changeMonth"},$)),u&&u($.newMonth)},[u]),k=I.useCallback($=>{const N=$;m.isSameMonth(N,y.currentMonth)||S({newMonth:m.startOfMonth(N),direction:m.isAfterDay(N,y.currentMonth)?"left":"right"})},[y.currentMonth,S,m]),C=Hne({shouldDisableDate:d,minDate:l,maxDate:s,disableFuture:i,disablePast:o,timezone:p}),w=I.useCallback(()=>{v({type:"finishMonthSwitchingAnimation"})},[]),E=jt(($,N)=>{C($)||v({type:"changeFocusedDay",focusedDay:$,withoutMonthSwitchingAnimation:N})});return{referenceDate:O,calendarState:y,changeMonth:k,changeFocusedDay:E,isDateDisabled:C,onMonthSwitchingAnimationEnd:w,handleChangeMonth:S}},ZWe=["props","getOpenDialogAriaText"],XWe=["ownerState"],KWe=["ownerState"],q$=e=>{var t,n,r,i,o;let{props:a,getOpenDialogAriaText:s}=e,l=Ge(e,ZWe);const{slots:u,slotProps:c,className:d,sx:p,format:h,formatDensity:m,timezone:b,name:O,label:y,inputRef:v,readOnly:S,disabled:k,autoFocus:C,localeText:w,reduceAnimations:E}=a,$=Rn(),N=I.useRef(null),R=I.useRef(null),B=$l(),U=(t=c==null||(n=c.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:V,actions:z,hasUIView:W,layoutProps:X,renderCurrentView:q,shouldRestoreFocus:Y,fieldProps:Z}=$ne(P({},l,{props:a,inputRef:N,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),j=(r=u.inputAdornment)!=null?r:UN,se=kn({elementType:j,externalSlotProps:c==null?void 0:c.inputAdornment,additionalProps:{position:"end"},ownerState:a}),ve=Ge(se,XWe),G=(i=u.openPickerButton)!=null?i:Na,ce=kn({elementType:G,externalSlotProps:c==null?void 0:c.openPickerButton,additionalProps:{disabled:k||S,onClick:V?z.onClose:z.onOpen,"aria-label":s(Z.value,$),edge:ve.position},ownerState:a}),ge=Ge(ce,KWe),ue=u.openPickerIcon,xe=u.field,Ne=kn({elementType:xe,externalSlotProps:c==null?void 0:c.field,additionalProps:P({},Z,U&&{id:B},{readOnly:S,disabled:k,className:d,sx:p,format:h,formatDensity:m,timezone:b,label:y,name:O,autoFocus:C&&!a.open,focused:V?!0:void 0}),ownerState:a});W&&(Ne.InputProps=P({},Ne.InputProps,{ref:R,[`${ve.position}Adornment`]:M.jsx(j,P({},ve,{children:M.jsx(G,P({},ge,{children:M.jsx(ue,P({},c==null?void 0:c.openPickerIcon))}))}))}));const Ve=P({textField:u.textField,clearIcon:u.clearIcon,clearButton:u.clearButton},Ne.slots),Ke=(o=u.layout)!=null?o:Une,Me=yn(N,Ne.inputRef,v);let Ye=B;U&&(y?Ye=`${B}-label`:Ye=void 0);const ye=P({},c,{toolbar:P({},c==null?void 0:c.toolbar,{titleId:B}),popper:P({"aria-labelledby":Ye},c==null?void 0:c.popper)});return{renderPicker:()=>M.jsxs(Ane,{localeText:w,children:[M.jsx(xe,P({},Ne,{slots:Ve,slotProps:ye,inputRef:Me})),M.jsx(BHe,P({role:"dialog",placement:"bottom-start",anchorEl:R.current},z,{open:V,slots:u,slotProps:ye,shouldRestoreFocus:Y,reduceAnimations:E,children:M.jsx(Ke,P({},X,ye==null?void 0:ye.layout,{slots:u,slotProps:ye,children:q()}))}))]})}},JWe=e=>{var t,n,r;const i=Rn(),o=jp();return P({},e,{disablePast:(t=e.disablePast)!=null?t:!1,disableFuture:(n=e.disableFuture)!=null?n:!1,format:(r=e.format)!=null?r:i.formats.keyboardDate,minDate:$o(i,e.minDate,o.minDate),maxDate:$o(i,e.maxDate,o.maxDate)})},eQe=({props:e,inputRef:t})=>{const n=JWe(e),{forwardedProps:r,internalProps:i}=G$(n,"date");return Y$({inputRef:t,forwardedProps:r,internalProps:i,valueManager:Bi,fieldValueManager:z$,validator:zp,valueType:"date"})},tQe=["ownerState"],Z$=({clearable:e,fieldProps:t,InputProps:n,onClear:r,slots:i,slotProps:o,components:a,componentsProps:s})=>{var l,u,c,d,p,h;const m=Ui(),b=(l=(u=i==null?void 0:i.clearButton)!=null?u:a==null?void 0:a.ClearButton)!=null?l:Na,O=kn({elementType:b,externalSlotProps:(c=o==null?void 0:o.clearButton)!=null?c:s==null?void 0:s.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:m.fieldClearLabel}}),y=Ge(O,tQe),v=(d=(p=i==null?void 0:i.clearIcon)!=null?p:a==null?void 0:a.ClearIcon)!=null?d:gHe,S=kn({elementType:v,externalSlotProps:(h=o==null?void 0:o.clearIcon)!=null?h:s==null?void 0:s.clearIcon,ownerState:{}}),k=P({},n,{endAdornment:M.jsxs(I.Fragment,{children:[e&&M.jsx(UN,{position:"end",sx:{marginRight:n!=null&&n.endAdornment?-1:-1.5},children:M.jsx(b,P({},y,{onClick:r,children:M.jsx(v,P({fontSize:"small"},S))}))}),n==null?void 0:n.endAdornment]})}),C=P({},t,{sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(t.sx)?t.sx:[t.sx]]});return{InputProps:k,fieldProps:C}},nQe=["components","componentsProps","slots","slotProps","InputProps","inputProps"],rQe=["inputRef"],iQe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],Qne=I.forwardRef(function(t,n){var r,i,o;const a=gt({props:t,name:"MuiDateField"}),{components:s,componentsProps:l,slots:u,slotProps:c,InputProps:d,inputProps:p}=a,h=Ge(a,nQe),m=a,b=(r=(i=u==null?void 0:u.textField)!=null?i:s==null?void 0:s.TextField)!=null?r:Dp,O=kn({elementType:b,externalSlotProps:(o=c==null?void 0:c.textField)!=null?o:l==null?void 0:l.textField,externalForwardedProps:h,ownerState:m}),{inputRef:y}=O,v=Ge(O,rQe);v.inputProps=P({},p,v.inputProps),v.InputProps=P({},d,v.InputProps);const S=eQe({props:v,inputRef:y}),{ref:k,onPaste:C,onKeyDown:w,inputMode:E,readOnly:$,clearable:N,onClear:R}=S,B=Ge(S,iQe),{InputProps:U,fieldProps:V}=Z$({onClear:R,clearable:N,fieldProps:B,InputProps:B.InputProps,slots:u,slotProps:c,components:s,componentsProps:l});return M.jsx(b,P({ref:n},V,{InputProps:P({},U,{readOnly:$}),inputProps:P({},B.inputProps,{inputMode:E,onPaste:C,onKeyDown:w,ref:k})}))}),oQe=e=>At("MuiPickersFadeTransitionGroup",e);_t("MuiPickersFadeTransitionGroup",["root"]);const aQe=e=>{const{classes:t}=e;return kt({root:["root"]},oQe,t)},sQe=Se(xN,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function Yne(e){const t=gt({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:i,transKey:o}=t,a=aQe(t),s=ui();return i?n:M.jsx(sQe,{className:Je(a.root,r),children:M.jsx(Eg,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:s.transitions.duration.enteringScreen,enter:s.transitions.duration.enteringScreen,exit:0},children:n},o)})}function lQe(e){return At("MuiPickersMonth",e)}const mE=_t("MuiPickersMonth",["root","monthButton","disabled","selected"]),uQe=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],cQe=e=>{const{disabled:t,selected:n,classes:r}=e;return kt({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},lQe,r)},dQe=Se("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.monthsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),fQe=Se("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${mE.disabled}`]:t.disabled},{[`&.${mE.selected}`]:t.selected}]})(({theme:e})=>P({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${mE.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${mE.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),pQe=I.memo(function(t){const n=gt({props:t,name:"MuiPickersMonth"}),{autoFocus:r,children:i,disabled:o,selected:a,value:s,tabIndex:l,onClick:u,onKeyDown:c,onFocus:d,onBlur:p,"aria-current":h,"aria-label":m}=n,b=Ge(n,uQe),O=I.useRef(null),y=cQe(n);return Kr(()=>{if(r){var v;(v=O.current)==null||v.focus()}},[r]),M.jsx(dQe,P({className:y.root,ownerState:n},b,{children:M.jsx(fQe,{ref:O,disabled:o,type:"button",role:"radio",tabIndex:o?-1:l,"aria-current":h,"aria-checked":a,"aria-label":m,onClick:v=>u(v,s),onKeyDown:v=>c(v,s),onFocus:v=>d(v,s),onBlur:v=>p(v,s),className:y.monthButton,ownerState:n,children:i})}))});function hQe(e){return At("MuiMonthCalendar",e)}_t("MuiMonthCalendar",["root"]);const mQe=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"],gQe=e=>{const{classes:t}=e;return kt({root:["root"]},hQe,t)};function bQe(e,t){const n=Rn(),r=jp(),i=gt({props:e,name:t});return P({disableFuture:!1,disablePast:!1},i,{minDate:$o(n,i.minDate,r.minDate),maxDate:$o(n,i.maxDate,r.maxDate)})}const yQe=Se("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:Nx,boxSizing:"border-box"}),OQe=I.forwardRef(function(t,n){const r=bQe(t,"MuiMonthCalendar"),{className:i,value:o,defaultValue:a,referenceDate:s,disabled:l,disableFuture:u,disablePast:c,maxDate:d,minDate:p,onChange:h,shouldDisableMonth:m,readOnly:b,disableHighlightToday:O,autoFocus:y=!1,onMonthFocus:v,hasFocus:S,onFocusedViewChange:k,monthsPerRow:C=3,timezone:w,gridLabelId:E}=r,$=Ge(r,mQe),{value:N,handleValueChange:R,timezone:B}=Gg({name:"MonthCalendar",timezone:w,value:o,defaultValue:a,onChange:h,valueManager:Bi}),U=cf(B),V=vg(),z=Rn(),W=I.useMemo(()=>Bi.getInitialReferenceValue({value:N,utils:z,props:r,timezone:B,referenceDate:s,granularity:El.month}),[]),X=r,q=gQe(X),Y=I.useMemo(()=>z.getMonth(U),[z,U]),Z=I.useMemo(()=>N!=null?z.getMonth(N):O?null:z.getMonth(W),[N,z,O,W]),[j,se]=I.useState(()=>Z||Y),[ve,G]=Xi({name:"MonthCalendar",state:"hasFocus",controlled:S,default:y??!1}),ce=jt(Me=>{G(Me),k&&k(Me)}),ge=I.useCallback(Me=>{const Ye=z.startOfMonth(c&&z.isAfter(U,p)?U:p),ye=z.startOfMonth(u&&z.isBefore(U,d)?U:d),ze=z.startOfMonth(Me);return z.isBefore(ze,Ye)||z.isAfter(ze,ye)?!0:m?m(ze):!1},[u,c,d,p,U,m,z]),ue=jt((Me,Ye)=>{if(b)return;const ye=z.setMonth(N??W,Ye);R(ye)}),xe=jt(Me=>{ge(z.setMonth(N??W,Me))||(se(Me),ce(!0),v&&v(Me))});I.useEffect(()=>{se(Me=>Z!==null&&Me!==Z?Z:Me)},[Z]);const Ne=jt((Me,Ye)=>{switch(Me.key){case"ArrowUp":xe((12+Ye-3)%12),Me.preventDefault();break;case"ArrowDown":xe((12+Ye+3)%12),Me.preventDefault();break;case"ArrowLeft":xe((12+Ye+(V.direction==="ltr"?-1:1))%12),Me.preventDefault();break;case"ArrowRight":xe((12+Ye+(V.direction==="ltr"?1:-1))%12),Me.preventDefault();break}}),Ve=jt((Me,Ye)=>{xe(Ye)}),Ke=jt((Me,Ye)=>{j===Ye&&ce(!1)});return M.jsx(yQe,P({ref:n,className:Je(q.root,i),ownerState:X,role:"radiogroup","aria-labelledby":E},$,{children:B$(z,N??W).map(Me=>{const Ye=z.getMonth(Me),ye=z.format(Me,"monthShort"),ze=z.format(Me,"month"),$e=Ye===Z,We=l||ge(Me);return M.jsx(pQe,{selected:$e,value:Ye,onClick:ue,onKeyDown:Ne,autoFocus:ve&&Ye===j,disabled:We,tabIndex:Ye===j?0:-1,onFocus:Ve,onBlur:Ke,"aria-current":Y===Ye?"date":void 0,"aria-label":ze,monthsPerRow:C,children:ye},ye)})}))});function vQe(e){return At("MuiPickersYear",e)}const gE=_t("MuiPickersYear",["root","yearButton","selected","disabled"]),EQe=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],SQe=e=>{const{disabled:t,selected:n,classes:r}=e;return kt({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},vQe,r)},TQe=Se("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.yearsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),wQe=Se("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${gE.disabled}`]:t.disabled},{[`&.${gE.selected}`]:t.selected}]})(({theme:e})=>P({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:cn(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${gE.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${gE.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),kQe=I.memo(function(t){const n=gt({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:i,children:o,disabled:a,selected:s,value:l,tabIndex:u,onClick:c,onKeyDown:d,onFocus:p,onBlur:h,"aria-current":m}=n,b=Ge(n,EQe),O=I.useRef(null),y=SQe(n);return I.useEffect(()=>{r&&O.current.focus()},[r]),M.jsx(TQe,P({className:Je(y.root,i),ownerState:n},b,{children:M.jsx(wQe,{ref:O,disabled:a,type:"button",role:"radio",tabIndex:a?-1:u,"aria-current":m,"aria-checked":s,onClick:v=>c(v,l),onKeyDown:v=>d(v,l),onFocus:v=>p(v,l),onBlur:v=>h(v,l),className:y.yearButton,ownerState:n,children:o})}))});function xQe(e){return At("MuiYearCalendar",e)}_t("MuiYearCalendar",["root"]);const CQe=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"],AQe=e=>{const{classes:t}=e;return kt({root:["root"]},xQe,t)};function _Qe(e,t){var n;const r=Rn(),i=jp(),o=gt({props:e,name:t});return P({disablePast:!1,disableFuture:!1},o,{yearsPerRow:(n=o.yearsPerRow)!=null?n:3,minDate:$o(r,o.minDate,i.minDate),maxDate:$o(r,o.maxDate,i.maxDate)})}const RQe=Se("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:Nx,maxHeight:wHe,boxSizing:"border-box",position:"relative"}),IQe=I.forwardRef(function(t,n){const r=_Qe(t,"MuiYearCalendar"),{autoFocus:i,className:o,value:a,defaultValue:s,referenceDate:l,disabled:u,disableFuture:c,disablePast:d,maxDate:p,minDate:h,onChange:m,readOnly:b,shouldDisableYear:O,disableHighlightToday:y,onYearFocus:v,hasFocus:S,onFocusedViewChange:k,yearsPerRow:C,timezone:w,gridLabelId:E}=r,$=Ge(r,CQe),{value:N,handleValueChange:R,timezone:B}=Gg({name:"YearCalendar",timezone:w,value:a,defaultValue:s,onChange:m,valueManager:Bi}),U=cf(B),V=vg(),z=Rn(),W=I.useMemo(()=>Bi.getInitialReferenceValue({value:N,utils:z,props:r,timezone:B,referenceDate:l,granularity:El.year}),[]),X=r,q=AQe(X),Y=I.useMemo(()=>z.getYear(U),[z,U]),Z=I.useMemo(()=>N!=null?z.getYear(N):y?null:z.getYear(W),[N,z,y,W]),[j,se]=I.useState(()=>Z||Y),[ve,G]=Xi({name:"YearCalendar",state:"hasFocus",controlled:S,default:i??!1}),ce=jt(ye=>{G(ye),k&&k(ye)}),ge=I.useCallback(ye=>{if(d&&z.isBeforeYear(ye,U)||c&&z.isAfterYear(ye,U)||h&&z.isBeforeYear(ye,h)||p&&z.isAfterYear(ye,p))return!0;if(!O)return!1;const ze=z.startOfYear(ye);return O(ze)},[c,d,p,h,U,O,z]),ue=jt((ye,ze)=>{if(b)return;const $e=z.setYear(N??W,ze);R($e)}),xe=jt(ye=>{ge(z.setYear(N??W,ye))||(se(ye),ce(!0),v==null||v(ye))});I.useEffect(()=>{se(ye=>Z!==null&&ye!==Z?Z:ye)},[Z]);const Ne=jt((ye,ze)=>{switch(ye.key){case"ArrowUp":xe(ze-C),ye.preventDefault();break;case"ArrowDown":xe(ze+C),ye.preventDefault();break;case"ArrowLeft":xe(ze+(V.direction==="ltr"?-1:1)),ye.preventDefault();break;case"ArrowRight":xe(ze+(V.direction==="ltr"?1:-1)),ye.preventDefault();break}}),Ve=jt((ye,ze)=>{xe(ze)}),Ke=jt((ye,ze)=>{j===ze&&ce(!1)}),Me=I.useRef(null),Ye=yn(n,Me);return I.useEffect(()=>{if(i||Me.current===null)return;const ye=Me.current.querySelector('[tabindex="0"]');if(!ye)return;const ze=ye.offsetHeight,$e=ye.offsetTop,We=Me.current.clientHeight,dt=Me.current.scrollTop,Be=$e+ze;ze>We||$e{const ze=z.getYear(ye),$e=ze===Z,We=u||ge(ye);return M.jsx(kQe,{selected:$e,value:ze,onClick:ue,onKeyDown:Ne,autoFocus:ve&&ze===j,disabled:We,tabIndex:ze===j?0:-1,onFocus:Ve,onBlur:Ke,"aria-current":Y===ze?"date":void 0,yearsPerRow:C,children:z.format(ye,"year")},z.format(ye,"year"))})}))}),DQe=e=>At("MuiPickersCalendarHeader",e),NQe=_t("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),PQe=["slots","slotProps","components","componentsProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],LQe=["ownerState"],MQe=e=>{const{classes:t}=e;return kt({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},DQe,t)},$Qe=Se("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),FQe=Se("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>P({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),BQe=Se("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),UQe=Se(Na,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})(({ownerState:e})=>P({marginRight:"auto"},e.view==="year"&&{[`.${NQe.switchViewIcon}`]:{transform:"rotate(180deg)"}})),jQe=Se(cHe,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),zQe=I.forwardRef(function(t,n){var r,i,o,a;const s=Ui(),l=Rn(),u=gt({props:t,name:"MuiPickersCalendarHeader"}),{slots:c,slotProps:d,components:p,currentMonth:h,disabled:m,disableFuture:b,disablePast:O,maxDate:y,minDate:v,onMonthChange:S,onViewChange:k,view:C,reduceAnimations:w,views:E,labelId:$,className:N,timezone:R}=u,B=Ge(u,PQe),U=u,V=MQe(u),z=(r=(i=c==null?void 0:c.switchViewButton)!=null?i:p==null?void 0:p.SwitchViewButton)!=null?r:UQe,W=kn({elementType:z,externalSlotProps:d==null?void 0:d.switchViewButton,additionalProps:{size:"small","aria-label":s.calendarViewSwitchingButtonAriaLabel(C)},ownerState:U,className:V.switchViewButton}),X=(o=(a=c==null?void 0:c.switchViewIcon)!=null?a:p==null?void 0:p.SwitchViewIcon)!=null?o:jQe,q=kn({elementType:X,externalSlotProps:d==null?void 0:d.switchViewIcon,ownerState:void 0,className:V.switchViewIcon}),Y=Ge(q,LQe),Z=()=>S(l.addMonths(h,1),"left"),j=()=>S(l.addMonths(h,-1),"right"),se=bWe(h,{disableFuture:b,maxDate:y,timezone:R}),ve=yWe(h,{disablePast:O,minDate:v,timezone:R}),G=()=>{if(!(E.length===1||!k||m))if(E.length===2)k(E.find(ce=>ce!==C)||E[0]);else{const ce=E.indexOf(C)!==0?0:1;k(E[ce])}};return E.length===1&&E[0]==="year"?null:M.jsxs($Qe,P({},B,{ownerState:U,className:Je(N,V.root),ref:n,children:[M.jsxs(FQe,{role:"presentation",onClick:G,ownerState:U,"aria-live":"polite",className:V.labelContainer,children:[M.jsx(Yne,{reduceAnimations:w,transKey:l.format(h,"monthAndYear"),children:M.jsx(BQe,{id:$,ownerState:U,className:V.label,children:l.format(h,"monthAndYear")})}),E.length>1&&!m&&M.jsx(z,P({},W,{children:M.jsx(X,P({},Y))}))]}),M.jsx(Eg,{in:C==="day",children:M.jsx(Nne,{slots:c,slotProps:d,onGoToPrevious:j,isPreviousDisabled:ve,previousLabel:s.previousMonth,onGoToNext:Z,isNextDisabled:se,nextLabel:s.nextMonth})})]}))}),$x=Se("div")({overflow:"hidden",width:Nx,maxHeight:Px,display:"flex",flexDirection:"column",margin:"0 auto"}),VQe=e=>At("MuiDateCalendar",e);_t("MuiDateCalendar",["root","viewTransitionContainer"]);const HQe=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","components","componentsProps","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsPerRow","monthsPerRow","timezone"],WQe=e=>{const{classes:t}=e;return kt({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},VQe,t)};function QQe(e,t){var n,r,i,o,a,s,l;const u=Rn(),c=jp(),d=Lne(),p=gt({props:e,name:t});return P({},p,{loading:(n=p.loading)!=null?n:!1,disablePast:(r=p.disablePast)!=null?r:!1,disableFuture:(i=p.disableFuture)!=null?i:!1,openTo:(o=p.openTo)!=null?o:"day",views:(a=p.views)!=null?a:["year","day"],reduceAnimations:(s=p.reduceAnimations)!=null?s:d,renderLoading:(l=p.renderLoading)!=null?l:()=>M.jsx("span",{children:"..."}),minDate:$o(u,p.minDate,c.minDate),maxDate:$o(u,p.maxDate,c.maxDate)})}const YQe=Se($x,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:Px}),GQe=Se(Yne,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),Gne=I.forwardRef(function(t,n){var r,i,o;const a=Rn(),s=$l(),l=QQe(t,"MuiDateCalendar"),{autoFocus:u,onViewChange:c,value:d,defaultValue:p,referenceDate:h,disableFuture:m,disablePast:b,defaultCalendarMonth:O,onChange:y,onYearChange:v,onMonthChange:S,reduceAnimations:k,shouldDisableDate:C,shouldDisableMonth:w,shouldDisableYear:E,view:$,views:N,openTo:R,className:B,disabled:U,readOnly:V,minDate:z,maxDate:W,disableHighlightToday:X,focusedView:q,onFocusedViewChange:Y,showDaysOutsideCurrentMonth:Z,fixedWeekNumber:j,dayOfWeekFormatter:se,components:ve,componentsProps:G,slots:ce,slotProps:ge,loading:ue,renderLoading:xe,displayWeekNumber:Ne,yearsPerRow:Ve,monthsPerRow:Ke,timezone:Me}=l,Ye=Ge(l,HQe),{value:ye,handleValueChange:ze,timezone:$e}=Gg({name:"DateCalendar",timezone:Me,value:d,defaultValue:p,onChange:y,valueManager:Bi}),{view:We,setView:dt,focusedView:Be,setFocusedView:re,goToNextView:ee,setValueAndGoToNextView:J}=NO({view:$,views:N,openTo:R,onChange:ze,onViewChange:c,autoFocus:u,focusedView:q,onFocusedViewChange:Y}),{referenceDate:Re,calendarState:Le,changeFocusedDay:De,changeMonth:ie,handleChangeMonth:fe,isDateDisabled:de,onMonthSwitchingAnimationEnd:Oe}=qWe({value:ye,defaultCalendarMonth:O,referenceDate:h,reduceAnimations:k,onMonthChange:S,minDate:z,maxDate:W,shouldDisableDate:C,disablePast:b,disableFuture:m,timezone:$e}),Te=U&&ye||z,rt=U&&ye||W,pt=`${s}-grid-label`,xt=Be!==null,et=(r=(i=ce==null?void 0:ce.calendarHeader)!=null?i:ve==null?void 0:ve.CalendarHeader)!=null?r:zQe,vt=kn({elementType:et,externalSlotProps:(o=ge==null?void 0:ge.calendarHeader)!=null?o:G==null?void 0:G.calendarHeader,additionalProps:{views:N,view:We,currentMonth:Le.currentMonth,onViewChange:dt,onMonthChange:(_e,pe)=>fe({newMonth:_e,direction:pe}),minDate:Te,maxDate:rt,disabled:U,disablePast:b,disableFuture:m,reduceAnimations:k,timezone:$e,labelId:pt,slots:ce,slotProps:ge},ownerState:l}),qe=jt(_e=>{const pe=a.startOfMonth(_e),lt=a.endOfMonth(_e),at=de(_e)?qb({utils:a,date:_e,minDate:a.isBefore(z,pe)?pe:z,maxDate:a.isAfter(W,lt)?lt:W,disablePast:b,disableFuture:m,isDateDisabled:de,timezone:$e}):_e;at?(J(at,"finish"),S==null||S(pe)):(ee(),ie(pe)),De(at,!0)}),it=jt(_e=>{const pe=a.startOfYear(_e),lt=a.endOfYear(_e),at=de(_e)?qb({utils:a,date:_e,minDate:a.isBefore(z,pe)?pe:z,maxDate:a.isAfter(W,lt)?lt:W,disablePast:b,disableFuture:m,isDateDisabled:de,timezone:$e}):_e;at?(J(at,"finish"),v==null||v(at)):(ee(),ie(pe)),De(at,!0)}),Et=jt(_e=>ze(_e&&QI(a,_e,ye??Re),"finish",We));I.useEffect(()=>{ye!=null&&a.isValid(ye)&&ie(ye)},[ye]);const Nt=l,on=WQe(Nt),dn={disablePast:b,disableFuture:m,maxDate:W,minDate:z},pn={disableHighlightToday:X,readOnly:V,disabled:U,timezone:$e,gridLabelId:pt},zn=I.useRef(We);I.useEffect(()=>{zn.current!==We&&(Be===zn.current&&re(We,!0),zn.current=We)},[Be,re,We]);const Ee=I.useMemo(()=>[ye],[ye]);return M.jsxs(YQe,P({ref:n,className:Je(on.root,B),ownerState:Nt},Ye,{children:[M.jsx(et,P({},vt)),M.jsx(GQe,{reduceAnimations:k,className:on.viewTransitionContainer,transKey:We,ownerState:Nt,children:M.jsxs("div",{children:[We==="year"&&M.jsx(IQe,P({},dn,pn,{value:ye,onChange:it,shouldDisableYear:E,hasFocus:xt,onFocusedViewChange:_e=>re("year",_e),yearsPerRow:Ve,referenceDate:Re})),We==="month"&&M.jsx(OQe,P({},dn,pn,{hasFocus:xt,className:B,value:ye,onChange:qe,shouldDisableMonth:w,onFocusedViewChange:_e=>re("month",_e),monthsPerRow:Ke,referenceDate:Re})),We==="day"&&M.jsx(YWe,P({},Le,dn,pn,{onMonthSwitchingAnimationEnd:Oe,onFocusedDayChange:De,reduceAnimations:k,selectedDays:Ee,onSelectedDaysChange:Et,shouldDisableDate:C,shouldDisableMonth:w,shouldDisableYear:E,hasFocus:xt,onFocusedViewChange:_e=>re("day",_e),showDaysOutsideCurrentMonth:Z,fixedWeekNumber:j,dayOfWeekFormatter:se,displayWeekNumber:Ne,components:ve,componentsProps:G,slots:ce,slotProps:ge,loading:ue,renderLoading:xe}))]})})]}))}),Zs=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minDate:h,maxDate:m,shouldDisableDate:b,shouldDisableMonth:O,shouldDisableYear:y,reduceAnimations:v,onMonthChange:S,monthsPerRow:k,onYearChange:C,yearsPerRow:w,defaultCalendarMonth:E,components:$,componentsProps:N,slots:R,slotProps:B,loading:U,renderLoading:V,disableHighlightToday:z,readOnly:W,disabled:X,showDaysOutsideCurrentMonth:q,dayOfWeekFormatter:Y,sx:Z,autoFocus:j,fixedWeekNumber:se,displayWeekNumber:ve,timezone:G})=>M.jsx(Gne,{view:e,onViewChange:t,views:n.filter(gm),focusedView:r&&gm(r)?r:null,onFocusedViewChange:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minDate:h,maxDate:m,shouldDisableDate:b,shouldDisableMonth:O,shouldDisableYear:y,reduceAnimations:v,onMonthChange:S,monthsPerRow:k,onYearChange:C,yearsPerRow:w,defaultCalendarMonth:E,components:$,componentsProps:N,slots:R,slotProps:B,loading:U,renderLoading:V,disableHighlightToday:z,readOnly:W,disabled:X,showDaysOutsideCurrentMonth:q,dayOfWeekFormatter:Y,sx:Z,autoFocus:j,fixedWeekNumber:se,displayWeekNumber:ve,timezone:G}),qne=I.forwardRef(function(t,n){var r,i,o,a;const s=Ui(),l=Rn(),u=Ine(t,"MuiDesktopDatePicker"),c=P({day:Zs,month:Zs,year:Zs},u.viewRenderers),d=P({},u,{viewRenderers:c,format:u1(l,u,!1),yearsPerRow:(r=u.yearsPerRow)!=null?r:4,slots:P({openPickerIcon:Dne,field:Qne},u.slots),slotProps:P({},u.slotProps,{field:h=>{var m;return P({},nf((m=u.slotProps)==null?void 0:m.field,h),qg(u),{ref:n})},toolbar:P({hidden:!0},(i=u.slotProps)==null?void 0:i.toolbar)})}),{renderPicker:p}=q$({props:d,valueManager:Bi,valueType:"date",getOpenDialogAriaText:(o=(a=d.localeText)==null?void 0:a.openDatePickerDialogue)!=null?o:s.openDatePickerDialogue,validator:zp});return p()});qne.propTypes={autoFocus:Q.bool,className:Q.string,closeOnSelect:Q.bool,components:Q.object,componentsProps:Q.object,dayOfWeekFormatter:Q.func,defaultCalendarMonth:Q.any,defaultValue:Q.any,disabled:Q.bool,disableFuture:Q.bool,disableHighlightToday:Q.bool,disableOpenPicker:Q.bool,disablePast:Q.bool,displayWeekNumber:Q.bool,fixedWeekNumber:Q.number,format:Q.string,formatDensity:Q.oneOf(["dense","spacious"]),inputRef:yg,label:Q.node,loading:Q.bool,localeText:Q.object,maxDate:Q.any,minDate:Q.any,monthsPerRow:Q.oneOf([3,4]),name:Q.string,onAccept:Q.func,onChange:Q.func,onClose:Q.func,onError:Q.func,onMonthChange:Q.func,onOpen:Q.func,onSelectedSectionsChange:Q.func,onViewChange:Q.func,onYearChange:Q.func,open:Q.bool,openTo:Q.oneOf(["day","month","year"]),orientation:Q.oneOf(["landscape","portrait"]),readOnly:Q.bool,reduceAnimations:Q.bool,referenceDate:Q.any,renderLoading:Q.func,selectedSections:Q.oneOfType([Q.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Q.number,Q.shape({endIndex:Q.number.isRequired,startIndex:Q.number.isRequired})]),shouldDisableDate:Q.func,shouldDisableMonth:Q.func,shouldDisableYear:Q.func,showDaysOutsideCurrentMonth:Q.bool,slotProps:Q.object,slots:Q.object,sx:Q.oneOfType([Q.arrayOf(Q.oneOfType([Q.func,Q.object,Q.bool])),Q.func,Q.object]),timezone:Q.string,value:Q.any,view:Q.oneOf(["day","month","year"]),viewRenderers:Q.shape({day:Q.func,month:Q.func,year:Q.func}),views:Q.arrayOf(Q.oneOf(["day","month","year"]).isRequired),yearsPerRow:Q.oneOf([3,4])};const qQe=["props","getOpenDialogAriaText"],X$=e=>{var t,n,r;let{props:i,getOpenDialogAriaText:o}=e,a=Ge(e,qQe);const{slots:s,slotProps:l,className:u,sx:c,format:d,formatDensity:p,timezone:h,name:m,label:b,inputRef:O,readOnly:y,disabled:v,localeText:S}=i,k=Rn(),C=I.useRef(null),w=$l(),E=(t=l==null||(n=l.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:$,actions:N,layoutProps:R,renderCurrentView:B,fieldProps:U}=$ne(P({},a,{props:i,inputRef:C,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),V=s.field,z=kn({elementType:V,externalSlotProps:l==null?void 0:l.field,additionalProps:P({},U,E&&{id:w},!(v||y)&&{onClick:N.onOpen,onKeyDown:_He(N.onOpen)},{readOnly:y??!0,disabled:v,className:u,sx:c,format:d,formatDensity:p,timezone:h,label:b,name:m}),ownerState:i});z.inputProps=P({},z.inputProps,{"aria-label":o(U.value,k)});const W=P({textField:s.textField},z.slots),X=(r=s.layout)!=null?r:Une,q=yn(C,z.inputRef,O);let Y=w;E&&(b?Y=`${w}-label`:Y=void 0);const Z=P({},l,{toolbar:P({},l==null?void 0:l.toolbar,{titleId:w}),mobilePaper:P({"aria-labelledby":Y},l==null?void 0:l.mobilePaper)});return{renderPicker:()=>M.jsxs(Ane,{localeText:S,children:[M.jsx(V,P({},z,{slots:W,slotProps:Z,inputRef:q})),M.jsx(CHe,P({},N,{open:$,slots:s,slotProps:Z,children:M.jsx(X,P({},R,Z==null?void 0:Z.layout,{slots:s,slotProps:Z,children:B()}))}))]})}},K$=I.forwardRef(function(t,n){var r,i,o;const a=Ui(),s=Rn(),l=Ine(t,"MuiMobileDatePicker"),u=P({day:Zs,month:Zs,year:Zs},l.viewRenderers),c=P({},l,{viewRenderers:u,format:u1(s,l,!1),slots:P({field:Qne},l.slots),slotProps:P({},l.slotProps,{field:p=>{var h;return P({},nf((h=l.slotProps)==null?void 0:h.field,p),qg(l),{ref:n})},toolbar:P({hidden:!1},(r=l.slotProps)==null?void 0:r.toolbar)})}),{renderPicker:d}=X$({props:c,valueManager:Bi,valueType:"date",getOpenDialogAriaText:(i=(o=c.localeText)==null?void 0:o.openDatePickerDialogue)!=null?i:a.openDatePickerDialogue,validator:zp});return d()});K$.propTypes={autoFocus:Q.bool,className:Q.string,closeOnSelect:Q.bool,components:Q.object,componentsProps:Q.object,dayOfWeekFormatter:Q.func,defaultCalendarMonth:Q.any,defaultValue:Q.any,disabled:Q.bool,disableFuture:Q.bool,disableHighlightToday:Q.bool,disableOpenPicker:Q.bool,disablePast:Q.bool,displayWeekNumber:Q.bool,fixedWeekNumber:Q.number,format:Q.string,formatDensity:Q.oneOf(["dense","spacious"]),inputRef:yg,label:Q.node,loading:Q.bool,localeText:Q.object,maxDate:Q.any,minDate:Q.any,monthsPerRow:Q.oneOf([3,4]),name:Q.string,onAccept:Q.func,onChange:Q.func,onClose:Q.func,onError:Q.func,onMonthChange:Q.func,onOpen:Q.func,onSelectedSectionsChange:Q.func,onViewChange:Q.func,onYearChange:Q.func,open:Q.bool,openTo:Q.oneOf(["day","month","year"]),orientation:Q.oneOf(["landscape","portrait"]),readOnly:Q.bool,reduceAnimations:Q.bool,referenceDate:Q.any,renderLoading:Q.func,selectedSections:Q.oneOfType([Q.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Q.number,Q.shape({endIndex:Q.number.isRequired,startIndex:Q.number.isRequired})]),shouldDisableDate:Q.func,shouldDisableMonth:Q.func,shouldDisableYear:Q.func,showDaysOutsideCurrentMonth:Q.bool,slotProps:Q.object,slots:Q.object,sx:Q.oneOfType([Q.arrayOf(Q.oneOfType([Q.func,Q.object,Q.bool])),Q.func,Q.object]),timezone:Q.string,value:Q.any,view:Q.oneOf(["day","month","year"]),viewRenderers:Q.shape({day:Q.func,month:Q.func,year:Q.func}),views:Q.arrayOf(Q.oneOf(["day","month","year"]).isRequired),yearsPerRow:Q.oneOf([3,4])};const ZQe=["desktopModeMediaQuery"],XQe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:i=H$}=r,o=Ge(r,ZQe);return wg(i,{defaultMatches:!0})?M.jsx(qne,P({ref:n},o)):M.jsx(K$,P({ref:n},o))}),KQe=e=>{var t,n,r,i,o,a,s,l;const u=Rn(),c=jp(),p=((t=e.ampm)!=null?t:u.is12HourCycleInCurrentLocale())?u.formats.keyboardDateTime12h:u.formats.keyboardDateTime24h;return P({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(i=e.format)!=null?i:p,disableIgnoringDatePartForTimeValidation:!!(e.minDateTime||e.maxDateTime),minDate:$o(u,(o=e.minDateTime)!=null?o:e.minDate,c.minDate),maxDate:$o(u,(a=e.maxDateTime)!=null?a:e.maxDate,c.maxDate),minTime:(s=e.minDateTime)!=null?s:e.minTime,maxTime:(l=e.maxDateTime)!=null?l:e.maxTime})},JQe=({props:e,inputRef:t})=>{const n=KQe(e),{forwardedProps:r,internalProps:i}=G$(n,"date-time");return Y$({inputRef:t,forwardedProps:r,internalProps:i,valueManager:Bi,fieldValueManager:z$,validator:Mx,valueType:"date-time"})},eYe=["components","componentsProps","slots","slotProps","InputProps","inputProps"],tYe=["inputRef"],nYe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],Zne=I.forwardRef(function(t,n){var r,i,o;const a=gt({props:t,name:"MuiDateTimeField"}),{components:s,componentsProps:l,slots:u,slotProps:c,InputProps:d,inputProps:p}=a,h=Ge(a,eYe),m=a,b=(r=(i=u==null?void 0:u.textField)!=null?i:s==null?void 0:s.TextField)!=null?r:Dp,O=kn({elementType:b,externalSlotProps:(o=c==null?void 0:c.textField)!=null?o:l==null?void 0:l.textField,externalForwardedProps:h,ownerState:m}),{inputRef:y}=O,v=Ge(O,tYe);v.inputProps=P({},p,v.inputProps),v.InputProps=P({},d,v.InputProps);const S=JQe({props:v,inputRef:y}),{ref:k,onPaste:C,onKeyDown:w,inputMode:E,readOnly:$,clearable:N,onClear:R}=S,B=Ge(S,nYe),{InputProps:U,fieldProps:V}=Z$({onClear:R,clearable:N,fieldProps:B,InputProps:B.InputProps,slots:u,slotProps:c,components:s,componentsProps:l});return M.jsx(b,P({ref:n},V,{InputProps:P({},U,{readOnly:$}),inputProps:P({},B.inputProps,{inputMode:E,onPaste:C,onKeyDown:w,ref:k})}))});function rYe(e){return At("MuiDateTimePickerTabs",e)}_t("MuiDateTimePickerTabs",["root"]);const iYe=e=>gm(e)?"date":"time",oYe=e=>e==="date"?"day":"hours",aYe=e=>{const{classes:t}=e;return kt({root:["root"]},rYe,t)},sYe=Se(bEe,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${BE.indicator}`]:{bottom:"auto",top:0}}})),lYe=function(t){const n=gt({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:r=M.jsx(hHe,{}),onViewChange:i,timeIcon:o=M.jsx(mHe,{}),view:a,hidden:s=typeof window>"u"||window.innerHeight<667}=n,l=Ui(),u=aYe(n),c=(d,p)=>{i(oYe(p))};return s?null:M.jsxs(sYe,{ownerState:n,variant:"fullWidth",value:iYe(a),onChange:c,className:u.root,children:[M.jsx(M8,{value:"date","aria-label":l.dateTableLabel,icon:M.jsx(I.Fragment,{children:r})}),M.jsx(M8,{value:"time","aria-label":l.timeTableLabel,icon:M.jsx(I.Fragment,{children:o})})]})};function uYe(e){return At("MuiDateTimePickerToolbar",e)}const E2=_t("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),cYe=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant"],dYe=e=>{const{classes:t,theme:n,isLandscape:r}=e,i={root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",n.direction==="rtl"&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",n.direction==="rtl"&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",r&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return kt(i,uYe,t)},Xne=Se(V$,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({paddingLeft:t.toolbarVariant==="desktop"&&!t.isLandscape?24:16,paddingRight:t.toolbarVariant==="desktop"&&!t.isLandscape?0:16,borderBottom:t.toolbarVariant==="desktop"?`1px solid ${(e.vars||e).palette.divider}`:void 0,borderRight:t.toolbarVariant==="desktop"&&t.isLandscape?`1px solid ${(e.vars||e).palette.divider}`:void 0,justifyContent:"space-around",position:"relative"}));Xne.propTypes={as:Q.elementType,classes:Q.object,className:Q.string,isLandscape:Q.bool.isRequired,isMobileKeyboardViewOpen:Q.bool,landscapeDirection:Q.oneOf(["column","row"]),ownerState:Q.object.isRequired,sx:Q.oneOfType([Q.arrayOf(Q.oneOfType([Q.func,Q.object,Q.bool])),Q.func,Q.object]),toggleMobileKeyboardView:Q.func,toolbarTitle:Q.node,viewType:Q.oneOf(["date","time"])};const fYe=Se("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),Kne=Se("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})(({theme:e,ownerState:t})=>{const n=t.isLandscape&&t.toolbarVariant!=="desktop"?"column":"row";return P({display:"flex",flexDirection:n},t.toolbarVariant==="desktop"&&P({},!t.isLandscape&&{gap:9,marginRight:4,alignSelf:"flex-end"}),e.direction==="rtl"&&{flexDirection:`${n}-reverse`})}),pYe=Se("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})(({theme:e,ownerState:t})=>P({display:"flex"},t.toolbarVariant==="desktop"&&{gap:1.5},e.direction==="rtl"&&{flexDirection:"row-reverse"}));Kne.propTypes={as:Q.elementType,ownerState:Q.object.isRequired,sx:Q.oneOfType([Q.arrayOf(Q.oneOfType([Q.func,Q.object,Q.bool])),Q.func,Q.object])};const gV=Se(W$,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})(({ownerState:e})=>({margin:e.toolbarVariant==="desktop"?0:"0 4px 0 2px",cursor:"default"})),hYe=Se("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${E2.ampmLabel}`]:t.ampmLabel},{[`&.${E2.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>P({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"},{[`& .${E2.ampmLabel}`]:{fontSize:17}}));function mYe(e){const t=gt({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:i,onChange:o,view:a,isLandscape:s,onViewChange:l,toolbarFormat:u,toolbarPlaceholder:c="––",views:d,disabled:p,readOnly:h,toolbarVariant:m="mobile"}=t,b=Ge(t,cYe),O=t,y=Rn(),{meridiemMode:v,handleMeridiemChange:S}=Lx(i,n,o),k=!!(n&&!r),C=m==="desktop",w=Ui(),E=ui(),$=dYe(P({},O,{theme:E})),N=B=>n?y.format(B,"hours12h"):y.format(B,"hours24h"),R=I.useMemo(()=>i?u?y.formatByString(i,u):y.format(i,"shortDate"):c,[i,u,c,y]);return M.jsxs(Xne,P({toolbarTitle:w.dateTimePickerToolbarTitle,isLandscape:s,className:$.root},b,{ownerState:O,children:[M.jsxs(fYe,{className:$.dateContainer,ownerState:O,children:[d.includes("year")&&M.jsx(Ka,{tabIndex:-1,variant:"subtitle1",onClick:()=>l("year"),selected:a==="year",value:i?y.format(i,"year"):"–"}),d.includes("day")&&M.jsx(Ka,{tabIndex:-1,variant:C?"h5":"h4",onClick:()=>l("day"),selected:a==="day",value:R})]}),M.jsxs(Kne,{className:$.timeContainer,ownerState:O,children:[M.jsxs(pYe,{className:$.timeDigitsContainer,ownerState:O,children:[d.includes("hours")&&M.jsx(Ka,{variant:C?"h5":"h3",width:C&&!s?ub:void 0,onClick:()=>l("hours"),selected:a==="hours",value:i?N(i):"--"}),d.includes("minutes")&&M.jsxs(I.Fragment,{children:[M.jsx(gV,{variant:C?"h5":"h3",value:":",className:$.separator,ownerState:O}),M.jsx(Ka,{variant:C?"h5":"h3",width:C&&!s?ub:void 0,onClick:()=>l("minutes"),selected:a==="minutes",value:i?y.format(i,"minutes"):"--"})]}),d.includes("seconds")&&M.jsxs(I.Fragment,{children:[M.jsx(gV,{variant:C?"h5":"h3",value:":",className:$.separator,ownerState:O}),M.jsx(Ka,{variant:C?"h5":"h3",width:C&&!s?ub:void 0,onClick:()=>l("seconds"),selected:a==="seconds",value:i?y.format(i,"seconds"):"--"})]})]}),k&&!C&&M.jsxs(hYe,{className:$.ampmSelection,ownerState:O,children:[M.jsx(Ka,{variant:"subtitle2",selected:v==="am",typographyClassName:$.ampmLabel,value:kl(y,"am"),onClick:h?void 0:()=>S("am"),disabled:p}),M.jsx(Ka,{variant:"subtitle2",selected:v==="pm",typographyClassName:$.ampmLabel,value:kl(y,"pm"),onClick:h?void 0:()=>S("pm"),disabled:p})]}),n&&C&&M.jsx(Ka,{variant:"h5",onClick:()=>l("meridiem"),selected:a==="meridiem",value:i&&v?kl(y,v):"--",width:ub})]})]}))}function Jne(e,t){var n,r,i,o,a,s,l,u,c,d,p;const h=Rn(),m=jp(),b=gt({props:e,name:t}),O=(n=b.ampm)!=null?n:h.is12HourCycleInCurrentLocale(),y=I.useMemo(()=>{var k;return((k=b.localeText)==null?void 0:k.toolbarTitle)==null?b.localeText:P({},b.localeText,{dateTimePickerToolbarTitle:b.localeText.toolbarTitle})},[b.localeText]),v=(r=b.slots)!=null?r:DO(b.components),S=(i=b.slotProps)!=null?i:b.componentsProps;return P({},b,F$({views:b.views,openTo:b.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:O,localeText:y,orientation:(o=b.orientation)!=null?o:"portrait",disableIgnoringDatePartForTimeValidation:(a=b.disableIgnoringDatePartForTimeValidation)!=null?a:!!(b.minDateTime||b.maxDateTime||b.disablePast||b.disableFuture),disableFuture:(s=b.disableFuture)!=null?s:!1,disablePast:(l=b.disablePast)!=null?l:!1,minDate:$o(h,(u=b.minDateTime)!=null?u:b.minDate,m.minDate),maxDate:$o(h,(c=b.maxDateTime)!=null?c:b.maxDate,m.maxDate),minTime:(d=b.minDateTime)!=null?d:b.minTime,maxTime:(p=b.maxDateTime)!=null?p:b.maxTime,slots:P({toolbar:mYe,tabs:lYe},v),slotProps:P({},S,{toolbar:P({ampm:O},S==null?void 0:S.toolbar)})})}function gYe(e){return At("MuiMultiSectionDigitalClock",e)}_t("MuiMultiSectionDigitalClock",["root"]);function bYe(e){return At("MuiMultiSectionDigitalClockSection",e)}const yYe=_t("MuiMultiSectionDigitalClockSection",["root","item"]),OYe=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],vYe=e=>{const{classes:t}=e;return kt({root:["root"],item:["item"]},bYe,t)},EYe=Se(Q1,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({maxHeight:Pne,width:56,padding:0,overflow:"hidden","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:t.alreadyRendered?"smooth":"auto"},"@media (pointer: fine)":{"&:hover":{overflowY:"auto"}},"@media (pointer: none), (pointer: coarse)":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"&:after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"}})),SYe=Se(bp,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:8,margin:"2px 4px",width:ub,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:cn(e.palette.primary.main,e.palette.action.focusOpacity)}})),TYe=I.forwardRef(function(t,n){var r;const i=I.useRef(null),o=yn(n,i),a=I.useRef(null),s=gt({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:l,onChange:u,className:c,disabled:d,readOnly:p,items:h,active:m,slots:b,slotProps:O,skipDisabled:y}=s,v=Ge(s,OYe),S=I.useMemo(()=>P({},s,{alreadyRendered:!!i.current}),[s]),k=vYe(S),C=(r=b==null?void 0:b.digitalClockSectionItem)!=null?r:SYe;return I.useEffect(()=>{if(i.current===null)return;const w=i.current.querySelector('[role="option"][aria-selected="true"]');if(m&&l&&w&&w.focus(),!w||a.current===w)return;a.current=w;const E=w.offsetTop;i.current.scrollTop=E-4}),M.jsx(EYe,P({ref:o,className:Je(k.root,c),ownerState:S,autoFocusItem:l&&m,role:"listbox"},v,{children:h.map(w=>{var E,$;if(y&&(E=w.isDisabled)!=null&&E.call(w,w.value))return null;const N=w.isSelected(w.value);return M.jsx(C,P({onClick:()=>!p&&u(w.value),selected:N,disabled:d||(($=w.isDisabled)==null?void 0:$.call(w,w.value)),disableRipple:p,role:"option","aria-disabled":p,"aria-label":w.ariaLabel,"aria-selected":N,className:k.item},O==null?void 0:O.digitalClockSectionItem,{children:w.label}),w.label)})}))}),wYe=({now:e,value:t,utils:n,ampm:r,isDisabled:i,resolveAriaLabel:o,timeStep:a})=>{const s=t?n.getHours(t):null,l=[],u=d=>s===null?!1:r?d===12?s===12||s===0:s===d||s-12===d:s===d,c=r?11:23;for(let d=0;d<=c;d+=a){let p=n.format(n.setHours(e,d),r?"hours12h":"hours24h");const h=o(parseInt(p,10).toString());p=n.formatNumber(p),l.push({value:d,label:p,isSelected:u,isDisabled:i,ariaLabel:h})}return l},bV=({value:e,utils:t,isDisabled:n,timeStep:r,resolveLabel:i,resolveAriaLabel:o,hasValue:a=!0})=>{const s=l=>e===null?!1:a&&e===l;return[...Array.from({length:Math.ceil(60/r)},(l,u)=>{const c=r*u;return{value:c,label:t.formatNumber(i(c)),isDisabled:n,isSelected:s,ariaLabel:o(c.toString())}})]},J$=({value:e,referenceDate:t,utils:n,props:r,timezone:i})=>{const o=I.useMemo(()=>Bi.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:El.day,timezone:i,getTodayDate:()=>U$(n,i,"date")}),[]);return e??o},kYe=["ampm","timeSteps","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","skipDisabled","timezone"],xYe=e=>{const{classes:t}=e;return kt({root:["root"]},gYe,t)},CYe=Se($x,{name:"MuiMultiSectionDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),AYe=I.forwardRef(function(t,n){const r=Rn(),i=gt({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:o=r.is12HourCycleInCurrentLocale(),timeSteps:a,autoFocus:s,components:l,componentsProps:u,slots:c,slotProps:d,value:p,defaultValue:h,referenceDate:m,disableIgnoringDatePartForTimeValidation:b=!1,maxTime:O,minTime:y,disableFuture:v,disablePast:S,minutesStep:k=1,shouldDisableClock:C,shouldDisableTime:w,onChange:E,view:$,views:N=["hours","minutes"],openTo:R,onViewChange:B,focusedView:U,onFocusedViewChange:V,className:z,disabled:W,readOnly:X,skipDisabled:q=!1,timezone:Y}=i,Z=Ge(i,kYe),{value:j,handleValueChange:se,timezone:ve}=Gg({name:"MultiSectionDigitalClock",timezone:Y,value:p,defaultValue:h,onChange:E,valueManager:Bi}),G=Ui(),ce=cf(ve),ge=I.useMemo(()=>P({hours:1,minutes:5,seconds:5},a),[a]),ue=J$({value:j,referenceDate:m,utils:r,props:i,timezone:ve}),xe=jt((ee,J,Re)=>se(ee,J,Re)),Ne=I.useMemo(()=>!o||!N.includes("hours")||N.includes("meridiem")?N:[...N,"meridiem"],[o,N]),{view:Ve,setValueAndGoToNextView:Ke,focusedView:Me}=NO({view:$,views:Ne,openTo:R,onViewChange:B,onChange:xe,focusedView:U,onFocusedViewChange:V}),Ye=jt(ee=>{Ke(ee,"finish","meridiem")}),{meridiemMode:ye,handleMeridiemChange:ze}=Lx(ue,o,Ye,"finish"),$e=I.useCallback((ee,J)=>{const Re=IO(b,r),Le=J==="hours"||J==="minutes"&&Ne.includes("seconds"),De=({start:fe,end:de})=>!(y&&Re(y,de)||O&&Re(fe,O)||v&&Re(fe,ce)||S&&Re(ce,Le?de:fe)),ie=(fe,de=1)=>{if(fe%de!==0||C!=null&&C(fe,J))return!1;if(w)switch(J){case"hours":return!w(r.setHours(ue,fe),"hours");case"minutes":return!w(r.setMinutes(ue,fe),"minutes");case"seconds":return!w(r.setSeconds(ue,fe),"seconds");default:return!1}return!0};switch(J){case"hours":{const fe=c1(ee,ye,o),de=r.setHours(ue,fe),Oe=r.setSeconds(r.setMinutes(de,0),0),Te=r.setSeconds(r.setMinutes(de,59),59);return!De({start:Oe,end:Te})||!ie(fe)}case"minutes":{const fe=r.setMinutes(ue,ee),de=r.setSeconds(fe,0),Oe=r.setSeconds(fe,59);return!De({start:de,end:Oe})||!ie(ee,k)}case"seconds":{const fe=r.setSeconds(ue,ee);return!De({start:fe,end:fe})||!ie(ee)}default:throw new Error("not supported")}},[o,ue,b,O,ye,y,k,C,w,r,v,S,ce,Ne]),We=I.useCallback(ee=>{switch(ee){case"hours":return{onChange:J=>{const Re=c1(J,ye,o);Ke(r.setHours(ue,Re),"finish","hours")},items:wYe({now:ce,value:j,ampm:o,utils:r,isDisabled:J=>W||$e(J,"hours"),timeStep:ge.hours,resolveAriaLabel:G.hoursClockNumberText})};case"minutes":return{onChange:J=>{Ke(r.setMinutes(ue,J),"finish","minutes")},items:bV({value:r.getMinutes(ue),utils:r,isDisabled:J=>W||$e(J,"minutes"),resolveLabel:J=>r.format(r.setMinutes(ce,J),"minutes"),timeStep:ge.minutes,hasValue:!!j,resolveAriaLabel:G.minutesClockNumberText})};case"seconds":return{onChange:J=>{Ke(r.setSeconds(ue,J),"finish","seconds")},items:bV({value:r.getSeconds(ue),utils:r,isDisabled:J=>W||$e(J,"seconds"),resolveLabel:J=>r.format(r.setSeconds(ce,J),"seconds"),timeStep:ge.seconds,hasValue:!!j,resolveAriaLabel:G.secondsClockNumberText})};case"meridiem":{const J=kl(r,"am"),Re=kl(r,"pm");return{onChange:ze,items:[{value:"am",label:J,isSelected:()=>!!j&&ye==="am",ariaLabel:J},{value:"pm",label:Re,isSelected:()=>!!j&&ye==="pm",ariaLabel:Re}]}}default:throw new Error(`Unknown view: ${ee} found.`)}},[ce,j,o,r,ge.hours,ge.minutes,ge.seconds,G.hoursClockNumberText,G.minutesClockNumberText,G.secondsClockNumberText,ye,Ke,ue,W,$e,ze]),dt=I.useMemo(()=>Ne.reduce((ee,J)=>P({},ee,{[J]:We(J)}),{}),[Ne,We]),Be=i,re=xYe(Be);return M.jsx(CYe,P({ref:n,className:Je(re.root,z),ownerState:Be,role:"group"},Z,{children:Object.entries(dt).map(([ee,J])=>M.jsx(TYe,{items:J.items,onChange:J.onChange,active:Ve===ee,autoFocus:s??Me===ee,disabled:W,readOnly:X,slots:c??l,slotProps:d??u,skipDisabled:q,"aria-label":G.selectViewText(ee)},ee))}))}),_Ye=Se("div")({display:"flex",margin:"0 auto"});function RYe(e){return At("MuiTimeClock",e)}_t("MuiTimeClock",["root","arrowSwitcher"]);const fg=220,_u=36,f1={x:fg/2,y:fg/2},ere={x:f1.x,y:0},IYe=ere.x-f1.x,DYe=ere.y-f1.y,NYe=e=>e*(180/Math.PI),tre=(e,t,n)=>{const r=t-f1.x,i=n-f1.y,o=Math.atan2(IYe,DYe)-Math.atan2(r,i);let a=NYe(o);a=Math.round(a/e)*e,a%=360;const s=Math.floor(a/e)||0,l=r**2+i**2,u=Math.sqrt(l);return{value:s,distance:u}},PYe=(e,t,n=1)=>{const r=n*6;let{value:i}=tre(r,e,t);return i=i*n%60,i},LYe=(e,t,n)=>{const{value:r,distance:i}=tre(30,e,t);let o=r||12;return n?o%=12:i{const{classes:t}=e;return kt({root:["root"],thumb:["thumb"]},MYe,t)},BYe=Se("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>P({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])})),UYe=Se("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>P({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${_u/2}px)`,border:`${(_u-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:(e.vars||e).palette.primary.main}));function jYe(e){const t=gt({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:i,viewValue:o}=t,a=Ge(t,$Ye),s=I.useRef(i);I.useEffect(()=>{s.current=i},[i]);const l=P({},t,{shouldAnimate:s.current!==i}),u=FYe(l),c=()=>{let p=360/(i==="hours"?12:60)*o;return i==="hours"&&o>12&&(p-=360),{height:Math.round((r?.26:.4)*fg),transform:`rotateZ(${p}deg)`}};return M.jsx(BYe,P({style:c(),className:Je(n,u.root),ownerState:l},a,{children:M.jsx(UYe,{ownerState:l,className:u.thumb})}))}function zYe(e){return At("MuiClock",e)}_t("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText"]);const VYe=e=>{const{classes:t}=e;return kt({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"],meridiemText:["meridiemText"]},zYe,t)},HYe=Se("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),WYe=Se("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),QYe=Se("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),YYe=Se("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>P({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})),GYe=Se("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),qYe=Se(Na,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>P({zIndex:1,position:"absolute",bottom:8,left:8,paddingLeft:4,paddingRight:4,width:_u},t.meridiemMode==="am"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),ZYe=Se(Na,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>P({zIndex:1,position:"absolute",bottom:8,right:8,paddingLeft:4,paddingRight:4,width:_u},t.meridiemMode==="pm"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),yV=Se(Lr,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function XYe(e){const t=gt({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:i,children:o,value:a,handleMeridiemChange:s,isTimeDisabled:l,meridiemMode:u,minutesStep:c=1,onChange:d,selectedId:p,type:h,viewValue:m,disabled:b,readOnly:O,className:y}=t,v=t,S=Rn(),k=Ui(),C=I.useRef(!1),w=VYe(v),E=l(m,h),$=!n&&h==="hours"&&(m<1||m>12),N=(Z,j)=>{b||O||l(Z,h)||d(Z,j)},R=(Z,j)=>{let{offsetX:se,offsetY:ve}=Z;if(se===void 0){const ce=Z.target.getBoundingClientRect();se=Z.changedTouches[0].clientX-ce.left,ve=Z.changedTouches[0].clientY-ce.top}const G=h==="seconds"||h==="minutes"?PYe(se,ve,c):LYe(se,ve,!!n);N(G,j)},B=Z=>{C.current=!0,R(Z,"shallow")},U=Z=>{C.current&&(R(Z,"finish"),C.current=!1)},V=Z=>{Z.buttons>0&&R(Z.nativeEvent,"shallow")},z=Z=>{C.current&&(C.current=!1),R(Z.nativeEvent,"finish")},W=I.useMemo(()=>h==="hours"?!0:m%5===0,[h,m]),X=h==="minutes"?c:1,q=I.useRef(null);Kr(()=>{i&&q.current.focus()},[i]);const Y=Z=>{if(!C.current)switch(Z.key){case"Home":N(0,"partial"),Z.preventDefault();break;case"End":N(h==="minutes"?59:23,"partial"),Z.preventDefault();break;case"ArrowUp":N(m+X,"partial"),Z.preventDefault();break;case"ArrowDown":N(m-X,"partial"),Z.preventDefault();break}};return M.jsxs(HYe,{className:Je(y,w.root),children:[M.jsxs(WYe,{className:w.clock,children:[M.jsx(YYe,{onTouchMove:B,onTouchEnd:U,onMouseUp:z,onMouseMove:V,ownerState:{disabled:b},className:w.squareMask}),!E&&M.jsxs(I.Fragment,{children:[M.jsx(GYe,{className:w.pin}),a!=null&&M.jsx(jYe,{type:h,viewValue:m,isInner:$,hasSelected:W})]}),M.jsx(QYe,{"aria-activedescendant":p,"aria-label":k.clockLabelText(h,a,S),ref:q,role:"listbox",onKeyDown:Y,tabIndex:0,className:w.wrapper,children:o})]}),n&&r&&M.jsxs(I.Fragment,{children:[M.jsx(qYe,{onClick:O?void 0:()=>s("am"),disabled:b||u===null,ownerState:v,className:w.amButton,title:kl(S,"am"),children:M.jsx(yV,{variant:"caption",className:w.meridiemText,children:kl(S,"am")})}),M.jsx(ZYe,{disabled:b||u===null,onClick:O?void 0:()=>s("pm"),ownerState:v,className:w.pmButton,title:kl(S,"pm"),children:M.jsx(yV,{variant:"caption",className:w.meridiemText,children:kl(S,"pm")})})]})]})}function KYe(e){return At("MuiClockNumber",e)}const bE=_t("MuiClockNumber",["root","selected","disabled"]),JYe=["className","disabled","index","inner","label","selected"],eGe=e=>{const{classes:t,selected:n,disabled:r}=e;return kt({root:["root",n&&"selected",r&&"disabled"]},KYe,t)},tGe=Se("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${bE.disabled}`]:t.disabled},{[`&.${bE.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>P({height:_u,width:_u,position:"absolute",left:`calc((100% - ${_u}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${bE.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${bE.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled}},t.inner&&P({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})));function nre(e){const t=gt({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:i,inner:o,label:a,selected:s}=t,l=Ge(t,JYe),u=t,c=eGe(u),d=i%12/12*Math.PI*2-Math.PI/2,p=(fg-_u-2)/2*(o?.65:1),h=Math.round(Math.cos(d)*p),m=Math.round(Math.sin(d)*p);return M.jsx(tGe,P({className:Je(n,c.root),"aria-disabled":r?!0:void 0,"aria-selected":s?!0:void 0,role:"option",style:{transform:`translate(${h}px, ${m+(fg-_u)/2}px`},ownerState:u},l,{children:a}))}const nGe=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:i,utils:o})=>{const a=t?o.getHours(t):null,s=[],l=e?1:0,u=e?12:23,c=d=>a===null?!1:e?d===12?a===12||a===0:a===d||a-12===d:a===d;for(let d=l;d<=u;d+=1){let p=d.toString();d===0&&(p="00");const h=!e&&(d===0||d>12);p=o.formatNumber(p);const m=c(d);s.push(M.jsx(nre,{id:m?i:void 0,index:d,inner:h,selected:m,disabled:r(d),label:p,"aria-label":n(p)},d))}return s},OV=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:i})=>{const o=e.formatNumber;return[[5,o("05")],[10,o("10")],[15,o("15")],[20,o("20")],[25,o("25")],[30,o("30")],[35,o("35")],[40,o("40")],[45,o("45")],[50,o("50")],[55,o("55")],[0,o("00")]].map(([a,s],l)=>{const u=a===t;return M.jsx(nre,{label:s,id:u?i:void 0,index:l+1,inner:!1,disabled:n(a),selected:u,"aria-label":r(s)},a)})},rGe=["ampm","ampmInClock","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","timezone"],iGe=e=>{const{classes:t}=e;return kt({root:["root"],arrowSwitcher:["arrowSwitcher"]},RYe,t)},oGe=Se($x,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),aGe=Se(Nne,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),sGe=["hours","minutes"],lGe=I.forwardRef(function(t,n){const r=Rn(),i=gt({props:t,name:"MuiTimeClock"}),{ampm:o=r.is12HourCycleInCurrentLocale(),ampmInClock:a=!1,autoFocus:s,components:l,componentsProps:u,slots:c,slotProps:d,value:p,defaultValue:h,referenceDate:m,disableIgnoringDatePartForTimeValidation:b=!1,maxTime:O,minTime:y,disableFuture:v,disablePast:S,minutesStep:k=1,shouldDisableClock:C,shouldDisableTime:w,showViewSwitcher:E,onChange:$,view:N,views:R=sGe,openTo:B,onViewChange:U,focusedView:V,onFocusedViewChange:z,className:W,disabled:X,readOnly:q,timezone:Y}=i,Z=Ge(i,rGe),j=c??DO(l),se=d??u,{value:ve,handleValueChange:G,timezone:ce}=Gg({name:"TimeClock",timezone:Y,value:p,defaultValue:h,onChange:$,valueManager:Bi}),ge=J$({value:ve,referenceDate:m,utils:r,props:i,timezone:ce}),ue=Ui(),xe=cf(ce),{view:Ne,setView:Ve,previousView:Ke,nextView:Me,setValueAndGoToNextView:Ye}=NO({view:N,views:R,openTo:B,onViewChange:U,onChange:G,focusedView:V,onFocusedViewChange:z}),{meridiemMode:ye,handleMeridiemChange:ze}=Lx(ge,o,Ye),$e=I.useCallback((ee,J)=>{const Re=IO(b,r),Le=J==="hours"||J==="minutes"&&R.includes("seconds"),De=({start:fe,end:de})=>!(y&&Re(y,de)||O&&Re(fe,O)||v&&Re(fe,xe)||S&&Re(xe,Le?de:fe)),ie=(fe,de=1)=>{if(fe%de!==0||C!=null&&C(fe,J))return!1;if(w)switch(J){case"hours":return!w(r.setHours(ge,fe),"hours");case"minutes":return!w(r.setMinutes(ge,fe),"minutes");case"seconds":return!w(r.setSeconds(ge,fe),"seconds");default:return!1}return!0};switch(J){case"hours":{const fe=c1(ee,ye,o),de=r.setHours(ge,fe),Oe=r.setSeconds(r.setMinutes(de,0),0),Te=r.setSeconds(r.setMinutes(de,59),59);return!De({start:Oe,end:Te})||!ie(fe)}case"minutes":{const fe=r.setMinutes(ge,ee),de=r.setSeconds(fe,0),Oe=r.setSeconds(fe,59);return!De({start:de,end:Oe})||!ie(ee,k)}case"seconds":{const fe=r.setSeconds(ge,ee);return!De({start:fe,end:fe})||!ie(ee)}default:throw new Error("not supported")}},[o,ge,b,O,ye,y,k,C,w,r,v,S,xe,R]),We=$l(),dt=I.useMemo(()=>{switch(Ne){case"hours":{const ee=(J,Re)=>{const Le=c1(J,ye,o);Ye(r.setHours(ge,Le),Re)};return{onChange:ee,viewValue:r.getHours(ge),children:nGe({value:ve,utils:r,ampm:o,onChange:ee,getClockNumberText:ue.hoursClockNumberText,isDisabled:J=>X||$e(J,"hours"),selectedId:We})}}case"minutes":{const ee=r.getMinutes(ge),J=(Re,Le)=>{Ye(r.setMinutes(ge,Re),Le)};return{viewValue:ee,onChange:J,children:OV({utils:r,value:ee,onChange:J,getClockNumberText:ue.minutesClockNumberText,isDisabled:Re=>X||$e(Re,"minutes"),selectedId:We})}}case"seconds":{const ee=r.getSeconds(ge),J=(Re,Le)=>{Ye(r.setSeconds(ge,Re),Le)};return{viewValue:ee,onChange:J,children:OV({utils:r,value:ee,onChange:J,getClockNumberText:ue.secondsClockNumberText,isDisabled:Re=>X||$e(Re,"seconds"),selectedId:We})}}default:throw new Error("You must provide the type for ClockView")}},[Ne,r,ve,o,ue.hoursClockNumberText,ue.minutesClockNumberText,ue.secondsClockNumberText,ye,Ye,ge,$e,We,X]),Be=i,re=iGe(Be);return M.jsxs(oGe,P({ref:n,className:Je(re.root,W),ownerState:Be},Z,{children:[M.jsx(XYe,P({autoFocus:s??!!V,ampmInClock:a&&R.includes("hours"),value:ve,type:Ne,ampm:o,minutesStep:k,isTimeDisabled:$e,meridiemMode:ye,handleMeridiemChange:ze,selectedId:We,disabled:X,readOnly:q},dt)),E&&M.jsx(aGe,{className:re.arrowSwitcher,slots:j,slotProps:se,onGoToPrevious:()=>Ve(Ke),isPreviousDisabled:!Ke,previousLabel:ue.openPreviousView,onGoToNext:()=>Ve(Me),isNextDisabled:!Me,nextLabel:ue.openNextView,ownerState:Be})]}))});function uGe(e){return At("MuiDigitalClock",e)}const cGe=_t("MuiDigitalClock",["root","list","item"]),dGe=["ampm","timeStep","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","views","skipDisabled","timezone"],fGe=e=>{const{classes:t}=e;return kt({root:["root"],list:["list"],item:["item"]},uGe,t)},pGe=Se($x,{name:"MuiDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({overflowY:"auto",width:"100%","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:e.alreadyRendered?"smooth":"auto"},maxHeight:Pne})),hGe=Se(Q1,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),mGe=Se(bp,{name:"MuiDigitalClock",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:cn(e.palette.primary.main,e.palette.action.focusOpacity)}})),gGe=I.forwardRef(function(t,n){var r,i,o;const a=Rn(),s=I.useRef(null),l=yn(n,s),u=gt({props:t,name:"MuiDigitalClock"}),{ampm:c=a.is12HourCycleInCurrentLocale(),timeStep:d=30,autoFocus:p,components:h,componentsProps:m,slots:b,slotProps:O,value:y,defaultValue:v,referenceDate:S,disableIgnoringDatePartForTimeValidation:k=!1,maxTime:C,minTime:w,disableFuture:E,disablePast:$,minutesStep:N=1,shouldDisableClock:R,shouldDisableTime:B,onChange:U,view:V,openTo:z,onViewChange:W,focusedView:X,onFocusedViewChange:q,className:Y,disabled:Z,readOnly:j,views:se=["hours"],skipDisabled:ve=!1,timezone:G}=u,ce=Ge(u,dGe),{value:ge,handleValueChange:ue,timezone:xe}=Gg({name:"DigitalClock",timezone:G,value:y,defaultValue:v,onChange:U,valueManager:Bi}),Ne=Ui(),Ve=cf(xe),Ke=I.useMemo(()=>P({},u,{alreadyRendered:!!s.current}),[u]),Me=fGe(Ke),Ye=(r=(i=b==null?void 0:b.digitalClockItem)!=null?i:h==null?void 0:h.DigitalClockItem)!=null?r:mGe,ye=kn({elementType:Ye,externalSlotProps:(o=O==null?void 0:O.digitalClockItem)!=null?o:m==null?void 0:m.digitalClockItem,ownerState:{},className:Me.item}),ze=J$({value:ge,referenceDate:S,utils:a,props:u,timezone:xe}),$e=jt(ee=>ue(ee,"finish","hours")),{setValueAndGoToNextView:We}=NO({view:V,views:se,openTo:z,onViewChange:W,onChange:$e,focusedView:X,onFocusedViewChange:q}),dt=jt(ee=>{We(ee,"finish")});I.useEffect(()=>{if(s.current===null)return;const ee=s.current.querySelector('[role="listbox"] [role="option"][aria-selected="true"]');if(!ee)return;const J=ee.offsetTop;s.current.scrollTop=J-4});const Be=I.useCallback(ee=>{const J=IO(k,a),Re=()=>!(w&&J(w,ee)||C&&J(ee,C)||E&&J(ee,Ve)||$&&J(Ve,ee)),Le=()=>a.getMinutes(ee)%N!==0||R!=null&&R(a.toJsDate(ee).getTime(),"hours")?!1:B?!B(ee,"hours"):!0;return!Re()||!Le()},[k,a,w,C,E,Ve,$,N,R,B]),re=I.useMemo(()=>{const ee=a.startOfDay(ze);return[ee,...Array.from({length:Math.ceil(24*60/d)-1},(J,Re)=>a.addMinutes(ee,d*(Re+1)))]},[ze,d,a]);return M.jsx(pGe,P({ref:l,className:Je(Me.root,Y),ownerState:Ke},ce,{children:M.jsx(hGe,{autoFocusItem:p||!!X,role:"listbox","aria-label":Ne.timePickerToolbarTitle,className:Me.list,children:re.map(ee=>{if(ve&&Be(ee))return null;const J=a.isEqual(ee,ge);return M.jsx(Ye,P({onClick:()=>!j&&dt(ee),selected:J,disabled:Z||Be(ee),disableRipple:j,role:"option","aria-disabled":j,"aria-selected":J},ye,{children:a.format(ee,c?"fullTime12h":"fullTime24h")}),a.toISO(ee))})})}))}),ym=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:h,maxTime:m,shouldDisableTime:b,shouldDisableClock:O,minutesStep:y,ampm:v,ampmInClock:S,components:k,componentsProps:C,slots:w,slotProps:E,readOnly:$,disabled:N,sx:R,autoFocus:B,showViewSwitcher:U,disableIgnoringDatePartForTimeValidation:V,timezone:z})=>M.jsx(lGe,{view:e,onViewChange:t,focusedView:n&&dg(n)?n:null,onFocusedViewChange:r,views:i.filter(dg),value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:h,maxTime:m,shouldDisableTime:b,shouldDisableClock:O,minutesStep:y,ampm:v,ampmInClock:S,components:k,componentsProps:C,slots:w,slotProps:E,readOnly:$,disabled:N,sx:R,autoFocus:B,showViewSwitcher:U,disableIgnoringDatePartForTimeValidation:V,timezone:z}),rre=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:h,maxTime:m,shouldDisableTime:b,shouldDisableClock:O,minutesStep:y,ampm:v,components:S,componentsProps:k,slots:C,slotProps:w,readOnly:E,disabled:$,sx:N,autoFocus:R,disableIgnoringDatePartForTimeValidation:B,timeSteps:U,skipDisabled:V,timezone:z})=>M.jsx(gGe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i.filter(dg),value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:h,maxTime:m,shouldDisableTime:b,shouldDisableClock:O,minutesStep:y,ampm:v,components:S,componentsProps:k,slots:C,slotProps:w,readOnly:E,disabled:$,sx:N,autoFocus:R,disableIgnoringDatePartForTimeValidation:B,timeStep:U==null?void 0:U.minutes,skipDisabled:V,timezone:z}),ZI=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:h,maxTime:m,shouldDisableTime:b,shouldDisableClock:O,minutesStep:y,ampm:v,components:S,componentsProps:k,slots:C,slotProps:w,readOnly:E,disabled:$,sx:N,autoFocus:R,disableIgnoringDatePartForTimeValidation:B,timeSteps:U,skipDisabled:V,timezone:z})=>M.jsx(AYe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i.filter(dg),value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:h,maxTime:m,shouldDisableTime:b,shouldDisableClock:O,minutesStep:y,ampm:v,components:S,componentsProps:k,slots:C,slotProps:w,readOnly:E,disabled:$,sx:N,autoFocus:R,disableIgnoringDatePartForTimeValidation:B,timeSteps:U,skipDisabled:V,timezone:z}),Sf=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minDate:h,minTime:m,maxDate:b,maxTime:O,shouldDisableDate:y,shouldDisableMonth:v,shouldDisableYear:S,shouldDisableTime:k,shouldDisableClock:C,reduceAnimations:w,minutesStep:E,ampm:$,onMonthChange:N,monthsPerRow:R,onYearChange:B,yearsPerRow:U,defaultCalendarMonth:V,components:z,componentsProps:W,slots:X,slotProps:q,loading:Y,renderLoading:Z,disableHighlightToday:j,readOnly:se,disabled:ve,showDaysOutsideCurrentMonth:G,dayOfWeekFormatter:ce,sx:ge,autoFocus:ue,fixedWeekNumber:xe,displayWeekNumber:Ne,timezone:Ve,disableIgnoringDatePartForTimeValidation:Ke,timeSteps:Me,skipDisabled:Ye,timeViewsCount:ye,shouldRenderTimeInASingleColumn:ze})=>{var $e,We;const dt=!!(($e=nf((We=q==null?void 0:q.actionBar)!=null?We:W==null?void 0:W.actionBar,{}))!=null&&($e=$e.actions)!=null&&$e.length),Be={view:qc(e)?e:"hours",onViewChange:t,focusedView:r&&qc(r)?r:null,onFocusedViewChange:i,views:n.filter(qc),value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minTime:m,maxTime:O,shouldDisableTime:k,shouldDisableClock:C,minutesStep:E,ampm:$,components:z,componentsProps:W,slots:X,slotProps:q,readOnly:se,disabled:ve,autoFocus:ue,disableIgnoringDatePartForTimeValidation:Ke,timeSteps:Me,skipDisabled:Ye,timezone:Ve};return M.jsxs(I.Fragment,{children:[M.jsxs(_Ye,{children:[M.jsx(Gne,{view:gm(e)?e:"day",onViewChange:t,views:n.filter(gm),focusedView:r&&gm(r)?r:null,onFocusedViewChange:i,value:o,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:c,disableFuture:d,disablePast:p,minDate:h,maxDate:b,shouldDisableDate:y,shouldDisableMonth:v,shouldDisableYear:S,reduceAnimations:w,onMonthChange:N,monthsPerRow:R,onYearChange:B,yearsPerRow:U,defaultCalendarMonth:V,components:z,componentsProps:W,slots:X,slotProps:q,loading:Y,renderLoading:Z,disableHighlightToday:j,readOnly:se,disabled:ve,showDaysOutsideCurrentMonth:G,dayOfWeekFormatter:ce,sx:ge,autoFocus:ue,fixedWeekNumber:xe,displayWeekNumber:Ne,timezone:Ve}),ye>0&&M.jsxs(I.Fragment,{children:[M.jsx(lc,{orientation:"vertical"}),ze?rre(P({},Be,{view:"hours",views:["hours"],focusedView:r&&qc(r)?"hours":null,sx:P({width:"auto",[`&.${cGe.root}`]:{maxHeight:Px}},Array.isArray(ge)?ge:[ge])})):ZI(P({},Be,{view:qc(e)?e:"hours",views:n.filter(qc),focusedView:r&&qc(r)?r:null,sx:P({borderBottom:0,width:"auto",[`.${yYe.root}`]:{maxHeight:"100%"}},Array.isArray(ge)?ge:[ge])}))]})]}),dt&&M.jsx(lc,{})]})},bGe=["views","format"],ire=(e,t)=>{let{views:n,format:r}=t,i=Ge(t,bGe);if(r)return r;const o=[],a=[];if(n.forEach(u=>{dg(u)?a.push(u):o.push(u)}),a.length===0)return u1(e,P({views:o},i),!1);if(o.length===0)return lw(e,P({views:a},i));const s=lw(e,P({views:a},i));return`${u1(e,P({views:o},i),!1)} ${s}`},yGe=(e,t,n)=>n?t.filter(r=>!qc(r)||r==="hours"):e?[...t,"meridiem"]:t,OGe=(e,t)=>{var n,r;return 24*60/(((n=e.hours)!=null?n:1)*((r=e.minutes)!=null?r:5))<=t};function ore({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const i=e??24,o=P({hours:1,minutes:5,seconds:5},n),a=OGe(o,i);return{thresholdToRenderTimeInASingleColumn:i,timeSteps:o,shouldRenderTimeInASingleColumn:a,views:yGe(t,r,a)}}const are=I.forwardRef(function(t,n){var r,i,o,a,s,l,u;const c=Ui(),d=Rn(),p=Jne(t,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:h,thresholdToRenderTimeInASingleColumn:m,views:b,timeSteps:O}=ore(p),y=!p.viewRenderers||Object.keys(p.viewRenderers).length===0,v=y?{day:Sf,month:Sf,year:Sf,hours:Sf,minutes:Sf,seconds:Sf,meridiem:Sf}:P({day:Zs,month:Zs,year:Zs,hours:null,minutes:null,seconds:null,meridiem:null},p.viewRenderers),S=(r=p.ampmInClock)!=null?r:!0,k=y?["accept"]:[],C=P({},p,{viewRenderers:v,format:ire(d,p),views:b,yearsPerRow:(i=p.yearsPerRow)!=null?i:4,ampmInClock:S,timeSteps:O,thresholdToRenderTimeInASingleColumn:m,shouldRenderTimeInASingleColumn:h,slots:P({field:Zne,openPickerIcon:Dne},p.slots),slotProps:P({},p.slotProps,{field:E=>{var $;return P({},nf(($=p.slotProps)==null?void 0:$.field,E),qg(p),{ref:n})},toolbar:P({hidden:!0,ampmInClock:S,toolbarVariant:y?"desktop":"mobile"},(o=p.slotProps)==null?void 0:o.toolbar),tabs:P({hidden:!0},(a=p.slotProps)==null?void 0:a.tabs),actionBar:P({actions:k},(s=p.slotProps)==null?void 0:s.actionBar)})}),{renderPicker:w}=q$({props:C,valueManager:Bi,valueType:"date-time",getOpenDialogAriaText:(l=(u=C.localeText)==null?void 0:u.openDatePickerDialogue)!=null?l:c.openDatePickerDialogue,validator:Mx});return w()});are.propTypes={ampm:Q.bool,ampmInClock:Q.bool,autoFocus:Q.bool,className:Q.string,closeOnSelect:Q.bool,components:Q.object,componentsProps:Q.object,dayOfWeekFormatter:Q.func,defaultCalendarMonth:Q.any,defaultValue:Q.any,disabled:Q.bool,disableFuture:Q.bool,disableHighlightToday:Q.bool,disableIgnoringDatePartForTimeValidation:Q.bool,disableOpenPicker:Q.bool,disablePast:Q.bool,displayWeekNumber:Q.bool,fixedWeekNumber:Q.number,format:Q.string,formatDensity:Q.oneOf(["dense","spacious"]),inputRef:yg,label:Q.node,loading:Q.bool,localeText:Q.object,maxDate:Q.any,maxDateTime:Q.any,maxTime:Q.any,minDate:Q.any,minDateTime:Q.any,minTime:Q.any,minutesStep:Q.number,monthsPerRow:Q.oneOf([3,4]),name:Q.string,onAccept:Q.func,onChange:Q.func,onClose:Q.func,onError:Q.func,onMonthChange:Q.func,onOpen:Q.func,onSelectedSectionsChange:Q.func,onViewChange:Q.func,onYearChange:Q.func,open:Q.bool,openTo:Q.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:Q.oneOf(["landscape","portrait"]),readOnly:Q.bool,reduceAnimations:Q.bool,referenceDate:Q.any,renderLoading:Q.func,selectedSections:Q.oneOfType([Q.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Q.number,Q.shape({endIndex:Q.number.isRequired,startIndex:Q.number.isRequired})]),shouldDisableClock:Q.func,shouldDisableDate:Q.func,shouldDisableMonth:Q.func,shouldDisableTime:Q.func,shouldDisableYear:Q.func,showDaysOutsideCurrentMonth:Q.bool,skipDisabled:Q.bool,slotProps:Q.object,slots:Q.object,sx:Q.oneOfType([Q.arrayOf(Q.oneOfType([Q.func,Q.object,Q.bool])),Q.func,Q.object]),thresholdToRenderTimeInASingleColumn:Q.number,timeSteps:Q.shape({hours:Q.number,minutes:Q.number,seconds:Q.number}),timezone:Q.string,value:Q.any,view:Q.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:Q.shape({day:Q.func,hours:Q.func,meridiem:Q.func,minutes:Q.func,month:Q.func,seconds:Q.func,year:Q.func}),views:Q.arrayOf(Q.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:Q.oneOf([3,4])};const sre=I.forwardRef(function(t,n){var r,i,o,a,s;const l=Ui(),u=Rn(),c=Jne(t,"MuiMobileDateTimePicker"),d=P({day:Zs,month:Zs,year:Zs,hours:ym,minutes:ym,seconds:ym},c.viewRenderers),p=(r=c.ampmInClock)!=null?r:!1,h=P({},c,{viewRenderers:d,format:ire(u,c),ampmInClock:p,slots:P({field:Zne},c.slots),slotProps:P({},c.slotProps,{field:b=>{var O;return P({},nf((O=c.slotProps)==null?void 0:O.field,b),qg(c),{ref:n})},toolbar:P({hidden:!1,ampmInClock:p},(i=c.slotProps)==null?void 0:i.toolbar),tabs:P({hidden:!1},(o=c.slotProps)==null?void 0:o.tabs)})}),{renderPicker:m}=X$({props:h,valueManager:Bi,valueType:"date-time",getOpenDialogAriaText:(a=(s=h.localeText)==null?void 0:s.openDatePickerDialogue)!=null?a:l.openDatePickerDialogue,validator:Mx});return m()});sre.propTypes={ampm:Q.bool,ampmInClock:Q.bool,autoFocus:Q.bool,className:Q.string,closeOnSelect:Q.bool,components:Q.object,componentsProps:Q.object,dayOfWeekFormatter:Q.func,defaultCalendarMonth:Q.any,defaultValue:Q.any,disabled:Q.bool,disableFuture:Q.bool,disableHighlightToday:Q.bool,disableIgnoringDatePartForTimeValidation:Q.bool,disableOpenPicker:Q.bool,disablePast:Q.bool,displayWeekNumber:Q.bool,fixedWeekNumber:Q.number,format:Q.string,formatDensity:Q.oneOf(["dense","spacious"]),inputRef:yg,label:Q.node,loading:Q.bool,localeText:Q.object,maxDate:Q.any,maxDateTime:Q.any,maxTime:Q.any,minDate:Q.any,minDateTime:Q.any,minTime:Q.any,minutesStep:Q.number,monthsPerRow:Q.oneOf([3,4]),name:Q.string,onAccept:Q.func,onChange:Q.func,onClose:Q.func,onError:Q.func,onMonthChange:Q.func,onOpen:Q.func,onSelectedSectionsChange:Q.func,onViewChange:Q.func,onYearChange:Q.func,open:Q.bool,openTo:Q.oneOf(["day","hours","minutes","month","seconds","year"]),orientation:Q.oneOf(["landscape","portrait"]),readOnly:Q.bool,reduceAnimations:Q.bool,referenceDate:Q.any,renderLoading:Q.func,selectedSections:Q.oneOfType([Q.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Q.number,Q.shape({endIndex:Q.number.isRequired,startIndex:Q.number.isRequired})]),shouldDisableClock:Q.func,shouldDisableDate:Q.func,shouldDisableMonth:Q.func,shouldDisableTime:Q.func,shouldDisableYear:Q.func,showDaysOutsideCurrentMonth:Q.bool,slotProps:Q.object,slots:Q.object,sx:Q.oneOfType([Q.arrayOf(Q.oneOfType([Q.func,Q.object,Q.bool])),Q.func,Q.object]),timezone:Q.string,value:Q.any,view:Q.oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:Q.shape({day:Q.func,hours:Q.func,minutes:Q.func,month:Q.func,seconds:Q.func,year:Q.func}),views:Q.arrayOf(Q.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:Q.oneOf([3,4])};const vGe=["desktopModeMediaQuery"],EGe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:i=H$}=r,o=Ge(r,vGe);return wg(i,{defaultMatches:!0})?M.jsx(are,P({ref:n},o)):M.jsx(sre,P({ref:n},o))}),SGe=e=>{var t,n,r,i;const o=Rn(),s=((t=e.ampm)!=null?t:o.is12HourCycleInCurrentLocale())?o.formats.fullTime12h:o.formats.fullTime24h;return P({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(i=e.format)!=null?i:s})},TGe=({props:e,inputRef:t})=>{const n=SGe(e),{forwardedProps:r,internalProps:i}=G$(n,"time");return Y$({inputRef:t,forwardedProps:r,internalProps:i,valueManager:Bi,fieldValueManager:z$,validator:PO,valueType:"time"})},wGe=["slots","slotProps","components","componentsProps","InputProps","inputProps"],kGe=["inputRef"],xGe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],lre=I.forwardRef(function(t,n){var r,i,o;const a=gt({props:t,name:"MuiTimeField"}),{slots:s,slotProps:l,components:u,componentsProps:c,InputProps:d,inputProps:p}=a,h=Ge(a,wGe),m=a,b=(r=(i=s==null?void 0:s.textField)!=null?i:u==null?void 0:u.TextField)!=null?r:Dp,O=kn({elementType:b,externalSlotProps:(o=l==null?void 0:l.textField)!=null?o:c==null?void 0:c.textField,externalForwardedProps:h,ownerState:m}),{inputRef:y}=O,v=Ge(O,kGe);v.inputProps=P({},p,v.inputProps),v.InputProps=P({},d,v.InputProps);const S=TGe({props:v,inputRef:y}),{ref:k,onPaste:C,onKeyDown:w,inputMode:E,readOnly:$,clearable:N,onClear:R}=S,B=Ge(S,xGe),{InputProps:U,fieldProps:V}=Z$({onClear:R,clearable:N,fieldProps:B,InputProps:B.InputProps,slots:s,slotProps:l,components:u,componentsProps:c});return M.jsx(b,P({ref:n},V,{InputProps:P({},U,{readOnly:$}),inputProps:P({},B.inputProps,{inputMode:E,onPaste:C,onKeyDown:w,ref:k})}))});function CGe(e){return At("MuiTimePickerToolbar",e)}const Zb=_t("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),AGe=["ampm","ampmInClock","value","isLandscape","onChange","view","onViewChange","views","disabled","readOnly"],_Ge=e=>{const{theme:t,isLandscape:n,classes:r}=e,i={root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n&&"hourMinuteLabelLandscape",t.direction==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return kt(i,CGe,r)},RGe=Se(V$,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),IGe=Se(W$,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),ure=Se("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${Zb.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${Zb.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})(({theme:e,ownerState:t})=>P({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},e.direction==="rtl"&&{flexDirection:"row-reverse"}));ure.propTypes={as:Q.elementType,ownerState:Q.object.isRequired,sx:Q.oneOfType([Q.arrayOf(Q.oneOfType([Q.func,Q.object,Q.bool])),Q.func,Q.object])};const cre=Se("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${Zb.ampmLabel}`]:t.ampmLabel},{[`&.${Zb.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>P({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{[`& .${Zb.ampmLabel}`]:{fontSize:17}}));cre.propTypes={as:Q.elementType,ownerState:Q.object.isRequired,sx:Q.oneOfType([Q.arrayOf(Q.oneOfType([Q.func,Q.object,Q.bool])),Q.func,Q.object])};function DGe(e){const t=gt({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:i,isLandscape:o,onChange:a,view:s,onViewChange:l,views:u,disabled:c,readOnly:d}=t,p=Ge(t,AGe),h=Rn(),m=Ui(),b=ui(),O=!!(n&&!r&&u.includes("hours")),{meridiemMode:y,handleMeridiemChange:v}=Lx(i,n,a),S=E=>n?h.format(E,"hours12h"):h.format(E,"hours24h"),k=t,C=_Ge(P({},k,{theme:b})),w=M.jsx(IGe,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:C.separator});return M.jsxs(RGe,P({landscapeDirection:"row",toolbarTitle:m.timePickerToolbarTitle,isLandscape:o,ownerState:k,className:C.root},p,{children:[M.jsxs(ure,{className:C.hourMinuteLabel,ownerState:k,children:[Ah(u,"hours")&&M.jsx(Ka,{tabIndex:-1,variant:"h3",onClick:()=>l("hours"),selected:s==="hours",value:i?S(i):"--"}),Ah(u,["hours","minutes"])&&w,Ah(u,"minutes")&&M.jsx(Ka,{tabIndex:-1,variant:"h3",onClick:()=>l("minutes"),selected:s==="minutes",value:i?h.format(i,"minutes"):"--"}),Ah(u,["minutes","seconds"])&&w,Ah(u,"seconds")&&M.jsx(Ka,{variant:"h3",onClick:()=>l("seconds"),selected:s==="seconds",value:i?h.format(i,"seconds"):"--"})]}),O&&M.jsxs(cre,{className:C.ampmSelection,ownerState:k,children:[M.jsx(Ka,{disableRipple:!0,variant:"subtitle2",selected:y==="am",typographyClassName:C.ampmLabel,value:kl(h,"am"),onClick:d?void 0:()=>v("am"),disabled:c}),M.jsx(Ka,{disableRipple:!0,variant:"subtitle2",selected:y==="pm",typographyClassName:C.ampmLabel,value:kl(h,"pm"),onClick:d?void 0:()=>v("pm"),disabled:c})]})]}))}function dre(e,t){var n,r,i,o,a;const s=Rn(),l=gt({props:e,name:t}),u=(n=l.ampm)!=null?n:s.is12HourCycleInCurrentLocale(),c=I.useMemo(()=>{var h;return((h=l.localeText)==null?void 0:h.toolbarTitle)==null?l.localeText:P({},l.localeText,{timePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),d=(r=l.slots)!=null?r:DO(l.components),p=(i=l.slotProps)!=null?i:l.componentsProps;return P({},l,{ampm:u,localeText:c},F$({views:l.views,openTo:l.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{disableFuture:(o=l.disableFuture)!=null?o:!1,disablePast:(a=l.disablePast)!=null?a:!1,slots:P({toolbar:DGe},d),slotProps:P({},p,{toolbar:P({ampm:u,ampmInClock:l.ampmInClock},p==null?void 0:p.toolbar)})})}const fre=I.forwardRef(function(t,n){var r,i,o,a,s,l;const u=Ui(),c=Rn(),d=dre(t,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:p,views:h,timeSteps:m}=ore(d),b=p?rre:ZI,O=P({hours:b,minutes:b,seconds:b,meridiem:b},d.viewRenderers),y=(r=d.ampmInClock)!=null?r:!0,v=p?[]:["accept"],k=((i=O.hours)==null?void 0:i.name)===ZI.name?h:h.filter(E=>E!=="meridiem"),C=P({},d,{ampmInClock:y,timeSteps:m,viewRenderers:O,format:lw(c,d),views:p?["hours"]:k,slots:P({field:lre,openPickerIcon:pHe},d.slots),slotProps:P({},d.slotProps,{field:E=>{var $;return P({},nf(($=d.slotProps)==null?void 0:$.field,E),qg(d),{ref:n})},toolbar:P({hidden:!0,ampmInClock:y},(o=d.slotProps)==null?void 0:o.toolbar),actionBar:P({actions:v},(a=d.slotProps)==null?void 0:a.actionBar)})}),{renderPicker:w}=q$({props:C,valueManager:Bi,valueType:"time",getOpenDialogAriaText:(s=(l=C.localeText)==null?void 0:l.openTimePickerDialogue)!=null?s:u.openTimePickerDialogue,validator:PO});return w()});fre.propTypes={ampm:Q.bool,ampmInClock:Q.bool,autoFocus:Q.bool,className:Q.string,closeOnSelect:Q.bool,components:Q.object,componentsProps:Q.object,defaultValue:Q.any,disabled:Q.bool,disableFuture:Q.bool,disableIgnoringDatePartForTimeValidation:Q.bool,disableOpenPicker:Q.bool,disablePast:Q.bool,format:Q.string,formatDensity:Q.oneOf(["dense","spacious"]),inputRef:yg,label:Q.node,localeText:Q.object,maxTime:Q.any,minTime:Q.any,minutesStep:Q.number,name:Q.string,onAccept:Q.func,onChange:Q.func,onClose:Q.func,onError:Q.func,onOpen:Q.func,onSelectedSectionsChange:Q.func,onViewChange:Q.func,open:Q.bool,openTo:Q.oneOf(["hours","meridiem","minutes","seconds"]),orientation:Q.oneOf(["landscape","portrait"]),readOnly:Q.bool,reduceAnimations:Q.bool,referenceDate:Q.any,selectedSections:Q.oneOfType([Q.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Q.number,Q.shape({endIndex:Q.number.isRequired,startIndex:Q.number.isRequired})]),shouldDisableClock:Q.func,shouldDisableTime:Q.func,skipDisabled:Q.bool,slotProps:Q.object,slots:Q.object,sx:Q.oneOfType([Q.arrayOf(Q.oneOfType([Q.func,Q.object,Q.bool])),Q.func,Q.object]),thresholdToRenderTimeInASingleColumn:Q.number,timeSteps:Q.shape({hours:Q.number,minutes:Q.number,seconds:Q.number}),timezone:Q.string,value:Q.any,view:Q.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:Q.shape({hours:Q.func,meridiem:Q.func,minutes:Q.func,seconds:Q.func}),views:Q.arrayOf(Q.oneOf(["hours","minutes","seconds"]).isRequired)};const pre=I.forwardRef(function(t,n){var r,i,o,a;const s=Ui(),l=Rn(),u=dre(t,"MuiMobileTimePicker"),c=P({hours:ym,minutes:ym,seconds:ym},u.viewRenderers),d=(r=u.ampmInClock)!=null?r:!1,p=P({},u,{ampmInClock:d,viewRenderers:c,format:lw(l,u),slots:P({field:lre},u.slots),slotProps:P({},u.slotProps,{field:m=>{var b;return P({},nf((b=u.slotProps)==null?void 0:b.field,m),qg(u),{ref:n})},toolbar:P({hidden:!1,ampmInClock:d},(i=u.slotProps)==null?void 0:i.toolbar)})}),{renderPicker:h}=X$({props:p,valueManager:Bi,valueType:"time",getOpenDialogAriaText:(o=(a=p.localeText)==null?void 0:a.openTimePickerDialogue)!=null?o:s.openTimePickerDialogue,validator:PO});return h()});pre.propTypes={ampm:Q.bool,ampmInClock:Q.bool,autoFocus:Q.bool,className:Q.string,closeOnSelect:Q.bool,components:Q.object,componentsProps:Q.object,defaultValue:Q.any,disabled:Q.bool,disableFuture:Q.bool,disableIgnoringDatePartForTimeValidation:Q.bool,disableOpenPicker:Q.bool,disablePast:Q.bool,format:Q.string,formatDensity:Q.oneOf(["dense","spacious"]),inputRef:yg,label:Q.node,localeText:Q.object,maxTime:Q.any,minTime:Q.any,minutesStep:Q.number,name:Q.string,onAccept:Q.func,onChange:Q.func,onClose:Q.func,onError:Q.func,onOpen:Q.func,onSelectedSectionsChange:Q.func,onViewChange:Q.func,open:Q.bool,openTo:Q.oneOf(["hours","minutes","seconds"]),orientation:Q.oneOf(["landscape","portrait"]),readOnly:Q.bool,reduceAnimations:Q.bool,referenceDate:Q.any,selectedSections:Q.oneOfType([Q.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Q.number,Q.shape({endIndex:Q.number.isRequired,startIndex:Q.number.isRequired})]),shouldDisableClock:Q.func,shouldDisableTime:Q.func,slotProps:Q.object,slots:Q.object,sx:Q.oneOfType([Q.arrayOf(Q.oneOfType([Q.func,Q.object,Q.bool])),Q.func,Q.object]),timezone:Q.string,value:Q.any,view:Q.oneOf(["hours","minutes","seconds"]),viewRenderers:Q.shape({hours:Q.func,minutes:Q.func,seconds:Q.func}),views:Q.arrayOf(Q.oneOf(["hours","minutes","seconds"]).isRequired)};const NGe=["desktopModeMediaQuery"],PGe=I.forwardRef(function(t,n){const r=gt({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:i=H$}=r,o=Ge(r,NGe);return wg(i,{defaultMatches:!0})?M.jsx(fre,P({ref:n},o)):M.jsx(pre,P({ref:n},o))});var eF={},LGe=Fo;Object.defineProperty(eF,"__esModule",{value:!0});var hre=eF.default=void 0,MGe=LGe(Bo()),$Ge=M;hre=eF.default=(0,MGe.default)((0,$Ge.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={},FGe=Fo;Object.defineProperty(tF,"__esModule",{value:!0});var mre=tF.default=void 0,BGe=FGe(Bo()),UGe=M;mre=tF.default=(0,BGe.default)((0,UGe.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 XI(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 qGe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function ZGe(e,t){return jGe(e)||WGe(e,t)||gre(e,t)||QGe()}function Xd(e){return zGe(e)||HGe(e)||gre(e)||YGe()}function XGe(e){"@swc/helpers - typeof";return e&&typeof Symbol<"u"&&e.constructor===Symbol?"symbol":typeof e}function gre(e,t){if(e){if(typeof e=="string")return XI(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 XI(e,t)}}var KGe=I.createContext({onError:function(e){return e==null?void 0:e.message}}),Es=function(){var e;return(e=I.useContext(KGe))===null||e===void 0?void 0:e.onError};function La(e){var t;return{value:typeof((t=e.transform)===null||t===void 0?void 0:t.input)=="function"?e.transform.input(e.value):e.value,onChange:function(){for(var n=arguments.length,r=new Array(n),i=0;i()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:"Please enter a valid email address"}}),y=Pa({name:s,control:l,disabled:h.disabled,rules:O}),v=y.field,S=y.fieldState,k=S.error,C=La({value:v.value,onChange:v.onChange,transform:{input:typeof(p==null?void 0:p.input)=="function"?p.input:function(N){return N||""},output:typeof(p==null?void 0:p.output)=="function"?p.output:function(N){var R=N.target.value;return o==="number"&&R?+R:R}}}),w=C.value,E=C.onChange,$=yn(v.ref,d);return M.jsx(c,Cn(zt({},h),{name:v.name,value:w,onChange:function(N){E(N),typeof h.onChange=="function"&&h.onChange(N)},onBlur:v.onBlur,required:a,type:o,error:!!k,helperText:k?typeof b=="function"?b(k):k.message:h.helperText,ref:t,inputRef:$}))});bre.displayName="TextFieldElement";var yre=bre;function JGe(e){var t=e.handleSubmit,n=e.children,r=e.FormProps,i=e.formContext,o=e.onSuccess,a=e.onError,s=Eo(e,["handleSubmit","children","FormProps","formContext","onSuccess","onError"]);return i?(typeof o=="function"&&typeof t=="function"&&console.warn("Property `onSuccess` will be ignored because handleSubmit is provided"),M.jsx(sne,Cn(zt({},i),{children:M.jsx("form",Cn(zt({noValidate:!0},r),{onSubmit:t||(o?i.handleSubmit(o,a):function(){return console.log("submit handler `onSuccess` is missing")}),children:n}))}))):M.jsx(eqe,zt({onSuccess:o,onError:a,FormProps:r,children:n},s))}function eqe(e){var t=e.onSuccess,n=e.onError,r=e.FormProps,i=e.children,o=Eo(e,["onSuccess","onError","FormProps","children"]),a=DVe(zt({},o)),s=a.handleSubmit;return M.jsx(sne,Cn(zt({},a),{children:M.jsx("form",Cn(zt({onSubmit:s(t||function(){return console.log("submit handler `onSuccess` is missing")},n),noValidate:!0},r),{children:i}))}))}var Ore={disableFuture:"Date must be in the past",maxDate:"Date is later than the maximum allowed date",disablePast:"Past date is not allowed",invalidDate:"Date is invalid",minDate:"Date is earlier than the minimum allowed date",shouldDisableDate:"Date is not allowed",shouldDisableMonth:"Month is not allowed",shouldDisableYear:"Year is not allowed"},tqe=I.forwardRef(function(e,t){var n=e.parseError,r=e.name,i=e.required,o=e.validation,a=o===void 0?{}:o,s=e.inputProps,l=e.control,u=e.textReadOnly,c=e.slotProps,d=e.overwriteErrorMessages,p=e.inputRef,h=e.transform,m=Eo(e,["parseError","name","required","validation","inputProps","control","textReadOnly","slotProps","overwriteErrorMessages","inputRef","transform"]),b=Vl(),O=Es(),y=n||O,v=zt({},Ore,d),S=Cn(zt({},a,i&&!a.required&&{required:"This field is required"}),{validate:zt({internal:function(V){var z,W,X=V==null||!b.utils.isValid(V)?null:b.utils.getTimezone(V),q=zp({props:{shouldDisableDate:m.shouldDisableDate,shouldDisableMonth:m.shouldDisableMonth,shouldDisableYear:m.shouldDisableYear,disablePast:!!m.disablePast,disableFuture:!!m.disableFuture,minDate:m.minDate,maxDate:m.maxDate,timezone:(W=(z=m.timezone)!==null&&z!==void 0?z:X)!==null&&W!==void 0?W:"default"},value:V,adapter:b});return q==null||v[q]}},a.validate)}),k=Pa({name:r,control:l,rules:S,disabled:m.disabled,defaultValue:null}),C=k.field,w=k.fieldState,E=w.error,$=La({value:C.value,onChange:C.onChange,transform:{input:typeof(h==null?void 0:h.input)=="function"?h.input:function(V){return V&&V==="string"?new Date(V):V},output:typeof(h==null?void 0:h.output)=="function"?h.output:function(V){return V}}}),N=$.value,R=$.onChange,B=yn(C.ref,p),U=E?typeof y=="function"?y(E):E.message:null;return M.jsx(XQe,Cn(zt({},m,C),{value:N,ref:t,inputRef:B,onClose:function(){for(var V=arguments.length,z=new Array(V),W=0;W"u"?"undefined":XGe(V))<"u"&&(S.InputLabelProps=S.InputLabelProps||{},S.InputLabelProps.shrink=!0),M.jsxs(Dp,Cn(zt({},S),{name:r,value:V,onBlur:N.onBlur,ref:t,onChange:function(X){if(z(X),typeof S.onChange=="function"){var q=X.target.value;p==="number"&&q&&(q=Number(q)),h&&(q=c.find(function(Y){return Y[a]===q})),S.onChange(q)}},select:!0,required:i,error:!!B,helperText:B?typeof C=="function"?C(B):B.message:S.helperText,inputRef:W,children:[w&&M.jsx("option",{}),c.map(function(X){var q,Y={key:"".concat(r,"_").concat(X[a]),value:(q=X==null?void 0:X[a])!==null&&q!==void 0?q:X,disabled:va(X,"disabled")?!!X.disabled:!1,children:X[l]};return w?M.jsx("option",zt({},Y)):M.jsx(bp,zt({},Y))})]}))});lqe.displayName="SelectElement";var uqe=I.forwardRef(function(e,t){var n=e.helperText,r=e.options,i=e.label,o=e.name,a=e.parseError,s=e.required,l=e.labelKey,u=l===void 0?"label":l,c=e.valueKey,d=c===void 0?"id":c,p=e.returnObject,h=e.disabled,m=e.row,b=e.control,O=e.checkboxColor,y=e.rules,v=e.labelProps,S=e.transform,k=e.defaultValue,C=k===void 0?[]:k,w=Eo(e,["helperText","options","label","name","parseError","required","labelKey","valueKey","returnObject","disabled","row","control","checkboxColor","rules","labelProps","transform","defaultValue"]),E=ui(),$=Es(),N=a||$,R=Pa({name:o,rules:s?{required:"This field is required"}:y,disabled:h,control:b,defaultValue:C}),B=R.field,U=R.fieldState,V=U.error,z=U.invalid,W=La({value:B.value,onChange:B.onChange,transform:{input:typeof(S==null?void 0:S.input)=="function"?S.input:function(j){return Array.isArray(j)?j:[]},output:S==null?void 0:S.output}}),X=W.value,q=W.onChange,Y=function(j){var se=va(j,d)?j[d]:j,ve=X.findIndex(function(ce){var ge=va(ce,d)?ce[d]:ce;return se===ge}),G=(ve===-1?Xd(X).concat([j]):X.filter(function(ce,ge){return ve!==ge})).map(function(ce){return p||!va(ce,d)?ce:ce[d]});q(G),typeof w.onChange=="function"&&w.onChange(G)},Z=V?typeof N=="function"?N(V):V.message:n;return M.jsxs(Ip,{error:z,required:s,ref:t,children:[i?M.jsx(Ck,{children:i}):null,M.jsx(BN,{row:m,children:r.map(function(j){var se=va(j,d)?j[d]:j,ve=va(j,u)?j[u]:j,G=X.some(function(ce){return(va(ce,d)?ce[d]:ce)===se});return I.createElement(wy,Cn(zt({},v),{control:M.jsx(kk,{sx:{color:V?E.palette.error.main:void 0},color:O,value:se,checked:G,disabled:h,onChange:function(){return Y(j)}}),label:"".concat(ve),key:"".concat(se)}))})}),Z&&M.jsx(Tg,{children:Z})]})});uqe.displayName="CheckboxButtonGroup";var cqe=48,dqe=8,fqe=I.forwardRef(function(e,t){var n,r,i,o,a,s=e.options,l=e.label,u=l===void 0?"":l,c=e.itemKey,d=c===void 0?"id":c,p=e.itemValue,h=p===void 0?"":p,m=e.itemLabel,b=m===void 0?"label":m,O=e.required,y=O===void 0?!1:O,v=e.validation,S=v===void 0?{}:v,k=e.parseError,C=e.name,w=e.menuMaxHeight,E=w===void 0?cqe*4.5+dqe:w,$=e.menuMaxWidth,N=$===void 0?250:$,R=e.minWidth,B=R===void 0?120:R,U=e.helperText,V=e.showChips,z=e.preserveOrder,W=e.control,X=e.showCheckbox,q=e.formControlProps,Y=e.inputRef,Z=e.transform,j=Eo(e,["options","label","itemKey","itemValue","itemLabel","required","validation","parseError","name","menuMaxHeight","menuMaxWidth","minWidth","helperText","showChips","preserveOrder","control","showCheckbox","formControlProps","inputRef","transform"]),se=Es(),ve=k||se,G=function($e){var We,dt;return(dt=(We=s.find(function(Be){var re;return((re=Be[h||d])!==null&&re!==void 0?re:Be)===$e}))===null||We===void 0?void 0:We[b])!==null&&dt!==void 0?dt:$e},ce=zt({},S,y&&!S.required&&{required:"This field is required"}),ge=Pa({name:C,rules:ce,disabled:j.disabled,control:W}),ue=ge.field,xe=ge.fieldState,Ne=xe.error,Ve=La({value:ue.value,onChange:ue.onChange,transform:{input:typeof(Z==null?void 0:Z.input)=="function"?Z.input:function($e){return Array.isArray($e)?$e:[]},output:Z==null?void 0:Z.output}}),Ke=Ve.value,Me=Ve.onChange,Ye=yn(ue.ref,Y),ye=Ne?typeof ve=="function"?ve(Ne):Ne.message:U,ze;return M.jsxs(Ip,Cn(zt({},q),{style:zt({minWidth:B},q==null?void 0:q.style),variant:j.variant,fullWidth:j.fullWidth,error:!!Ne,size:j.size,ref:t,children:[u&&M.jsx(kY,{size:j.size==="small"?"small":void 0,error:!!Ne,htmlFor:j.id||"select-multi-select-".concat(C),required:y,children:u}),M.jsx($Y,Cn(zt({},j),{id:j.id||"select-multi-select-".concat(C),multiple:!0,label:u||void 0,error:!!Ne,value:Ke,required:y,onChange:Me,onBlur:ue.onBlur,MenuProps:Cn(zt({},j.MenuProps),{slotProps:Cn(zt({},(n=j.MenuProps)===null||n===void 0?void 0:n.slotProps),{paper:zt({},(ze=(i=j.MenuProps)===null||i===void 0||(r=i.slotProps)===null||r===void 0?void 0:r.paper)!==null&&ze!==void 0?ze:{style:zt({maxHeight:E,width:N},va((a=j.MenuProps)===null||a===void 0||(o=a.slotProps)===null||o===void 0?void 0:o.paper,"style")&&typeof j.MenuProps.slotProps.paper.style=="object"&&zt({},j.MenuProps.slotProps.paper.style))})})}),renderValue:typeof j.renderValue=="function"?j.renderValue:V?function($e){return M.jsx("div",{style:{display:"flex",flexWrap:"wrap"},children:(z?s.filter(function(We){return $e.includes(We)}):$e||[]).map(function(We){return M.jsx(LN,{label:G(We),style:{display:"flex",flexWrap:"wrap"},onDelete:function(){Me((Array.isArray(Ke)?Ke:[]).filter(function(dt){return dt!==We}))},deleteIcon:M.jsx(hre,{onMouseDown:function(dt){dt.stopPropagation()}})},We)})})}:function($e){return Array.isArray($e)?$e.map(G).join(", "):""},inputRef:Ye,children:s.map(function($e){var We=$e[h||d]||$e,dt=Array.isArray(Ke)?Ke.some(function(Be){return Be===We}):!1;return M.jsxs(bp,{value:We,sx:{fontWeight:function(Be){return dt?Be.typography.fontWeightBold:Be.typography.fontWeightRegular}},children:[X&&M.jsx(kk,{checked:dt}),M.jsx(ap,{primary:$e[b]||$e})]},We)})})),ye&&M.jsx(Tg,{error:!!Ne,children:ye})]}))});fqe.displayName="MultiSelectElement";var vre=I.forwardRef(function(e,t){var n=e.iconColor,r=e.renderIcon,i=r===void 0?function(u){return u?M.jsx(pP,{}):M.jsx(mre,{})}:r,o=Eo(e,["iconColor","renderIcon"]),a=ZGe(I.useState(!0),2),s=a[0],l=a[1];return M.jsx(yre,Cn(zt({},o),{ref:t,InputProps:{endAdornment:M.jsx(UN,{position:"end",children:M.jsx(Na,{onMouseDown:function(u){return u.preventDefault()},onClick:function(){return l(!s)},tabIndex:-1,color:n??"default",children:i(s)})})},type:s?"password":"text"}))});vre.displayName="PasswordElement";var pqe=vre,hqe=I.forwardRef(function(e,t){var n=e.helperText,r=e.options,i=e.label,o=e.name,a=e.parseError,s=e.labelKey,l=s===void 0?"label":s,u=e.valueKey,c=u===void 0?"id":u,d=e.required,p=e.emptyOptionLabel,h=e.returnObject,m=e.row,b=e.control,O=e.type,y=e.labelProps,v=e.disabled,S=e.formLabelProps,k=e.transform,C=Eo(e,["helperText","options","label","name","parseError","labelKey","valueKey","required","emptyOptionLabel","returnObject","row","control","type","labelProps","disabled","formLabelProps","transform"]),w=ui(),E=Es(),$=a||E,N=Pa({name:o,rules:d?{required:"This field is required"}:void 0,disabled:v,control:b}),R=N.field,B=N.fieldState,U=B.error,V=La({value:R.value,onChange:R.onChange,transform:{input:typeof(k==null?void 0:k.input)=="function"?k.input:function(Y){return Y||""},output:typeof(k==null?void 0:k.output)=="function"?k==null?void 0:k.output:function(Y,Z){return Z}}}),z=V.value,W=V.onChange,X=U?typeof $=="function"?$(U):U.message:n,q=function(Y,Z){var j=h?r.find(function(se){return se[c]===Z}):Z;W(Y,j),typeof C.onChange=="function"&&C.onChange(j)};return M.jsxs(Ip,{error:!!U,ref:t,children:[i&&M.jsx(Ck,Cn(zt({},S),{required:d,error:!!U,children:i})),M.jsxs($Oe,{onChange:q,name:o,row:m,value:z,children:[p&&M.jsx(wy,Cn(zt({},y),{control:M.jsx(D8,{sx:{color:U?w.palette.error.main:void 0},checked:!z}),label:p,value:""})),r.map(function(Y){var Z=Y[c];Z||console.error("CheckboxButtonGroup: valueKey ".concat(c," does not exist on option"),Y);var j=h?z==null?void 0:z[c]:z;O==="number"&&(j=Number(j));var se=j===Z;return I.createElement(wy,Cn(zt({},y),{control:M.jsx(D8,{sx:{color:U?w.palette.error.main:void 0},disabled:v,checked:se}),value:Z,label:Y[l],key:Z}))})]}),X&&M.jsx(Tg,{children:X})]})});hqe.displayName="RadioButtonGroup";var mqe=I.forwardRef(function(e,t){var n=e.name,r=e.control,i=e.switchProps,o=e.transform,a=Eo(e,["name","control","switchProps","transform"]),s=Pa({name:n,control:r,disabled:a.disabled}),l=s.field,u=La({value:l.value,onChange:l.onChange,transform:{input:o==null?void 0:o.input,output:typeof(o==null?void 0:o.output)=="function"?o.output:function(h,m){return m}}}),c=u.value,d=u.onChange,p=yn(l.ref,i==null?void 0:i.ref);return M.jsx(wy,zt({ref:t,control:M.jsx(Nve,Cn(zt({},i),{name:l.name,value:c,onChange:function(h,m){d(h,m),typeof(i==null?void 0:i.onChange)=="function"&&i.onChange(h,m)},onBlur:function(h){l.onBlur(),typeof(i==null?void 0:i.onBlur)=="function"&&(i==null||i.onBlur(h))},ref:p,checked:!!c}))},a))});mqe.displayName="SwitchElement";var gqe=I.forwardRef(function(e,t){var n=e.passwordFieldName,r=e.customInvalidFieldMessage,i=e.control,o=Eo(e,["passwordFieldName","customInvalidFieldMessage","control"]),a=fne({name:n,control:i});return M.jsx(pqe,Cn(zt({control:i},o),{ref:t,validation:{validate:function(s){return s===a||(r??"Password should match")}}}))});gqe.displayName="PasswordRepeatElement";var bqe=I.forwardRef(function(e,t){var n=e.textFieldProps,r=e.autocompleteProps,i=e.name,o=e.control,a=e.options,s=e.loading,l=e.showCheckbox,u=e.rules,c=e.loadingIndicator,d=e.required,p=e.multiple,h=e.label,m=e.parseError,b=e.transform,O=e.matchId,y=Es(),v=m||y,S=zt({},u,d&&{required:(u==null?void 0:u.required)||"This field is required"}),k=Pa({name:i,control:o,disabled:r==null?void 0:r.disabled,rules:S}),C=k.field,w=k.fieldState,E=w.error,$=function(q){return typeof(r==null?void 0:r.getOptionLabel)=="function"?r.getOptionLabel(q):va(q,"label")?"".concat(q==null?void 0:q.label):"".concat(q)},N=function(q,Y){if(typeof(r==null?void 0:r.isOptionEqualToValue)=="function")return r.isOptionEqualToValue(q,Y);var Z=va(q,"id")?q.id:q,j=va(Y,"id")?Y.id:Y;return Z===j},R=function(q){return a.find(function(Y){return O&&va(Y,"id")?Y.id===q:N(Y,q)})},B=La({value:C.value,onChange:C.onChange,transform:{input:typeof(b==null?void 0:b.input)=="function"?b.input:function(q){var Y;return p?(Array.isArray(q)?q:[]).map(R):(Y=R(q))!==null&&Y!==void 0?Y:null},output:typeof(b==null?void 0:b.output)=="function"?b.output:function(q,Y){if(p){var Z=Array.isArray(Y)?Y:[];return O?Z.map(function(j){return va(j,"id")?j.id:j}):Z}return O&&va(Y,"id")?Y.id:Y}}}),U=B.value,V=B.onChange,z=yn(C.ref,n==null?void 0:n.inputRef),W=c||M.jsx(Sg,{color:"inherit",size:20}),X;return M.jsx(Xme,Cn(zt({},r),{value:U,loading:s,multiple:p,options:a,disableCloseOnSelect:typeof(r==null?void 0:r.disableCloseOnSelect)=="boolean"?r.disableCloseOnSelect:!!p,isOptionEqualToValue:N,getOptionLabel:$,onChange:function(q,Y,Z,j){V(q,Y,Z,j),r!=null&&r.onChange&&r.onChange(q,Y,Z,j)},ref:t,renderOption:(X=r==null?void 0:r.renderOption)!==null&&X!==void 0?X:l?function(q,Y,Z){var j=Z.selected;return M.jsxs("li",Cn(zt({},q),{children:[M.jsx(kk,{sx:{marginRight:1},checked:j}),$(Y)]}))}:void 0,onBlur:function(q){C.onBlur(),typeof(r==null?void 0:r.onBlur)=="function"&&r.onBlur(q)},renderInput:function(q){return M.jsx(Dp,Cn(zt({name:i,required:u!=null&&u.required?!0:d,label:h},n,q),{error:!!E,InputLabelProps:zt({},q.InputLabelProps,n==null?void 0:n.InputLabelProps),InputProps:zt(Cn(zt({},q.InputProps),{endAdornment:M.jsxs(M.Fragment,{children:[s?W:null,q.InputProps.endAdornment]})}),n==null?void 0:n.InputProps),inputProps:zt({},q.inputProps,n==null?void 0:n.inputProps),helperText:E?typeof v=="function"?v(E):E.message:n==null?void 0:n.helperText,inputRef:z}))}}))});bqe.displayName="AutocompleteElement";var yqe=I.forwardRef(function(e,t){var n=e.name,r=e.control,i=e.label,o=e.rules,a=o===void 0?{}:o,s=e.parseError,l=e.required,u=e.formControlProps,c=e.transform,d=Eo(e,["name","control","label","rules","parseError","required","formControlProps","transform"]),p=Es(),h=s||p,m=zt({},a,l&&!a.required&&{required:"This field is required"}),b=Pa({name:n,control:r,disabled:d.disabled,rules:m}),O=b.field,y=b.fieldState,v=y.error,S=y.invalid,k=La({value:O.value,onChange:O.onChange,transform:c}),C=k.value,w=k.onChange,E=v?typeof h=="function"?h(v):v.message:null;return M.jsxs(Ip,Cn(zt({error:S,required:l,fullWidth:!0},u),{ref:t,children:[i&&M.jsx(Ck,{component:"legend",error:S,children:i}),M.jsx(hve,Cn(zt({},d),{value:C,onChange:w,valueLabelDisplay:d.valueLabelDisplay||"auto"})),E&&M.jsx(Tg,{error:S,children:E})]}))});yqe.displayName="SliderElement";var Oqe=I.forwardRef(function(e,t){var n=e.validation,r=n===void 0?{}:n,i=e.parseError,o=e.required,a=e.name,s=e.control,l=e.rows,u=e.resizeStyle,c=e.inputRef,d=e.inputProps,p=e.transform,h=Eo(e,["validation","parseError","required","name","control","rows","resizeStyle","inputRef","inputProps","transform"]),m=Es(),b=i||m,O=zt({},r,o&&!r.required&&{required:"This field is required"}),y=Pa({name:a,control:s,rules:O,disabled:h.disabled}),v=y.field,S=y.fieldState,k=S.error,C=La({value:v.value,onChange:v.onChange,transform:{input:typeof(p==null?void 0:p.input)=="function"?p.input:function(N){return N??""},output:typeof(p==null?void 0:p.output)=="function"?p.output:function(N){return N.target.value}}}),w=C.value,E=C.onChange,$=yn(v.ref,c);return M.jsx(Dp,Cn(zt({},h),{name:a,value:w,onChange:function(N){E(N),typeof h.onChange=="function"&&h.onChange(N)},onBlur:v.onBlur,required:o,error:!!k,helperText:k?typeof b=="function"?b(k):k.message:h.helperText,inputRef:$,multiline:!0,InputProps:{inputComponent:lY,inputProps:zt({minRows:l,style:{resize:u||"both"}},d||{})},ref:t}))});Oqe.displayName="TextareaAutosizeElement";var nF={},vqe=Fo;Object.defineProperty(nF,"__esModule",{value:!0});var rF=nF.default=void 0,Eqe=vqe(Bo()),Sqe=M;rF=nF.default=(0,Eqe.default)((0,Sqe.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 Ere(e){const{title:t,onSuccess:n,...r}=e,i=()=>{var a;(a=r==null?void 0:r.onClose)==null||a.call(r,new Event("Close Modal"),"escapeKeyDown")},o=async a=>{await n(a),i()};return M.jsx(W1,{disableAutoFocus:!0,...r,children:M.jsxs(Da,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:[M.jsx(Na,{sx:{position:"absolute",top:28,right:28},onClick:i,children:M.jsx(rF,{})}),M.jsxs(Li,{gap:4,children:[M.jsxs(Lr,{variant:"h5",children:["Create New ",t]}),M.jsx(Ip,{children:M.jsx(JGe,{defaultValues:{title:""},onSuccess:o,children:M.jsxs(Li,{gap:4,alignItems:"flex-end",children:[M.jsx(yre,{variant:"standard",name:"title",label:"Title of new note",required:!0,fullWidth:!0,inputProps:{maxLength:255}}),M.jsx(Ff,{type:"submit",variant:"contained",size:"large",children:"OK"})]})})})]})]})})}function Tqe(e){const{width:t,...n}=e,r=Cg(),i=K1(),{data:o,hasNextPage:a,fetchNextPage:s}=sVe(),{mutateAsync:l}=lVe(),u=I.useMemo(()=>(o==null?void 0:o.pages.reduce((O,y)=>O.concat(y.workspaces),[]))??[],[o==null?void 0:o.pages]),[c,d]=I.useState(!1),p=O=>{r(`/workspace/${O}`)},h=O=>{var y;i.workspaceSlug!==O&&(p(O),(y=n==null?void 0:n.onClose)==null||y.call(n,new Event("Close Popover"),"backdropClick"))},m=()=>{var O;d(y=>!y),n.open&&((O=n==null?void 0:n.onClose)==null||O.call(n,new Event("Close Popover"),"backdropClick"))},b=async O=>{const y=await l(O);p(y.slug)};return M.jsxs(M.Fragment,{children:[M.jsx(zN,{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...n,children:M.jsxs(Q1,{sx:{width:t},children:[M.jsx(Aa,{style:{maxHeight:300,overflow:"auto"},children:M.jsx(l1,{pageStart:0,loadMore:()=>s(),hasMore:a,loader:M.jsx(Aa,{className:"loader",children:M.jsx(Sg,{size:"sm"})},0),useWindow:!1,children:u.map(O=>M.jsxs(bp,{onClick:()=>h(O.slug),children:[M.jsx(ap,{primaryTypographyProps:{noWrap:!0,variant:"body2"},children:O.title}),i.workspaceSlug===O.slug&&M.jsx(iT,{children:M.jsx(nne,{fontSize:"small"})})]},O.id))})}),M.jsx(lc,{}),M.jsxs(bp,{onClick:m,children:[M.jsx(jN,{children:M.jsx(Uk,{fontSize:"small"})}),M.jsx(ap,{children:"Create Workspace"})]})]})}),M.jsx(Ere,{open:c,title:"Workspace",onClose:m,onSuccess:b})]})}const Sre=e=>["workspaces",e,"documents"],wqe=e=>T$({queryKey:Sre(e||""),queryFn:async({pageParam:n})=>(await cr.get(`/workspaces/${e}/documents`,{params:{cursor:n,page_size:20}})).data,enabled:!!e,initialPageParam:void 0,getPreviousPageParam:n=>n.cursor??void 0,getNextPageParam:n=>n.cursor??void 0}),kqe=e=>{const t=E$();return Gte({mutationFn:async n=>(await cr.post(`/workspaces/${e}/documents`,n)).data,onSuccess:()=>{t.invalidateQueries({queryKey:Sre(e)})}})};var iF={},xqe=Fo;Object.defineProperty(iF,"__esModule",{value:!0});var Tre=iF.default=void 0,Cqe=xqe(Bo()),Aqe=M;Tre=iF.default=(0,Cqe.default)((0,Aqe.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"People");const _qe=e=>["workspaces",e,"users"],Rqe=e=>T$({queryKey:_qe(e||""),queryFn:async({pageParam:t})=>(await cr.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 Iqe(e){const{open:t,onClose:n}=e,r=K1(),{data:i}=A$(r.workspaceSlug),{data:o,fetchNextPage:a,hasNextPage:s}=Rqe(i==null?void 0:i.id),l=I.useMemo(()=>(o==null?void 0:o.pages.reduce((u,c)=>u.concat(c.workspaceUsers),[]))??[],[o==null?void 0:o.pages]);return M.jsx(W1,{open:t,disableAutoFocus:!0,onClose:n,children:M.jsxs(Da,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:[M.jsx(Na,{sx:{position:"absolute",top:28,right:28},onClick:n,children:M.jsx(rF,{})}),M.jsxs(Li,{gap:4,children:[M.jsx(Lr,{variant:"h5",children:"Members"}),M.jsx(Aa,{style:{height:300,maxHeight:"100%",overflow:"auto"},width:1,children:M.jsx(l1,{pageStart:0,loadMore:()=>a(),hasMore:s,loader:M.jsx(Aa,{className:"loader",children:M.jsx(Sg,{size:"sm"})},0),useWindow:!1,children:M.jsx(Li,{gap:2,children:l.map(u=>{var c;return M.jsx(Li,{direction:"row",alignItems:"center",children:M.jsxs(Li,{direction:"row",alignItems:"center",gap:1,children:[M.jsx(fY,{children:(c=u.nickname)==null?void 0:c[0]}),M.jsx(Lr,{children:u.nickname})]})},u.id)})})})})]})]})})}const S2=240;function Dqe(){var S,k;const e=K1(),t=_c(Xte),{data:n}=A$(e.workspaceSlug),{mutateAsync:r}=kqe((n==null?void 0:n.id)||""),[i,o]=I.useState(null),[a,s]=I.useState(null),[l,u]=I.useState(!1),[c,d]=I.useState(!1),p=C=>{o(C.currentTarget)},h=()=>{o(null)},m=C=>{s(C.currentTarget)},b=()=>{s(null)},O=async C=>{await r(C)},y=()=>{u(C=>!C)},v=()=>{d(C=>!C)};return M.jsxs(xbe,{sx:{width:S2,flexShrink:0,"& .MuiDrawer-paper":{width:S2,boxSizing:"border-box"}},variant:"permanent",anchor:"left",open:!0,children:[M.jsxs(Eh,{disablePadding:!0,children:[M.jsxs(UC,{onClick:m,children:[M.jsx(ap,{primary:n==null?void 0:n.title,primaryTypographyProps:{variant:"subtitle1",noWrap:!0}}),M.jsx(iT,{children:M.jsx(Na,{children:a?M.jsx(tne,{}):M.jsx(ene,{})})})]}),M.jsx(Tqe,{open:!!a,anchorEl:a,onClose:b,width:S2-32})]}),M.jsx(lc,{}),M.jsx(Eh,{children:M.jsx(Ff,{variant:"contained",startIcon:M.jsx(Uk,{}),sx:{width:1},onClick:y,children:"New Note"})}),M.jsx(lc,{}),M.jsx(Eh,{disablePadding:!0,children:M.jsxs(UC,{onClick:v,children:[M.jsx(jN,{children:M.jsx(Tre,{})}),M.jsx(ap,{primary:"Members"})]})}),M.jsx(lc,{}),M.jsx(Eh,{sx:{mt:"auto"},children:M.jsx(Li,{width:1,alignItems:"center",justifyContent:"flex-end",direction:"row",children:M.jsx(ZG,{})})}),M.jsx(lc,{}),M.jsxs(Eh,{disablePadding:!0,children:[M.jsxs(UC,{onClick:p,children:[M.jsx(O1e,{children:M.jsx(fY,{children:(S=t.data)==null?void 0:S.nickname.charAt(0)})}),M.jsx(ap,{primary:(k=t.data)==null?void 0:k.nickname}),M.jsx(iT,{children:M.jsx(Kte,{})})]}),M.jsx(iVe,{open:!!i,anchorEl:i,onClose:h})]}),M.jsx(Ere,{open:l,title:"Note",onSuccess:O,onClose:y}),M.jsx(Iqe,{open:c,onClose:v})]})}//! moment.js //! version : 2.30.1 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com -var qne;function Ht(){return qne.apply(null,arguments)}function qGe(e){qne=e}function Nl(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Zf(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function ir(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function B$(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(ir(e,t))return!1;return!0}function ha(e){return e===void 0}function Ec(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function EO(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Zne(e,t){var n=[],r,i=e.length;for(r=0;r>>0,r;for(r=0;r0)for(n=0;n>>0,r;for(r=0;r0)for(n=0;n=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var V$=/(\[[^\[]*\])|(\\)?([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,iE=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,s2={},lm={};function dn(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(lm[e]=i),t&&(lm[t[0]]=function(){return Au(i.apply(this,arguments),t[1],t[2])}),n&&(lm[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function eqe(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function tqe(e){var t=e.match(V$),n,r;for(n=0,r=t.length;n=0&&iE.test(e);)e=e.replace(iE,r),iE.lastIndex=0,n-=1;return e}var nqe={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 rqe(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(V$).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var iqe="Invalid date";function oqe(){return this._invalidDate}var aqe="%d",sqe=/\d{1,2}/;function lqe(e){return this._ordinal.replace("%d",e)}var uqe={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 cqe(e,t,n,r){var i=this._relativeTime[n];return Uu(i)?i(e,t,n,r):i.replace(/%d/i,e)}function dqe(e,t){var n=this._relativeTime[e>0?"future":"past"];return Uu(n)?n(t):n.replace(/%s/i,t)}var nV={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 al(e){return typeof e=="string"?nV[e]||nV[e.toLowerCase()]:void 0}function H$(e){var t={},n,r;for(r in e)ir(e,r)&&(n=al(r),n&&(t[n]=e[r]));return t}var fqe={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 pqe(e){var t=[],n;for(n in e)ir(e,n)&&t.push({unit:n,priority:fqe[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var ere=/\d/,vs=/\d\d/,tre=/\d{3}/,W$=/\d{4}/,Sx=/[+-]?\d{6}/,Lr=/\d\d?/,nre=/\d\d\d\d?/,rre=/\d\d\d\d\d\d?/,Tx=/\d{1,3}/,Q$=/\d{1,4}/,wx=/[+-]?\d{1,6}/,Bg=/\d+/,kx=/[+-]?\d+/,hqe=/Z|[+-]\d\d:?\d\d/gi,xx=/Z|[+-]\d\d(?::?\d\d)?/gi,mqe=/[+-]?\d+(\.\d{1,3})?/,TO=/[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,Ug=/^[1-9]\d?/,Y$=/^([1-9]\d|\d)/,GT;GT={};function Qt(e,t,n){GT[e]=Uu(t)?t:function(r,i){return r&&n?n:t}}function gqe(e,t){return ir(GT,e)?GT[e](t._strict,t._locale):new RegExp(bqe(e))}function bqe(e){return uc(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,o){return n||r||i||o}))}function uc(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Ms(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Vn(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Ms(t)),n}var PI={};function hr(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),Ec(t)&&(r=function(o,a){a[t]=Vn(o)}),i=e.length,n=0;n68?1900:2e3)};var ire=jg("FullYear",!0);function Eqe(){return Cx(this.year())}function jg(e,t){return function(n){return n!=null?(ore(this,e,n),Ht.updateOffset(this,t),this):e1(this,e)}}function e1(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 ore(e,t,n){var r,i,o,a,s;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}o=n,a=e.month(),s=e.date(),s=s===29&&a===1&&!Cx(o)?28:s,i?r.setUTCFullYear(o,a,s):r.setFullYear(o,a,s)}}function Sqe(e){return e=al(e),Uu(this[e])?this[e]():this}function Tqe(e,t){if(typeof e=="object"){e=H$(e);var n=pqe(e),r,i=n.length;for(r=0;r=0?(s=new Date(e+400,t,n,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,o,a),s}function t1(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 qT(e,t,n){var r=7+t-n,i=(7+t1(e,0,r).getUTCDay()-t)%7;return-i+r-1}function dre(e,t,n,r,i){var o=(7+n-r)%7,a=qT(e,r,i),s=1+7*(t-1)+o+a,l,u;return s<=0?(l=e-1,u=Ub(l)+s):s>Ub(e)?(l=e+1,u=s-Ub(e)):(l=e,u=s),{year:l,dayOfYear:u}}function n1(e,t,n){var r=qT(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,o,a;return i<1?(a=e.year()-1,o=i+cc(a,t,n)):i>cc(e.year(),t,n)?(o=i-cc(e.year(),t,n),a=e.year()+1):(a=e.year(),o=i),{week:o,year:a}}function cc(e,t,n){var r=qT(e,t,n),i=qT(e+1,t,n);return(Ub(e)-r+i)/7}dn("w",["ww",2],"wo","week");dn("W",["WW",2],"Wo","isoWeek");Qt("w",Lr,Ug);Qt("ww",Lr,vs);Qt("W",Lr,Ug);Qt("WW",Lr,vs);wO(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Vn(e)});function Mqe(e){return n1(e,this._week.dow,this._week.doy).week}var $qe={dow:0,doy:6};function Fqe(){return this._week.dow}function Bqe(){return this._week.doy}function Uqe(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function jqe(e){var t=n1(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}dn("d",0,"do","day");dn("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});dn("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});dn("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});dn("e",0,0,"weekday");dn("E",0,0,"isoWeekday");Qt("d",Lr);Qt("e",Lr);Qt("E",Lr);Qt("dd",function(e,t){return t.weekdaysMinRegex(e)});Qt("ddd",function(e,t){return t.weekdaysShortRegex(e)});Qt("dddd",function(e,t){return t.weekdaysRegex(e)});wO(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:_n(n).invalidWeekday=e});wO(["d","e","E"],function(e,t,n,r){t[r]=Vn(e)});function zqe(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Vqe(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function q$(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Hqe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),fre="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Wqe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Qqe=TO,Yqe=TO,Gqe=TO;function qqe(e,t){var n=Nl(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?q$(n,this._week.dow):e?n[e.day()]:n}function Zqe(e){return e===!0?q$(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Xqe(e){return e===!0?q$(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Kqe(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=Bu([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?t==="dddd"?(i=fi.call(this._weekdaysParse,a),i!==-1?i:null):t==="ddd"?(i=fi.call(this._shortWeekdaysParse,a),i!==-1?i:null):(i=fi.call(this._minWeekdaysParse,a),i!==-1?i:null):t==="dddd"?(i=fi.call(this._weekdaysParse,a),i!==-1||(i=fi.call(this._shortWeekdaysParse,a),i!==-1)?i:(i=fi.call(this._minWeekdaysParse,a),i!==-1?i:null)):t==="ddd"?(i=fi.call(this._shortWeekdaysParse,a),i!==-1||(i=fi.call(this._weekdaysParse,a),i!==-1)?i:(i=fi.call(this._minWeekdaysParse,a),i!==-1?i:null)):(i=fi.call(this._minWeekdaysParse,a),i!==-1||(i=fi.call(this._weekdaysParse,a),i!==-1)?i:(i=fi.call(this._shortWeekdaysParse,a),i!==-1?i:null))}function Jqe(e,t,n){var r,i,o;if(this._weekdaysParseExact)return Kqe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=Bu([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function eZe(e){if(!this.isValid())return e!=null?this:NaN;var t=e1(this,"Day");return e!=null?(e=zqe(e,this.localeData()),this.add(e-t,"d")):t}function tZe(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 nZe(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Vqe(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function rZe(e){return this._weekdaysParseExact?(ir(this,"_weekdaysRegex")||Z$.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(ir(this,"_weekdaysRegex")||(this._weekdaysRegex=Qqe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function iZe(e){return this._weekdaysParseExact?(ir(this,"_weekdaysRegex")||Z$.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(ir(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Yqe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function oZe(e){return this._weekdaysParseExact?(ir(this,"_weekdaysRegex")||Z$.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(ir(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Gqe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Z$(){function e(c,d){return d.length-c.length}var t=[],n=[],r=[],i=[],o,a,s,l,u;for(o=0;o<7;o++)a=Bu([2e3,1]).day(o),s=uc(this.weekdaysMin(a,"")),l=uc(this.weekdaysShort(a,"")),u=uc(this.weekdays(a,"")),t.push(s),n.push(l),r.push(u),i.push(s),i.push(l),i.push(u);t.sort(e),n.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function X$(){return this.hours()%12||12}function aZe(){return this.hours()||24}dn("H",["HH",2],0,"hour");dn("h",["hh",2],0,X$);dn("k",["kk",2],0,aZe);dn("hmm",0,0,function(){return""+X$.apply(this)+Au(this.minutes(),2)});dn("hmmss",0,0,function(){return""+X$.apply(this)+Au(this.minutes(),2)+Au(this.seconds(),2)});dn("Hmm",0,0,function(){return""+this.hours()+Au(this.minutes(),2)});dn("Hmmss",0,0,function(){return""+this.hours()+Au(this.minutes(),2)+Au(this.seconds(),2)});function pre(e,t){dn(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}pre("a",!0);pre("A",!1);function hre(e,t){return t._meridiemParse}Qt("a",hre);Qt("A",hre);Qt("H",Lr,Y$);Qt("h",Lr,Ug);Qt("k",Lr,Ug);Qt("HH",Lr,vs);Qt("hh",Lr,vs);Qt("kk",Lr,vs);Qt("hmm",nre);Qt("hmmss",rre);Qt("Hmm",nre);Qt("Hmmss",rre);hr(["H","HH"],Pi);hr(["k","kk"],function(e,t,n){var r=Vn(e);t[Pi]=r===24?0:r});hr(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});hr(["h","hh"],function(e,t,n){t[Pi]=Vn(e),_n(n).bigHour=!0});hr("hmm",function(e,t,n){var r=e.length-2;t[Pi]=Vn(e.substr(0,r)),t[Tl]=Vn(e.substr(r)),_n(n).bigHour=!0});hr("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Pi]=Vn(e.substr(0,r)),t[Tl]=Vn(e.substr(r,2)),t[oc]=Vn(e.substr(i)),_n(n).bigHour=!0});hr("Hmm",function(e,t,n){var r=e.length-2;t[Pi]=Vn(e.substr(0,r)),t[Tl]=Vn(e.substr(r))});hr("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Pi]=Vn(e.substr(0,r)),t[Tl]=Vn(e.substr(r,2)),t[oc]=Vn(e.substr(i))});function sZe(e){return(e+"").toLowerCase().charAt(0)==="p"}var lZe=/[ap]\.?m?\.?/i,uZe=jg("Hours",!0);function cZe(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var mre={calendar:KGe,longDateFormat:nqe,invalidDate:iqe,ordinal:aqe,dayOfMonthOrdinalParse:sqe,relativeTime:uqe,months:kqe,monthsShort:are,week:$qe,weekdays:Hqe,weekdaysMin:Wqe,weekdaysShort:fre,meridiemParse:lZe},jr={},D0={},r1;function dZe(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(i=Ax(o.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&dZe(o,r)>=n-1)break;n--}t++}return r1}function pZe(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Ax(e){var t=null,n;if(jr[e]===void 0&&typeof oS<"u"&&oS&&oS.exports&&pZe(e))try{t=r1._abbr,n=require,n("./locale/"+e),Rd(t)}catch{jr[e]=null}return jr[e]}function Rd(e,t){var n;return e&&(ha(t)?n=Ac(e):n=K$(e,t),n?r1=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),r1._abbr}function K$(e,t){if(t!==null){var n,r=mre;if(t.abbr=e,jr[e]!=null)Kne("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=jr[e]._config;else if(t.parentLocale!=null)if(jr[t.parentLocale]!=null)r=jr[t.parentLocale]._config;else if(n=Ax(t.parentLocale),n!=null)r=n._config;else return D0[t.parentLocale]||(D0[t.parentLocale]=[]),D0[t.parentLocale].push({name:e,config:t}),null;return jr[e]=new z$(NI(r,t)),D0[e]&&D0[e].forEach(function(i){K$(i.name,i.config)}),Rd(e),jr[e]}else return delete jr[e],null}function hZe(e,t){if(t!=null){var n,r,i=mre;jr[e]!=null&&jr[e].parentLocale!=null?jr[e].set(NI(jr[e]._config,t)):(r=Ax(e),r!=null&&(i=r._config),t=NI(i,t),r==null&&(t.abbr=e),n=new z$(t),n.parentLocale=jr[e],jr[e]=n),Rd(e)}else jr[e]!=null&&(jr[e].parentLocale!=null?(jr[e]=jr[e].parentLocale,e===Rd()&&Rd(e)):jr[e]!=null&&delete jr[e]);return jr[e]}function Ac(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return r1;if(!Nl(e)){if(t=Ax(e),t)return t;e=[e]}return fZe(e)}function mZe(){return DI(jr)}function J$(e){var t,n=e._a;return n&&_n(e).overflow===-2&&(t=n[ic]<0||n[ic]>11?ic:n[fu]<1||n[fu]>G$(n[Po],n[ic])?fu:n[Pi]<0||n[Pi]>24||n[Pi]===24&&(n[Tl]!==0||n[oc]!==0||n[Mf]!==0)?Pi:n[Tl]<0||n[Tl]>59?Tl:n[oc]<0||n[oc]>59?oc:n[Mf]<0||n[Mf]>999?Mf:-1,_n(e)._overflowDayOfYear&&(tfu)&&(t=fu),_n(e)._overflowWeeks&&t===-1&&(t=Oqe),_n(e)._overflowWeekday&&t===-1&&(t=vqe),_n(e).overflow=t),e}var gZe=/^\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)?)?$/,bZe=/^\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)?)?$/,yZe=/Z|[+-]\d\d(?::?\d\d)?/,oE=[["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]],l2=[["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/]],OZe=/^\/?Date\((-?\d+)/i,vZe=/^(?:(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}))$/,EZe={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 gre(e){var t,n,r=e._i,i=gZe.exec(r)||bZe.exec(r),o,a,s,l,u=oE.length,c=l2.length;if(i){for(_n(e).iso=!0,t=0,n=u;tUb(a)||e._dayOfYear===0)&&(_n(e)._overflowDayOfYear=!0),n=t1(a,0,e._dayOfYear),e._a[ic]=n.getUTCMonth(),e._a[fu]=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[Pi]===24&&e._a[Tl]===0&&e._a[oc]===0&&e._a[Mf]===0&&(e._nextDay=!0,e._a[Pi]=0),e._d=(e._useUTC?t1:Lqe).apply(null,r),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Pi]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==o&&(_n(e).weekdayMismatch=!0)}}function _Ze(e){var t,n,r,i,o,a,s,l,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(o=1,a=4,n=yh(t.GG,e._a[Po],n1(Pr(),1,4).year),r=yh(t.W,1),i=yh(t.E,1),(i<1||i>7)&&(l=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,u=n1(Pr(),o,a),n=yh(t.gg,e._a[Po],u.year),r=yh(t.w,u.week),t.d!=null?(i=t.d,(i<0||i>6)&&(l=!0)):t.e!=null?(i=t.e+o,(t.e<0||t.e>6)&&(l=!0)):i=o),r<1||r>cc(n,o,a)?_n(e)._overflowWeeks=!0:l!=null?_n(e)._overflowWeekday=!0:(s=dre(n,r,i,o,a),e._a[Po]=s.year,e._dayOfYear=s.dayOfYear)}Ht.ISO_8601=function(){};Ht.RFC_2822=function(){};function tF(e){if(e._f===Ht.ISO_8601){gre(e);return}if(e._f===Ht.RFC_2822){bre(e);return}e._a=[],_n(e).empty=!0;var t=""+e._i,n,r,i,o,a,s=t.length,l=0,u,c;for(i=Jne(e._f,e._locale).match(V$)||[],c=i.length,n=0;n0&&_n(e).unusedInput.push(a),t=t.slice(t.indexOf(r)+r.length),l+=r.length),lm[o]?(r?_n(e).empty=!1:_n(e).unusedTokens.push(o),yqe(o,r,e)):e._strict&&!r&&_n(e).unusedTokens.push(o);_n(e).charsLeftOver=s-l,t.length>0&&_n(e).unusedInput.push(t),e._a[Pi]<=12&&_n(e).bigHour===!0&&e._a[Pi]>0&&(_n(e).bigHour=void 0),_n(e).parsedDateParts=e._a.slice(0),_n(e).meridiem=e._meridiem,e._a[Pi]=RZe(e._locale,e._a[Pi],e._meridiem),u=_n(e).era,u!==null&&(e._a[Po]=e._locale.erasConvertYear(u,e._a[Po])),eF(e),J$(e)}function RZe(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 IZe(e){var t,n,r,i,o,a,s=!1,l=e._f.length;if(l===0){_n(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;ithis?this:e:Ex()});function vre(e,t){var n,r;if(t.length===1&&Nl(t[0])&&(t=t[0]),!t.length)return Pr();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function KZe(){if(!ha(this._isDSTShifted))return this._isDSTShifted;var e={},t;return j$(e,this),e=yre(e),e._a?(t=e._isUTC?Bu(e._a):Pr(e._a),this._isDSTShifted=this.isValid()&&VZe(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function JZe(){return this.isValid()?!this._isUTC:!1}function eXe(){return this.isValid()?this._isUTC:!1}function Sre(){return this.isValid()?this._isUTC&&this._offset===0:!1}var tXe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,nXe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function jl(e,t){var n=e,r=null,i,o,a;return KE(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Ec(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=tXe.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:Vn(r[fu])*i,h:Vn(r[Pi])*i,m:Vn(r[Tl])*i,s:Vn(r[oc])*i,ms:Vn(LI(r[Mf]*1e3))*i}):(r=nXe.exec(e))?(i=r[1]==="-"?-1:1,n={y:hf(r[2],i),M:hf(r[3],i),w:hf(r[4],i),d:hf(r[5],i),h:hf(r[6],i),m:hf(r[7],i),s:hf(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=rXe(Pr(n.from),Pr(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),o=new _x(n),KE(e)&&ir(e,"_locale")&&(o._locale=e._locale),KE(e)&&ir(e,"_isValid")&&(o._isValid=e._isValid),o}jl.fn=_x.prototype;jl.invalid=zZe;function hf(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function iV(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 rXe(e,t){var n;return e.isValid()&&t.isValid()?(t=rF(t,e),e.isBefore(t)?n=iV(e,t):(n=iV(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Tre(e,t){return function(n,r){var i,o;return r!==null&&!isNaN(+r)&&(Kne(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),i=jl(n,r),wre(this,i,e),this}}function wre(e,t,n,r){var i=t._milliseconds,o=LI(t._days),a=LI(t._months);e.isValid()&&(r=r??!0,a&&lre(e,e1(e,"Month")+a*n),o&&ore(e,"Date",e1(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&Ht.updateOffset(e,o||a))}var iXe=Tre(1,"add"),oXe=Tre(-1,"subtract");function kre(e){return typeof e=="string"||e instanceof String}function aXe(e){return Dl(e)||EO(e)||kre(e)||Ec(e)||lXe(e)||sXe(e)||e===null||e===void 0}function sXe(e){var t=Zf(e)&&!B$(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,o,a=r.length;for(i=0;in.valueOf():n.valueOf()9999?XE(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Uu(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",XE(n,"Z")):XE(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function SXe(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,o;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",o=t+'[")]',this.format(n+r+i+o)}function TXe(e){e||(e=this.isUtc()?Ht.defaultFormatUtc:Ht.defaultFormat);var t=XE(this,e);return this.localeData().postformat(t)}function wXe(e,t){return this.isValid()&&(Dl(e)&&e.isValid()||Pr(e).isValid())?jl({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function kXe(e){return this.from(Pr(),e)}function xXe(e,t){return this.isValid()&&(Dl(e)&&e.isValid()||Pr(e).isValid())?jl({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function CXe(e){return this.to(Pr(),e)}function xre(e){var t;return e===void 0?this._locale._abbr:(t=Ac(e),t!=null&&(this._locale=t),this)}var Cre=ol("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 Are(){return this._locale}var ZT=1e3,um=60*ZT,XT=60*um,_re=(365*400+97)*24*XT;function cm(e,t){return(e%t+t)%t}function Rre(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-_re:new Date(e,t,n).valueOf()}function Ire(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-_re:Date.UTC(e,t,n)}function AXe(e){var t,n;if(e=al(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Ire:Rre,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-=cm(t+(this._isUTC?0:this.utcOffset()*um),XT);break;case"minute":t=this._d.valueOf(),t-=cm(t,um);break;case"second":t=this._d.valueOf(),t-=cm(t,ZT);break}return this._d.setTime(t),Ht.updateOffset(this,!0),this}function _Xe(e){var t,n;if(e=al(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Ire:Rre,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+=XT-cm(t+(this._isUTC?0:this.utcOffset()*um),XT)-1;break;case"minute":t=this._d.valueOf(),t+=um-cm(t,um)-1;break;case"second":t=this._d.valueOf(),t+=ZT-cm(t,ZT)-1;break}return this._d.setTime(t),Ht.updateOffset(this,!0),this}function RXe(){return this._d.valueOf()-(this._offset||0)*6e4}function IXe(){return Math.floor(this.valueOf()/1e3)}function NXe(){return new Date(this.valueOf())}function DXe(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function PXe(){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 LXe(){return this.isValid()?this.toISOString():null}function MXe(){return U$(this)}function $Xe(){return hd({},_n(this))}function FXe(){return _n(this).overflow}function BXe(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}dn("N",0,0,"eraAbbr");dn("NN",0,0,"eraAbbr");dn("NNN",0,0,"eraAbbr");dn("NNNN",0,0,"eraName");dn("NNNNN",0,0,"eraNarrow");dn("y",["y",1],"yo","eraYear");dn("y",["yy",2],0,"eraYear");dn("y",["yyy",3],0,"eraYear");dn("y",["yyyy",4],0,"eraYear");Qt("N",iF);Qt("NN",iF);Qt("NNN",iF);Qt("NNNN",ZXe);Qt("NNNNN",XXe);hr(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?_n(n).era=i:_n(n).invalidEra=e});Qt("y",Bg);Qt("yy",Bg);Qt("yyy",Bg);Qt("yyyy",Bg);Qt("yo",KXe);hr(["y","yy","yyy","yyyy"],Po);hr(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Po]=n._locale.eraYearOrdinalParse(e,i):t[Po]=parseInt(e,10)});function UXe(e,t){var n,r,i,o=this._eras||Ac("en")._eras;for(n=0,r=o.length;n=0)return o[r]}function zXe(e,t){var n=e.since<=e.until?1:-1;return t===void 0?Ht(e.since).year():Ht(e.since).year()+(t-e.offset)*n}function VXe(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;eo&&(t=o),oKe.call(this,e,t,n,r,i))}function oKe(e,t,n,r,i){var o=dre(e,t,n,r,i),a=t1(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}dn("Q",0,"Qo","quarter");Qt("Q",ere);hr("Q",function(e,t){t[ic]=(Vn(e)-1)*3});function aKe(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}dn("D",["DD",2],"Do","date");Qt("D",Lr,Ug);Qt("DD",Lr,vs);Qt("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});hr(["D","DD"],fu);hr("Do",function(e,t){t[fu]=Vn(e.match(Lr)[0])});var Dre=jg("Date",!0);dn("DDD",["DDDD",3],"DDDo","dayOfYear");Qt("DDD",Tx);Qt("DDDD",tre);hr(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Vn(e)});function sKe(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}dn("m",["mm",2],0,"minute");Qt("m",Lr,Y$);Qt("mm",Lr,vs);hr(["m","mm"],Tl);var lKe=jg("Minutes",!1);dn("s",["ss",2],0,"second");Qt("s",Lr,Y$);Qt("ss",Lr,vs);hr(["s","ss"],oc);var uKe=jg("Seconds",!1);dn("S",0,0,function(){return~~(this.millisecond()/100)});dn(0,["SS",2],0,function(){return~~(this.millisecond()/10)});dn(0,["SSS",3],0,"millisecond");dn(0,["SSSS",4],0,function(){return this.millisecond()*10});dn(0,["SSSSS",5],0,function(){return this.millisecond()*100});dn(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});dn(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});dn(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});dn(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Qt("S",Tx,ere);Qt("SS",Tx,vs);Qt("SSS",Tx,tre);var md,Pre;for(md="SSSS";md.length<=9;md+="S")Qt(md,Bg);function cKe(e,t){t[Mf]=Vn(("0."+e)*1e3)}for(md="S";md.length<=9;md+="S")hr(md,cKe);Pre=jg("Milliseconds",!1);dn("z",0,0,"zoneAbbr");dn("zz",0,0,"zoneName");function dKe(){return this._isUTC?"UTC":""}function fKe(){return this._isUTC?"Coordinated Universal Time":""}var Tt=SO.prototype;Tt.add=iXe;Tt.calendar=dXe;Tt.clone=fXe;Tt.diff=OXe;Tt.endOf=_Xe;Tt.format=TXe;Tt.from=wXe;Tt.fromNow=kXe;Tt.to=xXe;Tt.toNow=CXe;Tt.get=Sqe;Tt.invalidAt=FXe;Tt.isAfter=pXe;Tt.isBefore=hXe;Tt.isBetween=mXe;Tt.isSame=gXe;Tt.isSameOrAfter=bXe;Tt.isSameOrBefore=yXe;Tt.isValid=MXe;Tt.lang=Cre;Tt.locale=xre;Tt.localeData=Are;Tt.max=MZe;Tt.min=LZe;Tt.parsingFlags=$Xe;Tt.set=Tqe;Tt.startOf=AXe;Tt.subtract=oXe;Tt.toArray=DXe;Tt.toObject=PXe;Tt.toDate=NXe;Tt.toISOString=EXe;Tt.inspect=SXe;typeof Symbol<"u"&&Symbol.for!=null&&(Tt[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});Tt.toJSON=LXe;Tt.toString=vXe;Tt.unix=IXe;Tt.valueOf=RXe;Tt.creationData=BXe;Tt.eraName=VXe;Tt.eraNarrow=HXe;Tt.eraAbbr=WXe;Tt.eraYear=QXe;Tt.year=ire;Tt.isLeapYear=Eqe;Tt.weekYear=JXe;Tt.isoWeekYear=eKe;Tt.quarter=Tt.quarters=aKe;Tt.month=ure;Tt.daysInMonth=Nqe;Tt.week=Tt.weeks=Uqe;Tt.isoWeek=Tt.isoWeeks=jqe;Tt.weeksInYear=rKe;Tt.weeksInWeekYear=iKe;Tt.isoWeeksInYear=tKe;Tt.isoWeeksInISOWeekYear=nKe;Tt.date=Dre;Tt.day=Tt.days=eZe;Tt.weekday=tZe;Tt.isoWeekday=nZe;Tt.dayOfYear=sKe;Tt.hour=Tt.hours=uZe;Tt.minute=Tt.minutes=lKe;Tt.second=Tt.seconds=uKe;Tt.millisecond=Tt.milliseconds=Pre;Tt.utcOffset=WZe;Tt.utc=YZe;Tt.local=GZe;Tt.parseZone=qZe;Tt.hasAlignedHourOffset=ZZe;Tt.isDST=XZe;Tt.isLocal=JZe;Tt.isUtcOffset=eXe;Tt.isUtc=Sre;Tt.isUTC=Sre;Tt.zoneAbbr=dKe;Tt.zoneName=fKe;Tt.dates=ol("dates accessor is deprecated. Use date instead.",Dre);Tt.months=ol("months accessor is deprecated. Use month instead",ure);Tt.years=ol("years accessor is deprecated. Use year instead",ire);Tt.zone=ol("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",QZe);Tt.isDSTShifted=ol("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",KZe);function pKe(e){return Pr(e*1e3)}function hKe(){return Pr.apply(null,arguments).parseZone()}function Lre(e){return e}var or=z$.prototype;or.calendar=JGe;or.longDateFormat=rqe;or.invalidDate=oqe;or.ordinal=lqe;or.preparse=Lre;or.postformat=Lre;or.relativeTime=cqe;or.pastFuture=dqe;or.set=XGe;or.eras=UXe;or.erasParse=jXe;or.erasConvertYear=zXe;or.erasAbbrRegex=GXe;or.erasNameRegex=YXe;or.erasNarrowRegex=qXe;or.months=Aqe;or.monthsShort=_qe;or.monthsParse=Iqe;or.monthsRegex=Pqe;or.monthsShortRegex=Dqe;or.week=Mqe;or.firstDayOfYear=Bqe;or.firstDayOfWeek=Fqe;or.weekdays=qqe;or.weekdaysMin=Xqe;or.weekdaysShort=Zqe;or.weekdaysParse=Jqe;or.weekdaysRegex=rZe;or.weekdaysShortRegex=iZe;or.weekdaysMinRegex=oZe;or.isPM=sZe;or.meridiem=cZe;function KT(e,t,n,r){var i=Ac(),o=Bu().set(r,t);return i[n](o,e)}function Mre(e,t,n){if(Ec(e)&&(t=e,e=void 0),e=e||"",t!=null)return KT(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=KT(e,r,n,"month");return i}function aF(e,t,n,r){typeof e=="boolean"?(Ec(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Ec(t)&&(n=t,t=void 0),t=t||"");var i=Ac(),o=e?i._week.dow:0,a,s=[];if(n!=null)return KT(t,(n+o)%7,r,"day");for(a=0;a<7;a++)s[a]=KT(t,(a+o)%7,r,"day");return s}function mKe(e,t){return Mre(e,t,"months")}function gKe(e,t){return Mre(e,t,"monthsShort")}function bKe(e,t,n){return aF(e,t,n,"weekdays")}function yKe(e,t,n){return aF(e,t,n,"weekdaysShort")}function OKe(e,t,n){return aF(e,t,n,"weekdaysMin")}Rd("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=Vn(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});Ht.lang=ol("moment.lang is deprecated. Use moment.locale instead.",Rd);Ht.langData=ol("moment.langData is deprecated. Use moment.localeData instead.",Ac);var Wu=Math.abs;function vKe(){var e=this._data;return this._milliseconds=Wu(this._milliseconds),this._days=Wu(this._days),this._months=Wu(this._months),e.milliseconds=Wu(e.milliseconds),e.seconds=Wu(e.seconds),e.minutes=Wu(e.minutes),e.hours=Wu(e.hours),e.months=Wu(e.months),e.years=Wu(e.years),this}function $re(e,t,n,r){var i=jl(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function EKe(e,t){return $re(this,e,t,1)}function SKe(e,t){return $re(this,e,t,-1)}function oV(e){return e<0?Math.floor(e):Math.ceil(e)}function TKe(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,o,a,s,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=oV($I(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=Ms(e/1e3),r.seconds=i%60,o=Ms(i/60),r.minutes=o%60,a=Ms(o/60),r.hours=a%24,t+=Ms(a/24),l=Ms(Fre(t)),n+=l,t-=oV($I(l)),s=Ms(n/12),n%=12,r.days=t,r.months=n,r.years=s,this}function Fre(e){return e*4800/146097}function $I(e){return e*146097/4800}function wKe(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=al(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+Fre(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round($I(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function _c(e){return function(){return this.as(e)}}var Bre=_c("ms"),kKe=_c("s"),xKe=_c("m"),CKe=_c("h"),AKe=_c("d"),_Ke=_c("w"),RKe=_c("M"),IKe=_c("Q"),NKe=_c("y"),DKe=Bre;function PKe(){return jl(this)}function LKe(e){return e=al(e),this.isValid()?this[e+"s"]():NaN}function Np(e){return function(){return this.isValid()?this._data[e]:NaN}}var MKe=Np("milliseconds"),$Ke=Np("seconds"),FKe=Np("minutes"),BKe=Np("hours"),UKe=Np("days"),jKe=Np("months"),zKe=Np("years");function VKe(){return Ms(this.days()/7)}var qu=Math.round,jh={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function HKe(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function WKe(e,t,n,r){var i=jl(e).abs(),o=qu(i.as("s")),a=qu(i.as("m")),s=qu(i.as("h")),l=qu(i.as("d")),u=qu(i.as("M")),c=qu(i.as("w")),d=qu(i.as("y")),p=o<=n.ss&&["s",o]||o0,p[4]=r,HKe.apply(null,p)}function QKe(e){return e===void 0?qu:typeof e=="function"?(qu=e,!0):!1}function YKe(e,t){return jh[e]===void 0?!1:t===void 0?jh[e]:(jh[e]=t,e==="s"&&(jh.ss=t-1),!0)}function GKe(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=jh,i,o;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},jh,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),o=WKe(this,!n,r,i),n&&(o=i.pastFuture(+this,o)),i.postformat(o)}var u2=Math.abs;function oh(e){return(e>0)-(e<0)||+e}function Ix(){if(!this.isValid())return this.localeData().invalidDate();var e=u2(this._milliseconds)/1e3,t=u2(this._days),n=u2(this._months),r,i,o,a,s=this.asSeconds(),l,u,c,d;return s?(r=Ms(e/60),i=Ms(r/60),e%=60,r%=60,o=Ms(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",u=oh(this._months)!==oh(s)?"-":"",c=oh(this._days)!==oh(s)?"-":"",d=oh(this._milliseconds)!==oh(s)?"-":"",l+"P"+(o?u+o+"Y":"")+(n?u+n+"M":"")+(t?c+t+"D":"")+(i||r||e?"T":"")+(i?d+i+"H":"")+(r?d+r+"M":"")+(e?d+a+"S":"")):"P0D"}var Jn=_x.prototype;Jn.isValid=jZe;Jn.abs=vKe;Jn.add=EKe;Jn.subtract=SKe;Jn.as=wKe;Jn.asMilliseconds=Bre;Jn.asSeconds=kKe;Jn.asMinutes=xKe;Jn.asHours=CKe;Jn.asDays=AKe;Jn.asWeeks=_Ke;Jn.asMonths=RKe;Jn.asQuarters=IKe;Jn.asYears=NKe;Jn.valueOf=DKe;Jn._bubble=TKe;Jn.clone=PKe;Jn.get=LKe;Jn.milliseconds=MKe;Jn.seconds=$Ke;Jn.minutes=FKe;Jn.hours=BKe;Jn.days=UKe;Jn.weeks=VKe;Jn.months=jKe;Jn.years=zKe;Jn.humanize=GKe;Jn.toISOString=Ix;Jn.toString=Ix;Jn.toJSON=Ix;Jn.locale=xre;Jn.localeData=Are;Jn.toIsoString=ol("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ix);Jn.lang=Cre;dn("X",0,0,"unix");dn("x",0,0,"valueOf");Qt("x",kx);Qt("X",mqe);hr("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});hr("x",function(e,t,n){n._d=new Date(Vn(e))});//! moment.js -Ht.version="2.30.1";qGe(Pr);Ht.fn=Tt;Ht.min=$Ze;Ht.max=FZe;Ht.now=BZe;Ht.utc=Bu;Ht.unix=pKe;Ht.months=mKe;Ht.isDate=EO;Ht.locale=Rd;Ht.invalid=Ex;Ht.duration=jl;Ht.isMoment=Dl;Ht.weekdays=bKe;Ht.parseZone=hKe;Ht.localeData=Ac;Ht.isDuration=KE;Ht.monthsShort=gKe;Ht.weekdaysMin=OKe;Ht.defineLocale=K$;Ht.updateLocale=hZe;Ht.locales=mZe;Ht.weekdaysShort=yKe;Ht.normalizeUnits=al;Ht.relativeTimeRounding=QKe;Ht.relativeTimeThreshold=YKe;Ht.calendarFormat=cXe;Ht.prototype=Tt;Ht.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};var sF={},qKe=$o;Object.defineProperty(sF,"__esModule",{value:!0});var Ure=sF.default=void 0,ZKe=qKe(Fo()),aV=M;Ure=sF.default=(0,ZKe.default)([(0,aV.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,aV.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");function XKe(e){const{document:t}=e,n=gg(),r=()=>{n(`/document/${t.slug}`)};return M.jsx(qme,{sx:{width:"100%"},children:M.jsx(rge,{onClick:r,children:M.jsxs(uge,{children:[M.jsx(Gr,{variant:"h5",component:"div",noWrap:!0,children:t.title}),M.jsxs(ho,{direction:"row",alignItems:"center",gap:1,children:[M.jsx(Ure,{fontSize:"small",sx:{color:"text.secondary"}}),M.jsxs(Gr,{variant:"body2",color:"text.secondary",noWrap:!0,children:["Changed ",Ht(t.updatedAt).fromNow()]})]})]})})})}function KKe(){const e=F1(),{data:t}=l$(e.workspaceSlug),{data:n,fetchNextPage:r,hasNextPage:i}=UGe(t==null?void 0:t.id),o=N.useMemo(()=>(n==null?void 0:n.pages.reduce((a,s)=>a.concat(s.documents),[]))??[],[n==null?void 0:n.pages]);return M.jsxs(ho,{direction:"row",children:[M.jsx(GGe,{}),M.jsx(xa,{style:{maxHeight:"100vh",overflow:"auto"},width:1,children:M.jsx(qy,{pageStart:0,loadMore:()=>r(),hasMore:i,loader:M.jsx(xa,{className:"loader",children:M.jsx(dg,{size:"sm"})},0),useWindow:!1,children:M.jsx(xa,{p:2,width:1,children:M.jsx(Ih,{container:!0,spacing:{xs:2,md:3},columns:{xs:4,sm:8,md:12,lg:12},children:o.map(a=>M.jsx(Ih,{item:!0,xs:4,sm:4,md:4,lg:3,children:M.jsx(XKe,{document:a})},a.id))})})})})]})}const JKe=[{path:"",accessType:2,element:M.jsx(Jje,{}),children:[{path:"",element:M.jsx(ize,{})}]},{path:"workspace",accessType:0,element:M.jsx(uze,{}),children:[{path:":workspaceSlug",element:M.jsx(KKe,{})}]},{path:"document",accessType:0,element:M.jsx(xke,{}),children:[{path:":documentSlug",element:M.jsx(Kje,{})}]},{path:"auth/callback",accessType:2,element:M.jsx(lze,{})}],eJe=e=>e.map(t=>(t.accessType===0?t.element=M.jsx(pze,{children:t.element}):t.accessType===2&&(t.element=M.jsx(fze,{children:t.element})),t)),tJe=eJe(JKe);var nJe={VITE_YORKIE_API_ADDR:"https://api.yorkie.dev",VITE_YORKIE_API_KEY:"cmggkp8ksk14av0keupg",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const rJe=NSe(tJe);cr.defaults.baseURL=nJe.VITE_API_ADDR;function iJe(){const e=wc(GY),t=pg("(prefers-color-scheme: dark)"),n=N.useMemo(()=>{const r=t?"dark":"light";return tD({typography:{button:{textTransform:"none"}},palette:{mode:e.theme=="default"?r:e.theme}})},[e.theme,t]);return M.jsxs(fde,{theme:n,children:[M.jsx(zge,{}),M.jsx(xa,{minHeight:"100vh",children:M.jsx(jSe,{router:rJe})})]})}var lF={},uF={};uF.__esModule=!0;uF.default=sJe;function eS(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?eS=function(n){return typeof n}:eS=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},eS(e)}function c2(){}var oJe={getItem:c2,setItem:c2,removeItem:c2};function aJe(e){if((typeof self>"u"?"undefined":eS(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 sJe(e){var t="".concat(e,"Storage");return aJe(t)?self[t]:oJe}lF.__esModule=!0;lF.default=cJe;var lJe=uJe(uF);function uJe(e){return e&&e.__esModule?e:{default:e}}function cJe(e){var t=(0,lJe.default)(e);return{getItem:function(r){return new Promise(function(i,o){i(t.getItem(r))})},setItem:function(r,i){return new Promise(function(o,a){o(t.setItem(r,i))})},removeItem:function(r){return new Promise(function(i,o){i(t.removeItem(r))})}}}var jre=void 0,dJe=fJe(lF);function fJe(e){return e&&e.__esModule?e:{default:e}}var pJe=(0,dJe.default)("local");jre=pJe;var cF="persist:",zre="persist/FLUSH",dF="persist/REHYDRATE",Vre="persist/PAUSE",Hre="persist/PERSIST",Wre="persist/PURGE",Qre="persist/REGISTER",hJe=-1;function tS(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?tS=function(n){return typeof n}:tS=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},tS(e)}function sV(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 mJe(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xJe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var CJe=5e3;function AJe(e,t){var n=e.version!==void 0?e.version:hJe;e.debug;var r=e.stateReconciler===void 0?bJe:e.stateReconciler,i=e.getStoredState||vJe,o=e.timeout!==void 0?e.timeout:CJe,a=null,s=!1,l=!0,u=function(d){return d._persist.rehydrated&&a&&!l&&a.update(d),d};return function(c,d){var p=c||{},h=p._persist,m=kJe(p,["_persist"]),y=m;if(d.type===Hre){var O=!1,b=function($,D){O||(d.rehydrate(e.key,$,D),O=!0)};if(o&&setTimeout(function(){!O&&b(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},o),l=!1,a||(a=yJe(e)),h)return Qu({},t(y,d),{_persist:h});if(typeof d.rehydrate!="function"||typeof d.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return d.register(e.key),i(e).then(function(E){var $=e.migrate||function(D,R){return Promise.resolve(D)};$(E,n).then(function(D){b(D)},function(D){b(void 0,D)})},function(E){b(void 0,E)}),Qu({},t(y,d),{_persist:{version:n,rehydrated:!1}})}else{if(d.type===Wre)return s=!0,d.result(SJe(e)),Qu({},t(y,d),{_persist:h});if(d.type===zre)return d.result(a&&a.flush()),Qu({},t(y,d),{_persist:h});if(d.type===Vre)l=!0;else if(d.type===dF){if(s)return Qu({},y,{_persist:Qu({},h,{rehydrated:!0})});if(d.key===e.key){var v=t(y,d),S=d.payload,k=r!==!1&&S!==void 0?r(S,c,v,e):v,C=Qu({},k,{_persist:Qu({},h,{rehydrated:!0})});return u(C)}}}if(!h)return t(c,d);var w=t(y,d);return w===y?c:u(Qu({},w,{_persist:h}))}}function uV(e){return IJe(e)||RJe(e)||_Je()}function _Je(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function RJe(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function IJe(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:Yre,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case Qre:return FI({},t,{registry:[].concat(uV(t.registry),[n.key])});case dF:var r=t.registry.indexOf(n.key),i=uV(t.registry);return i.splice(r,1),FI({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function PJe(e,t,n){var r=n||!1,i=DD(DJe,Yre,t&&t.enhancer?t.enhancer:void 0),o=function(u){i.dispatch({type:Qre,key:u})},a=function(u,c,d){var p={type:dF,payload:c,err:d,key:u};e.dispatch(p),i.dispatch(p),r&&s.getState().bootstrapped&&(r(),r=!1)},s=FI({},i,{purge:function(){var u=[];return e.dispatch({type:Wre,result:function(d){u.push(d)}}),Promise.all(u)},flush:function(){var u=[];return e.dispatch({type:zre,result:function(d){u.push(d)}}),Promise.all(u)},pause:function(){e.dispatch({type:Vre})},persist:function(){e.dispatch({type:Hre,register:o,rehydrate:a})}});return t&&t.manualPersist||s.persist(),s}const LJe=DY({auth:sze,config:BTe,user:dze,editor:bke}),MJe={key:"root",storage:jre,whitelist:["auth","config"]},$Je=AJe(MJe,LJe),Gre=kTe({reducer:$Je,middleware:e=>e({serializableCheck:{ignoredActions:["persist/PERSIST","editor/setDoc","editor/setClient"],ignoredPaths:["editor.doc","editor.client"]},immutableCheck:{ignoredPaths:["editor.doc","editor.client"]}})});function nS(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?nS=function(n){return typeof n}:nS=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},nS(e)}function FJe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dV(e,t){for(var n=0;n["users",e],VJe=()=>{const e=hg(),t=wc(aze);t.accessToken&&(cr.defaults.headers.common.Authorization=`Bearer ${t.accessToken}`);const n=n$({queryKey:zJe(t.accessToken||""),enabled:!!t.accessToken,queryFn:async()=>(await cr.get("/users")).data});return N.useEffect(()=>{n.isSuccess?e(wI(n.data)):n.isError&&(e(i$(null)),e(wI(null)),cr.defaults.headers.common.Authorization="")},[e,n.data,n.isError,n.isSuccess]),n};function HJe(e){const{children:t}=e,{isSuccess:n,isLoading:r}=VJe();return M.jsx(o$.Provider,{value:{isLoggedIn:n,isLoading:r},children:t})}const WJe=PJe(Gre),QJe=new Dje;d2.createRoot(document.getElementById("root")).render(M.jsx(vn.StrictMode,{children:M.jsx(vEe,{store:Gre,children:M.jsx(qre,{loading:null,persistor:WJe,children:M.jsx(Fje,{client:QJe,children:M.jsx(HJe,{children:M.jsx(iJe,{})})})})})}))});export default YJe(); +`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var EV={};function Cre(e,t){Ht.deprecationHandler!=null&&Ht.deprecationHandler(e,t),EV[e]||(xre(t),EV[e]=!0)}Ht.suppressDeprecationWarnings=!1;Ht.deprecationHandler=null;function Vu(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Lqe(e){var t,n;for(n in e)ir(e,n)&&(t=e[n],Vu(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function JI(e,t){var n=vd({},e),r;for(r in t)ir(t,r)&&(sp(e[r])&&sp(t[r])?(n[r]={},vd(n[r],e[r]),vd(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)ir(e,r)&&!ir(t,r)&&sp(e[r])&&(n[r]=vd({},n[r]));return n}function lF(e){e!=null&&this.set(e)}var eD;Object.keys?eD=Object.keys:eD=function(e){var t,n=[];for(t in e)ir(e,t)&&n.push(t);return n};var Mqe={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function $qe(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return Vu(r)?r.call(t,n):r}function Iu(e,t,n){var r=""+Math.abs(e),i=t-r.length,o=e>=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var uF=/(\[[^\[]*\])|(\\)?([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,yE=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,w2={},Om={};function fn(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(Om[e]=i),t&&(Om[t[0]]=function(){return Iu(i.apply(this,arguments),t[1],t[2])}),n&&(Om[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function Fqe(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Bqe(e){var t=e.match(uF),n,r;for(n=0,r=t.length;n=0&&yE.test(e);)e=e.replace(yE,r),yE.lastIndex=0,n-=1;return e}var Uqe={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 jqe(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(uF).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var zqe="Invalid date";function Vqe(){return this._invalidDate}var Hqe="%d",Wqe=/\d{1,2}/;function Qqe(e){return this._ordinal.replace("%d",e)}var Yqe={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 Gqe(e,t,n,r){var i=this._relativeTime[n];return Vu(i)?i(e,t,n,r):i.replace(/%d/i,e)}function qqe(e,t){var n=this._relativeTime[e>0?"future":"past"];return Vu(n)?n(t):n.replace(/%s/i,t)}var SV={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ll(e){return typeof e=="string"?SV[e]||SV[e.toLowerCase()]:void 0}function cF(e){var t={},n,r;for(r in e)ir(e,r)&&(n=ll(r),n&&(t[n]=e[r]));return t}var Zqe={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 Xqe(e){var t=[],n;for(n in e)ir(e,n)&&t.push({unit:n,priority:Zqe[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var _re=/\d/,Ss=/\d\d/,Rre=/\d{3}/,dF=/\d{4}/,Bx=/[+-]?\d{6}/,Fr=/\d\d?/,Ire=/\d\d\d\d?/,Dre=/\d\d\d\d\d\d?/,Ux=/\d{1,3}/,fF=/\d{1,4}/,jx=/[+-]?\d{1,6}/,Zg=/\d+/,zx=/[+-]?\d+/,Kqe=/Z|[+-]\d\d:?\d\d/gi,Vx=/Z|[+-]\d\d(?::?\d\d)?/gi,Jqe=/[+-]?\d+(\.\d{1,3})?/,$O=/[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,Xg=/^[1-9]\d?/,pF=/^([1-9]\d|\d)/,cw;cw={};function Yt(e,t,n){cw[e]=Vu(t)?t:function(r,i){return r&&n?n:t}}function eZe(e,t){return ir(cw,e)?cw[e](t._strict,t._locale):new RegExp(tZe(e))}function tZe(e){return hc(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,o){return n||r||i||o}))}function hc(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Fs(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Vn(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Fs(t)),n}var tD={};function hr(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),xc(t)&&(r=function(o,a){a[t]=Vn(o)}),i=e.length,n=0;n68?1900:2e3)};var Nre=Kg("FullYear",!0);function oZe(){return Hx(this.year())}function Kg(e,t){return function(n){return n!=null?(Pre(this,e,n),Ht.updateOffset(this,t),this):p1(this,e)}}function p1(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 Pre(e,t,n){var r,i,o,a,s;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}o=n,a=e.month(),s=e.date(),s=s===29&&a===1&&!Hx(o)?28:s,i?r.setUTCFullYear(o,a,s):r.setFullYear(o,a,s)}}function aZe(e){return e=ll(e),Vu(this[e])?this[e]():this}function sZe(e,t){if(typeof e=="object"){e=cF(e);var n=Xqe(e),r,i=n.length;for(r=0;r=0?(s=new Date(e+400,t,n,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,o,a),s}function h1(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 dw(e,t,n){var r=7+t-n,i=(7+h1(e,0,r).getUTCDay()-t)%7;return-i+r-1}function Ure(e,t,n,r,i){var o=(7+n-r)%7,a=dw(e,r,i),s=1+7*(t-1)+o+a,l,u;return s<=0?(l=e-1,u=Xb(l)+s):s>Xb(e)?(l=e+1,u=s-Xb(e)):(l=e,u=s),{year:l,dayOfYear:u}}function m1(e,t,n){var r=dw(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,o,a;return i<1?(a=e.year()-1,o=i+mc(a,t,n)):i>mc(e.year(),t,n)?(o=i-mc(e.year(),t,n),a=e.year()+1):(a=e.year(),o=i),{week:o,year:a}}function mc(e,t,n){var r=dw(e,t,n),i=dw(e+1,t,n);return(Xb(e)-r+i)/7}fn("w",["ww",2],"wo","week");fn("W",["WW",2],"Wo","isoWeek");Yt("w",Fr,Xg);Yt("ww",Fr,Ss);Yt("W",Fr,Xg);Yt("WW",Fr,Ss);FO(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Vn(e)});function vZe(e){return m1(e,this._week.dow,this._week.doy).week}var EZe={dow:0,doy:6};function SZe(){return this._week.dow}function TZe(){return this._week.doy}function wZe(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function kZe(e){var t=m1(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}fn("d",0,"do","day");fn("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});fn("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});fn("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});fn("e",0,0,"weekday");fn("E",0,0,"isoWeekday");Yt("d",Fr);Yt("e",Fr);Yt("E",Fr);Yt("dd",function(e,t){return t.weekdaysMinRegex(e)});Yt("ddd",function(e,t){return t.weekdaysShortRegex(e)});Yt("dddd",function(e,t){return t.weekdaysRegex(e)});FO(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:_n(n).invalidWeekday=e});FO(["d","e","E"],function(e,t,n,r){t[r]=Vn(e)});function xZe(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function CZe(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function mF(e,t){return e.slice(t,7).concat(e.slice(0,t))}var AZe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),jre="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),_Ze="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),RZe=$O,IZe=$O,DZe=$O;function NZe(e,t){var n=Ll(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?mF(n,this._week.dow):e?n[e.day()]:n}function PZe(e){return e===!0?mF(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function LZe(e){return e===!0?mF(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function MZe(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=zu([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?t==="dddd"?(i=hi.call(this._weekdaysParse,a),i!==-1?i:null):t==="ddd"?(i=hi.call(this._shortWeekdaysParse,a),i!==-1?i:null):(i=hi.call(this._minWeekdaysParse,a),i!==-1?i:null):t==="dddd"?(i=hi.call(this._weekdaysParse,a),i!==-1||(i=hi.call(this._shortWeekdaysParse,a),i!==-1)?i:(i=hi.call(this._minWeekdaysParse,a),i!==-1?i:null)):t==="ddd"?(i=hi.call(this._shortWeekdaysParse,a),i!==-1||(i=hi.call(this._weekdaysParse,a),i!==-1)?i:(i=hi.call(this._minWeekdaysParse,a),i!==-1?i:null)):(i=hi.call(this._minWeekdaysParse,a),i!==-1||(i=hi.call(this._weekdaysParse,a),i!==-1)?i:(i=hi.call(this._shortWeekdaysParse,a),i!==-1?i:null))}function $Ze(e,t,n){var r,i,o;if(this._weekdaysParseExact)return MZe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=zu([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function FZe(e){if(!this.isValid())return e!=null?this:NaN;var t=p1(this,"Day");return e!=null?(e=xZe(e,this.localeData()),this.add(e-t,"d")):t}function BZe(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 UZe(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=CZe(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function jZe(e){return this._weekdaysParseExact?(ir(this,"_weekdaysRegex")||gF.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(ir(this,"_weekdaysRegex")||(this._weekdaysRegex=RZe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function zZe(e){return this._weekdaysParseExact?(ir(this,"_weekdaysRegex")||gF.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(ir(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=IZe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function VZe(e){return this._weekdaysParseExact?(ir(this,"_weekdaysRegex")||gF.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(ir(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=DZe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function gF(){function e(c,d){return d.length-c.length}var t=[],n=[],r=[],i=[],o,a,s,l,u;for(o=0;o<7;o++)a=zu([2e3,1]).day(o),s=hc(this.weekdaysMin(a,"")),l=hc(this.weekdaysShort(a,"")),u=hc(this.weekdays(a,"")),t.push(s),n.push(l),r.push(u),i.push(s),i.push(l),i.push(u);t.sort(e),n.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function bF(){return this.hours()%12||12}function HZe(){return this.hours()||24}fn("H",["HH",2],0,"hour");fn("h",["hh",2],0,bF);fn("k",["kk",2],0,HZe);fn("hmm",0,0,function(){return""+bF.apply(this)+Iu(this.minutes(),2)});fn("hmmss",0,0,function(){return""+bF.apply(this)+Iu(this.minutes(),2)+Iu(this.seconds(),2)});fn("Hmm",0,0,function(){return""+this.hours()+Iu(this.minutes(),2)});fn("Hmmss",0,0,function(){return""+this.hours()+Iu(this.minutes(),2)+Iu(this.seconds(),2)});function zre(e,t){fn(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}zre("a",!0);zre("A",!1);function Vre(e,t){return t._meridiemParse}Yt("a",Vre);Yt("A",Vre);Yt("H",Fr,pF);Yt("h",Fr,Xg);Yt("k",Fr,Xg);Yt("HH",Fr,Ss);Yt("hh",Fr,Ss);Yt("kk",Fr,Ss);Yt("hmm",Ire);Yt("hmmss",Dre);Yt("Hmm",Ire);Yt("Hmmss",Dre);hr(["H","HH"],Mi);hr(["k","kk"],function(e,t,n){var r=Vn(e);t[Mi]=r===24?0:r});hr(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});hr(["h","hh"],function(e,t,n){t[Mi]=Vn(e),_n(n).bigHour=!0});hr("hmm",function(e,t,n){var r=e.length-2;t[Mi]=Vn(e.substr(0,r)),t[xl]=Vn(e.substr(r)),_n(n).bigHour=!0});hr("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Mi]=Vn(e.substr(0,r)),t[xl]=Vn(e.substr(r,2)),t[cc]=Vn(e.substr(i)),_n(n).bigHour=!0});hr("Hmm",function(e,t,n){var r=e.length-2;t[Mi]=Vn(e.substr(0,r)),t[xl]=Vn(e.substr(r))});hr("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Mi]=Vn(e.substr(0,r)),t[xl]=Vn(e.substr(r,2)),t[cc]=Vn(e.substr(i))});function WZe(e){return(e+"").toLowerCase().charAt(0)==="p"}var QZe=/[ap]\.?m?\.?/i,YZe=Kg("Hours",!0);function GZe(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var Hre={calendar:Mqe,longDateFormat:Uqe,invalidDate:zqe,ordinal:Hqe,dayOfMonthOrdinalParse:Wqe,relativeTime:Yqe,months:uZe,monthsShort:Lre,week:EZe,weekdays:AZe,weekdaysMin:_Ze,weekdaysShort:jre,meridiemParse:QZe},Hr={},H0={},g1;function qZe(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(i=Wx(o.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&qZe(o,r)>=n-1)break;n--}t++}return g1}function XZe(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Wx(e){var t=null,n;if(Hr[e]===void 0&&typeof SS<"u"&&SS&&SS.exports&&XZe(e))try{t=g1._abbr,n=require,n("./locale/"+e),Md(t)}catch{Hr[e]=null}return Hr[e]}function Md(e,t){var n;return e&&(ga(t)?n=Nc(e):n=yF(e,t),n?g1=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),g1._abbr}function yF(e,t){if(t!==null){var n,r=Hre;if(t.abbr=e,Hr[e]!=null)Cre("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=Hr[e]._config;else if(t.parentLocale!=null)if(Hr[t.parentLocale]!=null)r=Hr[t.parentLocale]._config;else if(n=Wx(t.parentLocale),n!=null)r=n._config;else return H0[t.parentLocale]||(H0[t.parentLocale]=[]),H0[t.parentLocale].push({name:e,config:t}),null;return Hr[e]=new lF(JI(r,t)),H0[e]&&H0[e].forEach(function(i){yF(i.name,i.config)}),Md(e),Hr[e]}else return delete Hr[e],null}function KZe(e,t){if(t!=null){var n,r,i=Hre;Hr[e]!=null&&Hr[e].parentLocale!=null?Hr[e].set(JI(Hr[e]._config,t)):(r=Wx(e),r!=null&&(i=r._config),t=JI(i,t),r==null&&(t.abbr=e),n=new lF(t),n.parentLocale=Hr[e],Hr[e]=n),Md(e)}else Hr[e]!=null&&(Hr[e].parentLocale!=null?(Hr[e]=Hr[e].parentLocale,e===Md()&&Md(e)):Hr[e]!=null&&delete Hr[e]);return Hr[e]}function Nc(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return g1;if(!Ll(e)){if(t=Wx(e),t)return t;e=[e]}return ZZe(e)}function JZe(){return eD(Hr)}function OF(e){var t,n=e._a;return n&&_n(e).overflow===-2&&(t=n[uc]<0||n[uc]>11?uc:n[mu]<1||n[mu]>hF(n[Lo],n[uc])?mu:n[Mi]<0||n[Mi]>24||n[Mi]===24&&(n[xl]!==0||n[cc]!==0||n[Qf]!==0)?Mi:n[xl]<0||n[xl]>59?xl:n[cc]<0||n[cc]>59?cc:n[Qf]<0||n[Qf]>999?Qf:-1,_n(e)._overflowDayOfYear&&(tmu)&&(t=mu),_n(e)._overflowWeeks&&t===-1&&(t=rZe),_n(e)._overflowWeekday&&t===-1&&(t=iZe),_n(e).overflow=t),e}var eXe=/^\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)?)?$/,tXe=/^\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)?)?$/,nXe=/Z|[+-]\d\d(?::?\d\d)?/,OE=[["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]],k2=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],rXe=/^\/?Date\((-?\d+)/i,iXe=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,oXe={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 Wre(e){var t,n,r=e._i,i=eXe.exec(r)||tXe.exec(r),o,a,s,l,u=OE.length,c=k2.length;if(i){for(_n(e).iso=!0,t=0,n=u;tXb(a)||e._dayOfYear===0)&&(_n(e)._overflowDayOfYear=!0),n=h1(a,0,e._dayOfYear),e._a[uc]=n.getUTCMonth(),e._a[mu]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Mi]===24&&e._a[xl]===0&&e._a[cc]===0&&e._a[Qf]===0&&(e._nextDay=!0,e._a[Mi]=0),e._d=(e._useUTC?h1:OZe).apply(null,r),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Mi]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==o&&(_n(e).weekdayMismatch=!0)}}function pXe(e){var t,n,r,i,o,a,s,l,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(o=1,a=4,n=_h(t.GG,e._a[Lo],m1($r(),1,4).year),r=_h(t.W,1),i=_h(t.E,1),(i<1||i>7)&&(l=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,u=m1($r(),o,a),n=_h(t.gg,e._a[Lo],u.year),r=_h(t.w,u.week),t.d!=null?(i=t.d,(i<0||i>6)&&(l=!0)):t.e!=null?(i=t.e+o,(t.e<0||t.e>6)&&(l=!0)):i=o),r<1||r>mc(n,o,a)?_n(e)._overflowWeeks=!0:l!=null?_n(e)._overflowWeekday=!0:(s=Ure(n,r,i,o,a),e._a[Lo]=s.year,e._dayOfYear=s.dayOfYear)}Ht.ISO_8601=function(){};Ht.RFC_2822=function(){};function EF(e){if(e._f===Ht.ISO_8601){Wre(e);return}if(e._f===Ht.RFC_2822){Qre(e);return}e._a=[],_n(e).empty=!0;var t=""+e._i,n,r,i,o,a,s=t.length,l=0,u,c;for(i=Are(e._f,e._locale).match(uF)||[],c=i.length,n=0;n0&&_n(e).unusedInput.push(a),t=t.slice(t.indexOf(r)+r.length),l+=r.length),Om[o]?(r?_n(e).empty=!1:_n(e).unusedTokens.push(o),nZe(o,r,e)):e._strict&&!r&&_n(e).unusedTokens.push(o);_n(e).charsLeftOver=s-l,t.length>0&&_n(e).unusedInput.push(t),e._a[Mi]<=12&&_n(e).bigHour===!0&&e._a[Mi]>0&&(_n(e).bigHour=void 0),_n(e).parsedDateParts=e._a.slice(0),_n(e).meridiem=e._meridiem,e._a[Mi]=hXe(e._locale,e._a[Mi],e._meridiem),u=_n(e).era,u!==null&&(e._a[Lo]=e._locale.erasConvertYear(u,e._a[Lo])),vF(e),OF(e)}function hXe(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 mXe(e){var t,n,r,i,o,a,s=!1,l=e._f.length;if(l===0){_n(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;ithis?this:e:Fx()});function qre(e,t){var n,r;if(t.length===1&&Ll(t[0])&&(t=t[0]),!t.length)return $r();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function MXe(){if(!ga(this._isDSTShifted))return this._isDSTShifted;var e={},t;return sF(e,this),e=Yre(e),e._a?(t=e._isUTC?zu(e._a):$r(e._a),this._isDSTShifted=this.isValid()&&CXe(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function $Xe(){return this.isValid()?!this._isUTC:!1}function FXe(){return this.isValid()?this._isUTC:!1}function Xre(){return this.isValid()?this._isUTC&&this._offset===0:!1}var BXe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,UXe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Hl(e,t){var n=e,r=null,i,o,a;return hS(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:xc(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=BXe.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:Vn(r[mu])*i,h:Vn(r[Mi])*i,m:Vn(r[xl])*i,s:Vn(r[cc])*i,ms:Vn(nD(r[Qf]*1e3))*i}):(r=UXe.exec(e))?(i=r[1]==="-"?-1:1,n={y:Tf(r[2],i),M:Tf(r[3],i),w:Tf(r[4],i),d:Tf(r[5],i),h:Tf(r[6],i),m:Tf(r[7],i),s:Tf(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=jXe($r(n.from),$r(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),o=new Qx(n),hS(e)&&ir(e,"_locale")&&(o._locale=e._locale),hS(e)&&ir(e,"_isValid")&&(o._isValid=e._isValid),o}Hl.fn=Qx.prototype;Hl.invalid=xXe;function Tf(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function wV(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 jXe(e,t){var n;return e.isValid()&&t.isValid()?(t=TF(t,e),e.isBefore(t)?n=wV(e,t):(n=wV(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Kre(e,t){return function(n,r){var i,o;return r!==null&&!isNaN(+r)&&(Cre(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),i=Hl(n,r),Jre(this,i,e),this}}function Jre(e,t,n,r){var i=t._milliseconds,o=nD(t._days),a=nD(t._months);e.isValid()&&(r=r??!0,a&&$re(e,p1(e,"Month")+a*n),o&&Pre(e,"Date",p1(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&Ht.updateOffset(e,o||a))}var zXe=Kre(1,"add"),VXe=Kre(-1,"subtract");function eie(e){return typeof e=="string"||e instanceof String}function HXe(e){return Ml(e)||LO(e)||eie(e)||xc(e)||QXe(e)||WXe(e)||e===null||e===void 0}function WXe(e){var t=sp(e)&&!oF(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,o,a=r.length;for(i=0;in.valueOf():n.valueOf()9999?pS(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Vu(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",pS(n,"Z")):pS(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function aKe(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,o;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",o=t+'[")]',this.format(n+r+i+o)}function sKe(e){e||(e=this.isUtc()?Ht.defaultFormatUtc:Ht.defaultFormat);var t=pS(this,e);return this.localeData().postformat(t)}function lKe(e,t){return this.isValid()&&(Ml(e)&&e.isValid()||$r(e).isValid())?Hl({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function uKe(e){return this.from($r(),e)}function cKe(e,t){return this.isValid()&&(Ml(e)&&e.isValid()||$r(e).isValid())?Hl({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function dKe(e){return this.to($r(),e)}function tie(e){var t;return e===void 0?this._locale._abbr:(t=Nc(e),t!=null&&(this._locale=t),this)}var nie=sl("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function rie(){return this._locale}var fw=1e3,vm=60*fw,pw=60*vm,iie=(365*400+97)*24*pw;function Em(e,t){return(e%t+t)%t}function oie(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-iie:new Date(e,t,n).valueOf()}function aie(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-iie:Date.UTC(e,t,n)}function fKe(e){var t,n;if(e=ll(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?aie:oie,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-=Em(t+(this._isUTC?0:this.utcOffset()*vm),pw);break;case"minute":t=this._d.valueOf(),t-=Em(t,vm);break;case"second":t=this._d.valueOf(),t-=Em(t,fw);break}return this._d.setTime(t),Ht.updateOffset(this,!0),this}function pKe(e){var t,n;if(e=ll(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?aie:oie,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+=pw-Em(t+(this._isUTC?0:this.utcOffset()*vm),pw)-1;break;case"minute":t=this._d.valueOf(),t+=vm-Em(t,vm)-1;break;case"second":t=this._d.valueOf(),t+=fw-Em(t,fw)-1;break}return this._d.setTime(t),Ht.updateOffset(this,!0),this}function hKe(){return this._d.valueOf()-(this._offset||0)*6e4}function mKe(){return Math.floor(this.valueOf()/1e3)}function gKe(){return new Date(this.valueOf())}function bKe(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function yKe(){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 OKe(){return this.isValid()?this.toISOString():null}function vKe(){return aF(this)}function EKe(){return vd({},_n(this))}function SKe(){return _n(this).overflow}function TKe(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}fn("N",0,0,"eraAbbr");fn("NN",0,0,"eraAbbr");fn("NNN",0,0,"eraAbbr");fn("NNNN",0,0,"eraName");fn("NNNNN",0,0,"eraNarrow");fn("y",["y",1],"yo","eraYear");fn("y",["yy",2],0,"eraYear");fn("y",["yyy",3],0,"eraYear");fn("y",["yyyy",4],0,"eraYear");Yt("N",wF);Yt("NN",wF);Yt("NNN",wF);Yt("NNNN",PKe);Yt("NNNNN",LKe);hr(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?_n(n).era=i:_n(n).invalidEra=e});Yt("y",Zg);Yt("yy",Zg);Yt("yyy",Zg);Yt("yyyy",Zg);Yt("yo",MKe);hr(["y","yy","yyy","yyyy"],Lo);hr(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Lo]=n._locale.eraYearOrdinalParse(e,i):t[Lo]=parseInt(e,10)});function wKe(e,t){var n,r,i,o=this._eras||Nc("en")._eras;for(n=0,r=o.length;n=0)return o[r]}function xKe(e,t){var n=e.since<=e.until?1:-1;return t===void 0?Ht(e.since).year():Ht(e.since).year()+(t-e.offset)*n}function CKe(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;eo&&(t=o),VKe.call(this,e,t,n,r,i))}function VKe(e,t,n,r,i){var o=Ure(e,t,n,r,i),a=h1(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}fn("Q",0,"Qo","quarter");Yt("Q",_re);hr("Q",function(e,t){t[uc]=(Vn(e)-1)*3});function HKe(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}fn("D",["DD",2],"Do","date");Yt("D",Fr,Xg);Yt("DD",Fr,Ss);Yt("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});hr(["D","DD"],mu);hr("Do",function(e,t){t[mu]=Vn(e.match(Fr)[0])});var lie=Kg("Date",!0);fn("DDD",["DDDD",3],"DDDo","dayOfYear");Yt("DDD",Ux);Yt("DDDD",Rre);hr(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Vn(e)});function WKe(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}fn("m",["mm",2],0,"minute");Yt("m",Fr,pF);Yt("mm",Fr,Ss);hr(["m","mm"],xl);var QKe=Kg("Minutes",!1);fn("s",["ss",2],0,"second");Yt("s",Fr,pF);Yt("ss",Fr,Ss);hr(["s","ss"],cc);var YKe=Kg("Seconds",!1);fn("S",0,0,function(){return~~(this.millisecond()/100)});fn(0,["SS",2],0,function(){return~~(this.millisecond()/10)});fn(0,["SSS",3],0,"millisecond");fn(0,["SSSS",4],0,function(){return this.millisecond()*10});fn(0,["SSSSS",5],0,function(){return this.millisecond()*100});fn(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});fn(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});fn(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});fn(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Yt("S",Ux,_re);Yt("SS",Ux,Ss);Yt("SSS",Ux,Rre);var Ed,uie;for(Ed="SSSS";Ed.length<=9;Ed+="S")Yt(Ed,Zg);function GKe(e,t){t[Qf]=Vn(("0."+e)*1e3)}for(Ed="S";Ed.length<=9;Ed+="S")hr(Ed,GKe);uie=Kg("Milliseconds",!1);fn("z",0,0,"zoneAbbr");fn("zz",0,0,"zoneName");function qKe(){return this._isUTC?"UTC":""}function ZKe(){return this._isUTC?"Coordinated Universal Time":""}var Tt=MO.prototype;Tt.add=zXe;Tt.calendar=qXe;Tt.clone=ZXe;Tt.diff=rKe;Tt.endOf=pKe;Tt.format=sKe;Tt.from=lKe;Tt.fromNow=uKe;Tt.to=cKe;Tt.toNow=dKe;Tt.get=aZe;Tt.invalidAt=SKe;Tt.isAfter=XXe;Tt.isBefore=KXe;Tt.isBetween=JXe;Tt.isSame=eKe;Tt.isSameOrAfter=tKe;Tt.isSameOrBefore=nKe;Tt.isValid=vKe;Tt.lang=nie;Tt.locale=tie;Tt.localeData=rie;Tt.max=vXe;Tt.min=OXe;Tt.parsingFlags=EKe;Tt.set=sZe;Tt.startOf=fKe;Tt.subtract=VXe;Tt.toArray=bKe;Tt.toObject=yKe;Tt.toDate=gKe;Tt.toISOString=oKe;Tt.inspect=aKe;typeof Symbol<"u"&&Symbol.for!=null&&(Tt[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});Tt.toJSON=OKe;Tt.toString=iKe;Tt.unix=mKe;Tt.valueOf=hKe;Tt.creationData=TKe;Tt.eraName=CKe;Tt.eraNarrow=AKe;Tt.eraAbbr=_Ke;Tt.eraYear=RKe;Tt.year=Nre;Tt.isLeapYear=oZe;Tt.weekYear=$Ke;Tt.isoWeekYear=FKe;Tt.quarter=Tt.quarters=HKe;Tt.month=Fre;Tt.daysInMonth=gZe;Tt.week=Tt.weeks=wZe;Tt.isoWeek=Tt.isoWeeks=kZe;Tt.weeksInYear=jKe;Tt.weeksInWeekYear=zKe;Tt.isoWeeksInYear=BKe;Tt.isoWeeksInISOWeekYear=UKe;Tt.date=lie;Tt.day=Tt.days=FZe;Tt.weekday=BZe;Tt.isoWeekday=UZe;Tt.dayOfYear=WKe;Tt.hour=Tt.hours=YZe;Tt.minute=Tt.minutes=QKe;Tt.second=Tt.seconds=YKe;Tt.millisecond=Tt.milliseconds=uie;Tt.utcOffset=_Xe;Tt.utc=IXe;Tt.local=DXe;Tt.parseZone=NXe;Tt.hasAlignedHourOffset=PXe;Tt.isDST=LXe;Tt.isLocal=$Xe;Tt.isUtcOffset=FXe;Tt.isUtc=Xre;Tt.isUTC=Xre;Tt.zoneAbbr=qKe;Tt.zoneName=ZKe;Tt.dates=sl("dates accessor is deprecated. Use date instead.",lie);Tt.months=sl("months accessor is deprecated. Use month instead",Fre);Tt.years=sl("years accessor is deprecated. Use year instead",Nre);Tt.zone=sl("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",RXe);Tt.isDSTShifted=sl("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",MXe);function XKe(e){return $r(e*1e3)}function KKe(){return $r.apply(null,arguments).parseZone()}function cie(e){return e}var or=lF.prototype;or.calendar=$qe;or.longDateFormat=jqe;or.invalidDate=Vqe;or.ordinal=Qqe;or.preparse=cie;or.postformat=cie;or.relativeTime=Gqe;or.pastFuture=qqe;or.set=Lqe;or.eras=wKe;or.erasParse=kKe;or.erasConvertYear=xKe;or.erasAbbrRegex=DKe;or.erasNameRegex=IKe;or.erasNarrowRegex=NKe;or.months=fZe;or.monthsShort=pZe;or.monthsParse=mZe;or.monthsRegex=yZe;or.monthsShortRegex=bZe;or.week=vZe;or.firstDayOfYear=TZe;or.firstDayOfWeek=SZe;or.weekdays=NZe;or.weekdaysMin=LZe;or.weekdaysShort=PZe;or.weekdaysParse=$Ze;or.weekdaysRegex=jZe;or.weekdaysShortRegex=zZe;or.weekdaysMinRegex=VZe;or.isPM=WZe;or.meridiem=GZe;function hw(e,t,n,r){var i=Nc(),o=zu().set(r,t);return i[n](o,e)}function die(e,t,n){if(xc(e)&&(t=e,e=void 0),e=e||"",t!=null)return hw(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=hw(e,r,n,"month");return i}function xF(e,t,n,r){typeof e=="boolean"?(xc(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,xc(t)&&(n=t,t=void 0),t=t||"");var i=Nc(),o=e?i._week.dow:0,a,s=[];if(n!=null)return hw(t,(n+o)%7,r,"day");for(a=0;a<7;a++)s[a]=hw(t,(a+o)%7,r,"day");return s}function JKe(e,t){return die(e,t,"months")}function eJe(e,t){return die(e,t,"monthsShort")}function tJe(e,t,n){return xF(e,t,n,"weekdays")}function nJe(e,t,n){return xF(e,t,n,"weekdaysShort")}function rJe(e,t,n){return xF(e,t,n,"weekdaysMin")}Md("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=Vn(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});Ht.lang=sl("moment.lang is deprecated. Use moment.locale instead.",Md);Ht.langData=sl("moment.langData is deprecated. Use moment.localeData instead.",Nc);var Gu=Math.abs;function iJe(){var e=this._data;return this._milliseconds=Gu(this._milliseconds),this._days=Gu(this._days),this._months=Gu(this._months),e.milliseconds=Gu(e.milliseconds),e.seconds=Gu(e.seconds),e.minutes=Gu(e.minutes),e.hours=Gu(e.hours),e.months=Gu(e.months),e.years=Gu(e.years),this}function fie(e,t,n,r){var i=Hl(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function oJe(e,t){return fie(this,e,t,1)}function aJe(e,t){return fie(this,e,t,-1)}function kV(e){return e<0?Math.floor(e):Math.ceil(e)}function sJe(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,o,a,s,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=kV(iD(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=Fs(e/1e3),r.seconds=i%60,o=Fs(i/60),r.minutes=o%60,a=Fs(o/60),r.hours=a%24,t+=Fs(a/24),l=Fs(pie(t)),n+=l,t-=kV(iD(l)),s=Fs(n/12),n%=12,r.days=t,r.months=n,r.years=s,this}function pie(e){return e*4800/146097}function iD(e){return e*146097/4800}function lJe(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=ll(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+pie(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(iD(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 Pc(e){return function(){return this.as(e)}}var hie=Pc("ms"),uJe=Pc("s"),cJe=Pc("m"),dJe=Pc("h"),fJe=Pc("d"),pJe=Pc("w"),hJe=Pc("M"),mJe=Pc("Q"),gJe=Pc("y"),bJe=hie;function yJe(){return Hl(this)}function OJe(e){return e=ll(e),this.isValid()?this[e+"s"]():NaN}function Vp(e){return function(){return this.isValid()?this._data[e]:NaN}}var vJe=Vp("milliseconds"),EJe=Vp("seconds"),SJe=Vp("minutes"),TJe=Vp("hours"),wJe=Vp("days"),kJe=Vp("months"),xJe=Vp("years");function CJe(){return Fs(this.days()/7)}var ec=Math.round,Kh={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function AJe(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function _Je(e,t,n,r){var i=Hl(e).abs(),o=ec(i.as("s")),a=ec(i.as("m")),s=ec(i.as("h")),l=ec(i.as("d")),u=ec(i.as("M")),c=ec(i.as("w")),d=ec(i.as("y")),p=o<=n.ss&&["s",o]||o0,p[4]=r,AJe.apply(null,p)}function RJe(e){return e===void 0?ec:typeof e=="function"?(ec=e,!0):!1}function IJe(e,t){return Kh[e]===void 0?!1:t===void 0?Kh[e]:(Kh[e]=t,e==="s"&&(Kh.ss=t-1),!0)}function DJe(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Kh,i,o;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},Kh,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),o=_Je(this,!n,r,i),n&&(o=i.pastFuture(+this,o)),i.postformat(o)}var x2=Math.abs;function gh(e){return(e>0)-(e<0)||+e}function Gx(){if(!this.isValid())return this.localeData().invalidDate();var e=x2(this._milliseconds)/1e3,t=x2(this._days),n=x2(this._months),r,i,o,a,s=this.asSeconds(),l,u,c,d;return s?(r=Fs(e/60),i=Fs(r/60),e%=60,r%=60,o=Fs(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",u=gh(this._months)!==gh(s)?"-":"",c=gh(this._days)!==gh(s)?"-":"",d=gh(this._milliseconds)!==gh(s)?"-":"",l+"P"+(o?u+o+"Y":"")+(n?u+n+"M":"")+(t?c+t+"D":"")+(i||r||e?"T":"")+(i?d+i+"H":"")+(r?d+r+"M":"")+(e?d+a+"S":"")):"P0D"}var Jn=Qx.prototype;Jn.isValid=kXe;Jn.abs=iJe;Jn.add=oJe;Jn.subtract=aJe;Jn.as=lJe;Jn.asMilliseconds=hie;Jn.asSeconds=uJe;Jn.asMinutes=cJe;Jn.asHours=dJe;Jn.asDays=fJe;Jn.asWeeks=pJe;Jn.asMonths=hJe;Jn.asQuarters=mJe;Jn.asYears=gJe;Jn.valueOf=bJe;Jn._bubble=sJe;Jn.clone=yJe;Jn.get=OJe;Jn.milliseconds=vJe;Jn.seconds=EJe;Jn.minutes=SJe;Jn.hours=TJe;Jn.days=wJe;Jn.weeks=CJe;Jn.months=kJe;Jn.years=xJe;Jn.humanize=DJe;Jn.toISOString=Gx;Jn.toString=Gx;Jn.toJSON=Gx;Jn.locale=tie;Jn.localeData=rie;Jn.toIsoString=sl("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Gx);Jn.lang=nie;fn("X",0,0,"unix");fn("x",0,0,"valueOf");Yt("x",zx);Yt("X",Jqe);hr("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});hr("x",function(e,t,n){n._d=new Date(Vn(e))});//! moment.js +Ht.version="2.30.1";Nqe($r);Ht.fn=Tt;Ht.min=EXe;Ht.max=SXe;Ht.now=TXe;Ht.utc=zu;Ht.unix=XKe;Ht.months=JKe;Ht.isDate=LO;Ht.locale=Md;Ht.invalid=Fx;Ht.duration=Hl;Ht.isMoment=Ml;Ht.weekdays=tJe;Ht.parseZone=KKe;Ht.localeData=Nc;Ht.isDuration=hS;Ht.monthsShort=eJe;Ht.weekdaysMin=rJe;Ht.defineLocale=yF;Ht.updateLocale=KZe;Ht.locales=JZe;Ht.weekdaysShort=nJe;Ht.normalizeUnits=ll;Ht.relativeTimeRounding=RJe;Ht.relativeTimeThreshold=IJe;Ht.calendarFormat=GXe;Ht.prototype=Tt;Ht.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};var CF={},NJe=Fo;Object.defineProperty(CF,"__esModule",{value:!0});var mie=CF.default=void 0,PJe=NJe(Bo()),xV=M;mie=CF.default=(0,PJe.default)([(0,xV.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,xV.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");function LJe(e){const{document:t}=e,n=Cg(),r=()=>{n(`/document/${t.slug}`)};return M.jsx(Mge,{sx:{width:"100%"},children:M.jsx(Hge,{onClick:r,children:M.jsxs(Zge,{children:[M.jsx(Lr,{variant:"h5",component:"div",noWrap:!0,children:t.title}),M.jsxs(Li,{direction:"row",alignItems:"center",gap:1,children:[M.jsx(mie,{fontSize:"small",sx:{color:"text.secondary"}}),M.jsxs(Lr,{variant:"body2",color:"text.secondary",noWrap:!0,children:["Changed ",Ht(t.updatedAt).fromNow()]})]})]})})})}function MJe(){const e=K1(),{data:t}=A$(e.workspaceSlug),{data:n,fetchNextPage:r,hasNextPage:i}=wqe(t==null?void 0:t.id),o=I.useMemo(()=>(n==null?void 0:n.pages.reduce((a,s)=>a.concat(s.documents),[]))??[],[n==null?void 0:n.pages]);return M.jsxs(Li,{direction:"row",children:[M.jsx(Dqe,{}),M.jsx(Aa,{style:{maxHeight:"100vh",overflow:"auto"},width:1,children:M.jsx(l1,{pageStart:0,loadMore:()=>r(),hasMore:i,loader:M.jsx(Aa,{className:"loader",children:M.jsx(Sg,{size:"sm"})},0),useWindow:!1,children:M.jsx(Aa,{p:2,width:1,children:M.jsx(zh,{container:!0,spacing:{xs:2,md:3},columns:{xs:4,sm:8,md:12,lg:12},children:o.map(a=>M.jsx(zh,{item:!0,xs:4,sm:4,md:4,lg:3,children:M.jsx(LJe,{document:a})},a.id))})})})})]})}function $Je(){const e=oG();return M.jsx(Li,{width:1,height:"100vh",alignItems:"center",justifyContent:"center",children:M.jsxs(Li,{alignItems:"center",children:[M.jsx(Lr,{variant:"h5",children:"Something went wrong"}),qN(e)&&M.jsxs(Lr,{variant:"subtitle1",children:["Status Code: ",e.status]})]})})}const FJe=[{path:"",accessType:2,element:M.jsx($ze,{}),children:[{path:"",element:M.jsx(zze,{})}]},{path:"workspace",accessType:0,element:M.jsx(Yze,{}),children:[{path:":workspaceSlug",element:M.jsx(MJe,{})}]},{path:"document",accessType:0,element:M.jsx(dxe,{}),children:[{path:":documentSlug",element:M.jsx(Mze,{})}]},{path:"auth/callback",accessType:2,element:M.jsx(Qze,{})}],BJe=e=>e.map(t=>(t.accessType===0?t.element=M.jsx(Xze,{children:t.element}):t.accessType===2&&(t.element=M.jsx(Zze,{children:t.element})),t.errorElement=M.jsx($Je,{}),t)),UJe=BJe(FJe),jJe=e=>["users",e],zJe=()=>{const e=kg(),t=_c(Hze);t.accessToken&&(cr.defaults.headers.common.Authorization=`Bearer ${t.accessToken}`);const n=S$({queryKey:jJe(t.accessToken||""),enabled:!!t.accessToken,queryFn:async()=>(await cr.get("/users")).data});return I.useEffect(()=>{n.isSuccess?e(WI(n.data)):n.isError&&(e(w$(null)),e(WI(null)),cr.defaults.headers.common.Authorization="")},[e,n.data,n.isError,n.isSuccess]),n};function VJe(e){const{children:t}=e,{isSuccess:n,isLoading:r}=zJe();return M.jsx(k$.Provider,{value:{isLoggedIn:n,isLoading:r},children:t})}function gie(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 AV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var bie=Qt.createContext(),QJe={mui:{root:{},anchorOriginTopCenter:{},anchorOriginBottomCenter:{},anchorOriginTopRight:{},anchorOriginBottomRight:{},anchorOriginTopLeft:{},anchorOriginBottomLeft:{}},container:{containerRoot:{},containerAnchorOriginTopCenter:{},containerAnchorOriginBottomCenter:{},containerAnchorOriginTopRight:{},containerAnchorOriginBottomRight:{},containerAnchorOriginTopLeft:{},containerAnchorOriginBottomLeft:{}}},qu={view:{default:20,dense:4},snackbar:{default:6,dense:2}},Yf={maxSnack:3,dense:!1,hideIconVariant:!1,variant:"default",autoHideDuration:5e3,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:mY,transitionDuration:{enter:225,exit:195}},Kb=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},YJe=function(t){return""+Kb(t.vertical)+Kb(t.horizontal)},GJe=function(t){return Object.keys(t).filter(function(n){return!QJe.container[n]}).reduce(function(n,r){var i;return Ir({},n,(i={},i[r]=t[r],i))},{})},id={TIMEOUT:"timeout",CLICKAWAY:"clickaway",MAXSNACK:"maxsnack",INSTRUCTED:"instructed"},gS={toContainerAnchorOrigin:function(t){return"containerAnchorOrigin"+t},toAnchorOrigin:function(t){var n=t.vertical,r=t.horizontal;return"anchorOrigin"+Kb(n)+Kb(r)},toVariant:function(t){return"variant"+Kb(t)}},vE=function(t){return!!t||t===0},_V=function(t){return typeof t=="number"||t===null},qJe=function(t,n,r){return function(i){return i==="autoHideDuration"?_V(t.autoHideDuration)?t.autoHideDuration:_V(n.autoHideDuration)?n.autoHideDuration:Yf.autoHideDuration:t[i]||n[i]||r[i]}};function C2(e,t,n){return e===void 0&&(e={}),t===void 0&&(t={}),n===void 0&&(n={}),Ir({},n,{},t,{},e)}var ZJe="SnackbarContent",yie={root:ZJe+"-root"},XJe=Se("div")(function(e){var t,n,r=e.theme;return n={},n["&."+yie.root]=(t={display:"flex",flexWrap:"wrap",flexGrow:1},t[r.breakpoints.up("sm")]={flexGrow:"initial",minWidth:288},t),n}),KJe=I.forwardRef(function(e,t){var n=e.className,r=$d(e,["className"]);return Qt.createElement(XJe,Object.assign({ref:t,className:b1(yie.root,n)},r))}),RV={right:"left",left:"right",bottom:"up",top:"down"},JJe=function(t){return t.horizontal!=="center"?RV[t.horizontal]:RV[t.vertical]},eet=function(t){return Qt.createElement(jd,Object.assign({},t),Qt.createElement("path",{d:`M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 + 10.59L10 14.17L17.59 6.58L19 8L10 17Z`}))},tet=function(t){return Qt.createElement(jd,Object.assign({},t),Qt.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},net=function(t){return Qt.createElement(jd,Object.assign({},t),Qt.createElement("path",{d:`M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2, + 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12, + 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},ret=function(t){return Qt.createElement(jd,Object.assign({},t),Qt.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, + 0 22,12A10,10 0 0,0 12,2Z`}))},EE={fontSize:20,marginInlineEnd:8},iet={default:void 0,success:Qt.createElement(eet,{style:EE}),warning:Qt.createElement(tet,{style:EE}),error:Qt.createElement(net,{style:EE}),info:Qt.createElement(ret,{style:EE})};function Jb(e,t){return e.reduce(function(n,r){return r==null?n:function(){for(var o=arguments.length,a=new Array(o),s=0;s .MuiCollapse-container, & > .MuiCollapse-root",wrapper:"& > .MuiCollapse-container > .MuiCollapse-wrapper, & > .MuiCollapse-root > .MuiCollapse-wrapper"},_2=16,wf="SnackbarContainer",ml={root:wf+"-root",rootDense:wf+"-rootDense",top:wf+"-top",bottom:wf+"-bottom",left:wf+"-left",right:wf+"-right",center:wf+"-center"},cet=Se("div")(function(e){var t,n,r,i,o,a,s=e.theme;return a={},a["&."+ml.root]=(t={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:s.zIndex.snackbar,height:"auto",width:"auto",transition:"top 300ms ease 0ms, right 300ms ease 0ms, bottom 300ms ease 0ms, left 300ms ease 0ms, margin 300ms ease 0ms, max-width 300ms ease 0ms",pointerEvents:"none"},t[A2.container]={pointerEvents:"all"},t[A2.wrapper]={padding:qu.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},t.maxWidth="calc(100% - "+qu.view.default*2+"px)",t[s.breakpoints.down("sm")]={width:"100%",maxWidth:"calc(100% - "+_2*2+"px)"},t),a["&."+ml.rootDense]=(n={},n[A2.wrapper]={padding:qu.snackbar.dense+"px 0px"},n),a["&."+ml.top]={top:qu.view.default-qu.snackbar.default,flexDirection:"column"},a["&."+ml.bottom]={bottom:qu.view.default-qu.snackbar.default,flexDirection:"column-reverse"},a["&."+ml.left]=(r={left:qu.view.default},r[s.breakpoints.up("sm")]={alignItems:"flex-start"},r[s.breakpoints.down("sm")]={left:_2+"px"},r),a["&."+ml.right]=(i={right:qu.view.default},i[s.breakpoints.up("sm")]={alignItems:"flex-end"},i[s.breakpoints.down("sm")]={right:_2+"px"},i),a["&."+ml.center]=(o={left:"50%",transform:"translateX(-50%)"},o[s.breakpoints.up("sm")]={alignItems:"center"},o),a}),det=function(t){var n=t.className,r=t.anchorOrigin,i=t.dense,o=$d(t,["className","anchorOrigin","dense"]),a=b1(ml[r.vertical],ml[r.horizontal],ml.root,n,i&&ml.rootDense);return Qt.createElement(cet,Object.assign({className:a},o))},fet=Qt.memo(det),pet=function(e){WJe(t,e);function t(r){var i;return i=e.call(this,r)||this,i.enqueueSnackbar=function(o,a){a===void 0&&(a={});var s=a,l=s.key,u=s.preventDuplicate,c=$d(s,["key","preventDuplicate"]),d=vE(l),p=d?l:new Date().getTime()+Math.random(),h=qJe(c,i.props,Yf),m=Ir({key:p},c,{message:o,open:!0,entered:!1,requestClose:!1,variant:h("variant"),anchorOrigin:h("anchorOrigin"),autoHideDuration:h("autoHideDuration")});return c.persist&&(m.autoHideDuration=void 0),i.setState(function(b){if(u===void 0&&i.props.preventDuplicate||u){var O=function(k){return d?k.key===l:k.message===o},y=b.queue.findIndex(O)>-1,v=b.snacks.findIndex(O)>-1;if(y||v)return b}return i.handleDisplaySnack(Ir({},b,{queue:[].concat(b.queue,[m])}))}),p},i.handleDisplaySnack=function(o){var a=o.snacks;return a.length>=i.maxSnack?i.handleDismissOldest(o):i.processQueue(o)},i.processQueue=function(o){var a=o.queue,s=o.snacks;return a.length>0?Ir({},o,{snacks:[].concat(s,[a[0]]),queue:a.slice(1,a.length)}):o},i.handleDismissOldest=function(o){if(o.snacks.some(function(c){return!c.open||c.requestClose}))return o;var a=!1,s=!1,l=o.snacks.reduce(function(c,d){return c+(d.open&&d.persist?1:0)},0);l===i.maxSnack&&(s=!0);var u=o.snacks.map(function(c){return!a&&(!c.persist||s)?(a=!0,c.entered?(c.onClose&&c.onClose(null,id.MAXSNACK,c.key),i.props.onClose&&i.props.onClose(null,id.MAXSNACK,c.key),Ir({},c,{open:!1})):Ir({},c,{requestClose:!0})):Ir({},c)});return Ir({},o,{snacks:u})},i.handleEnteredSnack=function(o,a,s){if(!vE(s))throw new Error("handleEnteredSnack Cannot be called with undefined key");i.setState(function(l){var u=l.snacks;return{snacks:u.map(function(c){return c.key===s?Ir({},c,{entered:!0}):Ir({},c)})}})},i.handleCloseSnack=function(o,a,s){if(i.props.onClose&&i.props.onClose(o,a,s),a!==id.CLICKAWAY){var l=s===void 0;i.setState(function(u){var c=u.snacks,d=u.queue;return{snacks:c.map(function(p){return!l&&p.key!==s?Ir({},p):p.entered?Ir({},p,{open:!1}):Ir({},p,{requestClose:!0})}),queue:d.filter(function(p){return p.key!==s})}})}},i.closeSnackbar=function(o){var a=i.state.snacks.find(function(s){return s.key===o});vE(o)&&a&&a.onClose&&a.onClose(null,id.INSTRUCTED,o),i.handleCloseSnack(null,id.INSTRUCTED,o)},i.handleExitedSnack=function(o,a,s){var l=a||s;if(!vE(l))throw new Error("handleExitedSnack Cannot be called with undefined key");i.setState(function(u){var c=i.processQueue(Ir({},u,{snacks:u.snacks.filter(function(d){return d.key!==l})}));return c.queue.length===0?c:i.handleDismissOldest(c)})},i.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:i.enqueueSnackbar.bind(AV(i)),closeSnackbar:i.closeSnackbar.bind(AV(i))}},i}var n=t.prototype;return n.render=function(){var i=this,o=this.state.contextValue,a=this.props,s=a.iconVariant,l=a.dense,u=l===void 0?Yf.dense:l,c=a.hideIconVariant,d=c===void 0?Yf.hideIconVariant:c,p=a.domRoot,h=a.children,m=a.classes,b=m===void 0?{}:m,O=$d(a,["maxSnack","preventDuplicate","variant","anchorOrigin","iconVariant","dense","hideIconVariant","domRoot","children","classes"]),y=this.state.snacks.reduce(function(S,k){var C,w=YJe(k.anchorOrigin),E=S[w]||[];return Ir({},S,(C={},C[w]=[].concat(E,[k]),C))},{}),v=Object.keys(y).map(function(S){var k=y[S];return Qt.createElement(fet,{key:S,dense:u,anchorOrigin:k[0].anchorOrigin,className:b1(b.containerRoot,b[gS.toContainerAnchorOrigin(S)])},k.map(function(C){return Qt.createElement(uet,Object.assign({},O,{key:C.key,snack:C,dense:u,iconVariant:s,hideIconVariant:d,classes:GJe(b),onClose:i.handleCloseSnack,onExited:Jb([i.handleExitedSnack,i.props.onExited]),onEntered:Jb([i.handleEnteredSnack,i.props.onEntered])}))}))});return Qt.createElement(bie.Provider,{value:o},h,p?gg.createPortal(v,p):v)},HJe(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||Yf.maxSnack}}]),t}(I.Component),het=function(){return I.useContext(bie)};function met(){const{enqueueSnackbar:e}=het();return I.useCallback(n=>{e(n.message||"Something went wrong...",{variant:"error"})},[e])}var get={VITE_YORKIE_API_ADDR:"https://api.yorkie.dev",VITE_YORKIE_API_KEY:"cmggkp8ksk14av0keupg",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const bet=bTe(UJe);cr.defaults.baseURL=get.VITE_API_ADDR;function yet(){const e=_c(SG),t=wg("(prefers-color-scheme: dark)"),n=I.useMemo(()=>{const o=t?"dark":"light";return vN({typography:{button:{textTransform:"none"}},palette:{mode:e.theme=="default"?o:e.theme}})},[e.theme,t]),r=met(),i=I.useMemo(()=>new bze({queryCache:new Bte({onError:r}),defaultOptions:{mutations:{onError:r}}}),[r]);return M.jsx(Sze,{client:i,children:M.jsx(VJe,{children:M.jsxs(Hde,{theme:n,children:[M.jsx(_0e,{}),M.jsx(Aa,{minHeight:"100vh",children:M.jsx(xTe,{router:bet})})]})})})}var AF={},_F={};_F.__esModule=!0;_F.default=Eet;function bS(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?bS=function(n){return typeof n}:bS=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},bS(e)}function R2(){}var Oet={getItem:R2,setItem:R2,removeItem:R2};function vet(e){if((typeof self>"u"?"undefined":bS(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 Eet(e){var t="".concat(e,"Storage");return vet(t)?self[t]:Oet}AF.__esModule=!0;AF.default=ket;var Tet=wet(_F);function wet(e){return e&&e.__esModule?e:{default:e}}function ket(e){var t=(0,Tet.default)(e);return{getItem:function(r){return new Promise(function(i,o){i(t.getItem(r))})},setItem:function(r,i){return new Promise(function(o,a){o(t.setItem(r,i))})},removeItem:function(r){return new Promise(function(i,o){i(t.removeItem(r))})}}}var Oie=void 0,xet=Cet(AF);function Cet(e){return e&&e.__esModule?e:{default:e}}var Aet=(0,xet.default)("local");Oie=Aet;var RF="persist:",vie="persist/FLUSH",IF="persist/REHYDRATE",Eie="persist/PAUSE",Sie="persist/PERSIST",Tie="persist/PURGE",wie="persist/REGISTER",_et=-1;function yS(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?yS=function(n){return typeof n}:yS=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},yS(e)}function DV(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 Ret(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jet(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var zet=5e3;function Vet(e,t){var n=e.version!==void 0?e.version:_et;e.debug;var r=e.stateReconciler===void 0?Det:e.stateReconciler,i=e.getStoredState||Let,o=e.timeout!==void 0?e.timeout:zet,a=null,s=!1,l=!0,u=function(d){return d._persist.rehydrated&&a&&!l&&a.update(d),d};return function(c,d){var p=c||{},h=p._persist,m=Uet(p,["_persist"]),b=m;if(d.type===Sie){var O=!1,y=function($,N){O||(d.rehydrate(e.key,$,N),O=!0)};if(o&&setTimeout(function(){!O&&y(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},o),l=!1,a||(a=Net(e)),h)return Xu({},t(b,d),{_persist:h});if(typeof d.rehydrate!="function"||typeof d.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return d.register(e.key),i(e).then(function(E){var $=e.migrate||function(N,R){return Promise.resolve(N)};$(E,n).then(function(N){y(N)},function(N){y(void 0,N)})},function(E){y(void 0,E)}),Xu({},t(b,d),{_persist:{version:n,rehydrated:!1}})}else{if(d.type===Tie)return s=!0,d.result($et(e)),Xu({},t(b,d),{_persist:h});if(d.type===vie)return d.result(a&&a.flush()),Xu({},t(b,d),{_persist:h});if(d.type===Eie)l=!0;else if(d.type===IF){if(s)return Xu({},b,{_persist:Xu({},h,{rehydrated:!0})});if(d.key===e.key){var v=t(b,d),S=d.payload,k=r!==!1&&S!==void 0?r(S,c,v,e):v,C=Xu({},k,{_persist:Xu({},h,{rehydrated:!0})});return u(C)}}}if(!h)return t(c,d);var w=t(b,d);return w===b?c:u(Xu({},w,{_persist:h}))}}function PV(e){return Qet(e)||Wet(e)||Het()}function Het(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Wet(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Qet(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:kie,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case wie:return oD({},t,{registry:[].concat(PV(t.registry),[n.key])});case IF:var r=t.registry.indexOf(n.key),i=PV(t.registry);return i.splice(r,1),oD({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function qet(e,t,n){var r=n||!1,i=JN(Get,kie,t&&t.enhancer?t.enhancer:void 0),o=function(u){i.dispatch({type:wie,key:u})},a=function(u,c,d){var p={type:IF,payload:c,err:d,key:u};e.dispatch(p),i.dispatch(p),r&&s.getState().bootstrapped&&(r(),r=!1)},s=oD({},i,{purge:function(){var u=[];return e.dispatch({type:Tie,result:function(d){u.push(d)}}),Promise.all(u)},flush:function(){var u=[];return e.dispatch({type:vie,result:function(d){u.push(d)}}),Promise.all(u)},pause:function(){e.dispatch({type:Eie})},persist:function(){e.dispatch({type:Sie,register:o,rehydrate:a})}});return t&&t.manualPersist||s.persist(),s}const Zet=sG({auth:Wze,config:wwe,user:qze,editor:nxe}),Xet={key:"root",storage:Oie,whitelist:["auth","config"]},Ket=Vet(Xet,Zet),xie=cwe({reducer:Ket,middleware:e=>e({serializableCheck:{ignoredActions:["persist/PERSIST","editor/setDoc","editor/setClient"],ignoredPaths:["editor.doc","editor.client"]},immutableCheck:{ignoredPaths:["editor.doc","editor.client"]}})});function OS(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?OS=function(n){return typeof n}:OS=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},OS(e)}function Jet(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MV(e,t){for(var n=0;n - +